diff --git a/.circleci/config.yml b/.circleci/config.yml index 4026690654b..98213a46327 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -3,7 +3,7 @@ version: 2.1 jobs: publish: docker: - - image: oryd/sdk:v0.0.51 + - image: oryd/sdk:v0.0.52 working_directory: /sdk steps: - checkout diff --git a/.github/workflows/docker-ci.yml b/.github/workflows/docker-ci.yml new file mode 100644 index 00000000000..523c30fa5a7 --- /dev/null +++ b/.github/workflows/docker-ci.yml @@ -0,0 +1,33 @@ +name: Build and test docker image +on: + pull_request: + paths: + - Dockerfile + - .github/workflows/docker-ci.yaml + - scripts/build/** + branches: + - master +concurrency: + group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} + cancel-in-progress: true +jobs: + build_docker_image: + name: Build docker image + runs-on: ubuntu-latest + steps: + - name: Check out the repo + uses: actions/checkout@v4 + - run: sudo chown runner:docker /var/run/docker.sock + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v3 + - name: Build docker image + uses: docker/build-push-action@v5 + with: + tags: oryd/sdk:${{ github.sha }} + push: false + outputs: type=docker,dest=./sdk.tar + - name: run generate.sh and test.sh + run: | + docker load --input ./sdk.tar + rm ./sdk.tar + docker run --mount type=bind,source="$(pwd)",target=/project -e FORCE_PROJECT=client -e FORCE_VERSION=$(cat ./spec/client/latest) -i oryd/sdk:${{ github.sha }} /bin/sh -c "cd /project && ./scripts/generate.sh && ./scripts/test.sh" diff --git a/Dockerfile b/Dockerfile index add8bbb21db..e0178272b6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ -FROM openjdk:15-buster +# can't use bookworm (latest LTS as of June23) yet, as elixir/erlang does not provide packages for it yet. Check if https://binaries.erlang-solutions.com/debian/dists/bookworm/ is available to change this +FROM openjdk:21-bullseye RUN apt-get update && apt-get install -y --no-install-recommends ca-certificates ssh bash -RUN apt-get -y install libncurses5 clang libcurl4 libpython2.7 libpython2.7-dev - -RUN apt-get -y install libxml2 +COPY scripts/build ./scripts ENV GOLANG_VERSION 1.17 @@ -54,10 +53,10 @@ ENV GO111MODULE=on RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH" -RUN curl -sL https://deb.nodesource.com/setup_15.x | bash - && apt-get install -y nodejs +RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && apt-get install -y nodejs # the following is a workaround for openjdk-11-jre-headless erroring due to not having a man path in slim-debian RUN apt-get update -y -RUN apt-get install -y --no-install-recommends python3 python3-dev python3-pip ruby jq gnupg git gettext libffi6 libffi-dev libssl-dev php composer php-curl php7.3-tokenizer php-dom php-xml php-simplexml php-xmlwriter maven pkg-config +RUN apt-get install -y --no-install-recommends python3 python3-dev python3-pip ruby jq gnupg git gettext libffi-dev libssl-dev php composer php-curl php-dom php-xml php-simplexml php-xmlwriter maven pkg-config twine # RUN apk add -U --no-cache ca-certificates bash nodejs npm python3 python3-dev py-pip ruby jq build-base gnupg git openssh curl gettext libffi libffi-dev openssl-dev php composer php-curl php7-tokenizer wget php-dom php-xml php-simplexml php-xmlwriter maven # https://stackoverflow.com/questions/35736598/cannot-pip-install-cryptography-in-docker-alpine-linux-3-3-with-openssl-1-0-2g @@ -76,8 +75,6 @@ RUN apt-get install -y --no-install-recommends python3 python3-dev python3-pip r RUN npm install -g npm@7.21.0 RUN npm i -g @openapitools/openapi-generator-cli RUN openapi-generator-cli version-manager set 5.2.1 -RUN python3 -m pip install --upgrade pip -RUN python3 -m pip install --user --upgrade setuptools wheel twine # dotnet ENV PATH "$PATH:/root/.dotnet" @@ -92,19 +89,10 @@ RUN apt-get install -y --no-install-recommends \ && rm dotnet-install.sh # dart -RUN \ - apt-get -q update && apt-get install --no-install-recommends -y -q gnupg2 curl git ca-certificates apt-transport-https openssh-client && \ - curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \ - curl https://storage.googleapis.com/download.dartlang.org/linux/debian/dart_stable.list > /etc/apt/sources.list.d/dart_stable.list && \ - apt-get update && \ - apt-get install dart=2.19.6-1 +RUN ./scripts/install-dart.sh # elixir -RUN \ - wget https://packages.erlang-solutions.com/erlang-solutions_2.0_all.deb && \ - dpkg -i erlang-solutions_2.0_all.deb && \ - apt-get -q update && apt-get install --no-install-recommends -y -q esl-erlang elixir && \ - rm erlang-solutions_2.0_all.deb && \ +RUN apt-get -q update && apt-get install -y -q elixir && \ mix local.hex --force # rust @@ -128,7 +116,7 @@ RUN td=$(mktemp) \ RUN gem install bundler -v 2.3.26 && \ apt-get update && \ - apt-get install -y --no-install-recommends ruby-dev + apt-get install -y --no-install-recommends ruby-dev=1:2.7+2 # swift RUN \ @@ -169,4 +157,3 @@ RUN go build -o /usr/local/bin/ory github.com/ory/cli RUN swagger version RUN ory version -ENTRYPOINT /bin/bash diff --git a/README.md b/README.md index 483c67f3771..b9b2da3362e 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,20 @@ -# Generated SDKs for the ORY Ecosystem +# Generated SDKs for the Ory Ecosystem All SDKs provided in this repository are generated using openapi-generator. +## Ory Network SDKs + +When developing against [Ory Network](https://www.ory.sh/docs/sdk), use the +latest `client` or `ory-client` SDK for your preferred language. It bundles the +individual SDKs (Identities, OAuth2, Permissions) and works with [Ory API +keys](https://www.ory.sh/docs/concepts/personal-access-token). + +## Ory self-hosted SDKs + +When developing against self-hosted Ory components (Kratos, Hydra, Keto), use +the corresponding individual SDKs for your language and match the SDK version to +the version of Kratos/Hydra/Keto you have deployed. + ## Publish the Docker Image To publish the SDK Builder Docker Image, create a new GitHub release with the @@ -25,13 +38,13 @@ docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/proj ### Debugging Failing Tests on CI -If a tests fails on CI, you may run the following code snippet to reproduce the failure locally: +If a test fails in CI, you may run the following code snippet to reproduce the failure locally: ```shell script -docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/project --name sdk -it oryd/sdk:v0.0.51 /bin/sh +docker run --platform linux/amd64 --mount type=bind,source="$(pwd)",target=/project --name sdk -it oryd/sdk:v0.0.51 /bin/bash -export FORCE_VERSION=v1.2.17 export FORCE_PROJECT=client # or hydra or something else +export FORCE_VERSION=$(cat /project/spec/$FORCE_PROJECT/latest) # or a specific version, e.g. v1.2.17 cd /project ./scripts/generate.sh diff --git a/clients/client/dart/.openapi-generator/FILES b/clients/client/dart/.openapi-generator/FILES index 1a812345f81..fb3fce01784 100644 --- a/clients/client/dart/.openapi-generator/FILES +++ b/clients/client/dart/.openapi-generator/FILES @@ -40,8 +40,11 @@ doc/CreateRecoveryCodeForIdentityBody.md doc/CreateRecoveryLinkForIdentityBody.md doc/CreateRelationshipBody.md doc/CreateSubscriptionBody.md +doc/CreateSubscriptionCommon.md doc/CreateVerifiableCredentialRequestBody.md doc/CreateWorkspaceMemberInviteBody.md +doc/CreateWorkspacePayload.md +doc/CreateWorkspaceSubscriptionBody.md doc/CredentialSupportedDraft00.md doc/CustomDomain.md doc/DeleteMySessionsCount.md @@ -79,12 +82,10 @@ doc/IdentityCredentialsCode.md doc/IdentityCredentialsOidc.md doc/IdentityCredentialsOidcProvider.md doc/IdentityCredentialsPassword.md -doc/IdentityCredentialsType.md doc/IdentityPatch.md doc/IdentityPatchResponse.md doc/IdentitySchemaContainer.md doc/IdentitySchemaPreset.md -doc/IdentityState.md doc/IdentityWithCredentials.md doc/IdentityWithCredentialsOidc.md doc/IdentityWithCredentialsOidcConfig.md @@ -95,7 +96,6 @@ doc/InternalGetProjectBrandingBody.md doc/InternalIsAXWelcomeScreenEnabledForProjectBody.md doc/InternalIsOwnerForProjectBySlugBody.md doc/InternalIsOwnerForProjectBySlugResponse.md -doc/InternalProvisionMockSubscription.md doc/IntrospectedOAuth2Token.md doc/IsOwnerForProjectBySlug.md doc/IsReady200Response.md @@ -108,6 +108,7 @@ doc/KetoNamespace.md doc/ListEventStreams.md doc/ListMyWorkspacesResponse.md doc/ListOrganizationsResponse.md +doc/ListWorkspaceProjectsResponse.md doc/LoginFlow.md doc/LoginFlowState.md doc/LogoutFlow.md @@ -118,6 +119,7 @@ doc/Message.md doc/MessageDispatch.md doc/MetadataApi.md doc/MetricsDatapoint.md +doc/MigrationOptions.md doc/Namespace.md doc/NeedsPrivilegedSessionError.md doc/NormalizedProject.md @@ -149,6 +151,7 @@ doc/ParseError.md doc/PatchIdentitiesBody.md doc/PerformNativeLogoutBody.md doc/PermissionApi.md +doc/PermissionsOnWorkpaceResponse.md doc/Plan.md doc/PlanDetails.md doc/PostCheckPermissionBody.md @@ -162,6 +165,7 @@ doc/ProjectBrandingTheme.md doc/ProjectCors.md doc/ProjectEventsDatapoint.md doc/ProjectHost.md +doc/ProjectMember.md doc/ProjectMetadata.md doc/ProjectServiceIdentity.md doc/ProjectServiceOAuth2.md @@ -197,7 +201,6 @@ doc/SetProjectBrandingThemeBody.md doc/SettingsFlow.md doc/SettingsFlowState.md doc/SourcePosition.md -doc/StripeCustomer.md doc/SubjectSet.md doc/Subscription.md doc/SuccessfulCodeExchangeResponse.md @@ -248,6 +251,7 @@ doc/UpdateSubscriptionBody.md doc/UpdateVerificationFlowBody.md doc/UpdateVerificationFlowWithCodeMethod.md doc/UpdateVerificationFlowWithLinkMethod.md +doc/UpdateWorkspacePayload.md doc/Usage.md doc/VerifiableCredentialPrimingResponse.md doc/VerifiableCredentialProof.md @@ -259,6 +263,7 @@ doc/Version.md doc/Warning.md doc/WellknownApi.md doc/Workspace.md +doc/WorkspaceMeta.md lib/ory_client.dart lib/src/api.dart lib/src/api/courier_api.dart @@ -317,8 +322,11 @@ lib/src/model/create_recovery_code_for_identity_body.dart lib/src/model/create_recovery_link_for_identity_body.dart lib/src/model/create_relationship_body.dart lib/src/model/create_subscription_body.dart +lib/src/model/create_subscription_common.dart lib/src/model/create_verifiable_credential_request_body.dart lib/src/model/create_workspace_member_invite_body.dart +lib/src/model/create_workspace_payload.dart +lib/src/model/create_workspace_subscription_body.dart lib/src/model/credential_supported_draft00.dart lib/src/model/custom_domain.dart lib/src/model/date.dart @@ -354,12 +362,10 @@ lib/src/model/identity_credentials_code.dart lib/src/model/identity_credentials_oidc.dart lib/src/model/identity_credentials_oidc_provider.dart lib/src/model/identity_credentials_password.dart -lib/src/model/identity_credentials_type.dart lib/src/model/identity_patch.dart lib/src/model/identity_patch_response.dart lib/src/model/identity_schema_container.dart lib/src/model/identity_schema_preset.dart -lib/src/model/identity_state.dart lib/src/model/identity_with_credentials.dart lib/src/model/identity_with_credentials_oidc.dart lib/src/model/identity_with_credentials_oidc_config.dart @@ -370,7 +376,6 @@ lib/src/model/internal_get_project_branding_body.dart lib/src/model/internal_is_ax_welcome_screen_enabled_for_project_body.dart lib/src/model/internal_is_owner_for_project_by_slug_body.dart lib/src/model/internal_is_owner_for_project_by_slug_response.dart -lib/src/model/internal_provision_mock_subscription.dart lib/src/model/introspected_o_auth2_token.dart lib/src/model/is_owner_for_project_by_slug.dart lib/src/model/is_ready200_response.dart @@ -382,6 +387,7 @@ lib/src/model/keto_namespace.dart lib/src/model/list_event_streams.dart lib/src/model/list_my_workspaces_response.dart lib/src/model/list_organizations_response.dart +lib/src/model/list_workspace_projects_response.dart lib/src/model/login_flow.dart lib/src/model/login_flow_state.dart lib/src/model/logout_flow.dart @@ -391,6 +397,7 @@ lib/src/model/member_invite.dart lib/src/model/message.dart lib/src/model/message_dispatch.dart lib/src/model/metrics_datapoint.dart +lib/src/model/migration_options.dart lib/src/model/namespace.dart lib/src/model/needs_privileged_session_error.dart lib/src/model/normalized_project.dart @@ -419,6 +426,7 @@ lib/src/model/pagination_headers.dart lib/src/model/parse_error.dart lib/src/model/patch_identities_body.dart lib/src/model/perform_native_logout_body.dart +lib/src/model/permissions_on_workpace_response.dart lib/src/model/plan.dart lib/src/model/plan_details.dart lib/src/model/post_check_permission_body.dart @@ -431,6 +439,7 @@ lib/src/model/project_branding_theme.dart lib/src/model/project_cors.dart lib/src/model/project_events_datapoint.dart lib/src/model/project_host.dart +lib/src/model/project_member.dart lib/src/model/project_metadata.dart lib/src/model/project_service_identity.dart lib/src/model/project_service_o_auth2.dart @@ -465,7 +474,6 @@ lib/src/model/set_project_branding_theme_body.dart lib/src/model/settings_flow.dart lib/src/model/settings_flow_state.dart lib/src/model/source_position.dart -lib/src/model/stripe_customer.dart lib/src/model/subject_set.dart lib/src/model/subscription.dart lib/src/model/successful_code_exchange_response.dart @@ -516,6 +524,7 @@ lib/src/model/update_subscription_body.dart lib/src/model/update_verification_flow_body.dart lib/src/model/update_verification_flow_with_code_method.dart lib/src/model/update_verification_flow_with_link_method.dart +lib/src/model/update_workspace_payload.dart lib/src/model/usage.dart lib/src/model/verifiable_credential_priming_response.dart lib/src/model/verifiable_credential_proof.dart @@ -526,6 +535,7 @@ lib/src/model/verification_flow_state.dart lib/src/model/version.dart lib/src/model/warning.dart lib/src/model/workspace.dart +lib/src/model/workspace_meta.dart lib/src/serializers.dart pubspec.yaml test/accept_o_auth2_consent_request_session_test.dart @@ -566,8 +576,11 @@ test/create_recovery_code_for_identity_body_test.dart test/create_recovery_link_for_identity_body_test.dart test/create_relationship_body_test.dart test/create_subscription_body_test.dart +test/create_subscription_common_test.dart test/create_verifiable_credential_request_body_test.dart test/create_workspace_member_invite_body_test.dart +test/create_workspace_payload_test.dart +test/create_workspace_subscription_body_test.dart test/credential_supported_draft00_test.dart test/custom_domain_test.dart test/delete_my_sessions_count_test.dart @@ -604,12 +617,10 @@ test/identity_credentials_oidc_provider_test.dart test/identity_credentials_oidc_test.dart test/identity_credentials_password_test.dart test/identity_credentials_test.dart -test/identity_credentials_type_test.dart test/identity_patch_response_test.dart test/identity_patch_test.dart test/identity_schema_container_test.dart test/identity_schema_preset_test.dart -test/identity_state_test.dart test/identity_test.dart test/identity_with_credentials_oidc_config_provider_test.dart test/identity_with_credentials_oidc_config_test.dart @@ -621,7 +632,6 @@ test/internal_get_project_branding_body_test.dart test/internal_is_ax_welcome_screen_enabled_for_project_body_test.dart test/internal_is_owner_for_project_by_slug_body_test.dart test/internal_is_owner_for_project_by_slug_response_test.dart -test/internal_provision_mock_subscription_test.dart test/introspected_o_auth2_token_test.dart test/is_owner_for_project_by_slug_test.dart test/is_ready200_response_test.dart @@ -634,6 +644,7 @@ test/keto_namespace_test.dart test/list_event_streams_test.dart test/list_my_workspaces_response_test.dart test/list_organizations_response_test.dart +test/list_workspace_projects_response_test.dart test/login_flow_state_test.dart test/login_flow_test.dart test/logout_flow_test.dart @@ -644,6 +655,7 @@ test/message_dispatch_test.dart test/message_test.dart test/metadata_api_test.dart test/metrics_datapoint_test.dart +test/migration_options_test.dart test/namespace_test.dart test/needs_privileged_session_error_test.dart test/normalized_project_revision_courier_channel_test.dart @@ -675,6 +687,7 @@ test/parse_error_test.dart test/patch_identities_body_test.dart test/perform_native_logout_body_test.dart test/permission_api_test.dart +test/permissions_on_workpace_response_test.dart test/plan_details_test.dart test/plan_test.dart test/post_check_permission_body_test.dart @@ -687,6 +700,7 @@ test/project_branding_theme_test.dart test/project_cors_test.dart test/project_events_datapoint_test.dart test/project_host_test.dart +test/project_member_test.dart test/project_metadata_test.dart test/project_service_identity_test.dart test/project_service_o_auth2_test.dart @@ -723,7 +737,6 @@ test/set_project_test.dart test/settings_flow_state_test.dart test/settings_flow_test.dart test/source_position_test.dart -test/stripe_customer_test.dart test/subject_set_test.dart test/subscription_test.dart test/successful_code_exchange_response_test.dart @@ -774,6 +787,7 @@ test/update_subscription_body_test.dart test/update_verification_flow_body_test.dart test/update_verification_flow_with_code_method_test.dart test/update_verification_flow_with_link_method_test.dart +test/update_workspace_payload_test.dart test/usage_test.dart test/verifiable_credential_priming_response_test.dart test/verifiable_credential_proof_test.dart @@ -784,4 +798,5 @@ test/verification_flow_test.dart test/version_test.dart test/warning_test.dart test/wellknown_api_test.dart +test/workspace_meta_test.dart test/workspace_test.dart diff --git a/clients/client/dart/README.md b/clients/client/dart/README.md index e3c60aee617..522b0afa4cf 100644 --- a/clients/client/dart/README.md +++ b/clients/client/dart/README.md @@ -5,7 +5,7 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers. This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.5.1 +- API version: v1.8.1 - Build package: org.openapitools.codegen.languages.DartDioClientCodegen ## Requirements @@ -19,7 +19,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https:// To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml ```yaml dependencies: - ory_client: 1.5.1 + ory_client: 1.8.1 ``` ### Github @@ -238,8 +238,11 @@ Class | Method | HTTP request | Description - [CreateRecoveryLinkForIdentityBody](doc/CreateRecoveryLinkForIdentityBody.md) - [CreateRelationshipBody](doc/CreateRelationshipBody.md) - [CreateSubscriptionBody](doc/CreateSubscriptionBody.md) + - [CreateSubscriptionCommon](doc/CreateSubscriptionCommon.md) - [CreateVerifiableCredentialRequestBody](doc/CreateVerifiableCredentialRequestBody.md) - [CreateWorkspaceMemberInviteBody](doc/CreateWorkspaceMemberInviteBody.md) + - [CreateWorkspacePayload](doc/CreateWorkspacePayload.md) + - [CreateWorkspaceSubscriptionBody](doc/CreateWorkspaceSubscriptionBody.md) - [CredentialSupportedDraft00](doc/CredentialSupportedDraft00.md) - [CustomDomain](doc/CustomDomain.md) - [DeleteMySessionsCount](doc/DeleteMySessionsCount.md) @@ -274,12 +277,10 @@ Class | Method | HTTP request | Description - [IdentityCredentialsOidc](doc/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](doc/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](doc/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](doc/IdentityCredentialsType.md) - [IdentityPatch](doc/IdentityPatch.md) - [IdentityPatchResponse](doc/IdentityPatchResponse.md) - [IdentitySchemaContainer](doc/IdentitySchemaContainer.md) - [IdentitySchemaPreset](doc/IdentitySchemaPreset.md) - - [IdentityState](doc/IdentityState.md) - [IdentityWithCredentials](doc/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](doc/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](doc/IdentityWithCredentialsOidcConfig.md) @@ -290,7 +291,6 @@ Class | Method | HTTP request | Description - [InternalIsAXWelcomeScreenEnabledForProjectBody](doc/InternalIsAXWelcomeScreenEnabledForProjectBody.md) - [InternalIsOwnerForProjectBySlugBody](doc/InternalIsOwnerForProjectBySlugBody.md) - [InternalIsOwnerForProjectBySlugResponse](doc/InternalIsOwnerForProjectBySlugResponse.md) - - [InternalProvisionMockSubscription](doc/InternalProvisionMockSubscription.md) - [IntrospectedOAuth2Token](doc/IntrospectedOAuth2Token.md) - [IsOwnerForProjectBySlug](doc/IsOwnerForProjectBySlug.md) - [IsReady200Response](doc/IsReady200Response.md) @@ -302,6 +302,7 @@ Class | Method | HTTP request | Description - [ListEventStreams](doc/ListEventStreams.md) - [ListMyWorkspacesResponse](doc/ListMyWorkspacesResponse.md) - [ListOrganizationsResponse](doc/ListOrganizationsResponse.md) + - [ListWorkspaceProjectsResponse](doc/ListWorkspaceProjectsResponse.md) - [LoginFlow](doc/LoginFlow.md) - [LoginFlowState](doc/LoginFlowState.md) - [LogoutFlow](doc/LogoutFlow.md) @@ -311,6 +312,7 @@ Class | Method | HTTP request | Description - [Message](doc/Message.md) - [MessageDispatch](doc/MessageDispatch.md) - [MetricsDatapoint](doc/MetricsDatapoint.md) + - [MigrationOptions](doc/MigrationOptions.md) - [Namespace](doc/Namespace.md) - [NeedsPrivilegedSessionError](doc/NeedsPrivilegedSessionError.md) - [NormalizedProject](doc/NormalizedProject.md) @@ -339,6 +341,7 @@ Class | Method | HTTP request | Description - [ParseError](doc/ParseError.md) - [PatchIdentitiesBody](doc/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](doc/PerformNativeLogoutBody.md) + - [PermissionsOnWorkpaceResponse](doc/PermissionsOnWorkpaceResponse.md) - [Plan](doc/Plan.md) - [PlanDetails](doc/PlanDetails.md) - [PostCheckPermissionBody](doc/PostCheckPermissionBody.md) @@ -351,6 +354,7 @@ Class | Method | HTTP request | Description - [ProjectCors](doc/ProjectCors.md) - [ProjectEventsDatapoint](doc/ProjectEventsDatapoint.md) - [ProjectHost](doc/ProjectHost.md) + - [ProjectMember](doc/ProjectMember.md) - [ProjectMetadata](doc/ProjectMetadata.md) - [ProjectServiceIdentity](doc/ProjectServiceIdentity.md) - [ProjectServiceOAuth2](doc/ProjectServiceOAuth2.md) @@ -385,7 +389,6 @@ Class | Method | HTTP request | Description - [SettingsFlow](doc/SettingsFlow.md) - [SettingsFlowState](doc/SettingsFlowState.md) - [SourcePosition](doc/SourcePosition.md) - - [StripeCustomer](doc/StripeCustomer.md) - [SubjectSet](doc/SubjectSet.md) - [Subscription](doc/Subscription.md) - [SuccessfulCodeExchangeResponse](doc/SuccessfulCodeExchangeResponse.md) @@ -436,6 +439,7 @@ Class | Method | HTTP request | Description - [UpdateVerificationFlowBody](doc/UpdateVerificationFlowBody.md) - [UpdateVerificationFlowWithCodeMethod](doc/UpdateVerificationFlowWithCodeMethod.md) - [UpdateVerificationFlowWithLinkMethod](doc/UpdateVerificationFlowWithLinkMethod.md) + - [UpdateWorkspacePayload](doc/UpdateWorkspacePayload.md) - [Usage](doc/Usage.md) - [VerifiableCredentialPrimingResponse](doc/VerifiableCredentialPrimingResponse.md) - [VerifiableCredentialProof](doc/VerifiableCredentialProof.md) @@ -446,6 +450,7 @@ Class | Method | HTTP request | Description - [Version](doc/Version.md) - [Warning](doc/Warning.md) - [Workspace](doc/Workspace.md) + - [WorkspaceMeta](doc/WorkspaceMeta.md) ## Documentation For Authorization diff --git a/clients/client/dart/doc/AcceptOAuth2ConsentRequest.md b/clients/client/dart/doc/AcceptOAuth2ConsentRequest.md index f96bf3ba4f6..1b36d1e1d85 100644 --- a/clients/client/dart/doc/AcceptOAuth2ConsentRequest.md +++ b/clients/client/dart/doc/AcceptOAuth2ConsentRequest.md @@ -8,6 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | [**JsonObject**](.md) | | [optional] **grantAccessTokenAudience** | **BuiltList<String>** | | [optional] **grantScope** | **BuiltList<String>** | | [optional] **handledAt** | [**DateTime**](DateTime.md) | | [optional] diff --git a/clients/client/dart/doc/CloudAccount.md b/clients/client/dart/doc/CloudAccount.md index 7cd9d3f7d04..3e1f4c10dc5 100644 --- a/clients/client/dart/doc/CloudAccount.md +++ b/clients/client/dart/doc/CloudAccount.md @@ -8,9 +8,9 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **String** | | [optional] -**id** | **String** | | [optional] -**name** | **String** | | [optional] +**email** | **String** | | +**id** | **String** | | +**name** | **String** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/CreateIdentityBody.md b/clients/client/dart/doc/CreateIdentityBody.md index cb84aa42a78..ce1b501deaf 100644 --- a/clients/client/dart/doc/CreateIdentityBody.md +++ b/clients/client/dart/doc/CreateIdentityBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **metadataPublic** | [**JsonObject**](.md) | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **recoveryAddresses** | [**BuiltList<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**state** | [**IdentityState**](IdentityState.md) | | [optional] +**state** | **String** | State is the identity's state. active StateActive inactive StateInactive | [optional] **traits** | [**JsonObject**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **verifiableAddresses** | [**BuiltList<VerifiableIdentityAddress>**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] diff --git a/clients/client/dart/doc/CreateProjectBody.md b/clients/client/dart/doc/CreateProjectBody.md index 62a9bbeef8a..04d2f21b164 100644 --- a/clients/client/dart/doc/CreateProjectBody.md +++ b/clients/client/dart/doc/CreateProjectBody.md @@ -8,6 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**environment** | **String** | The environment of the project. prod Production dev Development | **name** | **String** | The name of the project to be created | **workspaceId** | **String** | | [optional] diff --git a/clients/client/dart/doc/CreateProjectNormalizedPayload.md b/clients/client/dart/doc/CreateProjectNormalizedPayload.md index 5aed5e160ce..170153bb688 100644 --- a/clients/client/dart/doc/CreateProjectNormalizedPayload.md +++ b/clients/client/dart/doc/CreateProjectNormalizedPayload.md @@ -10,12 +10,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**DateTime**](DateTime.md) | The Project's Revision Creation Date | [optional] **disableAccountExperienceWelcomeScreen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enableAxV2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] +**environment** | **String** | prod Production dev Development | **hydraOauth2AllowedTopLevelClaims** | **BuiltList<String>** | | [optional] **hydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydraOauth2ExcludeNotBeforeClaim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydraOauth2GrantJwtIatOptional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydraOauth2GrantJwtJtiOptional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydraOauth2GrantJwtMaxTtl** | **String** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to '720h'] +**hydraOauth2MirrorTopLevelClaims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydraOauth2PkceEnforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydraOauth2PkceEnforcedForPublicClients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydraOauth2RefreshTokenHook** | **String** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -74,6 +77,7 @@ Name | Type | Description | Notes **kratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **String** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailSubject** | **String** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -159,6 +163,7 @@ Name | Type | Description | Notes **kratosSelfserviceFlowsVerificationUse** | **String** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratosSelfserviceMethodsCodeConfigLifespan** | **String** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratosSelfserviceMethodsCodeEnabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratosSelfserviceMethodsCodeMfaEnabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratosSelfserviceMethodsCodePasswordlessEnabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigBaseUrl** | **String** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigLifespan** | **String** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/dart/doc/CreateSubscriptionBody.md b/clients/client/dart/doc/CreateSubscriptionBody.md index 8b07b1b2388..d00ad87b36f 100644 --- a/clients/client/dart/doc/CreateSubscriptionBody.md +++ b/clients/client/dart/doc/CreateSubscriptionBody.md @@ -11,9 +11,8 @@ Name | Type | Description | Notes **currency** | **String** | usd USD eur Euro | [optional] **interval** | **String** | monthly Monthly yearly Yearly | **plan** | **String** | | -**provisionFirstProject** | **String** | | [optional] +**provisionFirstProject** | **String** | | **returnTo** | **String** | | [optional] -**workspace** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/InternalProvisionMockSubscription.md b/clients/client/dart/doc/CreateSubscriptionCommon.md similarity index 56% rename from clients/client/dart/doc/InternalProvisionMockSubscription.md rename to clients/client/dart/doc/CreateSubscriptionCommon.md index a1259e67130..66856fb8689 100644 --- a/clients/client/dart/doc/InternalProvisionMockSubscription.md +++ b/clients/client/dart/doc/CreateSubscriptionCommon.md @@ -1,4 +1,4 @@ -# ory_client.model.InternalProvisionMockSubscription +# ory_client.model.CreateSubscriptionCommon ## Load the model package ```dart @@ -8,10 +8,10 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currency** | **String** | Currency usd USD eur Euro | -**identityId** | **String** | Identity ID | -**interval** | **String** | Billing Interval monthly Monthly yearly Yearly | -**plan** | **String** | Plan ID | +**currency** | **String** | usd USD eur Euro | [optional] +**interval** | **String** | monthly Monthly yearly Yearly | +**plan** | **String** | | +**returnTo** | **String** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/IdentityCredentialsType.md b/clients/client/dart/doc/CreateWorkspacePayload.md similarity index 78% rename from clients/client/dart/doc/IdentityCredentialsType.md rename to clients/client/dart/doc/CreateWorkspacePayload.md index 89b0e35f360..8472ffb0ce6 100644 --- a/clients/client/dart/doc/IdentityCredentialsType.md +++ b/clients/client/dart/doc/CreateWorkspacePayload.md @@ -1,4 +1,4 @@ -# ory_client.model.IdentityCredentialsType +# ory_client.model.CreateWorkspacePayload ## Load the model package ```dart @@ -8,6 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the workspace | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/CreateWorkspaceSubscriptionBody.md b/clients/client/dart/doc/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..6592dbcab6d --- /dev/null +++ b/clients/client/dart/doc/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,18 @@ +# ory_client.model.CreateWorkspaceSubscriptionBody + +## Load the model package +```dart +import 'package:ory_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | **String** | usd USD eur Euro | [optional] +**interval** | **String** | monthly Monthly yearly Yearly | +**plan** | **String** | | +**returnTo** | **String** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/dart/doc/FrontendApi.md b/clients/client/dart/doc/FrontendApi.md index e9abadc1642..1f50f6e3026 100644 --- a/clients/client/dart/doc/FrontendApi.md +++ b/clients/client/dart/doc/FrontendApi.md @@ -42,7 +42,7 @@ Method | HTTP request | Description # **createBrowserLoginFlow** -> LoginFlow createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization) +> LoginFlow createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via) Create Login Flow for Browsers @@ -59,9 +59,10 @@ final String returnTo = returnTo_example; // String | The URL to return the brow final String cookie = cookie_example; // String | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. final String loginChallenge = loginChallenge_example; // String | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). final String organization = organization_example; // String | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. +final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - final response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); + final response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->createBrowserLoginFlow: $e\n'); @@ -78,6 +79,7 @@ Name | Type | Description | Notes **cookie** | **String**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] **loginChallenge** | **String**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] **organization** | **String**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] + **via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type @@ -320,7 +322,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createNativeLoginFlow** -> LoginFlow createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo) +> LoginFlow createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via) Create Login Flow for Native Apps @@ -336,9 +338,10 @@ final String aal = aal_example; // String | Request a Specific AuthenticationMet final String xSessionToken = xSessionToken_example; // String | The Session Token of the Identity performing the settings flow. final bool returnSessionTokenExchangeCode = true; // bool | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. final String returnTo = returnTo_example; // String | The URL to return the browser to after the flow was completed. +final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - final response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + final response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->createNativeLoginFlow: $e\n'); @@ -354,6 +357,7 @@ Name | Type | Description | Notes **xSessionToken** | **String**| The Session Token of the Identity performing the settings flow. | [optional] **returnSessionTokenExchangeCode** | **bool**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] **returnTo** | **String**| The URL to return the browser to after the flow was completed. | [optional] + **via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type diff --git a/clients/client/dart/doc/Identity.md b/clients/client/dart/doc/Identity.md index 1abfcb48318..8270725f9b1 100644 --- a/clients/client/dart/doc/Identity.md +++ b/clients/client/dart/doc/Identity.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **recoveryAddresses** | [**BuiltList<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **schemaUrl** | **String** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**state** | [**IdentityState**](IdentityState.md) | | [optional] +**state** | **String** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **stateChangedAt** | [**DateTime**](DateTime.md) | | [optional] **traits** | [**JsonObject**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/dart/doc/IdentityApi.md b/clients/client/dart/doc/IdentityApi.md index da23705d335..4de7ddd9e2a 100644 --- a/clients/client/dart/doc/IdentityApi.md +++ b/clients/client/dart/doc/IdentityApi.md @@ -168,7 +168,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createRecoveryLinkForIdentity** -> RecoveryLinkForIdentity createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody) +> RecoveryLinkForIdentity createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody) Create a Recovery Link @@ -182,10 +182,11 @@ import 'package:ory_client/api.dart'; //defaultApiClient.getAuthentication('oryAccessToken').password = 'YOUR_PASSWORD'; final api = OryClient().getIdentityApi(); +final String returnTo = returnTo_example; // String | final CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody = ; // CreateRecoveryLinkForIdentityBody | try { - final response = api.createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody); + final response = api.createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody); print(response); } catch on DioError (e) { print('Exception when calling IdentityApi->createRecoveryLinkForIdentity: $e\n'); @@ -196,6 +197,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **returnTo** | **String**| | [optional] **createRecoveryLinkForIdentityBody** | [**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md)| | [optional] ### Return type @@ -274,7 +276,7 @@ import 'package:ory_client/api.dart'; final api = OryClient().getIdentityApi(); final String id = id_example; // String | ID is the identity's ID. -final String type = type_example; // String | Type is the credential's Type. One of totp, webauthn, lookup +final String type = type_example; // String | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 try { api.deleteIdentityCredentials(id, type); @@ -288,7 +290,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| ID is the identity's ID. | - **type** | **String**| Type is the credential's Type. One of totp, webauthn, lookup | + **type** | **String**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -581,7 +583,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **listIdentities** -> BuiltList listIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar) +> BuiltList listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential) List Identities @@ -600,12 +602,13 @@ final int page = 789; // int | Deprecated Pagination Page DEPRECATED: Please us final int pageSize = 789; // int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). final String pageToken = pageToken_example; // String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). final String consistency = consistency_example; // String | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. -final BuiltList idsFilter = ; // BuiltList | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. +final BuiltList ids = ; // BuiltList | List of ids used to filter identities. If this list is empty, then no filter will be applied. final String credentialsIdentifier = credentialsIdentifier_example; // String | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. final String previewCredentialsIdentifierSimilar = previewCredentialsIdentifierSimilar_example; // String | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. +final BuiltList includeCredential = ; // BuiltList | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. try { - final response = api.listIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + final response = api.listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); print(response); } catch on DioError (e) { print('Exception when calling IdentityApi->listIdentities: $e\n'); @@ -621,9 +624,10 @@ Name | Type | Description | Notes **pageSize** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] **pageToken** | **String**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to '1'] **consistency** | **String**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] - **idsFilter** | [**BuiltList<String>**](String.md)| IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] + **ids** | [**BuiltList<String>**](String.md)| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] **credentialsIdentifier** | **String**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] **previewCredentialsIdentifierSimilar** | **String**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] + **includeCredential** | [**BuiltList<String>**](String.md)| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] ### Return type diff --git a/clients/client/dart/doc/IdentityCredentials.md b/clients/client/dart/doc/IdentityCredentials.md index 1636c30ef5c..91c3b40b5ec 100644 --- a/clients/client/dart/doc/IdentityCredentials.md +++ b/clients/client/dart/doc/IdentityCredentials.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **config** | [**JsonObject**](.md) | | [optional] **createdAt** | [**DateTime**](DateTime.md) | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **identifiers** | **BuiltList<String>** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**type** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**type** | **String** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **version** | **int** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] diff --git a/clients/client/dart/doc/IdentityCredentialsCode.md b/clients/client/dart/doc/IdentityCredentialsCode.md index 9a33adc0a28..3bb1b17c8ab 100644 --- a/clients/client/dart/doc/IdentityCredentialsCode.md +++ b/clients/client/dart/doc/IdentityCredentialsCode.md @@ -8,7 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addressType** | **String** | | [optional] +**addressType** | **String** | The type of the address for this code | [optional] **usedAt** | [**DateTime**](DateTime.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/ListMyWorkspacesResponse.md b/clients/client/dart/doc/ListMyWorkspacesResponse.md index c3ec0d11143..ab2e8b03d05 100644 --- a/clients/client/dart/doc/ListMyWorkspacesResponse.md +++ b/clients/client/dart/doc/ListMyWorkspacesResponse.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasNextPage** | **bool** | | **nextPageToken** | **String** | | -**workspaces** | [**BuiltList<Workspace>**](Workspace.md) | | +**workspaces** | [**BuiltList<WorkspaceMeta>**](WorkspaceMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/ListWorkspaceProjectsResponse.md b/clients/client/dart/doc/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..cde7623b6b2 --- /dev/null +++ b/clients/client/dart/doc/ListWorkspaceProjectsResponse.md @@ -0,0 +1,17 @@ +# ory_client.model.ListWorkspaceProjectsResponse + +## Load the model package +```dart +import 'package:ory_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasNextPage** | **bool** | | +**nextPage** | **String** | | +**projects** | [**BuiltList<ProjectMetadata>**](ProjectMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/dart/doc/LoginFlow.md b/clients/client/dart/doc/LoginFlow.md index b0bbbd3a9dc..7161ec45a77 100644 --- a/clients/client/dart/doc/LoginFlow.md +++ b/clients/client/dart/doc/LoginFlow.md @@ -8,7 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **String** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **createdAt** | [**DateTime**](DateTime.md) | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **String** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http:///?flow= | @@ -22,6 +22,7 @@ Name | Type | Description | Notes **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] **sessionTokenExchangeCode** | **String** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] **state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | +**transientPayload** | [**JsonObject**](.md) | TransientPayload is used to pass data from the login to hooks and email templates | [optional] **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/dart/doc/MigrationOptions.md b/clients/client/dart/doc/MigrationOptions.md new file mode 100644 index 00000000000..746abe5a972 --- /dev/null +++ b/clients/client/dart/doc/MigrationOptions.md @@ -0,0 +1,16 @@ +# ory_client.model.MigrationOptions + +## Load the model package +```dart +import 'package:ory_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**environment** | **String** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | +**projectSubscription** | **String** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/dart/doc/NormalizedProjectRevision.md b/clients/client/dart/doc/NormalizedProjectRevision.md index d03532bfdca..d04eae508a6 100644 --- a/clients/client/dart/doc/NormalizedProjectRevision.md +++ b/clients/client/dart/doc/NormalizedProjectRevision.md @@ -10,12 +10,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**DateTime**](DateTime.md) | The Project's Revision Creation Date | [optional] **disableAccountExperienceWelcomeScreen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enableAxV2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] **hydraOauth2AllowedTopLevelClaims** | **BuiltList<String>** | | [optional] **hydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydraOauth2ExcludeNotBeforeClaim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydraOauth2GrantJwtIatOptional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydraOauth2GrantJwtJtiOptional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydraOauth2GrantJwtMaxTtl** | **String** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to '720h'] +**hydraOauth2MirrorTopLevelClaims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydraOauth2PkceEnforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydraOauth2PkceEnforcedForPublicClients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydraOauth2RefreshTokenHook** | **String** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -74,6 +76,7 @@ Name | Type | Description | Notes **kratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **String** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailSubject** | **String** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -159,6 +162,7 @@ Name | Type | Description | Notes **kratosSelfserviceFlowsVerificationUse** | **String** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratosSelfserviceMethodsCodeConfigLifespan** | **String** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratosSelfserviceMethodsCodeEnabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratosSelfserviceMethodsCodeMfaEnabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratosSelfserviceMethodsCodePasswordlessEnabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigBaseUrl** | **String** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigLifespan** | **String** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/dart/doc/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/dart/doc/NormalizedProjectRevisionThirdPartyProvider.md index b78a19fc3b1..d6d9ecf6648 100644 --- a/clients/client/dart/doc/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/dart/doc/NormalizedProjectRevisionThirdPartyProvider.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **appleTeamId** | **String** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] **authUrl** | **String** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] **azureTenant** | **String** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] +**claimsSource** | **String** | | [optional] **clientId** | **String** | ClientID is the application's Client ID. | [optional] **clientSecret** | **String** | | [optional] **createdAt** | [**DateTime**](DateTime.md) | The Project's Revision Creation Date | [optional] diff --git a/clients/client/dart/doc/OAuth2Client.md b/clients/client/dart/doc/OAuth2Client.md index 0cba732d235..e0ed775a139 100644 --- a/clients/client/dart/doc/OAuth2Client.md +++ b/clients/client/dart/doc/OAuth2Client.md @@ -49,6 +49,7 @@ Name | Type | Description | Notes **scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sectorIdentifierUri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subjectType** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **tokenEndpointAuthMethod** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to 'client_secret_basic'] **tokenEndpointAuthSigningAlg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/client/dart/doc/OAuth2ConsentSession.md b/clients/client/dart/doc/OAuth2ConsentSession.md index 559ce3bab32..b91e7782f1d 100644 --- a/clients/client/dart/doc/OAuth2ConsentSession.md +++ b/clients/client/dart/doc/OAuth2ConsentSession.md @@ -9,6 +9,7 @@ import 'package:ory_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consentRequest** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**context** | [**JsonObject**](.md) | | [optional] **expiresAt** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **grantAccessTokenAudience** | **BuiltList<String>** | | [optional] **grantScope** | **BuiltList<String>** | | [optional] diff --git a/clients/client/dart/doc/PermissionApi.md b/clients/client/dart/doc/PermissionApi.md index 6234b207cc1..d098c4aa3ba 100644 --- a/clients/client/dart/doc/PermissionApi.md +++ b/clients/client/dart/doc/PermissionApi.md @@ -251,7 +251,7 @@ import 'package:ory_client/api.dart'; //defaultApiClient.getAuthentication('oryAccessToken').password = 'YOUR_PASSWORD'; final api = OryClient().getPermissionApi(); -final int maxDepth = 789; // int | nolint:deadcode,unused +final int maxDepth = 789; // int | final PostCheckPermissionOrErrorBody postCheckPermissionOrErrorBody = ; // PostCheckPermissionOrErrorBody | try { @@ -266,7 +266,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **maxDepth** | **int**| nolint:deadcode,unused | [optional] + **maxDepth** | **int**| | [optional] **postCheckPermissionOrErrorBody** | [**PostCheckPermissionOrErrorBody**](PostCheckPermissionOrErrorBody.md)| | [optional] ### Return type diff --git a/clients/client/dart/doc/StripeCustomer.md b/clients/client/dart/doc/PermissionsOnWorkpaceResponse.md similarity index 75% rename from clients/client/dart/doc/StripeCustomer.md rename to clients/client/dart/doc/PermissionsOnWorkpaceResponse.md index 7a96623636e..a2d9a95ea53 100644 --- a/clients/client/dart/doc/StripeCustomer.md +++ b/clients/client/dart/doc/PermissionsOnWorkpaceResponse.md @@ -1,4 +1,4 @@ -# ory_client.model.StripeCustomer +# ory_client.model.PermissionsOnWorkpaceResponse ## Load the model package ```dart @@ -8,7 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **String** | | [optional] +**permissions** | **BuiltMap<String, bool>** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/PlanDetails.md b/clients/client/dart/doc/PlanDetails.md index b696398b8be..b18e5cbcd22 100644 --- a/clients/client/dart/doc/PlanDetails.md +++ b/clients/client/dart/doc/PlanDetails.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **baseFeeYearly** | **int** | BaseFeeYearly is the yearly base fee for the plan. | **custom** | **bool** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | **description** | **String** | Description is the description of the plan. | -**features** | [**BuiltMap<String, GenericUsage>**](GenericUsage.md) | Features are the feature definitions included in the plan. | +**features** | [**BuiltMap<String, GenericUsage>**](GenericUsage.md) | | **name** | **String** | Name is the name of the plan. | **version** | **int** | Version is the version of the plan. The combination of `name@version` must be unique. | diff --git a/clients/client/dart/doc/ProjectApi.md b/clients/client/dart/doc/ProjectApi.md index c9264b8d147..aff809e4962 100644 --- a/clients/client/dart/doc/ProjectApi.md +++ b/clients/client/dart/doc/ProjectApi.md @@ -399,7 +399,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **getProjectMembers** -> BuiltList getProjectMembers(project) +> BuiltList getProjectMembers(project) Get all members associated with this project @@ -431,7 +431,7 @@ Name | Type | Description | Notes ### Return type -[**BuiltList<CloudAccount>**](CloudAccount.md) +[**BuiltList<ProjectMember>**](ProjectMember.md) ### Authorization @@ -461,7 +461,7 @@ import 'package:ory_client/api.dart'; final api = OryClient().getProjectApi(); final String projectId = projectId_example; // String | Project ID final String eventType = eventType_example; // String | The event type to query for -final String resolution = resolution_example; // String | The resolution of the buckets The minimum resolution is 1 hour. +final String resolution = resolution_example; // String | The resolution of the buckets The minimum resolution is 1 minute. final DateTime from = 2013-10-20T19:20:30+01:00; // DateTime | The start RFC3339 date of the time window final DateTime to = 2013-10-20T19:20:30+01:00; // DateTime | The end RFC3339 date of the time window @@ -479,7 +479,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectId** | **String**| Project ID | **eventType** | **String**| The event type to query for | - **resolution** | **String**| The resolution of the buckets The minimum resolution is 1 hour. | + **resolution** | **String**| The resolution of the buckets The minimum resolution is 1 minute. | **from** | **DateTime**| The start RFC3339 date of the time window | **to** | **DateTime**| The end RFC3339 date of the time window | diff --git a/clients/client/dart/doc/ProjectMember.md b/clients/client/dart/doc/ProjectMember.md new file mode 100644 index 00000000000..d879e0f2fd7 --- /dev/null +++ b/clients/client/dart/doc/ProjectMember.md @@ -0,0 +1,18 @@ +# ory_client.model.ProjectMember + +## Load the model package +```dart +import 'package:ory_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | +**id** | **String** | | +**name** | **String** | | +**role** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/dart/doc/ProjectMetadata.md b/clients/client/dart/doc/ProjectMetadata.md index f8bdfb932b5..81540f12e70 100644 --- a/clients/client/dart/doc/ProjectMetadata.md +++ b/clients/client/dart/doc/ProjectMetadata.md @@ -9,6 +9,7 @@ import 'package:ory_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | [**DateTime**](DateTime.md) | The Project's Creation Date | +**environment** | **String** | The environment of the project. prod Production dev Development | **hosts** | **BuiltList<String>** | | **id** | **String** | The project's ID. | **name** | **String** | The project's name if set | diff --git a/clients/client/dart/doc/QuotaUsage.md b/clients/client/dart/doc/QuotaUsage.md index b6af0b6eaf6..b4b8d11a94f 100644 --- a/clients/client/dart/doc/QuotaUsage.md +++ b/clients/client/dart/doc/QuotaUsage.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additionalPrice** | **int** | The additional price per unit in cents. | **canUseMore** | **bool** | | -**feature** | **String** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | +**feature** | **String** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | **featureAvailable** | **bool** | | **included** | **int** | | **used** | **int** | | diff --git a/clients/client/dart/doc/RecoveryFlow.md b/clients/client/dart/doc/RecoveryFlow.md index 5775a3323f1..45363a6f27b 100644 --- a/clients/client/dart/doc/RecoveryFlow.md +++ b/clients/client/dart/doc/RecoveryFlow.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] **state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | +**transientPayload** | [**JsonObject**](.md) | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/client/dart/doc/RegistrationFlow.md b/clients/client/dart/doc/RegistrationFlow.md index e6722568c68..163b30947f0 100644 --- a/clients/client/dart/doc/RegistrationFlow.md +++ b/clients/client/dart/doc/RegistrationFlow.md @@ -8,7 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **String** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **String** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http:///?flow= | **issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the flow occurred. | diff --git a/clients/client/dart/doc/SettingsFlow.md b/clients/client/dart/doc/SettingsFlow.md index 750b9301963..a1829b90f0d 100644 --- a/clients/client/dart/doc/SettingsFlow.md +++ b/clients/client/dart/doc/SettingsFlow.md @@ -17,6 +17,7 @@ Name | Type | Description | Notes **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] **state** | [**JsonObject**](.md) | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | +**transientPayload** | [**JsonObject**](.md) | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/client/dart/doc/Subscription.md b/clients/client/dart/doc/Subscription.md index 2b5b84bba91..f35a2c1fbde 100644 --- a/clients/client/dart/doc/Subscription.md +++ b/clients/client/dart/doc/Subscription.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **currency** | **String** | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | **currentInterval** | **String** | The currently active interval of the subscription monthly Monthly yearly Yearly | **currentPlan** | **String** | The currently active plan of the subscription | +**currentPlanDetails** | [**PlanDetails**](PlanDetails.md) | | [optional] **customerId** | **String** | The ID of the stripe customer | **id** | **String** | The ID of the subscription | **intervalChangesTo** | **String** | | @@ -20,6 +21,7 @@ Name | Type | Description | Notes **planChangesAt** | [**DateTime**](DateTime.md) | | [optional] **planChangesTo** | **String** | | **status** | **String** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | +**stripeCheckoutExpiresAt** | [**DateTime**](DateTime.md) | | [optional] **updatedAt** | [**DateTime**](DateTime.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateIdentityBody.md b/clients/client/dart/doc/UpdateIdentityBody.md index d018ddc712b..ec539934a38 100644 --- a/clients/client/dart/doc/UpdateIdentityBody.md +++ b/clients/client/dart/doc/UpdateIdentityBody.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **metadataAdmin** | [**JsonObject**](.md) | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. | [optional] **metadataPublic** | [**JsonObject**](.md) | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**state** | [**IdentityState**](IdentityState.md) | | +**state** | **String** | State is the identity's state. active StateActive inactive StateInactive | **traits** | [**JsonObject**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateLoginFlowBody.md b/clients/client/dart/doc/UpdateLoginFlowBody.md index 20cc79b3794..ba4da334793 100644 --- a/clients/client/dart/doc/UpdateLoginFlowBody.md +++ b/clients/client/dart/doc/UpdateLoginFlowBody.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | **password** | **String** | The user's password. | **passwordIdentifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **idToken** | **String** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **idTokenNonce** | **String** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **provider** | **String** | The provider to register with | diff --git a/clients/client/dart/doc/UpdateLoginFlowWithCodeMethod.md b/clients/client/dart/doc/UpdateLoginFlowWithCodeMethod.md index eef30d01067..c51ae9d3284 100644 --- a/clients/client/dart/doc/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/dart/doc/UpdateLoginFlowWithCodeMethod.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **identifier** | **String** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] **method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | **resend** | **String** | Resend is set when the user wants to resend the code | [optional] +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateLoginFlowWithOidcMethod.md b/clients/client/dart/doc/UpdateLoginFlowWithOidcMethod.md index 36a9d68edc2..7ac10bd08f4 100644 --- a/clients/client/dart/doc/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/dart/doc/UpdateLoginFlowWithOidcMethod.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **method** | **String** | Method to use This field must be set to `oidc` when using the oidc method. | **provider** | **String** | The provider to register with | **traits** | [**JsonObject**](.md) | The identity traits. This is a placeholder for the registration flow. | [optional] +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **upstreamParameters** | [**JsonObject**](.md) | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateLoginFlowWithPasswordMethod.md b/clients/client/dart/doc/UpdateLoginFlowWithPasswordMethod.md index 26f71d62b0c..6a1964dac78 100644 --- a/clients/client/dart/doc/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/dart/doc/UpdateLoginFlowWithPasswordMethod.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **method** | **String** | Method should be set to \"password\" when logging in using the identifier and password strategy. | **password** | **String** | The user's password. | **passwordIdentifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateLoginFlowWithTotpMethod.md b/clients/client/dart/doc/UpdateLoginFlowWithTotpMethod.md index 344d2eda0ab..228f31a1f09 100644 --- a/clients/client/dart/doc/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/dart/doc/UpdateLoginFlowWithTotpMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **method** | **String** | Method should be set to \"totp\" when logging in using the TOTP strategy. | **totpCode** | **String** | The TOTP code. | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/dart/doc/UpdateLoginFlowWithWebAuthnMethod.md index cda6f026310..ed7e0619646 100644 --- a/clients/client/dart/doc/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/dart/doc/UpdateLoginFlowWithWebAuthnMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **identifier** | **String** | Identifier is the email or username of the user trying to log in. | **method** | **String** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **webauthnLogin** | **String** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateRecoveryFlowBody.md b/clients/client/dart/doc/UpdateRecoveryFlowBody.md index 66f11907594..404010d1737 100644 --- a/clients/client/dart/doc/UpdateRecoveryFlowBody.md +++ b/clients/client/dart/doc/UpdateRecoveryFlowBody.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **code** | **String** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/dart/doc/UpdateRecoveryFlowWithCodeMethod.md index 51ff64185ab..618119bbe71 100644 --- a/clients/client/dart/doc/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/dart/doc/UpdateRecoveryFlowWithCodeMethod.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/dart/doc/UpdateRecoveryFlowWithLinkMethod.md index f802230177d..6eb67866844 100644 --- a/clients/client/dart/doc/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/dart/doc/UpdateRecoveryFlowWithLinkMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateSettingsFlowBody.md b/clients/client/dart/doc/UpdateSettingsFlowBody.md index 6de82deb3f2..0cb960bf3a2 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowBody.md +++ b/clients/client/dart/doc/UpdateSettingsFlowBody.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] **method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | **password** | **String** | Password is the updated password | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **traits** | [**JsonObject**](.md) | The identity's traits in: body | **flow** | **String** | Flow ID is the flow's ID. in: query | [optional] **link** | **String** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] diff --git a/clients/client/dart/doc/UpdateSettingsFlowWithLookupMethod.md b/clients/client/dart/doc/UpdateSettingsFlowWithLookupMethod.md index 06d80de36a5..41f3941086f 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/dart/doc/UpdateSettingsFlowWithLookupMethod.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **lookupSecretRegenerate** | **bool** | If set to true will regenerate the lookup secrets | [optional] **lookupSecretReveal** | **bool** | If set to true will reveal the lookup secrets | [optional] **method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateSettingsFlowWithOidcMethod.md b/clients/client/dart/doc/UpdateSettingsFlowWithOidcMethod.md index 57520e2024e..5a8263298cc 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/dart/doc/UpdateSettingsFlowWithOidcMethod.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **link** | **String** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **method** | **String** | Method Should be set to profile when trying to update a profile. | **traits** | [**JsonObject**](.md) | The identity's traits in: body | [optional] +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **unlink** | **String** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] **upstreamParameters** | [**JsonObject**](.md) | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] diff --git a/clients/client/dart/doc/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/dart/doc/UpdateSettingsFlowWithPasswordMethod.md index 1c8365c8374..a56d29f53ab 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/dart/doc/UpdateSettingsFlowWithPasswordMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] **method** | **String** | Method Should be set to password when trying to update a password. | **password** | **String** | Password is the updated password | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateSettingsFlowWithProfileMethod.md b/clients/client/dart/doc/UpdateSettingsFlowWithProfileMethod.md index c2122dc000f..ed950e0f171 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/dart/doc/UpdateSettingsFlowWithProfileMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] **method** | **String** | Method Should be set to profile when trying to update a profile. | **traits** | [**JsonObject**](.md) | Traits The identity's traits. | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateSettingsFlowWithTotpMethod.md b/clients/client/dart/doc/UpdateSettingsFlowWithTotpMethod.md index d9fb1796f09..c48b4135e6c 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/dart/doc/UpdateSettingsFlowWithTotpMethod.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **method** | **String** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | **totpCode** | **String** | ValidationTOTP must contain a valid TOTP based on the | [optional] **totpUnlink** | **bool** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/dart/doc/UpdateSettingsFlowWithWebAuthnMethod.md index 4a12dc80ea8..c6aaf342b7f 100644 --- a/clients/client/dart/doc/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/dart/doc/UpdateSettingsFlowWithWebAuthnMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] **method** | **String** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **webauthnRegister** | **String** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **webauthnRegisterDisplayname** | **String** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] **webauthnRemove** | **String** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] diff --git a/clients/client/dart/doc/UpdateVerificationFlowBody.md b/clients/client/dart/doc/UpdateVerificationFlowBody.md index 1c717a8c408..0856c2d1ae9 100644 --- a/clients/client/dart/doc/UpdateVerificationFlowBody.md +++ b/clients/client/dart/doc/UpdateVerificationFlowBody.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] **code** | **String** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateVerificationFlowWithCodeMethod.md b/clients/client/dart/doc/UpdateVerificationFlowWithCodeMethod.md index c86032ff812..8d32cd1310d 100644 --- a/clients/client/dart/doc/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/dart/doc/UpdateVerificationFlowWithCodeMethod.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/UpdateVerificationFlowWithLinkMethod.md b/clients/client/dart/doc/UpdateVerificationFlowWithLinkMethod.md index d26c96f63a5..0a20283cc71 100644 --- a/clients/client/dart/doc/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/dart/doc/UpdateVerificationFlowWithLinkMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/IdentityState.md b/clients/client/dart/doc/UpdateWorkspacePayload.md similarity index 78% rename from clients/client/dart/doc/IdentityState.md rename to clients/client/dart/doc/UpdateWorkspacePayload.md index 83a86915bac..05aa6512e24 100644 --- a/clients/client/dart/doc/IdentityState.md +++ b/clients/client/dart/doc/UpdateWorkspacePayload.md @@ -1,4 +1,4 @@ -# ory_client.model.IdentityState +# ory_client.model.UpdateWorkspacePayload ## Load the model package ```dart @@ -8,6 +8,7 @@ import 'package:ory_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the workspace. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dart/doc/VerificationFlow.md b/clients/client/dart/doc/VerificationFlow.md index b6621b72d4f..f01eb740a2d 100644 --- a/clients/client/dart/doc/VerificationFlow.md +++ b/clients/client/dart/doc/VerificationFlow.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] **state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | +**transientPayload** | [**JsonObject**](.md) | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/client/dart/doc/WorkspaceMeta.md b/clients/client/dart/doc/WorkspaceMeta.md new file mode 100644 index 00000000000..6e90d68a46c --- /dev/null +++ b/clients/client/dart/doc/WorkspaceMeta.md @@ -0,0 +1,20 @@ +# ory_client.model.WorkspaceMeta + +## Load the model package +```dart +import 'package:ory_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | [**DateTime**](DateTime.md) | | +**id** | **String** | | +**name** | **String** | | +**subscriptionId** | **String** | | [optional] +**subscriptionPlan** | **String** | | [optional] +**updatedAt** | [**DateTime**](DateTime.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/dart/lib/ory_client.dart b/clients/client/dart/lib/ory_client.dart index e3b69162bcc..7ba4a2133e7 100644 --- a/clients/client/dart/lib/ory_client.dart +++ b/clients/client/dart/lib/ory_client.dart @@ -59,8 +59,11 @@ export 'package:ory_client/src/model/create_recovery_code_for_identity_body.dart export 'package:ory_client/src/model/create_recovery_link_for_identity_body.dart'; export 'package:ory_client/src/model/create_relationship_body.dart'; export 'package:ory_client/src/model/create_subscription_body.dart'; +export 'package:ory_client/src/model/create_subscription_common.dart'; export 'package:ory_client/src/model/create_verifiable_credential_request_body.dart'; export 'package:ory_client/src/model/create_workspace_member_invite_body.dart'; +export 'package:ory_client/src/model/create_workspace_payload.dart'; +export 'package:ory_client/src/model/create_workspace_subscription_body.dart'; export 'package:ory_client/src/model/credential_supported_draft00.dart'; export 'package:ory_client/src/model/custom_domain.dart'; export 'package:ory_client/src/model/delete_my_sessions_count.dart'; @@ -95,12 +98,10 @@ export 'package:ory_client/src/model/identity_credentials_code.dart'; export 'package:ory_client/src/model/identity_credentials_oidc.dart'; export 'package:ory_client/src/model/identity_credentials_oidc_provider.dart'; export 'package:ory_client/src/model/identity_credentials_password.dart'; -export 'package:ory_client/src/model/identity_credentials_type.dart'; export 'package:ory_client/src/model/identity_patch.dart'; export 'package:ory_client/src/model/identity_patch_response.dart'; export 'package:ory_client/src/model/identity_schema_container.dart'; export 'package:ory_client/src/model/identity_schema_preset.dart'; -export 'package:ory_client/src/model/identity_state.dart'; export 'package:ory_client/src/model/identity_with_credentials.dart'; export 'package:ory_client/src/model/identity_with_credentials_oidc.dart'; export 'package:ory_client/src/model/identity_with_credentials_oidc_config.dart'; @@ -111,7 +112,6 @@ export 'package:ory_client/src/model/internal_get_project_branding_body.dart'; export 'package:ory_client/src/model/internal_is_ax_welcome_screen_enabled_for_project_body.dart'; export 'package:ory_client/src/model/internal_is_owner_for_project_by_slug_body.dart'; export 'package:ory_client/src/model/internal_is_owner_for_project_by_slug_response.dart'; -export 'package:ory_client/src/model/internal_provision_mock_subscription.dart'; export 'package:ory_client/src/model/introspected_o_auth2_token.dart'; export 'package:ory_client/src/model/is_owner_for_project_by_slug.dart'; export 'package:ory_client/src/model/is_ready200_response.dart'; @@ -123,6 +123,7 @@ export 'package:ory_client/src/model/keto_namespace.dart'; export 'package:ory_client/src/model/list_event_streams.dart'; export 'package:ory_client/src/model/list_my_workspaces_response.dart'; export 'package:ory_client/src/model/list_organizations_response.dart'; +export 'package:ory_client/src/model/list_workspace_projects_response.dart'; export 'package:ory_client/src/model/login_flow.dart'; export 'package:ory_client/src/model/login_flow_state.dart'; export 'package:ory_client/src/model/logout_flow.dart'; @@ -132,6 +133,7 @@ export 'package:ory_client/src/model/member_invite.dart'; export 'package:ory_client/src/model/message.dart'; export 'package:ory_client/src/model/message_dispatch.dart'; export 'package:ory_client/src/model/metrics_datapoint.dart'; +export 'package:ory_client/src/model/migration_options.dart'; export 'package:ory_client/src/model/namespace.dart'; export 'package:ory_client/src/model/needs_privileged_session_error.dart'; export 'package:ory_client/src/model/normalized_project.dart'; @@ -160,6 +162,7 @@ export 'package:ory_client/src/model/pagination_headers.dart'; export 'package:ory_client/src/model/parse_error.dart'; export 'package:ory_client/src/model/patch_identities_body.dart'; export 'package:ory_client/src/model/perform_native_logout_body.dart'; +export 'package:ory_client/src/model/permissions_on_workpace_response.dart'; export 'package:ory_client/src/model/plan.dart'; export 'package:ory_client/src/model/plan_details.dart'; export 'package:ory_client/src/model/post_check_permission_body.dart'; @@ -172,6 +175,7 @@ export 'package:ory_client/src/model/project_branding_theme.dart'; export 'package:ory_client/src/model/project_cors.dart'; export 'package:ory_client/src/model/project_events_datapoint.dart'; export 'package:ory_client/src/model/project_host.dart'; +export 'package:ory_client/src/model/project_member.dart'; export 'package:ory_client/src/model/project_metadata.dart'; export 'package:ory_client/src/model/project_service_identity.dart'; export 'package:ory_client/src/model/project_service_o_auth2.dart'; @@ -206,7 +210,6 @@ export 'package:ory_client/src/model/set_project_branding_theme_body.dart'; export 'package:ory_client/src/model/settings_flow.dart'; export 'package:ory_client/src/model/settings_flow_state.dart'; export 'package:ory_client/src/model/source_position.dart'; -export 'package:ory_client/src/model/stripe_customer.dart'; export 'package:ory_client/src/model/subject_set.dart'; export 'package:ory_client/src/model/subscription.dart'; export 'package:ory_client/src/model/successful_code_exchange_response.dart'; @@ -257,6 +260,7 @@ export 'package:ory_client/src/model/update_subscription_body.dart'; export 'package:ory_client/src/model/update_verification_flow_body.dart'; export 'package:ory_client/src/model/update_verification_flow_with_code_method.dart'; export 'package:ory_client/src/model/update_verification_flow_with_link_method.dart'; +export 'package:ory_client/src/model/update_workspace_payload.dart'; export 'package:ory_client/src/model/usage.dart'; export 'package:ory_client/src/model/verifiable_credential_priming_response.dart'; export 'package:ory_client/src/model/verifiable_credential_proof.dart'; @@ -267,3 +271,4 @@ export 'package:ory_client/src/model/verification_flow_state.dart'; export 'package:ory_client/src/model/version.dart'; export 'package:ory_client/src/model/warning.dart'; export 'package:ory_client/src/model/workspace.dart'; +export 'package:ory_client/src/model/workspace_meta.dart'; diff --git a/clients/client/dart/lib/src/api/frontend_api.dart b/clients/client/dart/lib/src/api/frontend_api.dart index 533de68f901..e26c94a97e1 100644 --- a/clients/client/dart/lib/src/api/frontend_api.dart +++ b/clients/client/dart/lib/src/api/frontend_api.dart @@ -47,6 +47,7 @@ class FrontendApi { /// * [cookie] - HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. /// * [loginChallenge] - An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). /// * [organization] - An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + /// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -63,6 +64,7 @@ class FrontendApi { String? cookie, String? loginChallenge, String? organization, + String? via, CancelToken? cancelToken, Map? headers, Map? extra, @@ -90,6 +92,7 @@ class FrontendApi { if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), if (loginChallenge != null) r'login_challenge': encodeQueryParameter(_serializers, loginChallenge, const FullType(String)), if (organization != null) r'organization': encodeQueryParameter(_serializers, organization, const FullType(String)), + if (via != null) r'via': encodeQueryParameter(_serializers, via, const FullType(String)), }; final _response = await _dio.request( @@ -556,6 +559,7 @@ class FrontendApi { /// * [xSessionToken] - The Session Token of the Identity performing the settings flow. /// * [returnSessionTokenExchangeCode] - EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. /// * [returnTo] - The URL to return the browser to after the flow was completed. + /// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -571,6 +575,7 @@ class FrontendApi { String? xSessionToken, bool? returnSessionTokenExchangeCode, String? returnTo, + String? via, CancelToken? cancelToken, Map? headers, Map? extra, @@ -597,6 +602,7 @@ class FrontendApi { if (aal != null) r'aal': encodeQueryParameter(_serializers, aal, const FullType(String)), if (returnSessionTokenExchangeCode != null) r'return_session_token_exchange_code': encodeQueryParameter(_serializers, returnSessionTokenExchangeCode, const FullType(bool)), if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), + if (via != null) r'via': encodeQueryParameter(_serializers, via, const FullType(String)), }; final _response = await _dio.request( diff --git a/clients/client/dart/lib/src/api/identity_api.dart b/clients/client/dart/lib/src/api/identity_api.dart index c2207fbfcbc..15aea61473d 100644 --- a/clients/client/dart/lib/src/api/identity_api.dart +++ b/clients/client/dart/lib/src/api/identity_api.dart @@ -339,6 +339,7 @@ class IdentityApi { /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Parameters: + /// * [returnTo] /// * [createRecoveryLinkForIdentityBody] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -350,6 +351,7 @@ class IdentityApi { /// Returns a [Future] containing a [Response] with a [RecoveryLinkForIdentity] as data /// Throws [DioError] if API call or serialization fails Future> createRecoveryLinkForIdentity({ + String? returnTo, CreateRecoveryLinkForIdentityBody? createRecoveryLinkForIdentityBody, CancelToken? cancelToken, Map? headers, @@ -378,6 +380,10 @@ class IdentityApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), + }; + dynamic _bodyData; try { @@ -389,6 +395,7 @@ class IdentityApi { requestOptions: _options.compose( _dio.options, _path, + queryParameters: _queryParameters, ), type: DioErrorType.unknown, error: error, @@ -400,6 +407,7 @@ class IdentityApi { _path, data: _bodyData, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -494,7 +502,7 @@ class IdentityApi { /// /// Parameters: /// * [id] - ID is the identity's ID. - /// * [type] - Type is the credential's Type. One of totp, webauthn, lookup + /// * [type] - Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -991,9 +999,10 @@ class IdentityApi { /// * [pageSize] - Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). /// * [pageToken] - Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). /// * [consistency] - Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - /// * [idsFilter] - IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + /// * [ids] - List of ids used to filter identities. If this list is empty, then no filter will be applied. /// * [credentialsIdentifier] - CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. /// * [previewCredentialsIdentifierSimilar] - This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + /// * [includeCredential] - Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1009,9 +1018,10 @@ class IdentityApi { int? pageSize = 250, String? pageToken = '1', String? consistency, - BuiltList? idsFilter, + BuiltList? ids, String? credentialsIdentifier, String? previewCredentialsIdentifierSimilar, + BuiltList? includeCredential, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1044,9 +1054,10 @@ class IdentityApi { if (pageSize != null) r'page_size': encodeQueryParameter(_serializers, pageSize, const FullType(int)), if (pageToken != null) r'page_token': encodeQueryParameter(_serializers, pageToken, const FullType(String)), if (consistency != null) r'consistency': encodeQueryParameter(_serializers, consistency, const FullType(String)), - if (idsFilter != null) r'ids_filter': encodeCollectionQueryParameter(_serializers, idsFilter, const FullType(BuiltList, [FullType(String)]), format: ListFormat.multi,), + if (ids != null) r'ids': encodeCollectionQueryParameter(_serializers, ids, const FullType(BuiltList, [FullType(String)]), format: ListFormat.multi,), if (credentialsIdentifier != null) r'credentials_identifier': encodeQueryParameter(_serializers, credentialsIdentifier, const FullType(String)), if (previewCredentialsIdentifierSimilar != null) r'preview_credentials_identifier_similar': encodeQueryParameter(_serializers, previewCredentialsIdentifierSimilar, const FullType(String)), + if (includeCredential != null) r'include_credential': encodeCollectionQueryParameter(_serializers, includeCredential, const FullType(BuiltList, [FullType(String)]), format: ListFormat.multi,), }; final _response = await _dio.request( diff --git a/clients/client/dart/lib/src/api/permission_api.dart b/clients/client/dart/lib/src/api/permission_api.dart index 0608d15bfc9..190828199e5 100644 --- a/clients/client/dart/lib/src/api/permission_api.dart +++ b/clients/client/dart/lib/src/api/permission_api.dart @@ -444,7 +444,7 @@ class PermissionApi { /// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Parameters: - /// * [maxDepth] - nolint:deadcode,unused + /// * [maxDepth] /// * [postCheckPermissionOrErrorBody] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request diff --git a/clients/client/dart/lib/src/api/project_api.dart b/clients/client/dart/lib/src/api/project_api.dart index 16abd3c2a12..210d0507034 100644 --- a/clients/client/dart/lib/src/api/project_api.dart +++ b/clients/client/dart/lib/src/api/project_api.dart @@ -10,7 +10,6 @@ import 'package:dio/dio.dart'; import 'package:built_collection/built_collection.dart'; import 'package:ory_client/src/api_util.dart'; import 'package:ory_client/src/model/active_project_in_console.dart'; -import 'package:ory_client/src/model/cloud_account.dart'; import 'package:ory_client/src/model/create_project_api_key_request.dart'; import 'package:ory_client/src/model/create_project_body.dart'; import 'package:ory_client/src/model/error_generic.dart'; @@ -23,6 +22,7 @@ import 'package:ory_client/src/model/organization.dart'; import 'package:ory_client/src/model/organization_body.dart'; import 'package:ory_client/src/model/project.dart'; import 'package:ory_client/src/model/project_api_key.dart'; +import 'package:ory_client/src/model/project_member.dart'; import 'package:ory_client/src/model/project_metadata.dart'; import 'package:ory_client/src/model/set_active_project_in_console_body.dart'; import 'package:ory_client/src/model/set_project.dart'; @@ -708,9 +708,9 @@ class ProjectApi { /// * [onSendProgress] - A [ProgressCallback] that can be used to get the send progress /// * [onReceiveProgress] - A [ProgressCallback] that can be used to get the receive progress /// - /// Returns a [Future] containing a [Response] with a [BuiltList] as data + /// Returns a [Future] containing a [Response] with a [BuiltList] as data /// Throws [DioError] if API call or serialization fails - Future>> getProjectMembers({ + Future>> getProjectMembers({ required String project, CancelToken? cancelToken, Map? headers, @@ -746,14 +746,14 @@ class ProjectApi { onReceiveProgress: onReceiveProgress, ); - BuiltList? _responseData; + BuiltList? _responseData; try { final rawResponse = _response.data; _responseData = rawResponse == null ? null : _serializers.deserialize( rawResponse, - specifiedType: const FullType(BuiltList, [FullType(CloudAccount)]), - ) as BuiltList; + specifiedType: const FullType(BuiltList, [FullType(ProjectMember)]), + ) as BuiltList; } catch (error, stackTrace) { throw DioError( @@ -765,7 +765,7 @@ class ProjectApi { ); } - return Response>( + return Response>( data: _responseData, headers: _response.headers, isRedirect: _response.isRedirect, @@ -783,7 +783,7 @@ class ProjectApi { /// Parameters: /// * [projectId] - Project ID /// * [eventType] - The event type to query for - /// * [resolution] - The resolution of the buckets The minimum resolution is 1 hour. + /// * [resolution] - The resolution of the buckets The minimum resolution is 1 minute. /// * [from] - The start RFC3339 date of the time window /// * [to] - The end RFC3339 date of the time window /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation diff --git a/clients/client/dart/lib/src/model/accept_o_auth2_consent_request.dart b/clients/client/dart/lib/src/model/accept_o_auth2_consent_request.dart index dd5f3e39ab6..4765eede4cd 100644 --- a/clients/client/dart/lib/src/model/accept_o_auth2_consent_request.dart +++ b/clients/client/dart/lib/src/model/accept_o_auth2_consent_request.dart @@ -5,6 +5,7 @@ // ignore_for_file: unused_element import 'package:ory_client/src/model/accept_o_auth2_consent_request_session.dart'; import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -13,6 +14,7 @@ part 'accept_o_auth2_consent_request.g.dart'; /// AcceptOAuth2ConsentRequest /// /// Properties: +/// * [context] /// * [grantAccessTokenAudience] /// * [grantScope] /// * [handledAt] @@ -21,6 +23,9 @@ part 'accept_o_auth2_consent_request.g.dart'; /// * [session] @BuiltValue() abstract class AcceptOAuth2ConsentRequest implements Built { + @BuiltValueField(wireName: r'context') + JsonObject? get context; + @BuiltValueField(wireName: r'grant_access_token_audience') BuiltList? get grantAccessTokenAudience; @@ -64,6 +69,13 @@ class _$AcceptOAuth2ConsentRequestSerializer implements PrimitiveSerializer? grantAccessTokenAudience; @override @@ -25,7 +27,8 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { (new AcceptOAuth2ConsentRequestBuilder()..update(updates))._build(); _$AcceptOAuth2ConsentRequest._( - {this.grantAccessTokenAudience, + {this.context, + this.grantAccessTokenAudience, this.grantScope, this.handledAt, this.remember, @@ -46,6 +49,7 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { bool operator ==(Object other) { if (identical(other, this)) return true; return other is AcceptOAuth2ConsentRequest && + context == other.context && grantAccessTokenAudience == other.grantAccessTokenAudience && grantScope == other.grantScope && handledAt == other.handledAt && @@ -57,6 +61,7 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { @override int get hashCode { var _$hash = 0; + _$hash = $jc(_$hash, context.hashCode); _$hash = $jc(_$hash, grantAccessTokenAudience.hashCode); _$hash = $jc(_$hash, grantScope.hashCode); _$hash = $jc(_$hash, handledAt.hashCode); @@ -70,6 +75,7 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { @override String toString() { return (newBuiltValueToStringHelper(r'AcceptOAuth2ConsentRequest') + ..add('context', context) ..add('grantAccessTokenAudience', grantAccessTokenAudience) ..add('grantScope', grantScope) ..add('handledAt', handledAt) @@ -85,6 +91,10 @@ class AcceptOAuth2ConsentRequestBuilder Builder { _$AcceptOAuth2ConsentRequest? _$v; + JsonObject? _context; + JsonObject? get context => _$this._context; + set context(JsonObject? context) => _$this._context = context; + ListBuilder? _grantAccessTokenAudience; ListBuilder get grantAccessTokenAudience => _$this._grantAccessTokenAudience ??= new ListBuilder(); @@ -122,6 +132,7 @@ class AcceptOAuth2ConsentRequestBuilder AcceptOAuth2ConsentRequestBuilder get _$this { final $v = _$v; if ($v != null) { + _context = $v.context; _grantAccessTokenAudience = $v.grantAccessTokenAudience?.toBuilder(); _grantScope = $v.grantScope?.toBuilder(); _handledAt = $v.handledAt; @@ -152,6 +163,7 @@ class AcceptOAuth2ConsentRequestBuilder try { _$result = _$v ?? new _$AcceptOAuth2ConsentRequest._( + context: context, grantAccessTokenAudience: _grantAccessTokenAudience?.build(), grantScope: _grantScope?.build(), handledAt: handledAt, diff --git a/clients/client/dart/lib/src/model/cloud_account.dart b/clients/client/dart/lib/src/model/cloud_account.dart index 4928fc32010..61850d86202 100644 --- a/clients/client/dart/lib/src/model/cloud_account.dart +++ b/clients/client/dart/lib/src/model/cloud_account.dart @@ -17,13 +17,13 @@ part 'cloud_account.g.dart'; @BuiltValue() abstract class CloudAccount implements Built { @BuiltValueField(wireName: r'email') - String? get email; + String get email; @BuiltValueField(wireName: r'id') - String? get id; + String get id; @BuiltValueField(wireName: r'name') - String? get name; + String get name; CloudAccount._(); @@ -48,27 +48,21 @@ class _$CloudAccountSerializer implements PrimitiveSerializer { CloudAccount object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.email != null) { - yield r'email'; - yield serializers.serialize( - object.email, - specifiedType: const FullType(String), - ); - } - if (object.id != null) { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - } - if (object.name != null) { - yield r'name'; - yield serializers.serialize( - object.name, - specifiedType: const FullType(String), - ); - } + yield r'email'; + yield serializers.serialize( + object.email, + specifiedType: const FullType(String), + ); + yield r'id'; + yield serializers.serialize( + object.id, + specifiedType: const FullType(String), + ); + yield r'name'; + yield serializers.serialize( + object.name, + specifiedType: const FullType(String), + ); } @override diff --git a/clients/client/dart/lib/src/model/cloud_account.g.dart b/clients/client/dart/lib/src/model/cloud_account.g.dart index 2f42e83ac50..125b41bf3fb 100644 --- a/clients/client/dart/lib/src/model/cloud_account.g.dart +++ b/clients/client/dart/lib/src/model/cloud_account.g.dart @@ -8,16 +8,21 @@ part of 'cloud_account.dart'; class _$CloudAccount extends CloudAccount { @override - final String? email; + final String email; @override - final String? id; + final String id; @override - final String? name; + final String name; factory _$CloudAccount([void Function(CloudAccountBuilder)? updates]) => (new CloudAccountBuilder()..update(updates))._build(); - _$CloudAccount._({this.email, this.id, this.name}) : super._(); + _$CloudAccount._({required this.email, required this.id, required this.name}) + : super._() { + BuiltValueNullFieldError.checkNotNull(email, r'CloudAccount', 'email'); + BuiltValueNullFieldError.checkNotNull(id, r'CloudAccount', 'id'); + BuiltValueNullFieldError.checkNotNull(name, r'CloudAccount', 'name'); + } @override CloudAccount rebuild(void Function(CloudAccountBuilder) updates) => @@ -101,8 +106,14 @@ class CloudAccountBuilder CloudAccount build() => _build(); _$CloudAccount _build() { - final _$result = - _$v ?? new _$CloudAccount._(email: email, id: id, name: name); + final _$result = _$v ?? + new _$CloudAccount._( + email: BuiltValueNullFieldError.checkNotNull( + email, r'CloudAccount', 'email'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'CloudAccount', 'id'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'CloudAccount', 'name')); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/create_identity_body.dart b/clients/client/dart/lib/src/model/create_identity_body.dart index 43992c95d73..d93312737db 100644 --- a/clients/client/dart/lib/src/model/create_identity_body.dart +++ b/clients/client/dart/lib/src/model/create_identity_body.dart @@ -7,7 +7,6 @@ import 'package:ory_client/src/model/verifiable_identity_address.dart'; import 'package:ory_client/src/model/identity_with_credentials.dart'; import 'package:ory_client/src/model/recovery_identity_address.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:ory_client/src/model/identity_state.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,7 @@ part 'create_identity_body.g.dart'; /// * [metadataPublic] - Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. /// * [recoveryAddresses] - RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. /// * [schemaId] - SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. -/// * [state] +/// * [state] - State is the identity's state. active StateActive inactive StateInactive /// * [traits] - Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. /// * [verifiableAddresses] - VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. @BuiltValue() @@ -46,8 +45,9 @@ abstract class CreateIdentityBody implements Built get serializer => _$createIdentityBodyStateEnumSerializer; + + const CreateIdentityBodyStateEnum._(String name): super(name); + + static BuiltSet get values => _$createIdentityBodyStateEnumValues; + static CreateIdentityBodyStateEnum valueOf(String name) => _$createIdentityBodyStateEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/create_identity_body.g.dart b/clients/client/dart/lib/src/model/create_identity_body.g.dart index 0ad29f1dc83..18d44ff454d 100644 --- a/clients/client/dart/lib/src/model/create_identity_body.g.dart +++ b/clients/client/dart/lib/src/model/create_identity_body.g.dart @@ -6,6 +6,62 @@ part of 'create_identity_body.dart'; // BuiltValueGenerator // ************************************************************************** +const CreateIdentityBodyStateEnum _$createIdentityBodyStateEnum_active = + const CreateIdentityBodyStateEnum._('active'); +const CreateIdentityBodyStateEnum _$createIdentityBodyStateEnum_inactive = + const CreateIdentityBodyStateEnum._('inactive'); + +CreateIdentityBodyStateEnum _$createIdentityBodyStateEnumValueOf(String name) { + switch (name) { + case 'active': + return _$createIdentityBodyStateEnum_active; + case 'inactive': + return _$createIdentityBodyStateEnum_inactive; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createIdentityBodyStateEnumValues = new BuiltSet< + CreateIdentityBodyStateEnum>(const [ + _$createIdentityBodyStateEnum_active, + _$createIdentityBodyStateEnum_inactive, +]); + +Serializer + _$createIdentityBodyStateEnumSerializer = + new _$CreateIdentityBodyStateEnumSerializer(); + +class _$CreateIdentityBodyStateEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + static const Map _fromWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + + @override + final Iterable types = const [CreateIdentityBodyStateEnum]; + @override + final String wireName = 'CreateIdentityBodyStateEnum'; + + @override + Object serialize(Serializers serializers, CreateIdentityBodyStateEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateIdentityBodyStateEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateIdentityBodyStateEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$CreateIdentityBody extends CreateIdentityBody { @override final IdentityWithCredentials? credentials; @@ -18,7 +74,7 @@ class _$CreateIdentityBody extends CreateIdentityBody { @override final String schemaId; @override - final IdentityState? state; + final CreateIdentityBodyStateEnum? state; @override final JsonObject traits; @override @@ -128,9 +184,9 @@ class CreateIdentityBodyBuilder String? get schemaId => _$this._schemaId; set schemaId(String? schemaId) => _$this._schemaId = schemaId; - IdentityState? _state; - IdentityState? get state => _$this._state; - set state(IdentityState? state) => _$this._state = state; + CreateIdentityBodyStateEnum? _state; + CreateIdentityBodyStateEnum? get state => _$this._state; + set state(CreateIdentityBodyStateEnum? state) => _$this._state = state; JsonObject? _traits; JsonObject? get traits => _$this._traits; diff --git a/clients/client/dart/lib/src/model/create_project_body.dart b/clients/client/dart/lib/src/model/create_project_body.dart index c5b119c3971..b4df85ead6b 100644 --- a/clients/client/dart/lib/src/model/create_project_body.dart +++ b/clients/client/dart/lib/src/model/create_project_body.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -11,10 +12,16 @@ part 'create_project_body.g.dart'; /// Create Project Request Body /// /// Properties: +/// * [environment] - The environment of the project. prod Production dev Development /// * [name] - The name of the project to be created /// * [workspaceId] @BuiltValue() abstract class CreateProjectBody implements Built { + /// The environment of the project. prod Production dev Development + @BuiltValueField(wireName: r'environment') + CreateProjectBodyEnvironmentEnum get environment; + // enum environmentEnum { prod, dev, }; + /// The name of the project to be created @BuiltValueField(wireName: r'name') String get name; @@ -45,6 +52,11 @@ class _$CreateProjectBodySerializer implements PrimitiveSerializer get serializer => _$createProjectBodyEnvironmentEnumSerializer; + + const CreateProjectBodyEnvironmentEnum._(String name): super(name); + + static BuiltSet get values => _$createProjectBodyEnvironmentEnumValues; + static CreateProjectBodyEnvironmentEnum valueOf(String name) => _$createProjectBodyEnvironmentEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/create_project_body.g.dart b/clients/client/dart/lib/src/model/create_project_body.g.dart index f6d117f88a2..bb05e515331 100644 --- a/clients/client/dart/lib/src/model/create_project_body.g.dart +++ b/clients/client/dart/lib/src/model/create_project_body.g.dart @@ -6,7 +6,67 @@ part of 'create_project_body.dart'; // BuiltValueGenerator // ************************************************************************** +const CreateProjectBodyEnvironmentEnum _$createProjectBodyEnvironmentEnum_prod = + const CreateProjectBodyEnvironmentEnum._('prod'); +const CreateProjectBodyEnvironmentEnum _$createProjectBodyEnvironmentEnum_dev = + const CreateProjectBodyEnvironmentEnum._('dev'); + +CreateProjectBodyEnvironmentEnum _$createProjectBodyEnvironmentEnumValueOf( + String name) { + switch (name) { + case 'prod': + return _$createProjectBodyEnvironmentEnum_prod; + case 'dev': + return _$createProjectBodyEnvironmentEnum_dev; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createProjectBodyEnvironmentEnumValues = new BuiltSet< + CreateProjectBodyEnvironmentEnum>(const [ + _$createProjectBodyEnvironmentEnum_prod, + _$createProjectBodyEnvironmentEnum_dev, +]); + +Serializer + _$createProjectBodyEnvironmentEnumSerializer = + new _$CreateProjectBodyEnvironmentEnumSerializer(); + +class _$CreateProjectBodyEnvironmentEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + static const Map _fromWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + + @override + final Iterable types = const [CreateProjectBodyEnvironmentEnum]; + @override + final String wireName = 'CreateProjectBodyEnvironmentEnum'; + + @override + Object serialize( + Serializers serializers, CreateProjectBodyEnvironmentEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateProjectBodyEnvironmentEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateProjectBodyEnvironmentEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$CreateProjectBody extends CreateProjectBody { + @override + final CreateProjectBodyEnvironmentEnum environment; @override final String name; @override @@ -16,7 +76,11 @@ class _$CreateProjectBody extends CreateProjectBody { [void Function(CreateProjectBodyBuilder)? updates]) => (new CreateProjectBodyBuilder()..update(updates))._build(); - _$CreateProjectBody._({required this.name, this.workspaceId}) : super._() { + _$CreateProjectBody._( + {required this.environment, required this.name, this.workspaceId}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + environment, r'CreateProjectBody', 'environment'); BuiltValueNullFieldError.checkNotNull(name, r'CreateProjectBody', 'name'); } @@ -32,6 +96,7 @@ class _$CreateProjectBody extends CreateProjectBody { bool operator ==(Object other) { if (identical(other, this)) return true; return other is CreateProjectBody && + environment == other.environment && name == other.name && workspaceId == other.workspaceId; } @@ -39,6 +104,7 @@ class _$CreateProjectBody extends CreateProjectBody { @override int get hashCode { var _$hash = 0; + _$hash = $jc(_$hash, environment.hashCode); _$hash = $jc(_$hash, name.hashCode); _$hash = $jc(_$hash, workspaceId.hashCode); _$hash = $jf(_$hash); @@ -48,6 +114,7 @@ class _$CreateProjectBody extends CreateProjectBody { @override String toString() { return (newBuiltValueToStringHelper(r'CreateProjectBody') + ..add('environment', environment) ..add('name', name) ..add('workspaceId', workspaceId)) .toString(); @@ -58,6 +125,11 @@ class CreateProjectBodyBuilder implements Builder { _$CreateProjectBody? _$v; + CreateProjectBodyEnvironmentEnum? _environment; + CreateProjectBodyEnvironmentEnum? get environment => _$this._environment; + set environment(CreateProjectBodyEnvironmentEnum? environment) => + _$this._environment = environment; + String? _name; String? get name => _$this._name; set name(String? name) => _$this._name = name; @@ -73,6 +145,7 @@ class CreateProjectBodyBuilder CreateProjectBodyBuilder get _$this { final $v = _$v; if ($v != null) { + _environment = $v.environment; _name = $v.name; _workspaceId = $v.workspaceId; _$v = null; @@ -97,6 +170,8 @@ class CreateProjectBodyBuilder _$CreateProjectBody _build() { final _$result = _$v ?? new _$CreateProjectBody._( + environment: BuiltValueNullFieldError.checkNotNull( + environment, r'CreateProjectBody', 'environment'), name: BuiltValueNullFieldError.checkNotNull( name, r'CreateProjectBody', 'name'), workspaceId: workspaceId); diff --git a/clients/client/dart/lib/src/model/create_project_normalized_payload.dart b/clients/client/dart/lib/src/model/create_project_normalized_payload.dart index dfc9171ee9e..d1d42d0f9a8 100644 --- a/clients/client/dart/lib/src/model/create_project_normalized_payload.dart +++ b/clients/client/dart/lib/src/model/create_project_normalized_payload.dart @@ -21,12 +21,15 @@ part 'create_project_normalized_payload.g.dart'; /// Properties: /// * [createdAt] - The Project's Revision Creation Date /// * [disableAccountExperienceWelcomeScreen] - Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. +/// * [enableAxV2] - Whether the new account experience is enabled and reachable. +/// * [environment] - prod Production dev Development /// * [hydraOauth2AllowedTopLevelClaims] /// * [hydraOauth2ClientCredentialsDefaultGrantAllowedScope] - Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. /// * [hydraOauth2ExcludeNotBeforeClaim] - Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. /// * [hydraOauth2GrantJwtIatOptional] - Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. /// * [hydraOauth2GrantJwtJtiOptional] - Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. /// * [hydraOauth2GrantJwtMaxTtl] - Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. +/// * [hydraOauth2MirrorTopLevelClaims] - Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. /// * [hydraOauth2PkceEnforced] - Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. /// * [hydraOauth2PkceEnforcedForPublicClients] - Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. /// * [hydraOauth2RefreshTokenHook] - Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. @@ -85,6 +88,7 @@ part 'create_project_normalized_payload.g.dart'; /// * [kratosCourierTemplatesLoginCodeValidEmailBodyHtml] - Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. /// * [kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext] - Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. /// * [kratosCourierTemplatesLoginCodeValidEmailSubject] - Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. +/// * [kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext] - Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. /// * [kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml] - Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. /// * [kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext] - Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. /// * [kratosCourierTemplatesRecoveryCodeInvalidEmailSubject] - Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. @@ -170,6 +174,7 @@ part 'create_project_normalized_payload.g.dart'; /// * [kratosSelfserviceFlowsVerificationUse] - Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode /// * [kratosSelfserviceMethodsCodeConfigLifespan] - Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. /// * [kratosSelfserviceMethodsCodeEnabled] - Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. +/// * [kratosSelfserviceMethodsCodeMfaEnabled] - Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. /// * [kratosSelfserviceMethodsCodePasswordlessEnabled] - Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. /// * [kratosSelfserviceMethodsLinkConfigBaseUrl] - Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. /// * [kratosSelfserviceMethodsLinkConfigLifespan] - Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. @@ -218,6 +223,15 @@ abstract class CreateProjectNormalizedPayload implements Built? get hydraOauth2AllowedTopLevelClaims; @@ -241,6 +255,10 @@ abstract class CreateProjectNormalizedPayload implements Built get serializer => _$createProjectNormalizedPayloadEnvironmentEnumSerializer; + + const CreateProjectNormalizedPayloadEnvironmentEnum._(String name): super(name); + + static BuiltSet get values => _$createProjectNormalizedPayloadEnvironmentEnumValues; + static CreateProjectNormalizedPayloadEnvironmentEnum valueOf(String name) => _$createProjectNormalizedPayloadEnvironmentEnumValueOf(name); +} + class CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum extends EnumClass { /// Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens This governs the \"strategies.access_token\" setting. opaque Oauth2AccessTokenStrategyOpaque jwt Oauth2AccessTokenStrategyJwt diff --git a/clients/client/dart/lib/src/model/create_project_normalized_payload.g.dart b/clients/client/dart/lib/src/model/create_project_normalized_payload.g.dart index fa52479e31b..6f8503a6242 100644 --- a/clients/client/dart/lib/src/model/create_project_normalized_payload.g.dart +++ b/clients/client/dart/lib/src/model/create_project_normalized_payload.g.dart @@ -6,6 +6,32 @@ part of 'create_project_normalized_payload.dart'; // BuiltValueGenerator // ************************************************************************** +const CreateProjectNormalizedPayloadEnvironmentEnum + _$createProjectNormalizedPayloadEnvironmentEnum_prod = + const CreateProjectNormalizedPayloadEnvironmentEnum._('prod'); +const CreateProjectNormalizedPayloadEnvironmentEnum + _$createProjectNormalizedPayloadEnvironmentEnum_dev = + const CreateProjectNormalizedPayloadEnvironmentEnum._('dev'); + +CreateProjectNormalizedPayloadEnvironmentEnum + _$createProjectNormalizedPayloadEnvironmentEnumValueOf(String name) { + switch (name) { + case 'prod': + return _$createProjectNormalizedPayloadEnvironmentEnum_prod; + case 'dev': + return _$createProjectNormalizedPayloadEnvironmentEnum_dev; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createProjectNormalizedPayloadEnvironmentEnumValues = new BuiltSet< + CreateProjectNormalizedPayloadEnvironmentEnum>(const [ + _$createProjectNormalizedPayloadEnvironmentEnum_prod, + _$createProjectNormalizedPayloadEnvironmentEnum_dev, +]); + const CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum _$createProjectNormalizedPayloadHydraStrategiesAccessTokenEnum_opaque = const CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum._( @@ -125,6 +151,9 @@ final BuiltSet< _$createProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnum_code, ]); +Serializer + _$createProjectNormalizedPayloadEnvironmentEnumSerializer = + new _$CreateProjectNormalizedPayloadEnvironmentEnumSerializer(); Serializer _$createProjectNormalizedPayloadHydraStrategiesAccessTokenEnumSerializer = new _$CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnumSerializer(); @@ -139,6 +168,39 @@ Serializer< _$createProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnumSerializer = new _$CreateProjectNormalizedPayloadKratosSelfserviceFlowsVerificationUseEnumSerializer(); +class _$CreateProjectNormalizedPayloadEnvironmentEnumSerializer + implements + PrimitiveSerializer { + static const Map _toWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + static const Map _fromWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + + @override + final Iterable types = const [ + CreateProjectNormalizedPayloadEnvironmentEnum + ]; + @override + final String wireName = 'CreateProjectNormalizedPayloadEnvironmentEnum'; + + @override + Object serialize(Serializers serializers, + CreateProjectNormalizedPayloadEnvironmentEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateProjectNormalizedPayloadEnvironmentEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateProjectNormalizedPayloadEnvironmentEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnumSerializer implements PrimitiveSerializer< @@ -291,6 +353,10 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { @override final bool? disableAccountExperienceWelcomeScreen; @override + final bool? enableAxV2; + @override + final CreateProjectNormalizedPayloadEnvironmentEnum environment; + @override final BuiltList? hydraOauth2AllowedTopLevelClaims; @override final bool? hydraOauth2ClientCredentialsDefaultGrantAllowedScope; @@ -303,6 +369,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { @override final String? hydraOauth2GrantJwtMaxTtl; @override + final bool? hydraOauth2MirrorTopLevelClaims; + @override final bool? hydraOauth2PkceEnforced; @override final bool? hydraOauth2PkceEnforcedForPublicClients; @@ -422,6 +490,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { @override final String? kratosCourierTemplatesLoginCodeValidEmailSubject; @override + final String? kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + @override final String? kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @override final String? kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext; @@ -604,6 +674,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { @override final bool? kratosSelfserviceMethodsCodeEnabled; @override + final bool? kratosSelfserviceMethodsCodeMfaEnabled; + @override final bool? kratosSelfserviceMethodsCodePasswordlessEnabled; @override final String? kratosSelfserviceMethodsLinkConfigBaseUrl; @@ -690,12 +762,15 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { _$CreateProjectNormalizedPayload._( {this.createdAt, this.disableAccountExperienceWelcomeScreen, + this.enableAxV2, + required this.environment, this.hydraOauth2AllowedTopLevelClaims, this.hydraOauth2ClientCredentialsDefaultGrantAllowedScope, this.hydraOauth2ExcludeNotBeforeClaim, this.hydraOauth2GrantJwtIatOptional, this.hydraOauth2GrantJwtJtiOptional, this.hydraOauth2GrantJwtMaxTtl, + this.hydraOauth2MirrorTopLevelClaims, this.hydraOauth2PkceEnforced, this.hydraOauth2PkceEnforcedForPublicClients, this.hydraOauth2RefreshTokenHook, @@ -754,6 +829,7 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { this.kratosCourierTemplatesLoginCodeValidEmailBodyHtml, this.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, this.kratosCourierTemplatesLoginCodeValidEmailSubject, + this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, this.kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, @@ -839,6 +915,7 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { this.kratosSelfserviceFlowsVerificationUse, this.kratosSelfserviceMethodsCodeConfigLifespan, this.kratosSelfserviceMethodsCodeEnabled, + this.kratosSelfserviceMethodsCodeMfaEnabled, this.kratosSelfserviceMethodsCodePasswordlessEnabled, this.kratosSelfserviceMethodsLinkConfigBaseUrl, this.kratosSelfserviceMethodsLinkConfigLifespan, @@ -878,6 +955,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { this.updatedAt, this.workspaceId}) : super._() { + BuiltValueNullFieldError.checkNotNull( + environment, r'CreateProjectNormalizedPayload', 'environment'); BuiltValueNullFieldError.checkNotNull( name, r'CreateProjectNormalizedPayload', 'name'); } @@ -898,6 +977,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { createdAt == other.createdAt && disableAccountExperienceWelcomeScreen == other.disableAccountExperienceWelcomeScreen && + enableAxV2 == other.enableAxV2 && + environment == other.environment && hydraOauth2AllowedTopLevelClaims == other.hydraOauth2AllowedTopLevelClaims && hydraOauth2ClientCredentialsDefaultGrantAllowedScope == @@ -909,6 +990,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { hydraOauth2GrantJwtJtiOptional == other.hydraOauth2GrantJwtJtiOptional && hydraOauth2GrantJwtMaxTtl == other.hydraOauth2GrantJwtMaxTtl && + hydraOauth2MirrorTopLevelClaims == + other.hydraOauth2MirrorTopLevelClaims && hydraOauth2PkceEnforced == other.hydraOauth2PkceEnforced && hydraOauth2PkceEnforcedForPublicClients == other.hydraOauth2PkceEnforcedForPublicClients && @@ -995,6 +1078,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { other.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext && kratosCourierTemplatesLoginCodeValidEmailSubject == other.kratosCourierTemplatesLoginCodeValidEmailSubject && + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext == + other.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext && kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml == other.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml && kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext == @@ -1177,6 +1262,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { other.kratosSelfserviceMethodsCodeConfigLifespan && kratosSelfserviceMethodsCodeEnabled == other.kratosSelfserviceMethodsCodeEnabled && + kratosSelfserviceMethodsCodeMfaEnabled == + other.kratosSelfserviceMethodsCodeMfaEnabled && kratosSelfserviceMethodsCodePasswordlessEnabled == other.kratosSelfserviceMethodsCodePasswordlessEnabled && kratosSelfserviceMethodsLinkConfigBaseUrl == @@ -1248,6 +1335,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { var _$hash = 0; _$hash = $jc(_$hash, createdAt.hashCode); _$hash = $jc(_$hash, disableAccountExperienceWelcomeScreen.hashCode); + _$hash = $jc(_$hash, enableAxV2.hashCode); + _$hash = $jc(_$hash, environment.hashCode); _$hash = $jc(_$hash, hydraOauth2AllowedTopLevelClaims.hashCode); _$hash = $jc( _$hash, hydraOauth2ClientCredentialsDefaultGrantAllowedScope.hashCode); @@ -1255,6 +1344,7 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { _$hash = $jc(_$hash, hydraOauth2GrantJwtIatOptional.hashCode); _$hash = $jc(_$hash, hydraOauth2GrantJwtJtiOptional.hashCode); _$hash = $jc(_$hash, hydraOauth2GrantJwtMaxTtl.hashCode); + _$hash = $jc(_$hash, hydraOauth2MirrorTopLevelClaims.hashCode); _$hash = $jc(_$hash, hydraOauth2PkceEnforced.hashCode); _$hash = $jc(_$hash, hydraOauth2PkceEnforcedForPublicClients.hashCode); _$hash = $jc(_$hash, hydraOauth2RefreshTokenHook.hashCode); @@ -1321,6 +1411,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext.hashCode); _$hash = $jc(_$hash, kratosCourierTemplatesLoginCodeValidEmailSubject.hashCode); + _$hash = $jc( + _$hash, kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext.hashCode); _$hash = $jc(_$hash, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml.hashCode); _$hash = $jc(_$hash, @@ -1491,6 +1583,7 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { _$hash = $jc(_$hash, kratosSelfserviceFlowsVerificationUse.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsCodeConfigLifespan.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsCodeEnabled.hashCode); + _$hash = $jc(_$hash, kratosSelfserviceMethodsCodeMfaEnabled.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsCodePasswordlessEnabled.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsLinkConfigBaseUrl.hashCode); @@ -1551,6 +1644,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { ..add('createdAt', createdAt) ..add('disableAccountExperienceWelcomeScreen', disableAccountExperienceWelcomeScreen) + ..add('enableAxV2', enableAxV2) + ..add('environment', environment) ..add('hydraOauth2AllowedTopLevelClaims', hydraOauth2AllowedTopLevelClaims) ..add('hydraOauth2ClientCredentialsDefaultGrantAllowedScope', @@ -1562,6 +1657,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { ..add( 'hydraOauth2GrantJwtJtiOptional', hydraOauth2GrantJwtJtiOptional) ..add('hydraOauth2GrantJwtMaxTtl', hydraOauth2GrantJwtMaxTtl) + ..add('hydraOauth2MirrorTopLevelClaims', + hydraOauth2MirrorTopLevelClaims) ..add('hydraOauth2PkceEnforced', hydraOauth2PkceEnforced) ..add('hydraOauth2PkceEnforcedForPublicClients', hydraOauth2PkceEnforcedForPublicClients) @@ -1648,6 +1745,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext) ..add('kratosCourierTemplatesLoginCodeValidEmailSubject', kratosCourierTemplatesLoginCodeValidEmailSubject) + ..add('kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext', + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) ..add('kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml', kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) ..add('kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext', @@ -1828,6 +1927,8 @@ class _$CreateProjectNormalizedPayload extends CreateProjectNormalizedPayload { kratosSelfserviceMethodsCodeConfigLifespan) ..add('kratosSelfserviceMethodsCodeEnabled', kratosSelfserviceMethodsCodeEnabled) + ..add('kratosSelfserviceMethodsCodeMfaEnabled', + kratosSelfserviceMethodsCodeMfaEnabled) ..add('kratosSelfserviceMethodsCodePasswordlessEnabled', kratosSelfserviceMethodsCodePasswordlessEnabled) ..add('kratosSelfserviceMethodsLinkConfigBaseUrl', @@ -1914,6 +2015,16 @@ class CreateProjectNormalizedPayloadBuilder _$this._disableAccountExperienceWelcomeScreen = disableAccountExperienceWelcomeScreen; + bool? _enableAxV2; + bool? get enableAxV2 => _$this._enableAxV2; + set enableAxV2(bool? enableAxV2) => _$this._enableAxV2 = enableAxV2; + + CreateProjectNormalizedPayloadEnvironmentEnum? _environment; + CreateProjectNormalizedPayloadEnvironmentEnum? get environment => + _$this._environment; + set environment(CreateProjectNormalizedPayloadEnvironmentEnum? environment) => + _$this._environment = environment; + ListBuilder? _hydraOauth2AllowedTopLevelClaims; ListBuilder get hydraOauth2AllowedTopLevelClaims => _$this._hydraOauth2AllowedTopLevelClaims ??= new ListBuilder(); @@ -1955,6 +2066,12 @@ class CreateProjectNormalizedPayloadBuilder set hydraOauth2GrantJwtMaxTtl(String? hydraOauth2GrantJwtMaxTtl) => _$this._hydraOauth2GrantJwtMaxTtl = hydraOauth2GrantJwtMaxTtl; + bool? _hydraOauth2MirrorTopLevelClaims; + bool? get hydraOauth2MirrorTopLevelClaims => + _$this._hydraOauth2MirrorTopLevelClaims; + set hydraOauth2MirrorTopLevelClaims(bool? hydraOauth2MirrorTopLevelClaims) => + _$this._hydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; + bool? _hydraOauth2PkceEnforced; bool? get hydraOauth2PkceEnforced => _$this._hydraOauth2PkceEnforced; set hydraOauth2PkceEnforced(bool? hydraOauth2PkceEnforced) => @@ -2350,6 +2467,14 @@ class CreateProjectNormalizedPayloadBuilder _$this._kratosCourierTemplatesLoginCodeValidEmailSubject = kratosCourierTemplatesLoginCodeValidEmailSubject; + String? _kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + String? get kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext => + _$this._kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + set kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext( + String? kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) => + _$this._kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + String? _kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; String? get kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml => _$this._kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @@ -3061,6 +3186,14 @@ class CreateProjectNormalizedPayloadBuilder _$this._kratosSelfserviceMethodsCodeEnabled = kratosSelfserviceMethodsCodeEnabled; + bool? _kratosSelfserviceMethodsCodeMfaEnabled; + bool? get kratosSelfserviceMethodsCodeMfaEnabled => + _$this._kratosSelfserviceMethodsCodeMfaEnabled; + set kratosSelfserviceMethodsCodeMfaEnabled( + bool? kratosSelfserviceMethodsCodeMfaEnabled) => + _$this._kratosSelfserviceMethodsCodeMfaEnabled = + kratosSelfserviceMethodsCodeMfaEnabled; + bool? _kratosSelfserviceMethodsCodePasswordlessEnabled; bool? get kratosSelfserviceMethodsCodePasswordlessEnabled => _$this._kratosSelfserviceMethodsCodePasswordlessEnabled; @@ -3351,6 +3484,8 @@ class CreateProjectNormalizedPayloadBuilder _createdAt = $v.createdAt; _disableAccountExperienceWelcomeScreen = $v.disableAccountExperienceWelcomeScreen; + _enableAxV2 = $v.enableAxV2; + _environment = $v.environment; _hydraOauth2AllowedTopLevelClaims = $v.hydraOauth2AllowedTopLevelClaims?.toBuilder(); _hydraOauth2ClientCredentialsDefaultGrantAllowedScope = @@ -3359,6 +3494,7 @@ class CreateProjectNormalizedPayloadBuilder _hydraOauth2GrantJwtIatOptional = $v.hydraOauth2GrantJwtIatOptional; _hydraOauth2GrantJwtJtiOptional = $v.hydraOauth2GrantJwtJtiOptional; _hydraOauth2GrantJwtMaxTtl = $v.hydraOauth2GrantJwtMaxTtl; + _hydraOauth2MirrorTopLevelClaims = $v.hydraOauth2MirrorTopLevelClaims; _hydraOauth2PkceEnforced = $v.hydraOauth2PkceEnforced; _hydraOauth2PkceEnforcedForPublicClients = $v.hydraOauth2PkceEnforcedForPublicClients; @@ -3443,6 +3579,8 @@ class CreateProjectNormalizedPayloadBuilder $v.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext; _kratosCourierTemplatesLoginCodeValidEmailSubject = $v.kratosCourierTemplatesLoginCodeValidEmailSubject; + _kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = + $v.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; _kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = $v.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; _kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = @@ -3604,6 +3742,8 @@ class CreateProjectNormalizedPayloadBuilder $v.kratosSelfserviceMethodsCodeConfigLifespan; _kratosSelfserviceMethodsCodeEnabled = $v.kratosSelfserviceMethodsCodeEnabled; + _kratosSelfserviceMethodsCodeMfaEnabled = + $v.kratosSelfserviceMethodsCodeMfaEnabled; _kratosSelfserviceMethodsCodePasswordlessEnabled = $v.kratosSelfserviceMethodsCodePasswordlessEnabled; _kratosSelfserviceMethodsLinkConfigBaseUrl = @@ -3695,6 +3835,9 @@ class CreateProjectNormalizedPayloadBuilder createdAt: createdAt, disableAccountExperienceWelcomeScreen: disableAccountExperienceWelcomeScreen, + enableAxV2: enableAxV2, + environment: BuiltValueNullFieldError.checkNotNull( + environment, r'CreateProjectNormalizedPayload', 'environment'), hydraOauth2AllowedTopLevelClaims: _hydraOauth2AllowedTopLevelClaims?.build(), hydraOauth2ClientCredentialsDefaultGrantAllowedScope: @@ -3704,6 +3847,7 @@ class CreateProjectNormalizedPayloadBuilder hydraOauth2GrantJwtIatOptional: hydraOauth2GrantJwtIatOptional, hydraOauth2GrantJwtJtiOptional: hydraOauth2GrantJwtJtiOptional, hydraOauth2GrantJwtMaxTtl: hydraOauth2GrantJwtMaxTtl, + hydraOauth2MirrorTopLevelClaims: hydraOauth2MirrorTopLevelClaims, hydraOauth2PkceEnforced: hydraOauth2PkceEnforced, hydraOauth2PkceEnforcedForPublicClients: hydraOauth2PkceEnforcedForPublicClients, @@ -3772,79 +3916,46 @@ class CreateProjectNormalizedPayloadBuilder kratosCourierHttpRequestConfigAuthType, kratosCourierHttpRequestConfigBody: kratosCourierHttpRequestConfigBody, - kratosCourierHttpRequestConfigHeaders: - kratosCourierHttpRequestConfigHeaders, - kratosCourierHttpRequestConfigMethod: - kratosCourierHttpRequestConfigMethod, - kratosCourierHttpRequestConfigUrl: - kratosCourierHttpRequestConfigUrl, + kratosCourierHttpRequestConfigHeaders: kratosCourierHttpRequestConfigHeaders, + kratosCourierHttpRequestConfigMethod: kratosCourierHttpRequestConfigMethod, + kratosCourierHttpRequestConfigUrl: kratosCourierHttpRequestConfigUrl, kratosCourierSmtpConnectionUri: kratosCourierSmtpConnectionUri, kratosCourierSmtpFromAddress: kratosCourierSmtpFromAddress, kratosCourierSmtpFromName: kratosCourierSmtpFromName, kratosCourierSmtpHeaders: kratosCourierSmtpHeaders, kratosCourierSmtpLocalName: kratosCourierSmtpLocalName, - kratosCourierTemplatesLoginCodeValidEmailBodyHtml: - kratosCourierTemplatesLoginCodeValidEmailBodyHtml, - kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext: - kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, - kratosCourierTemplatesLoginCodeValidEmailSubject: - kratosCourierTemplatesLoginCodeValidEmailSubject, - kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: - kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, - kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: - kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, - kratosCourierTemplatesRecoveryCodeInvalidEmailSubject: - kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, - kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml: - kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml, - kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext: - kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext, - kratosCourierTemplatesRecoveryCodeValidEmailSubject: - kratosCourierTemplatesRecoveryCodeValidEmailSubject, - kratosCourierTemplatesRecoveryInvalidEmailBodyHtml: - kratosCourierTemplatesRecoveryInvalidEmailBodyHtml, - kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext: - kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext, - kratosCourierTemplatesRecoveryInvalidEmailSubject: - kratosCourierTemplatesRecoveryInvalidEmailSubject, - kratosCourierTemplatesRecoveryValidEmailBodyHtml: - kratosCourierTemplatesRecoveryValidEmailBodyHtml, - kratosCourierTemplatesRecoveryValidEmailBodyPlaintext: - kratosCourierTemplatesRecoveryValidEmailBodyPlaintext, - kratosCourierTemplatesRecoveryValidEmailSubject: - kratosCourierTemplatesRecoveryValidEmailSubject, - kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml: - kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml, - kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext: - kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext, - kratosCourierTemplatesRegistrationCodeValidEmailSubject: - kratosCourierTemplatesRegistrationCodeValidEmailSubject, - kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml: - kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml, - kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext: - kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext, - kratosCourierTemplatesVerificationCodeInvalidEmailSubject: - kratosCourierTemplatesVerificationCodeInvalidEmailSubject, - kratosCourierTemplatesVerificationCodeValidEmailBodyHtml: - kratosCourierTemplatesVerificationCodeValidEmailBodyHtml, - kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext: - kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext, - kratosCourierTemplatesVerificationCodeValidEmailSubject: - kratosCourierTemplatesVerificationCodeValidEmailSubject, - kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext: - kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext, - kratosCourierTemplatesVerificationInvalidEmailBodyHtml: - kratosCourierTemplatesVerificationInvalidEmailBodyHtml, - kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext: - kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext, - kratosCourierTemplatesVerificationInvalidEmailSubject: - kratosCourierTemplatesVerificationInvalidEmailSubject, - kratosCourierTemplatesVerificationValidEmailBodyHtml: - kratosCourierTemplatesVerificationValidEmailBodyHtml, - kratosCourierTemplatesVerificationValidEmailBodyPlaintext: - kratosCourierTemplatesVerificationValidEmailBodyPlaintext, - kratosCourierTemplatesVerificationValidEmailSubject: - kratosCourierTemplatesVerificationValidEmailSubject, + kratosCourierTemplatesLoginCodeValidEmailBodyHtml: kratosCourierTemplatesLoginCodeValidEmailBodyHtml, + kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext: kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, + kratosCourierTemplatesLoginCodeValidEmailSubject: kratosCourierTemplatesLoginCodeValidEmailSubject, + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext: kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, + kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, + kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, + kratosCourierTemplatesRecoveryCodeInvalidEmailSubject: kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, + kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml: kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml, + kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext: kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext, + kratosCourierTemplatesRecoveryCodeValidEmailSubject: kratosCourierTemplatesRecoveryCodeValidEmailSubject, + kratosCourierTemplatesRecoveryInvalidEmailBodyHtml: kratosCourierTemplatesRecoveryInvalidEmailBodyHtml, + kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext: kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext, + kratosCourierTemplatesRecoveryInvalidEmailSubject: kratosCourierTemplatesRecoveryInvalidEmailSubject, + kratosCourierTemplatesRecoveryValidEmailBodyHtml: kratosCourierTemplatesRecoveryValidEmailBodyHtml, + kratosCourierTemplatesRecoveryValidEmailBodyPlaintext: kratosCourierTemplatesRecoveryValidEmailBodyPlaintext, + kratosCourierTemplatesRecoveryValidEmailSubject: kratosCourierTemplatesRecoveryValidEmailSubject, + kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml: kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml, + kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext: kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext, + kratosCourierTemplatesRegistrationCodeValidEmailSubject: kratosCourierTemplatesRegistrationCodeValidEmailSubject, + kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml: kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml, + kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext: kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext, + kratosCourierTemplatesVerificationCodeInvalidEmailSubject: kratosCourierTemplatesVerificationCodeInvalidEmailSubject, + kratosCourierTemplatesVerificationCodeValidEmailBodyHtml: kratosCourierTemplatesVerificationCodeValidEmailBodyHtml, + kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext: kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext, + kratosCourierTemplatesVerificationCodeValidEmailSubject: kratosCourierTemplatesVerificationCodeValidEmailSubject, + kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext: kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext, + kratosCourierTemplatesVerificationInvalidEmailBodyHtml: kratosCourierTemplatesVerificationInvalidEmailBodyHtml, + kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext: kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext, + kratosCourierTemplatesVerificationInvalidEmailSubject: kratosCourierTemplatesVerificationInvalidEmailSubject, + kratosCourierTemplatesVerificationValidEmailBodyHtml: kratosCourierTemplatesVerificationValidEmailBodyHtml, + kratosCourierTemplatesVerificationValidEmailBodyPlaintext: kratosCourierTemplatesVerificationValidEmailBodyPlaintext, + kratosCourierTemplatesVerificationValidEmailSubject: kratosCourierTemplatesVerificationValidEmailSubject, kratosFeatureFlagsCacheableSessions: kratosFeatureFlagsCacheableSessions, kratosFeatureFlagsUseContinueWithTransitions: kratosFeatureFlagsUseContinueWithTransitions, kratosIdentitySchemas: _kratosIdentitySchemas?.build(), @@ -3902,6 +4013,7 @@ class CreateProjectNormalizedPayloadBuilder kratosSelfserviceFlowsVerificationUse: kratosSelfserviceFlowsVerificationUse, kratosSelfserviceMethodsCodeConfigLifespan: kratosSelfserviceMethodsCodeConfigLifespan, kratosSelfserviceMethodsCodeEnabled: kratosSelfserviceMethodsCodeEnabled, + kratosSelfserviceMethodsCodeMfaEnabled: kratosSelfserviceMethodsCodeMfaEnabled, kratosSelfserviceMethodsCodePasswordlessEnabled: kratosSelfserviceMethodsCodePasswordlessEnabled, kratosSelfserviceMethodsLinkConfigBaseUrl: kratosSelfserviceMethodsLinkConfigBaseUrl, kratosSelfserviceMethodsLinkConfigLifespan: kratosSelfserviceMethodsLinkConfigLifespan, diff --git a/clients/client/dart/lib/src/model/create_subscription_body.dart b/clients/client/dart/lib/src/model/create_subscription_body.dart index 604b9e4ae94..18904822cc3 100644 --- a/clients/client/dart/lib/src/model/create_subscription_body.dart +++ b/clients/client/dart/lib/src/model/create_subscription_body.dart @@ -9,7 +9,7 @@ import 'package:built_value/serializer.dart'; part 'create_subscription_body.g.dart'; -/// Create Subscription Request Body +/// CreateSubscriptionBody /// /// Properties: /// * [currency] - usd USD eur Euro @@ -17,7 +17,6 @@ part 'create_subscription_body.g.dart'; /// * [plan] /// * [provisionFirstProject] /// * [returnTo] -/// * [workspace] @BuiltValue() abstract class CreateSubscriptionBody implements Built { /// usd USD eur Euro @@ -34,14 +33,11 @@ abstract class CreateSubscriptionBody implements Built @@ -147,14 +145,15 @@ class _$CreateSubscriptionBody extends CreateSubscriptionBody { {this.currency, required this.interval, required this.plan, - this.provisionFirstProject, - this.returnTo, - this.workspace}) + required this.provisionFirstProject, + this.returnTo}) : super._() { BuiltValueNullFieldError.checkNotNull( interval, r'CreateSubscriptionBody', 'interval'); BuiltValueNullFieldError.checkNotNull( plan, r'CreateSubscriptionBody', 'plan'); + BuiltValueNullFieldError.checkNotNull(provisionFirstProject, + r'CreateSubscriptionBody', 'provisionFirstProject'); } @override @@ -174,8 +173,7 @@ class _$CreateSubscriptionBody extends CreateSubscriptionBody { interval == other.interval && plan == other.plan && provisionFirstProject == other.provisionFirstProject && - returnTo == other.returnTo && - workspace == other.workspace; + returnTo == other.returnTo; } @override @@ -186,7 +184,6 @@ class _$CreateSubscriptionBody extends CreateSubscriptionBody { _$hash = $jc(_$hash, plan.hashCode); _$hash = $jc(_$hash, provisionFirstProject.hashCode); _$hash = $jc(_$hash, returnTo.hashCode); - _$hash = $jc(_$hash, workspace.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -198,8 +195,7 @@ class _$CreateSubscriptionBody extends CreateSubscriptionBody { ..add('interval', interval) ..add('plan', plan) ..add('provisionFirstProject', provisionFirstProject) - ..add('returnTo', returnTo) - ..add('workspace', workspace)) + ..add('returnTo', returnTo)) .toString(); } } @@ -231,10 +227,6 @@ class CreateSubscriptionBodyBuilder String? get returnTo => _$this._returnTo; set returnTo(String? returnTo) => _$this._returnTo = returnTo; - String? _workspace; - String? get workspace => _$this._workspace; - set workspace(String? workspace) => _$this._workspace = workspace; - CreateSubscriptionBodyBuilder() { CreateSubscriptionBody._defaults(this); } @@ -247,7 +239,6 @@ class CreateSubscriptionBodyBuilder _plan = $v.plan; _provisionFirstProject = $v.provisionFirstProject; _returnTo = $v.returnTo; - _workspace = $v.workspace; _$v = null; } return this; @@ -275,9 +266,11 @@ class CreateSubscriptionBodyBuilder interval, r'CreateSubscriptionBody', 'interval'), plan: BuiltValueNullFieldError.checkNotNull( plan, r'CreateSubscriptionBody', 'plan'), - provisionFirstProject: provisionFirstProject, - returnTo: returnTo, - workspace: workspace); + provisionFirstProject: BuiltValueNullFieldError.checkNotNull( + provisionFirstProject, + r'CreateSubscriptionBody', + 'provisionFirstProject'), + returnTo: returnTo); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/create_subscription_common.dart b/clients/client/dart/lib/src/model/create_subscription_common.dart new file mode 100644 index 00000000000..ada4417e392 --- /dev/null +++ b/clients/client/dart/lib/src/model/create_subscription_common.dart @@ -0,0 +1,197 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'create_subscription_common.g.dart'; + +/// CreateSubscriptionCommon +/// +/// Properties: +/// * [currency] - usd USD eur Euro +/// * [interval] - monthly Monthly yearly Yearly +/// * [plan] +/// * [returnTo] +@BuiltValue() +abstract class CreateSubscriptionCommon implements Built { + /// usd USD eur Euro + @BuiltValueField(wireName: r'currency') + CreateSubscriptionCommonCurrencyEnum? get currency; + // enum currencyEnum { usd, eur, }; + + /// monthly Monthly yearly Yearly + @BuiltValueField(wireName: r'interval') + CreateSubscriptionCommonIntervalEnum get interval; + // enum intervalEnum { monthly, yearly, }; + + @BuiltValueField(wireName: r'plan') + String get plan; + + @BuiltValueField(wireName: r'return_to') + String? get returnTo; + + CreateSubscriptionCommon._(); + + factory CreateSubscriptionCommon([void updates(CreateSubscriptionCommonBuilder b)]) = _$CreateSubscriptionCommon; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CreateSubscriptionCommonBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CreateSubscriptionCommonSerializer(); +} + +class _$CreateSubscriptionCommonSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CreateSubscriptionCommon, _$CreateSubscriptionCommon]; + + @override + final String wireName = r'CreateSubscriptionCommon'; + + Iterable _serializeProperties( + Serializers serializers, + CreateSubscriptionCommon object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.currency != null) { + yield r'currency'; + yield serializers.serialize( + object.currency, + specifiedType: const FullType(CreateSubscriptionCommonCurrencyEnum), + ); + } + yield r'interval'; + yield serializers.serialize( + object.interval, + specifiedType: const FullType(CreateSubscriptionCommonIntervalEnum), + ); + yield r'plan'; + yield serializers.serialize( + object.plan, + specifiedType: const FullType(String), + ); + if (object.returnTo != null) { + yield r'return_to'; + yield serializers.serialize( + object.returnTo, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + CreateSubscriptionCommon object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CreateSubscriptionCommonBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'currency': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CreateSubscriptionCommonCurrencyEnum), + ) as CreateSubscriptionCommonCurrencyEnum; + result.currency = valueDes; + break; + case r'interval': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CreateSubscriptionCommonIntervalEnum), + ) as CreateSubscriptionCommonIntervalEnum; + result.interval = valueDes; + break; + case r'plan': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.plan = valueDes; + break; + case r'return_to': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.returnTo = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CreateSubscriptionCommon deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CreateSubscriptionCommonBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + +class CreateSubscriptionCommonCurrencyEnum extends EnumClass { + + /// usd USD eur Euro + @BuiltValueEnumConst(wireName: r'usd') + static const CreateSubscriptionCommonCurrencyEnum usd = _$createSubscriptionCommonCurrencyEnum_usd; + /// usd USD eur Euro + @BuiltValueEnumConst(wireName: r'eur') + static const CreateSubscriptionCommonCurrencyEnum eur = _$createSubscriptionCommonCurrencyEnum_eur; + + static Serializer get serializer => _$createSubscriptionCommonCurrencyEnumSerializer; + + const CreateSubscriptionCommonCurrencyEnum._(String name): super(name); + + static BuiltSet get values => _$createSubscriptionCommonCurrencyEnumValues; + static CreateSubscriptionCommonCurrencyEnum valueOf(String name) => _$createSubscriptionCommonCurrencyEnumValueOf(name); +} + +class CreateSubscriptionCommonIntervalEnum extends EnumClass { + + /// monthly Monthly yearly Yearly + @BuiltValueEnumConst(wireName: r'monthly') + static const CreateSubscriptionCommonIntervalEnum monthly = _$createSubscriptionCommonIntervalEnum_monthly; + /// monthly Monthly yearly Yearly + @BuiltValueEnumConst(wireName: r'yearly') + static const CreateSubscriptionCommonIntervalEnum yearly = _$createSubscriptionCommonIntervalEnum_yearly; + + static Serializer get serializer => _$createSubscriptionCommonIntervalEnumSerializer; + + const CreateSubscriptionCommonIntervalEnum._(String name): super(name); + + static BuiltSet get values => _$createSubscriptionCommonIntervalEnumValues; + static CreateSubscriptionCommonIntervalEnum valueOf(String name) => _$createSubscriptionCommonIntervalEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/create_subscription_common.g.dart b/clients/client/dart/lib/src/model/create_subscription_common.g.dart new file mode 100644 index 00000000000..8e529b0f1c4 --- /dev/null +++ b/clients/client/dart/lib/src/model/create_subscription_common.g.dart @@ -0,0 +1,266 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_subscription_common.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const CreateSubscriptionCommonCurrencyEnum + _$createSubscriptionCommonCurrencyEnum_usd = + const CreateSubscriptionCommonCurrencyEnum._('usd'); +const CreateSubscriptionCommonCurrencyEnum + _$createSubscriptionCommonCurrencyEnum_eur = + const CreateSubscriptionCommonCurrencyEnum._('eur'); + +CreateSubscriptionCommonCurrencyEnum + _$createSubscriptionCommonCurrencyEnumValueOf(String name) { + switch (name) { + case 'usd': + return _$createSubscriptionCommonCurrencyEnum_usd; + case 'eur': + return _$createSubscriptionCommonCurrencyEnum_eur; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createSubscriptionCommonCurrencyEnumValues = new BuiltSet< + CreateSubscriptionCommonCurrencyEnum>(const [ + _$createSubscriptionCommonCurrencyEnum_usd, + _$createSubscriptionCommonCurrencyEnum_eur, +]); + +const CreateSubscriptionCommonIntervalEnum + _$createSubscriptionCommonIntervalEnum_monthly = + const CreateSubscriptionCommonIntervalEnum._('monthly'); +const CreateSubscriptionCommonIntervalEnum + _$createSubscriptionCommonIntervalEnum_yearly = + const CreateSubscriptionCommonIntervalEnum._('yearly'); + +CreateSubscriptionCommonIntervalEnum + _$createSubscriptionCommonIntervalEnumValueOf(String name) { + switch (name) { + case 'monthly': + return _$createSubscriptionCommonIntervalEnum_monthly; + case 'yearly': + return _$createSubscriptionCommonIntervalEnum_yearly; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createSubscriptionCommonIntervalEnumValues = new BuiltSet< + CreateSubscriptionCommonIntervalEnum>(const [ + _$createSubscriptionCommonIntervalEnum_monthly, + _$createSubscriptionCommonIntervalEnum_yearly, +]); + +Serializer + _$createSubscriptionCommonCurrencyEnumSerializer = + new _$CreateSubscriptionCommonCurrencyEnumSerializer(); +Serializer + _$createSubscriptionCommonIntervalEnumSerializer = + new _$CreateSubscriptionCommonIntervalEnumSerializer(); + +class _$CreateSubscriptionCommonCurrencyEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'usd': 'usd', + 'eur': 'eur', + }; + static const Map _fromWire = const { + 'usd': 'usd', + 'eur': 'eur', + }; + + @override + final Iterable types = const [ + CreateSubscriptionCommonCurrencyEnum + ]; + @override + final String wireName = 'CreateSubscriptionCommonCurrencyEnum'; + + @override + Object serialize( + Serializers serializers, CreateSubscriptionCommonCurrencyEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateSubscriptionCommonCurrencyEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateSubscriptionCommonCurrencyEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CreateSubscriptionCommonIntervalEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'monthly': 'monthly', + 'yearly': 'yearly', + }; + static const Map _fromWire = const { + 'monthly': 'monthly', + 'yearly': 'yearly', + }; + + @override + final Iterable types = const [ + CreateSubscriptionCommonIntervalEnum + ]; + @override + final String wireName = 'CreateSubscriptionCommonIntervalEnum'; + + @override + Object serialize( + Serializers serializers, CreateSubscriptionCommonIntervalEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateSubscriptionCommonIntervalEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateSubscriptionCommonIntervalEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CreateSubscriptionCommon extends CreateSubscriptionCommon { + @override + final CreateSubscriptionCommonCurrencyEnum? currency; + @override + final CreateSubscriptionCommonIntervalEnum interval; + @override + final String plan; + @override + final String? returnTo; + + factory _$CreateSubscriptionCommon( + [void Function(CreateSubscriptionCommonBuilder)? updates]) => + (new CreateSubscriptionCommonBuilder()..update(updates))._build(); + + _$CreateSubscriptionCommon._( + {this.currency, + required this.interval, + required this.plan, + this.returnTo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + interval, r'CreateSubscriptionCommon', 'interval'); + BuiltValueNullFieldError.checkNotNull( + plan, r'CreateSubscriptionCommon', 'plan'); + } + + @override + CreateSubscriptionCommon rebuild( + void Function(CreateSubscriptionCommonBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateSubscriptionCommonBuilder toBuilder() => + new CreateSubscriptionCommonBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateSubscriptionCommon && + currency == other.currency && + interval == other.interval && + plan == other.plan && + returnTo == other.returnTo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, interval.hashCode); + _$hash = $jc(_$hash, plan.hashCode); + _$hash = $jc(_$hash, returnTo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateSubscriptionCommon') + ..add('currency', currency) + ..add('interval', interval) + ..add('plan', plan) + ..add('returnTo', returnTo)) + .toString(); + } +} + +class CreateSubscriptionCommonBuilder + implements + Builder { + _$CreateSubscriptionCommon? _$v; + + CreateSubscriptionCommonCurrencyEnum? _currency; + CreateSubscriptionCommonCurrencyEnum? get currency => _$this._currency; + set currency(CreateSubscriptionCommonCurrencyEnum? currency) => + _$this._currency = currency; + + CreateSubscriptionCommonIntervalEnum? _interval; + CreateSubscriptionCommonIntervalEnum? get interval => _$this._interval; + set interval(CreateSubscriptionCommonIntervalEnum? interval) => + _$this._interval = interval; + + String? _plan; + String? get plan => _$this._plan; + set plan(String? plan) => _$this._plan = plan; + + String? _returnTo; + String? get returnTo => _$this._returnTo; + set returnTo(String? returnTo) => _$this._returnTo = returnTo; + + CreateSubscriptionCommonBuilder() { + CreateSubscriptionCommon._defaults(this); + } + + CreateSubscriptionCommonBuilder get _$this { + final $v = _$v; + if ($v != null) { + _currency = $v.currency; + _interval = $v.interval; + _plan = $v.plan; + _returnTo = $v.returnTo; + _$v = null; + } + return this; + } + + @override + void replace(CreateSubscriptionCommon other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateSubscriptionCommon; + } + + @override + void update(void Function(CreateSubscriptionCommonBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateSubscriptionCommon build() => _build(); + + _$CreateSubscriptionCommon _build() { + final _$result = _$v ?? + new _$CreateSubscriptionCommon._( + currency: currency, + interval: BuiltValueNullFieldError.checkNotNull( + interval, r'CreateSubscriptionCommon', 'interval'), + plan: BuiltValueNullFieldError.checkNotNull( + plan, r'CreateSubscriptionCommon', 'plan'), + returnTo: returnTo); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/create_workspace_payload.dart b/clients/client/dart/lib/src/model/create_workspace_payload.dart new file mode 100644 index 00000000000..3c5987172ee --- /dev/null +++ b/clients/client/dart/lib/src/model/create_workspace_payload.dart @@ -0,0 +1,107 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'create_workspace_payload.g.dart'; + +/// CreateWorkspacePayload +/// +/// Properties: +/// * [name] - The name of the workspace +@BuiltValue() +abstract class CreateWorkspacePayload implements Built { + /// The name of the workspace + @BuiltValueField(wireName: r'name') + String get name; + + CreateWorkspacePayload._(); + + factory CreateWorkspacePayload([void updates(CreateWorkspacePayloadBuilder b)]) = _$CreateWorkspacePayload; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CreateWorkspacePayloadBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CreateWorkspacePayloadSerializer(); +} + +class _$CreateWorkspacePayloadSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CreateWorkspacePayload, _$CreateWorkspacePayload]; + + @override + final String wireName = r'CreateWorkspacePayload'; + + Iterable _serializeProperties( + Serializers serializers, + CreateWorkspacePayload object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'name'; + yield serializers.serialize( + object.name, + specifiedType: const FullType(String), + ); + } + + @override + Object serialize( + Serializers serializers, + CreateWorkspacePayload object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CreateWorkspacePayloadBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'name': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.name = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CreateWorkspacePayload deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CreateWorkspacePayloadBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/client/dart/lib/src/model/create_workspace_payload.g.dart b/clients/client/dart/lib/src/model/create_workspace_payload.g.dart new file mode 100644 index 00000000000..8aff434b699 --- /dev/null +++ b/clients/client/dart/lib/src/model/create_workspace_payload.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_workspace_payload.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$CreateWorkspacePayload extends CreateWorkspacePayload { + @override + final String name; + + factory _$CreateWorkspacePayload( + [void Function(CreateWorkspacePayloadBuilder)? updates]) => + (new CreateWorkspacePayloadBuilder()..update(updates))._build(); + + _$CreateWorkspacePayload._({required this.name}) : super._() { + BuiltValueNullFieldError.checkNotNull( + name, r'CreateWorkspacePayload', 'name'); + } + + @override + CreateWorkspacePayload rebuild( + void Function(CreateWorkspacePayloadBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateWorkspacePayloadBuilder toBuilder() => + new CreateWorkspacePayloadBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateWorkspacePayload && name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateWorkspacePayload') + ..add('name', name)) + .toString(); + } +} + +class CreateWorkspacePayloadBuilder + implements Builder { + _$CreateWorkspacePayload? _$v; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + CreateWorkspacePayloadBuilder() { + CreateWorkspacePayload._defaults(this); + } + + CreateWorkspacePayloadBuilder get _$this { + final $v = _$v; + if ($v != null) { + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(CreateWorkspacePayload other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateWorkspacePayload; + } + + @override + void update(void Function(CreateWorkspacePayloadBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateWorkspacePayload build() => _build(); + + _$CreateWorkspacePayload _build() { + final _$result = _$v ?? + new _$CreateWorkspacePayload._( + name: BuiltValueNullFieldError.checkNotNull( + name, r'CreateWorkspacePayload', 'name')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/create_workspace_subscription_body.dart b/clients/client/dart/lib/src/model/create_workspace_subscription_body.dart new file mode 100644 index 00000000000..c257ebbd1d5 --- /dev/null +++ b/clients/client/dart/lib/src/model/create_workspace_subscription_body.dart @@ -0,0 +1,197 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'create_workspace_subscription_body.g.dart'; + +/// CreateWorkspaceSubscriptionBody +/// +/// Properties: +/// * [currency] - usd USD eur Euro +/// * [interval] - monthly Monthly yearly Yearly +/// * [plan] +/// * [returnTo] +@BuiltValue() +abstract class CreateWorkspaceSubscriptionBody implements Built { + /// usd USD eur Euro + @BuiltValueField(wireName: r'currency') + CreateWorkspaceSubscriptionBodyCurrencyEnum? get currency; + // enum currencyEnum { usd, eur, }; + + /// monthly Monthly yearly Yearly + @BuiltValueField(wireName: r'interval') + CreateWorkspaceSubscriptionBodyIntervalEnum get interval; + // enum intervalEnum { monthly, yearly, }; + + @BuiltValueField(wireName: r'plan') + String get plan; + + @BuiltValueField(wireName: r'return_to') + String? get returnTo; + + CreateWorkspaceSubscriptionBody._(); + + factory CreateWorkspaceSubscriptionBody([void updates(CreateWorkspaceSubscriptionBodyBuilder b)]) = _$CreateWorkspaceSubscriptionBody; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(CreateWorkspaceSubscriptionBodyBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$CreateWorkspaceSubscriptionBodySerializer(); +} + +class _$CreateWorkspaceSubscriptionBodySerializer implements PrimitiveSerializer { + @override + final Iterable types = const [CreateWorkspaceSubscriptionBody, _$CreateWorkspaceSubscriptionBody]; + + @override + final String wireName = r'CreateWorkspaceSubscriptionBody'; + + Iterable _serializeProperties( + Serializers serializers, + CreateWorkspaceSubscriptionBody object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.currency != null) { + yield r'currency'; + yield serializers.serialize( + object.currency, + specifiedType: const FullType(CreateWorkspaceSubscriptionBodyCurrencyEnum), + ); + } + yield r'interval'; + yield serializers.serialize( + object.interval, + specifiedType: const FullType(CreateWorkspaceSubscriptionBodyIntervalEnum), + ); + yield r'plan'; + yield serializers.serialize( + object.plan, + specifiedType: const FullType(String), + ); + if (object.returnTo != null) { + yield r'return_to'; + yield serializers.serialize( + object.returnTo, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + CreateWorkspaceSubscriptionBody object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required CreateWorkspaceSubscriptionBodyBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'currency': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CreateWorkspaceSubscriptionBodyCurrencyEnum), + ) as CreateWorkspaceSubscriptionBodyCurrencyEnum; + result.currency = valueDes; + break; + case r'interval': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(CreateWorkspaceSubscriptionBodyIntervalEnum), + ) as CreateWorkspaceSubscriptionBodyIntervalEnum; + result.interval = valueDes; + break; + case r'plan': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.plan = valueDes; + break; + case r'return_to': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.returnTo = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + CreateWorkspaceSubscriptionBody deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = CreateWorkspaceSubscriptionBodyBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + +class CreateWorkspaceSubscriptionBodyCurrencyEnum extends EnumClass { + + /// usd USD eur Euro + @BuiltValueEnumConst(wireName: r'usd') + static const CreateWorkspaceSubscriptionBodyCurrencyEnum usd = _$createWorkspaceSubscriptionBodyCurrencyEnum_usd; + /// usd USD eur Euro + @BuiltValueEnumConst(wireName: r'eur') + static const CreateWorkspaceSubscriptionBodyCurrencyEnum eur = _$createWorkspaceSubscriptionBodyCurrencyEnum_eur; + + static Serializer get serializer => _$createWorkspaceSubscriptionBodyCurrencyEnumSerializer; + + const CreateWorkspaceSubscriptionBodyCurrencyEnum._(String name): super(name); + + static BuiltSet get values => _$createWorkspaceSubscriptionBodyCurrencyEnumValues; + static CreateWorkspaceSubscriptionBodyCurrencyEnum valueOf(String name) => _$createWorkspaceSubscriptionBodyCurrencyEnumValueOf(name); +} + +class CreateWorkspaceSubscriptionBodyIntervalEnum extends EnumClass { + + /// monthly Monthly yearly Yearly + @BuiltValueEnumConst(wireName: r'monthly') + static const CreateWorkspaceSubscriptionBodyIntervalEnum monthly = _$createWorkspaceSubscriptionBodyIntervalEnum_monthly; + /// monthly Monthly yearly Yearly + @BuiltValueEnumConst(wireName: r'yearly') + static const CreateWorkspaceSubscriptionBodyIntervalEnum yearly = _$createWorkspaceSubscriptionBodyIntervalEnum_yearly; + + static Serializer get serializer => _$createWorkspaceSubscriptionBodyIntervalEnumSerializer; + + const CreateWorkspaceSubscriptionBodyIntervalEnum._(String name): super(name); + + static BuiltSet get values => _$createWorkspaceSubscriptionBodyIntervalEnumValues; + static CreateWorkspaceSubscriptionBodyIntervalEnum valueOf(String name) => _$createWorkspaceSubscriptionBodyIntervalEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/create_workspace_subscription_body.g.dart b/clients/client/dart/lib/src/model/create_workspace_subscription_body.g.dart new file mode 100644 index 00000000000..dc541a1bf86 --- /dev/null +++ b/clients/client/dart/lib/src/model/create_workspace_subscription_body.g.dart @@ -0,0 +1,270 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'create_workspace_subscription_body.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const CreateWorkspaceSubscriptionBodyCurrencyEnum + _$createWorkspaceSubscriptionBodyCurrencyEnum_usd = + const CreateWorkspaceSubscriptionBodyCurrencyEnum._('usd'); +const CreateWorkspaceSubscriptionBodyCurrencyEnum + _$createWorkspaceSubscriptionBodyCurrencyEnum_eur = + const CreateWorkspaceSubscriptionBodyCurrencyEnum._('eur'); + +CreateWorkspaceSubscriptionBodyCurrencyEnum + _$createWorkspaceSubscriptionBodyCurrencyEnumValueOf(String name) { + switch (name) { + case 'usd': + return _$createWorkspaceSubscriptionBodyCurrencyEnum_usd; + case 'eur': + return _$createWorkspaceSubscriptionBodyCurrencyEnum_eur; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createWorkspaceSubscriptionBodyCurrencyEnumValues = new BuiltSet< + CreateWorkspaceSubscriptionBodyCurrencyEnum>(const [ + _$createWorkspaceSubscriptionBodyCurrencyEnum_usd, + _$createWorkspaceSubscriptionBodyCurrencyEnum_eur, +]); + +const CreateWorkspaceSubscriptionBodyIntervalEnum + _$createWorkspaceSubscriptionBodyIntervalEnum_monthly = + const CreateWorkspaceSubscriptionBodyIntervalEnum._('monthly'); +const CreateWorkspaceSubscriptionBodyIntervalEnum + _$createWorkspaceSubscriptionBodyIntervalEnum_yearly = + const CreateWorkspaceSubscriptionBodyIntervalEnum._('yearly'); + +CreateWorkspaceSubscriptionBodyIntervalEnum + _$createWorkspaceSubscriptionBodyIntervalEnumValueOf(String name) { + switch (name) { + case 'monthly': + return _$createWorkspaceSubscriptionBodyIntervalEnum_monthly; + case 'yearly': + return _$createWorkspaceSubscriptionBodyIntervalEnum_yearly; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createWorkspaceSubscriptionBodyIntervalEnumValues = new BuiltSet< + CreateWorkspaceSubscriptionBodyIntervalEnum>(const [ + _$createWorkspaceSubscriptionBodyIntervalEnum_monthly, + _$createWorkspaceSubscriptionBodyIntervalEnum_yearly, +]); + +Serializer + _$createWorkspaceSubscriptionBodyCurrencyEnumSerializer = + new _$CreateWorkspaceSubscriptionBodyCurrencyEnumSerializer(); +Serializer + _$createWorkspaceSubscriptionBodyIntervalEnumSerializer = + new _$CreateWorkspaceSubscriptionBodyIntervalEnumSerializer(); + +class _$CreateWorkspaceSubscriptionBodyCurrencyEnumSerializer + implements + PrimitiveSerializer { + static const Map _toWire = const { + 'usd': 'usd', + 'eur': 'eur', + }; + static const Map _fromWire = const { + 'usd': 'usd', + 'eur': 'eur', + }; + + @override + final Iterable types = const [ + CreateWorkspaceSubscriptionBodyCurrencyEnum + ]; + @override + final String wireName = 'CreateWorkspaceSubscriptionBodyCurrencyEnum'; + + @override + Object serialize(Serializers serializers, + CreateWorkspaceSubscriptionBodyCurrencyEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateWorkspaceSubscriptionBodyCurrencyEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateWorkspaceSubscriptionBodyCurrencyEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CreateWorkspaceSubscriptionBodyIntervalEnumSerializer + implements + PrimitiveSerializer { + static const Map _toWire = const { + 'monthly': 'monthly', + 'yearly': 'yearly', + }; + static const Map _fromWire = const { + 'monthly': 'monthly', + 'yearly': 'yearly', + }; + + @override + final Iterable types = const [ + CreateWorkspaceSubscriptionBodyIntervalEnum + ]; + @override + final String wireName = 'CreateWorkspaceSubscriptionBodyIntervalEnum'; + + @override + Object serialize(Serializers serializers, + CreateWorkspaceSubscriptionBodyIntervalEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateWorkspaceSubscriptionBodyIntervalEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateWorkspaceSubscriptionBodyIntervalEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$CreateWorkspaceSubscriptionBody + extends CreateWorkspaceSubscriptionBody { + @override + final CreateWorkspaceSubscriptionBodyCurrencyEnum? currency; + @override + final CreateWorkspaceSubscriptionBodyIntervalEnum interval; + @override + final String plan; + @override + final String? returnTo; + + factory _$CreateWorkspaceSubscriptionBody( + [void Function(CreateWorkspaceSubscriptionBodyBuilder)? updates]) => + (new CreateWorkspaceSubscriptionBodyBuilder()..update(updates))._build(); + + _$CreateWorkspaceSubscriptionBody._( + {this.currency, + required this.interval, + required this.plan, + this.returnTo}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + interval, r'CreateWorkspaceSubscriptionBody', 'interval'); + BuiltValueNullFieldError.checkNotNull( + plan, r'CreateWorkspaceSubscriptionBody', 'plan'); + } + + @override + CreateWorkspaceSubscriptionBody rebuild( + void Function(CreateWorkspaceSubscriptionBodyBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + CreateWorkspaceSubscriptionBodyBuilder toBuilder() => + new CreateWorkspaceSubscriptionBodyBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is CreateWorkspaceSubscriptionBody && + currency == other.currency && + interval == other.interval && + plan == other.plan && + returnTo == other.returnTo; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, currency.hashCode); + _$hash = $jc(_$hash, interval.hashCode); + _$hash = $jc(_$hash, plan.hashCode); + _$hash = $jc(_$hash, returnTo.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'CreateWorkspaceSubscriptionBody') + ..add('currency', currency) + ..add('interval', interval) + ..add('plan', plan) + ..add('returnTo', returnTo)) + .toString(); + } +} + +class CreateWorkspaceSubscriptionBodyBuilder + implements + Builder { + _$CreateWorkspaceSubscriptionBody? _$v; + + CreateWorkspaceSubscriptionBodyCurrencyEnum? _currency; + CreateWorkspaceSubscriptionBodyCurrencyEnum? get currency => _$this._currency; + set currency(CreateWorkspaceSubscriptionBodyCurrencyEnum? currency) => + _$this._currency = currency; + + CreateWorkspaceSubscriptionBodyIntervalEnum? _interval; + CreateWorkspaceSubscriptionBodyIntervalEnum? get interval => _$this._interval; + set interval(CreateWorkspaceSubscriptionBodyIntervalEnum? interval) => + _$this._interval = interval; + + String? _plan; + String? get plan => _$this._plan; + set plan(String? plan) => _$this._plan = plan; + + String? _returnTo; + String? get returnTo => _$this._returnTo; + set returnTo(String? returnTo) => _$this._returnTo = returnTo; + + CreateWorkspaceSubscriptionBodyBuilder() { + CreateWorkspaceSubscriptionBody._defaults(this); + } + + CreateWorkspaceSubscriptionBodyBuilder get _$this { + final $v = _$v; + if ($v != null) { + _currency = $v.currency; + _interval = $v.interval; + _plan = $v.plan; + _returnTo = $v.returnTo; + _$v = null; + } + return this; + } + + @override + void replace(CreateWorkspaceSubscriptionBody other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$CreateWorkspaceSubscriptionBody; + } + + @override + void update(void Function(CreateWorkspaceSubscriptionBodyBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + CreateWorkspaceSubscriptionBody build() => _build(); + + _$CreateWorkspaceSubscriptionBody _build() { + final _$result = _$v ?? + new _$CreateWorkspaceSubscriptionBody._( + currency: currency, + interval: BuiltValueNullFieldError.checkNotNull( + interval, r'CreateWorkspaceSubscriptionBody', 'interval'), + plan: BuiltValueNullFieldError.checkNotNull( + plan, r'CreateWorkspaceSubscriptionBody', 'plan'), + returnTo: returnTo); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/identity.dart b/clients/client/dart/lib/src/model/identity.dart index 4cc88f8c700..f2e703a47b9 100644 --- a/clients/client/dart/lib/src/model/identity.dart +++ b/clients/client/dart/lib/src/model/identity.dart @@ -6,7 +6,6 @@ import 'package:ory_client/src/model/verifiable_identity_address.dart'; import 'package:ory_client/src/model/recovery_identity_address.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:ory_client/src/model/identity_state.dart'; import 'package:ory_client/src/model/identity_credentials.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; @@ -26,7 +25,7 @@ part 'identity.g.dart'; /// * [recoveryAddresses] - RecoveryAddresses contains all the addresses that can be used to recover an identity. /// * [schemaId] - SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. /// * [schemaUrl] - SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url -/// * [state] +/// * [state] - State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive /// * [stateChangedAt] /// * [traits] - Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. @@ -68,8 +67,9 @@ abstract class Identity implements Built { @BuiltValueField(wireName: r'schema_url') String get schemaUrl; + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive @BuiltValueField(wireName: r'state') - IdentityState? get state; + IdentityStateEnum? get state; // enum stateEnum { active, inactive, }; @BuiltValueField(wireName: r'state_changed_at') @@ -171,7 +171,7 @@ class _$IdentitySerializer implements PrimitiveSerializer { yield r'state'; yield serializers.serialize( object.state, - specifiedType: const FullType(IdentityState), + specifiedType: const FullType(IdentityStateEnum), ); } if (object.stateChangedAt != null) { @@ -292,8 +292,8 @@ class _$IdentitySerializer implements PrimitiveSerializer { case r'state': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(IdentityState), - ) as IdentityState; + specifiedType: const FullType(IdentityStateEnum), + ) as IdentityStateEnum; result.state = valueDes; break; case r'state_changed_at': @@ -354,3 +354,20 @@ class _$IdentitySerializer implements PrimitiveSerializer { } } +class IdentityStateEnum extends EnumClass { + + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + @BuiltValueEnumConst(wireName: r'active') + static const IdentityStateEnum active = _$identityStateEnum_active; + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + @BuiltValueEnumConst(wireName: r'inactive') + static const IdentityStateEnum inactive = _$identityStateEnum_inactive; + + static Serializer get serializer => _$identityStateEnumSerializer; + + const IdentityStateEnum._(String name): super(name); + + static BuiltSet get values => _$identityStateEnumValues; + static IdentityStateEnum valueOf(String name) => _$identityStateEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/identity.g.dart b/clients/client/dart/lib/src/model/identity.g.dart index af107688ca8..984cde84c93 100644 --- a/clients/client/dart/lib/src/model/identity.g.dart +++ b/clients/client/dart/lib/src/model/identity.g.dart @@ -6,6 +6,59 @@ part of 'identity.dart'; // BuiltValueGenerator // ************************************************************************** +const IdentityStateEnum _$identityStateEnum_active = + const IdentityStateEnum._('active'); +const IdentityStateEnum _$identityStateEnum_inactive = + const IdentityStateEnum._('inactive'); + +IdentityStateEnum _$identityStateEnumValueOf(String name) { + switch (name) { + case 'active': + return _$identityStateEnum_active; + case 'inactive': + return _$identityStateEnum_inactive; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$identityStateEnumValues = + new BuiltSet(const [ + _$identityStateEnum_active, + _$identityStateEnum_inactive, +]); + +Serializer _$identityStateEnumSerializer = + new _$IdentityStateEnumSerializer(); + +class _$IdentityStateEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + static const Map _fromWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + + @override + final Iterable types = const [IdentityStateEnum]; + @override + final String wireName = 'IdentityStateEnum'; + + @override + Object serialize(Serializers serializers, IdentityStateEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + IdentityStateEnum deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + IdentityStateEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$Identity extends Identity { @override final DateTime? createdAt; @@ -26,7 +79,7 @@ class _$Identity extends Identity { @override final String schemaUrl; @override - final IdentityState? state; + final IdentityStateEnum? state; @override final DateTime? stateChangedAt; @override @@ -176,9 +229,9 @@ class IdentityBuilder implements Builder { String? get schemaUrl => _$this._schemaUrl; set schemaUrl(String? schemaUrl) => _$this._schemaUrl = schemaUrl; - IdentityState? _state; - IdentityState? get state => _$this._state; - set state(IdentityState? state) => _$this._state = state; + IdentityStateEnum? _state; + IdentityStateEnum? get state => _$this._state; + set state(IdentityStateEnum? state) => _$this._state = state; DateTime? _stateChangedAt; DateTime? get stateChangedAt => _$this._stateChangedAt; diff --git a/clients/client/dart/lib/src/model/identity_credentials.dart b/clients/client/dart/lib/src/model/identity_credentials.dart index 960e53078db..4c5f460a01d 100644 --- a/clients/client/dart/lib/src/model/identity_credentials.dart +++ b/clients/client/dart/lib/src/model/identity_credentials.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:ory_client/src/model/identity_credentials_type.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -17,7 +16,7 @@ part 'identity_credentials.g.dart'; /// * [config] /// * [createdAt] - CreatedAt is a helper struct field for gobuffalo.pop. /// * [identifiers] - Identifiers represents a list of unique identifiers this credential type matches. -/// * [type] +/// * [type] - Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. /// * [version] - Version refers to the version of the credential. Useful when changing the config schema. @BuiltValue() @@ -33,9 +32,10 @@ abstract class IdentityCredentials implements Built? get identifiers; + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 @BuiltValueField(wireName: r'type') - IdentityCredentialsType? get type; - // enum typeEnum { password, totp, oidc, webauthn, lookup_secret, code, }; + IdentityCredentialsTypeEnum? get type; + // enum typeEnum { password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery, }; /// UpdatedAt is a helper struct field for gobuffalo.pop. @BuiltValueField(wireName: r'updated_at') @@ -93,7 +93,7 @@ class _$IdentityCredentialsSerializer implements PrimitiveSerializer get serializer => _$identityCredentialsTypeEnumSerializer; + + const IdentityCredentialsTypeEnum._(String name): super(name); + + static BuiltSet get values => _$identityCredentialsTypeEnumValues; + static IdentityCredentialsTypeEnum valueOf(String name) => _$identityCredentialsTypeEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/identity_credentials.g.dart b/clients/client/dart/lib/src/model/identity_credentials.g.dart index 2d6931d3d17..3500cccf166 100644 --- a/clients/client/dart/lib/src/model/identity_credentials.g.dart +++ b/clients/client/dart/lib/src/model/identity_credentials.g.dart @@ -6,6 +6,104 @@ part of 'identity_credentials.dart'; // BuiltValueGenerator // ************************************************************************** +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_password = + const IdentityCredentialsTypeEnum._('password'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_oidc = + const IdentityCredentialsTypeEnum._('oidc'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_totp = + const IdentityCredentialsTypeEnum._('totp'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_lookupSecret = + const IdentityCredentialsTypeEnum._('lookupSecret'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_webauthn = + const IdentityCredentialsTypeEnum._('webauthn'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_code = + const IdentityCredentialsTypeEnum._('code'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_linkRecovery = + const IdentityCredentialsTypeEnum._('linkRecovery'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_codeRecovery = + const IdentityCredentialsTypeEnum._('codeRecovery'); + +IdentityCredentialsTypeEnum _$identityCredentialsTypeEnumValueOf(String name) { + switch (name) { + case 'password': + return _$identityCredentialsTypeEnum_password; + case 'oidc': + return _$identityCredentialsTypeEnum_oidc; + case 'totp': + return _$identityCredentialsTypeEnum_totp; + case 'lookupSecret': + return _$identityCredentialsTypeEnum_lookupSecret; + case 'webauthn': + return _$identityCredentialsTypeEnum_webauthn; + case 'code': + return _$identityCredentialsTypeEnum_code; + case 'linkRecovery': + return _$identityCredentialsTypeEnum_linkRecovery; + case 'codeRecovery': + return _$identityCredentialsTypeEnum_codeRecovery; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$identityCredentialsTypeEnumValues = new BuiltSet< + IdentityCredentialsTypeEnum>(const [ + _$identityCredentialsTypeEnum_password, + _$identityCredentialsTypeEnum_oidc, + _$identityCredentialsTypeEnum_totp, + _$identityCredentialsTypeEnum_lookupSecret, + _$identityCredentialsTypeEnum_webauthn, + _$identityCredentialsTypeEnum_code, + _$identityCredentialsTypeEnum_linkRecovery, + _$identityCredentialsTypeEnum_codeRecovery, +]); + +Serializer + _$identityCredentialsTypeEnumSerializer = + new _$IdentityCredentialsTypeEnumSerializer(); + +class _$IdentityCredentialsTypeEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookupSecret': 'lookup_secret', + 'webauthn': 'webauthn', + 'code': 'code', + 'linkRecovery': 'link_recovery', + 'codeRecovery': 'code_recovery', + }; + static const Map _fromWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookup_secret': 'lookupSecret', + 'webauthn': 'webauthn', + 'code': 'code', + 'link_recovery': 'linkRecovery', + 'code_recovery': 'codeRecovery', + }; + + @override + final Iterable types = const [IdentityCredentialsTypeEnum]; + @override + final String wireName = 'IdentityCredentialsTypeEnum'; + + @override + Object serialize(Serializers serializers, IdentityCredentialsTypeEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + IdentityCredentialsTypeEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + IdentityCredentialsTypeEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$IdentityCredentials extends IdentityCredentials { @override final JsonObject? config; @@ -14,7 +112,7 @@ class _$IdentityCredentials extends IdentityCredentials { @override final BuiltList? identifiers; @override - final IdentityCredentialsType? type; + final IdentityCredentialsTypeEnum? type; @override final DateTime? updatedAt; @override @@ -98,9 +196,9 @@ class IdentityCredentialsBuilder set identifiers(ListBuilder? identifiers) => _$this._identifiers = identifiers; - IdentityCredentialsType? _type; - IdentityCredentialsType? get type => _$this._type; - set type(IdentityCredentialsType? type) => _$this._type = type; + IdentityCredentialsTypeEnum? _type; + IdentityCredentialsTypeEnum? get type => _$this._type; + set type(IdentityCredentialsTypeEnum? type) => _$this._type = type; DateTime? _updatedAt; DateTime? get updatedAt => _$this._updatedAt; diff --git a/clients/client/dart/lib/src/model/identity_credentials_code.dart b/clients/client/dart/lib/src/model/identity_credentials_code.dart index c4b3258d0e4..a484de8e843 100644 --- a/clients/client/dart/lib/src/model/identity_credentials_code.dart +++ b/clients/client/dart/lib/src/model/identity_credentials_code.dart @@ -11,10 +11,11 @@ part 'identity_credentials_code.g.dart'; /// CredentialsCode represents a one time login/registration code /// /// Properties: -/// * [addressType] +/// * [addressType] - The type of the address for this code /// * [usedAt] @BuiltValue() abstract class IdentityCredentialsCode implements Built { + /// The type of the address for this code @BuiltValueField(wireName: r'address_type') String? get addressType; diff --git a/clients/client/dart/lib/src/model/identity_credentials_type.dart b/clients/client/dart/lib/src/model/identity_credentials_type.dart deleted file mode 100644 index a92304fda22..00000000000 --- a/clients/client/dart/lib/src/model/identity_credentials_type.dart +++ /dev/null @@ -1,48 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'identity_credentials_type.g.dart'; - -class IdentityCredentialsType extends EnumClass { - - /// and so on. - @BuiltValueEnumConst(wireName: r'password') - static const IdentityCredentialsType password = _$password; - /// and so on. - @BuiltValueEnumConst(wireName: r'totp') - static const IdentityCredentialsType totp = _$totp; - /// and so on. - @BuiltValueEnumConst(wireName: r'oidc') - static const IdentityCredentialsType oidc = _$oidc; - /// and so on. - @BuiltValueEnumConst(wireName: r'webauthn') - static const IdentityCredentialsType webauthn = _$webauthn; - /// and so on. - @BuiltValueEnumConst(wireName: r'lookup_secret') - static const IdentityCredentialsType lookupSecret = _$lookupSecret; - /// and so on. - @BuiltValueEnumConst(wireName: r'code') - static const IdentityCredentialsType code = _$code; - - static Serializer get serializer => _$identityCredentialsTypeSerializer; - - const IdentityCredentialsType._(String name): super(name); - - static BuiltSet get values => _$values; - static IdentityCredentialsType valueOf(String name) => _$valueOf(name); -} - -/// Optionally, enum_class can generate a mixin to go with your enum for use -/// with Angular. It exposes your enum constants as getters. So, if you mix it -/// in to your Dart component class, the values become available to the -/// corresponding Angular template. -/// -/// Trigger mixin generation by writing a line like this one next to your enum. -abstract class IdentityCredentialsTypeMixin = Object with _$IdentityCredentialsTypeMixin; - diff --git a/clients/client/dart/lib/src/model/identity_credentials_type.g.dart b/clients/client/dart/lib/src/model/identity_credentials_type.g.dart deleted file mode 100644 index bca96abf3d8..00000000000 --- a/clients/client/dart/lib/src/model/identity_credentials_type.g.dart +++ /dev/null @@ -1,106 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'identity_credentials_type.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const IdentityCredentialsType _$password = - const IdentityCredentialsType._('password'); -const IdentityCredentialsType _$totp = const IdentityCredentialsType._('totp'); -const IdentityCredentialsType _$oidc = const IdentityCredentialsType._('oidc'); -const IdentityCredentialsType _$webauthn = - const IdentityCredentialsType._('webauthn'); -const IdentityCredentialsType _$lookupSecret = - const IdentityCredentialsType._('lookupSecret'); -const IdentityCredentialsType _$code = const IdentityCredentialsType._('code'); - -IdentityCredentialsType _$valueOf(String name) { - switch (name) { - case 'password': - return _$password; - case 'totp': - return _$totp; - case 'oidc': - return _$oidc; - case 'webauthn': - return _$webauthn; - case 'lookupSecret': - return _$lookupSecret; - case 'code': - return _$code; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$values = - new BuiltSet(const [ - _$password, - _$totp, - _$oidc, - _$webauthn, - _$lookupSecret, - _$code, -]); - -class _$IdentityCredentialsTypeMeta { - const _$IdentityCredentialsTypeMeta(); - IdentityCredentialsType get password => _$password; - IdentityCredentialsType get totp => _$totp; - IdentityCredentialsType get oidc => _$oidc; - IdentityCredentialsType get webauthn => _$webauthn; - IdentityCredentialsType get lookupSecret => _$lookupSecret; - IdentityCredentialsType get code => _$code; - IdentityCredentialsType valueOf(String name) => _$valueOf(name); - BuiltSet get values => _$values; -} - -abstract class _$IdentityCredentialsTypeMixin { - // ignore: non_constant_identifier_names - _$IdentityCredentialsTypeMeta get IdentityCredentialsType => - const _$IdentityCredentialsTypeMeta(); -} - -Serializer _$identityCredentialsTypeSerializer = - new _$IdentityCredentialsTypeSerializer(); - -class _$IdentityCredentialsTypeSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'password': 'password', - 'totp': 'totp', - 'oidc': 'oidc', - 'webauthn': 'webauthn', - 'lookupSecret': 'lookup_secret', - 'code': 'code', - }; - static const Map _fromWire = const { - 'password': 'password', - 'totp': 'totp', - 'oidc': 'oidc', - 'webauthn': 'webauthn', - 'lookup_secret': 'lookupSecret', - 'code': 'code', - }; - - @override - final Iterable types = const [IdentityCredentialsType]; - @override - final String wireName = 'IdentityCredentialsType'; - - @override - Object serialize(Serializers serializers, IdentityCredentialsType object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - IdentityCredentialsType deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - IdentityCredentialsType.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/identity_state.dart b/clients/client/dart/lib/src/model/identity_state.dart deleted file mode 100644 index b306b3406c9..00000000000 --- a/clients/client/dart/lib/src/model/identity_state.dart +++ /dev/null @@ -1,36 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'identity_state.g.dart'; - -class IdentityState extends EnumClass { - - /// The state can either be `active` or `inactive`. - @BuiltValueEnumConst(wireName: r'active') - static const IdentityState active = _$active; - /// The state can either be `active` or `inactive`. - @BuiltValueEnumConst(wireName: r'inactive') - static const IdentityState inactive = _$inactive; - - static Serializer get serializer => _$identityStateSerializer; - - const IdentityState._(String name): super(name); - - static BuiltSet get values => _$values; - static IdentityState valueOf(String name) => _$valueOf(name); -} - -/// Optionally, enum_class can generate a mixin to go with your enum for use -/// with Angular. It exposes your enum constants as getters. So, if you mix it -/// in to your Dart component class, the values become available to the -/// corresponding Angular template. -/// -/// Trigger mixin generation by writing a line like this one next to your enum. -abstract class IdentityStateMixin = Object with _$IdentityStateMixin; - diff --git a/clients/client/dart/lib/src/model/identity_state.g.dart b/clients/client/dart/lib/src/model/identity_state.g.dart deleted file mode 100644 index a6634243796..00000000000 --- a/clients/client/dart/lib/src/model/identity_state.g.dart +++ /dev/null @@ -1,72 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'identity_state.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const IdentityState _$active = const IdentityState._('active'); -const IdentityState _$inactive = const IdentityState._('inactive'); - -IdentityState _$valueOf(String name) { - switch (name) { - case 'active': - return _$active; - case 'inactive': - return _$inactive; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$values = - new BuiltSet(const [ - _$active, - _$inactive, -]); - -class _$IdentityStateMeta { - const _$IdentityStateMeta(); - IdentityState get active => _$active; - IdentityState get inactive => _$inactive; - IdentityState valueOf(String name) => _$valueOf(name); - BuiltSet get values => _$values; -} - -abstract class _$IdentityStateMixin { - // ignore: non_constant_identifier_names - _$IdentityStateMeta get IdentityState => const _$IdentityStateMeta(); -} - -Serializer _$identityStateSerializer = - new _$IdentityStateSerializer(); - -class _$IdentityStateSerializer implements PrimitiveSerializer { - static const Map _toWire = const { - 'active': 'active', - 'inactive': 'inactive', - }; - static const Map _fromWire = const { - 'active': 'active', - 'inactive': 'inactive', - }; - - @override - final Iterable types = const [IdentityState]; - @override - final String wireName = 'IdentityState'; - - @override - Object serialize(Serializers serializers, IdentityState object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - IdentityState deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - IdentityState.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/internal_provision_mock_subscription.dart b/clients/client/dart/lib/src/model/internal_provision_mock_subscription.dart deleted file mode 100644 index ed6a6e8a0e3..00000000000 --- a/clients/client/dart/lib/src/model/internal_provision_mock_subscription.dart +++ /dev/null @@ -1,195 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'internal_provision_mock_subscription.g.dart'; - -/// Internal Provision Mock Subscription Request Body -/// -/// Properties: -/// * [currency] - Currency usd USD eur Euro -/// * [identityId] - Identity ID -/// * [interval] - Billing Interval monthly Monthly yearly Yearly -/// * [plan] - Plan ID -@BuiltValue() -abstract class InternalProvisionMockSubscription implements Built { - /// Currency usd USD eur Euro - @BuiltValueField(wireName: r'currency') - InternalProvisionMockSubscriptionCurrencyEnum get currency; - // enum currencyEnum { usd, eur, }; - - /// Identity ID - @BuiltValueField(wireName: r'identity_id') - String get identityId; - - /// Billing Interval monthly Monthly yearly Yearly - @BuiltValueField(wireName: r'interval') - InternalProvisionMockSubscriptionIntervalEnum get interval; - // enum intervalEnum { monthly, yearly, }; - - /// Plan ID - @BuiltValueField(wireName: r'plan') - String get plan; - - InternalProvisionMockSubscription._(); - - factory InternalProvisionMockSubscription([void updates(InternalProvisionMockSubscriptionBuilder b)]) = _$InternalProvisionMockSubscription; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(InternalProvisionMockSubscriptionBuilder b) => b; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$InternalProvisionMockSubscriptionSerializer(); -} - -class _$InternalProvisionMockSubscriptionSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [InternalProvisionMockSubscription, _$InternalProvisionMockSubscription]; - - @override - final String wireName = r'InternalProvisionMockSubscription'; - - Iterable _serializeProperties( - Serializers serializers, - InternalProvisionMockSubscription object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - yield r'currency'; - yield serializers.serialize( - object.currency, - specifiedType: const FullType(InternalProvisionMockSubscriptionCurrencyEnum), - ); - yield r'identity_id'; - yield serializers.serialize( - object.identityId, - specifiedType: const FullType(String), - ); - yield r'interval'; - yield serializers.serialize( - object.interval, - specifiedType: const FullType(InternalProvisionMockSubscriptionIntervalEnum), - ); - yield r'plan'; - yield serializers.serialize( - object.plan, - specifiedType: const FullType(String), - ); - } - - @override - Object serialize( - Serializers serializers, - InternalProvisionMockSubscription object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required InternalProvisionMockSubscriptionBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'currency': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(InternalProvisionMockSubscriptionCurrencyEnum), - ) as InternalProvisionMockSubscriptionCurrencyEnum; - result.currency = valueDes; - break; - case r'identity_id': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.identityId = valueDes; - break; - case r'interval': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(InternalProvisionMockSubscriptionIntervalEnum), - ) as InternalProvisionMockSubscriptionIntervalEnum; - result.interval = valueDes; - break; - case r'plan': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(String), - ) as String; - result.plan = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - InternalProvisionMockSubscription deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = InternalProvisionMockSubscriptionBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - -class InternalProvisionMockSubscriptionCurrencyEnum extends EnumClass { - - /// Currency usd USD eur Euro - @BuiltValueEnumConst(wireName: r'usd') - static const InternalProvisionMockSubscriptionCurrencyEnum usd = _$internalProvisionMockSubscriptionCurrencyEnum_usd; - /// Currency usd USD eur Euro - @BuiltValueEnumConst(wireName: r'eur') - static const InternalProvisionMockSubscriptionCurrencyEnum eur = _$internalProvisionMockSubscriptionCurrencyEnum_eur; - - static Serializer get serializer => _$internalProvisionMockSubscriptionCurrencyEnumSerializer; - - const InternalProvisionMockSubscriptionCurrencyEnum._(String name): super(name); - - static BuiltSet get values => _$internalProvisionMockSubscriptionCurrencyEnumValues; - static InternalProvisionMockSubscriptionCurrencyEnum valueOf(String name) => _$internalProvisionMockSubscriptionCurrencyEnumValueOf(name); -} - -class InternalProvisionMockSubscriptionIntervalEnum extends EnumClass { - - /// Billing Interval monthly Monthly yearly Yearly - @BuiltValueEnumConst(wireName: r'monthly') - static const InternalProvisionMockSubscriptionIntervalEnum monthly = _$internalProvisionMockSubscriptionIntervalEnum_monthly; - /// Billing Interval monthly Monthly yearly Yearly - @BuiltValueEnumConst(wireName: r'yearly') - static const InternalProvisionMockSubscriptionIntervalEnum yearly = _$internalProvisionMockSubscriptionIntervalEnum_yearly; - - static Serializer get serializer => _$internalProvisionMockSubscriptionIntervalEnumSerializer; - - const InternalProvisionMockSubscriptionIntervalEnum._(String name): super(name); - - static BuiltSet get values => _$internalProvisionMockSubscriptionIntervalEnumValues; - static InternalProvisionMockSubscriptionIntervalEnum valueOf(String name) => _$internalProvisionMockSubscriptionIntervalEnumValueOf(name); -} - diff --git a/clients/client/dart/lib/src/model/internal_provision_mock_subscription.g.dart b/clients/client/dart/lib/src/model/internal_provision_mock_subscription.g.dart deleted file mode 100644 index 8b0fffac5af..00000000000 --- a/clients/client/dart/lib/src/model/internal_provision_mock_subscription.g.dart +++ /dev/null @@ -1,280 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'internal_provision_mock_subscription.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const InternalProvisionMockSubscriptionCurrencyEnum - _$internalProvisionMockSubscriptionCurrencyEnum_usd = - const InternalProvisionMockSubscriptionCurrencyEnum._('usd'); -const InternalProvisionMockSubscriptionCurrencyEnum - _$internalProvisionMockSubscriptionCurrencyEnum_eur = - const InternalProvisionMockSubscriptionCurrencyEnum._('eur'); - -InternalProvisionMockSubscriptionCurrencyEnum - _$internalProvisionMockSubscriptionCurrencyEnumValueOf(String name) { - switch (name) { - case 'usd': - return _$internalProvisionMockSubscriptionCurrencyEnum_usd; - case 'eur': - return _$internalProvisionMockSubscriptionCurrencyEnum_eur; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet - _$internalProvisionMockSubscriptionCurrencyEnumValues = new BuiltSet< - InternalProvisionMockSubscriptionCurrencyEnum>(const [ - _$internalProvisionMockSubscriptionCurrencyEnum_usd, - _$internalProvisionMockSubscriptionCurrencyEnum_eur, -]); - -const InternalProvisionMockSubscriptionIntervalEnum - _$internalProvisionMockSubscriptionIntervalEnum_monthly = - const InternalProvisionMockSubscriptionIntervalEnum._('monthly'); -const InternalProvisionMockSubscriptionIntervalEnum - _$internalProvisionMockSubscriptionIntervalEnum_yearly = - const InternalProvisionMockSubscriptionIntervalEnum._('yearly'); - -InternalProvisionMockSubscriptionIntervalEnum - _$internalProvisionMockSubscriptionIntervalEnumValueOf(String name) { - switch (name) { - case 'monthly': - return _$internalProvisionMockSubscriptionIntervalEnum_monthly; - case 'yearly': - return _$internalProvisionMockSubscriptionIntervalEnum_yearly; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet - _$internalProvisionMockSubscriptionIntervalEnumValues = new BuiltSet< - InternalProvisionMockSubscriptionIntervalEnum>(const [ - _$internalProvisionMockSubscriptionIntervalEnum_monthly, - _$internalProvisionMockSubscriptionIntervalEnum_yearly, -]); - -Serializer - _$internalProvisionMockSubscriptionCurrencyEnumSerializer = - new _$InternalProvisionMockSubscriptionCurrencyEnumSerializer(); -Serializer - _$internalProvisionMockSubscriptionIntervalEnumSerializer = - new _$InternalProvisionMockSubscriptionIntervalEnumSerializer(); - -class _$InternalProvisionMockSubscriptionCurrencyEnumSerializer - implements - PrimitiveSerializer { - static const Map _toWire = const { - 'usd': 'usd', - 'eur': 'eur', - }; - static const Map _fromWire = const { - 'usd': 'usd', - 'eur': 'eur', - }; - - @override - final Iterable types = const [ - InternalProvisionMockSubscriptionCurrencyEnum - ]; - @override - final String wireName = 'InternalProvisionMockSubscriptionCurrencyEnum'; - - @override - Object serialize(Serializers serializers, - InternalProvisionMockSubscriptionCurrencyEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - InternalProvisionMockSubscriptionCurrencyEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - InternalProvisionMockSubscriptionCurrencyEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$InternalProvisionMockSubscriptionIntervalEnumSerializer - implements - PrimitiveSerializer { - static const Map _toWire = const { - 'monthly': 'monthly', - 'yearly': 'yearly', - }; - static const Map _fromWire = const { - 'monthly': 'monthly', - 'yearly': 'yearly', - }; - - @override - final Iterable types = const [ - InternalProvisionMockSubscriptionIntervalEnum - ]; - @override - final String wireName = 'InternalProvisionMockSubscriptionIntervalEnum'; - - @override - Object serialize(Serializers serializers, - InternalProvisionMockSubscriptionIntervalEnum object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - InternalProvisionMockSubscriptionIntervalEnum deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - InternalProvisionMockSubscriptionIntervalEnum.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -class _$InternalProvisionMockSubscription - extends InternalProvisionMockSubscription { - @override - final InternalProvisionMockSubscriptionCurrencyEnum currency; - @override - final String identityId; - @override - final InternalProvisionMockSubscriptionIntervalEnum interval; - @override - final String plan; - - factory _$InternalProvisionMockSubscription( - [void Function(InternalProvisionMockSubscriptionBuilder)? updates]) => - (new InternalProvisionMockSubscriptionBuilder()..update(updates)) - ._build(); - - _$InternalProvisionMockSubscription._( - {required this.currency, - required this.identityId, - required this.interval, - required this.plan}) - : super._() { - BuiltValueNullFieldError.checkNotNull( - currency, r'InternalProvisionMockSubscription', 'currency'); - BuiltValueNullFieldError.checkNotNull( - identityId, r'InternalProvisionMockSubscription', 'identityId'); - BuiltValueNullFieldError.checkNotNull( - interval, r'InternalProvisionMockSubscription', 'interval'); - BuiltValueNullFieldError.checkNotNull( - plan, r'InternalProvisionMockSubscription', 'plan'); - } - - @override - InternalProvisionMockSubscription rebuild( - void Function(InternalProvisionMockSubscriptionBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - InternalProvisionMockSubscriptionBuilder toBuilder() => - new InternalProvisionMockSubscriptionBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is InternalProvisionMockSubscription && - currency == other.currency && - identityId == other.identityId && - interval == other.interval && - plan == other.plan; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, currency.hashCode); - _$hash = $jc(_$hash, identityId.hashCode); - _$hash = $jc(_$hash, interval.hashCode); - _$hash = $jc(_$hash, plan.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'InternalProvisionMockSubscription') - ..add('currency', currency) - ..add('identityId', identityId) - ..add('interval', interval) - ..add('plan', plan)) - .toString(); - } -} - -class InternalProvisionMockSubscriptionBuilder - implements - Builder { - _$InternalProvisionMockSubscription? _$v; - - InternalProvisionMockSubscriptionCurrencyEnum? _currency; - InternalProvisionMockSubscriptionCurrencyEnum? get currency => - _$this._currency; - set currency(InternalProvisionMockSubscriptionCurrencyEnum? currency) => - _$this._currency = currency; - - String? _identityId; - String? get identityId => _$this._identityId; - set identityId(String? identityId) => _$this._identityId = identityId; - - InternalProvisionMockSubscriptionIntervalEnum? _interval; - InternalProvisionMockSubscriptionIntervalEnum? get interval => - _$this._interval; - set interval(InternalProvisionMockSubscriptionIntervalEnum? interval) => - _$this._interval = interval; - - String? _plan; - String? get plan => _$this._plan; - set plan(String? plan) => _$this._plan = plan; - - InternalProvisionMockSubscriptionBuilder() { - InternalProvisionMockSubscription._defaults(this); - } - - InternalProvisionMockSubscriptionBuilder get _$this { - final $v = _$v; - if ($v != null) { - _currency = $v.currency; - _identityId = $v.identityId; - _interval = $v.interval; - _plan = $v.plan; - _$v = null; - } - return this; - } - - @override - void replace(InternalProvisionMockSubscription other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$InternalProvisionMockSubscription; - } - - @override - void update( - void Function(InternalProvisionMockSubscriptionBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - InternalProvisionMockSubscription build() => _build(); - - _$InternalProvisionMockSubscription _build() { - final _$result = _$v ?? - new _$InternalProvisionMockSubscription._( - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'InternalProvisionMockSubscription', 'currency'), - identityId: BuiltValueNullFieldError.checkNotNull( - identityId, r'InternalProvisionMockSubscription', 'identityId'), - interval: BuiltValueNullFieldError.checkNotNull( - interval, r'InternalProvisionMockSubscription', 'interval'), - plan: BuiltValueNullFieldError.checkNotNull( - plan, r'InternalProvisionMockSubscription', 'plan')); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/list_my_workspaces_response.dart b/clients/client/dart/lib/src/model/list_my_workspaces_response.dart index a9f344f8c04..e2d55df554f 100644 --- a/clients/client/dart/lib/src/model/list_my_workspaces_response.dart +++ b/clients/client/dart/lib/src/model/list_my_workspaces_response.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:ory_client/src/model/workspace.dart'; +import 'package:ory_client/src/model/workspace_meta.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -25,7 +25,7 @@ abstract class ListMyWorkspacesResponse implements Built get workspaces; + BuiltList get workspaces; ListMyWorkspacesResponse._(); @@ -63,7 +63,7 @@ class _$ListMyWorkspacesResponseSerializer implements PrimitiveSerializer; + specifiedType: const FullType(BuiltList, [FullType(WorkspaceMeta)]), + ) as BuiltList; result.workspaces.replace(valueDes); break; default: diff --git a/clients/client/dart/lib/src/model/list_my_workspaces_response.g.dart b/clients/client/dart/lib/src/model/list_my_workspaces_response.g.dart index 810240186e5..67a4784654d 100644 --- a/clients/client/dart/lib/src/model/list_my_workspaces_response.g.dart +++ b/clients/client/dart/lib/src/model/list_my_workspaces_response.g.dart @@ -12,7 +12,7 @@ class _$ListMyWorkspacesResponse extends ListMyWorkspacesResponse { @override final String nextPageToken; @override - final BuiltList workspaces; + final BuiltList workspaces; factory _$ListMyWorkspacesResponse( [void Function(ListMyWorkspacesResponseBuilder)? updates]) => @@ -83,10 +83,10 @@ class ListMyWorkspacesResponseBuilder set nextPageToken(String? nextPageToken) => _$this._nextPageToken = nextPageToken; - ListBuilder? _workspaces; - ListBuilder get workspaces => - _$this._workspaces ??= new ListBuilder(); - set workspaces(ListBuilder? workspaces) => + ListBuilder? _workspaces; + ListBuilder get workspaces => + _$this._workspaces ??= new ListBuilder(); + set workspaces(ListBuilder? workspaces) => _$this._workspaces = workspaces; ListMyWorkspacesResponseBuilder() { diff --git a/clients/client/dart/lib/src/model/list_workspace_projects_response.dart b/clients/client/dart/lib/src/model/list_workspace_projects_response.dart new file mode 100644 index 00000000000..b70e64356e7 --- /dev/null +++ b/clients/client/dart/lib/src/model/list_workspace_projects_response.dart @@ -0,0 +1,140 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:ory_client/src/model/project_metadata.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'list_workspace_projects_response.g.dart'; + +/// ListWorkspaceProjectsResponse +/// +/// Properties: +/// * [hasNextPage] +/// * [nextPage] +/// * [projects] +@BuiltValue() +abstract class ListWorkspaceProjectsResponse implements Built { + @BuiltValueField(wireName: r'has_next_page') + bool get hasNextPage; + + @BuiltValueField(wireName: r'next_page') + String get nextPage; + + @BuiltValueField(wireName: r'projects') + BuiltList get projects; + + ListWorkspaceProjectsResponse._(); + + factory ListWorkspaceProjectsResponse([void updates(ListWorkspaceProjectsResponseBuilder b)]) = _$ListWorkspaceProjectsResponse; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ListWorkspaceProjectsResponseBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ListWorkspaceProjectsResponseSerializer(); +} + +class _$ListWorkspaceProjectsResponseSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ListWorkspaceProjectsResponse, _$ListWorkspaceProjectsResponse]; + + @override + final String wireName = r'ListWorkspaceProjectsResponse'; + + Iterable _serializeProperties( + Serializers serializers, + ListWorkspaceProjectsResponse object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'has_next_page'; + yield serializers.serialize( + object.hasNextPage, + specifiedType: const FullType(bool), + ); + yield r'next_page'; + yield serializers.serialize( + object.nextPage, + specifiedType: const FullType(String), + ); + yield r'projects'; + yield serializers.serialize( + object.projects, + specifiedType: const FullType(BuiltList, [FullType(ProjectMetadata)]), + ); + } + + @override + Object serialize( + Serializers serializers, + ListWorkspaceProjectsResponse object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ListWorkspaceProjectsResponseBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'has_next_page': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.hasNextPage = valueDes; + break; + case r'next_page': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.nextPage = valueDes; + break; + case r'projects': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(ProjectMetadata)]), + ) as BuiltList; + result.projects.replace(valueDes); + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ListWorkspaceProjectsResponse deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ListWorkspaceProjectsResponseBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/client/dart/lib/src/model/list_workspace_projects_response.g.dart b/clients/client/dart/lib/src/model/list_workspace_projects_response.g.dart new file mode 100644 index 00000000000..141cba3d4f1 --- /dev/null +++ b/clients/client/dart/lib/src/model/list_workspace_projects_response.g.dart @@ -0,0 +1,147 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'list_workspace_projects_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ListWorkspaceProjectsResponse extends ListWorkspaceProjectsResponse { + @override + final bool hasNextPage; + @override + final String nextPage; + @override + final BuiltList projects; + + factory _$ListWorkspaceProjectsResponse( + [void Function(ListWorkspaceProjectsResponseBuilder)? updates]) => + (new ListWorkspaceProjectsResponseBuilder()..update(updates))._build(); + + _$ListWorkspaceProjectsResponse._( + {required this.hasNextPage, + required this.nextPage, + required this.projects}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'ListWorkspaceProjectsResponse', 'hasNextPage'); + BuiltValueNullFieldError.checkNotNull( + nextPage, r'ListWorkspaceProjectsResponse', 'nextPage'); + BuiltValueNullFieldError.checkNotNull( + projects, r'ListWorkspaceProjectsResponse', 'projects'); + } + + @override + ListWorkspaceProjectsResponse rebuild( + void Function(ListWorkspaceProjectsResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ListWorkspaceProjectsResponseBuilder toBuilder() => + new ListWorkspaceProjectsResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ListWorkspaceProjectsResponse && + hasNextPage == other.hasNextPage && + nextPage == other.nextPage && + projects == other.projects; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, hasNextPage.hashCode); + _$hash = $jc(_$hash, nextPage.hashCode); + _$hash = $jc(_$hash, projects.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ListWorkspaceProjectsResponse') + ..add('hasNextPage', hasNextPage) + ..add('nextPage', nextPage) + ..add('projects', projects)) + .toString(); + } +} + +class ListWorkspaceProjectsResponseBuilder + implements + Builder { + _$ListWorkspaceProjectsResponse? _$v; + + bool? _hasNextPage; + bool? get hasNextPage => _$this._hasNextPage; + set hasNextPage(bool? hasNextPage) => _$this._hasNextPage = hasNextPage; + + String? _nextPage; + String? get nextPage => _$this._nextPage; + set nextPage(String? nextPage) => _$this._nextPage = nextPage; + + ListBuilder? _projects; + ListBuilder get projects => + _$this._projects ??= new ListBuilder(); + set projects(ListBuilder? projects) => + _$this._projects = projects; + + ListWorkspaceProjectsResponseBuilder() { + ListWorkspaceProjectsResponse._defaults(this); + } + + ListWorkspaceProjectsResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _hasNextPage = $v.hasNextPage; + _nextPage = $v.nextPage; + _projects = $v.projects.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(ListWorkspaceProjectsResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ListWorkspaceProjectsResponse; + } + + @override + void update(void Function(ListWorkspaceProjectsResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ListWorkspaceProjectsResponse build() => _build(); + + _$ListWorkspaceProjectsResponse _build() { + _$ListWorkspaceProjectsResponse _$result; + try { + _$result = _$v ?? + new _$ListWorkspaceProjectsResponse._( + hasNextPage: BuiltValueNullFieldError.checkNotNull( + hasNextPage, r'ListWorkspaceProjectsResponse', 'hasNextPage'), + nextPage: BuiltValueNullFieldError.checkNotNull( + nextPage, r'ListWorkspaceProjectsResponse', 'nextPage'), + projects: projects.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'projects'; + projects.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ListWorkspaceProjectsResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/login_flow.dart b/clients/client/dart/lib/src/model/login_flow.dart index 2a30f6ed15a..ad7490826ed 100644 --- a/clients/client/dart/lib/src/model/login_flow.dart +++ b/clients/client/dart/lib/src/model/login_flow.dart @@ -3,7 +3,7 @@ // // ignore_for_file: unused_element -import 'package:ory_client/src/model/identity_credentials_type.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:ory_client/src/model/o_auth2_login_request.dart'; import 'package:ory_client/src/model/authenticator_assurance_level.dart'; import 'package:ory_client/src/model/ui_container.dart'; @@ -16,7 +16,7 @@ part 'login_flow.g.dart'; /// This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. /// /// Properties: -/// * [active] +/// * [active] - The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [createdAt] - CreatedAt is a helper struct field for gobuffalo.pop. /// * [expiresAt] - ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. /// * [id] - ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http:///?flow= @@ -30,14 +30,16 @@ part 'login_flow.g.dart'; /// * [returnTo] - ReturnTo contains the requested return_to URL. /// * [sessionTokenExchangeCode] - SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. /// * [state] - State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. +/// * [transientPayload] - TransientPayload is used to pass data from the login to hooks and email templates /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. @BuiltValue() abstract class LoginFlow implements Built { + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 @BuiltValueField(wireName: r'active') - IdentityCredentialsType? get active; - // enum activeEnum { password, totp, oidc, webauthn, lookup_secret, code, }; + LoginFlowActiveEnum? get active; + // enum activeEnum { password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery, }; /// CreatedAt is a helper struct field for gobuffalo.pop. @BuiltValueField(wireName: r'created_at') @@ -89,6 +91,10 @@ abstract class LoginFlow implements Built { @BuiltValueField(wireName: r'state') JsonObject? get state; + /// TransientPayload is used to pass data from the login to hooks and email templates + @BuiltValueField(wireName: r'transient_payload') + JsonObject? get transientPayload; + /// The flow type can either be `api` or `browser`. @BuiltValueField(wireName: r'type') String get type; @@ -127,7 +133,7 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { yield r'active'; yield serializers.serialize( object.active, - specifiedType: const FullType(IdentityCredentialsType), + specifiedType: const FullType(LoginFlowActiveEnum), ); } if (object.createdAt != null) { @@ -211,6 +217,13 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { object.state, specifiedType: const FullType.nullable(JsonObject), ); + if (object.transientPayload != null) { + yield r'transient_payload'; + yield serializers.serialize( + object.transientPayload, + specifiedType: const FullType(JsonObject), + ); + } yield r'type'; yield serializers.serialize( object.type, @@ -254,8 +267,8 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { case r'active': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(IdentityCredentialsType), - ) as IdentityCredentialsType; + specifiedType: const FullType(LoginFlowActiveEnum), + ) as LoginFlowActiveEnum; result.active = valueDes; break; case r'created_at': @@ -351,6 +364,13 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { if (valueDes == null) continue; result.state = valueDes; break; + case r'transient_payload': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(JsonObject), + ) as JsonObject; + result.transientPayload = valueDes; + break; case r'type': final valueDes = serializers.deserialize( value, @@ -401,3 +421,38 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { } } +class LoginFlowActiveEnum extends EnumClass { + + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'password') + static const LoginFlowActiveEnum password = _$loginFlowActiveEnum_password; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'oidc') + static const LoginFlowActiveEnum oidc = _$loginFlowActiveEnum_oidc; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'totp') + static const LoginFlowActiveEnum totp = _$loginFlowActiveEnum_totp; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'lookup_secret') + static const LoginFlowActiveEnum lookupSecret = _$loginFlowActiveEnum_lookupSecret; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'webauthn') + static const LoginFlowActiveEnum webauthn = _$loginFlowActiveEnum_webauthn; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'code') + static const LoginFlowActiveEnum code = _$loginFlowActiveEnum_code; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'link_recovery') + static const LoginFlowActiveEnum linkRecovery = _$loginFlowActiveEnum_linkRecovery; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'code_recovery') + static const LoginFlowActiveEnum codeRecovery = _$loginFlowActiveEnum_codeRecovery; + + static Serializer get serializer => _$loginFlowActiveEnumSerializer; + + const LoginFlowActiveEnum._(String name): super(name); + + static BuiltSet get values => _$loginFlowActiveEnumValues; + static LoginFlowActiveEnum valueOf(String name) => _$loginFlowActiveEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/login_flow.g.dart b/clients/client/dart/lib/src/model/login_flow.g.dart index 286170bc64e..92d0b3a3909 100644 --- a/clients/client/dart/lib/src/model/login_flow.g.dart +++ b/clients/client/dart/lib/src/model/login_flow.g.dart @@ -6,9 +6,104 @@ part of 'login_flow.dart'; // BuiltValueGenerator // ************************************************************************** +const LoginFlowActiveEnum _$loginFlowActiveEnum_password = + const LoginFlowActiveEnum._('password'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_oidc = + const LoginFlowActiveEnum._('oidc'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_totp = + const LoginFlowActiveEnum._('totp'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_lookupSecret = + const LoginFlowActiveEnum._('lookupSecret'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_webauthn = + const LoginFlowActiveEnum._('webauthn'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_code = + const LoginFlowActiveEnum._('code'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_linkRecovery = + const LoginFlowActiveEnum._('linkRecovery'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_codeRecovery = + const LoginFlowActiveEnum._('codeRecovery'); + +LoginFlowActiveEnum _$loginFlowActiveEnumValueOf(String name) { + switch (name) { + case 'password': + return _$loginFlowActiveEnum_password; + case 'oidc': + return _$loginFlowActiveEnum_oidc; + case 'totp': + return _$loginFlowActiveEnum_totp; + case 'lookupSecret': + return _$loginFlowActiveEnum_lookupSecret; + case 'webauthn': + return _$loginFlowActiveEnum_webauthn; + case 'code': + return _$loginFlowActiveEnum_code; + case 'linkRecovery': + return _$loginFlowActiveEnum_linkRecovery; + case 'codeRecovery': + return _$loginFlowActiveEnum_codeRecovery; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$loginFlowActiveEnumValues = + new BuiltSet(const [ + _$loginFlowActiveEnum_password, + _$loginFlowActiveEnum_oidc, + _$loginFlowActiveEnum_totp, + _$loginFlowActiveEnum_lookupSecret, + _$loginFlowActiveEnum_webauthn, + _$loginFlowActiveEnum_code, + _$loginFlowActiveEnum_linkRecovery, + _$loginFlowActiveEnum_codeRecovery, +]); + +Serializer _$loginFlowActiveEnumSerializer = + new _$LoginFlowActiveEnumSerializer(); + +class _$LoginFlowActiveEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookupSecret': 'lookup_secret', + 'webauthn': 'webauthn', + 'code': 'code', + 'linkRecovery': 'link_recovery', + 'codeRecovery': 'code_recovery', + }; + static const Map _fromWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookup_secret': 'lookupSecret', + 'webauthn': 'webauthn', + 'code': 'code', + 'link_recovery': 'linkRecovery', + 'code_recovery': 'codeRecovery', + }; + + @override + final Iterable types = const [LoginFlowActiveEnum]; + @override + final String wireName = 'LoginFlowActiveEnum'; + + @override + Object serialize(Serializers serializers, LoginFlowActiveEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + LoginFlowActiveEnum deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + LoginFlowActiveEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$LoginFlow extends LoginFlow { @override - final IdentityCredentialsType? active; + final LoginFlowActiveEnum? active; @override final DateTime? createdAt; @override @@ -36,6 +131,8 @@ class _$LoginFlow extends LoginFlow { @override final JsonObject? state; @override + final JsonObject? transientPayload; + @override final String type; @override final UiContainer ui; @@ -60,6 +157,7 @@ class _$LoginFlow extends LoginFlow { this.returnTo, this.sessionTokenExchangeCode, this.state, + this.transientPayload, required this.type, required this.ui, this.updatedAt}) @@ -98,6 +196,7 @@ class _$LoginFlow extends LoginFlow { returnTo == other.returnTo && sessionTokenExchangeCode == other.sessionTokenExchangeCode && state == other.state && + transientPayload == other.transientPayload && type == other.type && ui == other.ui && updatedAt == other.updatedAt; @@ -120,6 +219,7 @@ class _$LoginFlow extends LoginFlow { _$hash = $jc(_$hash, returnTo.hashCode); _$hash = $jc(_$hash, sessionTokenExchangeCode.hashCode); _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jc(_$hash, type.hashCode); _$hash = $jc(_$hash, ui.hashCode); _$hash = $jc(_$hash, updatedAt.hashCode); @@ -144,6 +244,7 @@ class _$LoginFlow extends LoginFlow { ..add('returnTo', returnTo) ..add('sessionTokenExchangeCode', sessionTokenExchangeCode) ..add('state', state) + ..add('transientPayload', transientPayload) ..add('type', type) ..add('ui', ui) ..add('updatedAt', updatedAt)) @@ -154,9 +255,9 @@ class _$LoginFlow extends LoginFlow { class LoginFlowBuilder implements Builder { _$LoginFlow? _$v; - IdentityCredentialsType? _active; - IdentityCredentialsType? get active => _$this._active; - set active(IdentityCredentialsType? active) => _$this._active = active; + LoginFlowActiveEnum? _active; + LoginFlowActiveEnum? get active => _$this._active; + set active(LoginFlowActiveEnum? active) => _$this._active = active; DateTime? _createdAt; DateTime? get createdAt => _$this._createdAt; @@ -216,6 +317,11 @@ class LoginFlowBuilder implements Builder { JsonObject? get state => _$this._state; set state(JsonObject? state) => _$this._state = state; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _type; String? get type => _$this._type; set type(String? type) => _$this._type = type; @@ -249,6 +355,7 @@ class LoginFlowBuilder implements Builder { _returnTo = $v.returnTo; _sessionTokenExchangeCode = $v.sessionTokenExchangeCode; _state = $v.state; + _transientPayload = $v.transientPayload; _type = $v.type; _ui = $v.ui.toBuilder(); _updatedAt = $v.updatedAt; @@ -293,6 +400,7 @@ class LoginFlowBuilder implements Builder { returnTo: returnTo, sessionTokenExchangeCode: sessionTokenExchangeCode, state: state, + transientPayload: transientPayload, type: BuiltValueNullFieldError.checkNotNull( type, r'LoginFlow', 'type'), ui: ui.build(), diff --git a/clients/client/dart/lib/src/model/migration_options.dart b/clients/client/dart/lib/src/model/migration_options.dart new file mode 100644 index 00000000000..150da3e28dc --- /dev/null +++ b/clients/client/dart/lib/src/model/migration_options.dart @@ -0,0 +1,161 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'migration_options.g.dart'; + +/// MigrationOptions +/// +/// Properties: +/// * [environment] - The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development +/// * [projectSubscription] - The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. +@BuiltValue() +abstract class MigrationOptions implements Built { + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + @BuiltValueField(wireName: r'environment') + MigrationOptionsEnvironmentEnum get environment; + // enum environmentEnum { prod, dev, }; + + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + @BuiltValueField(wireName: r'project_subscription') + MigrationOptionsProjectSubscriptionEnum get projectSubscription; + // enum projectSubscriptionEnum { migrate, ignore, }; + + MigrationOptions._(); + + factory MigrationOptions([void updates(MigrationOptionsBuilder b)]) = _$MigrationOptions; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(MigrationOptionsBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$MigrationOptionsSerializer(); +} + +class _$MigrationOptionsSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [MigrationOptions, _$MigrationOptions]; + + @override + final String wireName = r'MigrationOptions'; + + Iterable _serializeProperties( + Serializers serializers, + MigrationOptions object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'environment'; + yield serializers.serialize( + object.environment, + specifiedType: const FullType(MigrationOptionsEnvironmentEnum), + ); + yield r'project_subscription'; + yield serializers.serialize( + object.projectSubscription, + specifiedType: const FullType(MigrationOptionsProjectSubscriptionEnum), + ); + } + + @override + Object serialize( + Serializers serializers, + MigrationOptions object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required MigrationOptionsBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'environment': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(MigrationOptionsEnvironmentEnum), + ) as MigrationOptionsEnvironmentEnum; + result.environment = valueDes; + break; + case r'project_subscription': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(MigrationOptionsProjectSubscriptionEnum), + ) as MigrationOptionsProjectSubscriptionEnum; + result.projectSubscription = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + MigrationOptions deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = MigrationOptionsBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + +class MigrationOptionsEnvironmentEnum extends EnumClass { + + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + @BuiltValueEnumConst(wireName: r'prod') + static const MigrationOptionsEnvironmentEnum prod = _$migrationOptionsEnvironmentEnum_prod; + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + @BuiltValueEnumConst(wireName: r'dev') + static const MigrationOptionsEnvironmentEnum dev = _$migrationOptionsEnvironmentEnum_dev; + + static Serializer get serializer => _$migrationOptionsEnvironmentEnumSerializer; + + const MigrationOptionsEnvironmentEnum._(String name): super(name); + + static BuiltSet get values => _$migrationOptionsEnvironmentEnumValues; + static MigrationOptionsEnvironmentEnum valueOf(String name) => _$migrationOptionsEnvironmentEnumValueOf(name); +} + +class MigrationOptionsProjectSubscriptionEnum extends EnumClass { + + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + @BuiltValueEnumConst(wireName: r'migrate') + static const MigrationOptionsProjectSubscriptionEnum migrate = _$migrationOptionsProjectSubscriptionEnum_migrate; + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + @BuiltValueEnumConst(wireName: r'ignore') + static const MigrationOptionsProjectSubscriptionEnum ignore = _$migrationOptionsProjectSubscriptionEnum_ignore; + + static Serializer get serializer => _$migrationOptionsProjectSubscriptionEnumSerializer; + + const MigrationOptionsProjectSubscriptionEnum._(String name): super(name); + + static BuiltSet get values => _$migrationOptionsProjectSubscriptionEnumValues; + static MigrationOptionsProjectSubscriptionEnum valueOf(String name) => _$migrationOptionsProjectSubscriptionEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/migration_options.g.dart b/clients/client/dart/lib/src/model/migration_options.g.dart new file mode 100644 index 00000000000..ee971a3be01 --- /dev/null +++ b/clients/client/dart/lib/src/model/migration_options.g.dart @@ -0,0 +1,239 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'migration_options.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const MigrationOptionsEnvironmentEnum _$migrationOptionsEnvironmentEnum_prod = + const MigrationOptionsEnvironmentEnum._('prod'); +const MigrationOptionsEnvironmentEnum _$migrationOptionsEnvironmentEnum_dev = + const MigrationOptionsEnvironmentEnum._('dev'); + +MigrationOptionsEnvironmentEnum _$migrationOptionsEnvironmentEnumValueOf( + String name) { + switch (name) { + case 'prod': + return _$migrationOptionsEnvironmentEnum_prod; + case 'dev': + return _$migrationOptionsEnvironmentEnum_dev; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$migrationOptionsEnvironmentEnumValues = new BuiltSet< + MigrationOptionsEnvironmentEnum>(const [ + _$migrationOptionsEnvironmentEnum_prod, + _$migrationOptionsEnvironmentEnum_dev, +]); + +const MigrationOptionsProjectSubscriptionEnum + _$migrationOptionsProjectSubscriptionEnum_migrate = + const MigrationOptionsProjectSubscriptionEnum._('migrate'); +const MigrationOptionsProjectSubscriptionEnum + _$migrationOptionsProjectSubscriptionEnum_ignore = + const MigrationOptionsProjectSubscriptionEnum._('ignore'); + +MigrationOptionsProjectSubscriptionEnum + _$migrationOptionsProjectSubscriptionEnumValueOf(String name) { + switch (name) { + case 'migrate': + return _$migrationOptionsProjectSubscriptionEnum_migrate; + case 'ignore': + return _$migrationOptionsProjectSubscriptionEnum_ignore; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$migrationOptionsProjectSubscriptionEnumValues = new BuiltSet< + MigrationOptionsProjectSubscriptionEnum>(const [ + _$migrationOptionsProjectSubscriptionEnum_migrate, + _$migrationOptionsProjectSubscriptionEnum_ignore, +]); + +Serializer + _$migrationOptionsEnvironmentEnumSerializer = + new _$MigrationOptionsEnvironmentEnumSerializer(); +Serializer + _$migrationOptionsProjectSubscriptionEnumSerializer = + new _$MigrationOptionsProjectSubscriptionEnumSerializer(); + +class _$MigrationOptionsEnvironmentEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + static const Map _fromWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + + @override + final Iterable types = const [MigrationOptionsEnvironmentEnum]; + @override + final String wireName = 'MigrationOptionsEnvironmentEnum'; + + @override + Object serialize( + Serializers serializers, MigrationOptionsEnvironmentEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + MigrationOptionsEnvironmentEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + MigrationOptionsEnvironmentEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$MigrationOptionsProjectSubscriptionEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'migrate': 'migrate', + 'ignore': 'ignore', + }; + static const Map _fromWire = const { + 'migrate': 'migrate', + 'ignore': 'ignore', + }; + + @override + final Iterable types = const [ + MigrationOptionsProjectSubscriptionEnum + ]; + @override + final String wireName = 'MigrationOptionsProjectSubscriptionEnum'; + + @override + Object serialize(Serializers serializers, + MigrationOptionsProjectSubscriptionEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + MigrationOptionsProjectSubscriptionEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + MigrationOptionsProjectSubscriptionEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$MigrationOptions extends MigrationOptions { + @override + final MigrationOptionsEnvironmentEnum environment; + @override + final MigrationOptionsProjectSubscriptionEnum projectSubscription; + + factory _$MigrationOptions( + [void Function(MigrationOptionsBuilder)? updates]) => + (new MigrationOptionsBuilder()..update(updates))._build(); + + _$MigrationOptions._( + {required this.environment, required this.projectSubscription}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + environment, r'MigrationOptions', 'environment'); + BuiltValueNullFieldError.checkNotNull( + projectSubscription, r'MigrationOptions', 'projectSubscription'); + } + + @override + MigrationOptions rebuild(void Function(MigrationOptionsBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + MigrationOptionsBuilder toBuilder() => + new MigrationOptionsBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is MigrationOptions && + environment == other.environment && + projectSubscription == other.projectSubscription; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, environment.hashCode); + _$hash = $jc(_$hash, projectSubscription.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'MigrationOptions') + ..add('environment', environment) + ..add('projectSubscription', projectSubscription)) + .toString(); + } +} + +class MigrationOptionsBuilder + implements Builder { + _$MigrationOptions? _$v; + + MigrationOptionsEnvironmentEnum? _environment; + MigrationOptionsEnvironmentEnum? get environment => _$this._environment; + set environment(MigrationOptionsEnvironmentEnum? environment) => + _$this._environment = environment; + + MigrationOptionsProjectSubscriptionEnum? _projectSubscription; + MigrationOptionsProjectSubscriptionEnum? get projectSubscription => + _$this._projectSubscription; + set projectSubscription( + MigrationOptionsProjectSubscriptionEnum? projectSubscription) => + _$this._projectSubscription = projectSubscription; + + MigrationOptionsBuilder() { + MigrationOptions._defaults(this); + } + + MigrationOptionsBuilder get _$this { + final $v = _$v; + if ($v != null) { + _environment = $v.environment; + _projectSubscription = $v.projectSubscription; + _$v = null; + } + return this; + } + + @override + void replace(MigrationOptions other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$MigrationOptions; + } + + @override + void update(void Function(MigrationOptionsBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + MigrationOptions build() => _build(); + + _$MigrationOptions _build() { + final _$result = _$v ?? + new _$MigrationOptions._( + environment: BuiltValueNullFieldError.checkNotNull( + environment, r'MigrationOptions', 'environment'), + projectSubscription: BuiltValueNullFieldError.checkNotNull( + projectSubscription, + r'MigrationOptions', + 'projectSubscription')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/normalized_project_revision.dart b/clients/client/dart/lib/src/model/normalized_project_revision.dart index 43e5beb70c9..87193600eb1 100644 --- a/clients/client/dart/lib/src/model/normalized_project_revision.dart +++ b/clients/client/dart/lib/src/model/normalized_project_revision.dart @@ -21,12 +21,14 @@ part 'normalized_project_revision.g.dart'; /// Properties: /// * [createdAt] - The Project's Revision Creation Date /// * [disableAccountExperienceWelcomeScreen] - Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. +/// * [enableAxV2] - Whether the new account experience is enabled and reachable. /// * [hydraOauth2AllowedTopLevelClaims] /// * [hydraOauth2ClientCredentialsDefaultGrantAllowedScope] - Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. /// * [hydraOauth2ExcludeNotBeforeClaim] - Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. /// * [hydraOauth2GrantJwtIatOptional] - Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. /// * [hydraOauth2GrantJwtJtiOptional] - Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. /// * [hydraOauth2GrantJwtMaxTtl] - Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. +/// * [hydraOauth2MirrorTopLevelClaims] - Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. /// * [hydraOauth2PkceEnforced] - Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. /// * [hydraOauth2PkceEnforcedForPublicClients] - Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. /// * [hydraOauth2RefreshTokenHook] - Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. @@ -85,6 +87,7 @@ part 'normalized_project_revision.g.dart'; /// * [kratosCourierTemplatesLoginCodeValidEmailBodyHtml] - Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. /// * [kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext] - Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. /// * [kratosCourierTemplatesLoginCodeValidEmailSubject] - Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. +/// * [kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext] - Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. /// * [kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml] - Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. /// * [kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext] - Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. /// * [kratosCourierTemplatesRecoveryCodeInvalidEmailSubject] - Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. @@ -170,6 +173,7 @@ part 'normalized_project_revision.g.dart'; /// * [kratosSelfserviceFlowsVerificationUse] - Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode /// * [kratosSelfserviceMethodsCodeConfigLifespan] - Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. /// * [kratosSelfserviceMethodsCodeEnabled] - Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. +/// * [kratosSelfserviceMethodsCodeMfaEnabled] - Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. /// * [kratosSelfserviceMethodsCodePasswordlessEnabled] - Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. /// * [kratosSelfserviceMethodsLinkConfigBaseUrl] - Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. /// * [kratosSelfserviceMethodsLinkConfigLifespan] - Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. @@ -217,6 +221,10 @@ abstract class NormalizedProjectRevision implements Built? get hydraOauth2AllowedTopLevelClaims; @@ -240,6 +248,10 @@ abstract class NormalizedProjectRevision implements Built? hydraOauth2AllowedTopLevelClaims; @override final bool? hydraOauth2ClientCredentialsDefaultGrantAllowedScope; @@ -293,6 +295,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { @override final String? hydraOauth2GrantJwtMaxTtl; @override + final bool? hydraOauth2MirrorTopLevelClaims; + @override final bool? hydraOauth2PkceEnforced; @override final bool? hydraOauth2PkceEnforcedForPublicClients; @@ -411,6 +415,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { @override final String? kratosCourierTemplatesLoginCodeValidEmailSubject; @override + final String? kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + @override final String? kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @override final String? kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext; @@ -593,6 +599,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { @override final bool? kratosSelfserviceMethodsCodeEnabled; @override + final bool? kratosSelfserviceMethodsCodeMfaEnabled; + @override final bool? kratosSelfserviceMethodsCodePasswordlessEnabled; @override final String? kratosSelfserviceMethodsLinkConfigBaseUrl; @@ -677,12 +685,14 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { _$NormalizedProjectRevision._( {this.createdAt, this.disableAccountExperienceWelcomeScreen, + this.enableAxV2, this.hydraOauth2AllowedTopLevelClaims, this.hydraOauth2ClientCredentialsDefaultGrantAllowedScope, this.hydraOauth2ExcludeNotBeforeClaim, this.hydraOauth2GrantJwtIatOptional, this.hydraOauth2GrantJwtJtiOptional, this.hydraOauth2GrantJwtMaxTtl, + this.hydraOauth2MirrorTopLevelClaims, this.hydraOauth2PkceEnforced, this.hydraOauth2PkceEnforcedForPublicClients, this.hydraOauth2RefreshTokenHook, @@ -741,6 +751,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { this.kratosCourierTemplatesLoginCodeValidEmailBodyHtml, this.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, this.kratosCourierTemplatesLoginCodeValidEmailSubject, + this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, this.kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, @@ -826,6 +837,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { this.kratosSelfserviceFlowsVerificationUse, this.kratosSelfserviceMethodsCodeConfigLifespan, this.kratosSelfserviceMethodsCodeEnabled, + this.kratosSelfserviceMethodsCodeMfaEnabled, this.kratosSelfserviceMethodsCodePasswordlessEnabled, this.kratosSelfserviceMethodsLinkConfigBaseUrl, this.kratosSelfserviceMethodsLinkConfigLifespan, @@ -884,6 +896,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { createdAt == other.createdAt && disableAccountExperienceWelcomeScreen == other.disableAccountExperienceWelcomeScreen && + enableAxV2 == other.enableAxV2 && hydraOauth2AllowedTopLevelClaims == other.hydraOauth2AllowedTopLevelClaims && hydraOauth2ClientCredentialsDefaultGrantAllowedScope == @@ -895,6 +908,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { hydraOauth2GrantJwtJtiOptional == other.hydraOauth2GrantJwtJtiOptional && hydraOauth2GrantJwtMaxTtl == other.hydraOauth2GrantJwtMaxTtl && + hydraOauth2MirrorTopLevelClaims == + other.hydraOauth2MirrorTopLevelClaims && hydraOauth2PkceEnforced == other.hydraOauth2PkceEnforced && hydraOauth2PkceEnforcedForPublicClients == other.hydraOauth2PkceEnforcedForPublicClients && @@ -981,6 +996,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { other.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext && kratosCourierTemplatesLoginCodeValidEmailSubject == other.kratosCourierTemplatesLoginCodeValidEmailSubject && + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext == + other.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext && kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml == other.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml && kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext == @@ -1163,6 +1180,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { other.kratosSelfserviceMethodsCodeConfigLifespan && kratosSelfserviceMethodsCodeEnabled == other.kratosSelfserviceMethodsCodeEnabled && + kratosSelfserviceMethodsCodeMfaEnabled == + other.kratosSelfserviceMethodsCodeMfaEnabled && kratosSelfserviceMethodsCodePasswordlessEnabled == other.kratosSelfserviceMethodsCodePasswordlessEnabled && kratosSelfserviceMethodsLinkConfigBaseUrl == @@ -1233,6 +1252,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { var _$hash = 0; _$hash = $jc(_$hash, createdAt.hashCode); _$hash = $jc(_$hash, disableAccountExperienceWelcomeScreen.hashCode); + _$hash = $jc(_$hash, enableAxV2.hashCode); _$hash = $jc(_$hash, hydraOauth2AllowedTopLevelClaims.hashCode); _$hash = $jc( _$hash, hydraOauth2ClientCredentialsDefaultGrantAllowedScope.hashCode); @@ -1240,6 +1260,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { _$hash = $jc(_$hash, hydraOauth2GrantJwtIatOptional.hashCode); _$hash = $jc(_$hash, hydraOauth2GrantJwtJtiOptional.hashCode); _$hash = $jc(_$hash, hydraOauth2GrantJwtMaxTtl.hashCode); + _$hash = $jc(_$hash, hydraOauth2MirrorTopLevelClaims.hashCode); _$hash = $jc(_$hash, hydraOauth2PkceEnforced.hashCode); _$hash = $jc(_$hash, hydraOauth2PkceEnforcedForPublicClients.hashCode); _$hash = $jc(_$hash, hydraOauth2RefreshTokenHook.hashCode); @@ -1306,6 +1327,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext.hashCode); _$hash = $jc(_$hash, kratosCourierTemplatesLoginCodeValidEmailSubject.hashCode); + _$hash = $jc( + _$hash, kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext.hashCode); _$hash = $jc(_$hash, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml.hashCode); _$hash = $jc(_$hash, @@ -1476,6 +1499,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { _$hash = $jc(_$hash, kratosSelfserviceFlowsVerificationUse.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsCodeConfigLifespan.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsCodeEnabled.hashCode); + _$hash = $jc(_$hash, kratosSelfserviceMethodsCodeMfaEnabled.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsCodePasswordlessEnabled.hashCode); _$hash = $jc(_$hash, kratosSelfserviceMethodsLinkConfigBaseUrl.hashCode); @@ -1535,6 +1559,7 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { ..add('createdAt', createdAt) ..add('disableAccountExperienceWelcomeScreen', disableAccountExperienceWelcomeScreen) + ..add('enableAxV2', enableAxV2) ..add('hydraOauth2AllowedTopLevelClaims', hydraOauth2AllowedTopLevelClaims) ..add('hydraOauth2ClientCredentialsDefaultGrantAllowedScope', @@ -1546,6 +1571,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { ..add( 'hydraOauth2GrantJwtJtiOptional', hydraOauth2GrantJwtJtiOptional) ..add('hydraOauth2GrantJwtMaxTtl', hydraOauth2GrantJwtMaxTtl) + ..add('hydraOauth2MirrorTopLevelClaims', + hydraOauth2MirrorTopLevelClaims) ..add('hydraOauth2PkceEnforced', hydraOauth2PkceEnforced) ..add('hydraOauth2PkceEnforcedForPublicClients', hydraOauth2PkceEnforcedForPublicClients) @@ -1632,6 +1659,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext) ..add('kratosCourierTemplatesLoginCodeValidEmailSubject', kratosCourierTemplatesLoginCodeValidEmailSubject) + ..add('kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext', + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) ..add('kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml', kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) ..add('kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext', @@ -1812,6 +1841,8 @@ class _$NormalizedProjectRevision extends NormalizedProjectRevision { kratosSelfserviceMethodsCodeConfigLifespan) ..add('kratosSelfserviceMethodsCodeEnabled', kratosSelfserviceMethodsCodeEnabled) + ..add('kratosSelfserviceMethodsCodeMfaEnabled', + kratosSelfserviceMethodsCodeMfaEnabled) ..add('kratosSelfserviceMethodsCodePasswordlessEnabled', kratosSelfserviceMethodsCodePasswordlessEnabled) ..add('kratosSelfserviceMethodsLinkConfigBaseUrl', @@ -1896,6 +1927,10 @@ class NormalizedProjectRevisionBuilder _$this._disableAccountExperienceWelcomeScreen = disableAccountExperienceWelcomeScreen; + bool? _enableAxV2; + bool? get enableAxV2 => _$this._enableAxV2; + set enableAxV2(bool? enableAxV2) => _$this._enableAxV2 = enableAxV2; + ListBuilder? _hydraOauth2AllowedTopLevelClaims; ListBuilder get hydraOauth2AllowedTopLevelClaims => _$this._hydraOauth2AllowedTopLevelClaims ??= new ListBuilder(); @@ -1937,6 +1972,12 @@ class NormalizedProjectRevisionBuilder set hydraOauth2GrantJwtMaxTtl(String? hydraOauth2GrantJwtMaxTtl) => _$this._hydraOauth2GrantJwtMaxTtl = hydraOauth2GrantJwtMaxTtl; + bool? _hydraOauth2MirrorTopLevelClaims; + bool? get hydraOauth2MirrorTopLevelClaims => + _$this._hydraOauth2MirrorTopLevelClaims; + set hydraOauth2MirrorTopLevelClaims(bool? hydraOauth2MirrorTopLevelClaims) => + _$this._hydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; + bool? _hydraOauth2PkceEnforced; bool? get hydraOauth2PkceEnforced => _$this._hydraOauth2PkceEnforced; set hydraOauth2PkceEnforced(bool? hydraOauth2PkceEnforced) => @@ -2332,6 +2373,14 @@ class NormalizedProjectRevisionBuilder _$this._kratosCourierTemplatesLoginCodeValidEmailSubject = kratosCourierTemplatesLoginCodeValidEmailSubject; + String? _kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + String? get kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext => + _$this._kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + set kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext( + String? kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) => + _$this._kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + String? _kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; String? get kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml => _$this._kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @@ -3043,6 +3092,14 @@ class NormalizedProjectRevisionBuilder _$this._kratosSelfserviceMethodsCodeEnabled = kratosSelfserviceMethodsCodeEnabled; + bool? _kratosSelfserviceMethodsCodeMfaEnabled; + bool? get kratosSelfserviceMethodsCodeMfaEnabled => + _$this._kratosSelfserviceMethodsCodeMfaEnabled; + set kratosSelfserviceMethodsCodeMfaEnabled( + bool? kratosSelfserviceMethodsCodeMfaEnabled) => + _$this._kratosSelfserviceMethodsCodeMfaEnabled = + kratosSelfserviceMethodsCodeMfaEnabled; + bool? _kratosSelfserviceMethodsCodePasswordlessEnabled; bool? get kratosSelfserviceMethodsCodePasswordlessEnabled => _$this._kratosSelfserviceMethodsCodePasswordlessEnabled; @@ -3329,6 +3386,7 @@ class NormalizedProjectRevisionBuilder _createdAt = $v.createdAt; _disableAccountExperienceWelcomeScreen = $v.disableAccountExperienceWelcomeScreen; + _enableAxV2 = $v.enableAxV2; _hydraOauth2AllowedTopLevelClaims = $v.hydraOauth2AllowedTopLevelClaims?.toBuilder(); _hydraOauth2ClientCredentialsDefaultGrantAllowedScope = @@ -3337,6 +3395,7 @@ class NormalizedProjectRevisionBuilder _hydraOauth2GrantJwtIatOptional = $v.hydraOauth2GrantJwtIatOptional; _hydraOauth2GrantJwtJtiOptional = $v.hydraOauth2GrantJwtJtiOptional; _hydraOauth2GrantJwtMaxTtl = $v.hydraOauth2GrantJwtMaxTtl; + _hydraOauth2MirrorTopLevelClaims = $v.hydraOauth2MirrorTopLevelClaims; _hydraOauth2PkceEnforced = $v.hydraOauth2PkceEnforced; _hydraOauth2PkceEnforcedForPublicClients = $v.hydraOauth2PkceEnforcedForPublicClients; @@ -3421,6 +3480,8 @@ class NormalizedProjectRevisionBuilder $v.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext; _kratosCourierTemplatesLoginCodeValidEmailSubject = $v.kratosCourierTemplatesLoginCodeValidEmailSubject; + _kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = + $v.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; _kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = $v.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; _kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = @@ -3582,6 +3643,8 @@ class NormalizedProjectRevisionBuilder $v.kratosSelfserviceMethodsCodeConfigLifespan; _kratosSelfserviceMethodsCodeEnabled = $v.kratosSelfserviceMethodsCodeEnabled; + _kratosSelfserviceMethodsCodeMfaEnabled = + $v.kratosSelfserviceMethodsCodeMfaEnabled; _kratosSelfserviceMethodsCodePasswordlessEnabled = $v.kratosSelfserviceMethodsCodePasswordlessEnabled; _kratosSelfserviceMethodsLinkConfigBaseUrl = @@ -3672,6 +3735,7 @@ class NormalizedProjectRevisionBuilder createdAt: createdAt, disableAccountExperienceWelcomeScreen: disableAccountExperienceWelcomeScreen, + enableAxV2: enableAxV2, hydraOauth2AllowedTopLevelClaims: _hydraOauth2AllowedTopLevelClaims?.build(), hydraOauth2ClientCredentialsDefaultGrantAllowedScope: @@ -3681,6 +3745,7 @@ class NormalizedProjectRevisionBuilder hydraOauth2GrantJwtIatOptional: hydraOauth2GrantJwtIatOptional, hydraOauth2GrantJwtJtiOptional: hydraOauth2GrantJwtJtiOptional, hydraOauth2GrantJwtMaxTtl: hydraOauth2GrantJwtMaxTtl, + hydraOauth2MirrorTopLevelClaims: hydraOauth2MirrorTopLevelClaims, hydraOauth2PkceEnforced: hydraOauth2PkceEnforced, hydraOauth2PkceEnforcedForPublicClients: hydraOauth2PkceEnforcedForPublicClients, @@ -3766,6 +3831,8 @@ class NormalizedProjectRevisionBuilder kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, kratosCourierTemplatesLoginCodeValidEmailSubject: kratosCourierTemplatesLoginCodeValidEmailSubject, + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext: + kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: @@ -3879,6 +3946,7 @@ class NormalizedProjectRevisionBuilder kratosSelfserviceFlowsVerificationUse: kratosSelfserviceFlowsVerificationUse, kratosSelfserviceMethodsCodeConfigLifespan: kratosSelfserviceMethodsCodeConfigLifespan, kratosSelfserviceMethodsCodeEnabled: kratosSelfserviceMethodsCodeEnabled, + kratosSelfserviceMethodsCodeMfaEnabled: kratosSelfserviceMethodsCodeMfaEnabled, kratosSelfserviceMethodsCodePasswordlessEnabled: kratosSelfserviceMethodsCodePasswordlessEnabled, kratosSelfserviceMethodsLinkConfigBaseUrl: kratosSelfserviceMethodsLinkConfigBaseUrl, kratosSelfserviceMethodsLinkConfigLifespan: kratosSelfserviceMethodsLinkConfigLifespan, diff --git a/clients/client/dart/lib/src/model/normalized_project_revision_third_party_provider.dart b/clients/client/dart/lib/src/model/normalized_project_revision_third_party_provider.dart index 385a132982f..597d0b03c49 100644 --- a/clients/client/dart/lib/src/model/normalized_project_revision_third_party_provider.dart +++ b/clients/client/dart/lib/src/model/normalized_project_revision_third_party_provider.dart @@ -19,6 +19,7 @@ part 'normalized_project_revision_third_party_provider.g.dart'; /// * [appleTeamId] - Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret /// * [authUrl] - AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. /// * [azureTenant] - Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. +/// * [claimsSource] /// * [clientId] - ClientID is the application's Client ID. /// * [clientSecret] /// * [createdAt] - The Project's Revision Creation Date @@ -60,6 +61,9 @@ abstract class NormalizedProjectRevisionThirdPartyProvider implements Built _$this._azureTenant; set azureTenant(String? azureTenant) => _$this._azureTenant = azureTenant; + String? _claimsSource; + String? get claimsSource => _$this._claimsSource; + set claimsSource(String? claimsSource) => _$this._claimsSource = claimsSource; + String? _clientId; String? get clientId => _$this._clientId; set clientId(String? clientId) => _$this._clientId = clientId; @@ -375,6 +385,7 @@ class NormalizedProjectRevisionThirdPartyProviderBuilder _appleTeamId = $v.appleTeamId; _authUrl = $v.authUrl; _azureTenant = $v.azureTenant; + _claimsSource = $v.claimsSource; _clientId = $v.clientId; _clientSecret = $v.clientSecret; _createdAt = $v.createdAt; @@ -424,6 +435,7 @@ class NormalizedProjectRevisionThirdPartyProviderBuilder appleTeamId: appleTeamId, authUrl: authUrl, azureTenant: azureTenant, + claimsSource: claimsSource, clientId: clientId, clientSecret: clientSecret, createdAt: createdAt, diff --git a/clients/client/dart/lib/src/model/o_auth2_client.dart b/clients/client/dart/lib/src/model/o_auth2_client.dart index 5e385345e54..3adc5ef44b5 100644 --- a/clients/client/dart/lib/src/model/o_auth2_client.dart +++ b/clients/client/dart/lib/src/model/o_auth2_client.dart @@ -54,6 +54,7 @@ part 'o_auth2_client.g.dart'; /// * [scope] - OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. /// * [sectorIdentifierUri] - OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. /// * [skipConsent] - SkipConsent skips the consent screen for this client. This field can only be set from the admin API. +/// * [skipLogoutConsent] - SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. /// * [subjectType] - OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. /// * [tokenEndpointAuthMethod] - OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. /// * [tokenEndpointAuthSigningAlg] - OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. @@ -207,6 +208,10 @@ abstract class OAuth2Client implements Built @BuiltValueField(wireName: r'skip_consent') bool? get skipConsent; + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + @BuiltValueField(wireName: r'skip_logout_consent') + bool? get skipLogoutConsent; + /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. @BuiltValueField(wireName: r'subject_type') String? get subjectType; @@ -542,6 +547,13 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { specifiedType: const FullType(bool), ); } + if (object.skipLogoutConsent != null) { + yield r'skip_logout_consent'; + yield serializers.serialize( + object.skipLogoutConsent, + specifiedType: const FullType(bool), + ); + } if (object.subjectType != null) { yield r'subject_type'; yield serializers.serialize( @@ -905,6 +917,13 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { ) as bool; result.skipConsent = valueDes; break; + case r'skip_logout_consent': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.skipLogoutConsent = valueDes; + break; case r'subject_type': final valueDes = serializers.deserialize( value, diff --git a/clients/client/dart/lib/src/model/o_auth2_client.g.dart b/clients/client/dart/lib/src/model/o_auth2_client.g.dart index c455437bb57..60e04cb59a6 100644 --- a/clients/client/dart/lib/src/model/o_auth2_client.g.dart +++ b/clients/client/dart/lib/src/model/o_auth2_client.g.dart @@ -90,6 +90,8 @@ class _$OAuth2Client extends OAuth2Client { @override final bool? skipConsent; @override + final bool? skipLogoutConsent; + @override final String? subjectType; @override final String? tokenEndpointAuthMethod; @@ -147,6 +149,7 @@ class _$OAuth2Client extends OAuth2Client { this.scope, this.sectorIdentifierUri, this.skipConsent, + this.skipLogoutConsent, this.subjectType, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, @@ -218,6 +221,7 @@ class _$OAuth2Client extends OAuth2Client { scope == other.scope && sectorIdentifierUri == other.sectorIdentifierUri && skipConsent == other.skipConsent && + skipLogoutConsent == other.skipLogoutConsent && subjectType == other.subjectType && tokenEndpointAuthMethod == other.tokenEndpointAuthMethod && tokenEndpointAuthSigningAlg == other.tokenEndpointAuthSigningAlg && @@ -270,6 +274,7 @@ class _$OAuth2Client extends OAuth2Client { _$hash = $jc(_$hash, scope.hashCode); _$hash = $jc(_$hash, sectorIdentifierUri.hashCode); _$hash = $jc(_$hash, skipConsent.hashCode); + _$hash = $jc(_$hash, skipLogoutConsent.hashCode); _$hash = $jc(_$hash, subjectType.hashCode); _$hash = $jc(_$hash, tokenEndpointAuthMethod.hashCode); _$hash = $jc(_$hash, tokenEndpointAuthSigningAlg.hashCode); @@ -335,6 +340,7 @@ class _$OAuth2Client extends OAuth2Client { ..add('scope', scope) ..add('sectorIdentifierUri', sectorIdentifierUri) ..add('skipConsent', skipConsent) + ..add('skipLogoutConsent', skipLogoutConsent) ..add('subjectType', subjectType) ..add('tokenEndpointAuthMethod', tokenEndpointAuthMethod) ..add('tokenEndpointAuthSigningAlg', tokenEndpointAuthSigningAlg) @@ -581,6 +587,11 @@ class OAuth2ClientBuilder bool? get skipConsent => _$this._skipConsent; set skipConsent(bool? skipConsent) => _$this._skipConsent = skipConsent; + bool? _skipLogoutConsent; + bool? get skipLogoutConsent => _$this._skipLogoutConsent; + set skipLogoutConsent(bool? skipLogoutConsent) => + _$this._skipLogoutConsent = skipLogoutConsent; + String? _subjectType; String? get subjectType => _$this._subjectType; set subjectType(String? subjectType) => _$this._subjectType = subjectType; @@ -663,6 +674,7 @@ class OAuth2ClientBuilder _scope = $v.scope; _sectorIdentifierUri = $v.sectorIdentifierUri; _skipConsent = $v.skipConsent; + _skipLogoutConsent = $v.skipLogoutConsent; _subjectType = $v.subjectType; _tokenEndpointAuthMethod = $v.tokenEndpointAuthMethod; _tokenEndpointAuthSigningAlg = $v.tokenEndpointAuthSigningAlg; @@ -745,6 +757,7 @@ class OAuth2ClientBuilder scope: scope, sectorIdentifierUri: sectorIdentifierUri, skipConsent: skipConsent, + skipLogoutConsent: skipLogoutConsent, subjectType: subjectType, tokenEndpointAuthMethod: tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg: tokenEndpointAuthSigningAlg, diff --git a/clients/client/dart/lib/src/model/o_auth2_consent_session.dart b/clients/client/dart/lib/src/model/o_auth2_consent_session.dart index 36bed02f58d..9940cfdbfd4 100644 --- a/clients/client/dart/lib/src/model/o_auth2_consent_session.dart +++ b/clients/client/dart/lib/src/model/o_auth2_consent_session.dart @@ -6,6 +6,7 @@ import 'package:ory_client/src/model/accept_o_auth2_consent_request_session.dart'; import 'package:built_collection/built_collection.dart'; import 'package:ory_client/src/model/o_auth2_consent_request.dart'; +import 'package:built_value/json_object.dart'; import 'package:ory_client/src/model/o_auth2_consent_session_expires_at.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'o_auth2_consent_session.g.dart'; /// /// Properties: /// * [consentRequest] +/// * [context] /// * [expiresAt] /// * [grantAccessTokenAudience] /// * [grantScope] @@ -28,6 +30,9 @@ abstract class OAuth2ConsentSession implements Built? grantAccessTokenAudience; @@ -30,6 +32,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { _$OAuth2ConsentSession._( {this.consentRequest, + this.context, this.expiresAt, this.grantAccessTokenAudience, this.grantScope, @@ -53,6 +56,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { if (identical(other, this)) return true; return other is OAuth2ConsentSession && consentRequest == other.consentRequest && + context == other.context && expiresAt == other.expiresAt && grantAccessTokenAudience == other.grantAccessTokenAudience && grantScope == other.grantScope && @@ -66,6 +70,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, consentRequest.hashCode); + _$hash = $jc(_$hash, context.hashCode); _$hash = $jc(_$hash, expiresAt.hashCode); _$hash = $jc(_$hash, grantAccessTokenAudience.hashCode); _$hash = $jc(_$hash, grantScope.hashCode); @@ -81,6 +86,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { String toString() { return (newBuiltValueToStringHelper(r'OAuth2ConsentSession') ..add('consentRequest', consentRequest) + ..add('context', context) ..add('expiresAt', expiresAt) ..add('grantAccessTokenAudience', grantAccessTokenAudience) ..add('grantScope', grantScope) @@ -102,6 +108,10 @@ class OAuth2ConsentSessionBuilder set consentRequest(OAuth2ConsentRequestBuilder? consentRequest) => _$this._consentRequest = consentRequest; + JsonObject? _context; + JsonObject? get context => _$this._context; + set context(JsonObject? context) => _$this._context = context; + OAuth2ConsentSessionExpiresAtBuilder? _expiresAt; OAuth2ConsentSessionExpiresAtBuilder get expiresAt => _$this._expiresAt ??= new OAuth2ConsentSessionExpiresAtBuilder(); @@ -146,6 +156,7 @@ class OAuth2ConsentSessionBuilder final $v = _$v; if ($v != null) { _consentRequest = $v.consentRequest?.toBuilder(); + _context = $v.context; _expiresAt = $v.expiresAt?.toBuilder(); _grantAccessTokenAudience = $v.grantAccessTokenAudience?.toBuilder(); _grantScope = $v.grantScope?.toBuilder(); @@ -178,6 +189,7 @@ class OAuth2ConsentSessionBuilder _$result = _$v ?? new _$OAuth2ConsentSession._( consentRequest: _consentRequest?.build(), + context: context, expiresAt: _expiresAt?.build(), grantAccessTokenAudience: _grantAccessTokenAudience?.build(), grantScope: _grantScope?.build(), @@ -190,6 +202,7 @@ class OAuth2ConsentSessionBuilder try { _$failedField = 'consentRequest'; _consentRequest?.build(); + _$failedField = 'expiresAt'; _expiresAt?.build(); _$failedField = 'grantAccessTokenAudience'; diff --git a/clients/client/dart/lib/src/model/permissions_on_workpace_response.dart b/clients/client/dart/lib/src/model/permissions_on_workpace_response.dart new file mode 100644 index 00000000000..b0888517e7d --- /dev/null +++ b/clients/client/dart/lib/src/model/permissions_on_workpace_response.dart @@ -0,0 +1,109 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'permissions_on_workpace_response.g.dart'; + +/// Get Permissions on Project Request Parameters +/// +/// Properties: +/// * [permissions] +@BuiltValue() +abstract class PermissionsOnWorkpaceResponse implements Built { + @BuiltValueField(wireName: r'permissions') + BuiltMap? get permissions; + + PermissionsOnWorkpaceResponse._(); + + factory PermissionsOnWorkpaceResponse([void updates(PermissionsOnWorkpaceResponseBuilder b)]) = _$PermissionsOnWorkpaceResponse; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(PermissionsOnWorkpaceResponseBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$PermissionsOnWorkpaceResponseSerializer(); +} + +class _$PermissionsOnWorkpaceResponseSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [PermissionsOnWorkpaceResponse, _$PermissionsOnWorkpaceResponse]; + + @override + final String wireName = r'PermissionsOnWorkpaceResponse'; + + Iterable _serializeProperties( + Serializers serializers, + PermissionsOnWorkpaceResponse object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.permissions != null) { + yield r'permissions'; + yield serializers.serialize( + object.permissions, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(bool)]), + ); + } + } + + @override + Object serialize( + Serializers serializers, + PermissionsOnWorkpaceResponse object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required PermissionsOnWorkpaceResponseBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'permissions': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(BuiltMap, [FullType(String), FullType(bool)]), + ) as BuiltMap; + result.permissions.replace(valueDes); + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + PermissionsOnWorkpaceResponse deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = PermissionsOnWorkpaceResponseBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/client/dart/lib/src/model/permissions_on_workpace_response.g.dart b/clients/client/dart/lib/src/model/permissions_on_workpace_response.g.dart new file mode 100644 index 00000000000..660272984dc --- /dev/null +++ b/clients/client/dart/lib/src/model/permissions_on_workpace_response.g.dart @@ -0,0 +1,112 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'permissions_on_workpace_response.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$PermissionsOnWorkpaceResponse extends PermissionsOnWorkpaceResponse { + @override + final BuiltMap? permissions; + + factory _$PermissionsOnWorkpaceResponse( + [void Function(PermissionsOnWorkpaceResponseBuilder)? updates]) => + (new PermissionsOnWorkpaceResponseBuilder()..update(updates))._build(); + + _$PermissionsOnWorkpaceResponse._({this.permissions}) : super._(); + + @override + PermissionsOnWorkpaceResponse rebuild( + void Function(PermissionsOnWorkpaceResponseBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + PermissionsOnWorkpaceResponseBuilder toBuilder() => + new PermissionsOnWorkpaceResponseBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is PermissionsOnWorkpaceResponse && + permissions == other.permissions; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, permissions.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'PermissionsOnWorkpaceResponse') + ..add('permissions', permissions)) + .toString(); + } +} + +class PermissionsOnWorkpaceResponseBuilder + implements + Builder { + _$PermissionsOnWorkpaceResponse? _$v; + + MapBuilder? _permissions; + MapBuilder get permissions => + _$this._permissions ??= new MapBuilder(); + set permissions(MapBuilder? permissions) => + _$this._permissions = permissions; + + PermissionsOnWorkpaceResponseBuilder() { + PermissionsOnWorkpaceResponse._defaults(this); + } + + PermissionsOnWorkpaceResponseBuilder get _$this { + final $v = _$v; + if ($v != null) { + _permissions = $v.permissions?.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(PermissionsOnWorkpaceResponse other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$PermissionsOnWorkpaceResponse; + } + + @override + void update(void Function(PermissionsOnWorkpaceResponseBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + PermissionsOnWorkpaceResponse build() => _build(); + + _$PermissionsOnWorkpaceResponse _build() { + _$PermissionsOnWorkpaceResponse _$result; + try { + _$result = _$v ?? + new _$PermissionsOnWorkpaceResponse._( + permissions: _permissions?.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'permissions'; + _permissions?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'PermissionsOnWorkpaceResponse', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/plan_details.dart b/clients/client/dart/lib/src/model/plan_details.dart index d2ae4fc931c..a9fb2483b42 100644 --- a/clients/client/dart/lib/src/model/plan_details.dart +++ b/clients/client/dart/lib/src/model/plan_details.dart @@ -17,7 +17,7 @@ part 'plan_details.g.dart'; /// * [baseFeeYearly] - BaseFeeYearly is the yearly base fee for the plan. /// * [custom] - Custom is true if the plan is custom. This means it will be hidden from the pricing page. /// * [description] - Description is the description of the plan. -/// * [features] - Features are the feature definitions included in the plan. +/// * [features] /// * [name] - Name is the name of the plan. /// * [version] - Version is the version of the plan. The combination of `name@version` must be unique. @BuiltValue() @@ -38,7 +38,6 @@ abstract class PlanDetails implements Built { @BuiltValueField(wireName: r'description') String get description; - /// Features are the feature definitions included in the plan. @BuiltValueField(wireName: r'features') BuiltMap get features; diff --git a/clients/client/dart/lib/src/model/project_member.dart b/clients/client/dart/lib/src/model/project_member.dart new file mode 100644 index 00000000000..bb50073b18c --- /dev/null +++ b/clients/client/dart/lib/src/model/project_member.dart @@ -0,0 +1,154 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'project_member.g.dart'; + +/// ProjectMember +/// +/// Properties: +/// * [email] +/// * [id] +/// * [name] +/// * [role] +@BuiltValue() +abstract class ProjectMember implements Built { + @BuiltValueField(wireName: r'email') + String get email; + + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'name') + String get name; + + @BuiltValueField(wireName: r'role') + String get role; + + ProjectMember._(); + + factory ProjectMember([void updates(ProjectMemberBuilder b)]) = _$ProjectMember; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ProjectMemberBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ProjectMemberSerializer(); +} + +class _$ProjectMemberSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ProjectMember, _$ProjectMember]; + + @override + final String wireName = r'ProjectMember'; + + Iterable _serializeProperties( + Serializers serializers, + ProjectMember object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'email'; + yield serializers.serialize( + object.email, + specifiedType: const FullType(String), + ); + yield r'id'; + yield serializers.serialize( + object.id, + specifiedType: const FullType(String), + ); + yield r'name'; + yield serializers.serialize( + object.name, + specifiedType: const FullType(String), + ); + yield r'role'; + yield serializers.serialize( + object.role, + specifiedType: const FullType(String), + ); + } + + @override + Object serialize( + Serializers serializers, + ProjectMember object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ProjectMemberBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'email': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.email = valueDes; + break; + case r'id': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.id = valueDes; + break; + case r'name': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.name = valueDes; + break; + case r'role': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.role = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ProjectMember deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ProjectMemberBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/client/dart/lib/src/model/project_member.g.dart b/clients/client/dart/lib/src/model/project_member.g.dart new file mode 100644 index 00000000000..a0755fc7d3a --- /dev/null +++ b/clients/client/dart/lib/src/model/project_member.g.dart @@ -0,0 +1,139 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'project_member.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ProjectMember extends ProjectMember { + @override + final String email; + @override + final String id; + @override + final String name; + @override + final String role; + + factory _$ProjectMember([void Function(ProjectMemberBuilder)? updates]) => + (new ProjectMemberBuilder()..update(updates))._build(); + + _$ProjectMember._( + {required this.email, + required this.id, + required this.name, + required this.role}) + : super._() { + BuiltValueNullFieldError.checkNotNull(email, r'ProjectMember', 'email'); + BuiltValueNullFieldError.checkNotNull(id, r'ProjectMember', 'id'); + BuiltValueNullFieldError.checkNotNull(name, r'ProjectMember', 'name'); + BuiltValueNullFieldError.checkNotNull(role, r'ProjectMember', 'role'); + } + + @override + ProjectMember rebuild(void Function(ProjectMemberBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ProjectMemberBuilder toBuilder() => new ProjectMemberBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ProjectMember && + email == other.email && + id == other.id && + name == other.name && + role == other.role; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, email.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, role.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ProjectMember') + ..add('email', email) + ..add('id', id) + ..add('name', name) + ..add('role', role)) + .toString(); + } +} + +class ProjectMemberBuilder + implements Builder { + _$ProjectMember? _$v; + + String? _email; + String? get email => _$this._email; + set email(String? email) => _$this._email = email; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _role; + String? get role => _$this._role; + set role(String? role) => _$this._role = role; + + ProjectMemberBuilder() { + ProjectMember._defaults(this); + } + + ProjectMemberBuilder get _$this { + final $v = _$v; + if ($v != null) { + _email = $v.email; + _id = $v.id; + _name = $v.name; + _role = $v.role; + _$v = null; + } + return this; + } + + @override + void replace(ProjectMember other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ProjectMember; + } + + @override + void update(void Function(ProjectMemberBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ProjectMember build() => _build(); + + _$ProjectMember _build() { + final _$result = _$v ?? + new _$ProjectMember._( + email: BuiltValueNullFieldError.checkNotNull( + email, r'ProjectMember', 'email'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'ProjectMember', 'id'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'ProjectMember', 'name'), + role: BuiltValueNullFieldError.checkNotNull( + role, r'ProjectMember', 'role')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/project_metadata.dart b/clients/client/dart/lib/src/model/project_metadata.dart index c24cf37cec3..ffc8fa5560d 100644 --- a/clients/client/dart/lib/src/model/project_metadata.dart +++ b/clients/client/dart/lib/src/model/project_metadata.dart @@ -13,6 +13,7 @@ part 'project_metadata.g.dart'; /// /// Properties: /// * [createdAt] - The Project's Creation Date +/// * [environment] - The environment of the project. prod Production dev Development /// * [hosts] /// * [id] - The project's ID. /// * [name] - The project's name if set @@ -28,6 +29,11 @@ abstract class ProjectMetadata implements Built get hosts; @@ -89,6 +95,11 @@ class _$ProjectMetadataSerializer implements PrimitiveSerializer get serializer => _$projectMetadataEnvironmentEnumSerializer; + + const ProjectMetadataEnvironmentEnum._(String name): super(name); + + static BuiltSet get values => _$projectMetadataEnvironmentEnumValues; + static ProjectMetadataEnvironmentEnum valueOf(String name) => _$projectMetadataEnvironmentEnumValueOf(name); +} + class ProjectMetadataStateEnum extends EnumClass { /// The state of the project. running Running halted Halted deleted Deleted diff --git a/clients/client/dart/lib/src/model/project_metadata.g.dart b/clients/client/dart/lib/src/model/project_metadata.g.dart index ceea8fae598..2e18e6071a5 100644 --- a/clients/client/dart/lib/src/model/project_metadata.g.dart +++ b/clients/client/dart/lib/src/model/project_metadata.g.dart @@ -6,6 +6,30 @@ part of 'project_metadata.dart'; // BuiltValueGenerator // ************************************************************************** +const ProjectMetadataEnvironmentEnum _$projectMetadataEnvironmentEnum_prod = + const ProjectMetadataEnvironmentEnum._('prod'); +const ProjectMetadataEnvironmentEnum _$projectMetadataEnvironmentEnum_dev = + const ProjectMetadataEnvironmentEnum._('dev'); + +ProjectMetadataEnvironmentEnum _$projectMetadataEnvironmentEnumValueOf( + String name) { + switch (name) { + case 'prod': + return _$projectMetadataEnvironmentEnum_prod; + case 'dev': + return _$projectMetadataEnvironmentEnum_dev; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$projectMetadataEnvironmentEnumValues = new BuiltSet< + ProjectMetadataEnvironmentEnum>(const [ + _$projectMetadataEnvironmentEnum_prod, + _$projectMetadataEnvironmentEnum_dev, +]); + const ProjectMetadataStateEnum _$projectMetadataStateEnum_running = const ProjectMetadataStateEnum._('running'); const ProjectMetadataStateEnum _$projectMetadataStateEnum_halted = @@ -33,9 +57,42 @@ final BuiltSet _$projectMetadataStateEnumValues = _$projectMetadataStateEnum_deleted, ]); +Serializer + _$projectMetadataEnvironmentEnumSerializer = + new _$ProjectMetadataEnvironmentEnumSerializer(); Serializer _$projectMetadataStateEnumSerializer = new _$ProjectMetadataStateEnumSerializer(); +class _$ProjectMetadataEnvironmentEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + static const Map _fromWire = const { + 'prod': 'prod', + 'dev': 'dev', + }; + + @override + final Iterable types = const [ProjectMetadataEnvironmentEnum]; + @override + final String wireName = 'ProjectMetadataEnvironmentEnum'; + + @override + Object serialize( + Serializers serializers, ProjectMetadataEnvironmentEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + ProjectMetadataEnvironmentEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + ProjectMetadataEnvironmentEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$ProjectMetadataStateEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { @@ -71,6 +128,8 @@ class _$ProjectMetadata extends ProjectMetadata { @override final DateTime createdAt; @override + final ProjectMetadataEnvironmentEnum environment; + @override final BuiltList hosts; @override final String id; @@ -94,6 +153,7 @@ class _$ProjectMetadata extends ProjectMetadata { _$ProjectMetadata._( {required this.createdAt, + required this.environment, required this.hosts, required this.id, required this.name, @@ -106,6 +166,8 @@ class _$ProjectMetadata extends ProjectMetadata { : super._() { BuiltValueNullFieldError.checkNotNull( createdAt, r'ProjectMetadata', 'createdAt'); + BuiltValueNullFieldError.checkNotNull( + environment, r'ProjectMetadata', 'environment'); BuiltValueNullFieldError.checkNotNull(hosts, r'ProjectMetadata', 'hosts'); BuiltValueNullFieldError.checkNotNull(id, r'ProjectMetadata', 'id'); BuiltValueNullFieldError.checkNotNull(name, r'ProjectMetadata', 'name'); @@ -127,6 +189,7 @@ class _$ProjectMetadata extends ProjectMetadata { if (identical(other, this)) return true; return other is ProjectMetadata && createdAt == other.createdAt && + environment == other.environment && hosts == other.hosts && id == other.id && name == other.name && @@ -142,6 +205,7 @@ class _$ProjectMetadata extends ProjectMetadata { int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, environment.hashCode); _$hash = $jc(_$hash, hosts.hashCode); _$hash = $jc(_$hash, id.hashCode); _$hash = $jc(_$hash, name.hashCode); @@ -159,6 +223,7 @@ class _$ProjectMetadata extends ProjectMetadata { String toString() { return (newBuiltValueToStringHelper(r'ProjectMetadata') ..add('createdAt', createdAt) + ..add('environment', environment) ..add('hosts', hosts) ..add('id', id) ..add('name', name) @@ -180,6 +245,11 @@ class ProjectMetadataBuilder DateTime? get createdAt => _$this._createdAt; set createdAt(DateTime? createdAt) => _$this._createdAt = createdAt; + ProjectMetadataEnvironmentEnum? _environment; + ProjectMetadataEnvironmentEnum? get environment => _$this._environment; + set environment(ProjectMetadataEnvironmentEnum? environment) => + _$this._environment = environment; + ListBuilder? _hosts; ListBuilder get hosts => _$this._hosts ??= new ListBuilder(); set hosts(ListBuilder? hosts) => _$this._hosts = hosts; @@ -226,6 +296,7 @@ class ProjectMetadataBuilder final $v = _$v; if ($v != null) { _createdAt = $v.createdAt; + _environment = $v.environment; _hosts = $v.hosts.toBuilder(); _id = $v.id; _name = $v.name; @@ -261,6 +332,8 @@ class ProjectMetadataBuilder new _$ProjectMetadata._( createdAt: BuiltValueNullFieldError.checkNotNull( createdAt, r'ProjectMetadata', 'createdAt'), + environment: BuiltValueNullFieldError.checkNotNull( + environment, r'ProjectMetadata', 'environment'), hosts: hosts.build(), id: BuiltValueNullFieldError.checkNotNull( id, r'ProjectMetadata', 'id'), diff --git a/clients/client/dart/lib/src/model/quota_usage.dart b/clients/client/dart/lib/src/model/quota_usage.dart index 7726fa0cc1c..78719a27916 100644 --- a/clients/client/dart/lib/src/model/quota_usage.dart +++ b/clients/client/dart/lib/src/model/quota_usage.dart @@ -14,7 +14,7 @@ part 'quota_usage.g.dart'; /// Properties: /// * [additionalPrice] - The additional price per unit in cents. /// * [canUseMore] -/// * [feature] - region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList +/// * [feature] - region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect /// * [featureAvailable] /// * [included] /// * [used] @@ -27,10 +27,10 @@ abstract class QuotaUsage implements Built { @BuiltValueField(wireName: r'can_use_more') bool get canUseMore; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueField(wireName: r'feature') QuotaUsageFeatureEnum get feature; - // enum featureEnum { region_eu, region_us, region_apac, region_global, production_projects, daily_active_users, custom_domains, event_streams, sla, collaborator_seats, edge_cache, branding_themes, zendesk_support, project_metrics, project_metrics_time_window, project_metrics_events_history, organizations, rop_grant, rate_limit_tier, session_rate_limit_tier, identities_list_rate_limit_tier, }; + // enum featureEnum { region_eu, region_us, region_apac, region_global, production_projects, daily_active_users, custom_domains, event_streams, sla, collaborator_seats, edge_cache, branding_themes, zendesk_support, project_metrics, project_metrics_time_window, project_metrics_events_history, organizations, rop_grant, concierge_onboarding, rate_limit_tier, session_rate_limit_tier, identities_list_rate_limit_tier, permission_checks_rate_limit_tier, oauth2_introspect_rate_limit_tier, }; @BuiltValueField(wireName: r'feature_available') bool get featureAvailable; @@ -190,69 +190,78 @@ class _$QuotaUsageSerializer implements PrimitiveSerializer { class QuotaUsageFeatureEnum extends EnumClass { - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'region_eu') static const QuotaUsageFeatureEnum regionEu = _$quotaUsageFeatureEnum_regionEu; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'region_us') static const QuotaUsageFeatureEnum regionUs = _$quotaUsageFeatureEnum_regionUs; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'region_apac') static const QuotaUsageFeatureEnum regionApac = _$quotaUsageFeatureEnum_regionApac; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'region_global') static const QuotaUsageFeatureEnum regionGlobal = _$quotaUsageFeatureEnum_regionGlobal; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'production_projects') static const QuotaUsageFeatureEnum productionProjects = _$quotaUsageFeatureEnum_productionProjects; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'daily_active_users') static const QuotaUsageFeatureEnum dailyActiveUsers = _$quotaUsageFeatureEnum_dailyActiveUsers; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'custom_domains') static const QuotaUsageFeatureEnum customDomains = _$quotaUsageFeatureEnum_customDomains; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'event_streams') static const QuotaUsageFeatureEnum eventStreams = _$quotaUsageFeatureEnum_eventStreams; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'sla') static const QuotaUsageFeatureEnum sla = _$quotaUsageFeatureEnum_sla; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'collaborator_seats') static const QuotaUsageFeatureEnum collaboratorSeats = _$quotaUsageFeatureEnum_collaboratorSeats; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'edge_cache') static const QuotaUsageFeatureEnum edgeCache = _$quotaUsageFeatureEnum_edgeCache; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'branding_themes') static const QuotaUsageFeatureEnum brandingThemes = _$quotaUsageFeatureEnum_brandingThemes; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'zendesk_support') static const QuotaUsageFeatureEnum zendeskSupport = _$quotaUsageFeatureEnum_zendeskSupport; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'project_metrics') static const QuotaUsageFeatureEnum projectMetrics = _$quotaUsageFeatureEnum_projectMetrics; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'project_metrics_time_window') static const QuotaUsageFeatureEnum projectMetricsTimeWindow = _$quotaUsageFeatureEnum_projectMetricsTimeWindow; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'project_metrics_events_history') static const QuotaUsageFeatureEnum projectMetricsEventsHistory = _$quotaUsageFeatureEnum_projectMetricsEventsHistory; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'organizations') static const QuotaUsageFeatureEnum organizations = _$quotaUsageFeatureEnum_organizations; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'rop_grant') static const QuotaUsageFeatureEnum ropGrant = _$quotaUsageFeatureEnum_ropGrant; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect + @BuiltValueEnumConst(wireName: r'concierge_onboarding') + static const QuotaUsageFeatureEnum conciergeOnboarding = _$quotaUsageFeatureEnum_conciergeOnboarding; + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'rate_limit_tier') static const QuotaUsageFeatureEnum rateLimitTier = _$quotaUsageFeatureEnum_rateLimitTier; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'session_rate_limit_tier') static const QuotaUsageFeatureEnum sessionRateLimitTier = _$quotaUsageFeatureEnum_sessionRateLimitTier; - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect @BuiltValueEnumConst(wireName: r'identities_list_rate_limit_tier') static const QuotaUsageFeatureEnum identitiesListRateLimitTier = _$quotaUsageFeatureEnum_identitiesListRateLimitTier; + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect + @BuiltValueEnumConst(wireName: r'permission_checks_rate_limit_tier') + static const QuotaUsageFeatureEnum permissionChecksRateLimitTier = _$quotaUsageFeatureEnum_permissionChecksRateLimitTier; + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect + @BuiltValueEnumConst(wireName: r'oauth2_introspect_rate_limit_tier') + static const QuotaUsageFeatureEnum oauth2IntrospectRateLimitTier = _$quotaUsageFeatureEnum_oauth2IntrospectRateLimitTier; static Serializer get serializer => _$quotaUsageFeatureEnumSerializer; diff --git a/clients/client/dart/lib/src/model/quota_usage.g.dart b/clients/client/dart/lib/src/model/quota_usage.g.dart index ceeee75ee81..2e8140f7f29 100644 --- a/clients/client/dart/lib/src/model/quota_usage.g.dart +++ b/clients/client/dart/lib/src/model/quota_usage.g.dart @@ -43,6 +43,8 @@ const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_organizations = const QuotaUsageFeatureEnum._('organizations'); const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_ropGrant = const QuotaUsageFeatureEnum._('ropGrant'); +const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_conciergeOnboarding = + const QuotaUsageFeatureEnum._('conciergeOnboarding'); const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_rateLimitTier = const QuotaUsageFeatureEnum._('rateLimitTier'); const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_sessionRateLimitTier = @@ -50,6 +52,12 @@ const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_sessionRateLimitTier = const QuotaUsageFeatureEnum _$quotaUsageFeatureEnum_identitiesListRateLimitTier = const QuotaUsageFeatureEnum._('identitiesListRateLimitTier'); +const QuotaUsageFeatureEnum + _$quotaUsageFeatureEnum_permissionChecksRateLimitTier = + const QuotaUsageFeatureEnum._('permissionChecksRateLimitTier'); +const QuotaUsageFeatureEnum + _$quotaUsageFeatureEnum_oauth2IntrospectRateLimitTier = + const QuotaUsageFeatureEnum._('oauth2IntrospectRateLimitTier'); QuotaUsageFeatureEnum _$quotaUsageFeatureEnumValueOf(String name) { switch (name) { @@ -89,12 +97,18 @@ QuotaUsageFeatureEnum _$quotaUsageFeatureEnumValueOf(String name) { return _$quotaUsageFeatureEnum_organizations; case 'ropGrant': return _$quotaUsageFeatureEnum_ropGrant; + case 'conciergeOnboarding': + return _$quotaUsageFeatureEnum_conciergeOnboarding; case 'rateLimitTier': return _$quotaUsageFeatureEnum_rateLimitTier; case 'sessionRateLimitTier': return _$quotaUsageFeatureEnum_sessionRateLimitTier; case 'identitiesListRateLimitTier': return _$quotaUsageFeatureEnum_identitiesListRateLimitTier; + case 'permissionChecksRateLimitTier': + return _$quotaUsageFeatureEnum_permissionChecksRateLimitTier; + case 'oauth2IntrospectRateLimitTier': + return _$quotaUsageFeatureEnum_oauth2IntrospectRateLimitTier; default: throw new ArgumentError(name); } @@ -120,9 +134,12 @@ final BuiltSet _$quotaUsageFeatureEnumValues = _$quotaUsageFeatureEnum_projectMetricsEventsHistory, _$quotaUsageFeatureEnum_organizations, _$quotaUsageFeatureEnum_ropGrant, + _$quotaUsageFeatureEnum_conciergeOnboarding, _$quotaUsageFeatureEnum_rateLimitTier, _$quotaUsageFeatureEnum_sessionRateLimitTier, _$quotaUsageFeatureEnum_identitiesListRateLimitTier, + _$quotaUsageFeatureEnum_permissionChecksRateLimitTier, + _$quotaUsageFeatureEnum_oauth2IntrospectRateLimitTier, ]); Serializer _$quotaUsageFeatureEnumSerializer = @@ -149,9 +166,12 @@ class _$QuotaUsageFeatureEnumSerializer 'projectMetricsEventsHistory': 'project_metrics_events_history', 'organizations': 'organizations', 'ropGrant': 'rop_grant', + 'conciergeOnboarding': 'concierge_onboarding', 'rateLimitTier': 'rate_limit_tier', 'sessionRateLimitTier': 'session_rate_limit_tier', 'identitiesListRateLimitTier': 'identities_list_rate_limit_tier', + 'permissionChecksRateLimitTier': 'permission_checks_rate_limit_tier', + 'oauth2IntrospectRateLimitTier': 'oauth2_introspect_rate_limit_tier', }; static const Map _fromWire = const { 'region_eu': 'regionEu', @@ -172,9 +192,12 @@ class _$QuotaUsageFeatureEnumSerializer 'project_metrics_events_history': 'projectMetricsEventsHistory', 'organizations': 'organizations', 'rop_grant': 'ropGrant', + 'concierge_onboarding': 'conciergeOnboarding', 'rate_limit_tier': 'rateLimitTier', 'session_rate_limit_tier': 'sessionRateLimitTier', 'identities_list_rate_limit_tier': 'identitiesListRateLimitTier', + 'permission_checks_rate_limit_tier': 'permissionChecksRateLimitTier', + 'oauth2_introspect_rate_limit_tier': 'oauth2IntrospectRateLimitTier', }; @override diff --git a/clients/client/dart/lib/src/model/recovery_flow.dart b/clients/client/dart/lib/src/model/recovery_flow.dart index ea2439a5423..212dbfaf148 100644 --- a/clients/client/dart/lib/src/model/recovery_flow.dart +++ b/clients/client/dart/lib/src/model/recovery_flow.dart @@ -23,6 +23,7 @@ part 'recovery_flow.g.dart'; /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. /// * [state] - State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. +/// * [transientPayload] - TransientPayload is used to pass data from the recovery flow to hooks and email templates /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() @@ -59,6 +60,10 @@ abstract class RecoveryFlow implements Built @BuiltValueField(wireName: r'state') JsonObject? get state; + /// TransientPayload is used to pass data from the recovery flow to hooks and email templates + @BuiltValueField(wireName: r'transient_payload') + JsonObject? get transientPayload; + /// The flow type can either be `api` or `browser`. @BuiltValueField(wireName: r'type') String get type; @@ -135,6 +140,13 @@ class _$RecoveryFlowSerializer implements PrimitiveSerializer { object.state, specifiedType: const FullType.nullable(JsonObject), ); + if (object.transientPayload != null) { + yield r'transient_payload'; + yield serializers.serialize( + object.transientPayload, + specifiedType: const FullType(JsonObject), + ); + } yield r'type'; yield serializers.serialize( object.type, @@ -225,6 +237,13 @@ class _$RecoveryFlowSerializer implements PrimitiveSerializer { if (valueDes == null) continue; result.state = valueDes; break; + case r'transient_payload': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(JsonObject), + ) as JsonObject; + result.transientPayload = valueDes; + break; case r'type': final valueDes = serializers.deserialize( value, diff --git a/clients/client/dart/lib/src/model/recovery_flow.g.dart b/clients/client/dart/lib/src/model/recovery_flow.g.dart index ed561555a87..d346c25ab28 100644 --- a/clients/client/dart/lib/src/model/recovery_flow.g.dart +++ b/clients/client/dart/lib/src/model/recovery_flow.g.dart @@ -24,6 +24,8 @@ class _$RecoveryFlow extends RecoveryFlow { @override final JsonObject? state; @override + final JsonObject? transientPayload; + @override final String type; @override final UiContainer ui; @@ -40,6 +42,7 @@ class _$RecoveryFlow extends RecoveryFlow { required this.requestUrl, this.returnTo, this.state, + this.transientPayload, required this.type, required this.ui}) : super._() { @@ -73,6 +76,7 @@ class _$RecoveryFlow extends RecoveryFlow { requestUrl == other.requestUrl && returnTo == other.returnTo && state == other.state && + transientPayload == other.transientPayload && type == other.type && ui == other.ui; } @@ -88,6 +92,7 @@ class _$RecoveryFlow extends RecoveryFlow { _$hash = $jc(_$hash, requestUrl.hashCode); _$hash = $jc(_$hash, returnTo.hashCode); _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jc(_$hash, type.hashCode); _$hash = $jc(_$hash, ui.hashCode); _$hash = $jf(_$hash); @@ -105,6 +110,7 @@ class _$RecoveryFlow extends RecoveryFlow { ..add('requestUrl', requestUrl) ..add('returnTo', returnTo) ..add('state', state) + ..add('transientPayload', transientPayload) ..add('type', type) ..add('ui', ui)) .toString(); @@ -149,6 +155,11 @@ class RecoveryFlowBuilder JsonObject? get state => _$this._state; set state(JsonObject? state) => _$this._state = state; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _type; String? get type => _$this._type; set type(String? type) => _$this._type = type; @@ -172,6 +183,7 @@ class RecoveryFlowBuilder _requestUrl = $v.requestUrl; _returnTo = $v.returnTo; _state = $v.state; + _transientPayload = $v.transientPayload; _type = $v.type; _ui = $v.ui.toBuilder(); _$v = null; @@ -210,6 +222,7 @@ class RecoveryFlowBuilder requestUrl, r'RecoveryFlow', 'requestUrl'), returnTo: returnTo, state: state, + transientPayload: transientPayload, type: BuiltValueNullFieldError.checkNotNull( type, r'RecoveryFlow', 'type'), ui: ui.build()); diff --git a/clients/client/dart/lib/src/model/registration_flow.dart b/clients/client/dart/lib/src/model/registration_flow.dart index e5f0837b0bb..e382f6d92fa 100644 --- a/clients/client/dart/lib/src/model/registration_flow.dart +++ b/clients/client/dart/lib/src/model/registration_flow.dart @@ -3,7 +3,7 @@ // // ignore_for_file: unused_element -import 'package:ory_client/src/model/identity_credentials_type.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:ory_client/src/model/o_auth2_login_request.dart'; import 'package:ory_client/src/model/ui_container.dart'; import 'package:built_value/json_object.dart'; @@ -15,7 +15,7 @@ part 'registration_flow.g.dart'; /// RegistrationFlow /// /// Properties: -/// * [active] +/// * [active] - Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [expiresAt] - ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. /// * [id] - ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http:///?flow= /// * [issuedAt] - IssuedAt is the time (UTC) when the flow occurred. @@ -31,9 +31,10 @@ part 'registration_flow.g.dart'; /// * [ui] @BuiltValue() abstract class RegistrationFlow implements Built { + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 @BuiltValueField(wireName: r'active') - IdentityCredentialsType? get active; - // enum activeEnum { password, totp, oidc, webauthn, lookup_secret, code, }; + RegistrationFlowActiveEnum? get active; + // enum activeEnum { password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery, }; /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. @BuiltValueField(wireName: r'expires_at') @@ -111,7 +112,7 @@ class _$RegistrationFlowSerializer implements PrimitiveSerializer get serializer => _$registrationFlowActiveEnumSerializer; + + const RegistrationFlowActiveEnum._(String name): super(name); + + static BuiltSet get values => _$registrationFlowActiveEnumValues; + static RegistrationFlowActiveEnum valueOf(String name) => _$registrationFlowActiveEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/registration_flow.g.dart b/clients/client/dart/lib/src/model/registration_flow.g.dart index c37f93f0e9c..8c2a7c975a6 100644 --- a/clients/client/dart/lib/src/model/registration_flow.g.dart +++ b/clients/client/dart/lib/src/model/registration_flow.g.dart @@ -6,9 +6,105 @@ part of 'registration_flow.dart'; // BuiltValueGenerator // ************************************************************************** +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_password = + const RegistrationFlowActiveEnum._('password'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_oidc = + const RegistrationFlowActiveEnum._('oidc'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_totp = + const RegistrationFlowActiveEnum._('totp'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_lookupSecret = + const RegistrationFlowActiveEnum._('lookupSecret'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_webauthn = + const RegistrationFlowActiveEnum._('webauthn'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_code = + const RegistrationFlowActiveEnum._('code'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_linkRecovery = + const RegistrationFlowActiveEnum._('linkRecovery'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_codeRecovery = + const RegistrationFlowActiveEnum._('codeRecovery'); + +RegistrationFlowActiveEnum _$registrationFlowActiveEnumValueOf(String name) { + switch (name) { + case 'password': + return _$registrationFlowActiveEnum_password; + case 'oidc': + return _$registrationFlowActiveEnum_oidc; + case 'totp': + return _$registrationFlowActiveEnum_totp; + case 'lookupSecret': + return _$registrationFlowActiveEnum_lookupSecret; + case 'webauthn': + return _$registrationFlowActiveEnum_webauthn; + case 'code': + return _$registrationFlowActiveEnum_code; + case 'linkRecovery': + return _$registrationFlowActiveEnum_linkRecovery; + case 'codeRecovery': + return _$registrationFlowActiveEnum_codeRecovery; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$registrationFlowActiveEnumValues = + new BuiltSet(const [ + _$registrationFlowActiveEnum_password, + _$registrationFlowActiveEnum_oidc, + _$registrationFlowActiveEnum_totp, + _$registrationFlowActiveEnum_lookupSecret, + _$registrationFlowActiveEnum_webauthn, + _$registrationFlowActiveEnum_code, + _$registrationFlowActiveEnum_linkRecovery, + _$registrationFlowActiveEnum_codeRecovery, +]); + +Serializer _$registrationFlowActiveEnumSerializer = + new _$RegistrationFlowActiveEnumSerializer(); + +class _$RegistrationFlowActiveEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookupSecret': 'lookup_secret', + 'webauthn': 'webauthn', + 'code': 'code', + 'linkRecovery': 'link_recovery', + 'codeRecovery': 'code_recovery', + }; + static const Map _fromWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookup_secret': 'lookupSecret', + 'webauthn': 'webauthn', + 'code': 'code', + 'link_recovery': 'linkRecovery', + 'code_recovery': 'codeRecovery', + }; + + @override + final Iterable types = const [RegistrationFlowActiveEnum]; + @override + final String wireName = 'RegistrationFlowActiveEnum'; + + @override + Object serialize(Serializers serializers, RegistrationFlowActiveEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + RegistrationFlowActiveEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + RegistrationFlowActiveEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$RegistrationFlow extends RegistrationFlow { @override - final IdentityCredentialsType? active; + final RegistrationFlowActiveEnum? active; @override final DateTime expiresAt; @override @@ -141,9 +237,9 @@ class RegistrationFlowBuilder implements Builder { _$RegistrationFlow? _$v; - IdentityCredentialsType? _active; - IdentityCredentialsType? get active => _$this._active; - set active(IdentityCredentialsType? active) => _$this._active = active; + RegistrationFlowActiveEnum? _active; + RegistrationFlowActiveEnum? get active => _$this._active; + set active(RegistrationFlowActiveEnum? active) => _$this._active = active; DateTime? _expiresAt; DateTime? get expiresAt => _$this._expiresAt; diff --git a/clients/client/dart/lib/src/model/settings_flow.dart b/clients/client/dart/lib/src/model/settings_flow.dart index 611655d8d53..4dc30e7a5d5 100644 --- a/clients/client/dart/lib/src/model/settings_flow.dart +++ b/clients/client/dart/lib/src/model/settings_flow.dart @@ -25,6 +25,7 @@ part 'settings_flow.g.dart'; /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. /// * [state] - State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. +/// * [transientPayload] - TransientPayload is used to pass data from the settings flow to hooks and email templates /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() @@ -64,6 +65,10 @@ abstract class SettingsFlow implements Built @BuiltValueField(wireName: r'state') JsonObject? get state; + /// TransientPayload is used to pass data from the settings flow to hooks and email templates + @BuiltValueField(wireName: r'transient_payload') + JsonObject? get transientPayload; + /// The flow type can either be `api` or `browser`. @BuiltValueField(wireName: r'type') String get type; @@ -145,6 +150,13 @@ class _$SettingsFlowSerializer implements PrimitiveSerializer { object.state, specifiedType: const FullType.nullable(JsonObject), ); + if (object.transientPayload != null) { + yield r'transient_payload'; + yield serializers.serialize( + object.transientPayload, + specifiedType: const FullType(JsonObject), + ); + } yield r'type'; yield serializers.serialize( object.type, @@ -242,6 +254,13 @@ class _$SettingsFlowSerializer implements PrimitiveSerializer { if (valueDes == null) continue; result.state = valueDes; break; + case r'transient_payload': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(JsonObject), + ) as JsonObject; + result.transientPayload = valueDes; + break; case r'type': final valueDes = serializers.deserialize( value, diff --git a/clients/client/dart/lib/src/model/settings_flow.g.dart b/clients/client/dart/lib/src/model/settings_flow.g.dart index 8b42a962869..8d529914d7d 100644 --- a/clients/client/dart/lib/src/model/settings_flow.g.dart +++ b/clients/client/dart/lib/src/model/settings_flow.g.dart @@ -26,6 +26,8 @@ class _$SettingsFlow extends SettingsFlow { @override final JsonObject? state; @override + final JsonObject? transientPayload; + @override final String type; @override final UiContainer ui; @@ -43,6 +45,7 @@ class _$SettingsFlow extends SettingsFlow { required this.requestUrl, this.returnTo, this.state, + this.transientPayload, required this.type, required this.ui}) : super._() { @@ -79,6 +82,7 @@ class _$SettingsFlow extends SettingsFlow { requestUrl == other.requestUrl && returnTo == other.returnTo && state == other.state && + transientPayload == other.transientPayload && type == other.type && ui == other.ui; } @@ -95,6 +99,7 @@ class _$SettingsFlow extends SettingsFlow { _$hash = $jc(_$hash, requestUrl.hashCode); _$hash = $jc(_$hash, returnTo.hashCode); _$hash = $jc(_$hash, state.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jc(_$hash, type.hashCode); _$hash = $jc(_$hash, ui.hashCode); _$hash = $jf(_$hash); @@ -113,6 +118,7 @@ class _$SettingsFlow extends SettingsFlow { ..add('requestUrl', requestUrl) ..add('returnTo', returnTo) ..add('state', state) + ..add('transientPayload', transientPayload) ..add('type', type) ..add('ui', ui)) .toString(); @@ -161,6 +167,11 @@ class SettingsFlowBuilder JsonObject? get state => _$this._state; set state(JsonObject? state) => _$this._state = state; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _type; String? get type => _$this._type; set type(String? type) => _$this._type = type; @@ -185,6 +196,7 @@ class SettingsFlowBuilder _requestUrl = $v.requestUrl; _returnTo = $v.returnTo; _state = $v.state; + _transientPayload = $v.transientPayload; _type = $v.type; _ui = $v.ui.toBuilder(); _$v = null; @@ -224,6 +236,7 @@ class SettingsFlowBuilder requestUrl, r'SettingsFlow', 'requestUrl'), returnTo: returnTo, state: state, + transientPayload: transientPayload, type: BuiltValueNullFieldError.checkNotNull( type, r'SettingsFlow', 'type'), ui: ui.build()); diff --git a/clients/client/dart/lib/src/model/stripe_customer.g.dart b/clients/client/dart/lib/src/model/stripe_customer.g.dart deleted file mode 100644 index 3a6f581d2d6..00000000000 --- a/clients/client/dart/lib/src/model/stripe_customer.g.dart +++ /dev/null @@ -1,89 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'stripe_customer.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$StripeCustomer extends StripeCustomer { - @override - final String? id; - - factory _$StripeCustomer([void Function(StripeCustomerBuilder)? updates]) => - (new StripeCustomerBuilder()..update(updates))._build(); - - _$StripeCustomer._({this.id}) : super._(); - - @override - StripeCustomer rebuild(void Function(StripeCustomerBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - StripeCustomerBuilder toBuilder() => - new StripeCustomerBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is StripeCustomer && id == other.id; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, id.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'StripeCustomer')..add('id', id)) - .toString(); - } -} - -class StripeCustomerBuilder - implements Builder { - _$StripeCustomer? _$v; - - String? _id; - String? get id => _$this._id; - set id(String? id) => _$this._id = id; - - StripeCustomerBuilder() { - StripeCustomer._defaults(this); - } - - StripeCustomerBuilder get _$this { - final $v = _$v; - if ($v != null) { - _id = $v.id; - _$v = null; - } - return this; - } - - @override - void replace(StripeCustomer other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$StripeCustomer; - } - - @override - void update(void Function(StripeCustomerBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - StripeCustomer build() => _build(); - - _$StripeCustomer _build() { - final _$result = _$v ?? new _$StripeCustomer._(id: id); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/subscription.dart b/clients/client/dart/lib/src/model/subscription.dart index 11dde0f676b..734a09173ab 100644 --- a/clients/client/dart/lib/src/model/subscription.dart +++ b/clients/client/dart/lib/src/model/subscription.dart @@ -4,6 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; +import 'package:ory_client/src/model/plan_details.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'subscription.g.dart'; /// * [currency] - The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro /// * [currentInterval] - The currently active interval of the subscription monthly Monthly yearly Yearly /// * [currentPlan] - The currently active plan of the subscription +/// * [currentPlanDetails] /// * [customerId] - The ID of the stripe customer /// * [id] - The ID of the subscription /// * [intervalChangesTo] @@ -24,6 +26,7 @@ part 'subscription.g.dart'; /// * [planChangesAt] /// * [planChangesTo] /// * [status] - For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. +/// * [stripeCheckoutExpiresAt] /// * [updatedAt] @BuiltValue() abstract class Subscription implements Built { @@ -44,6 +47,9 @@ abstract class Subscription implements Built @BuiltValueField(wireName: r'current_plan') String get currentPlan; + @BuiltValueField(wireName: r'current_plan_details') + PlanDetails? get currentPlanDetails; + /// The ID of the stripe customer @BuiltValueField(wireName: r'customer_id') String get customerId; @@ -72,6 +78,9 @@ abstract class Subscription implements Built @BuiltValueField(wireName: r'status') String get status; + @BuiltValueField(wireName: r'stripe_checkout_expires_at') + DateTime? get stripeCheckoutExpiresAt; + @BuiltValueField(wireName: r'updated_at') DateTime get updatedAt; @@ -118,6 +127,13 @@ class _$SubscriptionSerializer implements PrimitiveSerializer { object.currentPlan, specifiedType: const FullType(String), ); + if (object.currentPlanDetails != null) { + yield r'current_plan_details'; + yield serializers.serialize( + object.currentPlanDetails, + specifiedType: const FullType(PlanDetails), + ); + } yield r'customer_id'; yield serializers.serialize( object.customerId, @@ -162,6 +178,13 @@ class _$SubscriptionSerializer implements PrimitiveSerializer { object.status, specifiedType: const FullType(String), ); + if (object.stripeCheckoutExpiresAt != null) { + yield r'stripe_checkout_expires_at'; + yield serializers.serialize( + object.stripeCheckoutExpiresAt, + specifiedType: const FullType(DateTime), + ); + } yield r'updated_at'; yield serializers.serialize( object.updatedAt, @@ -218,6 +241,13 @@ class _$SubscriptionSerializer implements PrimitiveSerializer { ) as String; result.currentPlan = valueDes; break; + case r'current_plan_details': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(PlanDetails), + ) as PlanDetails; + result.currentPlanDetails.replace(valueDes); + break; case r'customer_id': final valueDes = serializers.deserialize( value, @@ -277,6 +307,13 @@ class _$SubscriptionSerializer implements PrimitiveSerializer { ) as String; result.status = valueDes; break; + case r'stripe_checkout_expires_at': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) as DateTime; + result.stripeCheckoutExpiresAt = valueDes; + break; case r'updated_at': final valueDes = serializers.deserialize( value, diff --git a/clients/client/dart/lib/src/model/subscription.g.dart b/clients/client/dart/lib/src/model/subscription.g.dart index 607aae0cb19..f517ed694f9 100644 --- a/clients/client/dart/lib/src/model/subscription.g.dart +++ b/clients/client/dart/lib/src/model/subscription.g.dart @@ -128,6 +128,8 @@ class _$Subscription extends Subscription { @override final String currentPlan; @override + final PlanDetails? currentPlanDetails; + @override final String customerId; @override final String id; @@ -144,6 +146,8 @@ class _$Subscription extends Subscription { @override final String status; @override + final DateTime? stripeCheckoutExpiresAt; + @override final DateTime updatedAt; factory _$Subscription([void Function(SubscriptionBuilder)? updates]) => @@ -154,6 +158,7 @@ class _$Subscription extends Subscription { required this.currency, required this.currentInterval, required this.currentPlan, + this.currentPlanDetails, required this.customerId, required this.id, this.intervalChangesTo, @@ -162,6 +167,7 @@ class _$Subscription extends Subscription { this.planChangesAt, this.planChangesTo, required this.status, + this.stripeCheckoutExpiresAt, required this.updatedAt}) : super._() { BuiltValueNullFieldError.checkNotNull( @@ -197,6 +203,7 @@ class _$Subscription extends Subscription { currency == other.currency && currentInterval == other.currentInterval && currentPlan == other.currentPlan && + currentPlanDetails == other.currentPlanDetails && customerId == other.customerId && id == other.id && intervalChangesTo == other.intervalChangesTo && @@ -205,6 +212,7 @@ class _$Subscription extends Subscription { planChangesAt == other.planChangesAt && planChangesTo == other.planChangesTo && status == other.status && + stripeCheckoutExpiresAt == other.stripeCheckoutExpiresAt && updatedAt == other.updatedAt; } @@ -215,6 +223,7 @@ class _$Subscription extends Subscription { _$hash = $jc(_$hash, currency.hashCode); _$hash = $jc(_$hash, currentInterval.hashCode); _$hash = $jc(_$hash, currentPlan.hashCode); + _$hash = $jc(_$hash, currentPlanDetails.hashCode); _$hash = $jc(_$hash, customerId.hashCode); _$hash = $jc(_$hash, id.hashCode); _$hash = $jc(_$hash, intervalChangesTo.hashCode); @@ -223,6 +232,7 @@ class _$Subscription extends Subscription { _$hash = $jc(_$hash, planChangesAt.hashCode); _$hash = $jc(_$hash, planChangesTo.hashCode); _$hash = $jc(_$hash, status.hashCode); + _$hash = $jc(_$hash, stripeCheckoutExpiresAt.hashCode); _$hash = $jc(_$hash, updatedAt.hashCode); _$hash = $jf(_$hash); return _$hash; @@ -235,6 +245,7 @@ class _$Subscription extends Subscription { ..add('currency', currency) ..add('currentInterval', currentInterval) ..add('currentPlan', currentPlan) + ..add('currentPlanDetails', currentPlanDetails) ..add('customerId', customerId) ..add('id', id) ..add('intervalChangesTo', intervalChangesTo) @@ -243,6 +254,7 @@ class _$Subscription extends Subscription { ..add('planChangesAt', planChangesAt) ..add('planChangesTo', planChangesTo) ..add('status', status) + ..add('stripeCheckoutExpiresAt', stripeCheckoutExpiresAt) ..add('updatedAt', updatedAt)) .toString(); } @@ -271,6 +283,12 @@ class SubscriptionBuilder String? get currentPlan => _$this._currentPlan; set currentPlan(String? currentPlan) => _$this._currentPlan = currentPlan; + PlanDetailsBuilder? _currentPlanDetails; + PlanDetailsBuilder get currentPlanDetails => + _$this._currentPlanDetails ??= new PlanDetailsBuilder(); + set currentPlanDetails(PlanDetailsBuilder? currentPlanDetails) => + _$this._currentPlanDetails = currentPlanDetails; + String? _customerId; String? get customerId => _$this._customerId; set customerId(String? customerId) => _$this._customerId = customerId; @@ -307,6 +325,11 @@ class SubscriptionBuilder String? get status => _$this._status; set status(String? status) => _$this._status = status; + DateTime? _stripeCheckoutExpiresAt; + DateTime? get stripeCheckoutExpiresAt => _$this._stripeCheckoutExpiresAt; + set stripeCheckoutExpiresAt(DateTime? stripeCheckoutExpiresAt) => + _$this._stripeCheckoutExpiresAt = stripeCheckoutExpiresAt; + DateTime? _updatedAt; DateTime? get updatedAt => _$this._updatedAt; set updatedAt(DateTime? updatedAt) => _$this._updatedAt = updatedAt; @@ -322,6 +345,7 @@ class SubscriptionBuilder _currency = $v.currency; _currentInterval = $v.currentInterval; _currentPlan = $v.currentPlan; + _currentPlanDetails = $v.currentPlanDetails?.toBuilder(); _customerId = $v.customerId; _id = $v.id; _intervalChangesTo = $v.intervalChangesTo; @@ -330,6 +354,7 @@ class SubscriptionBuilder _planChangesAt = $v.planChangesAt; _planChangesTo = $v.planChangesTo; _status = $v.status; + _stripeCheckoutExpiresAt = $v.stripeCheckoutExpiresAt; _updatedAt = $v.updatedAt; _$v = null; } @@ -351,30 +376,45 @@ class SubscriptionBuilder Subscription build() => _build(); _$Subscription _build() { - final _$result = _$v ?? - new _$Subscription._( - createdAt: BuiltValueNullFieldError.checkNotNull( - createdAt, r'Subscription', 'createdAt'), - currency: BuiltValueNullFieldError.checkNotNull( - currency, r'Subscription', 'currency'), - currentInterval: BuiltValueNullFieldError.checkNotNull( - currentInterval, r'Subscription', 'currentInterval'), - currentPlan: BuiltValueNullFieldError.checkNotNull( - currentPlan, r'Subscription', 'currentPlan'), - customerId: BuiltValueNullFieldError.checkNotNull( - customerId, r'Subscription', 'customerId'), - id: BuiltValueNullFieldError.checkNotNull( - id, r'Subscription', 'id'), - intervalChangesTo: intervalChangesTo, - ongoingStripeCheckoutId: ongoingStripeCheckoutId, - payedUntil: BuiltValueNullFieldError.checkNotNull( - payedUntil, r'Subscription', 'payedUntil'), - planChangesAt: planChangesAt, - planChangesTo: planChangesTo, - status: BuiltValueNullFieldError.checkNotNull( - status, r'Subscription', 'status'), - updatedAt: - BuiltValueNullFieldError.checkNotNull(updatedAt, r'Subscription', 'updatedAt')); + _$Subscription _$result; + try { + _$result = _$v ?? + new _$Subscription._( + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'Subscription', 'createdAt'), + currency: BuiltValueNullFieldError.checkNotNull( + currency, r'Subscription', 'currency'), + currentInterval: BuiltValueNullFieldError.checkNotNull( + currentInterval, r'Subscription', 'currentInterval'), + currentPlan: BuiltValueNullFieldError.checkNotNull( + currentPlan, r'Subscription', 'currentPlan'), + currentPlanDetails: _currentPlanDetails?.build(), + customerId: BuiltValueNullFieldError.checkNotNull( + customerId, r'Subscription', 'customerId'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'Subscription', 'id'), + intervalChangesTo: intervalChangesTo, + ongoingStripeCheckoutId: ongoingStripeCheckoutId, + payedUntil: BuiltValueNullFieldError.checkNotNull( + payedUntil, r'Subscription', 'payedUntil'), + planChangesAt: planChangesAt, + planChangesTo: planChangesTo, + status: BuiltValueNullFieldError.checkNotNull( + status, r'Subscription', 'status'), + stripeCheckoutExpiresAt: stripeCheckoutExpiresAt, + updatedAt: + BuiltValueNullFieldError.checkNotNull(updatedAt, r'Subscription', 'updatedAt')); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'currentPlanDetails'; + _currentPlanDetails?.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'Subscription', _$failedField, e.toString()); + } + rethrow; + } replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_identity_body.dart b/clients/client/dart/lib/src/model/update_identity_body.dart index aeb95a2758b..00022110c62 100644 --- a/clients/client/dart/lib/src/model/update_identity_body.dart +++ b/clients/client/dart/lib/src/model/update_identity_body.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:ory_client/src/model/identity_with_credentials.dart'; -import 'package:ory_client/src/model/identity_state.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -18,7 +18,7 @@ part 'update_identity_body.g.dart'; /// * [metadataAdmin] - Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. /// * [metadataPublic] - Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. /// * [schemaId] - SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. -/// * [state] +/// * [state] - State is the identity's state. active StateActive inactive StateInactive /// * [traits] - Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. @BuiltValue() abstract class UpdateIdentityBody implements Built { @@ -37,8 +37,9 @@ abstract class UpdateIdentityBody implements Built get serializer => _$updateIdentityBodyStateEnumSerializer; + + const UpdateIdentityBodyStateEnum._(String name): super(name); + + static BuiltSet get values => _$updateIdentityBodyStateEnumValues; + static UpdateIdentityBodyStateEnum valueOf(String name) => _$updateIdentityBodyStateEnumValueOf(name); +} + diff --git a/clients/client/dart/lib/src/model/update_identity_body.g.dart b/clients/client/dart/lib/src/model/update_identity_body.g.dart index cd15155a6c4..d0cf181a133 100644 --- a/clients/client/dart/lib/src/model/update_identity_body.g.dart +++ b/clients/client/dart/lib/src/model/update_identity_body.g.dart @@ -6,6 +6,62 @@ part of 'update_identity_body.dart'; // BuiltValueGenerator // ************************************************************************** +const UpdateIdentityBodyStateEnum _$updateIdentityBodyStateEnum_active = + const UpdateIdentityBodyStateEnum._('active'); +const UpdateIdentityBodyStateEnum _$updateIdentityBodyStateEnum_inactive = + const UpdateIdentityBodyStateEnum._('inactive'); + +UpdateIdentityBodyStateEnum _$updateIdentityBodyStateEnumValueOf(String name) { + switch (name) { + case 'active': + return _$updateIdentityBodyStateEnum_active; + case 'inactive': + return _$updateIdentityBodyStateEnum_inactive; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$updateIdentityBodyStateEnumValues = new BuiltSet< + UpdateIdentityBodyStateEnum>(const [ + _$updateIdentityBodyStateEnum_active, + _$updateIdentityBodyStateEnum_inactive, +]); + +Serializer + _$updateIdentityBodyStateEnumSerializer = + new _$UpdateIdentityBodyStateEnumSerializer(); + +class _$UpdateIdentityBodyStateEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + static const Map _fromWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + + @override + final Iterable types = const [UpdateIdentityBodyStateEnum]; + @override + final String wireName = 'UpdateIdentityBodyStateEnum'; + + @override + Object serialize(Serializers serializers, UpdateIdentityBodyStateEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + UpdateIdentityBodyStateEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + UpdateIdentityBodyStateEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$UpdateIdentityBody extends UpdateIdentityBody { @override final IdentityWithCredentials? credentials; @@ -16,7 +72,7 @@ class _$UpdateIdentityBody extends UpdateIdentityBody { @override final String schemaId; @override - final IdentityState state; + final UpdateIdentityBodyStateEnum state; @override final JsonObject traits; @@ -111,9 +167,9 @@ class UpdateIdentityBodyBuilder String? get schemaId => _$this._schemaId; set schemaId(String? schemaId) => _$this._schemaId = schemaId; - IdentityState? _state; - IdentityState? get state => _$this._state; - set state(IdentityState? state) => _$this._state = state; + UpdateIdentityBodyStateEnum? _state; + UpdateIdentityBodyStateEnum? get state => _$this._state; + set state(UpdateIdentityBodyStateEnum? state) => _$this._state = state; JsonObject? _traits; JsonObject? get traits => _$this._traits; diff --git a/clients/client/dart/lib/src/model/update_login_flow_body.dart b/clients/client/dart/lib/src/model/update_login_flow_body.dart index 0dc5217c362..ea18685d5bc 100644 --- a/clients/client/dart/lib/src/model/update_login_flow_body.dart +++ b/clients/client/dart/lib/src/model/update_login_flow_body.dart @@ -24,6 +24,7 @@ part 'update_login_flow_body.g.dart'; /// * [method] - Method should be set to \"code\" when logging in using the code strategy. /// * [password] - The user's password. /// * [passwordIdentifier] - Identifier is the email or username of the user trying to log in. This field is deprecated! +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [idToken] - IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple /// * [idTokenNonce] - IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. /// * [provider] - The provider to register with diff --git a/clients/client/dart/lib/src/model/update_login_flow_with_code_method.dart b/clients/client/dart/lib/src/model/update_login_flow_with_code_method.dart index a7124441948..2a9bce25eb8 100644 --- a/clients/client/dart/lib/src/model/update_login_flow_with_code_method.dart +++ b/clients/client/dart/lib/src/model/update_login_flow_with_code_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'update_login_flow_with_code_method.g.dart'; /// * [identifier] - Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. /// * [method] - Method should be set to \"code\" when logging in using the code strategy. /// * [resend] - Resend is set when the user wants to resend the code +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateLoginFlowWithCodeMethod implements Built { /// Code is the 6 digits code sent to the user @@ -38,6 +40,10 @@ abstract class UpdateLoginFlowWithCodeMethod implements Built @@ -27,7 +29,8 @@ class _$UpdateLoginFlowWithCodeMethod extends UpdateLoginFlowWithCodeMethod { required this.csrfToken, this.identifier, required this.method, - this.resend}) + this.resend, + this.transientPayload}) : super._() { BuiltValueNullFieldError.checkNotNull( csrfToken, r'UpdateLoginFlowWithCodeMethod', 'csrfToken'); @@ -52,7 +55,8 @@ class _$UpdateLoginFlowWithCodeMethod extends UpdateLoginFlowWithCodeMethod { csrfToken == other.csrfToken && identifier == other.identifier && method == other.method && - resend == other.resend; + resend == other.resend && + transientPayload == other.transientPayload; } @override @@ -63,6 +67,7 @@ class _$UpdateLoginFlowWithCodeMethod extends UpdateLoginFlowWithCodeMethod { _$hash = $jc(_$hash, identifier.hashCode); _$hash = $jc(_$hash, method.hashCode); _$hash = $jc(_$hash, resend.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -74,7 +79,8 @@ class _$UpdateLoginFlowWithCodeMethod extends UpdateLoginFlowWithCodeMethod { ..add('csrfToken', csrfToken) ..add('identifier', identifier) ..add('method', method) - ..add('resend', resend)) + ..add('resend', resend) + ..add('transientPayload', transientPayload)) .toString(); } } @@ -105,6 +111,11 @@ class UpdateLoginFlowWithCodeMethodBuilder String? get resend => _$this._resend; set resend(String? resend) => _$this._resend = resend; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateLoginFlowWithCodeMethodBuilder() { UpdateLoginFlowWithCodeMethod._defaults(this); } @@ -117,6 +128,7 @@ class UpdateLoginFlowWithCodeMethodBuilder _identifier = $v.identifier; _method = $v.method; _resend = $v.resend; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -145,7 +157,8 @@ class UpdateLoginFlowWithCodeMethodBuilder identifier: identifier, method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateLoginFlowWithCodeMethod', 'method'), - resend: resend); + resend: resend, + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_login_flow_with_oidc_method.dart b/clients/client/dart/lib/src/model/update_login_flow_with_oidc_method.dart index 0d7e29245bc..6fe2dece8e6 100644 --- a/clients/client/dart/lib/src/model/update_login_flow_with_oidc_method.dart +++ b/clients/client/dart/lib/src/model/update_login_flow_with_oidc_method.dart @@ -18,6 +18,7 @@ part 'update_login_flow_with_oidc_method.g.dart'; /// * [method] - Method to use This field must be set to `oidc` when using the oidc method. /// * [provider] - The provider to register with /// * [traits] - The identity traits. This is a placeholder for the registration flow. +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [upstreamParameters] - UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. @BuiltValue() abstract class UpdateLoginFlowWithOidcMethod implements Built { @@ -45,6 +46,10 @@ abstract class UpdateLoginFlowWithOidcMethod implements Built _$this._traits; set traits(JsonObject? traits) => _$this._traits = traits; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + JsonObject? _upstreamParameters; JsonObject? get upstreamParameters => _$this._upstreamParameters; set upstreamParameters(JsonObject? upstreamParameters) => @@ -139,6 +150,7 @@ class UpdateLoginFlowWithOidcMethodBuilder _method = $v.method; _provider = $v.provider; _traits = $v.traits; + _transientPayload = $v.transientPayload; _upstreamParameters = $v.upstreamParameters; _$v = null; } @@ -170,6 +182,7 @@ class UpdateLoginFlowWithOidcMethodBuilder provider: BuiltValueNullFieldError.checkNotNull( provider, r'UpdateLoginFlowWithOidcMethod', 'provider'), traits: traits, + transientPayload: transientPayload, upstreamParameters: upstreamParameters); replace(_$result); return _$result; diff --git a/clients/client/dart/lib/src/model/update_login_flow_with_password_method.dart b/clients/client/dart/lib/src/model/update_login_flow_with_password_method.dart index 45e51cf7ad0..a4a8be43081 100644 --- a/clients/client/dart/lib/src/model/update_login_flow_with_password_method.dart +++ b/clients/client/dart/lib/src/model/update_login_flow_with_password_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'update_login_flow_with_password_method.g.dart'; /// * [method] - Method should be set to \"password\" when logging in using the identifier and password strategy. /// * [password] - The user's password. /// * [passwordIdentifier] - Identifier is the email or username of the user trying to log in. This field is deprecated! +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateLoginFlowWithPasswordMethod implements Built { /// Sending the anti-csrf token is only required for browser login flows. @@ -38,6 +40,10 @@ abstract class UpdateLoginFlowWithPasswordMethod implements Built @@ -29,7 +31,8 @@ class _$UpdateLoginFlowWithPasswordMethod required this.identifier, required this.method, required this.password, - this.passwordIdentifier}) + this.passwordIdentifier, + this.transientPayload}) : super._() { BuiltValueNullFieldError.checkNotNull( identifier, r'UpdateLoginFlowWithPasswordMethod', 'identifier'); @@ -56,7 +59,8 @@ class _$UpdateLoginFlowWithPasswordMethod identifier == other.identifier && method == other.method && password == other.password && - passwordIdentifier == other.passwordIdentifier; + passwordIdentifier == other.passwordIdentifier && + transientPayload == other.transientPayload; } @override @@ -67,6 +71,7 @@ class _$UpdateLoginFlowWithPasswordMethod _$hash = $jc(_$hash, method.hashCode); _$hash = $jc(_$hash, password.hashCode); _$hash = $jc(_$hash, passwordIdentifier.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -78,7 +83,8 @@ class _$UpdateLoginFlowWithPasswordMethod ..add('identifier', identifier) ..add('method', method) ..add('password', password) - ..add('passwordIdentifier', passwordIdentifier)) + ..add('passwordIdentifier', passwordIdentifier) + ..add('transientPayload', transientPayload)) .toString(); } } @@ -110,6 +116,11 @@ class UpdateLoginFlowWithPasswordMethodBuilder set passwordIdentifier(String? passwordIdentifier) => _$this._passwordIdentifier = passwordIdentifier; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateLoginFlowWithPasswordMethodBuilder() { UpdateLoginFlowWithPasswordMethod._defaults(this); } @@ -122,6 +133,7 @@ class UpdateLoginFlowWithPasswordMethodBuilder _method = $v.method; _password = $v.password; _passwordIdentifier = $v.passwordIdentifier; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -152,7 +164,8 @@ class UpdateLoginFlowWithPasswordMethodBuilder method, r'UpdateLoginFlowWithPasswordMethod', 'method'), password: BuiltValueNullFieldError.checkNotNull( password, r'UpdateLoginFlowWithPasswordMethod', 'password'), - passwordIdentifier: passwordIdentifier); + passwordIdentifier: passwordIdentifier, + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_login_flow_with_totp_method.dart b/clients/client/dart/lib/src/model/update_login_flow_with_totp_method.dart index 64dfe4f946a..81be49de44f 100644 --- a/clients/client/dart/lib/src/model/update_login_flow_with_totp_method.dart +++ b/clients/client/dart/lib/src/model/update_login_flow_with_totp_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -14,6 +15,7 @@ part 'update_login_flow_with_totp_method.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [method] - Method should be set to \"totp\" when logging in using the TOTP strategy. /// * [totpCode] - The TOTP code. +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateLoginFlowWithTotpMethod implements Built { /// Sending the anti-csrf token is only required for browser login flows. @@ -28,6 +30,10 @@ abstract class UpdateLoginFlowWithTotpMethod implements Built (new UpdateLoginFlowWithTotpMethodBuilder()..update(updates))._build(); _$UpdateLoginFlowWithTotpMethod._( - {this.csrfToken, required this.method, required this.totpCode}) + {this.csrfToken, + required this.method, + required this.totpCode, + this.transientPayload}) : super._() { BuiltValueNullFieldError.checkNotNull( method, r'UpdateLoginFlowWithTotpMethod', 'method'); @@ -42,7 +47,8 @@ class _$UpdateLoginFlowWithTotpMethod extends UpdateLoginFlowWithTotpMethod { return other is UpdateLoginFlowWithTotpMethod && csrfToken == other.csrfToken && method == other.method && - totpCode == other.totpCode; + totpCode == other.totpCode && + transientPayload == other.transientPayload; } @override @@ -51,6 +57,7 @@ class _$UpdateLoginFlowWithTotpMethod extends UpdateLoginFlowWithTotpMethod { _$hash = $jc(_$hash, csrfToken.hashCode); _$hash = $jc(_$hash, method.hashCode); _$hash = $jc(_$hash, totpCode.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -60,7 +67,8 @@ class _$UpdateLoginFlowWithTotpMethod extends UpdateLoginFlowWithTotpMethod { return (newBuiltValueToStringHelper(r'UpdateLoginFlowWithTotpMethod') ..add('csrfToken', csrfToken) ..add('method', method) - ..add('totpCode', totpCode)) + ..add('totpCode', totpCode) + ..add('transientPayload', transientPayload)) .toString(); } } @@ -83,6 +91,11 @@ class UpdateLoginFlowWithTotpMethodBuilder String? get totpCode => _$this._totpCode; set totpCode(String? totpCode) => _$this._totpCode = totpCode; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateLoginFlowWithTotpMethodBuilder() { UpdateLoginFlowWithTotpMethod._defaults(this); } @@ -93,6 +106,7 @@ class UpdateLoginFlowWithTotpMethodBuilder _csrfToken = $v.csrfToken; _method = $v.method; _totpCode = $v.totpCode; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -119,7 +133,8 @@ class UpdateLoginFlowWithTotpMethodBuilder method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateLoginFlowWithTotpMethod', 'method'), totpCode: BuiltValueNullFieldError.checkNotNull( - totpCode, r'UpdateLoginFlowWithTotpMethod', 'totpCode')); + totpCode, r'UpdateLoginFlowWithTotpMethod', 'totpCode'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_login_flow_with_web_authn_method.dart b/clients/client/dart/lib/src/model/update_login_flow_with_web_authn_method.dart index b610de89157..b9b0c8810c1 100644 --- a/clients/client/dart/lib/src/model/update_login_flow_with_web_authn_method.dart +++ b/clients/client/dart/lib/src/model/update_login_flow_with_web_authn_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -14,6 +15,7 @@ part 'update_login_flow_with_web_authn_method.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [identifier] - Identifier is the email or username of the user trying to log in. /// * [method] - Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [webauthnLogin] - Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. @BuiltValue() abstract class UpdateLoginFlowWithWebAuthnMethod implements Built { @@ -29,6 +31,10 @@ abstract class UpdateLoginFlowWithWebAuthnMethod implements Built _$this._method; set method(String? method) => _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _webauthnLogin; String? get webauthnLogin => _$this._webauthnLogin; set webauthnLogin(String? webauthnLogin) => @@ -108,6 +119,7 @@ class UpdateLoginFlowWithWebAuthnMethodBuilder _csrfToken = $v.csrfToken; _identifier = $v.identifier; _method = $v.method; + _transientPayload = $v.transientPayload; _webauthnLogin = $v.webauthnLogin; _$v = null; } @@ -137,6 +149,7 @@ class UpdateLoginFlowWithWebAuthnMethodBuilder identifier, r'UpdateLoginFlowWithWebAuthnMethod', 'identifier'), method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateLoginFlowWithWebAuthnMethod', 'method'), + transientPayload: transientPayload, webauthnLogin: webauthnLogin); replace(_$result); return _$result; diff --git a/clients/client/dart/lib/src/model/update_recovery_flow_body.dart b/clients/client/dart/lib/src/model/update_recovery_flow_body.dart index 112c62ea1df..909beaba49c 100644 --- a/clients/client/dart/lib/src/model/update_recovery_flow_body.dart +++ b/clients/client/dart/lib/src/model/update_recovery_flow_body.dart @@ -6,6 +6,7 @@ import 'package:ory_client/src/model/update_recovery_flow_with_code_method.dart'; import 'package:built_collection/built_collection.dart'; import 'package:ory_client/src/model/update_recovery_flow_with_link_method.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:one_of/one_of.dart'; @@ -18,6 +19,7 @@ part 'update_recovery_flow_body.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [email] - The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email /// * [method] - Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [code] - Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. @BuiltValue() abstract class UpdateRecoveryFlowBody implements Built { diff --git a/clients/client/dart/lib/src/model/update_recovery_flow_with_code_method.dart b/clients/client/dart/lib/src/model/update_recovery_flow_with_code_method.dart index 211d27be70d..763dbafe0dc 100644 --- a/clients/client/dart/lib/src/model/update_recovery_flow_with_code_method.dart +++ b/clients/client/dart/lib/src/model/update_recovery_flow_with_code_method.dart @@ -4,6 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'update_recovery_flow_with_code_method.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [email] - The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email /// * [method] - Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateRecoveryFlowWithCodeMethod implements Built { /// Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. @@ -35,6 +37,10 @@ abstract class UpdateRecoveryFlowWithCodeMethod implements Built (new UpdateRecoveryFlowWithCodeMethodBuilder()..update(updates))._build(); _$UpdateRecoveryFlowWithCodeMethod._( - {this.code, this.csrfToken, this.email, required this.method}) + {this.code, + this.csrfToken, + this.email, + required this.method, + this.transientPayload}) : super._() { BuiltValueNullFieldError.checkNotNull( method, r'UpdateRecoveryFlowWithCodeMethod', 'method'); @@ -106,7 +112,8 @@ class _$UpdateRecoveryFlowWithCodeMethod code == other.code && csrfToken == other.csrfToken && email == other.email && - method == other.method; + method == other.method && + transientPayload == other.transientPayload; } @override @@ -116,6 +123,7 @@ class _$UpdateRecoveryFlowWithCodeMethod _$hash = $jc(_$hash, csrfToken.hashCode); _$hash = $jc(_$hash, email.hashCode); _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -126,7 +134,8 @@ class _$UpdateRecoveryFlowWithCodeMethod ..add('code', code) ..add('csrfToken', csrfToken) ..add('email', email) - ..add('method', method)) + ..add('method', method) + ..add('transientPayload', transientPayload)) .toString(); } } @@ -154,6 +163,11 @@ class UpdateRecoveryFlowWithCodeMethodBuilder set method(UpdateRecoveryFlowWithCodeMethodMethodEnum? method) => _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateRecoveryFlowWithCodeMethodBuilder() { UpdateRecoveryFlowWithCodeMethod._defaults(this); } @@ -165,6 +179,7 @@ class UpdateRecoveryFlowWithCodeMethodBuilder _csrfToken = $v.csrfToken; _email = $v.email; _method = $v.method; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -191,7 +206,8 @@ class UpdateRecoveryFlowWithCodeMethodBuilder csrfToken: csrfToken, email: email, method: BuiltValueNullFieldError.checkNotNull( - method, r'UpdateRecoveryFlowWithCodeMethod', 'method')); + method, r'UpdateRecoveryFlowWithCodeMethod', 'method'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_recovery_flow_with_link_method.dart b/clients/client/dart/lib/src/model/update_recovery_flow_with_link_method.dart index 0829ec53142..db433050260 100644 --- a/clients/client/dart/lib/src/model/update_recovery_flow_with_link_method.dart +++ b/clients/client/dart/lib/src/model/update_recovery_flow_with_link_method.dart @@ -4,6 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -15,6 +16,7 @@ part 'update_recovery_flow_with_link_method.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [email] - Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email /// * [method] - Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateRecoveryFlowWithLinkMethod implements Built { /// Sending the anti-csrf token is only required for browser login flows. @@ -30,6 +32,10 @@ abstract class UpdateRecoveryFlowWithLinkMethod implements Built (new UpdateRecoveryFlowWithLinkMethodBuilder()..update(updates))._build(); _$UpdateRecoveryFlowWithLinkMethod._( - {this.csrfToken, required this.email, required this.method}) + {this.csrfToken, + required this.email, + required this.method, + this.transientPayload}) : super._() { BuiltValueNullFieldError.checkNotNull( email, r'UpdateRecoveryFlowWithLinkMethod', 'email'); @@ -105,7 +110,8 @@ class _$UpdateRecoveryFlowWithLinkMethod return other is UpdateRecoveryFlowWithLinkMethod && csrfToken == other.csrfToken && email == other.email && - method == other.method; + method == other.method && + transientPayload == other.transientPayload; } @override @@ -114,6 +120,7 @@ class _$UpdateRecoveryFlowWithLinkMethod _$hash = $jc(_$hash, csrfToken.hashCode); _$hash = $jc(_$hash, email.hashCode); _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -123,7 +130,8 @@ class _$UpdateRecoveryFlowWithLinkMethod return (newBuiltValueToStringHelper(r'UpdateRecoveryFlowWithLinkMethod') ..add('csrfToken', csrfToken) ..add('email', email) - ..add('method', method)) + ..add('method', method) + ..add('transientPayload', transientPayload)) .toString(); } } @@ -147,6 +155,11 @@ class UpdateRecoveryFlowWithLinkMethodBuilder set method(UpdateRecoveryFlowWithLinkMethodMethodEnum? method) => _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateRecoveryFlowWithLinkMethodBuilder() { UpdateRecoveryFlowWithLinkMethod._defaults(this); } @@ -157,6 +170,7 @@ class UpdateRecoveryFlowWithLinkMethodBuilder _csrfToken = $v.csrfToken; _email = $v.email; _method = $v.method; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -183,7 +197,8 @@ class UpdateRecoveryFlowWithLinkMethodBuilder email: BuiltValueNullFieldError.checkNotNull( email, r'UpdateRecoveryFlowWithLinkMethod', 'email'), method: BuiltValueNullFieldError.checkNotNull( - method, r'UpdateRecoveryFlowWithLinkMethod', 'method')); + method, r'UpdateRecoveryFlowWithLinkMethod', 'method'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_settings_flow_body.dart b/clients/client/dart/lib/src/model/update_settings_flow_body.dart index aa01776fca9..15fe171fa19 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_body.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_body.dart @@ -22,6 +22,7 @@ part 'update_settings_flow_body.g.dart'; /// * [csrfToken] - CSRFToken is the anti-CSRF token /// * [method] - Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. /// * [password] - Password is the updated password +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [traits] - The identity's traits in: body /// * [flow] - Flow ID is the flow's ID. in: query /// * [link] - Link this provider Either this or `unlink` must be set. type: string in: body diff --git a/clients/client/dart/lib/src/model/update_settings_flow_with_lookup_method.dart b/clients/client/dart/lib/src/model/update_settings_flow_with_lookup_method.dart index 6b741485e1b..66a2165d056 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_with_lookup_method.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_with_lookup_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -17,6 +18,7 @@ part 'update_settings_flow_with_lookup_method.g.dart'; /// * [lookupSecretRegenerate] - If set to true will regenerate the lookup secrets /// * [lookupSecretReveal] - If set to true will reveal the lookup secrets /// * [method] - Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateSettingsFlowWithLookupMethod implements Built { /// CSRFToken is the anti-CSRF token @@ -43,6 +45,10 @@ abstract class UpdateSettingsFlowWithLookupMethod implements Built _$this._method; set method(String? method) => _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateSettingsFlowWithLookupMethodBuilder() { UpdateSettingsFlowWithLookupMethod._defaults(this); } @@ -133,6 +144,7 @@ class UpdateSettingsFlowWithLookupMethodBuilder _lookupSecretRegenerate = $v.lookupSecretRegenerate; _lookupSecretReveal = $v.lookupSecretReveal; _method = $v.method; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -162,7 +174,8 @@ class UpdateSettingsFlowWithLookupMethodBuilder lookupSecretRegenerate: lookupSecretRegenerate, lookupSecretReveal: lookupSecretReveal, method: BuiltValueNullFieldError.checkNotNull( - method, r'UpdateSettingsFlowWithLookupMethod', 'method')); + method, r'UpdateSettingsFlowWithLookupMethod', 'method'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_settings_flow_with_oidc_method.dart b/clients/client/dart/lib/src/model/update_settings_flow_with_oidc_method.dart index db0eb429d20..9287453e485 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_with_oidc_method.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_with_oidc_method.dart @@ -16,6 +16,7 @@ part 'update_settings_flow_with_oidc_method.g.dart'; /// * [link] - Link this provider Either this or `unlink` must be set. type: string in: body /// * [method] - Method Should be set to profile when trying to update a profile. /// * [traits] - The identity's traits in: body +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [unlink] - Unlink this provider Either this or `link` must be set. type: string in: body /// * [upstreamParameters] - UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. @BuiltValue() @@ -36,6 +37,10 @@ abstract class UpdateSettingsFlowWithOidcMethod implements Built _$this._traits; set traits(JsonObject? traits) => _$this._traits = traits; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _unlink; String? get unlink => _$this._unlink; set unlink(String? unlink) => _$this._unlink = unlink; @@ -126,6 +137,7 @@ class UpdateSettingsFlowWithOidcMethodBuilder _link = $v.link; _method = $v.method; _traits = $v.traits; + _transientPayload = $v.transientPayload; _unlink = $v.unlink; _upstreamParameters = $v.upstreamParameters; _$v = null; @@ -155,6 +167,7 @@ class UpdateSettingsFlowWithOidcMethodBuilder method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateSettingsFlowWithOidcMethod', 'method'), traits: traits, + transientPayload: transientPayload, unlink: unlink, upstreamParameters: upstreamParameters); replace(_$result); diff --git a/clients/client/dart/lib/src/model/update_settings_flow_with_password_method.dart b/clients/client/dart/lib/src/model/update_settings_flow_with_password_method.dart index 7ddaf16ff41..2cccd46c957 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_with_password_method.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_with_password_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -14,6 +15,7 @@ part 'update_settings_flow_with_password_method.g.dart'; /// * [csrfToken] - CSRFToken is the anti-CSRF token /// * [method] - Method Should be set to password when trying to update a password. /// * [password] - Password is the updated password +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateSettingsFlowWithPasswordMethod implements Built { /// CSRFToken is the anti-CSRF token @@ -28,6 +30,10 @@ abstract class UpdateSettingsFlowWithPasswordMethod implements Built _$this._password; set password(String? password) => _$this._password = password; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateSettingsFlowWithPasswordMethodBuilder() { UpdateSettingsFlowWithPasswordMethod._defaults(this); } @@ -96,6 +109,7 @@ class UpdateSettingsFlowWithPasswordMethodBuilder _csrfToken = $v.csrfToken; _method = $v.method; _password = $v.password; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -123,7 +137,8 @@ class UpdateSettingsFlowWithPasswordMethodBuilder method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateSettingsFlowWithPasswordMethod', 'method'), password: BuiltValueNullFieldError.checkNotNull( - password, r'UpdateSettingsFlowWithPasswordMethod', 'password')); + password, r'UpdateSettingsFlowWithPasswordMethod', 'password'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_settings_flow_with_profile_method.dart b/clients/client/dart/lib/src/model/update_settings_flow_with_profile_method.dart index 987f3729fba..72afe8b608e 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_with_profile_method.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_with_profile_method.dart @@ -15,6 +15,7 @@ part 'update_settings_flow_with_profile_method.g.dart'; /// * [csrfToken] - The Anti-CSRF Token This token is only required when performing browser flows. /// * [method] - Method Should be set to profile when trying to update a profile. /// * [traits] - Traits The identity's traits. +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateSettingsFlowWithProfileMethod implements Built { /// The Anti-CSRF Token This token is only required when performing browser flows. @@ -29,6 +30,10 @@ abstract class UpdateSettingsFlowWithProfileMethod implements Built _$this._traits; set traits(JsonObject? traits) => _$this._traits = traits; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateSettingsFlowWithProfileMethodBuilder() { UpdateSettingsFlowWithProfileMethod._defaults(this); } @@ -96,6 +109,7 @@ class UpdateSettingsFlowWithProfileMethodBuilder _csrfToken = $v.csrfToken; _method = $v.method; _traits = $v.traits; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -123,7 +137,8 @@ class UpdateSettingsFlowWithProfileMethodBuilder method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateSettingsFlowWithProfileMethod', 'method'), traits: BuiltValueNullFieldError.checkNotNull( - traits, r'UpdateSettingsFlowWithProfileMethod', 'traits')); + traits, r'UpdateSettingsFlowWithProfileMethod', 'traits'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_settings_flow_with_totp_method.dart b/clients/client/dart/lib/src/model/update_settings_flow_with_totp_method.dart index 12e9e9dea2c..545ecea4f7e 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_with_totp_method.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_with_totp_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -15,6 +16,7 @@ part 'update_settings_flow_with_totp_method.g.dart'; /// * [method] - Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. /// * [totpCode] - ValidationTOTP must contain a valid TOTP based on the /// * [totpUnlink] - UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateSettingsFlowWithTotpMethod implements Built { /// CSRFToken is the anti-CSRF token @@ -33,6 +35,10 @@ abstract class UpdateSettingsFlowWithTotpMethod implements Built (new UpdateSettingsFlowWithTotpMethodBuilder()..update(updates))._build(); _$UpdateSettingsFlowWithTotpMethod._( - {this.csrfToken, required this.method, this.totpCode, this.totpUnlink}) + {this.csrfToken, + required this.method, + this.totpCode, + this.totpUnlink, + this.transientPayload}) : super._() { BuiltValueNullFieldError.checkNotNull( method, r'UpdateSettingsFlowWithTotpMethod', 'method'); @@ -44,7 +50,8 @@ class _$UpdateSettingsFlowWithTotpMethod csrfToken == other.csrfToken && method == other.method && totpCode == other.totpCode && - totpUnlink == other.totpUnlink; + totpUnlink == other.totpUnlink && + transientPayload == other.transientPayload; } @override @@ -54,6 +61,7 @@ class _$UpdateSettingsFlowWithTotpMethod _$hash = $jc(_$hash, method.hashCode); _$hash = $jc(_$hash, totpCode.hashCode); _$hash = $jc(_$hash, totpUnlink.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -64,7 +72,8 @@ class _$UpdateSettingsFlowWithTotpMethod ..add('csrfToken', csrfToken) ..add('method', method) ..add('totpCode', totpCode) - ..add('totpUnlink', totpUnlink)) + ..add('totpUnlink', totpUnlink) + ..add('transientPayload', transientPayload)) .toString(); } } @@ -91,6 +100,11 @@ class UpdateSettingsFlowWithTotpMethodBuilder bool? get totpUnlink => _$this._totpUnlink; set totpUnlink(bool? totpUnlink) => _$this._totpUnlink = totpUnlink; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateSettingsFlowWithTotpMethodBuilder() { UpdateSettingsFlowWithTotpMethod._defaults(this); } @@ -102,6 +116,7 @@ class UpdateSettingsFlowWithTotpMethodBuilder _method = $v.method; _totpCode = $v.totpCode; _totpUnlink = $v.totpUnlink; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -128,7 +143,8 @@ class UpdateSettingsFlowWithTotpMethodBuilder method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateSettingsFlowWithTotpMethod', 'method'), totpCode: totpCode, - totpUnlink: totpUnlink); + totpUnlink: totpUnlink, + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_settings_flow_with_web_authn_method.dart b/clients/client/dart/lib/src/model/update_settings_flow_with_web_authn_method.dart index c3f1b8b89cc..70ac2e2d81c 100644 --- a/clients/client/dart/lib/src/model/update_settings_flow_with_web_authn_method.dart +++ b/clients/client/dart/lib/src/model/update_settings_flow_with_web_authn_method.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -13,6 +14,7 @@ part 'update_settings_flow_with_web_authn_method.g.dart'; /// Properties: /// * [csrfToken] - CSRFToken is the anti-CSRF token /// * [method] - Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [webauthnRegister] - Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. /// * [webauthnRegisterDisplayname] - Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. /// * [webauthnRemove] - Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. @@ -26,6 +28,10 @@ abstract class UpdateSettingsFlowWithWebAuthnMethod implements Built _$this._method; set method(String? method) => _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _webauthnRegister; String? get webauthnRegister => _$this._webauthnRegister; set webauthnRegister(String? webauthnRegister) => @@ -119,6 +130,7 @@ class UpdateSettingsFlowWithWebAuthnMethodBuilder if ($v != null) { _csrfToken = $v.csrfToken; _method = $v.method; + _transientPayload = $v.transientPayload; _webauthnRegister = $v.webauthnRegister; _webauthnRegisterDisplayname = $v.webauthnRegisterDisplayname; _webauthnRemove = $v.webauthnRemove; @@ -148,6 +160,7 @@ class UpdateSettingsFlowWithWebAuthnMethodBuilder csrfToken: csrfToken, method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateSettingsFlowWithWebAuthnMethod', 'method'), + transientPayload: transientPayload, webauthnRegister: webauthnRegister, webauthnRegisterDisplayname: webauthnRegisterDisplayname, webauthnRemove: webauthnRemove); diff --git a/clients/client/dart/lib/src/model/update_subscription_body.dart b/clients/client/dart/lib/src/model/update_subscription_body.dart index 65a1dd04101..97a8b9e42c8 100644 --- a/clients/client/dart/lib/src/model/update_subscription_body.dart +++ b/clients/client/dart/lib/src/model/update_subscription_body.dart @@ -9,7 +9,7 @@ import 'package:built_value/serializer.dart'; part 'update_subscription_body.g.dart'; -/// Update Subscription Request Body +/// UpdateSubscriptionBody /// /// Properties: /// * [interval] - monthly Monthly yearly Yearly diff --git a/clients/client/dart/lib/src/model/update_verification_flow_body.dart b/clients/client/dart/lib/src/model/update_verification_flow_body.dart index 248de1fb40d..e0c17370872 100644 --- a/clients/client/dart/lib/src/model/update_verification_flow_body.dart +++ b/clients/client/dart/lib/src/model/update_verification_flow_body.dart @@ -6,6 +6,7 @@ import 'package:built_collection/built_collection.dart'; import 'package:ory_client/src/model/update_verification_flow_with_code_method.dart'; import 'package:ory_client/src/model/update_verification_flow_with_link_method.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:one_of/one_of.dart'; @@ -18,6 +19,7 @@ part 'update_verification_flow_body.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [email] - The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email /// * [method] - Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode +/// * [transientPayload] - Transient data to pass along to any webhooks /// * [code] - Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. @BuiltValue() abstract class UpdateVerificationFlowBody implements Built { diff --git a/clients/client/dart/lib/src/model/update_verification_flow_with_code_method.dart b/clients/client/dart/lib/src/model/update_verification_flow_with_code_method.dart index 72e778de41d..5e603eea004 100644 --- a/clients/client/dart/lib/src/model/update_verification_flow_with_code_method.dart +++ b/clients/client/dart/lib/src/model/update_verification_flow_with_code_method.dart @@ -4,6 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'update_verification_flow_with_code_method.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [email] - The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email /// * [method] - Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateVerificationFlowWithCodeMethod implements Built { /// Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. @@ -35,6 +37,10 @@ abstract class UpdateVerificationFlowWithCodeMethod implements Built _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateVerificationFlowWithCodeMethodBuilder() { UpdateVerificationFlowWithCodeMethod._defaults(this); } @@ -168,6 +182,7 @@ class UpdateVerificationFlowWithCodeMethodBuilder _csrfToken = $v.csrfToken; _email = $v.email; _method = $v.method; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -195,7 +210,8 @@ class UpdateVerificationFlowWithCodeMethodBuilder csrfToken: csrfToken, email: email, method: BuiltValueNullFieldError.checkNotNull( - method, r'UpdateVerificationFlowWithCodeMethod', 'method')); + method, r'UpdateVerificationFlowWithCodeMethod', 'method'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_verification_flow_with_link_method.dart b/clients/client/dart/lib/src/model/update_verification_flow_with_link_method.dart index a97bb60d73a..18be177e45f 100644 --- a/clients/client/dart/lib/src/model/update_verification_flow_with_link_method.dart +++ b/clients/client/dart/lib/src/model/update_verification_flow_with_link_method.dart @@ -4,6 +4,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -15,6 +16,7 @@ part 'update_verification_flow_with_link_method.g.dart'; /// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. /// * [email] - Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email /// * [method] - Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode +/// * [transientPayload] - Transient data to pass along to any webhooks @BuiltValue() abstract class UpdateVerificationFlowWithLinkMethod implements Built { /// Sending the anti-csrf token is only required for browser login flows. @@ -30,6 +32,10 @@ abstract class UpdateVerificationFlowWithLinkMethod implements Built _$this._method = method; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + UpdateVerificationFlowWithLinkMethodBuilder() { UpdateVerificationFlowWithLinkMethod._defaults(this); } @@ -160,6 +173,7 @@ class UpdateVerificationFlowWithLinkMethodBuilder _csrfToken = $v.csrfToken; _email = $v.email; _method = $v.method; + _transientPayload = $v.transientPayload; _$v = null; } return this; @@ -187,7 +201,8 @@ class UpdateVerificationFlowWithLinkMethodBuilder email: BuiltValueNullFieldError.checkNotNull( email, r'UpdateVerificationFlowWithLinkMethod', 'email'), method: BuiltValueNullFieldError.checkNotNull( - method, r'UpdateVerificationFlowWithLinkMethod', 'method')); + method, r'UpdateVerificationFlowWithLinkMethod', 'method'), + transientPayload: transientPayload); replace(_$result); return _$result; } diff --git a/clients/client/dart/lib/src/model/update_workspace_payload.dart b/clients/client/dart/lib/src/model/update_workspace_payload.dart new file mode 100644 index 00000000000..c31827e8b2d --- /dev/null +++ b/clients/client/dart/lib/src/model/update_workspace_payload.dart @@ -0,0 +1,107 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'update_workspace_payload.g.dart'; + +/// UpdateWorkspacePayload +/// +/// Properties: +/// * [name] - The name of the workspace. +@BuiltValue() +abstract class UpdateWorkspacePayload implements Built { + /// The name of the workspace. + @BuiltValueField(wireName: r'name') + String get name; + + UpdateWorkspacePayload._(); + + factory UpdateWorkspacePayload([void updates(UpdateWorkspacePayloadBuilder b)]) = _$UpdateWorkspacePayload; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(UpdateWorkspacePayloadBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UpdateWorkspacePayloadSerializer(); +} + +class _$UpdateWorkspacePayloadSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UpdateWorkspacePayload, _$UpdateWorkspacePayload]; + + @override + final String wireName = r'UpdateWorkspacePayload'; + + Iterable _serializeProperties( + Serializers serializers, + UpdateWorkspacePayload object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'name'; + yield serializers.serialize( + object.name, + specifiedType: const FullType(String), + ); + } + + @override + Object serialize( + Serializers serializers, + UpdateWorkspacePayload object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required UpdateWorkspacePayloadBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'name': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.name = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + UpdateWorkspacePayload deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = UpdateWorkspacePayloadBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/client/dart/lib/src/model/update_workspace_payload.g.dart b/clients/client/dart/lib/src/model/update_workspace_payload.g.dart new file mode 100644 index 00000000000..7d403873322 --- /dev/null +++ b/clients/client/dart/lib/src/model/update_workspace_payload.g.dart @@ -0,0 +1,98 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_workspace_payload.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateWorkspacePayload extends UpdateWorkspacePayload { + @override + final String name; + + factory _$UpdateWorkspacePayload( + [void Function(UpdateWorkspacePayloadBuilder)? updates]) => + (new UpdateWorkspacePayloadBuilder()..update(updates))._build(); + + _$UpdateWorkspacePayload._({required this.name}) : super._() { + BuiltValueNullFieldError.checkNotNull( + name, r'UpdateWorkspacePayload', 'name'); + } + + @override + UpdateWorkspacePayload rebuild( + void Function(UpdateWorkspacePayloadBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateWorkspacePayloadBuilder toBuilder() => + new UpdateWorkspacePayloadBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateWorkspacePayload && name == other.name; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateWorkspacePayload') + ..add('name', name)) + .toString(); + } +} + +class UpdateWorkspacePayloadBuilder + implements Builder { + _$UpdateWorkspacePayload? _$v; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + UpdateWorkspacePayloadBuilder() { + UpdateWorkspacePayload._defaults(this); + } + + UpdateWorkspacePayloadBuilder get _$this { + final $v = _$v; + if ($v != null) { + _name = $v.name; + _$v = null; + } + return this; + } + + @override + void replace(UpdateWorkspacePayload other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateWorkspacePayload; + } + + @override + void update(void Function(UpdateWorkspacePayloadBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateWorkspacePayload build() => _build(); + + _$UpdateWorkspacePayload _build() { + final _$result = _$v ?? + new _$UpdateWorkspacePayload._( + name: BuiltValueNullFieldError.checkNotNull( + name, r'UpdateWorkspacePayload', 'name')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/verification_flow.dart b/clients/client/dart/lib/src/model/verification_flow.dart index ef4fec56b1e..ccfb683d35e 100644 --- a/clients/client/dart/lib/src/model/verification_flow.dart +++ b/clients/client/dart/lib/src/model/verification_flow.dart @@ -20,6 +20,7 @@ part 'verification_flow.g.dart'; /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. /// * [state] - State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. +/// * [transientPayload] - TransientPayload is used to pass data from the verification flow to hooks and email templates /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() @@ -52,6 +53,10 @@ abstract class VerificationFlow implements Built _$this._state; set state(JsonObject? state) => _$this._state = state; + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + String? _type; String? get type => _$this._type; set type(String? type) => _$this._type = type; @@ -155,6 +166,7 @@ class VerificationFlowBuilder _requestUrl = $v.requestUrl; _returnTo = $v.returnTo; _state = $v.state; + _transientPayload = $v.transientPayload; _type = $v.type; _ui = $v.ui.toBuilder(); _$v = null; @@ -189,6 +201,7 @@ class VerificationFlowBuilder requestUrl: requestUrl, returnTo: returnTo, state: state, + transientPayload: transientPayload, type: BuiltValueNullFieldError.checkNotNull( type, r'VerificationFlow', 'type'), ui: ui.build()); diff --git a/clients/client/dart/lib/src/model/workspace_meta.dart b/clients/client/dart/lib/src/model/workspace_meta.dart new file mode 100644 index 00000000000..7af12f954ea --- /dev/null +++ b/clients/client/dart/lib/src/model/workspace_meta.dart @@ -0,0 +1,192 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'workspace_meta.g.dart'; + +/// WorkspaceMeta +/// +/// Properties: +/// * [createdAt] +/// * [id] +/// * [name] +/// * [subscriptionId] +/// * [subscriptionPlan] +/// * [updatedAt] +@BuiltValue() +abstract class WorkspaceMeta implements Built { + @BuiltValueField(wireName: r'created_at') + DateTime get createdAt; + + @BuiltValueField(wireName: r'id') + String get id; + + @BuiltValueField(wireName: r'name') + String get name; + + @BuiltValueField(wireName: r'subscription_id') + String? get subscriptionId; + + @BuiltValueField(wireName: r'subscription_plan') + String? get subscriptionPlan; + + @BuiltValueField(wireName: r'updated_at') + DateTime get updatedAt; + + WorkspaceMeta._(); + + factory WorkspaceMeta([void updates(WorkspaceMetaBuilder b)]) = _$WorkspaceMeta; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(WorkspaceMetaBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$WorkspaceMetaSerializer(); +} + +class _$WorkspaceMetaSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [WorkspaceMeta, _$WorkspaceMeta]; + + @override + final String wireName = r'WorkspaceMeta'; + + Iterable _serializeProperties( + Serializers serializers, + WorkspaceMeta object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'created_at'; + yield serializers.serialize( + object.createdAt, + specifiedType: const FullType(DateTime), + ); + yield r'id'; + yield serializers.serialize( + object.id, + specifiedType: const FullType(String), + ); + yield r'name'; + yield serializers.serialize( + object.name, + specifiedType: const FullType(String), + ); + if (object.subscriptionId != null) { + yield r'subscription_id'; + yield serializers.serialize( + object.subscriptionId, + specifiedType: const FullType.nullable(String), + ); + } + if (object.subscriptionPlan != null) { + yield r'subscription_plan'; + yield serializers.serialize( + object.subscriptionPlan, + specifiedType: const FullType.nullable(String), + ); + } + yield r'updated_at'; + yield serializers.serialize( + object.updatedAt, + specifiedType: const FullType(DateTime), + ); + } + + @override + Object serialize( + Serializers serializers, + WorkspaceMeta object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required WorkspaceMetaBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'created_at': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) as DateTime; + result.createdAt = valueDes; + break; + case r'id': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.id = valueDes; + break; + case r'name': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.name = valueDes; + break; + case r'subscription_id': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType.nullable(String), + ) as String?; + if (valueDes == null) continue; + result.subscriptionId = valueDes; + break; + case r'subscription_plan': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType.nullable(String), + ) as String?; + if (valueDes == null) continue; + result.subscriptionPlan = valueDes; + break; + case r'updated_at': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(DateTime), + ) as DateTime; + result.updatedAt = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + WorkspaceMeta deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = WorkspaceMetaBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/client/dart/lib/src/model/workspace_meta.g.dart b/clients/client/dart/lib/src/model/workspace_meta.g.dart new file mode 100644 index 00000000000..e8a494db0f9 --- /dev/null +++ b/clients/client/dart/lib/src/model/workspace_meta.g.dart @@ -0,0 +1,167 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'workspace_meta.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$WorkspaceMeta extends WorkspaceMeta { + @override + final DateTime createdAt; + @override + final String id; + @override + final String name; + @override + final String? subscriptionId; + @override + final String? subscriptionPlan; + @override + final DateTime updatedAt; + + factory _$WorkspaceMeta([void Function(WorkspaceMetaBuilder)? updates]) => + (new WorkspaceMetaBuilder()..update(updates))._build(); + + _$WorkspaceMeta._( + {required this.createdAt, + required this.id, + required this.name, + this.subscriptionId, + this.subscriptionPlan, + required this.updatedAt}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + createdAt, r'WorkspaceMeta', 'createdAt'); + BuiltValueNullFieldError.checkNotNull(id, r'WorkspaceMeta', 'id'); + BuiltValueNullFieldError.checkNotNull(name, r'WorkspaceMeta', 'name'); + BuiltValueNullFieldError.checkNotNull( + updatedAt, r'WorkspaceMeta', 'updatedAt'); + } + + @override + WorkspaceMeta rebuild(void Function(WorkspaceMetaBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + WorkspaceMetaBuilder toBuilder() => new WorkspaceMetaBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is WorkspaceMeta && + createdAt == other.createdAt && + id == other.id && + name == other.name && + subscriptionId == other.subscriptionId && + subscriptionPlan == other.subscriptionPlan && + updatedAt == other.updatedAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, createdAt.hashCode); + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, name.hashCode); + _$hash = $jc(_$hash, subscriptionId.hashCode); + _$hash = $jc(_$hash, subscriptionPlan.hashCode); + _$hash = $jc(_$hash, updatedAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'WorkspaceMeta') + ..add('createdAt', createdAt) + ..add('id', id) + ..add('name', name) + ..add('subscriptionId', subscriptionId) + ..add('subscriptionPlan', subscriptionPlan) + ..add('updatedAt', updatedAt)) + .toString(); + } +} + +class WorkspaceMetaBuilder + implements Builder { + _$WorkspaceMeta? _$v; + + DateTime? _createdAt; + DateTime? get createdAt => _$this._createdAt; + set createdAt(DateTime? createdAt) => _$this._createdAt = createdAt; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _name; + String? get name => _$this._name; + set name(String? name) => _$this._name = name; + + String? _subscriptionId; + String? get subscriptionId => _$this._subscriptionId; + set subscriptionId(String? subscriptionId) => + _$this._subscriptionId = subscriptionId; + + String? _subscriptionPlan; + String? get subscriptionPlan => _$this._subscriptionPlan; + set subscriptionPlan(String? subscriptionPlan) => + _$this._subscriptionPlan = subscriptionPlan; + + DateTime? _updatedAt; + DateTime? get updatedAt => _$this._updatedAt; + set updatedAt(DateTime? updatedAt) => _$this._updatedAt = updatedAt; + + WorkspaceMetaBuilder() { + WorkspaceMeta._defaults(this); + } + + WorkspaceMetaBuilder get _$this { + final $v = _$v; + if ($v != null) { + _createdAt = $v.createdAt; + _id = $v.id; + _name = $v.name; + _subscriptionId = $v.subscriptionId; + _subscriptionPlan = $v.subscriptionPlan; + _updatedAt = $v.updatedAt; + _$v = null; + } + return this; + } + + @override + void replace(WorkspaceMeta other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$WorkspaceMeta; + } + + @override + void update(void Function(WorkspaceMetaBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + WorkspaceMeta build() => _build(); + + _$WorkspaceMeta _build() { + final _$result = _$v ?? + new _$WorkspaceMeta._( + createdAt: BuiltValueNullFieldError.checkNotNull( + createdAt, r'WorkspaceMeta', 'createdAt'), + id: BuiltValueNullFieldError.checkNotNull( + id, r'WorkspaceMeta', 'id'), + name: BuiltValueNullFieldError.checkNotNull( + name, r'WorkspaceMeta', 'name'), + subscriptionId: subscriptionId, + subscriptionPlan: subscriptionPlan, + updatedAt: BuiltValueNullFieldError.checkNotNull( + updatedAt, r'WorkspaceMeta', 'updatedAt')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/serializers.dart b/clients/client/dart/lib/src/serializers.dart index ac12f4260a5..97097484259 100644 --- a/clients/client/dart/lib/src/serializers.dart +++ b/clients/client/dart/lib/src/serializers.dart @@ -51,8 +51,11 @@ import 'package:ory_client/src/model/create_recovery_code_for_identity_body.dart import 'package:ory_client/src/model/create_recovery_link_for_identity_body.dart'; import 'package:ory_client/src/model/create_relationship_body.dart'; import 'package:ory_client/src/model/create_subscription_body.dart'; +import 'package:ory_client/src/model/create_subscription_common.dart'; import 'package:ory_client/src/model/create_verifiable_credential_request_body.dart'; import 'package:ory_client/src/model/create_workspace_member_invite_body.dart'; +import 'package:ory_client/src/model/create_workspace_payload.dart'; +import 'package:ory_client/src/model/create_workspace_subscription_body.dart'; import 'package:ory_client/src/model/credential_supported_draft00.dart'; import 'package:ory_client/src/model/custom_domain.dart'; import 'package:ory_client/src/model/delete_my_sessions_count.dart'; @@ -87,12 +90,10 @@ import 'package:ory_client/src/model/identity_credentials_code.dart'; import 'package:ory_client/src/model/identity_credentials_oidc.dart'; import 'package:ory_client/src/model/identity_credentials_oidc_provider.dart'; import 'package:ory_client/src/model/identity_credentials_password.dart'; -import 'package:ory_client/src/model/identity_credentials_type.dart'; import 'package:ory_client/src/model/identity_patch.dart'; import 'package:ory_client/src/model/identity_patch_response.dart'; import 'package:ory_client/src/model/identity_schema_container.dart'; import 'package:ory_client/src/model/identity_schema_preset.dart'; -import 'package:ory_client/src/model/identity_state.dart'; import 'package:ory_client/src/model/identity_with_credentials.dart'; import 'package:ory_client/src/model/identity_with_credentials_oidc.dart'; import 'package:ory_client/src/model/identity_with_credentials_oidc_config.dart'; @@ -103,7 +104,6 @@ import 'package:ory_client/src/model/internal_get_project_branding_body.dart'; import 'package:ory_client/src/model/internal_is_ax_welcome_screen_enabled_for_project_body.dart'; import 'package:ory_client/src/model/internal_is_owner_for_project_by_slug_body.dart'; import 'package:ory_client/src/model/internal_is_owner_for_project_by_slug_response.dart'; -import 'package:ory_client/src/model/internal_provision_mock_subscription.dart'; import 'package:ory_client/src/model/introspected_o_auth2_token.dart'; import 'package:ory_client/src/model/is_owner_for_project_by_slug.dart'; import 'package:ory_client/src/model/is_ready200_response.dart'; @@ -115,6 +115,7 @@ import 'package:ory_client/src/model/keto_namespace.dart'; import 'package:ory_client/src/model/list_event_streams.dart'; import 'package:ory_client/src/model/list_my_workspaces_response.dart'; import 'package:ory_client/src/model/list_organizations_response.dart'; +import 'package:ory_client/src/model/list_workspace_projects_response.dart'; import 'package:ory_client/src/model/login_flow.dart'; import 'package:ory_client/src/model/login_flow_state.dart'; import 'package:ory_client/src/model/logout_flow.dart'; @@ -124,6 +125,7 @@ import 'package:ory_client/src/model/member_invite.dart'; import 'package:ory_client/src/model/message.dart'; import 'package:ory_client/src/model/message_dispatch.dart'; import 'package:ory_client/src/model/metrics_datapoint.dart'; +import 'package:ory_client/src/model/migration_options.dart'; import 'package:ory_client/src/model/namespace.dart'; import 'package:ory_client/src/model/needs_privileged_session_error.dart'; import 'package:ory_client/src/model/normalized_project.dart'; @@ -152,6 +154,7 @@ import 'package:ory_client/src/model/pagination_headers.dart'; import 'package:ory_client/src/model/parse_error.dart'; import 'package:ory_client/src/model/patch_identities_body.dart'; import 'package:ory_client/src/model/perform_native_logout_body.dart'; +import 'package:ory_client/src/model/permissions_on_workpace_response.dart'; import 'package:ory_client/src/model/plan.dart'; import 'package:ory_client/src/model/plan_details.dart'; import 'package:ory_client/src/model/post_check_permission_body.dart'; @@ -164,6 +167,7 @@ import 'package:ory_client/src/model/project_branding_theme.dart'; import 'package:ory_client/src/model/project_cors.dart'; import 'package:ory_client/src/model/project_events_datapoint.dart'; import 'package:ory_client/src/model/project_host.dart'; +import 'package:ory_client/src/model/project_member.dart'; import 'package:ory_client/src/model/project_metadata.dart'; import 'package:ory_client/src/model/project_service_identity.dart'; import 'package:ory_client/src/model/project_service_o_auth2.dart'; @@ -198,7 +202,6 @@ import 'package:ory_client/src/model/set_project_branding_theme_body.dart'; import 'package:ory_client/src/model/settings_flow.dart'; import 'package:ory_client/src/model/settings_flow_state.dart'; import 'package:ory_client/src/model/source_position.dart'; -import 'package:ory_client/src/model/stripe_customer.dart'; import 'package:ory_client/src/model/subject_set.dart'; import 'package:ory_client/src/model/subscription.dart'; import 'package:ory_client/src/model/successful_code_exchange_response.dart'; @@ -249,6 +252,7 @@ import 'package:ory_client/src/model/update_subscription_body.dart'; import 'package:ory_client/src/model/update_verification_flow_body.dart'; import 'package:ory_client/src/model/update_verification_flow_with_code_method.dart'; import 'package:ory_client/src/model/update_verification_flow_with_link_method.dart'; +import 'package:ory_client/src/model/update_workspace_payload.dart'; import 'package:ory_client/src/model/usage.dart'; import 'package:ory_client/src/model/verifiable_credential_priming_response.dart'; import 'package:ory_client/src/model/verifiable_credential_proof.dart'; @@ -259,6 +263,7 @@ import 'package:ory_client/src/model/verification_flow_state.dart'; import 'package:ory_client/src/model/version.dart'; import 'package:ory_client/src/model/warning.dart'; import 'package:ory_client/src/model/workspace.dart'; +import 'package:ory_client/src/model/workspace_meta.dart'; part 'serializers.g.dart'; @@ -300,8 +305,11 @@ part 'serializers.g.dart'; CreateRecoveryLinkForIdentityBody, CreateRelationshipBody, CreateSubscriptionBody, + CreateSubscriptionCommon, CreateVerifiableCredentialRequestBody, CreateWorkspaceMemberInviteBody, + CreateWorkspacePayload, + CreateWorkspaceSubscriptionBody, CredentialSupportedDraft00, CustomDomain, DeleteMySessionsCount, @@ -336,12 +344,10 @@ part 'serializers.g.dart'; IdentityCredentialsOidc, IdentityCredentialsOidcProvider, IdentityCredentialsPassword, - IdentityCredentialsType, IdentityPatch, IdentityPatchResponse, IdentitySchemaContainer, IdentitySchemaPreset, - IdentityState, IdentityWithCredentials, IdentityWithCredentialsOidc, IdentityWithCredentialsOidcConfig, @@ -352,7 +358,6 @@ part 'serializers.g.dart'; InternalIsAXWelcomeScreenEnabledForProjectBody, InternalIsOwnerForProjectBySlugBody, InternalIsOwnerForProjectBySlugResponse, - InternalProvisionMockSubscription, IntrospectedOAuth2Token, IsOwnerForProjectBySlug, IsReady200Response, @@ -364,6 +369,7 @@ part 'serializers.g.dart'; ListEventStreams, ListMyWorkspacesResponse, ListOrganizationsResponse, + ListWorkspaceProjectsResponse, LoginFlow, LoginFlowState, LogoutFlow, @@ -373,6 +379,7 @@ part 'serializers.g.dart'; Message, MessageDispatch, MetricsDatapoint, + MigrationOptions, Namespace, NeedsPrivilegedSessionError, NormalizedProject, @@ -401,6 +408,7 @@ part 'serializers.g.dart'; ParseError, PatchIdentitiesBody, PerformNativeLogoutBody, + PermissionsOnWorkpaceResponse, Plan, PlanDetails, PostCheckPermissionBody, @@ -413,6 +421,7 @@ part 'serializers.g.dart'; ProjectCors, ProjectEventsDatapoint, ProjectHost, + ProjectMember, ProjectMetadata, ProjectServiceIdentity, ProjectServiceOAuth2, @@ -447,7 +456,6 @@ part 'serializers.g.dart'; SettingsFlow, SettingsFlowState, SourcePosition, - StripeCustomer, SubjectSet, Subscription, SuccessfulCodeExchangeResponse, @@ -498,6 +506,7 @@ part 'serializers.g.dart'; UpdateVerificationFlowBody, UpdateVerificationFlowWithCodeMethod, UpdateVerificationFlowWithLinkMethod, + UpdateWorkspacePayload, Usage, VerifiableCredentialPrimingResponse, VerifiableCredentialProof, @@ -508,6 +517,7 @@ part 'serializers.g.dart'; Version, Warning, Workspace, + WorkspaceMeta, ]) Serializers serializers = (_$serializers.toBuilder() ..addBuilderFactory( @@ -527,8 +537,8 @@ Serializers serializers = (_$serializers.toBuilder() () => ListBuilder(), ) ..addBuilderFactory( - const FullType(BuiltList, [FullType(CloudAccount)]), - () => ListBuilder(), + const FullType(BuiltList, [FullType(ProjectMember)]), + () => ListBuilder(), ) ..addBuilderFactory( const FullType(BuiltList, [FullType(Identity)]), diff --git a/clients/client/dart/lib/src/serializers.g.dart b/clients/client/dart/lib/src/serializers.g.dart index 318d6143efc..c9738732e53 100644 --- a/clients/client/dart/lib/src/serializers.g.dart +++ b/clients/client/dart/lib/src/serializers.g.dart @@ -40,13 +40,16 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(CreateEventStreamBody.serializer) ..add(CreateEventStreamBodyTypeEnum.serializer) ..add(CreateIdentityBody.serializer) + ..add(CreateIdentityBodyStateEnum.serializer) ..add(CreateInviteResponse.serializer) ..add(CreateJsonWebKeySet.serializer) ..add(CreateProjectApiKeyRequest.serializer) ..add(CreateProjectBody.serializer) + ..add(CreateProjectBodyEnvironmentEnum.serializer) ..add(CreateProjectBranding.serializer) ..add(CreateProjectMemberInviteBody.serializer) ..add(CreateProjectNormalizedPayload.serializer) + ..add(CreateProjectNormalizedPayloadEnvironmentEnum.serializer) ..add(CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum .serializer) ..add(CreateProjectNormalizedPayloadHydraStrategiesScopeEnum.serializer) @@ -61,8 +64,15 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(CreateSubscriptionBody.serializer) ..add(CreateSubscriptionBodyCurrencyEnum.serializer) ..add(CreateSubscriptionBodyIntervalEnum.serializer) + ..add(CreateSubscriptionCommon.serializer) + ..add(CreateSubscriptionCommonCurrencyEnum.serializer) + ..add(CreateSubscriptionCommonIntervalEnum.serializer) ..add(CreateVerifiableCredentialRequestBody.serializer) ..add(CreateWorkspaceMemberInviteBody.serializer) + ..add(CreateWorkspacePayload.serializer) + ..add(CreateWorkspaceSubscriptionBody.serializer) + ..add(CreateWorkspaceSubscriptionBodyCurrencyEnum.serializer) + ..add(CreateWorkspaceSubscriptionBodyIntervalEnum.serializer) ..add(CredentialSupportedDraft00.serializer) ..add(CustomDomain.serializer) ..add(CustomDomainSslStatusEnum.serializer) @@ -99,13 +109,13 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(IdentityCredentialsOidc.serializer) ..add(IdentityCredentialsOidcProvider.serializer) ..add(IdentityCredentialsPassword.serializer) - ..add(IdentityCredentialsType.serializer) + ..add(IdentityCredentialsTypeEnum.serializer) ..add(IdentityPatch.serializer) ..add(IdentityPatchResponse.serializer) ..add(IdentityPatchResponseActionEnum.serializer) ..add(IdentitySchemaContainer.serializer) ..add(IdentitySchemaPreset.serializer) - ..add(IdentityState.serializer) + ..add(IdentityStateEnum.serializer) ..add(IdentityWithCredentials.serializer) ..add(IdentityWithCredentialsOidc.serializer) ..add(IdentityWithCredentialsOidcConfig.serializer) @@ -117,9 +127,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(InternalIsOwnerForProjectBySlugBody.serializer) ..add(InternalIsOwnerForProjectBySlugBodyNamespaceEnum.serializer) ..add(InternalIsOwnerForProjectBySlugResponse.serializer) - ..add(InternalProvisionMockSubscription.serializer) - ..add(InternalProvisionMockSubscriptionCurrencyEnum.serializer) - ..add(InternalProvisionMockSubscriptionIntervalEnum.serializer) ..add(IntrospectedOAuth2Token.serializer) ..add(IsOwnerForProjectBySlug.serializer) ..add(IsReady200Response.serializer) @@ -132,7 +139,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(ListEventStreams.serializer) ..add(ListMyWorkspacesResponse.serializer) ..add(ListOrganizationsResponse.serializer) + ..add(ListWorkspaceProjectsResponse.serializer) ..add(LoginFlow.serializer) + ..add(LoginFlowActiveEnum.serializer) ..add(LoginFlowState.serializer) ..add(LogoutFlow.serializer) ..add(ManagedIdentitySchema.serializer) @@ -144,6 +153,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(MessageDispatchStatusEnum.serializer) ..add(MessageTemplateTypeEnum.serializer) ..add(MetricsDatapoint.serializer) + ..add(MigrationOptions.serializer) + ..add(MigrationOptionsEnvironmentEnum.serializer) + ..add(MigrationOptionsProjectSubscriptionEnum.serializer) ..add(Namespace.serializer) ..add(NeedsPrivilegedSessionError.serializer) ..add(NormalizedProject.serializer) @@ -183,6 +195,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(ParseError.serializer) ..add(PatchIdentitiesBody.serializer) ..add(PerformNativeLogoutBody.serializer) + ..add(PermissionsOnWorkpaceResponse.serializer) ..add(Plan.serializer) ..add(PlanDetails.serializer) ..add(PostCheckPermissionBody.serializer) @@ -195,7 +208,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(ProjectCors.serializer) ..add(ProjectEventsDatapoint.serializer) ..add(ProjectHost.serializer) + ..add(ProjectMember.serializer) ..add(ProjectMetadata.serializer) + ..add(ProjectMetadataEnvironmentEnum.serializer) ..add(ProjectMetadataStateEnum.serializer) ..add(ProjectServiceIdentity.serializer) ..add(ProjectServiceOAuth2.serializer) @@ -211,6 +226,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(RecoveryIdentityAddress.serializer) ..add(RecoveryLinkForIdentity.serializer) ..add(RegistrationFlow.serializer) + ..add(RegistrationFlowActiveEnum.serializer) ..add(RegistrationFlowState.serializer) ..add(RejectOAuth2Request.serializer) ..add(RelationQuery.serializer) @@ -235,7 +251,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(SettingsFlow.serializer) ..add(SettingsFlowState.serializer) ..add(SourcePosition.serializer) - ..add(StripeCustomer.serializer) ..add(SubjectSet.serializer) ..add(Subscription.serializer) ..add(SubscriptionCurrencyEnum.serializer) @@ -267,6 +282,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(UiText.serializer) ..add(UiTextTypeEnum.serializer) ..add(UpdateIdentityBody.serializer) + ..add(UpdateIdentityBodyStateEnum.serializer) ..add(UpdateLoginFlowBody.serializer) ..add(UpdateLoginFlowWithCodeMethod.serializer) ..add(UpdateLoginFlowWithLookupSecretMethod.serializer) @@ -298,6 +314,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(UpdateVerificationFlowWithCodeMethodMethodEnum.serializer) ..add(UpdateVerificationFlowWithLinkMethod.serializer) ..add(UpdateVerificationFlowWithLinkMethodMethodEnum.serializer) + ..add(UpdateWorkspacePayload.serializer) ..add(Usage.serializer) ..add(VerifiableCredentialPrimingResponse.serializer) ..add(VerifiableCredentialProof.serializer) @@ -309,6 +326,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(Version.serializer) ..add(Warning.serializer) ..add(Workspace.serializer) + ..add(WorkspaceMeta.serializer) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(Attribute)]), () => new ListBuilder()) @@ -380,6 +398,9 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType( BuiltList, const [const FullType(ProjectEventsDatapoint)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ProjectMetadata)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType( BuiltList, const [const FullType(RecoveryIdentityAddress)]), @@ -736,8 +757,8 @@ Serializers _$serializers = (new Serializers().toBuilder() const FullType(BuiltList, const [const FullType(Warning)]), () => new ListBuilder()) ..addBuilderFactory( - const FullType(BuiltList, const [const FullType(Workspace)]), - () => new ListBuilder()) + const FullType(BuiltList, const [const FullType(WorkspaceMeta)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltMap, const [const FullType(String), const FullType(GenericUsage)]), @@ -763,7 +784,11 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType( BuiltMap, const [const FullType(String), const FullType(String)]), - () => new MapBuilder())) + () => new MapBuilder()) + ..addBuilderFactory( + const FullType( + BuiltMap, const [const FullType(String), const FullType(bool)]), + () => new MapBuilder())) .build(); // ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/pubspec.yaml b/clients/client/dart/pubspec.yaml index f6a1d0e9cef..ecaea28eff9 100644 --- a/clients/client/dart/pubspec.yaml +++ b/clients/client/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: ory_client -version: 1.5.1 +version: 1.8.1 description: OpenAPI API client for Ory Network, Ory's web-scale API for identity and access control. homepage: https://www.ory.sh repository: https://github.com/ory/sdk/tree/master/clients/client/dart diff --git a/clients/client/dart/test/accept_o_auth2_consent_request_test.dart b/clients/client/dart/test/accept_o_auth2_consent_request_test.dart index 51d5162e7dc..83e5d361a00 100644 --- a/clients/client/dart/test/accept_o_auth2_consent_request_test.dart +++ b/clients/client/dart/test/accept_o_auth2_consent_request_test.dart @@ -7,6 +7,11 @@ void main() { // TODO add properties to the builder and call build() group(AcceptOAuth2ConsentRequest, () { + // JsonObject context + test('to test the property `context`', () async { + // TODO + }); + // BuiltList grantAccessTokenAudience test('to test the property `grantAccessTokenAudience`', () async { // TODO diff --git a/clients/client/dart/test/create_identity_body_test.dart b/clients/client/dart/test/create_identity_body_test.dart index 89b7eee68d9..4382a5d4658 100644 --- a/clients/client/dart/test/create_identity_body_test.dart +++ b/clients/client/dart/test/create_identity_body_test.dart @@ -36,7 +36,8 @@ void main() { // TODO }); - // IdentityState state + // State is the identity's state. active StateActive inactive StateInactive + // String state test('to test the property `state`', () async { // TODO }); diff --git a/clients/client/dart/test/create_project_body_test.dart b/clients/client/dart/test/create_project_body_test.dart index a6465a74b4e..954d91189ab 100644 --- a/clients/client/dart/test/create_project_body_test.dart +++ b/clients/client/dart/test/create_project_body_test.dart @@ -7,6 +7,12 @@ void main() { // TODO add properties to the builder and call build() group(CreateProjectBody, () { + // The environment of the project. prod Production dev Development + // String environment + test('to test the property `environment`', () async { + // TODO + }); + // The name of the project to be created // String name test('to test the property `name`', () async { diff --git a/clients/client/dart/test/create_project_normalized_payload_test.dart b/clients/client/dart/test/create_project_normalized_payload_test.dart index ddfcae38c2c..10c1d5bc7a8 100644 --- a/clients/client/dart/test/create_project_normalized_payload_test.dart +++ b/clients/client/dart/test/create_project_normalized_payload_test.dart @@ -19,6 +19,18 @@ void main() { // TODO }); + // Whether the new account experience is enabled and reachable. + // bool enableAxV2 + test('to test the property `enableAxV2`', () async { + // TODO + }); + + // prod Production dev Development + // String environment + test('to test the property `environment`', () async { + // TODO + }); + // BuiltList hydraOauth2AllowedTopLevelClaims test('to test the property `hydraOauth2AllowedTopLevelClaims`', () async { // TODO @@ -54,6 +66,12 @@ void main() { // TODO }); + // Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + // bool hydraOauth2MirrorTopLevelClaims + test('to test the property `hydraOauth2MirrorTopLevelClaims`', () async { + // TODO + }); + // Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. // bool hydraOauth2PkceEnforced test('to test the property `hydraOauth2PkceEnforced`', () async { @@ -393,6 +411,12 @@ void main() { // TODO }); + // Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + // String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + test('to test the property `kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext`', () async { + // TODO + }); + // Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. // String kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml test('to test the property `kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml`', () async { @@ -898,6 +922,12 @@ void main() { // TODO }); + // Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + // bool kratosSelfserviceMethodsCodeMfaEnabled + test('to test the property `kratosSelfserviceMethodsCodeMfaEnabled`', () async { + // TODO + }); + // Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. // bool kratosSelfserviceMethodsCodePasswordlessEnabled test('to test the property `kratosSelfserviceMethodsCodePasswordlessEnabled`', () async { diff --git a/clients/client/dart/test/create_subscription_body_test.dart b/clients/client/dart/test/create_subscription_body_test.dart index db924030506..882a8f7bd54 100644 --- a/clients/client/dart/test/create_subscription_body_test.dart +++ b/clients/client/dart/test/create_subscription_body_test.dart @@ -34,10 +34,5 @@ void main() { // TODO }); - // String workspace - test('to test the property `workspace`', () async { - // TODO - }); - }); } diff --git a/clients/client/dart/test/internal_provision_mock_subscription_test.dart b/clients/client/dart/test/create_subscription_common_test.dart similarity index 56% rename from clients/client/dart/test/internal_provision_mock_subscription_test.dart rename to clients/client/dart/test/create_subscription_common_test.dart index b4dbe11ee41..74b0ee7d404 100644 --- a/clients/client/dart/test/internal_provision_mock_subscription_test.dart +++ b/clients/client/dart/test/create_subscription_common_test.dart @@ -1,35 +1,33 @@ import 'package:test/test.dart'; import 'package:ory_client/ory_client.dart'; -// tests for InternalProvisionMockSubscription +// tests for CreateSubscriptionCommon void main() { - final instance = InternalProvisionMockSubscriptionBuilder(); + final instance = CreateSubscriptionCommonBuilder(); // TODO add properties to the builder and call build() - group(InternalProvisionMockSubscription, () { - // Currency usd USD eur Euro + group(CreateSubscriptionCommon, () { + // usd USD eur Euro // String currency test('to test the property `currency`', () async { // TODO }); - // Identity ID - // String identityId - test('to test the property `identityId`', () async { - // TODO - }); - - // Billing Interval monthly Monthly yearly Yearly + // monthly Monthly yearly Yearly // String interval test('to test the property `interval`', () async { // TODO }); - // Plan ID // String plan test('to test the property `plan`', () async { // TODO }); + // String returnTo + test('to test the property `returnTo`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/create_workspace_payload_test.dart b/clients/client/dart/test/create_workspace_payload_test.dart new file mode 100644 index 00000000000..36be7deffef --- /dev/null +++ b/clients/client/dart/test/create_workspace_payload_test.dart @@ -0,0 +1,17 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for CreateWorkspacePayload +void main() { + final instance = CreateWorkspacePayloadBuilder(); + // TODO add properties to the builder and call build() + + group(CreateWorkspacePayload, () { + // The name of the workspace + // String name + test('to test the property `name`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/create_workspace_subscription_body_test.dart b/clients/client/dart/test/create_workspace_subscription_body_test.dart new file mode 100644 index 00000000000..6d80a7fccea --- /dev/null +++ b/clients/client/dart/test/create_workspace_subscription_body_test.dart @@ -0,0 +1,33 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for CreateWorkspaceSubscriptionBody +void main() { + final instance = CreateWorkspaceSubscriptionBodyBuilder(); + // TODO add properties to the builder and call build() + + group(CreateWorkspaceSubscriptionBody, () { + // usd USD eur Euro + // String currency + test('to test the property `currency`', () async { + // TODO + }); + + // monthly Monthly yearly Yearly + // String interval + test('to test the property `interval`', () async { + // TODO + }); + + // String plan + test('to test the property `plan`', () async { + // TODO + }); + + // String returnTo + test('to test the property `returnTo`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/frontend_api_test.dart b/clients/client/dart/test/frontend_api_test.dart index ad0758c64f3..ab071b68835 100644 --- a/clients/client/dart/test/frontend_api_test.dart +++ b/clients/client/dart/test/frontend_api_test.dart @@ -11,7 +11,7 @@ void main() { // // This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! The optional query parameter login_challenge is set when using Kratos with Hydra in an OAuth2 flow. See the oauth2_provider.url configuration option. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). // - //Future createBrowserLoginFlow({ bool refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization }) async + //Future createBrowserLoginFlow({ bool refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, String via }) async test('test createBrowserLoginFlow', () async { // TODO }); @@ -65,7 +65,7 @@ void main() { // // This endpoint initiates a login flow for native apps that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). 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). // - //Future createNativeLoginFlow({ bool refresh, String aal, String xSessionToken, bool returnSessionTokenExchangeCode, String returnTo }) async + //Future createNativeLoginFlow({ bool refresh, String aal, String xSessionToken, bool returnSessionTokenExchangeCode, String returnTo, String via }) async test('test createNativeLoginFlow', () async { // TODO }); diff --git a/clients/client/dart/test/identity_api_test.dart b/clients/client/dart/test/identity_api_test.dart index 5191171427c..c0f30e1d797 100644 --- a/clients/client/dart/test/identity_api_test.dart +++ b/clients/client/dart/test/identity_api_test.dart @@ -38,7 +38,7 @@ void main() { // // This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. // - //Future createRecoveryLinkForIdentity({ CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody }) async + //Future createRecoveryLinkForIdentity({ String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody }) async test('test createRecoveryLinkForIdentity', () async { // TODO }); @@ -119,7 +119,7 @@ void main() { // // Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. // - //Future> listIdentities({ int perPage, int page, int pageSize, String pageToken, String consistency, BuiltList idsFilter, String credentialsIdentifier, String previewCredentialsIdentifierSimilar }) async + //Future> listIdentities({ int perPage, int page, int pageSize, String pageToken, String consistency, BuiltList ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, BuiltList includeCredential }) async test('test listIdentities', () async { // TODO }); diff --git a/clients/client/dart/test/identity_credentials_code_test.dart b/clients/client/dart/test/identity_credentials_code_test.dart index 1da370b0f6d..dc81678a993 100644 --- a/clients/client/dart/test/identity_credentials_code_test.dart +++ b/clients/client/dart/test/identity_credentials_code_test.dart @@ -7,6 +7,7 @@ void main() { // TODO add properties to the builder and call build() group(IdentityCredentialsCode, () { + // The type of the address for this code // String addressType test('to test the property `addressType`', () async { // TODO diff --git a/clients/client/dart/test/identity_credentials_test.dart b/clients/client/dart/test/identity_credentials_test.dart index d3be9bec015..2aa7076f26b 100644 --- a/clients/client/dart/test/identity_credentials_test.dart +++ b/clients/client/dart/test/identity_credentials_test.dart @@ -24,7 +24,8 @@ void main() { // TODO }); - // IdentityCredentialsType type + // Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + // String type test('to test the property `type`', () async { // TODO }); diff --git a/clients/client/dart/test/identity_credentials_type_test.dart b/clients/client/dart/test/identity_credentials_type_test.dart deleted file mode 100644 index 0538b33c7b7..00000000000 --- a/clients/client/dart/test/identity_credentials_type_test.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:test/test.dart'; -import 'package:ory_client/ory_client.dart'; - -// tests for IdentityCredentialsType -void main() { - - group(IdentityCredentialsType, () { - }); -} diff --git a/clients/client/dart/test/identity_state_test.dart b/clients/client/dart/test/identity_state_test.dart deleted file mode 100644 index 5a0a6d3cd99..00000000000 --- a/clients/client/dart/test/identity_state_test.dart +++ /dev/null @@ -1,9 +0,0 @@ -import 'package:test/test.dart'; -import 'package:ory_client/ory_client.dart'; - -// tests for IdentityState -void main() { - - group(IdentityState, () { - }); -} diff --git a/clients/client/dart/test/identity_test.dart b/clients/client/dart/test/identity_test.dart index e55639fd2cb..033ea85f77d 100644 --- a/clients/client/dart/test/identity_test.dart +++ b/clients/client/dart/test/identity_test.dart @@ -60,7 +60,8 @@ void main() { // TODO }); - // IdentityState state + // State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + // String state test('to test the property `state`', () async { // TODO }); diff --git a/clients/client/dart/test/list_my_workspaces_response_test.dart b/clients/client/dart/test/list_my_workspaces_response_test.dart index 0b4a36d2283..56d6fea9920 100644 --- a/clients/client/dart/test/list_my_workspaces_response_test.dart +++ b/clients/client/dart/test/list_my_workspaces_response_test.dart @@ -17,7 +17,7 @@ void main() { // TODO }); - // BuiltList workspaces + // BuiltList workspaces test('to test the property `workspaces`', () async { // TODO }); diff --git a/clients/client/dart/test/list_workspace_projects_response_test.dart b/clients/client/dart/test/list_workspace_projects_response_test.dart new file mode 100644 index 00000000000..f0aab604b4c --- /dev/null +++ b/clients/client/dart/test/list_workspace_projects_response_test.dart @@ -0,0 +1,26 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for ListWorkspaceProjectsResponse +void main() { + final instance = ListWorkspaceProjectsResponseBuilder(); + // TODO add properties to the builder and call build() + + group(ListWorkspaceProjectsResponse, () { + // bool hasNextPage + test('to test the property `hasNextPage`', () async { + // TODO + }); + + // String nextPage + test('to test the property `nextPage`', () async { + // TODO + }); + + // BuiltList projects + test('to test the property `projects`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/login_flow_test.dart b/clients/client/dart/test/login_flow_test.dart index e7a8e3d8c30..867049fb658 100644 --- a/clients/client/dart/test/login_flow_test.dart +++ b/clients/client/dart/test/login_flow_test.dart @@ -7,7 +7,8 @@ void main() { // TODO add properties to the builder and call build() group(LoginFlow, () { - // IdentityCredentialsType active + // The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + // String active test('to test the property `active`', () async { // TODO }); @@ -87,6 +88,12 @@ void main() { // TODO }); + // TransientPayload is used to pass data from the login to hooks and email templates + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // The flow type can either be `api` or `browser`. // String type test('to test the property `type`', () async { diff --git a/clients/client/dart/test/migration_options_test.dart b/clients/client/dart/test/migration_options_test.dart new file mode 100644 index 00000000000..f93347374cd --- /dev/null +++ b/clients/client/dart/test/migration_options_test.dart @@ -0,0 +1,23 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for MigrationOptions +void main() { + final instance = MigrationOptionsBuilder(); + // TODO add properties to the builder and call build() + + group(MigrationOptions, () { + // The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + // String environment + test('to test the property `environment`', () async { + // TODO + }); + + // The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + // String projectSubscription + test('to test the property `projectSubscription`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/normalized_project_revision_test.dart b/clients/client/dart/test/normalized_project_revision_test.dart index 23cf039d165..548ed189689 100644 --- a/clients/client/dart/test/normalized_project_revision_test.dart +++ b/clients/client/dart/test/normalized_project_revision_test.dart @@ -19,6 +19,12 @@ void main() { // TODO }); + // Whether the new account experience is enabled and reachable. + // bool enableAxV2 + test('to test the property `enableAxV2`', () async { + // TODO + }); + // BuiltList hydraOauth2AllowedTopLevelClaims test('to test the property `hydraOauth2AllowedTopLevelClaims`', () async { // TODO @@ -54,6 +60,12 @@ void main() { // TODO }); + // Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + // bool hydraOauth2MirrorTopLevelClaims + test('to test the property `hydraOauth2MirrorTopLevelClaims`', () async { + // TODO + }); + // Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. // bool hydraOauth2PkceEnforced test('to test the property `hydraOauth2PkceEnforced`', () async { @@ -393,6 +405,12 @@ void main() { // TODO }); + // Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + // String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + test('to test the property `kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext`', () async { + // TODO + }); + // Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. // String kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml test('to test the property `kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml`', () async { @@ -898,6 +916,12 @@ void main() { // TODO }); + // Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + // bool kratosSelfserviceMethodsCodeMfaEnabled + test('to test the property `kratosSelfserviceMethodsCodeMfaEnabled`', () async { + // TODO + }); + // Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. // bool kratosSelfserviceMethodsCodePasswordlessEnabled test('to test the property `kratosSelfserviceMethodsCodePasswordlessEnabled`', () async { diff --git a/clients/client/dart/test/normalized_project_revision_third_party_provider_test.dart b/clients/client/dart/test/normalized_project_revision_third_party_provider_test.dart index fed1bc8745c..f9ef4507cc6 100644 --- a/clients/client/dart/test/normalized_project_revision_third_party_provider_test.dart +++ b/clients/client/dart/test/normalized_project_revision_third_party_provider_test.dart @@ -41,6 +41,11 @@ void main() { // TODO }); + // String claimsSource + test('to test the property `claimsSource`', () async { + // TODO + }); + // ClientID is the application's Client ID. // String clientId test('to test the property `clientId`', () async { diff --git a/clients/client/dart/test/o_auth2_client_test.dart b/clients/client/dart/test/o_auth2_client_test.dart index 713a3029a8b..b81b4e57d4c 100644 --- a/clients/client/dart/test/o_auth2_client_test.dart +++ b/clients/client/dart/test/o_auth2_client_test.dart @@ -234,6 +234,12 @@ void main() { // TODO }); + // SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + // bool skipLogoutConsent + test('to test the property `skipLogoutConsent`', () async { + // TODO + }); + // OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. // String subjectType test('to test the property `subjectType`', () async { diff --git a/clients/client/dart/test/o_auth2_consent_session_test.dart b/clients/client/dart/test/o_auth2_consent_session_test.dart index 9ed8d4dee9f..fae0190d4a7 100644 --- a/clients/client/dart/test/o_auth2_consent_session_test.dart +++ b/clients/client/dart/test/o_auth2_consent_session_test.dart @@ -12,6 +12,11 @@ void main() { // TODO }); + // JsonObject context + test('to test the property `context`', () async { + // TODO + }); + // OAuth2ConsentSessionExpiresAt expiresAt test('to test the property `expiresAt`', () async { // TODO diff --git a/clients/client/dart/test/permissions_on_workpace_response_test.dart b/clients/client/dart/test/permissions_on_workpace_response_test.dart new file mode 100644 index 00000000000..e1f9437ea35 --- /dev/null +++ b/clients/client/dart/test/permissions_on_workpace_response_test.dart @@ -0,0 +1,16 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for PermissionsOnWorkpaceResponse +void main() { + final instance = PermissionsOnWorkpaceResponseBuilder(); + // TODO add properties to the builder and call build() + + group(PermissionsOnWorkpaceResponse, () { + // BuiltMap permissions + test('to test the property `permissions`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/plan_details_test.dart b/clients/client/dart/test/plan_details_test.dart index fa05dc9438b..213de1945d8 100644 --- a/clients/client/dart/test/plan_details_test.dart +++ b/clients/client/dart/test/plan_details_test.dart @@ -31,7 +31,6 @@ void main() { // TODO }); - // Features are the feature definitions included in the plan. // BuiltMap features test('to test the property `features`', () async { // TODO diff --git a/clients/client/dart/test/project_api_test.dart b/clients/client/dart/test/project_api_test.dart index 15366e82f9f..ed08f6b93db 100644 --- a/clients/client/dart/test/project_api_test.dart +++ b/clients/client/dart/test/project_api_test.dart @@ -77,7 +77,7 @@ void main() { // // This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. // - //Future> getProjectMembers(String project) async + //Future> getProjectMembers(String project) async test('test getProjectMembers', () async { // TODO }); diff --git a/clients/client/dart/test/project_member_test.dart b/clients/client/dart/test/project_member_test.dart new file mode 100644 index 00000000000..70e45de05ec --- /dev/null +++ b/clients/client/dart/test/project_member_test.dart @@ -0,0 +1,31 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for ProjectMember +void main() { + final instance = ProjectMemberBuilder(); + // TODO add properties to the builder and call build() + + group(ProjectMember, () { + // String email + test('to test the property `email`', () async { + // TODO + }); + + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String name + test('to test the property `name`', () async { + // TODO + }); + + // String role + test('to test the property `role`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/project_metadata_test.dart b/clients/client/dart/test/project_metadata_test.dart index a78ea0f90fd..befedfc6534 100644 --- a/clients/client/dart/test/project_metadata_test.dart +++ b/clients/client/dart/test/project_metadata_test.dart @@ -13,6 +13,12 @@ void main() { // TODO }); + // The environment of the project. prod Production dev Development + // String environment + test('to test the property `environment`', () async { + // TODO + }); + // BuiltList hosts test('to test the property `hosts`', () async { // TODO diff --git a/clients/client/dart/test/quota_usage_test.dart b/clients/client/dart/test/quota_usage_test.dart index 9378d66dae7..116e97fb733 100644 --- a/clients/client/dart/test/quota_usage_test.dart +++ b/clients/client/dart/test/quota_usage_test.dart @@ -18,7 +18,7 @@ void main() { // TODO }); - // region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + // region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect // String feature test('to test the property `feature`', () async { // TODO diff --git a/clients/client/dart/test/recovery_flow_test.dart b/clients/client/dart/test/recovery_flow_test.dart index 36341c9f2dc..acbf137b72c 100644 --- a/clients/client/dart/test/recovery_flow_test.dart +++ b/clients/client/dart/test/recovery_flow_test.dart @@ -55,6 +55,12 @@ void main() { // TODO }); + // TransientPayload is used to pass data from the recovery flow to hooks and email templates + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // The flow type can either be `api` or `browser`. // String type test('to test the property `type`', () async { diff --git a/clients/client/dart/test/registration_flow_test.dart b/clients/client/dart/test/registration_flow_test.dart index ae41bbcf73c..8e463aacc35 100644 --- a/clients/client/dart/test/registration_flow_test.dart +++ b/clients/client/dart/test/registration_flow_test.dart @@ -7,7 +7,8 @@ void main() { // TODO add properties to the builder and call build() group(RegistrationFlow, () { - // IdentityCredentialsType active + // Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + // String active test('to test the property `active`', () async { // TODO }); diff --git a/clients/client/dart/test/settings_flow_test.dart b/clients/client/dart/test/settings_flow_test.dart index 73f935c6c79..9be88a384a2 100644 --- a/clients/client/dart/test/settings_flow_test.dart +++ b/clients/client/dart/test/settings_flow_test.dart @@ -60,6 +60,12 @@ void main() { // TODO }); + // TransientPayload is used to pass data from the settings flow to hooks and email templates + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // The flow type can either be `api` or `browser`. // String type test('to test the property `type`', () async { diff --git a/clients/client/dart/test/stripe_customer_test.dart b/clients/client/dart/test/stripe_customer_test.dart deleted file mode 100644 index 859665320dc..00000000000 --- a/clients/client/dart/test/stripe_customer_test.dart +++ /dev/null @@ -1,16 +0,0 @@ -import 'package:test/test.dart'; -import 'package:ory_client/ory_client.dart'; - -// tests for StripeCustomer -void main() { - final instance = StripeCustomerBuilder(); - // TODO add properties to the builder and call build() - - group(StripeCustomer, () { - // String id - test('to test the property `id`', () async { - // TODO - }); - - }); -} diff --git a/clients/client/dart/test/subscription_test.dart b/clients/client/dart/test/subscription_test.dart index 201386575a4..60b6ab36b53 100644 --- a/clients/client/dart/test/subscription_test.dart +++ b/clients/client/dart/test/subscription_test.dart @@ -30,6 +30,11 @@ void main() { // TODO }); + // PlanDetails currentPlanDetails + test('to test the property `currentPlanDetails`', () async { + // TODO + }); + // The ID of the stripe customer // String customerId test('to test the property `customerId`', () async { @@ -74,6 +79,11 @@ void main() { // TODO }); + // DateTime stripeCheckoutExpiresAt + test('to test the property `stripeCheckoutExpiresAt`', () async { + // TODO + }); + // DateTime updatedAt test('to test the property `updatedAt`', () async { // TODO diff --git a/clients/client/dart/test/update_identity_body_test.dart b/clients/client/dart/test/update_identity_body_test.dart index 81e59028d71..4b500e7d5e8 100644 --- a/clients/client/dart/test/update_identity_body_test.dart +++ b/clients/client/dart/test/update_identity_body_test.dart @@ -30,7 +30,8 @@ void main() { // TODO }); - // IdentityState state + // State is the identity's state. active StateActive inactive StateInactive + // String state test('to test the property `state`', () async { // TODO }); diff --git a/clients/client/dart/test/update_login_flow_body_test.dart b/clients/client/dart/test/update_login_flow_body_test.dart index ef4032707d4..218b33f9421 100644 --- a/clients/client/dart/test/update_login_flow_body_test.dart +++ b/clients/client/dart/test/update_login_flow_body_test.dart @@ -37,6 +37,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple // String idToken test('to test the property `idToken`', () async { diff --git a/clients/client/dart/test/update_login_flow_with_code_method_test.dart b/clients/client/dart/test/update_login_flow_with_code_method_test.dart index 589e64f62c7..1a38c62dd0e 100644 --- a/clients/client/dart/test/update_login_flow_with_code_method_test.dart +++ b/clients/client/dart/test/update_login_flow_with_code_method_test.dart @@ -37,5 +37,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_login_flow_with_oidc_method_test.dart b/clients/client/dart/test/update_login_flow_with_oidc_method_test.dart index 36aff395bc9..4cf1c12be4e 100644 --- a/clients/client/dart/test/update_login_flow_with_oidc_method_test.dart +++ b/clients/client/dart/test/update_login_flow_with_oidc_method_test.dart @@ -43,6 +43,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. // JsonObject upstreamParameters test('to test the property `upstreamParameters`', () async { diff --git a/clients/client/dart/test/update_login_flow_with_password_method_test.dart b/clients/client/dart/test/update_login_flow_with_password_method_test.dart index a4c8dd5910e..6c313359364 100644 --- a/clients/client/dart/test/update_login_flow_with_password_method_test.dart +++ b/clients/client/dart/test/update_login_flow_with_password_method_test.dart @@ -37,5 +37,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_login_flow_with_totp_method_test.dart b/clients/client/dart/test/update_login_flow_with_totp_method_test.dart index ae049163483..8353c1075c0 100644 --- a/clients/client/dart/test/update_login_flow_with_totp_method_test.dart +++ b/clients/client/dart/test/update_login_flow_with_totp_method_test.dart @@ -25,5 +25,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_login_flow_with_web_authn_method_test.dart b/clients/client/dart/test/update_login_flow_with_web_authn_method_test.dart index 13647060a6a..07fbfee4092 100644 --- a/clients/client/dart/test/update_login_flow_with_web_authn_method_test.dart +++ b/clients/client/dart/test/update_login_flow_with_web_authn_method_test.dart @@ -25,6 +25,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. // String webauthnLogin test('to test the property `webauthnLogin`', () async { diff --git a/clients/client/dart/test/update_recovery_flow_body_test.dart b/clients/client/dart/test/update_recovery_flow_body_test.dart index acbe2e145bb..7d1de385b65 100644 --- a/clients/client/dart/test/update_recovery_flow_body_test.dart +++ b/clients/client/dart/test/update_recovery_flow_body_test.dart @@ -25,6 +25,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. // String code test('to test the property `code`', () async { diff --git a/clients/client/dart/test/update_recovery_flow_with_code_method_test.dart b/clients/client/dart/test/update_recovery_flow_with_code_method_test.dart index e5b99a705c0..e3aacacc13b 100644 --- a/clients/client/dart/test/update_recovery_flow_with_code_method_test.dart +++ b/clients/client/dart/test/update_recovery_flow_with_code_method_test.dart @@ -31,5 +31,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_recovery_flow_with_link_method_test.dart b/clients/client/dart/test/update_recovery_flow_with_link_method_test.dart index 00900f460a6..2add911eeba 100644 --- a/clients/client/dart/test/update_recovery_flow_with_link_method_test.dart +++ b/clients/client/dart/test/update_recovery_flow_with_link_method_test.dart @@ -25,5 +25,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_settings_flow_body_test.dart b/clients/client/dart/test/update_settings_flow_body_test.dart index ef07e908eee..80dfd258877 100644 --- a/clients/client/dart/test/update_settings_flow_body_test.dart +++ b/clients/client/dart/test/update_settings_flow_body_test.dart @@ -25,6 +25,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // The identity's traits in: body // JsonObject traits test('to test the property `traits`', () async { diff --git a/clients/client/dart/test/update_settings_flow_with_lookup_method_test.dart b/clients/client/dart/test/update_settings_flow_with_lookup_method_test.dart index 3f52d48a005..482840abada 100644 --- a/clients/client/dart/test/update_settings_flow_with_lookup_method_test.dart +++ b/clients/client/dart/test/update_settings_flow_with_lookup_method_test.dart @@ -43,5 +43,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_settings_flow_with_oidc_method_test.dart b/clients/client/dart/test/update_settings_flow_with_oidc_method_test.dart index e98d477e8c0..d5f059bcc5b 100644 --- a/clients/client/dart/test/update_settings_flow_with_oidc_method_test.dart +++ b/clients/client/dart/test/update_settings_flow_with_oidc_method_test.dart @@ -31,6 +31,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // Unlink this provider Either this or `link` must be set. type: string in: body // String unlink test('to test the property `unlink`', () async { diff --git a/clients/client/dart/test/update_settings_flow_with_password_method_test.dart b/clients/client/dart/test/update_settings_flow_with_password_method_test.dart index 7cc8a018bed..6c633654dd3 100644 --- a/clients/client/dart/test/update_settings_flow_with_password_method_test.dart +++ b/clients/client/dart/test/update_settings_flow_with_password_method_test.dart @@ -25,5 +25,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_settings_flow_with_profile_method_test.dart b/clients/client/dart/test/update_settings_flow_with_profile_method_test.dart index 61dfd41159a..29d0ec6d1d3 100644 --- a/clients/client/dart/test/update_settings_flow_with_profile_method_test.dart +++ b/clients/client/dart/test/update_settings_flow_with_profile_method_test.dart @@ -25,5 +25,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_settings_flow_with_totp_method_test.dart b/clients/client/dart/test/update_settings_flow_with_totp_method_test.dart index dfe3f577298..3ea7ba977d9 100644 --- a/clients/client/dart/test/update_settings_flow_with_totp_method_test.dart +++ b/clients/client/dart/test/update_settings_flow_with_totp_method_test.dart @@ -31,5 +31,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_settings_flow_with_web_authn_method_test.dart b/clients/client/dart/test/update_settings_flow_with_web_authn_method_test.dart index 8b9af556b2a..53c5afbae6e 100644 --- a/clients/client/dart/test/update_settings_flow_with_web_authn_method_test.dart +++ b/clients/client/dart/test/update_settings_flow_with_web_authn_method_test.dart @@ -19,6 +19,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. // String webauthnRegister test('to test the property `webauthnRegister`', () async { diff --git a/clients/client/dart/test/update_verification_flow_body_test.dart b/clients/client/dart/test/update_verification_flow_body_test.dart index e60d346e91c..246e7c0c014 100644 --- a/clients/client/dart/test/update_verification_flow_body_test.dart +++ b/clients/client/dart/test/update_verification_flow_body_test.dart @@ -25,6 +25,12 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. // String code test('to test the property `code`', () async { diff --git a/clients/client/dart/test/update_verification_flow_with_code_method_test.dart b/clients/client/dart/test/update_verification_flow_with_code_method_test.dart index 0de663df484..d70b43a19dd 100644 --- a/clients/client/dart/test/update_verification_flow_with_code_method_test.dart +++ b/clients/client/dart/test/update_verification_flow_with_code_method_test.dart @@ -31,5 +31,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_verification_flow_with_link_method_test.dart b/clients/client/dart/test/update_verification_flow_with_link_method_test.dart index e272c4ae87b..3724abf1542 100644 --- a/clients/client/dart/test/update_verification_flow_with_link_method_test.dart +++ b/clients/client/dart/test/update_verification_flow_with_link_method_test.dart @@ -25,5 +25,11 @@ void main() { // TODO }); + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + }); } diff --git a/clients/client/dart/test/update_workspace_payload_test.dart b/clients/client/dart/test/update_workspace_payload_test.dart new file mode 100644 index 00000000000..47775fd7b78 --- /dev/null +++ b/clients/client/dart/test/update_workspace_payload_test.dart @@ -0,0 +1,17 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for UpdateWorkspacePayload +void main() { + final instance = UpdateWorkspacePayloadBuilder(); + // TODO add properties to the builder and call build() + + group(UpdateWorkspacePayload, () { + // The name of the workspace. + // String name + test('to test the property `name`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dart/test/verification_flow_test.dart b/clients/client/dart/test/verification_flow_test.dart index c3a36e8067b..c51def2e897 100644 --- a/clients/client/dart/test/verification_flow_test.dart +++ b/clients/client/dart/test/verification_flow_test.dart @@ -49,6 +49,12 @@ void main() { // TODO }); + // TransientPayload is used to pass data from the verification flow to hooks and email templates + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + // The flow type can either be `api` or `browser`. // String type test('to test the property `type`', () async { diff --git a/clients/client/dart/test/workspace_meta_test.dart b/clients/client/dart/test/workspace_meta_test.dart new file mode 100644 index 00000000000..4b5020ae979 --- /dev/null +++ b/clients/client/dart/test/workspace_meta_test.dart @@ -0,0 +1,41 @@ +import 'package:test/test.dart'; +import 'package:ory_client/ory_client.dart'; + +// tests for WorkspaceMeta +void main() { + final instance = WorkspaceMetaBuilder(); + // TODO add properties to the builder and call build() + + group(WorkspaceMeta, () { + // DateTime createdAt + test('to test the property `createdAt`', () async { + // TODO + }); + + // String id + test('to test the property `id`', () async { + // TODO + }); + + // String name + test('to test the property `name`', () async { + // TODO + }); + + // String subscriptionId + test('to test the property `subscriptionId`', () async { + // TODO + }); + + // String subscriptionPlan + test('to test the property `subscriptionPlan`', () async { + // TODO + }); + + // DateTime updatedAt + test('to test the property `updatedAt`', () async { + // TODO + }); + + }); +} diff --git a/clients/client/dotnet/.openapi-generator/FILES b/clients/client/dotnet/.openapi-generator/FILES index 1bce666a621..a7541bc4d16 100644 --- a/clients/client/dotnet/.openapi-generator/FILES +++ b/clients/client/dotnet/.openapi-generator/FILES @@ -39,8 +39,11 @@ docs/ClientCreateRecoveryCodeForIdentityBody.md docs/ClientCreateRecoveryLinkForIdentityBody.md docs/ClientCreateRelationshipBody.md docs/ClientCreateSubscriptionBody.md +docs/ClientCreateSubscriptionCommon.md docs/ClientCreateVerifiableCredentialRequestBody.md docs/ClientCreateWorkspaceMemberInviteBody.md +docs/ClientCreateWorkspacePayload.md +docs/ClientCreateWorkspaceSubscriptionBody.md docs/ClientCredentialSupportedDraft00.md docs/ClientCustomDomain.md docs/ClientDeleteMySessionsCount.md @@ -74,12 +77,10 @@ docs/ClientIdentityCredentialsCode.md docs/ClientIdentityCredentialsOidc.md docs/ClientIdentityCredentialsOidcProvider.md docs/ClientIdentityCredentialsPassword.md -docs/ClientIdentityCredentialsType.md docs/ClientIdentityPatch.md docs/ClientIdentityPatchResponse.md docs/ClientIdentitySchemaContainer.md docs/ClientIdentitySchemaPreset.md -docs/ClientIdentityState.md docs/ClientIdentityWithCredentials.md docs/ClientIdentityWithCredentialsOidc.md docs/ClientIdentityWithCredentialsOidcConfig.md @@ -94,7 +95,6 @@ docs/ClientInternalGetProjectBrandingBody.md docs/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.md docs/ClientInternalIsOwnerForProjectBySlugBody.md docs/ClientInternalIsOwnerForProjectBySlugResponse.md -docs/ClientInternalProvisionMockSubscription.md docs/ClientIntrospectedOAuth2Token.md docs/ClientIsOwnerForProjectBySlug.md docs/ClientJsonPatch.md @@ -104,6 +104,7 @@ docs/ClientKetoNamespace.md docs/ClientListEventStreams.md docs/ClientListMyWorkspacesResponse.md docs/ClientListOrganizationsResponse.md +docs/ClientListWorkspaceProjectsResponse.md docs/ClientLoginFlow.md docs/ClientLoginFlowState.md docs/ClientLogoutFlow.md @@ -113,6 +114,7 @@ docs/ClientMemberInvite.md docs/ClientMessage.md docs/ClientMessageDispatch.md docs/ClientMetricsDatapoint.md +docs/ClientMigrationOptions.md docs/ClientNamespace.md docs/ClientNeedsPrivilegedSessionError.md docs/ClientNormalizedProject.md @@ -141,6 +143,7 @@ docs/ClientPaginationHeaders.md docs/ClientParseError.md docs/ClientPatchIdentitiesBody.md docs/ClientPerformNativeLogoutBody.md +docs/ClientPermissionsOnWorkpaceResponse.md docs/ClientPlan.md docs/ClientPlanDetails.md docs/ClientPostCheckPermissionBody.md @@ -153,6 +156,7 @@ docs/ClientProjectBrandingTheme.md docs/ClientProjectCors.md docs/ClientProjectEventsDatapoint.md docs/ClientProjectHost.md +docs/ClientProjectMember.md docs/ClientProjectMetadata.md docs/ClientProjectServiceIdentity.md docs/ClientProjectServiceOAuth2.md @@ -187,7 +191,6 @@ docs/ClientSetProjectBrandingThemeBody.md docs/ClientSettingsFlow.md docs/ClientSettingsFlowState.md docs/ClientSourcePosition.md -docs/ClientStripeCustomer.md docs/ClientSubjectSet.md docs/ClientSubscription.md docs/ClientSuccessfulCodeExchangeResponse.md @@ -238,6 +241,7 @@ docs/ClientUpdateSubscriptionBody.md docs/ClientUpdateVerificationFlowBody.md docs/ClientUpdateVerificationFlowWithCodeMethod.md docs/ClientUpdateVerificationFlowWithLinkMethod.md +docs/ClientUpdateWorkspacePayload.md docs/ClientUsage.md docs/ClientVerifiableCredentialPrimingResponse.md docs/ClientVerifiableCredentialProof.md @@ -248,6 +252,7 @@ docs/ClientVerificationFlowState.md docs/ClientVersion.md docs/ClientWarning.md docs/ClientWorkspace.md +docs/ClientWorkspaceMeta.md docs/CourierApi.md docs/EventsApi.md docs/FrontendApi.md @@ -309,8 +314,11 @@ src/Ory.Client.Test/Model/ClientCreateRecoveryCodeForIdentityBodyTests.cs src/Ory.Client.Test/Model/ClientCreateRecoveryLinkForIdentityBodyTests.cs src/Ory.Client.Test/Model/ClientCreateRelationshipBodyTests.cs src/Ory.Client.Test/Model/ClientCreateSubscriptionBodyTests.cs +src/Ory.Client.Test/Model/ClientCreateSubscriptionCommonTests.cs src/Ory.Client.Test/Model/ClientCreateVerifiableCredentialRequestBodyTests.cs src/Ory.Client.Test/Model/ClientCreateWorkspaceMemberInviteBodyTests.cs +src/Ory.Client.Test/Model/ClientCreateWorkspacePayloadTests.cs +src/Ory.Client.Test/Model/ClientCreateWorkspaceSubscriptionBodyTests.cs src/Ory.Client.Test/Model/ClientCredentialSupportedDraft00Tests.cs src/Ory.Client.Test/Model/ClientCustomDomainTests.cs src/Ory.Client.Test/Model/ClientDeleteMySessionsCountTests.cs @@ -343,12 +351,10 @@ src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcProviderTests.cs src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcTests.cs src/Ory.Client.Test/Model/ClientIdentityCredentialsPasswordTests.cs src/Ory.Client.Test/Model/ClientIdentityCredentialsTests.cs -src/Ory.Client.Test/Model/ClientIdentityCredentialsTypeTests.cs src/Ory.Client.Test/Model/ClientIdentityPatchResponseTests.cs src/Ory.Client.Test/Model/ClientIdentityPatchTests.cs src/Ory.Client.Test/Model/ClientIdentitySchemaContainerTests.cs src/Ory.Client.Test/Model/ClientIdentitySchemaPresetTests.cs -src/Ory.Client.Test/Model/ClientIdentityStateTests.cs src/Ory.Client.Test/Model/ClientIdentityTests.cs src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigProviderTests.cs src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigTests.cs @@ -364,7 +370,6 @@ src/Ory.Client.Test/Model/ClientInternalGetProjectBrandingBodyTests.cs src/Ory.Client.Test/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBodyTests.cs src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugBodyTests.cs src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugResponseTests.cs -src/Ory.Client.Test/Model/ClientInternalProvisionMockSubscriptionTests.cs src/Ory.Client.Test/Model/ClientIntrospectedOAuth2TokenTests.cs src/Ory.Client.Test/Model/ClientIsOwnerForProjectBySlugTests.cs src/Ory.Client.Test/Model/ClientJsonPatchTests.cs @@ -374,6 +379,7 @@ src/Ory.Client.Test/Model/ClientKetoNamespaceTests.cs src/Ory.Client.Test/Model/ClientListEventStreamsTests.cs src/Ory.Client.Test/Model/ClientListMyWorkspacesResponseTests.cs src/Ory.Client.Test/Model/ClientListOrganizationsResponseTests.cs +src/Ory.Client.Test/Model/ClientListWorkspaceProjectsResponseTests.cs src/Ory.Client.Test/Model/ClientLoginFlowStateTests.cs src/Ory.Client.Test/Model/ClientLoginFlowTests.cs src/Ory.Client.Test/Model/ClientLogoutFlowTests.cs @@ -383,6 +389,7 @@ src/Ory.Client.Test/Model/ClientMemberInviteTests.cs src/Ory.Client.Test/Model/ClientMessageDispatchTests.cs src/Ory.Client.Test/Model/ClientMessageTests.cs src/Ory.Client.Test/Model/ClientMetricsDatapointTests.cs +src/Ory.Client.Test/Model/ClientMigrationOptionsTests.cs src/Ory.Client.Test/Model/ClientNamespaceTests.cs src/Ory.Client.Test/Model/ClientNeedsPrivilegedSessionErrorTests.cs src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionCourierChannelTests.cs @@ -411,6 +418,7 @@ src/Ory.Client.Test/Model/ClientPaginationTests.cs src/Ory.Client.Test/Model/ClientParseErrorTests.cs src/Ory.Client.Test/Model/ClientPatchIdentitiesBodyTests.cs src/Ory.Client.Test/Model/ClientPerformNativeLogoutBodyTests.cs +src/Ory.Client.Test/Model/ClientPermissionsOnWorkpaceResponseTests.cs src/Ory.Client.Test/Model/ClientPlanDetailsTests.cs src/Ory.Client.Test/Model/ClientPlanTests.cs src/Ory.Client.Test/Model/ClientPostCheckPermissionBodyTests.cs @@ -422,6 +430,7 @@ src/Ory.Client.Test/Model/ClientProjectBrandingThemeTests.cs src/Ory.Client.Test/Model/ClientProjectCorsTests.cs src/Ory.Client.Test/Model/ClientProjectEventsDatapointTests.cs src/Ory.Client.Test/Model/ClientProjectHostTests.cs +src/Ory.Client.Test/Model/ClientProjectMemberTests.cs src/Ory.Client.Test/Model/ClientProjectMetadataTests.cs src/Ory.Client.Test/Model/ClientProjectServiceIdentityTests.cs src/Ory.Client.Test/Model/ClientProjectServiceOAuth2Tests.cs @@ -457,7 +466,6 @@ src/Ory.Client.Test/Model/ClientSetProjectTests.cs src/Ory.Client.Test/Model/ClientSettingsFlowStateTests.cs src/Ory.Client.Test/Model/ClientSettingsFlowTests.cs src/Ory.Client.Test/Model/ClientSourcePositionTests.cs -src/Ory.Client.Test/Model/ClientStripeCustomerTests.cs src/Ory.Client.Test/Model/ClientSubjectSetTests.cs src/Ory.Client.Test/Model/ClientSubscriptionTests.cs src/Ory.Client.Test/Model/ClientSuccessfulCodeExchangeResponseTests.cs @@ -508,6 +516,7 @@ src/Ory.Client.Test/Model/ClientUpdateSubscriptionBodyTests.cs src/Ory.Client.Test/Model/ClientUpdateVerificationFlowBodyTests.cs src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithCodeMethodTests.cs src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithLinkMethodTests.cs +src/Ory.Client.Test/Model/ClientUpdateWorkspacePayloadTests.cs src/Ory.Client.Test/Model/ClientUsageTests.cs src/Ory.Client.Test/Model/ClientVerifiableCredentialPrimingResponseTests.cs src/Ory.Client.Test/Model/ClientVerifiableCredentialProofTests.cs @@ -517,6 +526,7 @@ src/Ory.Client.Test/Model/ClientVerificationFlowStateTests.cs src/Ory.Client.Test/Model/ClientVerificationFlowTests.cs src/Ory.Client.Test/Model/ClientVersionTests.cs src/Ory.Client.Test/Model/ClientWarningTests.cs +src/Ory.Client.Test/Model/ClientWorkspaceMetaTests.cs src/Ory.Client.Test/Model/ClientWorkspaceTests.cs src/Ory.Client.Test/Ory.Client.Test.csproj src/Ory.Client/Api/CourierApi.cs @@ -584,8 +594,11 @@ src/Ory.Client/Model/ClientCreateRecoveryCodeForIdentityBody.cs src/Ory.Client/Model/ClientCreateRecoveryLinkForIdentityBody.cs src/Ory.Client/Model/ClientCreateRelationshipBody.cs src/Ory.Client/Model/ClientCreateSubscriptionBody.cs +src/Ory.Client/Model/ClientCreateSubscriptionCommon.cs src/Ory.Client/Model/ClientCreateVerifiableCredentialRequestBody.cs src/Ory.Client/Model/ClientCreateWorkspaceMemberInviteBody.cs +src/Ory.Client/Model/ClientCreateWorkspacePayload.cs +src/Ory.Client/Model/ClientCreateWorkspaceSubscriptionBody.cs src/Ory.Client/Model/ClientCredentialSupportedDraft00.cs src/Ory.Client/Model/ClientCustomDomain.cs src/Ory.Client/Model/ClientDeleteMySessionsCount.cs @@ -619,12 +632,10 @@ src/Ory.Client/Model/ClientIdentityCredentialsCode.cs src/Ory.Client/Model/ClientIdentityCredentialsOidc.cs src/Ory.Client/Model/ClientIdentityCredentialsOidcProvider.cs src/Ory.Client/Model/ClientIdentityCredentialsPassword.cs -src/Ory.Client/Model/ClientIdentityCredentialsType.cs src/Ory.Client/Model/ClientIdentityPatch.cs src/Ory.Client/Model/ClientIdentityPatchResponse.cs src/Ory.Client/Model/ClientIdentitySchemaContainer.cs src/Ory.Client/Model/ClientIdentitySchemaPreset.cs -src/Ory.Client/Model/ClientIdentityState.cs src/Ory.Client/Model/ClientIdentityWithCredentials.cs src/Ory.Client/Model/ClientIdentityWithCredentialsOidc.cs src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfig.cs @@ -639,7 +650,6 @@ src/Ory.Client/Model/ClientInternalGetProjectBrandingBody.cs src/Ory.Client/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.cs src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugBody.cs src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugResponse.cs -src/Ory.Client/Model/ClientInternalProvisionMockSubscription.cs src/Ory.Client/Model/ClientIntrospectedOAuth2Token.cs src/Ory.Client/Model/ClientIsOwnerForProjectBySlug.cs src/Ory.Client/Model/ClientJsonPatch.cs @@ -649,6 +659,7 @@ src/Ory.Client/Model/ClientKetoNamespace.cs src/Ory.Client/Model/ClientListEventStreams.cs src/Ory.Client/Model/ClientListMyWorkspacesResponse.cs src/Ory.Client/Model/ClientListOrganizationsResponse.cs +src/Ory.Client/Model/ClientListWorkspaceProjectsResponse.cs src/Ory.Client/Model/ClientLoginFlow.cs src/Ory.Client/Model/ClientLoginFlowState.cs src/Ory.Client/Model/ClientLogoutFlow.cs @@ -658,6 +669,7 @@ src/Ory.Client/Model/ClientMemberInvite.cs src/Ory.Client/Model/ClientMessage.cs src/Ory.Client/Model/ClientMessageDispatch.cs src/Ory.Client/Model/ClientMetricsDatapoint.cs +src/Ory.Client/Model/ClientMigrationOptions.cs src/Ory.Client/Model/ClientNamespace.cs src/Ory.Client/Model/ClientNeedsPrivilegedSessionError.cs src/Ory.Client/Model/ClientNormalizedProject.cs @@ -686,6 +698,7 @@ src/Ory.Client/Model/ClientPaginationHeaders.cs src/Ory.Client/Model/ClientParseError.cs src/Ory.Client/Model/ClientPatchIdentitiesBody.cs src/Ory.Client/Model/ClientPerformNativeLogoutBody.cs +src/Ory.Client/Model/ClientPermissionsOnWorkpaceResponse.cs src/Ory.Client/Model/ClientPlan.cs src/Ory.Client/Model/ClientPlanDetails.cs src/Ory.Client/Model/ClientPostCheckPermissionBody.cs @@ -698,6 +711,7 @@ src/Ory.Client/Model/ClientProjectBrandingTheme.cs src/Ory.Client/Model/ClientProjectCors.cs src/Ory.Client/Model/ClientProjectEventsDatapoint.cs src/Ory.Client/Model/ClientProjectHost.cs +src/Ory.Client/Model/ClientProjectMember.cs src/Ory.Client/Model/ClientProjectMetadata.cs src/Ory.Client/Model/ClientProjectServiceIdentity.cs src/Ory.Client/Model/ClientProjectServiceOAuth2.cs @@ -732,7 +746,6 @@ src/Ory.Client/Model/ClientSetProjectBrandingThemeBody.cs src/Ory.Client/Model/ClientSettingsFlow.cs src/Ory.Client/Model/ClientSettingsFlowState.cs src/Ory.Client/Model/ClientSourcePosition.cs -src/Ory.Client/Model/ClientStripeCustomer.cs src/Ory.Client/Model/ClientSubjectSet.cs src/Ory.Client/Model/ClientSubscription.cs src/Ory.Client/Model/ClientSuccessfulCodeExchangeResponse.cs @@ -783,6 +796,7 @@ src/Ory.Client/Model/ClientUpdateSubscriptionBody.cs src/Ory.Client/Model/ClientUpdateVerificationFlowBody.cs src/Ory.Client/Model/ClientUpdateVerificationFlowWithCodeMethod.cs src/Ory.Client/Model/ClientUpdateVerificationFlowWithLinkMethod.cs +src/Ory.Client/Model/ClientUpdateWorkspacePayload.cs src/Ory.Client/Model/ClientUsage.cs src/Ory.Client/Model/ClientVerifiableCredentialPrimingResponse.cs src/Ory.Client/Model/ClientVerifiableCredentialProof.cs @@ -793,4 +807,5 @@ src/Ory.Client/Model/ClientVerificationFlowState.cs src/Ory.Client/Model/ClientVersion.cs src/Ory.Client/Model/ClientWarning.cs src/Ory.Client/Model/ClientWorkspace.cs +src/Ory.Client/Model/ClientWorkspaceMeta.cs src/Ory.Client/Ory.Client.csproj diff --git a/clients/client/dotnet/Ory.Client.sln b/clients/client/dotnet/Ory.Client.sln index fe4b8cde651..392d494dfd2 100644 --- a/clients/client/dotnet/Ory.Client.sln +++ b/clients/client/dotnet/Ory.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Client", "src\Ory.Client\Ory.Client.csproj", "{397B39FC-CBE1-49B8-A546-26C3CEEE0B4B}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Client", "src\Ory.Client\Ory.Client.csproj", "{4D27C1DD-8A19-465B-AFBE-B8546B21F4F5}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Client.Test", "src\Ory.Client.Test\Ory.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {397B39FC-CBE1-49B8-A546-26C3CEEE0B4B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {397B39FC-CBE1-49B8-A546-26C3CEEE0B4B}.Debug|Any CPU.Build.0 = Debug|Any CPU - {397B39FC-CBE1-49B8-A546-26C3CEEE0B4B}.Release|Any CPU.ActiveCfg = Release|Any CPU - {397B39FC-CBE1-49B8-A546-26C3CEEE0B4B}.Release|Any CPU.Build.0 = Release|Any CPU + {4D27C1DD-8A19-465B-AFBE-B8546B21F4F5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4D27C1DD-8A19-465B-AFBE-B8546B21F4F5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4D27C1DD-8A19-465B-AFBE-B8546B21F4F5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {4D27C1DD-8A19-465B-AFBE-B8546B21F4F5}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/clients/client/dotnet/README.md b/clients/client/dotnet/README.md index b21ad2fc3ce..048475b4302 100644 --- a/clients/client/dotnet/README.md +++ b/clients/client/dotnet/README.md @@ -6,8 +6,8 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers. This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.5.1 -- SDK version: 1.5.1 +- API version: v1.8.1 +- SDK version: 1.8.1 - Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit [https://www.ory.sh](https://www.ory.sh) @@ -291,8 +291,11 @@ Class | Method | HTTP request | Description - [Model.ClientCreateRecoveryLinkForIdentityBody](docs/ClientCreateRecoveryLinkForIdentityBody.md) - [Model.ClientCreateRelationshipBody](docs/ClientCreateRelationshipBody.md) - [Model.ClientCreateSubscriptionBody](docs/ClientCreateSubscriptionBody.md) + - [Model.ClientCreateSubscriptionCommon](docs/ClientCreateSubscriptionCommon.md) - [Model.ClientCreateVerifiableCredentialRequestBody](docs/ClientCreateVerifiableCredentialRequestBody.md) - [Model.ClientCreateWorkspaceMemberInviteBody](docs/ClientCreateWorkspaceMemberInviteBody.md) + - [Model.ClientCreateWorkspacePayload](docs/ClientCreateWorkspacePayload.md) + - [Model.ClientCreateWorkspaceSubscriptionBody](docs/ClientCreateWorkspaceSubscriptionBody.md) - [Model.ClientCredentialSupportedDraft00](docs/ClientCredentialSupportedDraft00.md) - [Model.ClientCustomDomain](docs/ClientCustomDomain.md) - [Model.ClientDeleteMySessionsCount](docs/ClientDeleteMySessionsCount.md) @@ -326,12 +329,10 @@ Class | Method | HTTP request | Description - [Model.ClientIdentityCredentialsOidc](docs/ClientIdentityCredentialsOidc.md) - [Model.ClientIdentityCredentialsOidcProvider](docs/ClientIdentityCredentialsOidcProvider.md) - [Model.ClientIdentityCredentialsPassword](docs/ClientIdentityCredentialsPassword.md) - - [Model.ClientIdentityCredentialsType](docs/ClientIdentityCredentialsType.md) - [Model.ClientIdentityPatch](docs/ClientIdentityPatch.md) - [Model.ClientIdentityPatchResponse](docs/ClientIdentityPatchResponse.md) - [Model.ClientIdentitySchemaContainer](docs/ClientIdentitySchemaContainer.md) - [Model.ClientIdentitySchemaPreset](docs/ClientIdentitySchemaPreset.md) - - [Model.ClientIdentityState](docs/ClientIdentityState.md) - [Model.ClientIdentityWithCredentials](docs/ClientIdentityWithCredentials.md) - [Model.ClientIdentityWithCredentialsOidc](docs/ClientIdentityWithCredentialsOidc.md) - [Model.ClientIdentityWithCredentialsOidcConfig](docs/ClientIdentityWithCredentialsOidcConfig.md) @@ -346,7 +347,6 @@ Class | Method | HTTP request | Description - [Model.ClientInternalIsAXWelcomeScreenEnabledForProjectBody](docs/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.md) - [Model.ClientInternalIsOwnerForProjectBySlugBody](docs/ClientInternalIsOwnerForProjectBySlugBody.md) - [Model.ClientInternalIsOwnerForProjectBySlugResponse](docs/ClientInternalIsOwnerForProjectBySlugResponse.md) - - [Model.ClientInternalProvisionMockSubscription](docs/ClientInternalProvisionMockSubscription.md) - [Model.ClientIntrospectedOAuth2Token](docs/ClientIntrospectedOAuth2Token.md) - [Model.ClientIsOwnerForProjectBySlug](docs/ClientIsOwnerForProjectBySlug.md) - [Model.ClientJsonPatch](docs/ClientJsonPatch.md) @@ -356,6 +356,7 @@ Class | Method | HTTP request | Description - [Model.ClientListEventStreams](docs/ClientListEventStreams.md) - [Model.ClientListMyWorkspacesResponse](docs/ClientListMyWorkspacesResponse.md) - [Model.ClientListOrganizationsResponse](docs/ClientListOrganizationsResponse.md) + - [Model.ClientListWorkspaceProjectsResponse](docs/ClientListWorkspaceProjectsResponse.md) - [Model.ClientLoginFlow](docs/ClientLoginFlow.md) - [Model.ClientLoginFlowState](docs/ClientLoginFlowState.md) - [Model.ClientLogoutFlow](docs/ClientLogoutFlow.md) @@ -365,6 +366,7 @@ Class | Method | HTTP request | Description - [Model.ClientMessage](docs/ClientMessage.md) - [Model.ClientMessageDispatch](docs/ClientMessageDispatch.md) - [Model.ClientMetricsDatapoint](docs/ClientMetricsDatapoint.md) + - [Model.ClientMigrationOptions](docs/ClientMigrationOptions.md) - [Model.ClientNamespace](docs/ClientNamespace.md) - [Model.ClientNeedsPrivilegedSessionError](docs/ClientNeedsPrivilegedSessionError.md) - [Model.ClientNormalizedProject](docs/ClientNormalizedProject.md) @@ -393,6 +395,7 @@ Class | Method | HTTP request | Description - [Model.ClientParseError](docs/ClientParseError.md) - [Model.ClientPatchIdentitiesBody](docs/ClientPatchIdentitiesBody.md) - [Model.ClientPerformNativeLogoutBody](docs/ClientPerformNativeLogoutBody.md) + - [Model.ClientPermissionsOnWorkpaceResponse](docs/ClientPermissionsOnWorkpaceResponse.md) - [Model.ClientPlan](docs/ClientPlan.md) - [Model.ClientPlanDetails](docs/ClientPlanDetails.md) - [Model.ClientPostCheckPermissionBody](docs/ClientPostCheckPermissionBody.md) @@ -405,6 +408,7 @@ Class | Method | HTTP request | Description - [Model.ClientProjectCors](docs/ClientProjectCors.md) - [Model.ClientProjectEventsDatapoint](docs/ClientProjectEventsDatapoint.md) - [Model.ClientProjectHost](docs/ClientProjectHost.md) + - [Model.ClientProjectMember](docs/ClientProjectMember.md) - [Model.ClientProjectMetadata](docs/ClientProjectMetadata.md) - [Model.ClientProjectServiceIdentity](docs/ClientProjectServiceIdentity.md) - [Model.ClientProjectServiceOAuth2](docs/ClientProjectServiceOAuth2.md) @@ -439,7 +443,6 @@ Class | Method | HTTP request | Description - [Model.ClientSettingsFlow](docs/ClientSettingsFlow.md) - [Model.ClientSettingsFlowState](docs/ClientSettingsFlowState.md) - [Model.ClientSourcePosition](docs/ClientSourcePosition.md) - - [Model.ClientStripeCustomer](docs/ClientStripeCustomer.md) - [Model.ClientSubjectSet](docs/ClientSubjectSet.md) - [Model.ClientSubscription](docs/ClientSubscription.md) - [Model.ClientSuccessfulCodeExchangeResponse](docs/ClientSuccessfulCodeExchangeResponse.md) @@ -490,6 +493,7 @@ Class | Method | HTTP request | Description - [Model.ClientUpdateVerificationFlowBody](docs/ClientUpdateVerificationFlowBody.md) - [Model.ClientUpdateVerificationFlowWithCodeMethod](docs/ClientUpdateVerificationFlowWithCodeMethod.md) - [Model.ClientUpdateVerificationFlowWithLinkMethod](docs/ClientUpdateVerificationFlowWithLinkMethod.md) + - [Model.ClientUpdateWorkspacePayload](docs/ClientUpdateWorkspacePayload.md) - [Model.ClientUsage](docs/ClientUsage.md) - [Model.ClientVerifiableCredentialPrimingResponse](docs/ClientVerifiableCredentialPrimingResponse.md) - [Model.ClientVerifiableCredentialProof](docs/ClientVerifiableCredentialProof.md) @@ -500,6 +504,7 @@ Class | Method | HTTP request | Description - [Model.ClientVersion](docs/ClientVersion.md) - [Model.ClientWarning](docs/ClientWarning.md) - [Model.ClientWorkspace](docs/ClientWorkspace.md) + - [Model.ClientWorkspaceMeta](docs/ClientWorkspaceMeta.md) diff --git a/clients/client/dotnet/docs/ClientAcceptOAuth2ConsentRequest.md b/clients/client/dotnet/docs/ClientAcceptOAuth2ConsentRequest.md index 20684982f41..04530779c05 100644 --- a/clients/client/dotnet/docs/ClientAcceptOAuth2ConsentRequest.md +++ b/clients/client/dotnet/docs/ClientAcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Context** | **Object** | | [optional] **GrantAccessTokenAudience** | **List<string>** | | [optional] **GrantScope** | **List<string>** | | [optional] **HandledAt** | **DateTime** | | [optional] diff --git a/clients/client/dotnet/docs/ClientCloudAccount.md b/clients/client/dotnet/docs/ClientCloudAccount.md index 6dfe9c5db20..4ad381438c1 100644 --- a/clients/client/dotnet/docs/ClientCloudAccount.md +++ b/clients/client/dotnet/docs/ClientCloudAccount.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | **string** | | [optional] -**Id** | **string** | | [optional] -**Name** | **string** | | [optional] +**Email** | **string** | | +**Id** | **string** | | +**Name** | **string** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientCreateIdentityBody.md b/clients/client/dotnet/docs/ClientCreateIdentityBody.md index 7248b54adf7..37a6f6af619 100644 --- a/clients/client/dotnet/docs/ClientCreateIdentityBody.md +++ b/clients/client/dotnet/docs/ClientCreateIdentityBody.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **MetadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **RecoveryAddresses** | [**List<ClientRecoveryIdentityAddress>**](ClientRecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**State** | [**ClientIdentityState**](ClientIdentityState.md) | | [optional] +**State** | **string** | State is the identity's state. active StateActive inactive StateInactive | [optional] **Traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **VerifiableAddresses** | [**List<ClientVerifiableIdentityAddress>**](ClientVerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] diff --git a/clients/client/dotnet/docs/ClientCreateProjectBody.md b/clients/client/dotnet/docs/ClientCreateProjectBody.md index d1c21ff7702..f1972d972f5 100644 --- a/clients/client/dotnet/docs/ClientCreateProjectBody.md +++ b/clients/client/dotnet/docs/ClientCreateProjectBody.md @@ -5,6 +5,7 @@ Create Project Request Body Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Environment** | **string** | The environment of the project. prod Production dev Development | **Name** | **string** | The name of the project to be created | **WorkspaceId** | **string** | | [optional] diff --git a/clients/client/dotnet/docs/ClientCreateProjectNormalizedPayload.md b/clients/client/dotnet/docs/ClientCreateProjectNormalizedPayload.md index 7ed41557da4..60545898e85 100644 --- a/clients/client/dotnet/docs/ClientCreateProjectNormalizedPayload.md +++ b/clients/client/dotnet/docs/ClientCreateProjectNormalizedPayload.md @@ -7,12 +7,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | **DateTime** | The Project's Revision Creation Date | [optional] [readonly] **DisableAccountExperienceWelcomeScreen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**EnableAxV2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] +**Environment** | **string** | prod Production dev Development | **HydraOauth2AllowedTopLevelClaims** | **List<string>** | | [optional] **HydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **HydraOauth2ExcludeNotBeforeClaim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **HydraOauth2GrantJwtIatOptional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **HydraOauth2GrantJwtJtiOptional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **HydraOauth2GrantJwtMaxTtl** | **string** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to "720h"] +**HydraOauth2MirrorTopLevelClaims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **HydraOauth2PkceEnforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **HydraOauth2PkceEnforcedForPublicClients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **HydraOauth2RefreshTokenHook** | **string** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -71,6 +74,7 @@ Name | Type | Description | Notes **KratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **string** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailSubject** | **string** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -156,6 +160,7 @@ Name | Type | Description | Notes **KratosSelfserviceFlowsVerificationUse** | **string** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **KratosSelfserviceMethodsCodeConfigLifespan** | **string** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **KratosSelfserviceMethodsCodeEnabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**KratosSelfserviceMethodsCodeMfaEnabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **KratosSelfserviceMethodsCodePasswordlessEnabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigBaseUrl** | **string** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigLifespan** | **string** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/dotnet/docs/ClientCreateSubscriptionBody.md b/clients/client/dotnet/docs/ClientCreateSubscriptionBody.md index 45a311aee24..a9d144b0453 100644 --- a/clients/client/dotnet/docs/ClientCreateSubscriptionBody.md +++ b/clients/client/dotnet/docs/ClientCreateSubscriptionBody.md @@ -1,5 +1,4 @@ # Ory.Client.Model.ClientCreateSubscriptionBody -Create Subscription Request Body ## Properties @@ -8,9 +7,8 @@ Name | Type | Description | Notes **Currency** | **string** | usd USD eur Euro | [optional] **Interval** | **string** | monthly Monthly yearly Yearly | **Plan** | **string** | | -**ProvisionFirstProject** | **string** | | [optional] +**ProvisionFirstProject** | **string** | | **ReturnTo** | **string** | | [optional] -**Workspace** | **string** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientCreateSubscriptionCommon.md b/clients/client/dotnet/docs/ClientCreateSubscriptionCommon.md new file mode 100644 index 00000000000..8ee8ad90960 --- /dev/null +++ b/clients/client/dotnet/docs/ClientCreateSubscriptionCommon.md @@ -0,0 +1,13 @@ +# Ory.Client.Model.ClientCreateSubscriptionCommon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **string** | usd USD eur Euro | [optional] +**Interval** | **string** | monthly Monthly yearly Yearly | +**Plan** | **string** | | +**ReturnTo** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientStripeCustomer.md b/clients/client/dotnet/docs/ClientCreateWorkspacePayload.md similarity index 73% rename from clients/client/dotnet/docs/ClientStripeCustomer.md rename to clients/client/dotnet/docs/ClientCreateWorkspacePayload.md index 9903694f6cf..903639938d6 100644 --- a/clients/client/dotnet/docs/ClientStripeCustomer.md +++ b/clients/client/dotnet/docs/ClientCreateWorkspacePayload.md @@ -1,10 +1,10 @@ -# Ory.Client.Model.ClientStripeCustomer +# Ory.Client.Model.ClientCreateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Id** | **string** | | [optional] +**Name** | **string** | The name of the workspace | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientCreateWorkspaceSubscriptionBody.md b/clients/client/dotnet/docs/ClientCreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..f11661ad5e2 --- /dev/null +++ b/clients/client/dotnet/docs/ClientCreateWorkspaceSubscriptionBody.md @@ -0,0 +1,13 @@ +# Ory.Client.Model.ClientCreateWorkspaceSubscriptionBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | **string** | usd USD eur Euro | [optional] +**Interval** | **string** | monthly Monthly yearly Yearly | +**Plan** | **string** | | +**ReturnTo** | **string** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientIdentity.md b/clients/client/dotnet/docs/ClientIdentity.md index b8c5dbe6ee9..71947037864 100644 --- a/clients/client/dotnet/docs/ClientIdentity.md +++ b/clients/client/dotnet/docs/ClientIdentity.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **RecoveryAddresses** | [**List<ClientRecoveryIdentityAddress>**](ClientRecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **SchemaUrl** | **string** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**State** | [**ClientIdentityState**](ClientIdentityState.md) | | [optional] +**State** | **string** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **StateChangedAt** | **DateTime** | | [optional] **Traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/dotnet/docs/ClientIdentityCredentials.md b/clients/client/dotnet/docs/ClientIdentityCredentials.md index 7ab9224b4b2..5fb5412733b 100644 --- a/clients/client/dotnet/docs/ClientIdentityCredentials.md +++ b/clients/client/dotnet/docs/ClientIdentityCredentials.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Config** | **Object** | | [optional] **CreatedAt** | **DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **Identifiers** | **List<string>** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**Type** | [**ClientIdentityCredentialsType**](ClientIdentityCredentialsType.md) | | [optional] +**Type** | **string** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **_Version** | **long** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] diff --git a/clients/client/dotnet/docs/ClientIdentityCredentialsCode.md b/clients/client/dotnet/docs/ClientIdentityCredentialsCode.md index 6b9d40687d3..7ba482e3878 100644 --- a/clients/client/dotnet/docs/ClientIdentityCredentialsCode.md +++ b/clients/client/dotnet/docs/ClientIdentityCredentialsCode.md @@ -5,7 +5,7 @@ CredentialsCode represents a one time login/registration code Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AddressType** | **string** | | [optional] +**AddressType** | **string** | The type of the address for this code | [optional] **UsedAt** | **DateTime?** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientInternalProvisionMockSubscription.md b/clients/client/dotnet/docs/ClientInternalProvisionMockSubscription.md deleted file mode 100644 index b2c03985c3a..00000000000 --- a/clients/client/dotnet/docs/ClientInternalProvisionMockSubscription.md +++ /dev/null @@ -1,14 +0,0 @@ -# Ory.Client.Model.ClientInternalProvisionMockSubscription -Internal Provision Mock Subscription Request Body - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Currency** | **string** | Currency usd USD eur Euro | -**IdentityId** | **string** | Identity ID | -**Interval** | **string** | Billing Interval monthly Monthly yearly Yearly | -**Plan** | **string** | Plan ID | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/clients/client/dotnet/docs/ClientListMyWorkspacesResponse.md b/clients/client/dotnet/docs/ClientListMyWorkspacesResponse.md index 0d6f1f790b2..cd240c316fc 100644 --- a/clients/client/dotnet/docs/ClientListMyWorkspacesResponse.md +++ b/clients/client/dotnet/docs/ClientListMyWorkspacesResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **HasNextPage** | **bool** | | **NextPageToken** | **string** | | -**Workspaces** | [**List<ClientWorkspace>**](ClientWorkspace.md) | | +**Workspaces** | [**List<ClientWorkspaceMeta>**](ClientWorkspaceMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientListWorkspaceProjectsResponse.md b/clients/client/dotnet/docs/ClientListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..85fddfac8f9 --- /dev/null +++ b/clients/client/dotnet/docs/ClientListWorkspaceProjectsResponse.md @@ -0,0 +1,12 @@ +# Ory.Client.Model.ClientListWorkspaceProjectsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasNextPage** | **bool** | | +**NextPage** | **string** | | +**Projects** | [**List<ClientProjectMetadata>**](ClientProjectMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientLoginFlow.md b/clients/client/dotnet/docs/ClientLoginFlow.md index 1dd88ed28a8..df0d8f3eafd 100644 --- a/clients/client/dotnet/docs/ClientLoginFlow.md +++ b/clients/client/dotnet/docs/ClientLoginFlow.md @@ -5,7 +5,7 @@ This object represents a login flow. A login flow is initiated at the \"Initiate Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | [**ClientIdentityCredentialsType**](ClientIdentityCredentialsType.md) | | [optional] +**Active** | **string** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **CreatedAt** | **DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **ExpiresAt** | **DateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **Id** | **string** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> | @@ -19,6 +19,7 @@ Name | Type | Description | Notes **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **SessionTokenExchangeCode** | **string** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] **State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | +**TransientPayload** | **Object** | TransientPayload is used to pass data from the login to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**ClientUiContainer**](ClientUiContainer.md) | | **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/dotnet/docs/ClientMigrationOptions.md b/clients/client/dotnet/docs/ClientMigrationOptions.md new file mode 100644 index 00000000000..c09b129d426 --- /dev/null +++ b/clients/client/dotnet/docs/ClientMigrationOptions.md @@ -0,0 +1,11 @@ +# Ory.Client.Model.ClientMigrationOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Environment** | **string** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | +**ProjectSubscription** | **string** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientNormalizedProjectRevision.md b/clients/client/dotnet/docs/ClientNormalizedProjectRevision.md index 55f8bb22aa5..358a8d7ad30 100644 --- a/clients/client/dotnet/docs/ClientNormalizedProjectRevision.md +++ b/clients/client/dotnet/docs/ClientNormalizedProjectRevision.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | **DateTime** | The Project's Revision Creation Date | [optional] [readonly] **DisableAccountExperienceWelcomeScreen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**EnableAxV2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] **HydraOauth2AllowedTopLevelClaims** | **List<string>** | | [optional] **HydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **HydraOauth2ExcludeNotBeforeClaim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **HydraOauth2GrantJwtIatOptional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **HydraOauth2GrantJwtJtiOptional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **HydraOauth2GrantJwtMaxTtl** | **string** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to "720h"] +**HydraOauth2MirrorTopLevelClaims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **HydraOauth2PkceEnforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **HydraOauth2PkceEnforcedForPublicClients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **HydraOauth2RefreshTokenHook** | **string** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +72,7 @@ Name | Type | Description | Notes **KratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **string** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailSubject** | **string** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +158,7 @@ Name | Type | Description | Notes **KratosSelfserviceFlowsVerificationUse** | **string** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **KratosSelfserviceMethodsCodeConfigLifespan** | **string** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **KratosSelfserviceMethodsCodeEnabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**KratosSelfserviceMethodsCodeMfaEnabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **KratosSelfserviceMethodsCodePasswordlessEnabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigBaseUrl** | **string** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigLifespan** | **string** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/dotnet/docs/ClientNormalizedProjectRevisionThirdPartyProvider.md b/clients/client/dotnet/docs/ClientNormalizedProjectRevisionThirdPartyProvider.md index cc8bd8a77b7..e3bf6fab7db 100644 --- a/clients/client/dotnet/docs/ClientNormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/dotnet/docs/ClientNormalizedProjectRevisionThirdPartyProvider.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **AppleTeamId** | **string** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] **AuthUrl** | **string** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] **AzureTenant** | **string** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] +**ClaimsSource** | **string** | | [optional] **ClientId** | **string** | ClientID is the application's Client ID. | [optional] **ClientSecret** | **string** | | [optional] **CreatedAt** | **DateTime** | The Project's Revision Creation Date | [optional] [readonly] diff --git a/clients/client/dotnet/docs/ClientOAuth2Client.md b/clients/client/dotnet/docs/ClientOAuth2Client.md index b6d0b5ac057..78fbff286ed 100644 --- a/clients/client/dotnet/docs/ClientOAuth2Client.md +++ b/clients/client/dotnet/docs/ClientOAuth2Client.md @@ -46,6 +46,7 @@ Name | Type | Description | Notes **Scope** | **string** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **SectorIdentifierUri** | **string** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **SkipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**SkipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **SubjectType** | **string** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **TokenEndpointAuthMethod** | **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to "client_secret_basic"] **TokenEndpointAuthSigningAlg** | **string** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/client/dotnet/docs/ClientOAuth2ConsentSession.md b/clients/client/dotnet/docs/ClientOAuth2ConsentSession.md index b4a2145404f..e4512feef39 100644 --- a/clients/client/dotnet/docs/ClientOAuth2ConsentSession.md +++ b/clients/client/dotnet/docs/ClientOAuth2ConsentSession.md @@ -6,6 +6,7 @@ A completed OAuth 2.0 Consent Session. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConsentRequest** | [**ClientOAuth2ConsentRequest**](ClientOAuth2ConsentRequest.md) | | [optional] +**Context** | **Object** | | [optional] **ExpiresAt** | [**ClientOAuth2ConsentSessionExpiresAt**](ClientOAuth2ConsentSessionExpiresAt.md) | | [optional] **GrantAccessTokenAudience** | **List<string>** | | [optional] **GrantScope** | **List<string>** | | [optional] diff --git a/clients/client/dotnet/docs/ClientPermissionsOnWorkpaceResponse.md b/clients/client/dotnet/docs/ClientPermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..48cfc8710fa --- /dev/null +++ b/clients/client/dotnet/docs/ClientPermissionsOnWorkpaceResponse.md @@ -0,0 +1,11 @@ +# Ory.Client.Model.ClientPermissionsOnWorkpaceResponse +Get Permissions on Project Request Parameters + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | **Dictionary<string, bool>** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientPlanDetails.md b/clients/client/dotnet/docs/ClientPlanDetails.md index be03e0cf48c..28f85e5f274 100644 --- a/clients/client/dotnet/docs/ClientPlanDetails.md +++ b/clients/client/dotnet/docs/ClientPlanDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **BaseFeeYearly** | **long** | BaseFeeYearly is the yearly base fee for the plan. | **Custom** | **bool** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | **Description** | **string** | Description is the description of the plan. | -**Features** | [**Dictionary<string, ClientGenericUsage>**](ClientGenericUsage.md) | Features are the feature definitions included in the plan. | +**Features** | [**Dictionary<string, ClientGenericUsage>**](ClientGenericUsage.md) | | **Name** | **string** | Name is the name of the plan. | **_Version** | **long** | Version is the version of the plan. The combination of `name@version` must be unique. | diff --git a/clients/client/dotnet/docs/ClientProjectMember.md b/clients/client/dotnet/docs/ClientProjectMember.md new file mode 100644 index 00000000000..672c9519c6f --- /dev/null +++ b/clients/client/dotnet/docs/ClientProjectMember.md @@ -0,0 +1,13 @@ +# Ory.Client.Model.ClientProjectMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | | +**Id** | **string** | | +**Name** | **string** | | +**Role** | **string** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientProjectMetadata.md b/clients/client/dotnet/docs/ClientProjectMetadata.md index f76fa1e4dbd..d8d60a3937b 100644 --- a/clients/client/dotnet/docs/ClientProjectMetadata.md +++ b/clients/client/dotnet/docs/ClientProjectMetadata.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | **DateTime** | The Project's Creation Date | +**Environment** | **string** | The environment of the project. prod Production dev Development | **Hosts** | **List<string>** | | **Id** | **string** | The project's ID. | [readonly] **Name** | **string** | The project's name if set | diff --git a/clients/client/dotnet/docs/ClientQuotaUsage.md b/clients/client/dotnet/docs/ClientQuotaUsage.md index 7155aaff12a..327ebdeb2b3 100644 --- a/clients/client/dotnet/docs/ClientQuotaUsage.md +++ b/clients/client/dotnet/docs/ClientQuotaUsage.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AdditionalPrice** | **long** | The additional price per unit in cents. | **CanUseMore** | **bool** | | -**Feature** | **string** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | +**Feature** | **string** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | **FeatureAvailable** | **bool** | | **Included** | **long** | | **Used** | **long** | | diff --git a/clients/client/dotnet/docs/ClientRecoveryFlow.md b/clients/client/dotnet/docs/ClientRecoveryFlow.md index ce12b05e861..0582cfc7091 100644 --- a/clients/client/dotnet/docs/ClientRecoveryFlow.md +++ b/clients/client/dotnet/docs/ClientRecoveryFlow.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | +**TransientPayload** | **Object** | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**ClientUiContainer**](ClientUiContainer.md) | | diff --git a/clients/client/dotnet/docs/ClientRegistrationFlow.md b/clients/client/dotnet/docs/ClientRegistrationFlow.md index 9031d354cd3..1768b3281c9 100644 --- a/clients/client/dotnet/docs/ClientRegistrationFlow.md +++ b/clients/client/dotnet/docs/ClientRegistrationFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | [**ClientIdentityCredentialsType**](ClientIdentityCredentialsType.md) | | [optional] +**Active** | **string** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **ExpiresAt** | **DateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **Id** | **string** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> | **IssuedAt** | **DateTime** | IssuedAt is the time (UTC) when the flow occurred. | diff --git a/clients/client/dotnet/docs/ClientSettingsFlow.md b/clients/client/dotnet/docs/ClientSettingsFlow.md index acdace6ec54..66e01165add 100644 --- a/clients/client/dotnet/docs/ClientSettingsFlow.md +++ b/clients/client/dotnet/docs/ClientSettingsFlow.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **State** | **Object** | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | +**TransientPayload** | **Object** | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**ClientUiContainer**](ClientUiContainer.md) | | diff --git a/clients/client/dotnet/docs/ClientSubscription.md b/clients/client/dotnet/docs/ClientSubscription.md index 4d305806c33..48ab9d1db6c 100644 --- a/clients/client/dotnet/docs/ClientSubscription.md +++ b/clients/client/dotnet/docs/ClientSubscription.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Currency** | **string** | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | [readonly] **CurrentInterval** | **string** | The currently active interval of the subscription monthly Monthly yearly Yearly | [readonly] **CurrentPlan** | **string** | The currently active plan of the subscription | [readonly] +**CurrentPlanDetails** | [**ClientPlanDetails**](ClientPlanDetails.md) | | [optional] **CustomerId** | **string** | The ID of the stripe customer | [readonly] **Id** | **string** | The ID of the subscription | [readonly] **IntervalChangesTo** | **string** | | @@ -16,6 +17,7 @@ Name | Type | Description | Notes **PlanChangesAt** | **DateTime** | | [optional] **PlanChangesTo** | **string** | | **Status** | **string** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | +**StripeCheckoutExpiresAt** | **DateTime** | | [optional] **UpdatedAt** | **DateTime** | | [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateIdentityBody.md b/clients/client/dotnet/docs/ClientUpdateIdentityBody.md index a69d5af14c3..78982bc821c 100644 --- a/clients/client/dotnet/docs/ClientUpdateIdentityBody.md +++ b/clients/client/dotnet/docs/ClientUpdateIdentityBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **MetadataAdmin** | **Object** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] **MetadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**State** | [**ClientIdentityState**](ClientIdentityState.md) | | +**State** | **string** | State is the identity's state. active StateActive inactive StateInactive | **Traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateLoginFlowBody.md b/clients/client/dotnet/docs/ClientUpdateLoginFlowBody.md index 175bb1e2485..c2538ef9b2e 100644 --- a/clients/client/dotnet/docs/ClientUpdateLoginFlowBody.md +++ b/clients/client/dotnet/docs/ClientUpdateLoginFlowBody.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **Password** | **string** | The user's password. | **PasswordIdentifier** | **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **IdToken** | **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **IdTokenNonce** | **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **Provider** | **string** | The provider to register with | diff --git a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithCodeMethod.md b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithCodeMethod.md index 346df823656..f75bbfa76ed 100644 --- a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithCodeMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithCodeMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Identifier** | **string** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] **Method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **Resend** | **string** | Resend is set when the user wants to resend the code | [optional] +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithOidcMethod.md b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithOidcMethod.md index 49ee80fb8f9..8ad703d9780 100644 --- a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithOidcMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithOidcMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **Method** | **string** | Method to use This field must be set to `oidc` when using the oidc method. | **Provider** | **string** | The provider to register with | **Traits** | **Object** | The identity traits. This is a placeholder for the registration flow. | [optional] +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **UpstreamParameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithPasswordMethod.md b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithPasswordMethod.md index 68d65947c68..0594a5097b2 100644 --- a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithPasswordMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Method** | **string** | Method should be set to \"password\" when logging in using the identifier and password strategy. | **Password** | **string** | The user's password. | **PasswordIdentifier** | **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithTotpMethod.md b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithTotpMethod.md index 99f05dd7c7f..076304c5062 100644 --- a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithTotpMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithTotpMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Method** | **string** | Method should be set to \"totp\" when logging in using the TOTP strategy. | **TotpCode** | **string** | The TOTP code. | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithWebAuthnMethod.md b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithWebAuthnMethod.md index 0e34a71d53a..c40d3543803 100644 --- a/clients/client/dotnet/docs/ClientUpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateLoginFlowWithWebAuthnMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Identifier** | **string** | Identifier is the email or username of the user trying to log in. | **Method** | **string** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **WebauthnLogin** | **string** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateRecoveryFlowBody.md b/clients/client/dotnet/docs/ClientUpdateRecoveryFlowBody.md index a6ea5582429..e514ad98c90 100644 --- a/clients/client/dotnet/docs/ClientUpdateRecoveryFlowBody.md +++ b/clients/client/dotnet/docs/ClientUpdateRecoveryFlowBody.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **Method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **Code** | **string** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithCodeMethod.md b/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithCodeMethod.md index 5fb846f40f5..618eb937f3c 100644 --- a/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithCodeMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **Method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithLinkMethod.md b/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithLinkMethod.md index 16e1add3811..bde452aa286 100644 --- a/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateRecoveryFlowWithLinkMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **Method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowBody.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowBody.md index 952c05f38a2..5ce26edf540 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowBody.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowBody.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] **Method** | **string** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | **Password** | **string** | Password is the updated password | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **Traits** | **Object** | The identity's traits in: body | **Flow** | **string** | Flow ID is the flow's ID. in: query | [optional] **Link** | **string** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithLookupMethod.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithLookupMethod.md index e525e2edd0f..10f3c9ab974 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithLookupMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **LookupSecretRegenerate** | **bool** | If set to true will regenerate the lookup secrets | [optional] **LookupSecretReveal** | **bool** | If set to true will reveal the lookup secrets | [optional] **Method** | **string** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithOidcMethod.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithOidcMethod.md index 2f379533208..2060886e00d 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithOidcMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Link** | **string** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **Method** | **string** | Method Should be set to profile when trying to update a profile. | **Traits** | **Object** | The identity's traits in: body | [optional] +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **Unlink** | **string** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] **UpstreamParameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithPasswordMethod.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithPasswordMethod.md index 28682a7cfdd..18b8f127461 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithPasswordMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] **Method** | **string** | Method Should be set to password when trying to update a password. | **Password** | **string** | Password is the updated password | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithProfileMethod.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithProfileMethod.md index 0ad05ff872d..ebfacc51d94 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithProfileMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] **Method** | **string** | Method Should be set to profile when trying to update a profile. | **Traits** | **Object** | Traits The identity's traits. | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithTotpMethod.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithTotpMethod.md index 3cc5e585b11..62ee472be17 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithTotpMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Method** | **string** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | **TotpCode** | **string** | ValidationTOTP must contain a valid TOTP based on the | [optional] **TotpUnlink** | **bool** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithWebAuthnMethod.md index a1dcbc0a8e9..1dfa82bd50a 100644 --- a/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateSettingsFlowWithWebAuthnMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CsrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] **Method** | **string** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **WebauthnRegister** | **string** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **WebauthnRegisterDisplayname** | **string** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] **WebauthnRemove** | **string** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] diff --git a/clients/client/dotnet/docs/ClientUpdateSubscriptionBody.md b/clients/client/dotnet/docs/ClientUpdateSubscriptionBody.md index 89a06fa6bb4..383b101d75e 100644 --- a/clients/client/dotnet/docs/ClientUpdateSubscriptionBody.md +++ b/clients/client/dotnet/docs/ClientUpdateSubscriptionBody.md @@ -1,5 +1,4 @@ # Ory.Client.Model.ClientUpdateSubscriptionBody -Update Subscription Request Body ## Properties diff --git a/clients/client/dotnet/docs/ClientUpdateVerificationFlowBody.md b/clients/client/dotnet/docs/ClientUpdateVerificationFlowBody.md index d2e2fcf5381..9ab69f02e49 100644 --- a/clients/client/dotnet/docs/ClientUpdateVerificationFlowBody.md +++ b/clients/client/dotnet/docs/ClientUpdateVerificationFlowBody.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **Method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] **Code** | **string** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithCodeMethod.md b/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithCodeMethod.md index 07eff27cd0f..57e7fbe6c83 100644 --- a/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithCodeMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **Method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithLinkMethod.md b/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithLinkMethod.md index 99f97ae2094..e3e1a32b553 100644 --- a/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/dotnet/docs/ClientUpdateVerificationFlowWithLinkMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **Method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientIdentityCredentialsType.md b/clients/client/dotnet/docs/ClientUpdateWorkspacePayload.md similarity index 72% rename from clients/client/dotnet/docs/ClientIdentityCredentialsType.md rename to clients/client/dotnet/docs/ClientUpdateWorkspacePayload.md index cc3a20e4a56..08893b4a596 100644 --- a/clients/client/dotnet/docs/ClientIdentityCredentialsType.md +++ b/clients/client/dotnet/docs/ClientUpdateWorkspacePayload.md @@ -1,10 +1,10 @@ -# Ory.Client.Model.ClientIdentityCredentialsType -and so on. +# Ory.Client.Model.ClientUpdateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the workspace. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/dotnet/docs/ClientVerificationFlow.md b/clients/client/dotnet/docs/ClientVerificationFlow.md index 9f2632d689b..35073bedde2 100644 --- a/clients/client/dotnet/docs/ClientVerificationFlow.md +++ b/clients/client/dotnet/docs/ClientVerificationFlow.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | +**TransientPayload** | **Object** | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**ClientUiContainer**](ClientUiContainer.md) | | diff --git a/clients/client/dotnet/docs/ClientWorkspaceMeta.md b/clients/client/dotnet/docs/ClientWorkspaceMeta.md new file mode 100644 index 00000000000..f7cfa27ba32 --- /dev/null +++ b/clients/client/dotnet/docs/ClientWorkspaceMeta.md @@ -0,0 +1,15 @@ +# Ory.Client.Model.ClientWorkspaceMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **DateTime** | | +**Id** | **string** | | +**Name** | **string** | | +**SubscriptionId** | **string** | | [optional] +**SubscriptionPlan** | **string** | | [optional] +**UpdatedAt** | **DateTime** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/FrontendApi.md b/clients/client/dotnet/docs/FrontendApi.md index db9b708afea..499055de1d2 100644 --- a/clients/client/dotnet/docs/FrontendApi.md +++ b/clients/client/dotnet/docs/FrontendApi.md @@ -38,7 +38,7 @@ Method | HTTP request | Description # **CreateBrowserLoginFlow** -> ClientLoginFlow CreateBrowserLoginFlow (bool? refresh = null, string aal = null, string returnTo = null, string cookie = null, string loginChallenge = null, string organization = null) +> ClientLoginFlow CreateBrowserLoginFlow (bool? refresh = null, string aal = null, string returnTo = null, string cookie = null, string loginChallenge = null, string organization = null, string via = null) Create Login Flow for Browsers @@ -67,11 +67,12 @@ namespace Example var cookie = "cookie_example"; // string | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) var loginChallenge = "loginChallenge_example"; // string | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) var organization = "organization_example"; // string | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + var via = "via_example"; // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) try { // Create Login Flow for Browsers - ClientLoginFlow result = apiInstance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); + ClientLoginFlow result = apiInstance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via); Debug.WriteLine(result); } catch (ApiException e) @@ -95,6 +96,7 @@ Name | Type | Description | Notes **cookie** | **string**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] **loginChallenge** | **string**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] **organization** | **string**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] + **via** | **string**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type @@ -502,7 +504,7 @@ No authorization required # **CreateNativeLoginFlow** -> ClientLoginFlow CreateNativeLoginFlow (bool? refresh = null, string aal = null, string xSessionToken = null, bool? returnSessionTokenExchangeCode = null, string returnTo = null) +> ClientLoginFlow CreateNativeLoginFlow (bool? refresh = null, string aal = null, string xSessionToken = null, bool? returnSessionTokenExchangeCode = null, string returnTo = null, string via = null) Create Login Flow for Native Apps @@ -530,11 +532,12 @@ namespace Example var xSessionToken = "xSessionToken_example"; // string | The Session Token of the Identity performing the settings flow. (optional) var returnSessionTokenExchangeCode = true; // bool? | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) var returnTo = "returnTo_example"; // string | The URL to return the browser to after the flow was completed. (optional) + var via = "via_example"; // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) try { // Create Login Flow for Native Apps - ClientLoginFlow result = apiInstance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + ClientLoginFlow result = apiInstance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); Debug.WriteLine(result); } catch (ApiException e) @@ -557,6 +560,7 @@ Name | Type | Description | Notes **xSessionToken** | **string**| The Session Token of the Identity performing the settings flow. | [optional] **returnSessionTokenExchangeCode** | **bool?**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] **returnTo** | **string**| The URL to return the browser to after the flow was completed. | [optional] + **via** | **string**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type diff --git a/clients/client/dotnet/docs/IdentityApi.md b/clients/client/dotnet/docs/IdentityApi.md index dab5fe35ec7..fa359d73402 100644 --- a/clients/client/dotnet/docs/IdentityApi.md +++ b/clients/client/dotnet/docs/IdentityApi.md @@ -257,7 +257,7 @@ Name | Type | Description | Notes # **CreateRecoveryLinkForIdentity** -> ClientRecoveryLinkForIdentity CreateRecoveryLinkForIdentity (ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = null) +> ClientRecoveryLinkForIdentity CreateRecoveryLinkForIdentity (string returnTo = null, ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = null) Create a Recovery Link @@ -283,12 +283,13 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new IdentityApi(config); + var returnTo = "returnTo_example"; // string | (optional) var clientCreateRecoveryLinkForIdentityBody = new ClientCreateRecoveryLinkForIdentityBody(); // ClientCreateRecoveryLinkForIdentityBody | (optional) try { // Create a Recovery Link - ClientRecoveryLinkForIdentity result = apiInstance.CreateRecoveryLinkForIdentity(clientCreateRecoveryLinkForIdentityBody); + ClientRecoveryLinkForIdentity result = apiInstance.CreateRecoveryLinkForIdentity(returnTo, clientCreateRecoveryLinkForIdentityBody); Debug.WriteLine(result); } catch (ApiException e) @@ -306,6 +307,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **returnTo** | **string**| | [optional] **clientCreateRecoveryLinkForIdentityBody** | [**ClientCreateRecoveryLinkForIdentityBody**](ClientCreateRecoveryLinkForIdentityBody.md)| | [optional] ### Return type @@ -436,7 +438,7 @@ namespace Example var apiInstance = new IdentityApi(config); var id = "id_example"; // string | ID is the identity's ID. - var type = "totp"; // string | Type is the credential's Type. One of totp, webauthn, lookup + var type = "password"; // string | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 try { @@ -459,7 +461,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| ID is the identity's ID. | - **type** | **string**| Type is the credential's Type. One of totp, webauthn, lookup | + **type** | **string**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -945,7 +947,7 @@ Name | Type | Description | Notes # **ListIdentities** -> List<ClientIdentity> ListIdentities (long? perPage = null, long? page = null, long? pageSize = null, string pageToken = null, string consistency = null, List idsFilter = null, string credentialsIdentifier = null, string previewCredentialsIdentifierSimilar = null) +> List<ClientIdentity> ListIdentities (long? perPage = null, long? page = null, long? pageSize = null, string pageToken = null, string consistency = null, List ids = null, string credentialsIdentifier = null, string previewCredentialsIdentifierSimilar = null, List includeCredential = null) List Identities @@ -976,14 +978,15 @@ namespace Example var pageSize = 250L; // long? | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250) var pageToken = "\"1\""; // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1") var consistency = ""; // string | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - var idsFilter = new List(); // List | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + var ids = new List(); // List | List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) var credentialsIdentifier = "credentialsIdentifier_example"; // string | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) var previewCredentialsIdentifierSimilar = "previewCredentialsIdentifierSimilar_example"; // string | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + var includeCredential = new List(); // List | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) try { // List Identities - List result = apiInstance.ListIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + List result = apiInstance.ListIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); Debug.WriteLine(result); } catch (ApiException e) @@ -1006,9 +1009,10 @@ Name | Type | Description | Notes **pageSize** | **long?**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] **pageToken** | **string**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"] **consistency** | **string**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] - **idsFilter** | [**List<string>**](string.md)| IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] + **ids** | [**List<string>**](string.md)| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] **credentialsIdentifier** | **string**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] **previewCredentialsIdentifierSimilar** | **string**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] + **includeCredential** | [**List<string>**](string.md)| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] ### Return type diff --git a/clients/client/dotnet/docs/PermissionApi.md b/clients/client/dotnet/docs/PermissionApi.md index 18dfce272e2..e5c8dba1d52 100644 --- a/clients/client/dotnet/docs/PermissionApi.md +++ b/clients/client/dotnet/docs/PermissionApi.md @@ -381,7 +381,7 @@ namespace Example config.AccessToken = "YOUR_BEARER_TOKEN"; var apiInstance = new PermissionApi(config); - var maxDepth = 789L; // long? | nolint:deadcode,unused (optional) + var maxDepth = 789L; // long? | (optional) var clientPostCheckPermissionOrErrorBody = new ClientPostCheckPermissionOrErrorBody(); // ClientPostCheckPermissionOrErrorBody | (optional) try @@ -405,7 +405,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **maxDepth** | **long?**| nolint:deadcode,unused | [optional] + **maxDepth** | **long?**| | [optional] **clientPostCheckPermissionOrErrorBody** | [**ClientPostCheckPermissionOrErrorBody**](ClientPostCheckPermissionOrErrorBody.md)| | [optional] ### Return type diff --git a/clients/client/dotnet/docs/ProjectApi.md b/clients/client/dotnet/docs/ProjectApi.md index e6013c54c92..36874cd5db0 100644 --- a/clients/client/dotnet/docs/ProjectApi.md +++ b/clients/client/dotnet/docs/ProjectApi.md @@ -642,7 +642,7 @@ Name | Type | Description | Notes # **GetProjectMembers** -> List<ClientCloudAccount> GetProjectMembers (string project) +> List<ClientProjectMember> GetProjectMembers (string project) Get all members associated with this project @@ -673,7 +673,7 @@ namespace Example try { // Get all members associated with this project - List result = apiInstance.GetProjectMembers(project); + List result = apiInstance.GetProjectMembers(project); Debug.WriteLine(result); } catch (ApiException e) @@ -695,7 +695,7 @@ Name | Type | Description | Notes ### Return type -[**List<ClientCloudAccount>**](ClientCloudAccount.md) +[**List<ClientProjectMember>**](ClientProjectMember.md) ### Authorization @@ -747,7 +747,7 @@ namespace Example var apiInstance = new ProjectApi(config); var projectId = "projectId_example"; // string | Project ID var eventType = "eventType_example"; // string | The event type to query for - var resolution = "resolution_example"; // string | The resolution of the buckets The minimum resolution is 1 hour. + var resolution = "resolution_example"; // string | The resolution of the buckets The minimum resolution is 1 minute. var from = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime | The start RFC3339 date of the time window var to = DateTime.Parse("2013-10-20T19:20:30+01:00"); // DateTime | The end RFC3339 date of the time window @@ -773,7 +773,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectId** | **string**| Project ID | **eventType** | **string**| The event type to query for | - **resolution** | **string**| The resolution of the buckets The minimum resolution is 1 hour. | + **resolution** | **string**| The resolution of the buckets The minimum resolution is 1 minute. | **from** | **DateTime**| The start RFC3339 date of the time window | **to** | **DateTime**| The end RFC3339 date of the time window | diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/CourierApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/CourierApiTests.cs index a6712ecc2b8..2e1776b2273 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/CourierApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/CourierApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/EventsApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/EventsApiTests.cs index d0835f6f3cf..1ababef5e4a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/EventsApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/EventsApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/FrontendApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/FrontendApiTests.cs index 8c5eb474609..095598ad675 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/FrontendApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/FrontendApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -68,7 +68,8 @@ public void CreateBrowserLoginFlowTest() //string cookie = null; //string loginChallenge = null; //string organization = null; - //var response = instance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); + //string via = null; + //var response = instance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via); //Assert.IsType(response); } @@ -149,7 +150,8 @@ public void CreateNativeLoginFlowTest() //string xSessionToken = null; //bool? returnSessionTokenExchangeCode = null; //string returnTo = null; - //var response = instance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + //string via = null; + //var response = instance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); //Assert.IsType(response); } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/IdentityApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/IdentityApiTests.cs index 55e1390fa3f..73b46b3c1a3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/IdentityApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/IdentityApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,8 +98,9 @@ public void CreateRecoveryCodeForIdentityTest() public void CreateRecoveryLinkForIdentityTest() { // TODO uncomment below to test the method and replace null with proper value + //string returnTo = null; //ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = null; - //var response = instance.CreateRecoveryLinkForIdentity(clientCreateRecoveryLinkForIdentityBody); + //var response = instance.CreateRecoveryLinkForIdentity(returnTo, clientCreateRecoveryLinkForIdentityBody); //Assert.IsType(response); } @@ -210,10 +211,11 @@ public void ListIdentitiesTest() //long? pageSize = null; //string pageToken = null; //string consistency = null; - //List idsFilter = null; + //List ids = null; //string credentialsIdentifier = null; //string previewCredentialsIdentifierSimilar = null; - //var response = instance.ListIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + //List includeCredential = null; + //var response = instance.ListIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); //Assert.IsType>(response); } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/JwkApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/JwkApiTests.cs index 2c16b0652a9..b9c806f2df7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/JwkApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/JwkApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/MetadataApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/MetadataApiTests.cs index c31c39f1593..b1b84737e61 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/MetadataApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/MetadataApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/OAuth2ApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/OAuth2ApiTests.cs index 4fe73c454fa..c9bd93a0a99 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/OAuth2ApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/OAuth2ApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/OidcApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/OidcApiTests.cs index 0b7f374cfef..92eea756827 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/OidcApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/OidcApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/PermissionApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/PermissionApiTests.cs index 194fd4d22b3..0f80c26b04f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/PermissionApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/PermissionApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/ProjectApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/ProjectApiTests.cs index c716e3c4df9..d740d8d5586 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/ProjectApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/ProjectApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -162,7 +162,7 @@ public void GetProjectMembersTest() // TODO uncomment below to test the method and replace null with proper value //string project = null; //var response = instance.GetProjectMembers(project); - //Assert.IsType>(response); + //Assert.IsType>(response); } /// diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/RelationshipApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/RelationshipApiTests.cs index 1a4663598ef..91f3a335b45 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/RelationshipApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/RelationshipApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Api/WellknownApiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Api/WellknownApiTests.cs index d35f3ff6b23..c5efa3c54d1 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Api/WellknownApiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Api/WellknownApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestSessionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestSessionTests.cs index bddc3cdb927..6996dd13292 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestSessionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestSessionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestTests.cs index 4f10d160192..19d7d6d5d2a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2ConsentRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -57,6 +57,14 @@ public void ClientAcceptOAuth2ConsentRequestInstanceTest() } + /// + /// Test the property 'Context' + /// + [Fact] + public void ContextTest() + { + // TODO unit test for the property 'Context' + } /// /// Test the property 'GrantAccessTokenAudience' /// diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2LoginRequestTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2LoginRequestTests.cs index 05da6ae0738..7ce48240431 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2LoginRequestTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAcceptOAuth2LoginRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientActiveProjectInConsoleTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientActiveProjectInConsoleTests.cs index b6ef6da9301..a8f6a1d9518 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientActiveProjectInConsoleTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientActiveProjectInConsoleTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeFilterTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeFilterTests.cs index bf23e0ca225..2b0f8a991a2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeFilterTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeFilterTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeTests.cs index 5cae754d98e..51370ed1321 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributesCountDatapointTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributesCountDatapointTests.cs index e5da8e064a6..22d7e3732d7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributesCountDatapointTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAttributesCountDatapointTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAuthenticatorAssuranceLevelTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAuthenticatorAssuranceLevelTests.cs index e169e4174a1..3bc412cf53a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAuthenticatorAssuranceLevelTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientAuthenticatorAssuranceLevelTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientBatchPatchIdentitiesResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientBatchPatchIdentitiesResponseTests.cs index 3ad0e56d6ef..b3904fff797 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientBatchPatchIdentitiesResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientBatchPatchIdentitiesResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckOplSyntaxResultTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckOplSyntaxResultTests.cs index 07e21f8bd17..02d4a2836ce 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckOplSyntaxResultTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckOplSyntaxResultTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckPermissionResultTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckPermissionResultTests.cs index 87300b69c16..0936b5c0ba9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckPermissionResultTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCheckPermissionResultTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCloudAccountTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCloudAccountTests.cs index 7ab1833426b..fcaf6953a65 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCloudAccountTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCloudAccountTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientConsistencyRequestParametersTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientConsistencyRequestParametersTests.cs index ff7dcd2c3ca..ae2eaeea177 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientConsistencyRequestParametersTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientConsistencyRequestParametersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiFlowTests.cs index 4bd6c45a04c..fcb01e0b201 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiTests.cs index b381e491208..b000d79d2e8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithRecoveryUiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSetOrySessionTokenTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSetOrySessionTokenTests.cs index 7507098c34b..e61e72026b7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSetOrySessionTokenTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSetOrySessionTokenTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiFlowTests.cs index 84e8eb9f258..ef6f57fa396 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiTests.cs index 4ffd7b1b48e..68f52283f1d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithSettingsUiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithTests.cs index bec75d5f977..bf7f04d7982 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiFlowTests.cs index a032c1c6e0b..19c44ea9234 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiTests.cs index a71beaac9f9..7537849d20c 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientContinueWithVerificationUiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageStatusTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageStatusTests.cs index ef23cbc2e00..4a2874ca1e9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageStatusTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageStatusTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageTypeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageTypeTests.cs index bd51edbe809..81c9d754ff3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageTypeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCourierMessageTypeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateCustomDomainBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateCustomDomainBodyTests.cs index 8ab7c6b8581..95c5847dd32 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateCustomDomainBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateCustomDomainBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateEventStreamBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateEventStreamBodyTests.cs index c617d0e92d2..263a76c3eaf 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateEventStreamBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateEventStreamBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateIdentityBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateIdentityBodyTests.cs index 5d41ba62729..91efbd8343d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateIdentityBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateInviteResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateInviteResponseTests.cs index b0293c5f76b..dea30b5c6b5 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateInviteResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateInviteResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateJsonWebKeySetTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateJsonWebKeySetTests.cs index 0073ee8fdbf..d17104ae453 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateJsonWebKeySetTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateJsonWebKeySetTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBodyTests.cs index 60d38f149b3..5eaf61c506f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -57,6 +57,14 @@ public void ClientCreateProjectBodyInstanceTest() } + /// + /// Test the property 'Environment' + /// + [Fact] + public void EnvironmentTest() + { + // TODO unit test for the property 'Environment' + } /// /// Test the property 'Name' /// diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBrandingTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBrandingTests.cs index 188cc679a7b..06f5a04f3b8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBrandingTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectBrandingTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectMemberInviteBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectMemberInviteBodyTests.cs index 684f5ef1079..5a1fa8b3630 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectMemberInviteBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectMemberInviteBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectNormalizedPayloadTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectNormalizedPayloadTests.cs index 6098c610a38..173b570f4c6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectNormalizedPayloadTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateProjectNormalizedPayloadTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -74,6 +74,22 @@ public void DisableAccountExperienceWelcomeScreenTest() // TODO unit test for the property 'DisableAccountExperienceWelcomeScreen' } /// + /// Test the property 'EnableAxV2' + /// + [Fact] + public void EnableAxV2Test() + { + // TODO unit test for the property 'EnableAxV2' + } + /// + /// Test the property 'Environment' + /// + [Fact] + public void EnvironmentTest() + { + // TODO unit test for the property 'Environment' + } + /// /// Test the property 'HydraOauth2AllowedTopLevelClaims' /// [Fact] @@ -122,6 +138,14 @@ public void HydraOauth2GrantJwtMaxTtlTest() // TODO unit test for the property 'HydraOauth2GrantJwtMaxTtl' } /// + /// Test the property 'HydraOauth2MirrorTopLevelClaims' + /// + [Fact] + public void HydraOauth2MirrorTopLevelClaimsTest() + { + // TODO unit test for the property 'HydraOauth2MirrorTopLevelClaims' + } + /// /// Test the property 'HydraOauth2PkceEnforced' /// [Fact] @@ -586,6 +610,14 @@ public void KratosCourierTemplatesLoginCodeValidEmailSubjectTest() // TODO unit test for the property 'KratosCourierTemplatesLoginCodeValidEmailSubject' } /// + /// Test the property 'KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' + /// + [Fact] + public void KratosCourierTemplatesLoginCodeValidSmsBodyPlaintextTest() + { + // TODO unit test for the property 'KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' + } + /// /// Test the property 'KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' /// [Fact] @@ -1266,6 +1298,14 @@ public void KratosSelfserviceMethodsCodeEnabledTest() // TODO unit test for the property 'KratosSelfserviceMethodsCodeEnabled' } /// + /// Test the property 'KratosSelfserviceMethodsCodeMfaEnabled' + /// + [Fact] + public void KratosSelfserviceMethodsCodeMfaEnabledTest() + { + // TODO unit test for the property 'KratosSelfserviceMethodsCodeMfaEnabled' + } + /// /// Test the property 'KratosSelfserviceMethodsCodePasswordlessEnabled' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryCodeForIdentityBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryCodeForIdentityBodyTests.cs index b2a9dd6b56d..9bbc60901f7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryCodeForIdentityBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryCodeForIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryLinkForIdentityBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryLinkForIdentityBodyTests.cs index fd7ca1c3b25..ddfaf1755f2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryLinkForIdentityBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRecoveryLinkForIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRelationshipBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRelationshipBodyTests.cs index b4dd37ea95a..6637d74f30e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRelationshipBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateRelationshipBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionBodyTests.cs index c395572967d..63301be77d7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -97,14 +97,6 @@ public void ReturnToTest() { // TODO unit test for the property 'ReturnTo' } - /// - /// Test the property 'Workspace' - /// - [Fact] - public void WorkspaceTest() - { - // TODO unit test for the property 'Workspace' - } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalProvisionMockSubscriptionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionCommonTests.cs similarity index 66% rename from clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalProvisionMockSubscriptionTests.cs rename to clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionCommonTests.cs index e89dc62327f..3e29b3a70af 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalProvisionMockSubscriptionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateSubscriptionCommonTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Client.Test.Model { /// - /// Class for testing ClientInternalProvisionMockSubscription + /// Class for testing ClientCreateSubscriptionCommon /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ClientInternalProvisionMockSubscriptionTests : IDisposable + public class ClientCreateSubscriptionCommonTests : IDisposable { - // TODO uncomment below to declare an instance variable for ClientInternalProvisionMockSubscription - //private ClientInternalProvisionMockSubscription instance; + // TODO uncomment below to declare an instance variable for ClientCreateSubscriptionCommon + //private ClientCreateSubscriptionCommon instance; - public ClientInternalProvisionMockSubscriptionTests() + public ClientCreateSubscriptionCommonTests() { - // TODO uncomment below to create an instance of ClientInternalProvisionMockSubscription - //instance = new ClientInternalProvisionMockSubscription(); + // TODO uncomment below to create an instance of ClientCreateSubscriptionCommon + //instance = new ClientCreateSubscriptionCommon(); } public void Dispose() @@ -47,13 +47,13 @@ public void Dispose() } /// - /// Test an instance of ClientInternalProvisionMockSubscription + /// Test an instance of ClientCreateSubscriptionCommon /// [Fact] - public void ClientInternalProvisionMockSubscriptionInstanceTest() + public void ClientCreateSubscriptionCommonInstanceTest() { - // TODO uncomment below to test "IsType" ClientInternalProvisionMockSubscription - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" ClientCreateSubscriptionCommon + //Assert.IsType(instance); } @@ -66,14 +66,6 @@ public void CurrencyTest() // TODO unit test for the property 'Currency' } /// - /// Test the property 'IdentityId' - /// - [Fact] - public void IdentityIdTest() - { - // TODO unit test for the property 'IdentityId' - } - /// /// Test the property 'Interval' /// [Fact] @@ -89,6 +81,14 @@ public void PlanTest() { // TODO unit test for the property 'Plan' } + /// + /// Test the property 'ReturnTo' + /// + [Fact] + public void ReturnToTest() + { + // TODO unit test for the property 'ReturnTo' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateVerifiableCredentialRequestBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateVerifiableCredentialRequestBodyTests.cs index da643fedc46..e4e72448837 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateVerifiableCredentialRequestBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateVerifiableCredentialRequestBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceMemberInviteBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceMemberInviteBodyTests.cs index 4e91e8ac934..c53197a249c 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceMemberInviteBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceMemberInviteBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientStripeCustomerTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspacePayloadTests.cs similarity index 60% rename from clients/client/dotnet/src/Ory.Client.Test/Model/ClientStripeCustomerTests.cs rename to clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspacePayloadTests.cs index f4dce62ac3e..42f609b1d52 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientStripeCustomerTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspacePayloadTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Client.Test.Model { /// - /// Class for testing ClientStripeCustomer + /// Class for testing ClientCreateWorkspacePayload /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ClientStripeCustomerTests : IDisposable + public class ClientCreateWorkspacePayloadTests : IDisposable { - // TODO uncomment below to declare an instance variable for ClientStripeCustomer - //private ClientStripeCustomer instance; + // TODO uncomment below to declare an instance variable for ClientCreateWorkspacePayload + //private ClientCreateWorkspacePayload instance; - public ClientStripeCustomerTests() + public ClientCreateWorkspacePayloadTests() { - // TODO uncomment below to create an instance of ClientStripeCustomer - //instance = new ClientStripeCustomer(); + // TODO uncomment below to create an instance of ClientCreateWorkspacePayload + //instance = new ClientCreateWorkspacePayload(); } public void Dispose() @@ -47,23 +47,23 @@ public void Dispose() } /// - /// Test an instance of ClientStripeCustomer + /// Test an instance of ClientCreateWorkspacePayload /// [Fact] - public void ClientStripeCustomerInstanceTest() + public void ClientCreateWorkspacePayloadInstanceTest() { - // TODO uncomment below to test "IsType" ClientStripeCustomer - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" ClientCreateWorkspacePayload + //Assert.IsType(instance); } /// - /// Test the property 'Id' + /// Test the property 'Name' /// [Fact] - public void IdTest() + public void NameTest() { - // TODO unit test for the property 'Id' + // TODO unit test for the property 'Name' } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceSubscriptionBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceSubscriptionBodyTests.cs new file mode 100644 index 00000000000..7aa3d1bbd44 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCreateWorkspaceSubscriptionBodyTests.cs @@ -0,0 +1,95 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Client.Api; +using Ory.Client.Model; +using Ory.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Client.Test.Model +{ + /// + /// Class for testing ClientCreateWorkspaceSubscriptionBody + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ClientCreateWorkspaceSubscriptionBodyTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ClientCreateWorkspaceSubscriptionBody + //private ClientCreateWorkspaceSubscriptionBody instance; + + public ClientCreateWorkspaceSubscriptionBodyTests() + { + // TODO uncomment below to create an instance of ClientCreateWorkspaceSubscriptionBody + //instance = new ClientCreateWorkspaceSubscriptionBody(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ClientCreateWorkspaceSubscriptionBody + /// + [Fact] + public void ClientCreateWorkspaceSubscriptionBodyInstanceTest() + { + // TODO uncomment below to test "IsType" ClientCreateWorkspaceSubscriptionBody + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Currency' + /// + [Fact] + public void CurrencyTest() + { + // TODO unit test for the property 'Currency' + } + /// + /// Test the property 'Interval' + /// + [Fact] + public void IntervalTest() + { + // TODO unit test for the property 'Interval' + } + /// + /// Test the property 'Plan' + /// + [Fact] + public void PlanTest() + { + // TODO unit test for the property 'Plan' + } + /// + /// Test the property 'ReturnTo' + /// + [Fact] + public void ReturnToTest() + { + // TODO unit test for the property 'ReturnTo' + } + + } + +} diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCredentialSupportedDraft00Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCredentialSupportedDraft00Tests.cs index 5bf04a42d42..e2c9e0a2246 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCredentialSupportedDraft00Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCredentialSupportedDraft00Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCustomDomainTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCustomDomainTests.cs index bc2869ebc2b..8950dcfc055 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCustomDomainTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientCustomDomainTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientDeleteMySessionsCountTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientDeleteMySessionsCountTests.cs index 06129334c7e..2867ccc8766 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientDeleteMySessionsCountTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientDeleteMySessionsCountTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataBodyTests.cs index af3ab4f0bdf..df5cb8f6c0f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataTests.cs index e51cd319f38..38b136fcaec 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEmailTemplateDataTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs index cca1268f8f8..856fc112dd6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorBrowserLocationChangeRequiredTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorBrowserLocationChangeRequiredTests.cs index 12810885b71..8d338023f08 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorBrowserLocationChangeRequiredTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorBrowserLocationChangeRequiredTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorFlowReplacedTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorFlowReplacedTests.cs index 046c34f2925..f864151274e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorFlowReplacedTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorFlowReplacedTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorGenericTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorGenericTests.cs index 0707325bd84..04be93d8806 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorGenericTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorGenericTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorOAuth2Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorOAuth2Tests.cs index 9f45f84a907..ceac78e732b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorOAuth2Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientErrorOAuth2Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEventStreamTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEventStreamTests.cs index c93f08d4375..7bc7dc3973a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEventStreamTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientEventStreamTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientExpandedPermissionTreeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientExpandedPermissionTreeTests.cs index 53d8d0b76a8..3b1430a9049 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientExpandedPermissionTreeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientExpandedPermissionTreeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientFlowErrorTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientFlowErrorTests.cs index 6324fc5ef20..f619dd725f6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientFlowErrorTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientFlowErrorTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorContentTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorContentTests.cs index b77fa45266f..7dfc2942757 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorContentTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorContentTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorTests.cs index cc5afe561c9..56b0ed72b3c 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericErrorTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericUsageTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericUsageTests.cs index 01141b393e1..c7e58dbcbb8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericUsageTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGenericUsageTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetAttributesCountResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetAttributesCountResponseTests.cs index bb7d0fde1cf..80cdf4420e2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetAttributesCountResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetAttributesCountResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetManagedIdentitySchemaLocationTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetManagedIdentitySchemaLocationTests.cs index 76c445b86aa..7cd695111c8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetManagedIdentitySchemaLocationTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetManagedIdentitySchemaLocationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventAttributesResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventAttributesResponseTests.cs index d3747a9edc3..d93619d168e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventAttributesResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventAttributesResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventTypesResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventTypesResponseTests.cs index 9e110fd8a12..5482485e6e6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventTypesResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetMetricsEventTypesResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetOrganizationResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetOrganizationResponseTests.cs index 382ac992b4a..a850f02aa97 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetOrganizationResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetOrganizationResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsBodyTests.cs index 282325d324f..52bfdcf6528 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsResponseTests.cs index 877182c2c44..38de8b38492 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectEventsResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectMetricsResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectMetricsResponseTests.cs index 41ffdfb3b5c..6e1c5150726 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectMetricsResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetProjectMetricsResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetSessionActivityResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetSessionActivityResponseTests.cs index 66e234132fb..3a6fafa3a88 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetSessionActivityResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientGetSessionActivityResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthNotReadyStatusTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthNotReadyStatusTests.cs index 20f2d394e64..01e38dcb418 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthNotReadyStatusTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthNotReadyStatusTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthStatusTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthStatusTests.cs index 5ef19b3db7a..60ee0ebfcb3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthStatusTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientHealthStatusTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsCodeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsCodeTests.cs index 7cdd4391204..5901122ca70 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsCodeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsCodeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcProviderTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcProviderTests.cs index 3b467f1861c..ffc440b66f6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcProviderTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcProviderTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcTests.cs index 35ce7988c12..21060b68ed0 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsOidcTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsPasswordTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsPasswordTests.cs index 0be12edeb89..7ea96a419b6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsPasswordTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsPasswordTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTests.cs index fa7f1f45f4f..1593e7329db 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchResponseTests.cs index ae574541d7e..df838b4b592 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchTests.cs index ae7afad63b4..ead64a7700f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityPatchTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaContainerTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaContainerTests.cs index 3cbabf0e8e9..0ad11cd3125 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaContainerTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaContainerTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaPresetTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaPresetTests.cs index 26bb417667c..277b24c761f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaPresetTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentitySchemaPresetTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityTests.cs index ef4f740649d..2987df832fd 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigProviderTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigProviderTests.cs index 4f4babe3306..a6ac64c5638 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigProviderTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigProviderTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigTests.cs index 81ac77e2d8b..6919aaf516f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcConfigTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcTests.cs index ec48dad6289..db53d02d5e3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsOidcTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordConfigTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordConfigTests.cs index 1c2f362204f..27fbe5c52d8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordConfigTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordConfigTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordTests.cs index 46aa0b24c2a..40410da6f12 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsPasswordTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsTests.cs index e7f8f119d5e..ad1be9445a4 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityWithCredentialsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineObject3Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineObject3Tests.cs index b68ca366c59..6780dac0abe 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineObject3Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineObject3Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse2001Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse2001Tests.cs index 0211b67c6c4..f4075751fff 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse2001Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse2001Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse200Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse200Tests.cs index 7b4762cd189..986c271b4c2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse200Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse200Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse503Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse503Tests.cs index f9ae3329cff..8bd96d975ca 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse503Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInlineResponse503Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalGetProjectBrandingBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalGetProjectBrandingBodyTests.cs index 4f43bb8e3ee..d18d56d3bad 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalGetProjectBrandingBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalGetProjectBrandingBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBodyTests.cs index 05be416dbab..9b0546ba790 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugBodyTests.cs index acd698ade46..2816209f27b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugResponseTests.cs index b7d8916da5a..517e0fc95da 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientInternalIsOwnerForProjectBySlugResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIntrospectedOAuth2TokenTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIntrospectedOAuth2TokenTests.cs index 108be88560c..c759e45489e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIntrospectedOAuth2TokenTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIntrospectedOAuth2TokenTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIsOwnerForProjectBySlugTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIsOwnerForProjectBySlugTests.cs index 3b99b481cc8..ac6b5a24dc3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIsOwnerForProjectBySlugTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIsOwnerForProjectBySlugTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonPatchTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonPatchTests.cs index 9a48531b098..f299e468182 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonPatchTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonPatchTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeySetTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeySetTests.cs index 10c1ee357bf..0183e048625 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeySetTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeySetTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeyTests.cs index 8322166b99e..9e8c8e3e8b7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientJsonWebKeyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientKetoNamespaceTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientKetoNamespaceTests.cs index 797ce78375e..7bf5a2effa5 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientKetoNamespaceTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientKetoNamespaceTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListEventStreamsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListEventStreamsTests.cs index ac7209687e2..068e4772ddc 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListEventStreamsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListEventStreamsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListMyWorkspacesResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListMyWorkspacesResponseTests.cs index bdd7b1dcfe2..d8d869a5922 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListMyWorkspacesResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListMyWorkspacesResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListOrganizationsResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListOrganizationsResponseTests.cs index 8fc7e557b20..da008536efa 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListOrganizationsResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListOrganizationsResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListWorkspaceProjectsResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListWorkspaceProjectsResponseTests.cs new file mode 100644 index 00000000000..7566281f437 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientListWorkspaceProjectsResponseTests.cs @@ -0,0 +1,87 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Client.Api; +using Ory.Client.Model; +using Ory.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Client.Test.Model +{ + /// + /// Class for testing ClientListWorkspaceProjectsResponse + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ClientListWorkspaceProjectsResponseTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ClientListWorkspaceProjectsResponse + //private ClientListWorkspaceProjectsResponse instance; + + public ClientListWorkspaceProjectsResponseTests() + { + // TODO uncomment below to create an instance of ClientListWorkspaceProjectsResponse + //instance = new ClientListWorkspaceProjectsResponse(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ClientListWorkspaceProjectsResponse + /// + [Fact] + public void ClientListWorkspaceProjectsResponseInstanceTest() + { + // TODO uncomment below to test "IsType" ClientListWorkspaceProjectsResponse + //Assert.IsType(instance); + } + + + /// + /// Test the property 'HasNextPage' + /// + [Fact] + public void HasNextPageTest() + { + // TODO unit test for the property 'HasNextPage' + } + /// + /// Test the property 'NextPage' + /// + [Fact] + public void NextPageTest() + { + // TODO unit test for the property 'NextPage' + } + /// + /// Test the property 'Projects' + /// + [Fact] + public void ProjectsTest() + { + // TODO unit test for the property 'Projects' + } + + } + +} diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowStateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowStateTests.cs index acfb6bc3887..b540f977bb8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowStateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowStateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowTests.cs index d2ea293287a..dc9728f1235 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLoginFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -170,6 +170,14 @@ public void StateTest() // TODO unit test for the property 'State' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Type' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLogoutFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLogoutFlowTests.cs index b2b46acc7ba..6a1771156e4 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLogoutFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientLogoutFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaTests.cs index 95e986dd121..55327a38677 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaValidationResultTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaValidationResultTests.cs index 404b268d9de..27fbc458cc5 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaValidationResultTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientManagedIdentitySchemaValidationResultTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMemberInviteTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMemberInviteTests.cs index 437655e67b4..46f5b7b929a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMemberInviteTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMemberInviteTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageDispatchTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageDispatchTests.cs index 0b86384fe7a..670b7e6a7ea 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageDispatchTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageDispatchTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageTests.cs index a330eafeae6..c65f2ae20c2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMessageTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMetricsDatapointTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMetricsDatapointTests.cs index 5c4dcf67a53..03e32bc296f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMetricsDatapointTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMetricsDatapointTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMigrationOptionsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMigrationOptionsTests.cs new file mode 100644 index 00000000000..da4c2c29a14 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientMigrationOptionsTests.cs @@ -0,0 +1,79 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Client.Api; +using Ory.Client.Model; +using Ory.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Client.Test.Model +{ + /// + /// Class for testing ClientMigrationOptions + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ClientMigrationOptionsTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ClientMigrationOptions + //private ClientMigrationOptions instance; + + public ClientMigrationOptionsTests() + { + // TODO uncomment below to create an instance of ClientMigrationOptions + //instance = new ClientMigrationOptions(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ClientMigrationOptions + /// + [Fact] + public void ClientMigrationOptionsInstanceTest() + { + // TODO uncomment below to test "IsType" ClientMigrationOptions + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Environment' + /// + [Fact] + public void EnvironmentTest() + { + // TODO unit test for the property 'Environment' + } + /// + /// Test the property 'ProjectSubscription' + /// + [Fact] + public void ProjectSubscriptionTest() + { + // TODO unit test for the property 'ProjectSubscription' + } + + } + +} diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNamespaceTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNamespaceTests.cs index 3c16af4b90b..370b112c7db 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNamespaceTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNamespaceTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNeedsPrivilegedSessionErrorTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNeedsPrivilegedSessionErrorTests.cs index f5bafad281a..10bb754f79b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNeedsPrivilegedSessionErrorTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNeedsPrivilegedSessionErrorTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionCourierChannelTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionCourierChannelTests.cs index e4d7d1b142e..9513717bcbc 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionCourierChannelTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionCourierChannelTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionHookTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionHookTests.cs index 8b0b0501b7c..ba181f5e8be 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionHookTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionHookTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionIdentitySchemaTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionIdentitySchemaTests.cs index cc80ab6623d..194e50ebe67 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionIdentitySchemaTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionIdentitySchemaTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTests.cs index e6432490d12..8878bd9acb9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -74,6 +74,14 @@ public void DisableAccountExperienceWelcomeScreenTest() // TODO unit test for the property 'DisableAccountExperienceWelcomeScreen' } /// + /// Test the property 'EnableAxV2' + /// + [Fact] + public void EnableAxV2Test() + { + // TODO unit test for the property 'EnableAxV2' + } + /// /// Test the property 'HydraOauth2AllowedTopLevelClaims' /// [Fact] @@ -122,6 +130,14 @@ public void HydraOauth2GrantJwtMaxTtlTest() // TODO unit test for the property 'HydraOauth2GrantJwtMaxTtl' } /// + /// Test the property 'HydraOauth2MirrorTopLevelClaims' + /// + [Fact] + public void HydraOauth2MirrorTopLevelClaimsTest() + { + // TODO unit test for the property 'HydraOauth2MirrorTopLevelClaims' + } + /// /// Test the property 'HydraOauth2PkceEnforced' /// [Fact] @@ -586,6 +602,14 @@ public void KratosCourierTemplatesLoginCodeValidEmailSubjectTest() // TODO unit test for the property 'KratosCourierTemplatesLoginCodeValidEmailSubject' } /// + /// Test the property 'KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' + /// + [Fact] + public void KratosCourierTemplatesLoginCodeValidSmsBodyPlaintextTest() + { + // TODO unit test for the property 'KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' + } + /// /// Test the property 'KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' /// [Fact] @@ -1266,6 +1290,14 @@ public void KratosSelfserviceMethodsCodeEnabledTest() // TODO unit test for the property 'KratosSelfserviceMethodsCodeEnabled' } /// + /// Test the property 'KratosSelfserviceMethodsCodeMfaEnabled' + /// + [Fact] + public void KratosSelfserviceMethodsCodeMfaEnabledTest() + { + // TODO unit test for the property 'KratosSelfserviceMethodsCodeMfaEnabled' + } + /// /// Test the property 'KratosSelfserviceMethodsCodePasswordlessEnabled' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionThirdPartyProviderTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionThirdPartyProviderTests.cs index c9cafde2385..1c0f5c8976a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionThirdPartyProviderTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionThirdPartyProviderTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -106,6 +106,14 @@ public void AzureTenantTest() // TODO unit test for the property 'AzureTenant' } /// + /// Test the property 'ClaimsSource' + /// + [Fact] + public void ClaimsSourceTest() + { + // TODO unit test for the property 'ClaimsSource' + } + /// /// Test the property 'ClientId' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTokenizerTemplateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTokenizerTemplateTests.cs index fa9cff745fe..be937108e39 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTokenizerTemplateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectRevisionTokenizerTemplateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectTests.cs index 482546f497e..8491dc22b36 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientNormalizedProjectTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTests.cs index 1803301fa05..b306aacda2a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -386,6 +386,14 @@ public void SkipConsentTest() // TODO unit test for the property 'SkipConsent' } /// + /// Test the property 'SkipLogoutConsent' + /// + [Fact] + public void SkipLogoutConsentTest() + { + // TODO unit test for the property 'SkipLogoutConsent' + } + /// /// Test the property 'SubjectType' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTokenLifespansTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTokenLifespansTests.cs index b4000ff48b2..3e30a872677 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTokenLifespansTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ClientTokenLifespansTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestOpenIDConnectContextTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestOpenIDConnectContextTests.cs index d0262891513..6f7c39eb006 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestOpenIDConnectContextTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestOpenIDConnectContextTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestTests.cs index 399c042942c..00428e85f21 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionExpiresAtTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionExpiresAtTests.cs index 41296f512ac..331c4691a1a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionExpiresAtTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionExpiresAtTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionTests.cs index c0ed652b641..1cca64069e8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2ConsentSessionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,14 @@ public void ConsentRequestTest() // TODO unit test for the property 'ConsentRequest' } /// + /// Test the property 'Context' + /// + [Fact] + public void ContextTest() + { + // TODO unit test for the property 'Context' + } + /// /// Test the property 'ExpiresAt' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LoginRequestTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LoginRequestTests.cs index ed51171e564..739bc414a0b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LoginRequestTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LoginRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LogoutRequestTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LogoutRequestTests.cs index 34ea6c5c755..cc50a7f269d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LogoutRequestTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2LogoutRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2RedirectToTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2RedirectToTests.cs index 72e7eb863f1..d4bd8fca21e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2RedirectToTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2RedirectToTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2TokenExchangeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2TokenExchangeTests.cs index 487eaaab833..f630748eaa8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2TokenExchangeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOAuth2TokenExchangeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcConfigurationTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcConfigurationTests.cs index 7f8345f56f4..b0c6fd7982e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcConfigurationTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcConfigurationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcUserInfoTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcUserInfoTests.cs index 1abd0599d67..c3a5adbadc3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcUserInfoTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOidcUserInfoTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationBodyTests.cs index 8e11cf7f093..6de1b536bab 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationTests.cs index 2d0cf60fdef..805af7b30e4 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientOrganizationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationHeadersTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationHeadersTests.cs index 935b8795c54..451cc1dd96c 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationHeadersTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationHeadersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationTests.cs index 864eef5b362..bd618ed955a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPaginationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientParseErrorTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientParseErrorTests.cs index 5af2bedbce0..4ff192ebc26 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientParseErrorTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientParseErrorTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPatchIdentitiesBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPatchIdentitiesBodyTests.cs index 8d61ae72930..0b075c94cd9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPatchIdentitiesBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPatchIdentitiesBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPerformNativeLogoutBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPerformNativeLogoutBodyTests.cs index 5b2670b17e9..e618d74bb0e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPerformNativeLogoutBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPerformNativeLogoutBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityStateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPermissionsOnWorkpaceResponseTests.cs similarity index 53% rename from clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityStateTests.cs rename to clients/client/dotnet/src/Ory.Client.Test/Model/ClientPermissionsOnWorkpaceResponseTests.cs index 9b9d5e5978c..f6e3e1971e4 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityStateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPermissionsOnWorkpaceResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Client.Test.Model { /// - /// Class for testing ClientIdentityState + /// Class for testing ClientPermissionsOnWorkpaceResponse /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ClientIdentityStateTests : IDisposable + public class ClientPermissionsOnWorkpaceResponseTests : IDisposable { - // TODO uncomment below to declare an instance variable for ClientIdentityState - //private ClientIdentityState instance; + // TODO uncomment below to declare an instance variable for ClientPermissionsOnWorkpaceResponse + //private ClientPermissionsOnWorkpaceResponse instance; - public ClientIdentityStateTests() + public ClientPermissionsOnWorkpaceResponseTests() { - // TODO uncomment below to create an instance of ClientIdentityState - //instance = new ClientIdentityState(); + // TODO uncomment below to create an instance of ClientPermissionsOnWorkpaceResponse + //instance = new ClientPermissionsOnWorkpaceResponse(); } public void Dispose() @@ -47,16 +47,24 @@ public void Dispose() } /// - /// Test an instance of ClientIdentityState + /// Test an instance of ClientPermissionsOnWorkpaceResponse /// [Fact] - public void ClientIdentityStateInstanceTest() + public void ClientPermissionsOnWorkpaceResponseInstanceTest() { - // TODO uncomment below to test "IsType" ClientIdentityState - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" ClientPermissionsOnWorkpaceResponse + //Assert.IsType(instance); } + /// + /// Test the property 'Permissions' + /// + [Fact] + public void PermissionsTest() + { + // TODO unit test for the property 'Permissions' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanDetailsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanDetailsTests.cs index 6b560d2ec20..aaaba44defa 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanDetailsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanDetailsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanTests.cs index 774df0a41d7..e7fcb4bc84a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPlanTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionBodyTests.cs index 40430e30c54..7c4acd676d1 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionOrErrorBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionOrErrorBodyTests.cs index 73d5c82b6b0..27db84e7c44 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionOrErrorBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientPostCheckPermissionOrErrorBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectApiKeyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectApiKeyTests.cs index d8059c92722..9e56c689355 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectApiKeyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectApiKeyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingColorsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingColorsTests.cs index 2d8d68c3fc3..51d5c6233ac 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingColorsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingColorsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingTests.cs index 6bab473194e..fb1088092f5 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingThemeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingThemeTests.cs index 1eddb5c464d..dfe17014f9a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingThemeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectBrandingThemeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectCorsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectCorsTests.cs index c273118c730..1871fa5e87d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectCorsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectCorsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectEventsDatapointTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectEventsDatapointTests.cs index d675ce8aed4..83dfefbfe97 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectEventsDatapointTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectEventsDatapointTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectHostTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectHostTests.cs index ff5d5f52a27..b4f961fe95f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectHostTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectHostTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMemberTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMemberTests.cs new file mode 100644 index 00000000000..e35bd114aec --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMemberTests.cs @@ -0,0 +1,95 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Client.Api; +using Ory.Client.Model; +using Ory.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Client.Test.Model +{ + /// + /// Class for testing ClientProjectMember + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ClientProjectMemberTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ClientProjectMember + //private ClientProjectMember instance; + + public ClientProjectMemberTests() + { + // TODO uncomment below to create an instance of ClientProjectMember + //instance = new ClientProjectMember(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ClientProjectMember + /// + [Fact] + public void ClientProjectMemberInstanceTest() + { + // TODO uncomment below to test "IsType" ClientProjectMember + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Email' + /// + [Fact] + public void EmailTest() + { + // TODO unit test for the property 'Email' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'Role' + /// + [Fact] + public void RoleTest() + { + // TODO unit test for the property 'Role' + } + + } + +} diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMetadataTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMetadataTests.cs index d31a74421c5..aab7257525b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMetadataTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectMetadataTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,14 @@ public void CreatedAtTest() // TODO unit test for the property 'CreatedAt' } /// + /// Test the property 'Environment' + /// + [Fact] + public void EnvironmentTest() + { + // TODO unit test for the property 'Environment' + } + /// /// Test the property 'Hosts' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceIdentityTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceIdentityTests.cs index 50ae69d17c6..8d89aa34910 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceIdentityTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceIdentityTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceOAuth2Tests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceOAuth2Tests.cs index 14ca4616fb3..d22c6f2a409 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceOAuth2Tests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServiceOAuth2Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicePermissionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicePermissionTests.cs index da9dc489582..190f6f88e06 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicePermissionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicePermissionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicesTests.cs index 0926e21bdfe..3bcee3090f0 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectServicesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectTests.cs index 9b88f273a28..0141d6a71a0 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientProjectTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientQuotaUsageTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientQuotaUsageTests.cs index 578100dcfc9..51eb2f62092 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientQuotaUsageTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientQuotaUsageTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRFC6749ErrorJsonTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRFC6749ErrorJsonTests.cs index 669edd37db3..2be7e24571e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRFC6749ErrorJsonTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRFC6749ErrorJsonTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryCodeForIdentityTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryCodeForIdentityTests.cs index a45ef1ec16e..9309e3616ce 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryCodeForIdentityTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryCodeForIdentityTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowStateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowStateTests.cs index f8c0169724f..d24928a8898 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowStateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowStateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowTests.cs index e39e6464dbb..77f76281669 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -122,6 +122,14 @@ public void StateTest() // TODO unit test for the property 'State' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Type' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryIdentityAddressTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryIdentityAddressTests.cs index 0c595b19209..030dbdd9d36 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryIdentityAddressTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryIdentityAddressTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryLinkForIdentityTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryLinkForIdentityTests.cs index b207923537a..3c4f672a50a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryLinkForIdentityTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRecoveryLinkForIdentityTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowStateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowStateTests.cs index ce0ddba28cf..9bd04c81944 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowStateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowStateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowTests.cs index a99b9f46a18..d93ffaaf424 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRegistrationFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRejectOAuth2RequestTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRejectOAuth2RequestTests.cs index dd235b04948..f662385f25a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRejectOAuth2RequestTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRejectOAuth2RequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationQueryTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationQueryTests.cs index 912e220b398..e81a24f2d98 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationQueryTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationQueryTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipNamespacesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipNamespacesTests.cs index 03fb0f2dcdf..cbdd2186a14 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipNamespacesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipNamespacesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipPatchTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipPatchTests.cs index d31fb492cb3..36e85ca5572 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipPatchTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipPatchTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipTests.cs index 15b8a312afd..0b6d61a7df6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipsTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipsTests.cs index 5c6a3d56bb0..0cc509181ce 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipsTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientRelationshipsTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSchemaPatchTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSchemaPatchTests.cs index f13b7d36479..21a802d082a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSchemaPatchTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSchemaPatchTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSelfServiceFlowExpiredErrorTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSelfServiceFlowExpiredErrorTests.cs index e58bfd869bb..2be213d48f6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSelfServiceFlowExpiredErrorTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSelfServiceFlowExpiredErrorTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionActivityDatapointTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionActivityDatapointTests.cs index d076abe332e..069ce936dc1 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionActivityDatapointTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionActivityDatapointTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionAuthenticationMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionAuthenticationMethodTests.cs index 8765842ed50..c9612779100 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionAuthenticationMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionAuthenticationMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionDeviceTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionDeviceTests.cs index 30fb4331250..8c1f2346b4f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionDeviceTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionDeviceTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionTests.cs index 3c4726cdcbf..25c16012eb7 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSessionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetActiveProjectInConsoleBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetActiveProjectInConsoleBodyTests.cs index 8c3b94af5e7..ea4acc3f27e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetActiveProjectInConsoleBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetActiveProjectInConsoleBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetCustomDomainBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetCustomDomainBodyTests.cs index d265c2b6570..26551f631e0 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetCustomDomainBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetCustomDomainBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetEventStreamBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetEventStreamBodyTests.cs index 0965388dc64..f62a26264a4 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetEventStreamBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetEventStreamBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectBrandingThemeBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectBrandingThemeBodyTests.cs index 165c0f46374..79c2f949bb8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectBrandingThemeBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectBrandingThemeBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectTests.cs index 73c5ec2b435..df48ffbb295 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSetProjectTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowStateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowStateTests.cs index cbf1c12c748..2e144f60f92 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowStateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowStateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowTests.cs index 443948c6908..ccf09b31877 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSettingsFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -130,6 +130,14 @@ public void StateTest() // TODO unit test for the property 'State' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Type' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSourcePositionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSourcePositionTests.cs index aa80db2b309..3a48514c9dd 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSourcePositionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSourcePositionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubjectSetTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubjectSetTests.cs index 83672326ac5..c19f560d509 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubjectSetTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubjectSetTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubscriptionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubscriptionTests.cs index 7985321160d..f0bcd348724 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubscriptionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSubscriptionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -90,6 +90,14 @@ public void CurrentPlanTest() // TODO unit test for the property 'CurrentPlan' } /// + /// Test the property 'CurrentPlanDetails' + /// + [Fact] + public void CurrentPlanDetailsTest() + { + // TODO unit test for the property 'CurrentPlanDetails' + } + /// /// Test the property 'CustomerId' /// [Fact] @@ -154,6 +162,14 @@ public void StatusTest() // TODO unit test for the property 'Status' } /// + /// Test the property 'StripeCheckoutExpiresAt' + /// + [Fact] + public void StripeCheckoutExpiresAtTest() + { + // TODO unit test for the property 'StripeCheckoutExpiresAt' + } + /// /// Test the property 'UpdatedAt' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulCodeExchangeResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulCodeExchangeResponseTests.cs index 81a15e3277d..a3e62d38999 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulCodeExchangeResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulCodeExchangeResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeLoginTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeLoginTests.cs index c0ee253d458..70f8ff1bda8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeLoginTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeLoginTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeRegistrationTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeRegistrationTests.cs index c0f5bbce4f5..52e4d8fcd79 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeRegistrationTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulNativeRegistrationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulProjectUpdateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulProjectUpdateTests.cs index 621a1a14806..808a7950be9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulProjectUpdateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientSuccessfulProjectUpdateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationHeadersTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationHeadersTests.cs index dc4eccd4460..c65b5276dfe 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationHeadersTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationHeadersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationRequestParametersTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationRequestParametersTests.cs index 9bf7197c746..5c5c47dc2e4 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationRequestParametersTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationRequestParametersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationResponseHeadersTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationResponseHeadersTests.cs index 95fb1d4eaab..58ec5472010 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationResponseHeadersTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationResponseHeadersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationTests.cs index 331497fa4c7..6468aa74fff 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTokenPaginationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustOAuth2JwtGrantIssuerTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustOAuth2JwtGrantIssuerTests.cs index 47927f2a885..a84b1bd3ac9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustOAuth2JwtGrantIssuerTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustOAuth2JwtGrantIssuerTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantIssuerTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantIssuerTests.cs index 2db96883402..96dcfe970c3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantIssuerTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantIssuerTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantJsonWebKeyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantJsonWebKeyTests.cs index c14d74cc03f..34667f694ed 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantJsonWebKeyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientTrustedOAuth2JwtGrantJsonWebKeyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiContainerTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiContainerTests.cs index 4f957974ce6..5a4c9df41cd 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiContainerTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiContainerTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAnchorAttributesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAnchorAttributesTests.cs index 9a1390377aa..13c2a574a26 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAnchorAttributesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAnchorAttributesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAttributesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAttributesTests.cs index 33edfcfb2bc..e9b1bbafa9d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAttributesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeAttributesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeImageAttributesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeImageAttributesTests.cs index 2379a0bba3e..53bcea797e3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeImageAttributesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeImageAttributesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeInputAttributesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeInputAttributesTests.cs index 7002df1fc12..b12221f50b5 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeInputAttributesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeInputAttributesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeMetaTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeMetaTests.cs index cfc19531719..30f38f1423f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeMetaTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeMetaTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeScriptAttributesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeScriptAttributesTests.cs index 89452064b58..e8b739d7aa2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeScriptAttributesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeScriptAttributesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTests.cs index b0587dffa4c..75d488e2dd8 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTextAttributesTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTextAttributesTests.cs index 97a83674264..cef40c5e4d0 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTextAttributesTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiNodeTextAttributesTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiTextTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiTextTests.cs index 2623f85caba..71f7779704f 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiTextTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUiTextTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateIdentityBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateIdentityBodyTests.cs index 1d1a38f0305..b6031fa43c9 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateIdentityBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowBodyTests.cs index a8bfea57c9a..a50b97c1e2d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,6 +98,14 @@ public void PasswordIdentifierTest() // TODO unit test for the property 'PasswordIdentifier' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'IdToken' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithCodeMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithCodeMethodTests.cs index 5e675a88c88..940b91c196e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithCodeMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithCodeMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -97,6 +97,14 @@ public void ResendTest() { // TODO unit test for the property 'Resend' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithLookupSecretMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithLookupSecretMethodTests.cs index c7d88a9d286..934ac15c71d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithLookupSecretMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithLookupSecretMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithOidcMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithOidcMethodTests.cs index 4a3d76f17dd..2e00419b97c 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithOidcMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithOidcMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -106,6 +106,14 @@ public void TraitsTest() // TODO unit test for the property 'Traits' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'UpstreamParameters' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithPasswordMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithPasswordMethodTests.cs index c436048e301..15e953ff135 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithPasswordMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithPasswordMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -97,6 +97,14 @@ public void PasswordIdentifierTest() { // TODO unit test for the property 'PasswordIdentifier' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithTotpMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithTotpMethodTests.cs index 7277beee8b0..08d1a721a66 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithTotpMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithTotpMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -81,6 +81,14 @@ public void TotpCodeTest() { // TODO unit test for the property 'TotpCode' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithWebAuthnMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithWebAuthnMethodTests.cs index 6729d01af43..394d2d0d22b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithWebAuthnMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateLoginFlowWithWebAuthnMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,6 +82,14 @@ public void MethodTest() // TODO unit test for the property 'Method' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'WebauthnLogin' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowBodyTests.cs index 620f17b62c0..231aa52cb94 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,6 +82,14 @@ public void MethodTest() // TODO unit test for the property 'Method' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Code' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithCodeMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithCodeMethodTests.cs index 493e1f020f2..6fed6f97c8e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithCodeMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithCodeMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -89,6 +89,14 @@ public void MethodTest() { // TODO unit test for the property 'Method' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithLinkMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithLinkMethodTests.cs index fbadc86772a..6833f5094d5 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithLinkMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRecoveryFlowWithLinkMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -81,6 +81,14 @@ public void MethodTest() { // TODO unit test for the property 'Method' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowBodyTests.cs index 22f2125ca3d..84d8867350b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithCodeMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithCodeMethodTests.cs index e1f21559618..a046e9187d3 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithCodeMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithCodeMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithOidcMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithOidcMethodTests.cs index cbecc01ca25..f599fea4e79 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithOidcMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithOidcMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithPasswordMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithPasswordMethodTests.cs index b204bb78597..82e2cce9535 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithPasswordMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithPasswordMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithWebAuthnMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithWebAuthnMethodTests.cs index 113b8fb6bb1..5ba44bd993d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithWebAuthnMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateRegistrationFlowWithWebAuthnMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowBodyTests.cs index 504df691954..67799770b0b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,6 +82,14 @@ public void PasswordTest() // TODO unit test for the property 'Password' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Traits' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithLookupMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithLookupMethodTests.cs index 6814ee1467d..c625ca873a6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithLookupMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithLookupMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -105,6 +105,14 @@ public void MethodTest() { // TODO unit test for the property 'Method' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithOidcMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithOidcMethodTests.cs index 93bfebe6edc..7aacc5daa3b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithOidcMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithOidcMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -90,6 +90,14 @@ public void TraitsTest() // TODO unit test for the property 'Traits' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Unlink' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithPasswordMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithPasswordMethodTests.cs index a66b31653ed..ab746b09573 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithPasswordMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithPasswordMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -81,6 +81,14 @@ public void PasswordTest() { // TODO unit test for the property 'Password' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithProfileMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithProfileMethodTests.cs index 292529d6649..e2924aa1674 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithProfileMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithProfileMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -81,6 +81,14 @@ public void TraitsTest() { // TODO unit test for the property 'Traits' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithTotpMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithTotpMethodTests.cs index 156dd6e6b13..8673deda286 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithTotpMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithTotpMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -89,6 +89,14 @@ public void TotpUnlinkTest() { // TODO unit test for the property 'TotpUnlink' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithWebAuthnMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithWebAuthnMethodTests.cs index 475c4030ab6..7ba27b2ab85 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithWebAuthnMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSettingsFlowWithWebAuthnMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -74,6 +74,14 @@ public void MethodTest() // TODO unit test for the property 'Method' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'WebauthnRegister' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSubscriptionBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSubscriptionBodyTests.cs index 00e73b352b9..8391969199a 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSubscriptionBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateSubscriptionBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowBodyTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowBodyTests.cs index 64c7c4fc75a..7d48ef583c6 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowBodyTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,6 +82,14 @@ public void MethodTest() // TODO unit test for the property 'Method' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Code' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithCodeMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithCodeMethodTests.cs index 97f92059221..4002b318ad2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithCodeMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithCodeMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -89,6 +89,14 @@ public void MethodTest() { // TODO unit test for the property 'Method' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithLinkMethodTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithLinkMethodTests.cs index 502f04d401f..cc0c68d5b56 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithLinkMethodTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateVerificationFlowWithLinkMethodTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -81,6 +81,14 @@ public void MethodTest() { // TODO unit test for the property 'Method' } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTypeTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateWorkspacePayloadTests.cs similarity index 56% rename from clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTypeTests.cs rename to clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateWorkspacePayloadTests.cs index af12b9c8a56..02e54395475 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientIdentityCredentialsTypeTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUpdateWorkspacePayloadTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Client.Test.Model { /// - /// Class for testing ClientIdentityCredentialsType + /// Class for testing ClientUpdateWorkspacePayload /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class ClientIdentityCredentialsTypeTests : IDisposable + public class ClientUpdateWorkspacePayloadTests : IDisposable { - // TODO uncomment below to declare an instance variable for ClientIdentityCredentialsType - //private ClientIdentityCredentialsType instance; + // TODO uncomment below to declare an instance variable for ClientUpdateWorkspacePayload + //private ClientUpdateWorkspacePayload instance; - public ClientIdentityCredentialsTypeTests() + public ClientUpdateWorkspacePayloadTests() { - // TODO uncomment below to create an instance of ClientIdentityCredentialsType - //instance = new ClientIdentityCredentialsType(); + // TODO uncomment below to create an instance of ClientUpdateWorkspacePayload + //instance = new ClientUpdateWorkspacePayload(); } public void Dispose() @@ -47,16 +47,24 @@ public void Dispose() } /// - /// Test an instance of ClientIdentityCredentialsType + /// Test an instance of ClientUpdateWorkspacePayload /// [Fact] - public void ClientIdentityCredentialsTypeInstanceTest() + public void ClientUpdateWorkspacePayloadInstanceTest() { - // TODO uncomment below to test "IsType" ClientIdentityCredentialsType - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" ClientUpdateWorkspacePayload + //Assert.IsType(instance); } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } } diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUsageTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUsageTests.cs index c199bf41638..9b2b88b3c8b 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUsageTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientUsageTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialPrimingResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialPrimingResponseTests.cs index 8f9f4968d09..82aabba4d7d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialPrimingResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialPrimingResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialProofTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialProofTests.cs index 47fbf185781..7b3dc934c2c 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialProofTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialProofTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialResponseTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialResponseTests.cs index 10b9a5360e9..fb8eab9438d 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialResponseTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableCredentialResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableIdentityAddressTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableIdentityAddressTests.cs index 055fcf14e08..c87dc25268e 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableIdentityAddressTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerifiableIdentityAddressTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowStateTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowStateTests.cs index a46e68596bd..1b23dede8ec 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowStateTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowStateTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowTests.cs index baeb0192412..c40bf23a9c0 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVerificationFlowTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -114,6 +114,14 @@ public void StateTest() // TODO unit test for the property 'State' } /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + /// /// Test the property 'Type' /// [Fact] diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVersionTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVersionTests.cs index 6e025318747..1cb44f767cc 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVersionTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientVersionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWarningTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWarningTests.cs index 90062403121..379ac6ea060 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWarningTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWarningTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceMetaTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceMetaTests.cs new file mode 100644 index 00000000000..38152679ee4 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceMetaTests.cs @@ -0,0 +1,111 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Client.Api; +using Ory.Client.Model; +using Ory.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Client.Test.Model +{ + /// + /// Class for testing ClientWorkspaceMeta + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class ClientWorkspaceMetaTests : IDisposable + { + // TODO uncomment below to declare an instance variable for ClientWorkspaceMeta + //private ClientWorkspaceMeta instance; + + public ClientWorkspaceMetaTests() + { + // TODO uncomment below to create an instance of ClientWorkspaceMeta + //instance = new ClientWorkspaceMeta(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of ClientWorkspaceMeta + /// + [Fact] + public void ClientWorkspaceMetaInstanceTest() + { + // TODO uncomment below to test "IsType" ClientWorkspaceMeta + //Assert.IsType(instance); + } + + + /// + /// Test the property 'CreatedAt' + /// + [Fact] + public void CreatedAtTest() + { + // TODO unit test for the property 'CreatedAt' + } + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Name' + /// + [Fact] + public void NameTest() + { + // TODO unit test for the property 'Name' + } + /// + /// Test the property 'SubscriptionId' + /// + [Fact] + public void SubscriptionIdTest() + { + // TODO unit test for the property 'SubscriptionId' + } + /// + /// Test the property 'SubscriptionPlan' + /// + [Fact] + public void SubscriptionPlanTest() + { + // TODO unit test for the property 'SubscriptionPlan' + } + /// + /// Test the property 'UpdatedAt' + /// + [Fact] + public void UpdatedAtTest() + { + // TODO unit test for the property 'UpdatedAt' + } + + } + +} diff --git a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceTests.cs b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceTests.cs index ae5cc9bd263..26b63f525a2 100644 --- a/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceTests.cs +++ b/clients/client/dotnet/src/Ory.Client.Test/Model/ClientWorkspaceTests.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/CourierApi.cs b/clients/client/dotnet/src/Ory.Client/Api/CourierApi.cs index 1a178a71405..96d43b59ce0 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/CourierApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/CourierApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/EventsApi.cs b/clients/client/dotnet/src/Ory.Client/Api/EventsApi.cs index ac92c128b24..c5bcf9eff02 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/EventsApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/EventsApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/FrontendApi.cs b/clients/client/dotnet/src/Ory.Client/Api/FrontendApi.cs index 321b05afb6d..94c06e52dc6 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/FrontendApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/FrontendApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -40,8 +40,9 @@ public interface IFrontendApiSync : IApiAccessor /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ClientLoginFlow - ClientLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)); + ClientLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string)); /// /// Create Login Flow for Browsers @@ -56,8 +57,9 @@ public interface IFrontendApiSync : IApiAccessor /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ApiResponse of ClientLoginFlow - ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)); + ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string)); /// /// Create a Logout URL for Browsers /// @@ -185,8 +187,9 @@ public interface IFrontendApiSync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ClientLoginFlow - ClientLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)); + ClientLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)); /// /// Create Login Flow for Native Apps @@ -200,8 +203,9 @@ public interface IFrontendApiSync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ApiResponse of ClientLoginFlow - ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)); + ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)); /// /// Create Recovery Flow for Native Apps /// @@ -766,9 +770,10 @@ public interface IFrontendApiAsync : IApiAccessor /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ClientLoginFlow - System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Login Flow for Browsers @@ -783,9 +788,10 @@ public interface IFrontendApiAsync : IApiAccessor /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientLoginFlow) - System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create a Logout URL for Browsers /// @@ -923,9 +929,10 @@ public interface IFrontendApiAsync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ClientLoginFlow - System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Login Flow for Native Apps @@ -939,9 +946,10 @@ public interface IFrontendApiAsync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientLoginFlow) - System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Recovery Flow for Native Apps /// @@ -1663,10 +1671,11 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ClientLoginFlow - public ClientLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)) + public ClientLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string)) { - Ory.Client.Client.ApiResponse localVarResponse = CreateBrowserLoginFlowWithHttpInfo(refresh, aal, returnTo, cookie, loginChallenge, organization); + Ory.Client.Client.ApiResponse localVarResponse = CreateBrowserLoginFlowWithHttpInfo(refresh, aal, returnTo, cookie, loginChallenge, organization, via); return localVarResponse.Data; } @@ -1680,8 +1689,9 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ApiResponse of ClientLoginFlow - public Ory.Client.Client.ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)) + public Ory.Client.Client.ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -1725,6 +1735,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "organization", organization)); } + if (via != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "via", via)); + } if (cookie != null) { localVarRequestOptions.HeaderParameters.Add("Cookie", Ory.Client.Client.ClientUtils.ParameterToString(cookie)); // header parameter @@ -1755,11 +1769,12 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ClientLoginFlow - public async System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Client.Client.ApiResponse localVarResponse = await CreateBrowserLoginFlowWithHttpInfoAsync(refresh, aal, returnTo, cookie, loginChallenge, organization, cancellationToken).ConfigureAwait(false); + Ory.Client.Client.ApiResponse localVarResponse = await CreateBrowserLoginFlowWithHttpInfoAsync(refresh, aal, returnTo, cookie, loginChallenge, organization, via, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1773,9 +1788,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientLoginFlow) - public async System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -1820,6 +1836,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "organization", organization)); } + if (via != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "via", via)); + } if (cookie != null) { localVarRequestOptions.HeaderParameters.Add("Cookie", Ory.Client.Client.ClientUtils.ParameterToString(cookie)); // header parameter @@ -2550,10 +2570,11 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ClientLoginFlow - public ClientLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)) + public ClientLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)) { - Ory.Client.Client.ApiResponse localVarResponse = CreateNativeLoginFlowWithHttpInfo(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + Ory.Client.Client.ApiResponse localVarResponse = CreateNativeLoginFlowWithHttpInfo(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); return localVarResponse.Data; } @@ -2566,8 +2587,9 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ApiResponse of ClientLoginFlow - public Ory.Client.Client.ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)) + public Ory.Client.Client.ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -2607,6 +2629,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); } + if (via != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "via", via)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -2636,11 +2662,12 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ClientLoginFlow - public async System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Client.Client.ApiResponse localVarResponse = await CreateNativeLoginFlowWithHttpInfoAsync(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, cancellationToken).ConfigureAwait(false); + Ory.Client.Client.ApiResponse localVarResponse = await CreateNativeLoginFlowWithHttpInfoAsync(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2653,9 +2680,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientLoginFlow) - public async System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -2696,6 +2724,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); } + if (via != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "via", via)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter diff --git a/clients/client/dotnet/src/Ory.Client/Api/IdentityApi.cs b/clients/client/dotnet/src/Ory.Client/Api/IdentityApi.cs index 3e39eaf2f18..d4d600d389b 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/IdentityApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/IdentityApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -97,9 +97,10 @@ public interface IIdentityApiSync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// ClientRecoveryLinkForIdentity - ClientRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)); + ClientRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)); /// /// Create a Recovery Link @@ -108,9 +109,10 @@ public interface IIdentityApiSync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// ApiResponse of ClientRecoveryLinkForIdentity - ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)); + ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)); /// /// Delete an Identity /// @@ -140,7 +142,7 @@ public interface IIdentityApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// void DeleteIdentityCredentials(string id, string type); @@ -152,7 +154,7 @@ public interface IIdentityApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// ApiResponse of Object(void) ApiResponse DeleteIdentityCredentialsWithHttpInfo(string id, string type); /// @@ -297,11 +299,12 @@ public interface IIdentityApiSync : IApiAccessor /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// List<ClientIdentity> - List ListIdentities(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)); + List ListIdentities(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List)); /// /// List Identities @@ -315,11 +318,12 @@ public interface IIdentityApiSync : IApiAccessor /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// ApiResponse of List<ClientIdentity> - ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)); + ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List)); /// /// Get all Identity Schemas /// @@ -536,10 +540,11 @@ public interface IIdentityApiAsync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ClientRecoveryLinkForIdentity - System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create a Recovery Link @@ -548,10 +553,11 @@ public interface IIdentityApiAsync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientRecoveryLinkForIdentity) - System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete an Identity /// @@ -583,7 +589,7 @@ public interface IIdentityApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeleteIdentityCredentialsAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -596,7 +602,7 @@ public interface IIdentityApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteIdentityCredentialsWithHttpInfoAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -754,12 +760,13 @@ public interface IIdentityApiAsync : IApiAccessor /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// Cancellation Token to cancel the request. /// Task of List<ClientIdentity> - System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Identities @@ -773,12 +780,13 @@ public interface IIdentityApiAsync : IApiAccessor /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ClientIdentity>) - System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all Identity Schemas /// @@ -1452,11 +1460,12 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// ClientRecoveryLinkForIdentity - public ClientRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)) + public ClientRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)) { - Ory.Client.Client.ApiResponse localVarResponse = CreateRecoveryLinkForIdentityWithHttpInfo(clientCreateRecoveryLinkForIdentityBody); + Ory.Client.Client.ApiResponse localVarResponse = CreateRecoveryLinkForIdentityWithHttpInfo(returnTo, clientCreateRecoveryLinkForIdentityBody); return localVarResponse.Data; } @@ -1464,9 +1473,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// ApiResponse of ClientRecoveryLinkForIdentity - public Ory.Client.Client.ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)) + public Ory.Client.Client.ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -1491,6 +1501,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (returnTo != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); + } localVarRequestOptions.Data = clientCreateRecoveryLinkForIdentityBody; // authentication (oryAccessToken) required @@ -1518,12 +1532,13 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ClientRecoveryLinkForIdentity - public async System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Client.Client.ApiResponse localVarResponse = await CreateRecoveryLinkForIdentityWithHttpInfoAsync(clientCreateRecoveryLinkForIdentityBody, cancellationToken).ConfigureAwait(false); + Ory.Client.Client.ApiResponse localVarResponse = await CreateRecoveryLinkForIdentityWithHttpInfoAsync(returnTo, clientCreateRecoveryLinkForIdentityBody, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1531,10 +1546,11 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientRecoveryLinkForIdentity) - public async System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(string returnTo = default(string), ClientCreateRecoveryLinkForIdentityBody clientCreateRecoveryLinkForIdentityBody = default(ClientCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -1560,6 +1576,10 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (returnTo != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); + } localVarRequestOptions.Data = clientCreateRecoveryLinkForIdentityBody; // authentication (oryAccessToken) required @@ -1733,7 +1753,7 @@ public Ory.Client.Client.ApiResponse DeleteIdentityWithHttpInfo(string i /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// public void DeleteIdentityCredentials(string id, string type) { @@ -1745,7 +1765,7 @@ public void DeleteIdentityCredentials(string id, string type) /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// ApiResponse of Object(void) public Ory.Client.Client.ApiResponse DeleteIdentityCredentialsWithHttpInfo(string id, string type) { @@ -1812,7 +1832,7 @@ public Ory.Client.Client.ApiResponse DeleteIdentityCredentialsWithHttpIn /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeleteIdentityCredentialsAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) @@ -1825,7 +1845,7 @@ public Ory.Client.Client.ApiResponse DeleteIdentityCredentialsWithHttpIn /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteIdentityCredentialsWithHttpInfoAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) @@ -2783,13 +2803,14 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// List<ClientIdentity> - public List ListIdentities(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)) + public List ListIdentities(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List)) { - Ory.Client.Client.ApiResponse> localVarResponse = ListIdentitiesWithHttpInfo(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + Ory.Client.Client.ApiResponse> localVarResponse = ListIdentitiesWithHttpInfo(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); return localVarResponse.Data; } @@ -2802,11 +2823,12 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// ApiResponse of List<ClientIdentity> - public Ory.Client.Client.ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)) + public Ory.Client.Client.ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -2850,9 +2872,9 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "consistency", consistency)); } - if (idsFilter != null) + if (ids != null) { - localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("multi", "ids_filter", idsFilter)); + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("multi", "ids", ids)); } if (credentialsIdentifier != null) { @@ -2862,6 +2884,10 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "preview_credentials_identifier_similar", previewCredentialsIdentifierSimilar)); } + if (includeCredential != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("multi", "include_credential", includeCredential)); + } // authentication (oryAccessToken) required // bearer authentication required @@ -2893,14 +2919,15 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// Cancellation Token to cancel the request. /// Task of List<ClientIdentity> - public async System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Client.Client.ApiResponse> localVarResponse = await ListIdentitiesWithHttpInfoAsync(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar, cancellationToken).ConfigureAwait(false); + Ory.Client.Client.ApiResponse> localVarResponse = await ListIdentitiesWithHttpInfoAsync(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2913,12 +2940,13 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - /// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<ClientIdentity>) - public async System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List idsFilter = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), List includeCredential = default(List), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Client.Client.RequestOptions localVarRequestOptions = new Ory.Client.Client.RequestOptions(); @@ -2963,9 +2991,9 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "consistency", consistency)); } - if (idsFilter != null) + if (ids != null) { - localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("multi", "ids_filter", idsFilter)); + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("multi", "ids", ids)); } if (credentialsIdentifier != null) { @@ -2975,6 +3003,10 @@ public Ory.Client.Client.ApiResponse GetIdentitySchemaWithHttpInfo(strin { localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("", "preview_credentials_identifier_similar", previewCredentialsIdentifierSimilar)); } + if (includeCredential != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Client.Client.ClientUtils.ParameterToMultiMap("multi", "include_credential", includeCredential)); + } // authentication (oryAccessToken) required // bearer authentication required diff --git a/clients/client/dotnet/src/Ory.Client/Api/JwkApi.cs b/clients/client/dotnet/src/Ory.Client/Api/JwkApi.cs index bc5336fde3f..70bc7cdef82 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/JwkApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/JwkApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/MetadataApi.cs b/clients/client/dotnet/src/Ory.Client/Api/MetadataApi.cs index ea64b5a978b..2945ffb00e7 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/MetadataApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/MetadataApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/OAuth2Api.cs b/clients/client/dotnet/src/Ory.Client/Api/OAuth2Api.cs index f089ed673ea..8349f1ad5d1 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/OAuth2Api.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/OAuth2Api.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/OidcApi.cs b/clients/client/dotnet/src/Ory.Client/Api/OidcApi.cs index f7ebc22ff26..b180525aaf1 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/OidcApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/OidcApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/PermissionApi.cs b/clients/client/dotnet/src/Ory.Client/Api/PermissionApi.cs index fb5ac9d42c6..b87c7e9d0eb 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/PermissionApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/PermissionApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -154,7 +154,7 @@ public interface IPermissionApiSync : IApiAccessor /// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// ClientCheckPermissionResult ClientCheckPermissionResult PostCheckPermissionOrError(long? maxDepth = default(long?), ClientPostCheckPermissionOrErrorBody clientPostCheckPermissionOrErrorBody = default(ClientPostCheckPermissionOrErrorBody)); @@ -166,7 +166,7 @@ public interface IPermissionApiSync : IApiAccessor /// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// ApiResponse of ClientCheckPermissionResult ApiResponse PostCheckPermissionOrErrorWithHttpInfo(long? maxDepth = default(long?), ClientPostCheckPermissionOrErrorBody clientPostCheckPermissionOrErrorBody = default(ClientPostCheckPermissionOrErrorBody)); @@ -314,7 +314,7 @@ public interface IPermissionApiAsync : IApiAccessor /// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ClientCheckPermissionResult @@ -327,7 +327,7 @@ public interface IPermissionApiAsync : IApiAccessor /// To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientCheckPermissionResult) @@ -1246,7 +1246,7 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// Check a permission To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// ClientCheckPermissionResult public ClientCheckPermissionResult PostCheckPermissionOrError(long? maxDepth = default(long?), ClientPostCheckPermissionOrErrorBody clientPostCheckPermissionOrErrorBody = default(ClientPostCheckPermissionOrErrorBody)) @@ -1259,7 +1259,7 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// Check a permission To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// ApiResponse of ClientCheckPermissionResult public Ory.Client.Client.ApiResponse PostCheckPermissionOrErrorWithHttpInfo(long? maxDepth = default(long?), ClientPostCheckPermissionOrErrorBody clientPostCheckPermissionOrErrorBody = default(ClientPostCheckPermissionOrErrorBody)) @@ -1318,7 +1318,7 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// Check a permission To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ClientCheckPermissionResult @@ -1332,7 +1332,7 @@ public Ory.Client.Client.ExceptionFactory ExceptionFactory /// Check a permission To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). /// /// Thrown when fails to make API call - /// nolint:deadcode,unused (optional) + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (ClientCheckPermissionResult) diff --git a/clients/client/dotnet/src/Ory.Client/Api/ProjectApi.cs b/clients/client/dotnet/src/Ory.Client/Api/ProjectApi.cs index bb62f759469..f9d951c3831 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/ProjectApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/ProjectApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -205,8 +205,8 @@ public interface IProjectApiSync : IApiAccessor /// /// Thrown when fails to make API call /// - /// List<ClientCloudAccount> - List GetProjectMembers(string project); + /// List<ClientProjectMember> + List GetProjectMembers(string project); /// /// Get all members associated with this project @@ -216,8 +216,8 @@ public interface IProjectApiSync : IApiAccessor /// /// Thrown when fails to make API call /// - /// ApiResponse of List<ClientCloudAccount> - ApiResponse> GetProjectMembersWithHttpInfo(string project); + /// ApiResponse of List<ClientProjectMember> + ApiResponse> GetProjectMembersWithHttpInfo(string project); /// /// /// @@ -227,7 +227,7 @@ public interface IProjectApiSync : IApiAccessor /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// ClientGetProjectMetricsResponse @@ -242,7 +242,7 @@ public interface IProjectApiSync : IApiAccessor /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// ApiResponse of ClientGetProjectMetricsResponse @@ -648,8 +648,8 @@ public interface IProjectApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. - /// Task of List<ClientCloudAccount> - System.Threading.Tasks.Task> GetProjectMembersAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of List<ClientProjectMember> + System.Threading.Tasks.Task> GetProjectMembersAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all members associated with this project @@ -660,8 +660,8 @@ public interface IProjectApiAsync : IApiAccessor /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ClientCloudAccount>) - System.Threading.Tasks.Task>> GetProjectMembersWithHttpInfoAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + /// Task of ApiResponse (List<ClientProjectMember>) + System.Threading.Tasks.Task>> GetProjectMembersWithHttpInfoAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// /// @@ -671,7 +671,7 @@ public interface IProjectApiAsync : IApiAccessor /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// Cancellation Token to cancel the request. @@ -687,7 +687,7 @@ public interface IProjectApiAsync : IApiAccessor /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// Cancellation Token to cancel the request. @@ -2239,10 +2239,10 @@ public Ory.Client.Client.ApiResponse GetProjectWithHttpInfo(strin /// /// Thrown when fails to make API call /// - /// List<ClientCloudAccount> - public List GetProjectMembers(string project) + /// List<ClientProjectMember> + public List GetProjectMembers(string project) { - Ory.Client.Client.ApiResponse> localVarResponse = GetProjectMembersWithHttpInfo(project); + Ory.Client.Client.ApiResponse> localVarResponse = GetProjectMembersWithHttpInfo(project); return localVarResponse.Data; } @@ -2251,8 +2251,8 @@ public List GetProjectMembers(string project) /// /// Thrown when fails to make API call /// - /// ApiResponse of List<ClientCloudAccount> - public Ory.Client.Client.ApiResponse> GetProjectMembersWithHttpInfo(string project) + /// ApiResponse of List<ClientProjectMember> + public Ory.Client.Client.ApiResponse> GetProjectMembersWithHttpInfo(string project) { // verify the required parameter 'project' is set if (project == null) @@ -2292,7 +2292,7 @@ public Ory.Client.Client.ApiResponse> GetProjectMembers } // make the HTTP request - var localVarResponse = this.Client.Get>("/projects/{project}/members", localVarRequestOptions, this.Configuration); + var localVarResponse = this.Client.Get>("/projects/{project}/members", localVarRequestOptions, this.Configuration); if (this.ExceptionFactory != null) { Exception _exception = this.ExceptionFactory("GetProjectMembers", localVarResponse); @@ -2311,10 +2311,10 @@ public Ory.Client.Client.ApiResponse> GetProjectMembers /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. - /// Task of List<ClientCloudAccount> - public async System.Threading.Tasks.Task> GetProjectMembersAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of List<ClientProjectMember> + public async System.Threading.Tasks.Task> GetProjectMembersAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Client.Client.ApiResponse> localVarResponse = await GetProjectMembersWithHttpInfoAsync(project, cancellationToken).ConfigureAwait(false); + Ory.Client.Client.ApiResponse> localVarResponse = await GetProjectMembersWithHttpInfoAsync(project, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2324,8 +2324,8 @@ public Ory.Client.Client.ApiResponse> GetProjectMembers /// Thrown when fails to make API call /// /// Cancellation Token to cancel the request. - /// Task of ApiResponse (List<ClientCloudAccount>) - public async System.Threading.Tasks.Task>> GetProjectMembersWithHttpInfoAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + /// Task of ApiResponse (List<ClientProjectMember>) + public async System.Threading.Tasks.Task>> GetProjectMembersWithHttpInfoAsync(string project, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'project' is set if (project == null) @@ -2366,7 +2366,7 @@ public Ory.Client.Client.ApiResponse> GetProjectMembers } // make the HTTP request - var localVarResponse = await this.AsynchronousClient.GetAsync>("/projects/{project}/members", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); + var localVarResponse = await this.AsynchronousClient.GetAsync>("/projects/{project}/members", localVarRequestOptions, this.Configuration, cancellationToken).ConfigureAwait(false); if (this.ExceptionFactory != null) { @@ -2386,7 +2386,7 @@ public Ory.Client.Client.ApiResponse> GetProjectMembers /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// ClientGetProjectMetricsResponse @@ -2402,7 +2402,7 @@ public ClientGetProjectMetricsResponse GetProjectMetrics(string projectId, strin /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// ApiResponse of ClientGetProjectMetricsResponse @@ -2481,7 +2481,7 @@ public Ory.Client.Client.ApiResponse GetProject /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// Cancellation Token to cancel the request. @@ -2498,7 +2498,7 @@ public Ory.Client.Client.ApiResponse GetProject /// Thrown when fails to make API call /// Project ID /// The event type to query for - /// The resolution of the buckets The minimum resolution is 1 hour. + /// The resolution of the buckets The minimum resolution is 1 minute. /// The start RFC3339 date of the time window /// The end RFC3339 date of the time window /// Cancellation Token to cancel the request. diff --git a/clients/client/dotnet/src/Ory.Client/Api/RelationshipApi.cs b/clients/client/dotnet/src/Ory.Client/Api/RelationshipApi.cs index 3f6e02578df..aa8238f2712 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/RelationshipApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/RelationshipApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Api/WellknownApi.cs b/clients/client/dotnet/src/Ory.Client/Api/WellknownApi.cs index f6a6b3ab0c2..2df18ba1a1e 100644 --- a/clients/client/dotnet/src/Ory.Client/Api/WellknownApi.cs +++ b/clients/client/dotnet/src/Ory.Client/Api/WellknownApi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/ApiClient.cs b/clients/client/dotnet/src/Ory.Client/Client/ApiClient.cs index d040ac43320..42e5aa12471 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/ApiClient.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/ApiException.cs b/clients/client/dotnet/src/Ory.Client/Client/ApiException.cs index 8c62ebdac72..fd1c082c2bd 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/ApiException.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/ApiException.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/ApiResponse.cs b/clients/client/dotnet/src/Ory.Client/Client/ApiResponse.cs index 34079158823..bd49697010e 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/ApiResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/ClientUtils.cs b/clients/client/dotnet/src/Ory.Client/Client/ClientUtils.cs index a127256d744..b53ea9f0f02 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/ClientUtils.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/Configuration.cs b/clients/client/dotnet/src/Ory.Client/Client/Configuration.cs index 829de1965b2..f7781f5ef05 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/Configuration.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/Configuration.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.5.1"; + public const string Version = "1.8.1"; /// /// Identifier for ISO 8601 DateTime Format @@ -107,7 +107,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = "OpenAPI-Generator/1.5.1/csharp"; + UserAgent = "OpenAPI-Generator/1.8.1/csharp"; BasePath = "https://playground.projects.oryapis.com"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -461,8 +461,8 @@ public static string ToDebugReport() string report = "C# SDK (Ory.Client) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: v1.5.1\n"; - report += " SDK Package Version: 1.5.1\n"; + report += " Version of the API: v1.8.1\n"; + report += " SDK Package Version: 1.8.1\n"; return report; } diff --git a/clients/client/dotnet/src/Ory.Client/Client/ExceptionFactory.cs b/clients/client/dotnet/src/Ory.Client/Client/ExceptionFactory.cs index 57e2de58393..de1f0ff3af8 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/ExceptionFactory.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/GlobalConfiguration.cs b/clients/client/dotnet/src/Ory.Client/Client/GlobalConfiguration.cs index 19e97dc8e73..dda03202f68 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/GlobalConfiguration.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/HttpMethod.cs b/clients/client/dotnet/src/Ory.Client/Client/HttpMethod.cs index e2c06cd6725..5c229a041fd 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/HttpMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/IApiAccessor.cs b/clients/client/dotnet/src/Ory.Client/Client/IApiAccessor.cs index 869fb901c9b..6f3b8ce1293 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/IApiAccessor.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/IAsynchronousClient.cs b/clients/client/dotnet/src/Ory.Client/Client/IAsynchronousClient.cs index 8f41ecc022c..1c0b75ef12c 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/IAsynchronousClient.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/IReadableConfiguration.cs b/clients/client/dotnet/src/Ory.Client/Client/IReadableConfiguration.cs index 1e317cdcddf..5772b80865b 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/IReadableConfiguration.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/ISynchronousClient.cs b/clients/client/dotnet/src/Ory.Client/Client/ISynchronousClient.cs index dc16d963db5..b5d1d721370 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/ISynchronousClient.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/Multimap.cs b/clients/client/dotnet/src/Ory.Client/Client/Multimap.cs index 5081cd69fcb..59757e39594 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/Multimap.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/Multimap.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/OpenAPIDateConverter.cs b/clients/client/dotnet/src/Ory.Client/Client/OpenAPIDateConverter.cs index befb281d7ae..964fb0ec640 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/OpenAPIDateConverter.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/RequestOptions.cs b/clients/client/dotnet/src/Ory.Client/Client/RequestOptions.cs index 69016476174..e3d0b1eebb0 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/RequestOptions.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Client/RetryConfiguration.cs b/clients/client/dotnet/src/Ory.Client/Client/RetryConfiguration.cs index cc61b83b318..edf99ca67a1 100644 --- a/clients/client/dotnet/src/Ory.Client/Client/RetryConfiguration.cs +++ b/clients/client/dotnet/src/Ory.Client/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/AbstractOpenAPISchema.cs b/clients/client/dotnet/src/Ory.Client/Model/AbstractOpenAPISchema.cs index f74d87015da..981284ba131 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/AbstractOpenAPISchema.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequest.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequest.cs index c2fc88209e5..9deeb829482 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequest.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,14 +35,16 @@ public partial class ClientAcceptOAuth2ConsentRequest : IEquatable /// Initializes a new instance of the class. /// + /// context. /// grantAccessTokenAudience. /// grantScope. /// handledAt. /// Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.. /// RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.. /// session. - public ClientAcceptOAuth2ConsentRequest(List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), ClientAcceptOAuth2ConsentRequestSession session = default(ClientAcceptOAuth2ConsentRequestSession)) + public ClientAcceptOAuth2ConsentRequest(Object context = default(Object), List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), ClientAcceptOAuth2ConsentRequestSession session = default(ClientAcceptOAuth2ConsentRequestSession)) { + this.Context = context; this.GrantAccessTokenAudience = grantAccessTokenAudience; this.GrantScope = grantScope; this.HandledAt = handledAt; @@ -52,6 +54,12 @@ public partial class ClientAcceptOAuth2ConsentRequest : IEquatable(); } + /// + /// Gets or Sets Context + /// + [DataMember(Name = "context", EmitDefaultValue = false)] + public Object Context { get; set; } + /// /// Gets or Sets GrantAccessTokenAudience /// @@ -104,6 +112,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ClientAcceptOAuth2ConsentRequest {\n"); + sb.Append(" Context: ").Append(Context).Append("\n"); sb.Append(" GrantAccessTokenAudience: ").Append(GrantAccessTokenAudience).Append("\n"); sb.Append(" GrantScope: ").Append(GrantScope).Append("\n"); sb.Append(" HandledAt: ").Append(HandledAt).Append("\n"); @@ -146,6 +155,11 @@ public bool Equals(ClientAcceptOAuth2ConsentRequest input) return false; } return + ( + this.Context == input.Context || + (this.Context != null && + this.Context.Equals(input.Context)) + ) && ( this.GrantAccessTokenAudience == input.GrantAccessTokenAudience || this.GrantAccessTokenAudience != null && @@ -188,6 +202,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Context != null) + { + hashCode = (hashCode * 59) + this.Context.GetHashCode(); + } if (this.GrantAccessTokenAudience != null) { hashCode = (hashCode * 59) + this.GrantAccessTokenAudience.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequestSession.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequestSession.cs index a4cb5927ac2..fbfb05d681d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequestSession.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2ConsentRequestSession.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2LoginRequest.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2LoginRequest.cs index b7e724bc3d1..e53b3f5bb08 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2LoginRequest.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAcceptOAuth2LoginRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientActiveProjectInConsole.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientActiveProjectInConsole.cs index 25986bc7e6f..f5ece89afd5 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientActiveProjectInConsole.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientActiveProjectInConsole.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAttribute.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAttribute.cs index 48ae4edb00a..2e13d0af533 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAttribute.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAttribute.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAttributeFilter.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAttributeFilter.cs index e05cbed6c4a..8d99ba71012 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAttributeFilter.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAttributeFilter.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAttributesCountDatapoint.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAttributesCountDatapoint.cs index 2accf5954ee..06d2496a7eb 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAttributesCountDatapoint.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAttributesCountDatapoint.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientAuthenticatorAssuranceLevel.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientAuthenticatorAssuranceLevel.cs index 08ae890f35a..78b39b329ab 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientAuthenticatorAssuranceLevel.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientAuthenticatorAssuranceLevel.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientBatchPatchIdentitiesResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientBatchPatchIdentitiesResponse.cs index a93c2589b6a..80b4ee35c27 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientBatchPatchIdentitiesResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientBatchPatchIdentitiesResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCheckOplSyntaxResult.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCheckOplSyntaxResult.cs index c3fd93cd7b4..60d1e12473a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCheckOplSyntaxResult.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCheckOplSyntaxResult.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCheckPermissionResult.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCheckPermissionResult.cs index 811cc24f103..38cd1260edf 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCheckPermissionResult.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCheckPermissionResult.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCloudAccount.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCloudAccount.cs index f4763a98ef8..1345319799d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCloudAccount.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCloudAccount.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,13 +35,33 @@ public partial class ClientCloudAccount : IEquatable, IValid /// /// Initializes a new instance of the class. /// - /// email. - /// id. - /// name. + [JsonConstructorAttribute] + protected ClientCloudAccount() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// email (required). + /// id (required). + /// name (required). public ClientCloudAccount(string email = default(string), string id = default(string), string name = default(string)) { + // to ensure "email" is required (not null) + if (email == null) { + throw new ArgumentNullException("email is a required property for ClientCloudAccount and cannot be null"); + } this.Email = email; + // to ensure "id" is required (not null) + if (id == null) { + throw new ArgumentNullException("id is a required property for ClientCloudAccount and cannot be null"); + } this.Id = id; + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for ClientCloudAccount and cannot be null"); + } this.Name = name; this.AdditionalProperties = new Dictionary(); } @@ -49,19 +69,19 @@ public partial class ClientCloudAccount : IEquatable, IValid /// /// Gets or Sets Email /// - [DataMember(Name = "email", EmitDefaultValue = false)] + [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = false)] public string Email { get; set; } /// /// Gets or Sets Id /// - [DataMember(Name = "id", EmitDefaultValue = false)] + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)] public string Id { get; set; } /// /// Gets or Sets Name /// - [DataMember(Name = "name", EmitDefaultValue = false)] + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] public string Name { get; set; } /// diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientConsistencyRequestParameters.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientConsistencyRequestParameters.cs index 588f857adb9..ae7bea86eb6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientConsistencyRequestParameters.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientConsistencyRequestParameters.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWith.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWith.cs index 6a119771c42..e73a894b863 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWith.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWith.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUi.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUi.cs index 0c3b93ea84a..b973a666903 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUi.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUiFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUiFlow.cs index c0597f6c31b..e4effbc8f92 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUiFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithRecoveryUiFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSetOrySessionToken.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSetOrySessionToken.cs index 2d36a7ad352..fafdf29d591 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSetOrySessionToken.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSetOrySessionToken.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUi.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUi.cs index 9a690b8fa32..f1c4f2aaa76 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUi.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUiFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUiFlow.cs index 7d809d286e8..a055f458536 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUiFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithSettingsUiFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUi.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUi.cs index 384f2399e49..f8cc8570850 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUi.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUi.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUiFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUiFlow.cs index 4aebb7b371e..fbd8540de90 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUiFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientContinueWithVerificationUiFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageStatus.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageStatus.cs index 030bbf42819..fe924177cc6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageStatus.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageStatus.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageType.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageType.cs index c8548c3aee2..dc74f0a269c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageType.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCourierMessageType.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateCustomDomainBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateCustomDomainBody.cs index cbf1774fd69..e07cc80cff2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateCustomDomainBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateCustomDomainBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateEventStreamBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateEventStreamBody.cs index 93fc58c569e..b8b1a402efd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateEventStreamBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateEventStreamBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateIdentityBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateIdentityBody.cs index 44134492bdb..08c356e81ae 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateIdentityBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateIdentityBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Client.Model [DataContract(Name = "createIdentityBody")] public partial class ClientCreateIdentityBody : IEquatable, IValidatableObject { + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + /// + /// Enum Active for value: active + /// + [EnumMember(Value = "active")] + Active = 1, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 2 + + } + + + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [DataMember(Name = "state", EmitDefaultValue = false)] + public StateEnum? State { get; set; } /// /// Initializes a new instance of the class. /// @@ -48,10 +76,10 @@ protected ClientCreateIdentityBody() /// Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.. /// RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. (required). - /// state. + /// State is the identity's state. active StateActive inactive StateInactive. /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. (required). /// VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. - public ClientCreateIdentityBody(ClientIdentityWithCredentials credentials = default(ClientIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), List recoveryAddresses = default(List), string schemaId = default(string), ClientIdentityState state = default(ClientIdentityState), Object traits = default(Object), List verifiableAddresses = default(List)) + public ClientCreateIdentityBody(ClientIdentityWithCredentials credentials = default(ClientIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), List recoveryAddresses = default(List), string schemaId = default(string), StateEnum? state = default(StateEnum?), Object traits = default(Object), List verifiableAddresses = default(List)) { // to ensure "schemaId" is required (not null) if (schemaId == null) { @@ -106,12 +134,6 @@ protected ClientCreateIdentityBody() [DataMember(Name = "schema_id", IsRequired = true, EmitDefaultValue = false)] public string SchemaId { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", EmitDefaultValue = false)] - public ClientIdentityState State { get; set; } - /// /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. /// @@ -212,8 +234,7 @@ public bool Equals(ClientCreateIdentityBody input) ) && ( this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + this.State.Equals(input.State) ) && ( this.Traits == input.Traits || @@ -258,10 +279,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SchemaId.GetHashCode(); } - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } + hashCode = (hashCode * 59) + this.State.GetHashCode(); if (this.Traits != null) { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateInviteResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateInviteResponse.cs index 2dd9eb7fa8e..a0a9b1af283 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateInviteResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateInviteResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateJsonWebKeySet.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateJsonWebKeySet.cs index 160bb0a67ff..f0a3f29db76 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateJsonWebKeySet.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateJsonWebKeySet.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBody.cs index 0572ffb181a..031d48b9ec5 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Client.Model [DataContract(Name = "createProjectBody")] public partial class ClientCreateProjectBody : IEquatable, IValidatableObject { + /// + /// The environment of the project. prod Production dev Development + /// + /// The environment of the project. prod Production dev Development + [JsonConverter(typeof(StringEnumConverter))] + public enum EnvironmentEnum + { + /// + /// Enum Prod for value: prod + /// + [EnumMember(Value = "prod")] + Prod = 1, + + /// + /// Enum Dev for value: dev + /// + [EnumMember(Value = "dev")] + Dev = 2 + + } + + + /// + /// The environment of the project. prod Production dev Development + /// + /// The environment of the project. prod Production dev Development + [DataMember(Name = "environment", IsRequired = true, EmitDefaultValue = false)] + public EnvironmentEnum Environment { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,10 +71,12 @@ protected ClientCreateProjectBody() /// /// Initializes a new instance of the class. /// + /// The environment of the project. prod Production dev Development (required). /// The name of the project to be created (required). /// workspaceId. - public ClientCreateProjectBody(string name = default(string), string workspaceId = default(string)) + public ClientCreateProjectBody(EnvironmentEnum environment = default(EnvironmentEnum), string name = default(string), string workspaceId = default(string)) { + this.Environment = environment; // to ensure "name" is required (not null) if (name == null) { throw new ArgumentNullException("name is a required property for ClientCreateProjectBody and cannot be null"); @@ -83,6 +113,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class ClientCreateProjectBody {\n"); + sb.Append(" Environment: ").Append(Environment).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); sb.Append(" WorkspaceId: ").Append(WorkspaceId).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -121,6 +152,10 @@ public bool Equals(ClientCreateProjectBody input) return false; } return + ( + this.Environment == input.Environment || + this.Environment.Equals(input.Environment) + ) && ( this.Name == input.Name || (this.Name != null && @@ -143,6 +178,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + hashCode = (hashCode * 59) + this.Environment.GetHashCode(); if (this.Name != null) { hashCode = (hashCode * 59) + this.Name.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBranding.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBranding.cs index ac6acb378eb..e5727d2a4c7 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBranding.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectBranding.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectMemberInviteBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectMemberInviteBody.cs index 203cda000d2..3afd60c4630 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectMemberInviteBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectMemberInviteBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectNormalizedPayload.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectNormalizedPayload.cs index abbf4522570..c375b78f796 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectNormalizedPayload.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateProjectNormalizedPayload.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -29,9 +29,37 @@ namespace Ory.Client.Model /// /// Create project (normalized) request payload /// - [DataContract(Name = "createProjectNormalizedPayload")] + [DataContract(Name = "CreateProjectNormalizedPayload")] public partial class ClientCreateProjectNormalizedPayload : IEquatable, IValidatableObject { + /// + /// prod Production dev Development + /// + /// prod Production dev Development + [JsonConverter(typeof(StringEnumConverter))] + public enum EnvironmentEnum + { + /// + /// Enum Prod for value: prod + /// + [EnumMember(Value = "prod")] + Prod = 1, + + /// + /// Enum Dev for value: dev + /// + [EnumMember(Value = "dev")] + Dev = 2 + + } + + + /// + /// prod Production dev Development + /// + /// prod Production dev Development + [DataMember(Name = "environment", IsRequired = true, EmitDefaultValue = false)] + public EnvironmentEnum Environment { get; set; } /// /// Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens This governs the \"strategies.access_token\" setting. opaque Oauth2AccessTokenStrategyOpaque jwt Oauth2AccessTokenStrategyJwt /// @@ -156,12 +184,15 @@ protected ClientCreateProjectNormalizedPayload() /// Initializes a new instance of the class. /// /// Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.. + /// Whether the new account experience is enabled and reachable.. + /// prod Production dev Development (required). /// hydraOauth2AllowedTopLevelClaims. /// Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting.. /// Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting.. /// Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting.. /// Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting.. /// Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. (default to "720h"). + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.. /// Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.. /// Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting.. /// Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting.. @@ -219,6 +250,7 @@ protected ClientCreateProjectNormalizedPayload() /// Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting.. /// Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting.. /// Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting.. + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.. /// Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. /// Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting.. /// Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. @@ -304,6 +336,7 @@ protected ClientCreateProjectNormalizedPayload() /// Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode. /// Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.. /// Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.. + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.. /// Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.. /// Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting.. /// Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting.. @@ -341,14 +374,16 @@ protected ClientCreateProjectNormalizedPayload() /// Enable CORS headers on all public APIs This governs the \"serve.public.cors.enabled\" setting.. /// Whether the project should employ strict security measures. Setting this to true is recommended for going into production.. /// workspaceId. - public ClientCreateProjectNormalizedPayload(bool disableAccountExperienceWelcomeScreen = default(bool), List hydraOauth2AllowedTopLevelClaims = default(List), bool hydraOauth2ClientCredentialsDefaultGrantAllowedScope = default(bool), bool hydraOauth2ExcludeNotBeforeClaim = default(bool), bool hydraOauth2GrantJwtIatOptional = default(bool), bool hydraOauth2GrantJwtJtiOptional = default(bool), string hydraOauth2GrantJwtMaxTtl = "720h", bool hydraOauth2PkceEnforced = default(bool), bool hydraOauth2PkceEnforcedForPublicClients = default(bool), string hydraOauth2RefreshTokenHook = default(string), string hydraOauth2TokenHook = default(string), List hydraOidcDynamicClientRegistrationDefaultScope = default(List), bool hydraOidcDynamicClientRegistrationEnabled = default(bool), string hydraOidcSubjectIdentifiersPairwiseSalt = default(string), List hydraOidcSubjectIdentifiersSupportedTypes = default(List), List hydraSecretsCookie = default(List), List hydraSecretsSystem = default(List), bool hydraServeCookiesSameSiteLegacyWorkaround = default(bool), string hydraServeCookiesSameSiteMode = default(string), HydraStrategiesAccessTokenEnum? hydraStrategiesAccessToken = HydraStrategiesAccessTokenEnum.Opaque, HydraStrategiesScopeEnum? hydraStrategiesScope = HydraStrategiesScopeEnum.Wildcard, string hydraTtlAccessToken = "30m", string hydraTtlAuthCode = "720h", string hydraTtlIdToken = "30m", string hydraTtlLoginConsentRequest = "30m", string hydraTtlRefreshToken = "720h", string hydraUrlsConsent = default(string), string hydraUrlsError = default(string), string hydraUrlsLogin = default(string), string hydraUrlsLogout = default(string), string hydraUrlsPostLogoutRedirect = default(string), string hydraUrlsRegistration = default(string), string hydraUrlsSelfIssuer = default(string), List hydraWebfingerJwksBroadcastKeys = default(List), string hydraWebfingerOidcDiscoveryAuthUrl = default(string), string hydraWebfingerOidcDiscoveryClientRegistrationUrl = default(string), string hydraWebfingerOidcDiscoveryJwksUrl = default(string), List hydraWebfingerOidcDiscoverySupportedClaims = default(List), List hydraWebfingerOidcDiscoverySupportedScope = default(List), string hydraWebfingerOidcDiscoveryTokenUrl = default(string), string hydraWebfingerOidcDiscoveryUserinfoUrl = default(string), string ketoNamespaceConfiguration = default(string), List ketoNamespaces = default(List), string kratosCookiesSameSite = default(string), List kratosCourierChannels = default(List), string kratosCourierDeliveryStrategy = "smtp", string kratosCourierHttpRequestConfigAuthApiKeyIn = default(string), string kratosCourierHttpRequestConfigAuthApiKeyName = default(string), string kratosCourierHttpRequestConfigAuthApiKeyValue = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthPassword = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthUser = default(string), string kratosCourierHttpRequestConfigAuthType = "empty (no authentication)", string kratosCourierHttpRequestConfigBody = default(string), Object kratosCourierHttpRequestConfigHeaders = default(Object), string kratosCourierHttpRequestConfigMethod = "POST", string kratosCourierHttpRequestConfigUrl = default(string), string kratosCourierSmtpConnectionUri = default(string), string kratosCourierSmtpFromAddress = default(string), string kratosCourierSmtpFromName = default(string), Object kratosCourierSmtpHeaders = default(Object), string kratosCourierSmtpLocalName = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesLoginCodeValidEmailSubject = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailSubject = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryValidEmailSubject = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationValidEmailSubject = default(string), bool kratosFeatureFlagsCacheableSessions = default(bool), bool kratosFeatureFlagsUseContinueWithTransitions = default(bool), List kratosIdentitySchemas = default(List), Object kratosOauth2ProviderHeaders = default(Object), bool kratosOauth2ProviderOverrideReturnTo = default(bool), string kratosOauth2ProviderUrl = default(string), string kratosPreviewDefaultReadConsistencyLevel = default(string), List kratosSecretsCipher = default(List), List kratosSecretsCookie = default(List), List kratosSecretsDefault = default(List), List kratosSelfserviceAllowedReturnUrls = default(List), string kratosSelfserviceDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsErrorUiUrl = default(string), string kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginLifespan = default(string), string kratosSelfserviceFlowsLoginUiUrl = default(string), string kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRecoveryEnabled = default(bool), string kratosSelfserviceFlowsRecoveryLifespan = default(string), bool kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsRecoveryUiUrl = default(string), KratosSelfserviceFlowsRecoveryUseEnum? kratosSelfserviceFlowsRecoveryUse = default(KratosSelfserviceFlowsRecoveryUseEnum?), string kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRegistrationEnabled = default(bool), string kratosSelfserviceFlowsRegistrationLifespan = default(string), bool kratosSelfserviceFlowsRegistrationLoginHints = default(bool), string kratosSelfserviceFlowsRegistrationUiUrl = default(string), string kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsLifespan = default(string), string kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge = default(string), string kratosSelfserviceFlowsSettingsRequiredAal = default(string), string kratosSelfserviceFlowsSettingsUiUrl = default(string), string kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsVerificationEnabled = default(bool), string kratosSelfserviceFlowsVerificationLifespan = default(string), bool kratosSelfserviceFlowsVerificationNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsVerificationUiUrl = default(string), KratosSelfserviceFlowsVerificationUseEnum? kratosSelfserviceFlowsVerificationUse = default(KratosSelfserviceFlowsVerificationUseEnum?), string kratosSelfserviceMethodsCodeConfigLifespan = default(string), bool kratosSelfserviceMethodsCodeEnabled = default(bool), bool kratosSelfserviceMethodsCodePasswordlessEnabled = default(bool), string kratosSelfserviceMethodsLinkConfigBaseUrl = default(string), string kratosSelfserviceMethodsLinkConfigLifespan = default(string), bool kratosSelfserviceMethodsLinkEnabled = default(bool), bool kratosSelfserviceMethodsLookupSecretEnabled = default(bool), string kratosSelfserviceMethodsOidcConfigBaseRedirectUri = default(string), List kratosSelfserviceMethodsOidcConfigProviders = default(List), bool kratosSelfserviceMethodsOidcEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors = default(bool), long kratosSelfserviceMethodsPasswordConfigMaxBreaches = default(long), long kratosSelfserviceMethodsPasswordConfigMinPasswordLength = default(long), bool kratosSelfserviceMethodsPasswordEnabled = default(bool), bool kratosSelfserviceMethodsProfileEnabled = default(bool), string kratosSelfserviceMethodsTotpConfigIssuer = default(string), bool kratosSelfserviceMethodsTotpEnabled = default(bool), bool kratosSelfserviceMethodsWebauthnConfigPasswordless = default(bool), string kratosSelfserviceMethodsWebauthnConfigRpDisplayName = default(string), string kratosSelfserviceMethodsWebauthnConfigRpIcon = default(string), string kratosSelfserviceMethodsWebauthnConfigRpId = default(string), List kratosSelfserviceMethodsWebauthnConfigRpOrigins = default(List), bool kratosSelfserviceMethodsWebauthnEnabled = default(bool), bool kratosSessionCookiePersistent = default(bool), string kratosSessionCookieSameSite = default(string), string kratosSessionLifespan = default(string), string kratosSessionWhoamiRequiredAal = default(string), List kratosSessionWhoamiTokenizerTemplates = default(List), string name = default(string), string projectId = default(string), List projectRevisionHooks = default(List), List serveAdminCorsAllowedOrigins = default(List), bool serveAdminCorsEnabled = default(bool), List servePublicCorsAllowedOrigins = default(List), bool servePublicCorsEnabled = default(bool), bool strictSecurity = default(bool), string workspaceId = default(string)) + public ClientCreateProjectNormalizedPayload(bool disableAccountExperienceWelcomeScreen = default(bool), bool enableAxV2 = default(bool), EnvironmentEnum environment = default(EnvironmentEnum), List hydraOauth2AllowedTopLevelClaims = default(List), bool hydraOauth2ClientCredentialsDefaultGrantAllowedScope = default(bool), bool hydraOauth2ExcludeNotBeforeClaim = default(bool), bool hydraOauth2GrantJwtIatOptional = default(bool), bool hydraOauth2GrantJwtJtiOptional = default(bool), string hydraOauth2GrantJwtMaxTtl = "720h", bool hydraOauth2MirrorTopLevelClaims = default(bool), bool hydraOauth2PkceEnforced = default(bool), bool hydraOauth2PkceEnforcedForPublicClients = default(bool), string hydraOauth2RefreshTokenHook = default(string), string hydraOauth2TokenHook = default(string), List hydraOidcDynamicClientRegistrationDefaultScope = default(List), bool hydraOidcDynamicClientRegistrationEnabled = default(bool), string hydraOidcSubjectIdentifiersPairwiseSalt = default(string), List hydraOidcSubjectIdentifiersSupportedTypes = default(List), List hydraSecretsCookie = default(List), List hydraSecretsSystem = default(List), bool hydraServeCookiesSameSiteLegacyWorkaround = default(bool), string hydraServeCookiesSameSiteMode = default(string), HydraStrategiesAccessTokenEnum? hydraStrategiesAccessToken = HydraStrategiesAccessTokenEnum.Opaque, HydraStrategiesScopeEnum? hydraStrategiesScope = HydraStrategiesScopeEnum.Wildcard, string hydraTtlAccessToken = "30m", string hydraTtlAuthCode = "720h", string hydraTtlIdToken = "30m", string hydraTtlLoginConsentRequest = "30m", string hydraTtlRefreshToken = "720h", string hydraUrlsConsent = default(string), string hydraUrlsError = default(string), string hydraUrlsLogin = default(string), string hydraUrlsLogout = default(string), string hydraUrlsPostLogoutRedirect = default(string), string hydraUrlsRegistration = default(string), string hydraUrlsSelfIssuer = default(string), List hydraWebfingerJwksBroadcastKeys = default(List), string hydraWebfingerOidcDiscoveryAuthUrl = default(string), string hydraWebfingerOidcDiscoveryClientRegistrationUrl = default(string), string hydraWebfingerOidcDiscoveryJwksUrl = default(string), List hydraWebfingerOidcDiscoverySupportedClaims = default(List), List hydraWebfingerOidcDiscoverySupportedScope = default(List), string hydraWebfingerOidcDiscoveryTokenUrl = default(string), string hydraWebfingerOidcDiscoveryUserinfoUrl = default(string), string ketoNamespaceConfiguration = default(string), List ketoNamespaces = default(List), string kratosCookiesSameSite = default(string), List kratosCourierChannels = default(List), string kratosCourierDeliveryStrategy = "smtp", string kratosCourierHttpRequestConfigAuthApiKeyIn = default(string), string kratosCourierHttpRequestConfigAuthApiKeyName = default(string), string kratosCourierHttpRequestConfigAuthApiKeyValue = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthPassword = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthUser = default(string), string kratosCourierHttpRequestConfigAuthType = "empty (no authentication)", string kratosCourierHttpRequestConfigBody = default(string), Object kratosCourierHttpRequestConfigHeaders = default(Object), string kratosCourierHttpRequestConfigMethod = "POST", string kratosCourierHttpRequestConfigUrl = default(string), string kratosCourierSmtpConnectionUri = default(string), string kratosCourierSmtpFromAddress = default(string), string kratosCourierSmtpFromName = default(string), Object kratosCourierSmtpHeaders = default(Object), string kratosCourierSmtpLocalName = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesLoginCodeValidEmailSubject = default(string), string kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailSubject = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryValidEmailSubject = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationValidEmailSubject = default(string), bool kratosFeatureFlagsCacheableSessions = default(bool), bool kratosFeatureFlagsUseContinueWithTransitions = default(bool), List kratosIdentitySchemas = default(List), Object kratosOauth2ProviderHeaders = default(Object), bool kratosOauth2ProviderOverrideReturnTo = default(bool), string kratosOauth2ProviderUrl = default(string), string kratosPreviewDefaultReadConsistencyLevel = default(string), List kratosSecretsCipher = default(List), List kratosSecretsCookie = default(List), List kratosSecretsDefault = default(List), List kratosSelfserviceAllowedReturnUrls = default(List), string kratosSelfserviceDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsErrorUiUrl = default(string), string kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginLifespan = default(string), string kratosSelfserviceFlowsLoginUiUrl = default(string), string kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRecoveryEnabled = default(bool), string kratosSelfserviceFlowsRecoveryLifespan = default(string), bool kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsRecoveryUiUrl = default(string), KratosSelfserviceFlowsRecoveryUseEnum? kratosSelfserviceFlowsRecoveryUse = default(KratosSelfserviceFlowsRecoveryUseEnum?), string kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRegistrationEnabled = default(bool), string kratosSelfserviceFlowsRegistrationLifespan = default(string), bool kratosSelfserviceFlowsRegistrationLoginHints = default(bool), string kratosSelfserviceFlowsRegistrationUiUrl = default(string), string kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsLifespan = default(string), string kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge = default(string), string kratosSelfserviceFlowsSettingsRequiredAal = default(string), string kratosSelfserviceFlowsSettingsUiUrl = default(string), string kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsVerificationEnabled = default(bool), string kratosSelfserviceFlowsVerificationLifespan = default(string), bool kratosSelfserviceFlowsVerificationNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsVerificationUiUrl = default(string), KratosSelfserviceFlowsVerificationUseEnum? kratosSelfserviceFlowsVerificationUse = default(KratosSelfserviceFlowsVerificationUseEnum?), string kratosSelfserviceMethodsCodeConfigLifespan = default(string), bool kratosSelfserviceMethodsCodeEnabled = default(bool), bool kratosSelfserviceMethodsCodeMfaEnabled = default(bool), bool kratosSelfserviceMethodsCodePasswordlessEnabled = default(bool), string kratosSelfserviceMethodsLinkConfigBaseUrl = default(string), string kratosSelfserviceMethodsLinkConfigLifespan = default(string), bool kratosSelfserviceMethodsLinkEnabled = default(bool), bool kratosSelfserviceMethodsLookupSecretEnabled = default(bool), string kratosSelfserviceMethodsOidcConfigBaseRedirectUri = default(string), List kratosSelfserviceMethodsOidcConfigProviders = default(List), bool kratosSelfserviceMethodsOidcEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors = default(bool), long kratosSelfserviceMethodsPasswordConfigMaxBreaches = default(long), long kratosSelfserviceMethodsPasswordConfigMinPasswordLength = default(long), bool kratosSelfserviceMethodsPasswordEnabled = default(bool), bool kratosSelfserviceMethodsProfileEnabled = default(bool), string kratosSelfserviceMethodsTotpConfigIssuer = default(string), bool kratosSelfserviceMethodsTotpEnabled = default(bool), bool kratosSelfserviceMethodsWebauthnConfigPasswordless = default(bool), string kratosSelfserviceMethodsWebauthnConfigRpDisplayName = default(string), string kratosSelfserviceMethodsWebauthnConfigRpIcon = default(string), string kratosSelfserviceMethodsWebauthnConfigRpId = default(string), List kratosSelfserviceMethodsWebauthnConfigRpOrigins = default(List), bool kratosSelfserviceMethodsWebauthnEnabled = default(bool), bool kratosSessionCookiePersistent = default(bool), string kratosSessionCookieSameSite = default(string), string kratosSessionLifespan = default(string), string kratosSessionWhoamiRequiredAal = default(string), List kratosSessionWhoamiTokenizerTemplates = default(List), string name = default(string), string projectId = default(string), List projectRevisionHooks = default(List), List serveAdminCorsAllowedOrigins = default(List), bool serveAdminCorsEnabled = default(bool), List servePublicCorsAllowedOrigins = default(List), bool servePublicCorsEnabled = default(bool), bool strictSecurity = default(bool), string workspaceId = default(string)) { + this.Environment = environment; // to ensure "name" is required (not null) if (name == null) { throw new ArgumentNullException("name is a required property for ClientCreateProjectNormalizedPayload and cannot be null"); } this.Name = name; this.DisableAccountExperienceWelcomeScreen = disableAccountExperienceWelcomeScreen; + this.EnableAxV2 = enableAxV2; this.HydraOauth2AllowedTopLevelClaims = hydraOauth2AllowedTopLevelClaims; this.HydraOauth2ClientCredentialsDefaultGrantAllowedScope = hydraOauth2ClientCredentialsDefaultGrantAllowedScope; this.HydraOauth2ExcludeNotBeforeClaim = hydraOauth2ExcludeNotBeforeClaim; @@ -356,6 +391,7 @@ protected ClientCreateProjectNormalizedPayload() this.HydraOauth2GrantJwtJtiOptional = hydraOauth2GrantJwtJtiOptional; // use default value if no "hydraOauth2GrantJwtMaxTtl" provided this.HydraOauth2GrantJwtMaxTtl = hydraOauth2GrantJwtMaxTtl ?? "720h"; + this.HydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; this.HydraOauth2PkceEnforced = hydraOauth2PkceEnforced; this.HydraOauth2PkceEnforcedForPublicClients = hydraOauth2PkceEnforcedForPublicClients; this.HydraOauth2RefreshTokenHook = hydraOauth2RefreshTokenHook; @@ -421,6 +457,7 @@ protected ClientCreateProjectNormalizedPayload() this.KratosCourierTemplatesLoginCodeValidEmailBodyHtml = kratosCourierTemplatesLoginCodeValidEmailBodyHtml; this.KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext = kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext; this.KratosCourierTemplatesLoginCodeValidEmailSubject = kratosCourierTemplatesLoginCodeValidEmailSubject; + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext; this.KratosCourierTemplatesRecoveryCodeInvalidEmailSubject = kratosCourierTemplatesRecoveryCodeInvalidEmailSubject; @@ -506,6 +543,7 @@ protected ClientCreateProjectNormalizedPayload() this.KratosSelfserviceFlowsVerificationUse = kratosSelfserviceFlowsVerificationUse; this.KratosSelfserviceMethodsCodeConfigLifespan = kratosSelfserviceMethodsCodeConfigLifespan; this.KratosSelfserviceMethodsCodeEnabled = kratosSelfserviceMethodsCodeEnabled; + this.KratosSelfserviceMethodsCodeMfaEnabled = kratosSelfserviceMethodsCodeMfaEnabled; this.KratosSelfserviceMethodsCodePasswordlessEnabled = kratosSelfserviceMethodsCodePasswordlessEnabled; this.KratosSelfserviceMethodsLinkConfigBaseUrl = kratosSelfserviceMethodsLinkConfigBaseUrl; this.KratosSelfserviceMethodsLinkConfigLifespan = kratosSelfserviceMethodsLinkConfigLifespan; @@ -567,6 +605,13 @@ public bool ShouldSerializeCreatedAt() [DataMember(Name = "disable_account_experience_welcome_screen", EmitDefaultValue = true)] public bool DisableAccountExperienceWelcomeScreen { get; set; } + /// + /// Whether the new account experience is enabled and reachable. + /// + /// Whether the new account experience is enabled and reachable. + [DataMember(Name = "enable_ax_v2", EmitDefaultValue = true)] + public bool EnableAxV2 { get; set; } + /// /// Gets or Sets HydraOauth2AllowedTopLevelClaims /// @@ -608,6 +653,13 @@ public bool ShouldSerializeCreatedAt() [DataMember(Name = "hydra_oauth2_grant_jwt_max_ttl", EmitDefaultValue = false)] public string HydraOauth2GrantJwtMaxTtl { get; set; } + /// + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + /// + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + [DataMember(Name = "hydra_oauth2_mirror_top_level_claims", EmitDefaultValue = true)] + public bool HydraOauth2MirrorTopLevelClaims { get; set; } + /// /// Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. /// @@ -999,6 +1051,13 @@ public bool ShouldSerializeId() [DataMember(Name = "kratos_courier_templates_login_code_valid_email_subject", EmitDefaultValue = false)] public string KratosCourierTemplatesLoginCodeValidEmailSubject { get; set; } + /// + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + /// + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + [DataMember(Name = "kratos_courier_templates_login_code_valid_sms_body_plaintext", EmitDefaultValue = false)] + public string KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext { get; set; } + /// /// Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. /// @@ -1575,6 +1634,13 @@ public bool ShouldSerializeId() [DataMember(Name = "kratos_selfservice_methods_code_enabled", EmitDefaultValue = true)] public bool KratosSelfserviceMethodsCodeEnabled { get; set; } + /// + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + /// + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + [DataMember(Name = "kratos_selfservice_methods_code_mfa_enabled", EmitDefaultValue = true)] + public bool KratosSelfserviceMethodsCodeMfaEnabled { get; set; } + /// /// Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. /// @@ -1858,12 +1924,15 @@ public override string ToString() sb.Append("class ClientCreateProjectNormalizedPayload {\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" DisableAccountExperienceWelcomeScreen: ").Append(DisableAccountExperienceWelcomeScreen).Append("\n"); + sb.Append(" EnableAxV2: ").Append(EnableAxV2).Append("\n"); + sb.Append(" Environment: ").Append(Environment).Append("\n"); sb.Append(" HydraOauth2AllowedTopLevelClaims: ").Append(HydraOauth2AllowedTopLevelClaims).Append("\n"); sb.Append(" HydraOauth2ClientCredentialsDefaultGrantAllowedScope: ").Append(HydraOauth2ClientCredentialsDefaultGrantAllowedScope).Append("\n"); sb.Append(" HydraOauth2ExcludeNotBeforeClaim: ").Append(HydraOauth2ExcludeNotBeforeClaim).Append("\n"); sb.Append(" HydraOauth2GrantJwtIatOptional: ").Append(HydraOauth2GrantJwtIatOptional).Append("\n"); sb.Append(" HydraOauth2GrantJwtJtiOptional: ").Append(HydraOauth2GrantJwtJtiOptional).Append("\n"); sb.Append(" HydraOauth2GrantJwtMaxTtl: ").Append(HydraOauth2GrantJwtMaxTtl).Append("\n"); + sb.Append(" HydraOauth2MirrorTopLevelClaims: ").Append(HydraOauth2MirrorTopLevelClaims).Append("\n"); sb.Append(" HydraOauth2PkceEnforced: ").Append(HydraOauth2PkceEnforced).Append("\n"); sb.Append(" HydraOauth2PkceEnforcedForPublicClients: ").Append(HydraOauth2PkceEnforcedForPublicClients).Append("\n"); sb.Append(" HydraOauth2RefreshTokenHook: ").Append(HydraOauth2RefreshTokenHook).Append("\n"); @@ -1922,6 +1991,7 @@ public override string ToString() sb.Append(" KratosCourierTemplatesLoginCodeValidEmailBodyHtml: ").Append(KratosCourierTemplatesLoginCodeValidEmailBodyHtml).Append("\n"); sb.Append(" KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext: ").Append(KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext).Append("\n"); sb.Append(" KratosCourierTemplatesLoginCodeValidEmailSubject: ").Append(KratosCourierTemplatesLoginCodeValidEmailSubject).Append("\n"); + sb.Append(" KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext: ").Append(KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext).Append("\n"); sb.Append(" KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: ").Append(KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml).Append("\n"); sb.Append(" KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: ").Append(KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext).Append("\n"); sb.Append(" KratosCourierTemplatesRecoveryCodeInvalidEmailSubject: ").Append(KratosCourierTemplatesRecoveryCodeInvalidEmailSubject).Append("\n"); @@ -2007,6 +2077,7 @@ public override string ToString() sb.Append(" KratosSelfserviceFlowsVerificationUse: ").Append(KratosSelfserviceFlowsVerificationUse).Append("\n"); sb.Append(" KratosSelfserviceMethodsCodeConfigLifespan: ").Append(KratosSelfserviceMethodsCodeConfigLifespan).Append("\n"); sb.Append(" KratosSelfserviceMethodsCodeEnabled: ").Append(KratosSelfserviceMethodsCodeEnabled).Append("\n"); + sb.Append(" KratosSelfserviceMethodsCodeMfaEnabled: ").Append(KratosSelfserviceMethodsCodeMfaEnabled).Append("\n"); sb.Append(" KratosSelfserviceMethodsCodePasswordlessEnabled: ").Append(KratosSelfserviceMethodsCodePasswordlessEnabled).Append("\n"); sb.Append(" KratosSelfserviceMethodsLinkConfigBaseUrl: ").Append(KratosSelfserviceMethodsLinkConfigBaseUrl).Append("\n"); sb.Append(" KratosSelfserviceMethodsLinkConfigLifespan: ").Append(KratosSelfserviceMethodsLinkConfigLifespan).Append("\n"); @@ -2090,6 +2161,14 @@ public bool Equals(ClientCreateProjectNormalizedPayload input) this.DisableAccountExperienceWelcomeScreen == input.DisableAccountExperienceWelcomeScreen || this.DisableAccountExperienceWelcomeScreen.Equals(input.DisableAccountExperienceWelcomeScreen) ) && + ( + this.EnableAxV2 == input.EnableAxV2 || + this.EnableAxV2.Equals(input.EnableAxV2) + ) && + ( + this.Environment == input.Environment || + this.Environment.Equals(input.Environment) + ) && ( this.HydraOauth2AllowedTopLevelClaims == input.HydraOauth2AllowedTopLevelClaims || this.HydraOauth2AllowedTopLevelClaims != null && @@ -2117,6 +2196,10 @@ public bool Equals(ClientCreateProjectNormalizedPayload input) (this.HydraOauth2GrantJwtMaxTtl != null && this.HydraOauth2GrantJwtMaxTtl.Equals(input.HydraOauth2GrantJwtMaxTtl)) ) && + ( + this.HydraOauth2MirrorTopLevelClaims == input.HydraOauth2MirrorTopLevelClaims || + this.HydraOauth2MirrorTopLevelClaims.Equals(input.HydraOauth2MirrorTopLevelClaims) + ) && ( this.HydraOauth2PkceEnforced == input.HydraOauth2PkceEnforced || this.HydraOauth2PkceEnforced.Equals(input.HydraOauth2PkceEnforced) @@ -2410,6 +2493,11 @@ public bool Equals(ClientCreateProjectNormalizedPayload input) (this.KratosCourierTemplatesLoginCodeValidEmailSubject != null && this.KratosCourierTemplatesLoginCodeValidEmailSubject.Equals(input.KratosCourierTemplatesLoginCodeValidEmailSubject)) ) && + ( + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext == input.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext || + (this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext != null && + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext.Equals(input.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext)) + ) && ( this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml == input.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml || (this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml != null && @@ -2828,6 +2916,10 @@ public bool Equals(ClientCreateProjectNormalizedPayload input) this.KratosSelfserviceMethodsCodeEnabled == input.KratosSelfserviceMethodsCodeEnabled || this.KratosSelfserviceMethodsCodeEnabled.Equals(input.KratosSelfserviceMethodsCodeEnabled) ) && + ( + this.KratosSelfserviceMethodsCodeMfaEnabled == input.KratosSelfserviceMethodsCodeMfaEnabled || + this.KratosSelfserviceMethodsCodeMfaEnabled.Equals(input.KratosSelfserviceMethodsCodeMfaEnabled) + ) && ( this.KratosSelfserviceMethodsCodePasswordlessEnabled == input.KratosSelfserviceMethodsCodePasswordlessEnabled || this.KratosSelfserviceMethodsCodePasswordlessEnabled.Equals(input.KratosSelfserviceMethodsCodePasswordlessEnabled) @@ -3023,6 +3115,8 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } hashCode = (hashCode * 59) + this.DisableAccountExperienceWelcomeScreen.GetHashCode(); + hashCode = (hashCode * 59) + this.EnableAxV2.GetHashCode(); + hashCode = (hashCode * 59) + this.Environment.GetHashCode(); if (this.HydraOauth2AllowedTopLevelClaims != null) { hashCode = (hashCode * 59) + this.HydraOauth2AllowedTopLevelClaims.GetHashCode(); @@ -3035,6 +3129,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.HydraOauth2GrantJwtMaxTtl.GetHashCode(); } + hashCode = (hashCode * 59) + this.HydraOauth2MirrorTopLevelClaims.GetHashCode(); hashCode = (hashCode * 59) + this.HydraOauth2PkceEnforced.GetHashCode(); hashCode = (hashCode * 59) + this.HydraOauth2PkceEnforcedForPublicClients.GetHashCode(); if (this.HydraOauth2RefreshTokenHook != null) @@ -3249,6 +3344,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.KratosCourierTemplatesLoginCodeValidEmailSubject.GetHashCode(); } + if (this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext != null) + { + hashCode = (hashCode * 59) + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext.GetHashCode(); + } if (this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml != null) { hashCode = (hashCode * 59) + this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml.GetHashCode(); @@ -3553,6 +3652,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodeConfigLifespan.GetHashCode(); } hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodeEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodeMfaEnabled.GetHashCode(); hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodePasswordlessEnabled.GetHashCode(); if (this.KratosSelfserviceMethodsLinkConfigBaseUrl != null) { diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryCodeForIdentityBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryCodeForIdentityBody.cs index e1b9c796fa4..c2404beecca 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryCodeForIdentityBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryCodeForIdentityBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryLinkForIdentityBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryLinkForIdentityBody.cs index d5489d1a6ae..a11ff2c5f3a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryLinkForIdentityBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRecoveryLinkForIdentityBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRelationshipBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRelationshipBody.cs index b3b6bde3ed8..8ca47ede190 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRelationshipBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateRelationshipBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionBody.cs index cdc068868ea..43580d0d876 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Ory.Client.Model { /// - /// Create Subscription Request Body + /// ClientCreateSubscriptionBody /// [DataContract(Name = "createSubscriptionBody")] public partial class ClientCreateSubscriptionBody : IEquatable, IValidatableObject @@ -102,10 +102,9 @@ protected ClientCreateSubscriptionBody() /// usd USD eur Euro. /// monthly Monthly yearly Yearly (required). /// plan (required). - /// provisionFirstProject. + /// provisionFirstProject (required). /// returnTo. - /// workspace. - public ClientCreateSubscriptionBody(CurrencyEnum? currency = default(CurrencyEnum?), IntervalEnum interval = default(IntervalEnum), string plan = default(string), string provisionFirstProject = default(string), string returnTo = default(string), string workspace = default(string)) + public ClientCreateSubscriptionBody(CurrencyEnum? currency = default(CurrencyEnum?), IntervalEnum interval = default(IntervalEnum), string plan = default(string), string provisionFirstProject = default(string), string returnTo = default(string)) { this.Interval = interval; // to ensure "plan" is required (not null) @@ -113,10 +112,13 @@ protected ClientCreateSubscriptionBody() throw new ArgumentNullException("plan is a required property for ClientCreateSubscriptionBody and cannot be null"); } this.Plan = plan; - this.Currency = currency; + // to ensure "provisionFirstProject" is required (not null) + if (provisionFirstProject == null) { + throw new ArgumentNullException("provisionFirstProject is a required property for ClientCreateSubscriptionBody and cannot be null"); + } this.ProvisionFirstProject = provisionFirstProject; + this.Currency = currency; this.ReturnTo = returnTo; - this.Workspace = workspace; this.AdditionalProperties = new Dictionary(); } @@ -129,7 +131,7 @@ protected ClientCreateSubscriptionBody() /// /// Gets or Sets ProvisionFirstProject /// - [DataMember(Name = "provision_first_project", EmitDefaultValue = true)] + [DataMember(Name = "provision_first_project", IsRequired = true, EmitDefaultValue = false)] public string ProvisionFirstProject { get; set; } /// @@ -138,12 +140,6 @@ protected ClientCreateSubscriptionBody() [DataMember(Name = "return_to", EmitDefaultValue = false)] public string ReturnTo { get; set; } - /// - /// Gets or Sets Workspace - /// - [DataMember(Name = "workspace", EmitDefaultValue = true)] - public string Workspace { get; set; } - /// /// Gets or Sets additional properties /// @@ -163,7 +159,6 @@ public override string ToString() sb.Append(" Plan: ").Append(Plan).Append("\n"); sb.Append(" ProvisionFirstProject: ").Append(ProvisionFirstProject).Append("\n"); sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); - sb.Append(" Workspace: ").Append(Workspace).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -222,11 +217,6 @@ public bool Equals(ClientCreateSubscriptionBody input) this.ReturnTo == input.ReturnTo || (this.ReturnTo != null && this.ReturnTo.Equals(input.ReturnTo)) - ) && - ( - this.Workspace == input.Workspace || - (this.Workspace != null && - this.Workspace.Equals(input.Workspace)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -254,10 +244,6 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ReturnTo.GetHashCode(); } - if (this.Workspace != null) - { - hashCode = (hashCode * 59) + this.Workspace.GetHashCode(); - } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalProvisionMockSubscription.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionCommon.cs similarity index 67% rename from clients/client/dotnet/src/Ory.Client/Model/ClientInternalProvisionMockSubscription.cs rename to clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionCommon.cs index 244c220c1d2..c5af7f20eaf 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalProvisionMockSubscription.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateSubscriptionCommon.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,15 +27,15 @@ namespace Ory.Client.Model { /// - /// Internal Provision Mock Subscription Request Body + /// ClientCreateSubscriptionCommon /// - [DataContract(Name = "internalProvisionMockSubscription")] - public partial class ClientInternalProvisionMockSubscription : IEquatable, IValidatableObject + [DataContract(Name = "CreateSubscriptionCommon")] + public partial class ClientCreateSubscriptionCommon : IEquatable, IValidatableObject { /// - /// Currency usd USD eur Euro + /// usd USD eur Euro /// - /// Currency usd USD eur Euro + /// usd USD eur Euro [JsonConverter(typeof(StringEnumConverter))] public enum CurrencyEnum { @@ -55,15 +55,15 @@ public enum CurrencyEnum /// - /// Currency usd USD eur Euro + /// usd USD eur Euro /// - /// Currency usd USD eur Euro - [DataMember(Name = "currency", IsRequired = true, EmitDefaultValue = false)] - public CurrencyEnum Currency { get; set; } + /// usd USD eur Euro + [DataMember(Name = "currency", EmitDefaultValue = false)] + public CurrencyEnum? Currency { get; set; } /// - /// Billing Interval monthly Monthly yearly Yearly + /// monthly Monthly yearly Yearly /// - /// Billing Interval monthly Monthly yearly Yearly + /// monthly Monthly yearly Yearly [JsonConverter(typeof(StringEnumConverter))] public enum IntervalEnum { @@ -83,56 +83,50 @@ public enum IntervalEnum /// - /// Billing Interval monthly Monthly yearly Yearly + /// monthly Monthly yearly Yearly /// - /// Billing Interval monthly Monthly yearly Yearly + /// monthly Monthly yearly Yearly [DataMember(Name = "interval", IsRequired = true, EmitDefaultValue = false)] public IntervalEnum Interval { get; set; } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// [JsonConstructorAttribute] - protected ClientInternalProvisionMockSubscription() + protected ClientCreateSubscriptionCommon() { this.AdditionalProperties = new Dictionary(); } /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Currency usd USD eur Euro (required). - /// Identity ID (required). - /// Billing Interval monthly Monthly yearly Yearly (required). - /// Plan ID (required). - public ClientInternalProvisionMockSubscription(CurrencyEnum currency = default(CurrencyEnum), string identityId = default(string), IntervalEnum interval = default(IntervalEnum), string plan = default(string)) + /// usd USD eur Euro. + /// monthly Monthly yearly Yearly (required). + /// plan (required). + /// returnTo. + public ClientCreateSubscriptionCommon(CurrencyEnum? currency = default(CurrencyEnum?), IntervalEnum interval = default(IntervalEnum), string plan = default(string), string returnTo = default(string)) { - this.Currency = currency; - // to ensure "identityId" is required (not null) - if (identityId == null) { - throw new ArgumentNullException("identityId is a required property for ClientInternalProvisionMockSubscription and cannot be null"); - } - this.IdentityId = identityId; this.Interval = interval; // to ensure "plan" is required (not null) if (plan == null) { - throw new ArgumentNullException("plan is a required property for ClientInternalProvisionMockSubscription and cannot be null"); + throw new ArgumentNullException("plan is a required property for ClientCreateSubscriptionCommon and cannot be null"); } this.Plan = plan; + this.Currency = currency; + this.ReturnTo = returnTo; this.AdditionalProperties = new Dictionary(); } /// - /// Identity ID + /// Gets or Sets Plan /// - /// Identity ID - [DataMember(Name = "identity_id", IsRequired = true, EmitDefaultValue = false)] - public string IdentityId { get; set; } + [DataMember(Name = "plan", IsRequired = true, EmitDefaultValue = false)] + public string Plan { get; set; } /// - /// Plan ID + /// Gets or Sets ReturnTo /// - /// Plan ID - [DataMember(Name = "plan", IsRequired = true, EmitDefaultValue = false)] - public string Plan { get; set; } + [DataMember(Name = "return_to", EmitDefaultValue = false)] + public string ReturnTo { get; set; } /// /// Gets or Sets additional properties @@ -147,11 +141,11 @@ protected ClientInternalProvisionMockSubscription() public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class ClientInternalProvisionMockSubscription {\n"); + sb.Append("class ClientCreateSubscriptionCommon {\n"); sb.Append(" Currency: ").Append(Currency).Append("\n"); - sb.Append(" IdentityId: ").Append(IdentityId).Append("\n"); sb.Append(" Interval: ").Append(Interval).Append("\n"); sb.Append(" Plan: ").Append(Plan).Append("\n"); + sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -173,15 +167,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as ClientInternalProvisionMockSubscription); + return this.Equals(input as ClientCreateSubscriptionCommon); } /// - /// Returns true if ClientInternalProvisionMockSubscription instances are equal + /// Returns true if ClientCreateSubscriptionCommon instances are equal /// - /// Instance of ClientInternalProvisionMockSubscription to be compared + /// Instance of ClientCreateSubscriptionCommon to be compared /// Boolean - public bool Equals(ClientInternalProvisionMockSubscription input) + public bool Equals(ClientCreateSubscriptionCommon input) { if (input == null) { @@ -192,11 +186,6 @@ public bool Equals(ClientInternalProvisionMockSubscription input) this.Currency == input.Currency || this.Currency.Equals(input.Currency) ) && - ( - this.IdentityId == input.IdentityId || - (this.IdentityId != null && - this.IdentityId.Equals(input.IdentityId)) - ) && ( this.Interval == input.Interval || this.Interval.Equals(input.Interval) @@ -205,6 +194,11 @@ public bool Equals(ClientInternalProvisionMockSubscription input) this.Plan == input.Plan || (this.Plan != null && this.Plan.Equals(input.Plan)) + ) && + ( + this.ReturnTo == input.ReturnTo || + (this.ReturnTo != null && + this.ReturnTo.Equals(input.ReturnTo)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -219,15 +213,15 @@ public override int GetHashCode() { int hashCode = 41; hashCode = (hashCode * 59) + this.Currency.GetHashCode(); - if (this.IdentityId != null) - { - hashCode = (hashCode * 59) + this.IdentityId.GetHashCode(); - } hashCode = (hashCode * 59) + this.Interval.GetHashCode(); if (this.Plan != null) { hashCode = (hashCode * 59) + this.Plan.GetHashCode(); } + if (this.ReturnTo != null) + { + hashCode = (hashCode * 59) + this.ReturnTo.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateVerifiableCredentialRequestBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateVerifiableCredentialRequestBody.cs index 586010a3dc8..fa8d88d7504 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateVerifiableCredentialRequestBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateVerifiableCredentialRequestBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceMemberInviteBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceMemberInviteBody.cs index 5c96d91ca69..78729d57515 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceMemberInviteBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceMemberInviteBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspacePayload.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspacePayload.cs new file mode 100644 index 00000000000..abe86ccf371 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspacePayload.cs @@ -0,0 +1,155 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientCreateWorkspacePayload + /// + [DataContract(Name = "createWorkspacePayload")] + public partial class ClientCreateWorkspacePayload : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientCreateWorkspacePayload() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// The name of the workspace (required). + public ClientCreateWorkspacePayload(string name = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for ClientCreateWorkspacePayload and cannot be null"); + } + this.Name = name; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// The name of the workspace + /// + /// The name of the workspace + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientCreateWorkspacePayload {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientCreateWorkspacePayload); + } + + /// + /// Returns true if ClientCreateWorkspacePayload instances are equal + /// + /// Instance of ClientCreateWorkspacePayload to be compared + /// Boolean + public bool Equals(ClientCreateWorkspacePayload input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceSubscriptionBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceSubscriptionBody.cs new file mode 100644 index 00000000000..38cea51eaa8 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCreateWorkspaceSubscriptionBody.cs @@ -0,0 +1,244 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientCreateWorkspaceSubscriptionBody + /// + [DataContract(Name = "createWorkspaceSubscriptionBody")] + public partial class ClientCreateWorkspaceSubscriptionBody : IEquatable, IValidatableObject + { + /// + /// usd USD eur Euro + /// + /// usd USD eur Euro + [JsonConverter(typeof(StringEnumConverter))] + public enum CurrencyEnum + { + /// + /// Enum Usd for value: usd + /// + [EnumMember(Value = "usd")] + Usd = 1, + + /// + /// Enum Eur for value: eur + /// + [EnumMember(Value = "eur")] + Eur = 2 + + } + + + /// + /// usd USD eur Euro + /// + /// usd USD eur Euro + [DataMember(Name = "currency", EmitDefaultValue = false)] + public CurrencyEnum? Currency { get; set; } + /// + /// monthly Monthly yearly Yearly + /// + /// monthly Monthly yearly Yearly + [JsonConverter(typeof(StringEnumConverter))] + public enum IntervalEnum + { + /// + /// Enum Monthly for value: monthly + /// + [EnumMember(Value = "monthly")] + Monthly = 1, + + /// + /// Enum Yearly for value: yearly + /// + [EnumMember(Value = "yearly")] + Yearly = 2 + + } + + + /// + /// monthly Monthly yearly Yearly + /// + /// monthly Monthly yearly Yearly + [DataMember(Name = "interval", IsRequired = true, EmitDefaultValue = false)] + public IntervalEnum Interval { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientCreateWorkspaceSubscriptionBody() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// usd USD eur Euro. + /// monthly Monthly yearly Yearly (required). + /// plan (required). + /// returnTo. + public ClientCreateWorkspaceSubscriptionBody(CurrencyEnum? currency = default(CurrencyEnum?), IntervalEnum interval = default(IntervalEnum), string plan = default(string), string returnTo = default(string)) + { + this.Interval = interval; + // to ensure "plan" is required (not null) + if (plan == null) { + throw new ArgumentNullException("plan is a required property for ClientCreateWorkspaceSubscriptionBody and cannot be null"); + } + this.Plan = plan; + this.Currency = currency; + this.ReturnTo = returnTo; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets Plan + /// + [DataMember(Name = "plan", IsRequired = true, EmitDefaultValue = false)] + public string Plan { get; set; } + + /// + /// Gets or Sets ReturnTo + /// + [DataMember(Name = "return_to", EmitDefaultValue = false)] + public string ReturnTo { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientCreateWorkspaceSubscriptionBody {\n"); + sb.Append(" Currency: ").Append(Currency).Append("\n"); + sb.Append(" Interval: ").Append(Interval).Append("\n"); + sb.Append(" Plan: ").Append(Plan).Append("\n"); + sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientCreateWorkspaceSubscriptionBody); + } + + /// + /// Returns true if ClientCreateWorkspaceSubscriptionBody instances are equal + /// + /// Instance of ClientCreateWorkspaceSubscriptionBody to be compared + /// Boolean + public bool Equals(ClientCreateWorkspaceSubscriptionBody input) + { + if (input == null) + { + return false; + } + return + ( + this.Currency == input.Currency || + this.Currency.Equals(input.Currency) + ) && + ( + this.Interval == input.Interval || + this.Interval.Equals(input.Interval) + ) && + ( + this.Plan == input.Plan || + (this.Plan != null && + this.Plan.Equals(input.Plan)) + ) && + ( + this.ReturnTo == input.ReturnTo || + (this.ReturnTo != null && + this.ReturnTo.Equals(input.ReturnTo)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Currency.GetHashCode(); + hashCode = (hashCode * 59) + this.Interval.GetHashCode(); + if (this.Plan != null) + { + hashCode = (hashCode * 59) + this.Plan.GetHashCode(); + } + if (this.ReturnTo != null) + { + hashCode = (hashCode * 59) + this.ReturnTo.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCredentialSupportedDraft00.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCredentialSupportedDraft00.cs index 7e307cd6cc9..be5a21dc646 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCredentialSupportedDraft00.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCredentialSupportedDraft00.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientCustomDomain.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientCustomDomain.cs index 52b0d49c9a9..a7837ed43fb 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientCustomDomain.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientCustomDomain.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientDeleteMySessionsCount.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientDeleteMySessionsCount.cs index a25bf3ba4c5..0b9cc48698b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientDeleteMySessionsCount.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientDeleteMySessionsCount.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateData.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateData.cs index b7aad9db89c..a0ff9d45bba 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateData.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateData.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateDataBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateDataBody.cs index 91737cdde3f..2e286890760 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateDataBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientEmailTemplateDataBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfied.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfied.cs index ac513f7e9d3..a16afdbc9f3 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfied.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorAuthenticatorAssuranceLevelNotSatisfied.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorBrowserLocationChangeRequired.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorBrowserLocationChangeRequired.cs index fbd1c534df8..5d4587a7f68 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorBrowserLocationChangeRequired.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorBrowserLocationChangeRequired.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorFlowReplaced.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorFlowReplaced.cs index 88664214ef1..80aaceeff77 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorFlowReplaced.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorFlowReplaced.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorGeneric.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorGeneric.cs index 580a94695f7..8a681fdff56 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorGeneric.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorGeneric.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorOAuth2.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorOAuth2.cs index 41335752d29..2da74c85402 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientErrorOAuth2.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientErrorOAuth2.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientEventStream.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientEventStream.cs index d1ecb5c948e..d7842a776bf 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientEventStream.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientEventStream.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientExpandedPermissionTree.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientExpandedPermissionTree.cs index 06ab84a53d4..1353bede150 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientExpandedPermissionTree.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientExpandedPermissionTree.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientFlowError.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientFlowError.cs index 4d0c5825c93..16a8116088c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientFlowError.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientFlowError.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGenericError.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGenericError.cs index 82503d8d1f6..8e43374306a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGenericError.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGenericError.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGenericErrorContent.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGenericErrorContent.cs index d605de3702f..04afa54ae68 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGenericErrorContent.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGenericErrorContent.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGenericUsage.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGenericUsage.cs index a19e31d1842..8a6bc45c889 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGenericUsage.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGenericUsage.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetAttributesCountResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetAttributesCountResponse.cs index 38426c3e8b0..81bce737baa 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetAttributesCountResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetAttributesCountResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetManagedIdentitySchemaLocation.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetManagedIdentitySchemaLocation.cs index 7f00c0e08c4..f5221fbd262 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetManagedIdentitySchemaLocation.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetManagedIdentitySchemaLocation.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventAttributesResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventAttributesResponse.cs index e5b6aae6d28..3f3f59a74af 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventAttributesResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventAttributesResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventTypesResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventTypesResponse.cs index 0a2e3728faa..20539f1c4bd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventTypesResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetMetricsEventTypesResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetOrganizationResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetOrganizationResponse.cs index 2611bfc5f68..00f6cf00c53 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetOrganizationResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetOrganizationResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsBody.cs index 9e310fc5e6b..23995e0860b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsResponse.cs index 82e3e095acf..1396d6fa57d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectEventsResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectMetricsResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectMetricsResponse.cs index c23cc8788a7..13430f940bf 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectMetricsResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetProjectMetricsResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientGetSessionActivityResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientGetSessionActivityResponse.cs index f21d49717ec..375037a7564 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientGetSessionActivityResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientGetSessionActivityResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientHealthNotReadyStatus.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientHealthNotReadyStatus.cs index 61c3f445618..0095092b39f 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientHealthNotReadyStatus.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientHealthNotReadyStatus.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientHealthStatus.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientHealthStatus.cs index b422d22c490..791dcdd5dfd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientHealthStatus.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientHealthStatus.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentity.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentity.cs index c4f4fe533a1..1af11de34f2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentity.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentity.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Client.Model [DataContract(Name = "identity")] public partial class ClientIdentity : IEquatable, IValidatableObject { + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + /// + /// Enum Active for value: active + /// + [EnumMember(Value = "active")] + Active = 1, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 2 + + } + + + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + [DataMember(Name = "state", EmitDefaultValue = false)] + public StateEnum? State { get; set; } /// /// Initializes a new instance of the class. /// @@ -52,12 +80,12 @@ protected ClientIdentity() /// RecoveryAddresses contains all the addresses that can be used to recover an identity.. /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. (required). /// SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url (required). - /// state. + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive. /// stateChangedAt. /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. (required). /// UpdatedAt is a helper struct field for gobuffalo.pop.. /// VerifiableAddresses contains all the addresses that can be verified by the user.. - public ClientIdentity(DateTime createdAt = default(DateTime), Dictionary credentials = default(Dictionary), string id = default(string), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string organizationId = default(string), List recoveryAddresses = default(List), string schemaId = default(string), string schemaUrl = default(string), ClientIdentityState state = default(ClientIdentityState), DateTime stateChangedAt = default(DateTime), Object traits = default(Object), DateTime updatedAt = default(DateTime), List verifiableAddresses = default(List)) + public ClientIdentity(DateTime createdAt = default(DateTime), Dictionary credentials = default(Dictionary), string id = default(string), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string organizationId = default(string), List recoveryAddresses = default(List), string schemaId = default(string), string schemaUrl = default(string), StateEnum? state = default(StateEnum?), DateTime stateChangedAt = default(DateTime), Object traits = default(Object), DateTime updatedAt = default(DateTime), List verifiableAddresses = default(List)) { // to ensure "id" is required (not null) if (id == null) { @@ -154,12 +182,6 @@ protected ClientIdentity() [DataMember(Name = "schema_url", IsRequired = true, EmitDefaultValue = false)] public string SchemaUrl { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", EmitDefaultValue = false)] - public ClientIdentityState State { get; set; } - /// /// Gets or Sets StateChangedAt /// @@ -300,8 +322,7 @@ public bool Equals(ClientIdentity input) ) && ( this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + this.State.Equals(input.State) ) && ( this.StateChangedAt == input.StateChangedAt || @@ -372,10 +393,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SchemaUrl.GetHashCode(); } - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } + hashCode = (hashCode * 59) + this.State.GetHashCode(); if (this.StateChangedAt != null) { hashCode = (hashCode * 59) + this.StateChangedAt.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentials.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentials.cs index 0f4377c48ee..bb19a626737 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentials.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentials.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,16 +32,80 @@ namespace Ory.Client.Model [DataContract(Name = "identityCredentials")] public partial class ClientIdentityCredentials : IEquatable, IValidatableObject { + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Password for value: password + /// + [EnumMember(Value = "password")] + Password = 1, + + /// + /// Enum Oidc for value: oidc + /// + [EnumMember(Value = "oidc")] + Oidc = 2, + + /// + /// Enum Totp for value: totp + /// + [EnumMember(Value = "totp")] + Totp = 3, + + /// + /// Enum LookupSecret for value: lookup_secret + /// + [EnumMember(Value = "lookup_secret")] + LookupSecret = 4, + + /// + /// Enum Webauthn for value: webauthn + /// + [EnumMember(Value = "webauthn")] + Webauthn = 5, + + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 6, + + /// + /// Enum LinkRecovery for value: link_recovery + /// + [EnumMember(Value = "link_recovery")] + LinkRecovery = 7, + + /// + /// Enum CodeRecovery for value: code_recovery + /// + [EnumMember(Value = "code_recovery")] + CodeRecovery = 8 + + } + + + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } /// /// Initializes a new instance of the class. /// /// config. /// CreatedAt is a helper struct field for gobuffalo.pop.. /// Identifiers represents a list of unique identifiers this credential type matches.. - /// type. + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. /// UpdatedAt is a helper struct field for gobuffalo.pop.. /// Version refers to the version of the credential. Useful when changing the config schema.. - public ClientIdentityCredentials(Object config = default(Object), DateTime createdAt = default(DateTime), List identifiers = default(List), ClientIdentityCredentialsType type = default(ClientIdentityCredentialsType), DateTime updatedAt = default(DateTime), long version = default(long)) + public ClientIdentityCredentials(Object config = default(Object), DateTime createdAt = default(DateTime), List identifiers = default(List), TypeEnum? type = default(TypeEnum?), DateTime updatedAt = default(DateTime), long version = default(long)) { this.Config = config; this.CreatedAt = createdAt; @@ -72,12 +136,6 @@ public partial class ClientIdentityCredentials : IEquatable Identifiers { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", EmitDefaultValue = false)] - public ClientIdentityCredentialsType Type { get; set; } - /// /// UpdatedAt is a helper struct field for gobuffalo.pop. /// @@ -166,8 +224,7 @@ public bool Equals(ClientIdentityCredentials input) ) && ( this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) + this.Type.Equals(input.Type) ) && ( this.UpdatedAt == input.UpdatedAt || @@ -202,10 +259,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Identifiers.GetHashCode(); } - if (this.Type != null) - { - hashCode = (hashCode * 59) + this.Type.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); if (this.UpdatedAt != null) { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsCode.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsCode.cs index 754a47fb30b..da311526257 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsCode.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsCode.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,7 +35,7 @@ public partial class ClientIdentityCredentialsCode : IEquatable /// Initializes a new instance of the class. /// - /// addressType. + /// The type of the address for this code. /// usedAt. public ClientIdentityCredentialsCode(string addressType = default(string), DateTime? usedAt = default(DateTime?)) { @@ -45,8 +45,9 @@ public partial class ClientIdentityCredentialsCode : IEquatable - /// Gets or Sets AddressType + /// The type of the address for this code /// + /// The type of the address for this code [DataMember(Name = "address_type", EmitDefaultValue = false)] public string AddressType { get; set; } diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidc.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidc.cs index ca34c08e6de..7b03adec8f0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidc.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidc.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidcProvider.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidcProvider.cs index 9cfc0334753..eb0e3b3f305 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidcProvider.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsOidcProvider.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsPassword.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsPassword.cs index 73d2a399d1a..50141ce787d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsPassword.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsPassword.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsType.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsType.cs deleted file mode 100644 index 483f343f298..00000000000 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityCredentialsType.cs +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Ory APIs - * - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; - -namespace Ory.Client.Model -{ - /// - /// and so on. - /// - /// and so on. - [JsonConverter(typeof(StringEnumConverter))] - public enum ClientIdentityCredentialsType - { - /// - /// Enum Password for value: password - /// - [EnumMember(Value = "password")] - Password = 1, - - /// - /// Enum Totp for value: totp - /// - [EnumMember(Value = "totp")] - Totp = 2, - - /// - /// Enum Oidc for value: oidc - /// - [EnumMember(Value = "oidc")] - Oidc = 3, - - /// - /// Enum Webauthn for value: webauthn - /// - [EnumMember(Value = "webauthn")] - Webauthn = 4, - - /// - /// Enum LookupSecret for value: lookup_secret - /// - [EnumMember(Value = "lookup_secret")] - LookupSecret = 5, - - /// - /// Enum Code for value: code - /// - [EnumMember(Value = "code")] - Code = 6 - - } - -} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatch.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatch.cs index 3dca9c52c71..ffec6ac735f 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatch.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatch.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatchResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatchResponse.cs index c05107bd6fc..a74317fb2e7 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatchResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityPatchResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaContainer.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaContainer.cs index d2ef94ae3c1..01cffa6202a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaContainer.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaContainer.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaPreset.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaPreset.cs index 0ae2c0a2cd2..af43d694554 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaPreset.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentitySchemaPreset.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityState.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityState.cs deleted file mode 100644 index 7fff1fcabe6..00000000000 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityState.cs +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Ory APIs - * - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; - -namespace Ory.Client.Model -{ - /// - /// The state can either be `active` or `inactive`. - /// - /// The state can either be `active` or `inactive`. - [JsonConverter(typeof(StringEnumConverter))] - public enum ClientIdentityState - { - /// - /// Enum Active for value: active - /// - [EnumMember(Value = "active")] - Active = 1, - - /// - /// Enum Inactive for value: inactive - /// - [EnumMember(Value = "inactive")] - Inactive = 2 - - } - -} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentials.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentials.cs index 4259ab38c20..f4131a84aed 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentials.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentials.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidc.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidc.cs index f8b82aedc86..e763a782d02 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidc.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidc.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfig.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfig.cs index cbbca6e42a8..e5757468a82 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfig.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfig.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfigProvider.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfigProvider.cs index e9f6ccbfc61..ed6d92df379 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfigProvider.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsOidcConfigProvider.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPassword.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPassword.cs index fa928726afd..d77feb35c44 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPassword.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPassword.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPasswordConfig.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPasswordConfig.cs index 0ea767356f3..f15ef386571 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPasswordConfig.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIdentityWithCredentialsPasswordConfig.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineObject3.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineObject3.cs index 5e6e98d71d0..11b5e18caf9 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineObject3.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineObject3.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse200.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse200.cs index 832d1b7c0ae..32f35a8f29f 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse200.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse200.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse2001.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse2001.cs index 023053a8c55..7b104a2351a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse2001.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse2001.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse503.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse503.cs index 9b8b5c46985..afe1234a365 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse503.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInlineResponse503.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalGetProjectBrandingBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalGetProjectBrandingBody.cs index ae54730cbda..5107c3b6613 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalGetProjectBrandingBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalGetProjectBrandingBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.cs index 87de48e7406..228851e3583 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsAXWelcomeScreenEnabledForProjectBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugBody.cs index d35037077cb..87c0566a0b3 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugResponse.cs index 4a17f5f99c2..4530af57498 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientInternalIsOwnerForProjectBySlugResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIntrospectedOAuth2Token.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIntrospectedOAuth2Token.cs index f40fa17903f..985421f75a5 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIntrospectedOAuth2Token.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIntrospectedOAuth2Token.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientIsOwnerForProjectBySlug.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientIsOwnerForProjectBySlug.cs index 05374b37ff8..9e6524ac272 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientIsOwnerForProjectBySlug.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientIsOwnerForProjectBySlug.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientJsonPatch.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientJsonPatch.cs index 31d20676422..e692dc1114b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientJsonPatch.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientJsonPatch.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKey.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKey.cs index e44b81da8fd..bfcdd41b46d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKey.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKey.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKeySet.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKeySet.cs index 569fb52de11..d986d55ab27 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKeySet.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientJsonWebKeySet.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientKetoNamespace.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientKetoNamespace.cs index bcf27599429..3db285b6871 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientKetoNamespace.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientKetoNamespace.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientListEventStreams.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientListEventStreams.cs index 4b260bbecdb..28c21d8d3d1 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientListEventStreams.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientListEventStreams.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientListMyWorkspacesResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientListMyWorkspacesResponse.cs index 031d39d0d09..2f1a6de7e89 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientListMyWorkspacesResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientListMyWorkspacesResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,7 @@ protected ClientListMyWorkspacesResponse() /// hasNextPage (required). /// nextPageToken (required). /// workspaces (required). - public ClientListMyWorkspacesResponse(bool hasNextPage = default(bool), string nextPageToken = default(string), List workspaces = default(List)) + public ClientListMyWorkspacesResponse(bool hasNextPage = default(bool), string nextPageToken = default(string), List workspaces = default(List)) { this.HasNextPage = hasNextPage; // to ensure "nextPageToken" is required (not null) @@ -78,7 +78,7 @@ protected ClientListMyWorkspacesResponse() /// Gets or Sets Workspaces /// [DataMember(Name = "workspaces", IsRequired = true, EmitDefaultValue = false)] - public List Workspaces { get; set; } + public List Workspaces { get; set; } /// /// Gets or Sets additional properties diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientListOrganizationsResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientListOrganizationsResponse.cs index 9a710650d50..804f35993d9 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientListOrganizationsResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientListOrganizationsResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientListWorkspaceProjectsResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientListWorkspaceProjectsResponse.cs new file mode 100644 index 00000000000..309eb245cf9 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientListWorkspaceProjectsResponse.cs @@ -0,0 +1,191 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientListWorkspaceProjectsResponse + /// + [DataContract(Name = "listWorkspaceProjectsResponse")] + public partial class ClientListWorkspaceProjectsResponse : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientListWorkspaceProjectsResponse() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// hasNextPage (required). + /// nextPage (required). + /// projects (required). + public ClientListWorkspaceProjectsResponse(bool hasNextPage = default(bool), string nextPage = default(string), List projects = default(List)) + { + this.HasNextPage = hasNextPage; + // to ensure "nextPage" is required (not null) + if (nextPage == null) { + throw new ArgumentNullException("nextPage is a required property for ClientListWorkspaceProjectsResponse and cannot be null"); + } + this.NextPage = nextPage; + // to ensure "projects" is required (not null) + if (projects == null) { + throw new ArgumentNullException("projects is a required property for ClientListWorkspaceProjectsResponse and cannot be null"); + } + this.Projects = projects; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets HasNextPage + /// + [DataMember(Name = "has_next_page", IsRequired = true, EmitDefaultValue = true)] + public bool HasNextPage { get; set; } + + /// + /// Gets or Sets NextPage + /// + [DataMember(Name = "next_page", IsRequired = true, EmitDefaultValue = false)] + public string NextPage { get; set; } + + /// + /// Gets or Sets Projects + /// + [DataMember(Name = "projects", IsRequired = true, EmitDefaultValue = false)] + public List Projects { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientListWorkspaceProjectsResponse {\n"); + sb.Append(" HasNextPage: ").Append(HasNextPage).Append("\n"); + sb.Append(" NextPage: ").Append(NextPage).Append("\n"); + sb.Append(" Projects: ").Append(Projects).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientListWorkspaceProjectsResponse); + } + + /// + /// Returns true if ClientListWorkspaceProjectsResponse instances are equal + /// + /// Instance of ClientListWorkspaceProjectsResponse to be compared + /// Boolean + public bool Equals(ClientListWorkspaceProjectsResponse input) + { + if (input == null) + { + return false; + } + return + ( + this.HasNextPage == input.HasNextPage || + this.HasNextPage.Equals(input.HasNextPage) + ) && + ( + this.NextPage == input.NextPage || + (this.NextPage != null && + this.NextPage.Equals(input.NextPage)) + ) && + ( + this.Projects == input.Projects || + this.Projects != null && + input.Projects != null && + this.Projects.SequenceEqual(input.Projects) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.HasNextPage.GetHashCode(); + if (this.NextPage != null) + { + hashCode = (hashCode * 59) + this.NextPage.GetHashCode(); + } + if (this.Projects != null) + { + hashCode = (hashCode * 59) + this.Projects.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlow.cs index 236474458bc..0c270003140 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,70 @@ namespace Ory.Client.Model [DataContract(Name = "loginFlow")] public partial class ClientLoginFlow : IEquatable, IValidatableObject { + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [JsonConverter(typeof(StringEnumConverter))] + public enum ActiveEnum + { + /// + /// Enum Password for value: password + /// + [EnumMember(Value = "password")] + Password = 1, + + /// + /// Enum Oidc for value: oidc + /// + [EnumMember(Value = "oidc")] + Oidc = 2, + + /// + /// Enum Totp for value: totp + /// + [EnumMember(Value = "totp")] + Totp = 3, + + /// + /// Enum LookupSecret for value: lookup_secret + /// + [EnumMember(Value = "lookup_secret")] + LookupSecret = 4, + + /// + /// Enum Webauthn for value: webauthn + /// + [EnumMember(Value = "webauthn")] + Webauthn = 5, + + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 6, + + /// + /// Enum LinkRecovery for value: link_recovery + /// + [EnumMember(Value = "link_recovery")] + LinkRecovery = 7, + + /// + /// Enum CodeRecovery for value: code_recovery + /// + [EnumMember(Value = "code_recovery")] + CodeRecovery = 8 + + } + + + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [DataMember(Name = "active", EmitDefaultValue = false)] + public ActiveEnum? Active { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,7 +107,7 @@ protected ClientLoginFlow() /// /// Initializes a new instance of the class. /// - /// active. + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. /// CreatedAt is a helper struct field for gobuffalo.pop.. /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required). /// ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> (required). @@ -57,10 +121,11 @@ protected ClientLoginFlow() /// ReturnTo contains the requested return_to URL.. /// SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow.. /// State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. (required). + /// TransientPayload is used to pass data from the login to hooks and email templates. /// The flow type can either be `api` or `browser`. (required). /// ui (required). /// UpdatedAt is a helper struct field for gobuffalo.pop.. - public ClientLoginFlow(ClientIdentityCredentialsType active = default(ClientIdentityCredentialsType), DateTime createdAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), ClientOAuth2LoginRequest oauth2LoginRequest = default(ClientOAuth2LoginRequest), string organizationId = default(string), bool refresh = default(bool), string requestUrl = default(string), ClientAuthenticatorAssuranceLevel requestedAal = default(ClientAuthenticatorAssuranceLevel), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object state = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer), DateTime updatedAt = default(DateTime)) + public ClientLoginFlow(ActiveEnum? active = default(ActiveEnum?), DateTime createdAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), ClientOAuth2LoginRequest oauth2LoginRequest = default(ClientOAuth2LoginRequest), string organizationId = default(string), bool refresh = default(bool), string requestUrl = default(string), ClientAuthenticatorAssuranceLevel requestedAal = default(ClientAuthenticatorAssuranceLevel), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer), DateTime updatedAt = default(DateTime)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -98,16 +163,11 @@ protected ClientLoginFlow() this.RequestedAal = requestedAal; this.ReturnTo = returnTo; this.SessionTokenExchangeCode = sessionTokenExchangeCode; + this.TransientPayload = transientPayload; this.UpdatedAt = updatedAt; this.AdditionalProperties = new Dictionary(); } - /// - /// Gets or Sets Active - /// - [DataMember(Name = "active", EmitDefaultValue = false)] - public ClientIdentityCredentialsType Active { get; set; } - /// /// CreatedAt is a helper struct field for gobuffalo.pop. /// @@ -196,6 +256,13 @@ protected ClientLoginFlow() [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public Object State { get; set; } + /// + /// TransientPayload is used to pass data from the login to hooks and email templates + /// + /// TransientPayload is used to pass data from the login to hooks and email templates + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// The flow type can either be `api` or `browser`. /// @@ -244,6 +311,7 @@ public override string ToString() sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" SessionTokenExchangeCode: ").Append(SessionTokenExchangeCode).Append("\n"); sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Ui: ").Append(Ui).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); @@ -285,8 +353,7 @@ public bool Equals(ClientLoginFlow input) return ( this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) + this.Active.Equals(input.Active) ) && ( this.CreatedAt == input.CreatedAt || @@ -352,6 +419,11 @@ public bool Equals(ClientLoginFlow input) (this.State != null && this.State.Equals(input.State)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.Type == input.Type || (this.Type != null && @@ -379,10 +451,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Active != null) - { - hashCode = (hashCode * 59) + this.Active.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Active.GetHashCode(); if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); @@ -432,6 +501,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.State.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlowState.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlowState.cs index 842cd99c007..7f0f2f35fb4 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlowState.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientLoginFlowState.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientLogoutFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientLogoutFlow.cs index a8fd0da275d..5753edfe24a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientLogoutFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientLogoutFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchema.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchema.cs index 91233be8c15..d201a6305dd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchema.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchema.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchemaValidationResult.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchemaValidationResult.cs index 223154561ca..68f7f78f836 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchemaValidationResult.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientManagedIdentitySchemaValidationResult.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientMemberInvite.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientMemberInvite.cs index 08537d61526..fda06782286 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientMemberInvite.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientMemberInvite.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientMessage.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientMessage.cs index bfcada3d128..03c6b1b81b2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientMessage.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientMessage.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientMessageDispatch.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientMessageDispatch.cs index fe6e898a956..8c0cb8465e0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientMessageDispatch.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientMessageDispatch.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientMetricsDatapoint.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientMetricsDatapoint.cs index fb39059b8e2..371a9850813 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientMetricsDatapoint.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientMetricsDatapoint.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientMigrationOptions.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientMigrationOptions.cs new file mode 100644 index 00000000000..f149c709d4f --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientMigrationOptions.cs @@ -0,0 +1,204 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientMigrationOptions + /// + [DataContract(Name = "migrationOptions")] + public partial class ClientMigrationOptions : IEquatable, IValidatableObject + { + /// + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + /// + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + [JsonConverter(typeof(StringEnumConverter))] + public enum EnvironmentEnum + { + /// + /// Enum Prod for value: prod + /// + [EnumMember(Value = "prod")] + Prod = 1, + + /// + /// Enum Dev for value: dev + /// + [EnumMember(Value = "dev")] + Dev = 2 + + } + + + /// + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + /// + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + [DataMember(Name = "environment", IsRequired = true, EmitDefaultValue = false)] + public EnvironmentEnum Environment { get; set; } + /// + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + /// + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + [JsonConverter(typeof(StringEnumConverter))] + public enum ProjectSubscriptionEnum + { + /// + /// Enum Migrate for value: migrate + /// + [EnumMember(Value = "migrate")] + Migrate = 1, + + /// + /// Enum Ignore for value: ignore + /// + [EnumMember(Value = "ignore")] + Ignore = 2 + + } + + + /// + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + /// + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + [DataMember(Name = "project_subscription", IsRequired = true, EmitDefaultValue = false)] + public ProjectSubscriptionEnum ProjectSubscription { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientMigrationOptions() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development (required). + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. (required). + public ClientMigrationOptions(EnvironmentEnum environment = default(EnvironmentEnum), ProjectSubscriptionEnum projectSubscription = default(ProjectSubscriptionEnum)) + { + this.Environment = environment; + this.ProjectSubscription = projectSubscription; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientMigrationOptions {\n"); + sb.Append(" Environment: ").Append(Environment).Append("\n"); + sb.Append(" ProjectSubscription: ").Append(ProjectSubscription).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientMigrationOptions); + } + + /// + /// Returns true if ClientMigrationOptions instances are equal + /// + /// Instance of ClientMigrationOptions to be compared + /// Boolean + public bool Equals(ClientMigrationOptions input) + { + if (input == null) + { + return false; + } + return + ( + this.Environment == input.Environment || + this.Environment.Equals(input.Environment) + ) && + ( + this.ProjectSubscription == input.ProjectSubscription || + this.ProjectSubscription.Equals(input.ProjectSubscription) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Environment.GetHashCode(); + hashCode = (hashCode * 59) + this.ProjectSubscription.GetHashCode(); + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNamespace.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNamespace.cs index 5edbdb73019..f0a237fdb1a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNamespace.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNamespace.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNeedsPrivilegedSessionError.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNeedsPrivilegedSessionError.cs index ec27fd78a41..462ea1b05e3 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNeedsPrivilegedSessionError.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNeedsPrivilegedSessionError.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProject.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProject.cs index a7d98402bc1..5c009840ebc 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProject.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProject.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevision.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevision.cs index 5c429025a10..9d732b11921 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevision.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevision.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -156,12 +156,14 @@ protected ClientNormalizedProjectRevision() /// Initializes a new instance of the class. /// /// Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.. + /// Whether the new account experience is enabled and reachable.. /// hydraOauth2AllowedTopLevelClaims. /// Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting.. /// Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting.. /// Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting.. /// Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting.. /// Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. (default to "720h"). + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.. /// Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.. /// Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting.. /// Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting.. @@ -219,6 +221,7 @@ protected ClientNormalizedProjectRevision() /// Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting.. /// Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting.. /// Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting.. + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.. /// Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. /// Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting.. /// Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. @@ -304,6 +307,7 @@ protected ClientNormalizedProjectRevision() /// Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode. /// Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.. /// Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.. + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.. /// Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.. /// Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting.. /// Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting.. @@ -340,7 +344,7 @@ protected ClientNormalizedProjectRevision() /// servePublicCorsAllowedOrigins. /// Enable CORS headers on all public APIs This governs the \"serve.public.cors.enabled\" setting.. /// Whether the project should employ strict security measures. Setting this to true is recommended for going into production.. - public ClientNormalizedProjectRevision(bool disableAccountExperienceWelcomeScreen = default(bool), List hydraOauth2AllowedTopLevelClaims = default(List), bool hydraOauth2ClientCredentialsDefaultGrantAllowedScope = default(bool), bool hydraOauth2ExcludeNotBeforeClaim = default(bool), bool hydraOauth2GrantJwtIatOptional = default(bool), bool hydraOauth2GrantJwtJtiOptional = default(bool), string hydraOauth2GrantJwtMaxTtl = "720h", bool hydraOauth2PkceEnforced = default(bool), bool hydraOauth2PkceEnforcedForPublicClients = default(bool), string hydraOauth2RefreshTokenHook = default(string), string hydraOauth2TokenHook = default(string), List hydraOidcDynamicClientRegistrationDefaultScope = default(List), bool hydraOidcDynamicClientRegistrationEnabled = default(bool), string hydraOidcSubjectIdentifiersPairwiseSalt = default(string), List hydraOidcSubjectIdentifiersSupportedTypes = default(List), List hydraSecretsCookie = default(List), List hydraSecretsSystem = default(List), bool hydraServeCookiesSameSiteLegacyWorkaround = default(bool), string hydraServeCookiesSameSiteMode = default(string), HydraStrategiesAccessTokenEnum? hydraStrategiesAccessToken = HydraStrategiesAccessTokenEnum.Opaque, HydraStrategiesScopeEnum? hydraStrategiesScope = HydraStrategiesScopeEnum.Wildcard, string hydraTtlAccessToken = "30m", string hydraTtlAuthCode = "720h", string hydraTtlIdToken = "30m", string hydraTtlLoginConsentRequest = "30m", string hydraTtlRefreshToken = "720h", string hydraUrlsConsent = default(string), string hydraUrlsError = default(string), string hydraUrlsLogin = default(string), string hydraUrlsLogout = default(string), string hydraUrlsPostLogoutRedirect = default(string), string hydraUrlsRegistration = default(string), string hydraUrlsSelfIssuer = default(string), List hydraWebfingerJwksBroadcastKeys = default(List), string hydraWebfingerOidcDiscoveryAuthUrl = default(string), string hydraWebfingerOidcDiscoveryClientRegistrationUrl = default(string), string hydraWebfingerOidcDiscoveryJwksUrl = default(string), List hydraWebfingerOidcDiscoverySupportedClaims = default(List), List hydraWebfingerOidcDiscoverySupportedScope = default(List), string hydraWebfingerOidcDiscoveryTokenUrl = default(string), string hydraWebfingerOidcDiscoveryUserinfoUrl = default(string), string ketoNamespaceConfiguration = default(string), List ketoNamespaces = default(List), string kratosCookiesSameSite = default(string), List kratosCourierChannels = default(List), string kratosCourierDeliveryStrategy = "smtp", string kratosCourierHttpRequestConfigAuthApiKeyIn = default(string), string kratosCourierHttpRequestConfigAuthApiKeyName = default(string), string kratosCourierHttpRequestConfigAuthApiKeyValue = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthPassword = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthUser = default(string), string kratosCourierHttpRequestConfigAuthType = "empty (no authentication)", string kratosCourierHttpRequestConfigBody = default(string), Object kratosCourierHttpRequestConfigHeaders = default(Object), string kratosCourierHttpRequestConfigMethod = "POST", string kratosCourierHttpRequestConfigUrl = default(string), string kratosCourierSmtpConnectionUri = default(string), string kratosCourierSmtpFromAddress = default(string), string kratosCourierSmtpFromName = default(string), Object kratosCourierSmtpHeaders = default(Object), string kratosCourierSmtpLocalName = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesLoginCodeValidEmailSubject = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailSubject = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryValidEmailSubject = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationValidEmailSubject = default(string), bool kratosFeatureFlagsCacheableSessions = default(bool), bool kratosFeatureFlagsUseContinueWithTransitions = default(bool), List kratosIdentitySchemas = default(List), Object kratosOauth2ProviderHeaders = default(Object), bool kratosOauth2ProviderOverrideReturnTo = default(bool), string kratosOauth2ProviderUrl = default(string), string kratosPreviewDefaultReadConsistencyLevel = default(string), List kratosSecretsCipher = default(List), List kratosSecretsCookie = default(List), List kratosSecretsDefault = default(List), List kratosSelfserviceAllowedReturnUrls = default(List), string kratosSelfserviceDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsErrorUiUrl = default(string), string kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginLifespan = default(string), string kratosSelfserviceFlowsLoginUiUrl = default(string), string kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRecoveryEnabled = default(bool), string kratosSelfserviceFlowsRecoveryLifespan = default(string), bool kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsRecoveryUiUrl = default(string), KratosSelfserviceFlowsRecoveryUseEnum? kratosSelfserviceFlowsRecoveryUse = default(KratosSelfserviceFlowsRecoveryUseEnum?), string kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRegistrationEnabled = default(bool), string kratosSelfserviceFlowsRegistrationLifespan = default(string), bool kratosSelfserviceFlowsRegistrationLoginHints = default(bool), string kratosSelfserviceFlowsRegistrationUiUrl = default(string), string kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsLifespan = default(string), string kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge = default(string), string kratosSelfserviceFlowsSettingsRequiredAal = default(string), string kratosSelfserviceFlowsSettingsUiUrl = default(string), string kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsVerificationEnabled = default(bool), string kratosSelfserviceFlowsVerificationLifespan = default(string), bool kratosSelfserviceFlowsVerificationNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsVerificationUiUrl = default(string), KratosSelfserviceFlowsVerificationUseEnum? kratosSelfserviceFlowsVerificationUse = default(KratosSelfserviceFlowsVerificationUseEnum?), string kratosSelfserviceMethodsCodeConfigLifespan = default(string), bool kratosSelfserviceMethodsCodeEnabled = default(bool), bool kratosSelfserviceMethodsCodePasswordlessEnabled = default(bool), string kratosSelfserviceMethodsLinkConfigBaseUrl = default(string), string kratosSelfserviceMethodsLinkConfigLifespan = default(string), bool kratosSelfserviceMethodsLinkEnabled = default(bool), bool kratosSelfserviceMethodsLookupSecretEnabled = default(bool), string kratosSelfserviceMethodsOidcConfigBaseRedirectUri = default(string), List kratosSelfserviceMethodsOidcConfigProviders = default(List), bool kratosSelfserviceMethodsOidcEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors = default(bool), long kratosSelfserviceMethodsPasswordConfigMaxBreaches = default(long), long kratosSelfserviceMethodsPasswordConfigMinPasswordLength = default(long), bool kratosSelfserviceMethodsPasswordEnabled = default(bool), bool kratosSelfserviceMethodsProfileEnabled = default(bool), string kratosSelfserviceMethodsTotpConfigIssuer = default(string), bool kratosSelfserviceMethodsTotpEnabled = default(bool), bool kratosSelfserviceMethodsWebauthnConfigPasswordless = default(bool), string kratosSelfserviceMethodsWebauthnConfigRpDisplayName = default(string), string kratosSelfserviceMethodsWebauthnConfigRpIcon = default(string), string kratosSelfserviceMethodsWebauthnConfigRpId = default(string), List kratosSelfserviceMethodsWebauthnConfigRpOrigins = default(List), bool kratosSelfserviceMethodsWebauthnEnabled = default(bool), bool kratosSessionCookiePersistent = default(bool), string kratosSessionCookieSameSite = default(string), string kratosSessionLifespan = default(string), string kratosSessionWhoamiRequiredAal = default(string), List kratosSessionWhoamiTokenizerTemplates = default(List), string name = default(string), string projectId = default(string), List projectRevisionHooks = default(List), List serveAdminCorsAllowedOrigins = default(List), bool serveAdminCorsEnabled = default(bool), List servePublicCorsAllowedOrigins = default(List), bool servePublicCorsEnabled = default(bool), bool strictSecurity = default(bool)) + public ClientNormalizedProjectRevision(bool disableAccountExperienceWelcomeScreen = default(bool), bool enableAxV2 = default(bool), List hydraOauth2AllowedTopLevelClaims = default(List), bool hydraOauth2ClientCredentialsDefaultGrantAllowedScope = default(bool), bool hydraOauth2ExcludeNotBeforeClaim = default(bool), bool hydraOauth2GrantJwtIatOptional = default(bool), bool hydraOauth2GrantJwtJtiOptional = default(bool), string hydraOauth2GrantJwtMaxTtl = "720h", bool hydraOauth2MirrorTopLevelClaims = default(bool), bool hydraOauth2PkceEnforced = default(bool), bool hydraOauth2PkceEnforcedForPublicClients = default(bool), string hydraOauth2RefreshTokenHook = default(string), string hydraOauth2TokenHook = default(string), List hydraOidcDynamicClientRegistrationDefaultScope = default(List), bool hydraOidcDynamicClientRegistrationEnabled = default(bool), string hydraOidcSubjectIdentifiersPairwiseSalt = default(string), List hydraOidcSubjectIdentifiersSupportedTypes = default(List), List hydraSecretsCookie = default(List), List hydraSecretsSystem = default(List), bool hydraServeCookiesSameSiteLegacyWorkaround = default(bool), string hydraServeCookiesSameSiteMode = default(string), HydraStrategiesAccessTokenEnum? hydraStrategiesAccessToken = HydraStrategiesAccessTokenEnum.Opaque, HydraStrategiesScopeEnum? hydraStrategiesScope = HydraStrategiesScopeEnum.Wildcard, string hydraTtlAccessToken = "30m", string hydraTtlAuthCode = "720h", string hydraTtlIdToken = "30m", string hydraTtlLoginConsentRequest = "30m", string hydraTtlRefreshToken = "720h", string hydraUrlsConsent = default(string), string hydraUrlsError = default(string), string hydraUrlsLogin = default(string), string hydraUrlsLogout = default(string), string hydraUrlsPostLogoutRedirect = default(string), string hydraUrlsRegistration = default(string), string hydraUrlsSelfIssuer = default(string), List hydraWebfingerJwksBroadcastKeys = default(List), string hydraWebfingerOidcDiscoveryAuthUrl = default(string), string hydraWebfingerOidcDiscoveryClientRegistrationUrl = default(string), string hydraWebfingerOidcDiscoveryJwksUrl = default(string), List hydraWebfingerOidcDiscoverySupportedClaims = default(List), List hydraWebfingerOidcDiscoverySupportedScope = default(List), string hydraWebfingerOidcDiscoveryTokenUrl = default(string), string hydraWebfingerOidcDiscoveryUserinfoUrl = default(string), string ketoNamespaceConfiguration = default(string), List ketoNamespaces = default(List), string kratosCookiesSameSite = default(string), List kratosCourierChannels = default(List), string kratosCourierDeliveryStrategy = "smtp", string kratosCourierHttpRequestConfigAuthApiKeyIn = default(string), string kratosCourierHttpRequestConfigAuthApiKeyName = default(string), string kratosCourierHttpRequestConfigAuthApiKeyValue = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthPassword = default(string), string kratosCourierHttpRequestConfigAuthBasicAuthUser = default(string), string kratosCourierHttpRequestConfigAuthType = "empty (no authentication)", string kratosCourierHttpRequestConfigBody = default(string), Object kratosCourierHttpRequestConfigHeaders = default(Object), string kratosCourierHttpRequestConfigMethod = "POST", string kratosCourierHttpRequestConfigUrl = default(string), string kratosCourierSmtpConnectionUri = default(string), string kratosCourierSmtpFromAddress = default(string), string kratosCourierSmtpFromName = default(string), Object kratosCourierSmtpHeaders = default(Object), string kratosCourierSmtpLocalName = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesLoginCodeValidEmailSubject = default(string), string kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryCodeValidEmailSubject = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryInvalidEmailSubject = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyHtml = default(string), string kratosCourierTemplatesRecoveryValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRecoveryValidEmailSubject = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesRegistrationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationCodeValidEmailSubject = default(string), string kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationInvalidEmailSubject = default(string), string kratosCourierTemplatesVerificationValidEmailBodyHtml = default(string), string kratosCourierTemplatesVerificationValidEmailBodyPlaintext = default(string), string kratosCourierTemplatesVerificationValidEmailSubject = default(string), bool kratosFeatureFlagsCacheableSessions = default(bool), bool kratosFeatureFlagsUseContinueWithTransitions = default(bool), List kratosIdentitySchemas = default(List), Object kratosOauth2ProviderHeaders = default(Object), bool kratosOauth2ProviderOverrideReturnTo = default(bool), string kratosOauth2ProviderUrl = default(string), string kratosPreviewDefaultReadConsistencyLevel = default(string), List kratosSecretsCipher = default(List), List kratosSecretsCookie = default(List), List kratosSecretsDefault = default(List), List kratosSelfserviceAllowedReturnUrls = default(List), string kratosSelfserviceDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsErrorUiUrl = default(string), string kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsLoginLifespan = default(string), string kratosSelfserviceFlowsLoginUiUrl = default(string), string kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRecoveryEnabled = default(bool), string kratosSelfserviceFlowsRecoveryLifespan = default(string), bool kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsRecoveryUiUrl = default(string), KratosSelfserviceFlowsRecoveryUseEnum? kratosSelfserviceFlowsRecoveryUse = default(KratosSelfserviceFlowsRecoveryUseEnum?), string kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsRegistrationEnabled = default(bool), string kratosSelfserviceFlowsRegistrationLifespan = default(string), bool kratosSelfserviceFlowsRegistrationLoginHints = default(bool), string kratosSelfserviceFlowsRegistrationUiUrl = default(string), string kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl = default(string), string kratosSelfserviceFlowsSettingsLifespan = default(string), string kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge = default(string), string kratosSelfserviceFlowsSettingsRequiredAal = default(string), string kratosSelfserviceFlowsSettingsUiUrl = default(string), string kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl = default(string), bool kratosSelfserviceFlowsVerificationEnabled = default(bool), string kratosSelfserviceFlowsVerificationLifespan = default(string), bool kratosSelfserviceFlowsVerificationNotifyUnknownRecipients = default(bool), string kratosSelfserviceFlowsVerificationUiUrl = default(string), KratosSelfserviceFlowsVerificationUseEnum? kratosSelfserviceFlowsVerificationUse = default(KratosSelfserviceFlowsVerificationUseEnum?), string kratosSelfserviceMethodsCodeConfigLifespan = default(string), bool kratosSelfserviceMethodsCodeEnabled = default(bool), bool kratosSelfserviceMethodsCodeMfaEnabled = default(bool), bool kratosSelfserviceMethodsCodePasswordlessEnabled = default(bool), string kratosSelfserviceMethodsLinkConfigBaseUrl = default(string), string kratosSelfserviceMethodsLinkConfigLifespan = default(string), bool kratosSelfserviceMethodsLinkEnabled = default(bool), bool kratosSelfserviceMethodsLookupSecretEnabled = default(bool), string kratosSelfserviceMethodsOidcConfigBaseRedirectUri = default(string), List kratosSelfserviceMethodsOidcConfigProviders = default(List), bool kratosSelfserviceMethodsOidcEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled = default(bool), bool kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors = default(bool), long kratosSelfserviceMethodsPasswordConfigMaxBreaches = default(long), long kratosSelfserviceMethodsPasswordConfigMinPasswordLength = default(long), bool kratosSelfserviceMethodsPasswordEnabled = default(bool), bool kratosSelfserviceMethodsProfileEnabled = default(bool), string kratosSelfserviceMethodsTotpConfigIssuer = default(string), bool kratosSelfserviceMethodsTotpEnabled = default(bool), bool kratosSelfserviceMethodsWebauthnConfigPasswordless = default(bool), string kratosSelfserviceMethodsWebauthnConfigRpDisplayName = default(string), string kratosSelfserviceMethodsWebauthnConfigRpIcon = default(string), string kratosSelfserviceMethodsWebauthnConfigRpId = default(string), List kratosSelfserviceMethodsWebauthnConfigRpOrigins = default(List), bool kratosSelfserviceMethodsWebauthnEnabled = default(bool), bool kratosSessionCookiePersistent = default(bool), string kratosSessionCookieSameSite = default(string), string kratosSessionLifespan = default(string), string kratosSessionWhoamiRequiredAal = default(string), List kratosSessionWhoamiTokenizerTemplates = default(List), string name = default(string), string projectId = default(string), List projectRevisionHooks = default(List), List serveAdminCorsAllowedOrigins = default(List), bool serveAdminCorsEnabled = default(bool), List servePublicCorsAllowedOrigins = default(List), bool servePublicCorsEnabled = default(bool), bool strictSecurity = default(bool)) { // to ensure "name" is required (not null) if (name == null) { @@ -348,6 +352,7 @@ protected ClientNormalizedProjectRevision() } this.Name = name; this.DisableAccountExperienceWelcomeScreen = disableAccountExperienceWelcomeScreen; + this.EnableAxV2 = enableAxV2; this.HydraOauth2AllowedTopLevelClaims = hydraOauth2AllowedTopLevelClaims; this.HydraOauth2ClientCredentialsDefaultGrantAllowedScope = hydraOauth2ClientCredentialsDefaultGrantAllowedScope; this.HydraOauth2ExcludeNotBeforeClaim = hydraOauth2ExcludeNotBeforeClaim; @@ -355,6 +360,7 @@ protected ClientNormalizedProjectRevision() this.HydraOauth2GrantJwtJtiOptional = hydraOauth2GrantJwtJtiOptional; // use default value if no "hydraOauth2GrantJwtMaxTtl" provided this.HydraOauth2GrantJwtMaxTtl = hydraOauth2GrantJwtMaxTtl ?? "720h"; + this.HydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; this.HydraOauth2PkceEnforced = hydraOauth2PkceEnforced; this.HydraOauth2PkceEnforcedForPublicClients = hydraOauth2PkceEnforcedForPublicClients; this.HydraOauth2RefreshTokenHook = hydraOauth2RefreshTokenHook; @@ -420,6 +426,7 @@ protected ClientNormalizedProjectRevision() this.KratosCourierTemplatesLoginCodeValidEmailBodyHtml = kratosCourierTemplatesLoginCodeValidEmailBodyHtml; this.KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext = kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext; this.KratosCourierTemplatesLoginCodeValidEmailSubject = kratosCourierTemplatesLoginCodeValidEmailSubject; + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext = kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext; this.KratosCourierTemplatesRecoveryCodeInvalidEmailSubject = kratosCourierTemplatesRecoveryCodeInvalidEmailSubject; @@ -505,6 +512,7 @@ protected ClientNormalizedProjectRevision() this.KratosSelfserviceFlowsVerificationUse = kratosSelfserviceFlowsVerificationUse; this.KratosSelfserviceMethodsCodeConfigLifespan = kratosSelfserviceMethodsCodeConfigLifespan; this.KratosSelfserviceMethodsCodeEnabled = kratosSelfserviceMethodsCodeEnabled; + this.KratosSelfserviceMethodsCodeMfaEnabled = kratosSelfserviceMethodsCodeMfaEnabled; this.KratosSelfserviceMethodsCodePasswordlessEnabled = kratosSelfserviceMethodsCodePasswordlessEnabled; this.KratosSelfserviceMethodsLinkConfigBaseUrl = kratosSelfserviceMethodsLinkConfigBaseUrl; this.KratosSelfserviceMethodsLinkConfigLifespan = kratosSelfserviceMethodsLinkConfigLifespan; @@ -565,6 +573,13 @@ public bool ShouldSerializeCreatedAt() [DataMember(Name = "disable_account_experience_welcome_screen", EmitDefaultValue = true)] public bool DisableAccountExperienceWelcomeScreen { get; set; } + /// + /// Whether the new account experience is enabled and reachable. + /// + /// Whether the new account experience is enabled and reachable. + [DataMember(Name = "enable_ax_v2", EmitDefaultValue = true)] + public bool EnableAxV2 { get; set; } + /// /// Gets or Sets HydraOauth2AllowedTopLevelClaims /// @@ -606,6 +621,13 @@ public bool ShouldSerializeCreatedAt() [DataMember(Name = "hydra_oauth2_grant_jwt_max_ttl", EmitDefaultValue = false)] public string HydraOauth2GrantJwtMaxTtl { get; set; } + /// + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + /// + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + [DataMember(Name = "hydra_oauth2_mirror_top_level_claims", EmitDefaultValue = true)] + public bool HydraOauth2MirrorTopLevelClaims { get; set; } + /// /// Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. /// @@ -997,6 +1019,13 @@ public bool ShouldSerializeId() [DataMember(Name = "kratos_courier_templates_login_code_valid_email_subject", EmitDefaultValue = false)] public string KratosCourierTemplatesLoginCodeValidEmailSubject { get; set; } + /// + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + /// + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + [DataMember(Name = "kratos_courier_templates_login_code_valid_sms_body_plaintext", EmitDefaultValue = false)] + public string KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext { get; set; } + /// /// Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. /// @@ -1573,6 +1602,13 @@ public bool ShouldSerializeId() [DataMember(Name = "kratos_selfservice_methods_code_enabled", EmitDefaultValue = true)] public bool KratosSelfserviceMethodsCodeEnabled { get; set; } + /// + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + /// + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + [DataMember(Name = "kratos_selfservice_methods_code_mfa_enabled", EmitDefaultValue = true)] + public bool KratosSelfserviceMethodsCodeMfaEnabled { get; set; } + /// /// Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. /// @@ -1850,12 +1886,14 @@ public override string ToString() sb.Append("class ClientNormalizedProjectRevision {\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" DisableAccountExperienceWelcomeScreen: ").Append(DisableAccountExperienceWelcomeScreen).Append("\n"); + sb.Append(" EnableAxV2: ").Append(EnableAxV2).Append("\n"); sb.Append(" HydraOauth2AllowedTopLevelClaims: ").Append(HydraOauth2AllowedTopLevelClaims).Append("\n"); sb.Append(" HydraOauth2ClientCredentialsDefaultGrantAllowedScope: ").Append(HydraOauth2ClientCredentialsDefaultGrantAllowedScope).Append("\n"); sb.Append(" HydraOauth2ExcludeNotBeforeClaim: ").Append(HydraOauth2ExcludeNotBeforeClaim).Append("\n"); sb.Append(" HydraOauth2GrantJwtIatOptional: ").Append(HydraOauth2GrantJwtIatOptional).Append("\n"); sb.Append(" HydraOauth2GrantJwtJtiOptional: ").Append(HydraOauth2GrantJwtJtiOptional).Append("\n"); sb.Append(" HydraOauth2GrantJwtMaxTtl: ").Append(HydraOauth2GrantJwtMaxTtl).Append("\n"); + sb.Append(" HydraOauth2MirrorTopLevelClaims: ").Append(HydraOauth2MirrorTopLevelClaims).Append("\n"); sb.Append(" HydraOauth2PkceEnforced: ").Append(HydraOauth2PkceEnforced).Append("\n"); sb.Append(" HydraOauth2PkceEnforcedForPublicClients: ").Append(HydraOauth2PkceEnforcedForPublicClients).Append("\n"); sb.Append(" HydraOauth2RefreshTokenHook: ").Append(HydraOauth2RefreshTokenHook).Append("\n"); @@ -1914,6 +1952,7 @@ public override string ToString() sb.Append(" KratosCourierTemplatesLoginCodeValidEmailBodyHtml: ").Append(KratosCourierTemplatesLoginCodeValidEmailBodyHtml).Append("\n"); sb.Append(" KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext: ").Append(KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext).Append("\n"); sb.Append(" KratosCourierTemplatesLoginCodeValidEmailSubject: ").Append(KratosCourierTemplatesLoginCodeValidEmailSubject).Append("\n"); + sb.Append(" KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext: ").Append(KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext).Append("\n"); sb.Append(" KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: ").Append(KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml).Append("\n"); sb.Append(" KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: ").Append(KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext).Append("\n"); sb.Append(" KratosCourierTemplatesRecoveryCodeInvalidEmailSubject: ").Append(KratosCourierTemplatesRecoveryCodeInvalidEmailSubject).Append("\n"); @@ -1999,6 +2038,7 @@ public override string ToString() sb.Append(" KratosSelfserviceFlowsVerificationUse: ").Append(KratosSelfserviceFlowsVerificationUse).Append("\n"); sb.Append(" KratosSelfserviceMethodsCodeConfigLifespan: ").Append(KratosSelfserviceMethodsCodeConfigLifespan).Append("\n"); sb.Append(" KratosSelfserviceMethodsCodeEnabled: ").Append(KratosSelfserviceMethodsCodeEnabled).Append("\n"); + sb.Append(" KratosSelfserviceMethodsCodeMfaEnabled: ").Append(KratosSelfserviceMethodsCodeMfaEnabled).Append("\n"); sb.Append(" KratosSelfserviceMethodsCodePasswordlessEnabled: ").Append(KratosSelfserviceMethodsCodePasswordlessEnabled).Append("\n"); sb.Append(" KratosSelfserviceMethodsLinkConfigBaseUrl: ").Append(KratosSelfserviceMethodsLinkConfigBaseUrl).Append("\n"); sb.Append(" KratosSelfserviceMethodsLinkConfigLifespan: ").Append(KratosSelfserviceMethodsLinkConfigLifespan).Append("\n"); @@ -2081,6 +2121,10 @@ public bool Equals(ClientNormalizedProjectRevision input) this.DisableAccountExperienceWelcomeScreen == input.DisableAccountExperienceWelcomeScreen || this.DisableAccountExperienceWelcomeScreen.Equals(input.DisableAccountExperienceWelcomeScreen) ) && + ( + this.EnableAxV2 == input.EnableAxV2 || + this.EnableAxV2.Equals(input.EnableAxV2) + ) && ( this.HydraOauth2AllowedTopLevelClaims == input.HydraOauth2AllowedTopLevelClaims || this.HydraOauth2AllowedTopLevelClaims != null && @@ -2108,6 +2152,10 @@ public bool Equals(ClientNormalizedProjectRevision input) (this.HydraOauth2GrantJwtMaxTtl != null && this.HydraOauth2GrantJwtMaxTtl.Equals(input.HydraOauth2GrantJwtMaxTtl)) ) && + ( + this.HydraOauth2MirrorTopLevelClaims == input.HydraOauth2MirrorTopLevelClaims || + this.HydraOauth2MirrorTopLevelClaims.Equals(input.HydraOauth2MirrorTopLevelClaims) + ) && ( this.HydraOauth2PkceEnforced == input.HydraOauth2PkceEnforced || this.HydraOauth2PkceEnforced.Equals(input.HydraOauth2PkceEnforced) @@ -2401,6 +2449,11 @@ public bool Equals(ClientNormalizedProjectRevision input) (this.KratosCourierTemplatesLoginCodeValidEmailSubject != null && this.KratosCourierTemplatesLoginCodeValidEmailSubject.Equals(input.KratosCourierTemplatesLoginCodeValidEmailSubject)) ) && + ( + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext == input.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext || + (this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext != null && + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext.Equals(input.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext)) + ) && ( this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml == input.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml || (this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml != null && @@ -2819,6 +2872,10 @@ public bool Equals(ClientNormalizedProjectRevision input) this.KratosSelfserviceMethodsCodeEnabled == input.KratosSelfserviceMethodsCodeEnabled || this.KratosSelfserviceMethodsCodeEnabled.Equals(input.KratosSelfserviceMethodsCodeEnabled) ) && + ( + this.KratosSelfserviceMethodsCodeMfaEnabled == input.KratosSelfserviceMethodsCodeMfaEnabled || + this.KratosSelfserviceMethodsCodeMfaEnabled.Equals(input.KratosSelfserviceMethodsCodeMfaEnabled) + ) && ( this.KratosSelfserviceMethodsCodePasswordlessEnabled == input.KratosSelfserviceMethodsCodePasswordlessEnabled || this.KratosSelfserviceMethodsCodePasswordlessEnabled.Equals(input.KratosSelfserviceMethodsCodePasswordlessEnabled) @@ -3009,6 +3066,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } hashCode = (hashCode * 59) + this.DisableAccountExperienceWelcomeScreen.GetHashCode(); + hashCode = (hashCode * 59) + this.EnableAxV2.GetHashCode(); if (this.HydraOauth2AllowedTopLevelClaims != null) { hashCode = (hashCode * 59) + this.HydraOauth2AllowedTopLevelClaims.GetHashCode(); @@ -3021,6 +3079,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.HydraOauth2GrantJwtMaxTtl.GetHashCode(); } + hashCode = (hashCode * 59) + this.HydraOauth2MirrorTopLevelClaims.GetHashCode(); hashCode = (hashCode * 59) + this.HydraOauth2PkceEnforced.GetHashCode(); hashCode = (hashCode * 59) + this.HydraOauth2PkceEnforcedForPublicClients.GetHashCode(); if (this.HydraOauth2RefreshTokenHook != null) @@ -3235,6 +3294,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.KratosCourierTemplatesLoginCodeValidEmailSubject.GetHashCode(); } + if (this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext != null) + { + hashCode = (hashCode * 59) + this.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext.GetHashCode(); + } if (this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml != null) { hashCode = (hashCode * 59) + this.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml.GetHashCode(); @@ -3539,6 +3602,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodeConfigLifespan.GetHashCode(); } hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodeEnabled.GetHashCode(); + hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodeMfaEnabled.GetHashCode(); hashCode = (hashCode * 59) + this.KratosSelfserviceMethodsCodePasswordlessEnabled.GetHashCode(); if (this.KratosSelfserviceMethodsLinkConfigBaseUrl != null) { diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionCourierChannel.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionCourierChannel.cs index 188c042ae36..99aa5f321a2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionCourierChannel.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionCourierChannel.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionHook.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionHook.cs index 11f8570a69b..e4837d362a8 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionHook.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionHook.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionIdentitySchema.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionIdentitySchema.cs index 47900bddae6..dbc3a152bc6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionIdentitySchema.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionIdentitySchema.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionThirdPartyProvider.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionThirdPartyProvider.cs index 5a6303e6edd..04dcdcec70a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionThirdPartyProvider.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionThirdPartyProvider.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -69,6 +69,7 @@ public enum StateEnum /// Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret. /// AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`.. /// Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`.. + /// claimsSource. /// ClientID is the application's Client ID.. /// clientSecret. /// id. @@ -84,7 +85,7 @@ public enum StateEnum /// State indicates the state of the provider Only providers with state `enabled` will be used for authentication enabled ThirdPartyProviderStateEnabled disabled ThirdPartyProviderStateDisabled. /// subjectSource. /// TokenURL is the token url, typically something like: https://example.org/oauth2/token Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`.. - public ClientNormalizedProjectRevisionThirdPartyProvider(List additionalIdTokenAudiences = default(List), string applePrivateKey = default(string), string applePrivateKeyId = default(string), string appleTeamId = default(string), string authUrl = default(string), string azureTenant = default(string), string clientId = default(string), string clientSecret = default(string), string id = default(string), string issuerUrl = default(string), string label = default(string), string mapperUrl = default(string), string organizationId = default(string), string projectRevisionId = default(string), string provider = default(string), string providerId = default(string), Object requestedClaims = default(Object), List scope = default(List), StateEnum? state = default(StateEnum?), string subjectSource = default(string), string tokenUrl = default(string)) + public ClientNormalizedProjectRevisionThirdPartyProvider(List additionalIdTokenAudiences = default(List), string applePrivateKey = default(string), string applePrivateKeyId = default(string), string appleTeamId = default(string), string authUrl = default(string), string azureTenant = default(string), string claimsSource = default(string), string clientId = default(string), string clientSecret = default(string), string id = default(string), string issuerUrl = default(string), string label = default(string), string mapperUrl = default(string), string organizationId = default(string), string projectRevisionId = default(string), string provider = default(string), string providerId = default(string), Object requestedClaims = default(Object), List scope = default(List), StateEnum? state = default(StateEnum?), string subjectSource = default(string), string tokenUrl = default(string)) { this.AdditionalIdTokenAudiences = additionalIdTokenAudiences; this.ApplePrivateKey = applePrivateKey; @@ -92,6 +93,7 @@ public enum StateEnum this.AppleTeamId = appleTeamId; this.AuthUrl = authUrl; this.AzureTenant = azureTenant; + this.ClaimsSource = claimsSource; this.ClientId = clientId; this.ClientSecret = clientSecret; this.Id = id; @@ -150,6 +152,12 @@ public enum StateEnum [DataMember(Name = "azure_tenant", EmitDefaultValue = false)] public string AzureTenant { get; set; } + /// + /// Gets or Sets ClaimsSource + /// + [DataMember(Name = "claims_source", EmitDefaultValue = true)] + public string ClaimsSource { get; set; } + /// /// ClientID is the application's Client ID. /// @@ -292,6 +300,7 @@ public override string ToString() sb.Append(" AppleTeamId: ").Append(AppleTeamId).Append("\n"); sb.Append(" AuthUrl: ").Append(AuthUrl).Append("\n"); sb.Append(" AzureTenant: ").Append(AzureTenant).Append("\n"); + sb.Append(" ClaimsSource: ").Append(ClaimsSource).Append("\n"); sb.Append(" ClientId: ").Append(ClientId).Append("\n"); sb.Append(" ClientSecret: ").Append(ClientSecret).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); @@ -376,6 +385,11 @@ public bool Equals(ClientNormalizedProjectRevisionThirdPartyProvider input) (this.AzureTenant != null && this.AzureTenant.Equals(input.AzureTenant)) ) && + ( + this.ClaimsSource == input.ClaimsSource || + (this.ClaimsSource != null && + this.ClaimsSource.Equals(input.ClaimsSource)) + ) && ( this.ClientId == input.ClientId || (this.ClientId != null && @@ -497,6 +511,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.AzureTenant.GetHashCode(); } + if (this.ClaimsSource != null) + { + hashCode = (hashCode * 59) + this.ClaimsSource.GetHashCode(); + } if (this.ClientId != null) { hashCode = (hashCode * 59) + this.ClientId.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionTokenizerTemplate.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionTokenizerTemplate.cs index ff59b90223c..35d8ef85694 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionTokenizerTemplate.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientNormalizedProjectRevisionTokenizerTemplate.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2Client.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2Client.cs index c927845e8e4..4e5fe2ffb38 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2Client.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2Client.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -76,13 +76,14 @@ public partial class ClientOAuth2Client : IEquatable, IValid /// OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. /// OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. (default to "client_secret_basic"). /// OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. /// OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.. /// OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update.. /// OpenID Connect Request Userinfo Signed Response Algorithm JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.. - public ClientOAuth2Client(string accessTokenStrategy = default(string), List allowedCorsOrigins = default(List), List audience = default(List), string authorizationCodeGrantAccessTokenLifespan = default(string), string authorizationCodeGrantIdTokenLifespan = default(string), string authorizationCodeGrantRefreshTokenLifespan = default(string), bool backchannelLogoutSessionRequired = default(bool), string backchannelLogoutUri = default(string), string clientCredentialsGrantAccessTokenLifespan = default(string), string clientId = default(string), string clientName = default(string), string clientSecret = default(string), long clientSecretExpiresAt = default(long), string clientUri = default(string), List contacts = default(List), DateTime createdAt = default(DateTime), bool frontchannelLogoutSessionRequired = default(bool), string frontchannelLogoutUri = default(string), List grantTypes = default(List), string implicitGrantAccessTokenLifespan = default(string), string implicitGrantIdTokenLifespan = default(string), Object jwks = default(Object), string jwksUri = default(string), string jwtBearerGrantAccessTokenLifespan = default(string), string logoUri = default(string), Object metadata = default(Object), string owner = default(string), string policyUri = default(string), List postLogoutRedirectUris = default(List), List redirectUris = default(List), string refreshTokenGrantAccessTokenLifespan = default(string), string refreshTokenGrantIdTokenLifespan = default(string), string refreshTokenGrantRefreshTokenLifespan = default(string), string registrationAccessToken = default(string), string registrationClientUri = default(string), string requestObjectSigningAlg = default(string), List requestUris = default(List), List responseTypes = default(List), string scope = default(string), string sectorIdentifierUri = default(string), bool skipConsent = default(bool), string subjectType = default(string), string tokenEndpointAuthMethod = "client_secret_basic", string tokenEndpointAuthSigningAlg = default(string), string tosUri = default(string), DateTime updatedAt = default(DateTime), string userinfoSignedResponseAlg = default(string)) + public ClientOAuth2Client(string accessTokenStrategy = default(string), List allowedCorsOrigins = default(List), List audience = default(List), string authorizationCodeGrantAccessTokenLifespan = default(string), string authorizationCodeGrantIdTokenLifespan = default(string), string authorizationCodeGrantRefreshTokenLifespan = default(string), bool backchannelLogoutSessionRequired = default(bool), string backchannelLogoutUri = default(string), string clientCredentialsGrantAccessTokenLifespan = default(string), string clientId = default(string), string clientName = default(string), string clientSecret = default(string), long clientSecretExpiresAt = default(long), string clientUri = default(string), List contacts = default(List), DateTime createdAt = default(DateTime), bool frontchannelLogoutSessionRequired = default(bool), string frontchannelLogoutUri = default(string), List grantTypes = default(List), string implicitGrantAccessTokenLifespan = default(string), string implicitGrantIdTokenLifespan = default(string), Object jwks = default(Object), string jwksUri = default(string), string jwtBearerGrantAccessTokenLifespan = default(string), string logoUri = default(string), Object metadata = default(Object), string owner = default(string), string policyUri = default(string), List postLogoutRedirectUris = default(List), List redirectUris = default(List), string refreshTokenGrantAccessTokenLifespan = default(string), string refreshTokenGrantIdTokenLifespan = default(string), string refreshTokenGrantRefreshTokenLifespan = default(string), string registrationAccessToken = default(string), string registrationClientUri = default(string), string requestObjectSigningAlg = default(string), List requestUris = default(List), List responseTypes = default(List), string scope = default(string), string sectorIdentifierUri = default(string), bool skipConsent = default(bool), bool skipLogoutConsent = default(bool), string subjectType = default(string), string tokenEndpointAuthMethod = "client_secret_basic", string tokenEndpointAuthSigningAlg = default(string), string tosUri = default(string), DateTime updatedAt = default(DateTime), string userinfoSignedResponseAlg = default(string)) { this.AccessTokenStrategy = accessTokenStrategy; this.AllowedCorsOrigins = allowedCorsOrigins; @@ -125,6 +126,7 @@ public partial class ClientOAuth2Client : IEquatable, IValid this.Scope = scope; this.SectorIdentifierUri = sectorIdentifierUri; this.SkipConsent = skipConsent; + this.SkipLogoutConsent = skipLogoutConsent; this.SubjectType = subjectType; // use default value if no "tokenEndpointAuthMethod" provided this.TokenEndpointAuthMethod = tokenEndpointAuthMethod ?? "client_secret_basic"; @@ -403,6 +405,13 @@ public partial class ClientOAuth2Client : IEquatable, IValid [DataMember(Name = "skip_consent", EmitDefaultValue = true)] public bool SkipConsent { get; set; } + /// + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + /// + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + [DataMember(Name = "skip_logout_consent", EmitDefaultValue = true)] + public bool SkipLogoutConsent { get; set; } + /// /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. /// @@ -500,6 +509,7 @@ public override string ToString() sb.Append(" Scope: ").Append(Scope).Append("\n"); sb.Append(" SectorIdentifierUri: ").Append(SectorIdentifierUri).Append("\n"); sb.Append(" SkipConsent: ").Append(SkipConsent).Append("\n"); + sb.Append(" SkipLogoutConsent: ").Append(SkipLogoutConsent).Append("\n"); sb.Append(" SubjectType: ").Append(SubjectType).Append("\n"); sb.Append(" TokenEndpointAuthMethod: ").Append(TokenEndpointAuthMethod).Append("\n"); sb.Append(" TokenEndpointAuthSigningAlg: ").Append(TokenEndpointAuthSigningAlg).Append("\n"); @@ -751,6 +761,10 @@ public bool Equals(ClientOAuth2Client input) this.SkipConsent == input.SkipConsent || this.SkipConsent.Equals(input.SkipConsent) ) && + ( + this.SkipLogoutConsent == input.SkipLogoutConsent || + this.SkipLogoutConsent.Equals(input.SkipLogoutConsent) + ) && ( this.SubjectType == input.SubjectType || (this.SubjectType != null && @@ -945,6 +959,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.SectorIdentifierUri.GetHashCode(); } hashCode = (hashCode * 59) + this.SkipConsent.GetHashCode(); + hashCode = (hashCode * 59) + this.SkipLogoutConsent.GetHashCode(); if (this.SubjectType != null) { hashCode = (hashCode * 59) + this.SubjectType.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ClientTokenLifespans.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ClientTokenLifespans.cs index 71228aeb359..6b677a3cb60 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ClientTokenLifespans.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ClientTokenLifespans.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequest.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequest.cs index 276af9d76d8..7b4e0ba7895 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequest.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequestOpenIDConnectContext.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequestOpenIDConnectContext.cs index d5cdf5c86ec..e9bc57be870 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequestOpenIDConnectContext.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentRequestOpenIDConnectContext.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSession.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSession.cs index 42c5a886388..8da0dda9e14 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSession.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSession.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -36,6 +36,7 @@ public partial class ClientOAuth2ConsentSession : IEquatable class. /// /// consentRequest. + /// context. /// expiresAt. /// grantAccessTokenAudience. /// grantScope. @@ -43,9 +44,10 @@ public partial class ClientOAuth2ConsentSession : IEquatableRemember Consent Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.. /// Remember Consent For RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.. /// session. - public ClientOAuth2ConsentSession(ClientOAuth2ConsentRequest consentRequest = default(ClientOAuth2ConsentRequest), ClientOAuth2ConsentSessionExpiresAt expiresAt = default(ClientOAuth2ConsentSessionExpiresAt), List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), ClientAcceptOAuth2ConsentRequestSession session = default(ClientAcceptOAuth2ConsentRequestSession)) + public ClientOAuth2ConsentSession(ClientOAuth2ConsentRequest consentRequest = default(ClientOAuth2ConsentRequest), Object context = default(Object), ClientOAuth2ConsentSessionExpiresAt expiresAt = default(ClientOAuth2ConsentSessionExpiresAt), List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), ClientAcceptOAuth2ConsentRequestSession session = default(ClientAcceptOAuth2ConsentRequestSession)) { this.ConsentRequest = consentRequest; + this.Context = context; this.ExpiresAt = expiresAt; this.GrantAccessTokenAudience = grantAccessTokenAudience; this.GrantScope = grantScope; @@ -62,6 +64,12 @@ public partial class ClientOAuth2ConsentSession : IEquatable + /// Gets or Sets Context + /// + [DataMember(Name = "context", EmitDefaultValue = false)] + public Object Context { get; set; } + /// /// Gets or Sets ExpiresAt /// @@ -121,6 +129,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class ClientOAuth2ConsentSession {\n"); sb.Append(" ConsentRequest: ").Append(ConsentRequest).Append("\n"); + sb.Append(" Context: ").Append(Context).Append("\n"); sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); sb.Append(" GrantAccessTokenAudience: ").Append(GrantAccessTokenAudience).Append("\n"); sb.Append(" GrantScope: ").Append(GrantScope).Append("\n"); @@ -169,6 +178,11 @@ public bool Equals(ClientOAuth2ConsentSession input) (this.ConsentRequest != null && this.ConsentRequest.Equals(input.ConsentRequest)) ) && + ( + this.Context == input.Context || + (this.Context != null && + this.Context.Equals(input.Context)) + ) && ( this.ExpiresAt == input.ExpiresAt || (this.ExpiresAt != null && @@ -220,6 +234,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ConsentRequest.GetHashCode(); } + if (this.Context != null) + { + hashCode = (hashCode * 59) + this.Context.GetHashCode(); + } if (this.ExpiresAt != null) { hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSessionExpiresAt.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSessionExpiresAt.cs index 4f8ac3484a3..edf3128fe12 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSessionExpiresAt.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2ConsentSessionExpiresAt.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LoginRequest.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LoginRequest.cs index 56038da52bb..967ac7f37fd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LoginRequest.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LoginRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LogoutRequest.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LogoutRequest.cs index b9906368a7d..274e15c3175 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LogoutRequest.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2LogoutRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2RedirectTo.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2RedirectTo.cs index 16368305f93..db66daf1bc8 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2RedirectTo.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2RedirectTo.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2TokenExchange.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2TokenExchange.cs index fb9866db6b2..eaf248cafc9 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2TokenExchange.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOAuth2TokenExchange.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOidcConfiguration.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOidcConfiguration.cs index feb6aa845da..746a0487143 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOidcConfiguration.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOidcConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOidcUserInfo.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOidcUserInfo.cs index 13db04d6e9f..4cbee445e82 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOidcUserInfo.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOidcUserInfo.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOrganization.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOrganization.cs index 579eb52c0af..0cd9df6f16a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOrganization.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOrganization.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientOrganizationBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientOrganizationBody.cs index 69147655f20..db99e537a5a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientOrganizationBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientOrganizationBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPagination.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPagination.cs index f809e6bbc64..da7478e0684 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPagination.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPagination.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPaginationHeaders.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPaginationHeaders.cs index 355504a2d40..6ee508d9094 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPaginationHeaders.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPaginationHeaders.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientParseError.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientParseError.cs index e6cc1963483..d945ad136c2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientParseError.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientParseError.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPatchIdentitiesBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPatchIdentitiesBody.cs index 63972433335..8b915f471fb 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPatchIdentitiesBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPatchIdentitiesBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPerformNativeLogoutBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPerformNativeLogoutBody.cs index d4c20e644ac..1a2dbfaa9d1 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPerformNativeLogoutBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPerformNativeLogoutBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientStripeCustomer.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPermissionsOnWorkpaceResponse.cs similarity index 68% rename from clients/client/dotnet/src/Ory.Client/Model/ClientStripeCustomer.cs rename to clients/client/dotnet/src/Ory.Client/Model/ClientPermissionsOnWorkpaceResponse.cs index cd62e9fdc72..8f6e4ef0645 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientStripeCustomer.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPermissionsOnWorkpaceResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,26 +27,26 @@ namespace Ory.Client.Model { /// - /// ClientStripeCustomer + /// Get Permissions on Project Request Parameters /// - [DataContract(Name = "stripeCustomer")] - public partial class ClientStripeCustomer : IEquatable, IValidatableObject + [DataContract(Name = "permissionsOnWorkpaceResponse")] + public partial class ClientPermissionsOnWorkpaceResponse : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// id. - public ClientStripeCustomer(string id = default(string)) + /// permissions. + public ClientPermissionsOnWorkpaceResponse(Dictionary permissions = default(Dictionary)) { - this.Id = id; + this.Permissions = permissions; this.AdditionalProperties = new Dictionary(); } /// - /// Gets or Sets Id + /// Gets or Sets Permissions /// - [DataMember(Name = "id", EmitDefaultValue = false)] - public string Id { get; set; } + [DataMember(Name = "permissions", EmitDefaultValue = false)] + public Dictionary Permissions { get; set; } /// /// Gets or Sets additional properties @@ -61,8 +61,8 @@ public partial class ClientStripeCustomer : IEquatable, IV public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class ClientStripeCustomer {\n"); - sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append("class ClientPermissionsOnWorkpaceResponse {\n"); + sb.Append(" Permissions: ").Append(Permissions).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -84,15 +84,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as ClientStripeCustomer); + return this.Equals(input as ClientPermissionsOnWorkpaceResponse); } /// - /// Returns true if ClientStripeCustomer instances are equal + /// Returns true if ClientPermissionsOnWorkpaceResponse instances are equal /// - /// Instance of ClientStripeCustomer to be compared + /// Instance of ClientPermissionsOnWorkpaceResponse to be compared /// Boolean - public bool Equals(ClientStripeCustomer input) + public bool Equals(ClientPermissionsOnWorkpaceResponse input) { if (input == null) { @@ -100,9 +100,10 @@ public bool Equals(ClientStripeCustomer input) } return ( - this.Id == input.Id || - (this.Id != null && - this.Id.Equals(input.Id)) + this.Permissions == input.Permissions || + this.Permissions != null && + input.Permissions != null && + this.Permissions.SequenceEqual(input.Permissions) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -116,9 +117,9 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Id != null) + if (this.Permissions != null) { - hashCode = (hashCode * 59) + this.Id.GetHashCode(); + hashCode = (hashCode * 59) + this.Permissions.GetHashCode(); } if (this.AdditionalProperties != null) { diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPlan.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPlan.cs index 18a46087a6f..ae8febf8e05 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPlan.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPlan.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPlanDetails.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPlanDetails.cs index 7ec0f2e4931..805e1e38931 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPlanDetails.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPlanDetails.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,7 @@ protected ClientPlanDetails() /// BaseFeeYearly is the yearly base fee for the plan. (required). /// Custom is true if the plan is custom. This means it will be hidden from the pricing page. (required). /// Description is the description of the plan. (required). - /// Features are the feature definitions included in the plan. (required). + /// features (required). /// Name is the name of the plan. (required). /// Version is the version of the plan. The combination of `name@version` must be unique. (required). public ClientPlanDetails(long baseFeeMonthly = default(long), long baseFeeYearly = default(long), bool custom = default(bool), string description = default(string), Dictionary features = default(Dictionary), string name = default(string), long version = default(long)) @@ -103,9 +103,8 @@ protected ClientPlanDetails() public string Description { get; set; } /// - /// Features are the feature definitions included in the plan. + /// Gets or Sets Features /// - /// Features are the feature definitions included in the plan. [DataMember(Name = "features", IsRequired = true, EmitDefaultValue = false)] public Dictionary Features { get; set; } diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionBody.cs index f2f2af80a02..183d0a7426c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionOrErrorBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionOrErrorBody.cs index 632d7651a94..24d75c15884 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionOrErrorBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientPostCheckPermissionOrErrorBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProject.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProject.cs index 5e994df77ac..4bdfef04aa7 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProject.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProject.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectApiKey.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectApiKey.cs index 8a06e55ae84..41343fb5dbb 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectApiKey.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectApiKey.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBranding.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBranding.cs index b37f9d3b480..f054458bf48 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBranding.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBranding.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingColors.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingColors.cs index 8f741f6a6be..b154077cc55 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingColors.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingColors.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingTheme.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingTheme.cs index 98ef42a3b67..8417a5efcf2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingTheme.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectBrandingTheme.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectCors.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectCors.cs index 27fb3b7efb2..7b65b5b44bb 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectCors.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectCors.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectEventsDatapoint.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectEventsDatapoint.cs index ce5fb98f828..e9604eb7447 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectEventsDatapoint.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectEventsDatapoint.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectHost.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectHost.cs index 6bfed3127cb..b2615b7c8c6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectHost.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectHost.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMember.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMember.cs new file mode 100644 index 00000000000..ef804f07be3 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMember.cs @@ -0,0 +1,220 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientProjectMember + /// + [DataContract(Name = "projectMember")] + public partial class ClientProjectMember : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientProjectMember() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// email (required). + /// id (required). + /// name (required). + /// role (required). + public ClientProjectMember(string email = default(string), string id = default(string), string name = default(string), string role = default(string)) + { + // to ensure "email" is required (not null) + if (email == null) { + throw new ArgumentNullException("email is a required property for ClientProjectMember and cannot be null"); + } + this.Email = email; + // to ensure "id" is required (not null) + if (id == null) { + throw new ArgumentNullException("id is a required property for ClientProjectMember and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for ClientProjectMember and cannot be null"); + } + this.Name = name; + // to ensure "role" is required (not null) + if (role == null) { + throw new ArgumentNullException("role is a required property for ClientProjectMember and cannot be null"); + } + this.Role = role; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets Email + /// + [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = false)] + public string Email { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets Role + /// + [DataMember(Name = "role", IsRequired = true, EmitDefaultValue = false)] + public string Role { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientProjectMember {\n"); + sb.Append(" Email: ").Append(Email).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" Role: ").Append(Role).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientProjectMember); + } + + /// + /// Returns true if ClientProjectMember instances are equal + /// + /// Instance of ClientProjectMember to be compared + /// Boolean + public bool Equals(ClientProjectMember input) + { + if (input == null) + { + return false; + } + return + ( + this.Email == input.Email || + (this.Email != null && + this.Email.Equals(input.Email)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.Role == input.Role || + (this.Role != null && + this.Role.Equals(input.Role)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Email != null) + { + hashCode = (hashCode * 59) + this.Email.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.Role != null) + { + hashCode = (hashCode * 59) + this.Role.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMetadata.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMetadata.cs index 95162826408..3de2d7c8f4a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMetadata.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectMetadata.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Client.Model [DataContract(Name = "projectMetadata")] public partial class ClientProjectMetadata : IEquatable, IValidatableObject { + /// + /// The environment of the project. prod Production dev Development + /// + /// The environment of the project. prod Production dev Development + [JsonConverter(typeof(StringEnumConverter))] + public enum EnvironmentEnum + { + /// + /// Enum Prod for value: prod + /// + [EnumMember(Value = "prod")] + Prod = 1, + + /// + /// Enum Dev for value: dev + /// + [EnumMember(Value = "dev")] + Dev = 2 + + } + + + /// + /// The environment of the project. prod Production dev Development + /// + /// The environment of the project. prod Production dev Development + [DataMember(Name = "environment", IsRequired = true, EmitDefaultValue = false)] + public EnvironmentEnum Environment { get; set; } /// /// The state of the project. running Running halted Halted deleted Deleted /// @@ -78,6 +106,7 @@ protected ClientProjectMetadata() /// Initializes a new instance of the class. /// /// The Project's Creation Date (required). + /// The environment of the project. prod Production dev Development (required). /// hosts (required). /// The project's name if set (required). /// The state of the project. running Running halted Halted deleted Deleted (required). @@ -85,9 +114,10 @@ protected ClientProjectMetadata() /// subscriptionPlan. /// Last Time Project was Updated (required). /// workspaceId. - public ClientProjectMetadata(DateTime createdAt = default(DateTime), List hosts = default(List), string name = default(string), StateEnum state = default(StateEnum), string subscriptionId = default(string), string subscriptionPlan = default(string), DateTime updatedAt = default(DateTime), string workspaceId = default(string)) + public ClientProjectMetadata(DateTime createdAt = default(DateTime), EnvironmentEnum environment = default(EnvironmentEnum), List hosts = default(List), string name = default(string), StateEnum state = default(StateEnum), string subscriptionId = default(string), string subscriptionPlan = default(string), DateTime updatedAt = default(DateTime), string workspaceId = default(string)) { this.CreatedAt = createdAt; + this.Environment = environment; // to ensure "hosts" is required (not null) if (hosts == null) { throw new ArgumentNullException("hosts is a required property for ClientProjectMetadata and cannot be null"); @@ -196,6 +226,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class ClientProjectMetadata {\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Environment: ").Append(Environment).Append("\n"); sb.Append(" Hosts: ").Append(Hosts).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Name: ").Append(Name).Append("\n"); @@ -246,6 +277,10 @@ public bool Equals(ClientProjectMetadata input) (this.CreatedAt != null && this.CreatedAt.Equals(input.CreatedAt)) ) && + ( + this.Environment == input.Environment || + this.Environment.Equals(input.Environment) + ) && ( this.Hosts == input.Hosts || this.Hosts != null && @@ -307,6 +342,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); } + hashCode = (hashCode * 59) + this.Environment.GetHashCode(); if (this.Hosts != null) { hashCode = (hashCode * 59) + this.Hosts.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceIdentity.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceIdentity.cs index 95c61d01543..a9e20d5a4ab 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceIdentity.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceIdentity.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceOAuth2.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceOAuth2.cs index 9073d358b3c..7b9fc97d5de 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceOAuth2.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServiceOAuth2.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServicePermission.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServicePermission.cs index aaba6332c62..6ba407dac32 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServicePermission.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServicePermission.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServices.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServices.cs index 2536003498e..12a7a18060d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServices.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientProjectServices.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientQuotaUsage.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientQuotaUsage.cs index a4268a95d27..a71f7989407 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientQuotaUsage.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientQuotaUsage.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,9 +33,9 @@ namespace Ory.Client.Model public partial class ClientQuotaUsage : IEquatable, IValidatableObject { /// - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect /// - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect [JsonConverter(typeof(StringEnumConverter))] public enum FeatureEnum { @@ -147,31 +147,49 @@ public enum FeatureEnum [EnumMember(Value = "rop_grant")] RopGrant = 18, + /// + /// Enum ConciergeOnboarding for value: concierge_onboarding + /// + [EnumMember(Value = "concierge_onboarding")] + ConciergeOnboarding = 19, + /// /// Enum RateLimitTier for value: rate_limit_tier /// [EnumMember(Value = "rate_limit_tier")] - RateLimitTier = 19, + RateLimitTier = 20, /// /// Enum SessionRateLimitTier for value: session_rate_limit_tier /// [EnumMember(Value = "session_rate_limit_tier")] - SessionRateLimitTier = 20, + SessionRateLimitTier = 21, /// /// Enum IdentitiesListRateLimitTier for value: identities_list_rate_limit_tier /// [EnumMember(Value = "identities_list_rate_limit_tier")] - IdentitiesListRateLimitTier = 21 + IdentitiesListRateLimitTier = 22, + + /// + /// Enum PermissionChecksRateLimitTier for value: permission_checks_rate_limit_tier + /// + [EnumMember(Value = "permission_checks_rate_limit_tier")] + PermissionChecksRateLimitTier = 23, + + /// + /// Enum Oauth2IntrospectRateLimitTier for value: oauth2_introspect_rate_limit_tier + /// + [EnumMember(Value = "oauth2_introspect_rate_limit_tier")] + Oauth2IntrospectRateLimitTier = 24 } /// - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect /// - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect [DataMember(Name = "feature", IsRequired = true, EmitDefaultValue = false)] public FeatureEnum Feature { get; set; } /// @@ -187,7 +205,7 @@ protected ClientQuotaUsage() /// /// The additional price per unit in cents. (required). /// canUseMore (required). - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList (required). + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect (required). /// featureAvailable (required). /// included (required). /// used (required). diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRFC6749ErrorJson.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRFC6749ErrorJson.cs index 37ff5e84bb6..08d2e8113d6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRFC6749ErrorJson.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRFC6749ErrorJson.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryCodeForIdentity.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryCodeForIdentity.cs index eb989c61ad3..fd063ec01b6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryCodeForIdentity.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryCodeForIdentity.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlow.cs index 05a2c5b39b1..e7c41a8c89a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -51,9 +51,10 @@ protected ClientRecoveryFlow() /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required). /// ReturnTo contains the requested return_to URL.. /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. (required). + /// TransientPayload is used to pass data from the recovery flow to hooks and email templates. /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public ClientRecoveryFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) + public ClientRecoveryFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -85,6 +86,7 @@ protected ClientRecoveryFlow() this.Active = active; this.ContinueWith = continueWith; this.ReturnTo = returnTo; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -144,6 +146,13 @@ protected ClientRecoveryFlow() [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public Object State { get; set; } + /// + /// TransientPayload is used to pass data from the recovery flow to hooks and email templates + /// + /// TransientPayload is used to pass data from the recovery flow to hooks and email templates + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// The flow type can either be `api` or `browser`. /// @@ -179,6 +188,7 @@ public override string ToString() sb.Append(" RequestUrl: ").Append(RequestUrl).Append("\n"); sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Ui: ").Append(Ui).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -258,6 +268,11 @@ public bool Equals(ClientRecoveryFlow input) (this.State != null && this.State.Equals(input.State)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.Type == input.Type || (this.Type != null && @@ -312,6 +327,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.State.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlowState.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlowState.cs index 80a6ade912f..9ab251342de 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlowState.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryFlowState.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryIdentityAddress.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryIdentityAddress.cs index 52af4f4e5a8..26cee81475b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryIdentityAddress.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryIdentityAddress.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryLinkForIdentity.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryLinkForIdentity.cs index d955d824a53..89f3e000140 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryLinkForIdentity.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRecoveryLinkForIdentity.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlow.cs index 32f80217e2f..326c8eb4e86 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,70 @@ namespace Ory.Client.Model [DataContract(Name = "registrationFlow")] public partial class ClientRegistrationFlow : IEquatable, IValidatableObject { + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [JsonConverter(typeof(StringEnumConverter))] + public enum ActiveEnum + { + /// + /// Enum Password for value: password + /// + [EnumMember(Value = "password")] + Password = 1, + + /// + /// Enum Oidc for value: oidc + /// + [EnumMember(Value = "oidc")] + Oidc = 2, + + /// + /// Enum Totp for value: totp + /// + [EnumMember(Value = "totp")] + Totp = 3, + + /// + /// Enum LookupSecret for value: lookup_secret + /// + [EnumMember(Value = "lookup_secret")] + LookupSecret = 4, + + /// + /// Enum Webauthn for value: webauthn + /// + [EnumMember(Value = "webauthn")] + Webauthn = 5, + + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 6, + + /// + /// Enum LinkRecovery for value: link_recovery + /// + [EnumMember(Value = "link_recovery")] + LinkRecovery = 7, + + /// + /// Enum CodeRecovery for value: code_recovery + /// + [EnumMember(Value = "code_recovery")] + CodeRecovery = 8 + + } + + + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [DataMember(Name = "active", EmitDefaultValue = false)] + public ActiveEnum? Active { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,7 +107,7 @@ protected ClientRegistrationFlow() /// /// Initializes a new instance of the class. /// - /// active. + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required). /// ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> (required). /// IssuedAt is the time (UTC) when the flow occurred. (required). @@ -57,7 +121,7 @@ protected ClientRegistrationFlow() /// TransientPayload is used to pass data from the registration to a webhook. /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public ClientRegistrationFlow(ClientIdentityCredentialsType active = default(ClientIdentityCredentialsType), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), ClientOAuth2LoginRequest oauth2LoginRequest = default(ClientOAuth2LoginRequest), string organizationId = default(string), string requestUrl = default(string), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) + public ClientRegistrationFlow(ActiveEnum? active = default(ActiveEnum?), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), ClientOAuth2LoginRequest oauth2LoginRequest = default(ClientOAuth2LoginRequest), string organizationId = default(string), string requestUrl = default(string), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -96,12 +160,6 @@ protected ClientRegistrationFlow() this.AdditionalProperties = new Dictionary(); } - /// - /// Gets or Sets Active - /// - [DataMember(Name = "active", EmitDefaultValue = false)] - public ClientIdentityCredentialsType Active { get; set; } - /// /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. /// @@ -256,8 +314,7 @@ public bool Equals(ClientRegistrationFlow input) return ( this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) + this.Active.Equals(input.Active) ) && ( this.ExpiresAt == input.ExpiresAt || @@ -336,10 +393,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Active != null) - { - hashCode = (hashCode * 59) + this.Active.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Active.GetHashCode(); if (this.ExpiresAt != null) { hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlowState.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlowState.cs index f5b8ba78f23..6108be05579 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlowState.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRegistrationFlowState.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRejectOAuth2Request.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRejectOAuth2Request.cs index 032370f2761..a0654ffb9cd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRejectOAuth2Request.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRejectOAuth2Request.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationQuery.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationQuery.cs index bbb7e6e9c94..aa54e91c1a1 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationQuery.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationQuery.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationship.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationship.cs index a436979ec93..3ef9e5414ec 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationship.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationship.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipNamespaces.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipNamespaces.cs index a25bb2c7597..9e6354482ba 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipNamespaces.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipNamespaces.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipPatch.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipPatch.cs index 3151814af12..0477b4cec9c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipPatch.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationshipPatch.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationships.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationships.cs index 17cde9d37e6..1e0b2dbc32f 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientRelationships.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientRelationships.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSchemaPatch.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSchemaPatch.cs index c38da4b542b..05d2507b663 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSchemaPatch.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSchemaPatch.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSelfServiceFlowExpiredError.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSelfServiceFlowExpiredError.cs index 67773cacc3e..3b0077104e4 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSelfServiceFlowExpiredError.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSelfServiceFlowExpiredError.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSession.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSession.cs index d4125291ff9..549b3af1c37 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSession.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSession.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSessionActivityDatapoint.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSessionActivityDatapoint.cs index 8b8b6031bd9..a97143795cf 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSessionActivityDatapoint.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSessionActivityDatapoint.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSessionAuthenticationMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSessionAuthenticationMethod.cs index c01e470c4cc..0f6b99896e4 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSessionAuthenticationMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSessionAuthenticationMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSessionDevice.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSessionDevice.cs index 4253a03165a..401e1f5da66 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSessionDevice.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSessionDevice.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSetActiveProjectInConsoleBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSetActiveProjectInConsoleBody.cs index c6bdc931984..fa5942a0d08 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSetActiveProjectInConsoleBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSetActiveProjectInConsoleBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSetCustomDomainBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSetCustomDomainBody.cs index 6e57381eb7f..12023b6388b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSetCustomDomainBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSetCustomDomainBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSetEventStreamBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSetEventStreamBody.cs index 69bb8654c2e..526d9125325 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSetEventStreamBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSetEventStreamBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSetProject.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSetProject.cs index cbae257d0e4..754b0327c27 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSetProject.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSetProject.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSetProjectBrandingThemeBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSetProjectBrandingThemeBody.cs index f59de9830b6..d74eb11f1b3 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSetProjectBrandingThemeBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSetProjectBrandingThemeBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlow.cs index 7a89d3a410b..7fa1385fe04 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -52,9 +52,10 @@ protected ClientSettingsFlow() /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required). /// ReturnTo contains the requested return_to URL.. /// State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. (required). + /// TransientPayload is used to pass data from the settings flow to hooks and email templates. /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public ClientSettingsFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), ClientIdentity identity = default(ClientIdentity), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) + public ClientSettingsFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), ClientIdentity identity = default(ClientIdentity), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -91,6 +92,7 @@ protected ClientSettingsFlow() this.Active = active; this.ContinueWith = continueWith; this.ReturnTo = returnTo; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -156,6 +158,13 @@ protected ClientSettingsFlow() [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public Object State { get; set; } + /// + /// TransientPayload is used to pass data from the settings flow to hooks and email templates + /// + /// TransientPayload is used to pass data from the settings flow to hooks and email templates + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// The flow type can either be `api` or `browser`. /// @@ -192,6 +201,7 @@ public override string ToString() sb.Append(" RequestUrl: ").Append(RequestUrl).Append("\n"); sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Ui: ").Append(Ui).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -276,6 +286,11 @@ public bool Equals(ClientSettingsFlow input) (this.State != null && this.State.Equals(input.State)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.Type == input.Type || (this.Type != null && @@ -334,6 +349,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.State.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlowState.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlowState.cs index 9094a21ef69..fdd1d7c1b5e 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlowState.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSettingsFlowState.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSourcePosition.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSourcePosition.cs index 0db7b01fabc..6acdfd5ba14 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSourcePosition.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSourcePosition.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSubjectSet.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSubjectSet.cs index 69fc1968dfe..033f374720c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSubjectSet.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSubjectSet.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSubscription.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSubscription.cs index b8422d0e02d..1e69baed9e6 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSubscription.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSubscription.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -117,12 +117,14 @@ protected ClientSubscription() /// /// Initializes a new instance of the class. /// + /// currentPlanDetails. /// intervalChangesTo (required). /// ongoingStripeCheckoutId. /// planChangesAt. /// planChangesTo (required). /// For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. (required). - public ClientSubscription(string intervalChangesTo = default(string), string ongoingStripeCheckoutId = default(string), DateTime planChangesAt = default(DateTime), string planChangesTo = default(string), string status = default(string)) + /// stripeCheckoutExpiresAt. + public ClientSubscription(ClientPlanDetails currentPlanDetails = default(ClientPlanDetails), string intervalChangesTo = default(string), string ongoingStripeCheckoutId = default(string), DateTime planChangesAt = default(DateTime), string planChangesTo = default(string), string status = default(string), DateTime stripeCheckoutExpiresAt = default(DateTime)) { // to ensure "intervalChangesTo" is required (not null) if (intervalChangesTo == null) { @@ -139,8 +141,10 @@ protected ClientSubscription() throw new ArgumentNullException("status is a required property for ClientSubscription and cannot be null"); } this.Status = status; + this.CurrentPlanDetails = currentPlanDetails; this.OngoingStripeCheckoutId = ongoingStripeCheckoutId; this.PlanChangesAt = planChangesAt; + this.StripeCheckoutExpiresAt = stripeCheckoutExpiresAt; this.AdditionalProperties = new Dictionary(); } @@ -173,6 +177,12 @@ public bool ShouldSerializeCurrentPlan() { return false; } + /// + /// Gets or Sets CurrentPlanDetails + /// + [DataMember(Name = "current_plan_details", EmitDefaultValue = false)] + public ClientPlanDetails CurrentPlanDetails { get; set; } + /// /// The ID of the stripe customer /// @@ -249,6 +259,12 @@ public bool ShouldSerializePayedUntil() [DataMember(Name = "status", IsRequired = true, EmitDefaultValue = false)] public string Status { get; set; } + /// + /// Gets or Sets StripeCheckoutExpiresAt + /// + [DataMember(Name = "stripe_checkout_expires_at", EmitDefaultValue = false)] + public DateTime StripeCheckoutExpiresAt { get; set; } + /// /// Gets or Sets UpdatedAt /// @@ -281,6 +297,7 @@ public override string ToString() sb.Append(" Currency: ").Append(Currency).Append("\n"); sb.Append(" CurrentInterval: ").Append(CurrentInterval).Append("\n"); sb.Append(" CurrentPlan: ").Append(CurrentPlan).Append("\n"); + sb.Append(" CurrentPlanDetails: ").Append(CurrentPlanDetails).Append("\n"); sb.Append(" CustomerId: ").Append(CustomerId).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IntervalChangesTo: ").Append(IntervalChangesTo).Append("\n"); @@ -289,6 +306,7 @@ public override string ToString() sb.Append(" PlanChangesAt: ").Append(PlanChangesAt).Append("\n"); sb.Append(" PlanChangesTo: ").Append(PlanChangesTo).Append("\n"); sb.Append(" Status: ").Append(Status).Append("\n"); + sb.Append(" StripeCheckoutExpiresAt: ").Append(StripeCheckoutExpiresAt).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -344,6 +362,11 @@ public bool Equals(ClientSubscription input) (this.CurrentPlan != null && this.CurrentPlan.Equals(input.CurrentPlan)) ) && + ( + this.CurrentPlanDetails == input.CurrentPlanDetails || + (this.CurrentPlanDetails != null && + this.CurrentPlanDetails.Equals(input.CurrentPlanDetails)) + ) && ( this.CustomerId == input.CustomerId || (this.CustomerId != null && @@ -384,6 +407,11 @@ public bool Equals(ClientSubscription input) (this.Status != null && this.Status.Equals(input.Status)) ) && + ( + this.StripeCheckoutExpiresAt == input.StripeCheckoutExpiresAt || + (this.StripeCheckoutExpiresAt != null && + this.StripeCheckoutExpiresAt.Equals(input.StripeCheckoutExpiresAt)) + ) && ( this.UpdatedAt == input.UpdatedAt || (this.UpdatedAt != null && @@ -411,6 +439,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CurrentPlan.GetHashCode(); } + if (this.CurrentPlanDetails != null) + { + hashCode = (hashCode * 59) + this.CurrentPlanDetails.GetHashCode(); + } if (this.CustomerId != null) { hashCode = (hashCode * 59) + this.CustomerId.GetHashCode(); @@ -443,6 +475,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Status.GetHashCode(); } + if (this.StripeCheckoutExpiresAt != null) + { + hashCode = (hashCode * 59) + this.StripeCheckoutExpiresAt.GetHashCode(); + } if (this.UpdatedAt != null) { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulCodeExchangeResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulCodeExchangeResponse.cs index 03a84185eb5..e1fd6ac916f 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulCodeExchangeResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulCodeExchangeResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeLogin.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeLogin.cs index 6933239a572..24ada3f2a12 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeLogin.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeLogin.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeRegistration.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeRegistration.cs index 01b02f1b270..f6f5611fdc4 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeRegistration.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulNativeRegistration.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulProjectUpdate.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulProjectUpdate.cs index d808ca99837..24e663809b5 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulProjectUpdate.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientSuccessfulProjectUpdate.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPagination.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPagination.cs index 966bf2b2f5c..207bd385022 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPagination.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPagination.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationHeaders.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationHeaders.cs index 7a8b7167295..53a4dd9d368 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationHeaders.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationHeaders.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationRequestParameters.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationRequestParameters.cs index 9a130db0fe3..09b70f56157 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationRequestParameters.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationRequestParameters.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationResponseHeaders.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationResponseHeaders.cs index 51fc3a4023c..5aa13630332 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationResponseHeaders.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTokenPaginationResponseHeaders.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTrustOAuth2JwtGrantIssuer.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTrustOAuth2JwtGrantIssuer.cs index 2eed26cf0ac..ba2d6ad7b6e 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTrustOAuth2JwtGrantIssuer.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTrustOAuth2JwtGrantIssuer.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantIssuer.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantIssuer.cs index d5f6ef52dfe..efeccbe55b3 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantIssuer.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantIssuer.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantJsonWebKey.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantJsonWebKey.cs index ba99f7c0f11..30ceecbc84c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantJsonWebKey.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientTrustedOAuth2JwtGrantJsonWebKey.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiContainer.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiContainer.cs index 63559d7ad3f..b74fb94c72b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiContainer.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiContainer.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNode.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNode.cs index 34ab1e56499..de82a5ad110 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNode.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNode.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAnchorAttributes.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAnchorAttributes.cs index a9b8f88d422..8b90e9981e2 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAnchorAttributes.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAnchorAttributes.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAttributes.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAttributes.cs index 084bd5aa7c6..1797c2b7690 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAttributes.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeAttributes.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeImageAttributes.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeImageAttributes.cs index 2ed97000c40..57bd1a1fb77 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeImageAttributes.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeImageAttributes.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeInputAttributes.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeInputAttributes.cs index 9a8fd093f91..30689ff409d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeInputAttributes.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeInputAttributes.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeMeta.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeMeta.cs index 6df9623eb03..6281779ecb0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeMeta.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeMeta.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeScriptAttributes.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeScriptAttributes.cs index 63ffeca5aeb..d1100418302 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeScriptAttributes.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeScriptAttributes.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeTextAttributes.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeTextAttributes.cs index f98fd8603c2..32c930f4b97 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeTextAttributes.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiNodeTextAttributes.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUiText.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUiText.cs index b0f0b8c65b8..ffe71466b26 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUiText.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUiText.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateIdentityBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateIdentityBody.cs index 25574548616..d15b9772e35 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateIdentityBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateIdentityBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Client.Model [DataContract(Name = "updateIdentityBody")] public partial class ClientUpdateIdentityBody : IEquatable, IValidatableObject { + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + /// + /// Enum Active for value: active + /// + [EnumMember(Value = "active")] + Active = 1, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 2 + + } + + + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] + public StateEnum State { get; set; } /// /// Initializes a new instance of the class. /// @@ -47,19 +75,15 @@ protected ClientUpdateIdentityBody() /// Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`.. /// Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.. /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. (required). - /// state (required). + /// State is the identity's state. active StateActive inactive StateInactive (required). /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. (required). - public ClientUpdateIdentityBody(ClientIdentityWithCredentials credentials = default(ClientIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string schemaId = default(string), ClientIdentityState state = default(ClientIdentityState), Object traits = default(Object)) + public ClientUpdateIdentityBody(ClientIdentityWithCredentials credentials = default(ClientIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string schemaId = default(string), StateEnum state = default(StateEnum), Object traits = default(Object)) { // to ensure "schemaId" is required (not null) if (schemaId == null) { throw new ArgumentNullException("schemaId is a required property for ClientUpdateIdentityBody and cannot be null"); } this.SchemaId = schemaId; - // to ensure "state" is required (not null) - if (state == null) { - throw new ArgumentNullException("state is a required property for ClientUpdateIdentityBody and cannot be null"); - } this.State = state; // to ensure "traits" is required (not null) if (traits == null) { @@ -99,12 +123,6 @@ protected ClientUpdateIdentityBody() [DataMember(Name = "schema_id", IsRequired = true, EmitDefaultValue = false)] public string SchemaId { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] - public ClientIdentityState State { get; set; } - /// /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. /// @@ -190,8 +208,7 @@ public bool Equals(ClientUpdateIdentityBody input) ) && ( this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + this.State.Equals(input.State) ) && ( this.Traits == input.Traits || @@ -226,10 +243,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SchemaId.GetHashCode(); } - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } + hashCode = (hashCode * 59) + this.State.GetHashCode(); if (this.Traits != null) { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowBody.cs index 20f32a372fd..72968843a01 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithCodeMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithCodeMethod.cs index bd4a6891365..78bf4eabfec 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithCodeMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithCodeMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,7 +48,8 @@ protected ClientUpdateLoginFlowWithCodeMethod() /// Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow.. /// Method should be set to \"code\" when logging in using the code strategy. (required). /// Resend is set when the user wants to resend the code. - public ClientUpdateLoginFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string identifier = default(string), string method = default(string), string resend = default(string)) + /// Transient data to pass along to any webhooks. + public ClientUpdateLoginFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string identifier = default(string), string method = default(string), string resend = default(string), Object transientPayload = default(Object)) { // to ensure "csrfToken" is required (not null) if (csrfToken == null) { @@ -63,6 +64,7 @@ protected ClientUpdateLoginFlowWithCodeMethod() this.Code = code; this.Identifier = identifier; this.Resend = resend; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -101,6 +103,13 @@ protected ClientUpdateLoginFlowWithCodeMethod() [DataMember(Name = "resend", EmitDefaultValue = false)] public string Resend { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -120,6 +129,7 @@ public override string ToString() sb.Append(" Identifier: ").Append(Identifier).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Resend: ").Append(Resend).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -180,6 +190,11 @@ public bool Equals(ClientUpdateLoginFlowWithCodeMethod input) this.Resend == input.Resend || (this.Resend != null && this.Resend.Equals(input.Resend)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -213,6 +228,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Resend.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithLookupSecretMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithLookupSecretMethod.cs index 54993b6d14c..d5c7cc3b3e9 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithLookupSecretMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithLookupSecretMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithOidcMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithOidcMethod.cs index 6918a92a0cb..1957809e9d4 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithOidcMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithOidcMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,8 +49,9 @@ protected ClientUpdateLoginFlowWithOidcMethod() /// Method to use This field must be set to `oidc` when using the oidc method. (required). /// The provider to register with (required). /// The identity traits. This is a placeholder for the registration flow.. + /// Transient data to pass along to any webhooks. /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. - public ClientUpdateLoginFlowWithOidcMethod(string csrfToken = default(string), string idToken = default(string), string idTokenNonce = default(string), string method = default(string), string provider = default(string), Object traits = default(Object), Object upstreamParameters = default(Object)) + public ClientUpdateLoginFlowWithOidcMethod(string csrfToken = default(string), string idToken = default(string), string idTokenNonce = default(string), string method = default(string), string provider = default(string), Object traits = default(Object), Object transientPayload = default(Object), Object upstreamParameters = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -66,6 +67,7 @@ protected ClientUpdateLoginFlowWithOidcMethod() this.IdToken = idToken; this.IdTokenNonce = idTokenNonce; this.Traits = traits; + this.TransientPayload = transientPayload; this.UpstreamParameters = upstreamParameters; this.AdditionalProperties = new Dictionary(); } @@ -112,6 +114,13 @@ protected ClientUpdateLoginFlowWithOidcMethod() [DataMember(Name = "traits", EmitDefaultValue = false)] public Object Traits { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. /// @@ -139,6 +148,7 @@ public override string ToString() sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Provider: ").Append(Provider).Append("\n"); sb.Append(" Traits: ").Append(Traits).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" UpstreamParameters: ").Append(UpstreamParameters).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -206,6 +216,11 @@ public bool Equals(ClientUpdateLoginFlowWithOidcMethod input) (this.Traits != null && this.Traits.Equals(input.Traits)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.UpstreamParameters == input.UpstreamParameters || (this.UpstreamParameters != null && @@ -247,6 +262,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.UpstreamParameters != null) { hashCode = (hashCode * 59) + this.UpstreamParameters.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithPasswordMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithPasswordMethod.cs index 97abd2b7051..c1e78ecdfcd 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithPasswordMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithPasswordMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -48,7 +48,8 @@ protected ClientUpdateLoginFlowWithPasswordMethod() /// Method should be set to \"password\" when logging in using the identifier and password strategy. (required). /// The user's password. (required). /// Identifier is the email or username of the user trying to log in. This field is deprecated!. - public ClientUpdateLoginFlowWithPasswordMethod(string csrfToken = default(string), string identifier = default(string), string method = default(string), string password = default(string), string passwordIdentifier = default(string)) + /// Transient data to pass along to any webhooks. + public ClientUpdateLoginFlowWithPasswordMethod(string csrfToken = default(string), string identifier = default(string), string method = default(string), string password = default(string), string passwordIdentifier = default(string), Object transientPayload = default(Object)) { // to ensure "identifier" is required (not null) if (identifier == null) { @@ -67,6 +68,7 @@ protected ClientUpdateLoginFlowWithPasswordMethod() this.Password = password; this.CsrfToken = csrfToken; this.PasswordIdentifier = passwordIdentifier; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -105,6 +107,13 @@ protected ClientUpdateLoginFlowWithPasswordMethod() [DataMember(Name = "password_identifier", EmitDefaultValue = false)] public string PasswordIdentifier { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -124,6 +133,7 @@ public override string ToString() sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n"); sb.Append(" PasswordIdentifier: ").Append(PasswordIdentifier).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -184,6 +194,11 @@ public bool Equals(ClientUpdateLoginFlowWithPasswordMethod input) this.PasswordIdentifier == input.PasswordIdentifier || (this.PasswordIdentifier != null && this.PasswordIdentifier.Equals(input.PasswordIdentifier)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -217,6 +232,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.PasswordIdentifier.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithTotpMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithTotpMethod.cs index 48aac581e67..7380fbdc4ba 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithTotpMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithTotpMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,8 @@ protected ClientUpdateLoginFlowWithTotpMethod() /// Sending the anti-csrf token is only required for browser login flows.. /// Method should be set to \"totp\" when logging in using the TOTP strategy. (required). /// The TOTP code. (required). - public ClientUpdateLoginFlowWithTotpMethod(string csrfToken = default(string), string method = default(string), string totpCode = default(string)) + /// Transient data to pass along to any webhooks. + public ClientUpdateLoginFlowWithTotpMethod(string csrfToken = default(string), string method = default(string), string totpCode = default(string), Object transientPayload = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -59,6 +60,7 @@ protected ClientUpdateLoginFlowWithTotpMethod() } this.TotpCode = totpCode; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -83,6 +85,13 @@ protected ClientUpdateLoginFlowWithTotpMethod() [DataMember(Name = "totp_code", IsRequired = true, EmitDefaultValue = false)] public string TotpCode { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" TotpCode: ").Append(TotpCode).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -150,6 +160,11 @@ public bool Equals(ClientUpdateLoginFlowWithTotpMethod input) this.TotpCode == input.TotpCode || (this.TotpCode != null && this.TotpCode.Equals(input.TotpCode)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -175,6 +190,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.TotpCode.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithWebAuthnMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithWebAuthnMethod.cs index e60c7e3bef4..66a1b8c5d02 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithWebAuthnMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateLoginFlowWithWebAuthnMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,8 +46,9 @@ protected ClientUpdateLoginFlowWithWebAuthnMethod() /// Sending the anti-csrf token is only required for browser login flows.. /// Identifier is the email or username of the user trying to log in. (required). /// Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. (required). + /// Transient data to pass along to any webhooks. /// Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection.. - public ClientUpdateLoginFlowWithWebAuthnMethod(string csrfToken = default(string), string identifier = default(string), string method = default(string), string webauthnLogin = default(string)) + public ClientUpdateLoginFlowWithWebAuthnMethod(string csrfToken = default(string), string identifier = default(string), string method = default(string), Object transientPayload = default(Object), string webauthnLogin = default(string)) { // to ensure "identifier" is required (not null) if (identifier == null) { @@ -60,6 +61,7 @@ protected ClientUpdateLoginFlowWithWebAuthnMethod() } this.Method = method; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.WebauthnLogin = webauthnLogin; this.AdditionalProperties = new Dictionary(); } @@ -85,6 +87,13 @@ protected ClientUpdateLoginFlowWithWebAuthnMethod() [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = false)] public string Method { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. /// @@ -109,6 +118,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Identifier: ").Append(Identifier).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" WebauthnLogin: ").Append(WebauthnLogin).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -161,6 +171,11 @@ public bool Equals(ClientUpdateLoginFlowWithWebAuthnMethod input) (this.Method != null && this.Method.Equals(input.Method)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.WebauthnLogin == input.WebauthnLogin || (this.WebauthnLogin != null && @@ -190,6 +205,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Method.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.WebauthnLogin != null) { hashCode = (hashCode * 59) + this.WebauthnLogin.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowBody.cs index 01a49de6c52..824ff2c5363 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithCodeMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithCodeMethod.cs index 9b4902fd4f7..34dda08b4ae 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithCodeMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithCodeMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -75,12 +75,14 @@ protected ClientUpdateRecoveryFlowWithCodeMethod() /// Sending the anti-csrf token is only required for browser login flows.. /// The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. /// Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode (required). - public ClientUpdateRecoveryFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum)) + /// Transient data to pass along to any webhooks. + public ClientUpdateRecoveryFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum), Object transientPayload = default(Object)) { this.Method = method; this.Code = code; this.CsrfToken = csrfToken; this.Email = email; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -105,6 +107,13 @@ protected ClientUpdateRecoveryFlowWithCodeMethod() [DataMember(Name = "email", EmitDefaultValue = false)] public string Email { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -123,6 +132,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -177,6 +187,11 @@ public bool Equals(ClientUpdateRecoveryFlowWithCodeMethod input) ( this.Method == input.Method || this.Method.Equals(input.Method) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -203,6 +218,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Email.GetHashCode(); } hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithLinkMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithLinkMethod.cs index ebb6950211e..d6e77e1cf2c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithLinkMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRecoveryFlowWithLinkMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -74,7 +74,8 @@ protected ClientUpdateRecoveryFlowWithLinkMethod() /// Sending the anti-csrf token is only required for browser login flows.. /// Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email (required). /// Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode (required). - public ClientUpdateRecoveryFlowWithLinkMethod(string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum)) + /// Transient data to pass along to any webhooks. + public ClientUpdateRecoveryFlowWithLinkMethod(string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum), Object transientPayload = default(Object)) { // to ensure "email" is required (not null) if (email == null) { @@ -83,6 +84,7 @@ protected ClientUpdateRecoveryFlowWithLinkMethod() this.Email = email; this.Method = method; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -100,6 +102,13 @@ protected ClientUpdateRecoveryFlowWithLinkMethod() [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = false)] public string Email { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -117,6 +126,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -166,6 +176,11 @@ public bool Equals(ClientUpdateRecoveryFlowWithLinkMethod input) ( this.Method == input.Method || this.Method.Equals(input.Method) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -188,6 +203,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Email.GetHashCode(); } hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowBody.cs index 06d55a5b3df..ea298a8f62d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithCodeMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithCodeMethod.cs index 85895f3b700..e09e9f65eac 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithCodeMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithCodeMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithOidcMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithOidcMethod.cs index b399afc7ab1..f3dbeefaf73 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithOidcMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithOidcMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithPasswordMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithPasswordMethod.cs index b6bc8fde863..ccca4e4b46b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithPasswordMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithPasswordMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithWebAuthnMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithWebAuthnMethod.cs index 0d57e6829d9..85b67721b6d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithWebAuthnMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateRegistrationFlowWithWebAuthnMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowBody.cs index 1239193765e..66e794c44d8 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithLookupMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithLookupMethod.cs index e360eda7e54..cf190fd821b 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithLookupMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithLookupMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,7 +49,8 @@ protected ClientUpdateSettingsFlowWithLookupMethod() /// If set to true will regenerate the lookup secrets. /// If set to true will reveal the lookup secrets. /// Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. (required). - public ClientUpdateSettingsFlowWithLookupMethod(string csrfToken = default(string), bool lookupSecretConfirm = default(bool), bool lookupSecretDisable = default(bool), bool lookupSecretRegenerate = default(bool), bool lookupSecretReveal = default(bool), string method = default(string)) + /// Transient data to pass along to any webhooks. + public ClientUpdateSettingsFlowWithLookupMethod(string csrfToken = default(string), bool lookupSecretConfirm = default(bool), bool lookupSecretDisable = default(bool), bool lookupSecretRegenerate = default(bool), bool lookupSecretReveal = default(bool), string method = default(string), Object transientPayload = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -61,6 +62,7 @@ protected ClientUpdateSettingsFlowWithLookupMethod() this.LookupSecretDisable = lookupSecretDisable; this.LookupSecretRegenerate = lookupSecretRegenerate; this.LookupSecretReveal = lookupSecretReveal; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -106,6 +108,13 @@ protected ClientUpdateSettingsFlowWithLookupMethod() [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = false)] public string Method { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -126,6 +135,7 @@ public override string ToString() sb.Append(" LookupSecretRegenerate: ").Append(LookupSecretRegenerate).Append("\n"); sb.Append(" LookupSecretReveal: ").Append(LookupSecretReveal).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -187,6 +197,11 @@ public bool Equals(ClientUpdateSettingsFlowWithLookupMethod input) this.Method == input.Method || (this.Method != null && this.Method.Equals(input.Method)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -212,6 +227,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Method.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithOidcMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithOidcMethod.cs index a46403e8ba0..81d6848be67 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithOidcMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithOidcMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,9 +47,10 @@ protected ClientUpdateSettingsFlowWithOidcMethod() /// Link this provider Either this or `unlink` must be set. type: string in: body. /// Method Should be set to profile when trying to update a profile. (required). /// The identity's traits in: body. + /// Transient data to pass along to any webhooks. /// Unlink this provider Either this or `link` must be set. type: string in: body. /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. - public ClientUpdateSettingsFlowWithOidcMethod(string flow = default(string), string link = default(string), string method = default(string), Object traits = default(Object), string unlink = default(string), Object upstreamParameters = default(Object)) + public ClientUpdateSettingsFlowWithOidcMethod(string flow = default(string), string link = default(string), string method = default(string), Object traits = default(Object), Object transientPayload = default(Object), string unlink = default(string), Object upstreamParameters = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -59,6 +60,7 @@ protected ClientUpdateSettingsFlowWithOidcMethod() this.Flow = flow; this.Link = link; this.Traits = traits; + this.TransientPayload = transientPayload; this.Unlink = unlink; this.UpstreamParameters = upstreamParameters; this.AdditionalProperties = new Dictionary(); @@ -92,6 +94,13 @@ protected ClientUpdateSettingsFlowWithOidcMethod() [DataMember(Name = "traits", EmitDefaultValue = false)] public Object Traits { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Unlink this provider Either this or `link` must be set. type: string in: body /// @@ -124,6 +133,7 @@ public override string ToString() sb.Append(" Link: ").Append(Link).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Traits: ").Append(Traits).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" Unlink: ").Append(Unlink).Append("\n"); sb.Append(" UpstreamParameters: ").Append(UpstreamParameters).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -182,6 +192,11 @@ public bool Equals(ClientUpdateSettingsFlowWithOidcMethod input) (this.Traits != null && this.Traits.Equals(input.Traits)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.Unlink == input.Unlink || (this.Unlink != null && @@ -220,6 +235,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.Unlink != null) { hashCode = (hashCode * 59) + this.Unlink.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithPasswordMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithPasswordMethod.cs index 42e53ed2327..42a0033fd11 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithPasswordMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithPasswordMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,8 @@ protected ClientUpdateSettingsFlowWithPasswordMethod() /// CSRFToken is the anti-CSRF token. /// Method Should be set to password when trying to update a password. (required). /// Password is the updated password (required). - public ClientUpdateSettingsFlowWithPasswordMethod(string csrfToken = default(string), string method = default(string), string password = default(string)) + /// Transient data to pass along to any webhooks. + public ClientUpdateSettingsFlowWithPasswordMethod(string csrfToken = default(string), string method = default(string), string password = default(string), Object transientPayload = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -59,6 +60,7 @@ protected ClientUpdateSettingsFlowWithPasswordMethod() } this.Password = password; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -83,6 +85,13 @@ protected ClientUpdateSettingsFlowWithPasswordMethod() [DataMember(Name = "password", IsRequired = true, EmitDefaultValue = false)] public string Password { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Password: ").Append(Password).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -150,6 +160,11 @@ public bool Equals(ClientUpdateSettingsFlowWithPasswordMethod input) this.Password == input.Password || (this.Password != null && this.Password.Equals(input.Password)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -175,6 +190,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Password.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithProfileMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithProfileMethod.cs index b00a77d7fe5..8092b9c25df 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithProfileMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithProfileMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -46,7 +46,8 @@ protected ClientUpdateSettingsFlowWithProfileMethod() /// The Anti-CSRF Token This token is only required when performing browser flows.. /// Method Should be set to profile when trying to update a profile. (required). /// Traits The identity's traits. (required). - public ClientUpdateSettingsFlowWithProfileMethod(string csrfToken = default(string), string method = default(string), Object traits = default(Object)) + /// Transient data to pass along to any webhooks. + public ClientUpdateSettingsFlowWithProfileMethod(string csrfToken = default(string), string method = default(string), Object traits = default(Object), Object transientPayload = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -59,6 +60,7 @@ protected ClientUpdateSettingsFlowWithProfileMethod() } this.Traits = traits; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -83,6 +85,13 @@ protected ClientUpdateSettingsFlowWithProfileMethod() [DataMember(Name = "traits", IsRequired = true, EmitDefaultValue = false)] public Object Traits { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -100,6 +109,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Traits: ").Append(Traits).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -150,6 +160,11 @@ public bool Equals(ClientUpdateSettingsFlowWithProfileMethod input) this.Traits == input.Traits || (this.Traits != null && this.Traits.Equals(input.Traits)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -175,6 +190,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithTotpMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithTotpMethod.cs index a2f292e3cf2..a3da0ca31e0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithTotpMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithTotpMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,7 +47,8 @@ protected ClientUpdateSettingsFlowWithTotpMethod() /// Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. (required). /// ValidationTOTP must contain a valid TOTP based on the. /// UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device.. - public ClientUpdateSettingsFlowWithTotpMethod(string csrfToken = default(string), string method = default(string), string totpCode = default(string), bool totpUnlink = default(bool)) + /// Transient data to pass along to any webhooks. + public ClientUpdateSettingsFlowWithTotpMethod(string csrfToken = default(string), string method = default(string), string totpCode = default(string), bool totpUnlink = default(bool), Object transientPayload = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -57,6 +58,7 @@ protected ClientUpdateSettingsFlowWithTotpMethod() this.CsrfToken = csrfToken; this.TotpCode = totpCode; this.TotpUnlink = totpUnlink; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -88,6 +90,13 @@ protected ClientUpdateSettingsFlowWithTotpMethod() [DataMember(Name = "totp_unlink", EmitDefaultValue = true)] public bool TotpUnlink { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -106,6 +115,7 @@ public override string ToString() sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" TotpCode: ").Append(TotpCode).Append("\n"); sb.Append(" TotpUnlink: ").Append(TotpUnlink).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -160,6 +170,11 @@ public bool Equals(ClientUpdateSettingsFlowWithTotpMethod input) ( this.TotpUnlink == input.TotpUnlink || this.TotpUnlink.Equals(input.TotpUnlink) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -186,6 +201,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.TotpCode.GetHashCode(); } hashCode = (hashCode * 59) + this.TotpUnlink.GetHashCode(); + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithWebAuthnMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithWebAuthnMethod.cs index 0796cc09853..818d58544a0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithWebAuthnMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSettingsFlowWithWebAuthnMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -45,10 +45,11 @@ protected ClientUpdateSettingsFlowWithWebAuthnMethod() /// /// CSRFToken is the anti-CSRF token. /// Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. (required). + /// Transient data to pass along to any webhooks. /// Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here.. /// Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added.. /// Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection.. - public ClientUpdateSettingsFlowWithWebAuthnMethod(string csrfToken = default(string), string method = default(string), string webauthnRegister = default(string), string webauthnRegisterDisplayname = default(string), string webauthnRemove = default(string)) + public ClientUpdateSettingsFlowWithWebAuthnMethod(string csrfToken = default(string), string method = default(string), Object transientPayload = default(Object), string webauthnRegister = default(string), string webauthnRegisterDisplayname = default(string), string webauthnRemove = default(string)) { // to ensure "method" is required (not null) if (method == null) { @@ -56,6 +57,7 @@ protected ClientUpdateSettingsFlowWithWebAuthnMethod() } this.Method = method; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.WebauthnRegister = webauthnRegister; this.WebauthnRegisterDisplayname = webauthnRegisterDisplayname; this.WebauthnRemove = webauthnRemove; @@ -76,6 +78,13 @@ protected ClientUpdateSettingsFlowWithWebAuthnMethod() [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = false)] public string Method { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. /// @@ -113,6 +122,7 @@ public override string ToString() sb.Append("class ClientUpdateSettingsFlowWithWebAuthnMethod {\n"); sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" WebauthnRegister: ").Append(WebauthnRegister).Append("\n"); sb.Append(" WebauthnRegisterDisplayname: ").Append(WebauthnRegisterDisplayname).Append("\n"); sb.Append(" WebauthnRemove: ").Append(WebauthnRemove).Append("\n"); @@ -162,6 +172,11 @@ public bool Equals(ClientUpdateSettingsFlowWithWebAuthnMethod input) (this.Method != null && this.Method.Equals(input.Method)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.WebauthnRegister == input.WebauthnRegister || (this.WebauthnRegister != null && @@ -197,6 +212,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Method.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.WebauthnRegister != null) { hashCode = (hashCode * 59) + this.WebauthnRegister.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSubscriptionBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSubscriptionBody.cs index 38c65d2a840..273dc40c67e 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSubscriptionBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateSubscriptionBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,7 +27,7 @@ namespace Ory.Client.Model { /// - /// Update Subscription Request Body + /// ClientUpdateSubscriptionBody /// [DataContract(Name = "updateSubscriptionBody")] public partial class ClientUpdateSubscriptionBody : IEquatable, IValidatableObject diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowBody.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowBody.cs index 6c75fb0e197..8dff2fa42bb 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowBody.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowBody.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithCodeMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithCodeMethod.cs index 4bb41fef52a..4854329d2f4 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithCodeMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithCodeMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -75,12 +75,14 @@ protected ClientUpdateVerificationFlowWithCodeMethod() /// Sending the anti-csrf token is only required for browser login flows.. /// The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. /// Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode (required). - public ClientUpdateVerificationFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum)) + /// Transient data to pass along to any webhooks. + public ClientUpdateVerificationFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum), Object transientPayload = default(Object)) { this.Method = method; this.Code = code; this.CsrfToken = csrfToken; this.Email = email; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -105,6 +107,13 @@ protected ClientUpdateVerificationFlowWithCodeMethod() [DataMember(Name = "email", EmitDefaultValue = false)] public string Email { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -123,6 +132,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -177,6 +187,11 @@ public bool Equals(ClientUpdateVerificationFlowWithCodeMethod input) ( this.Method == input.Method || this.Method.Equals(input.Method) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -203,6 +218,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Email.GetHashCode(); } hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithLinkMethod.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithLinkMethod.cs index 72e4bef4ef8..708514aef2a 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithLinkMethod.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateVerificationFlowWithLinkMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -74,7 +74,8 @@ protected ClientUpdateVerificationFlowWithLinkMethod() /// Sending the anti-csrf token is only required for browser login flows.. /// Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email (required). /// Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode (required). - public ClientUpdateVerificationFlowWithLinkMethod(string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum)) + /// Transient data to pass along to any webhooks. + public ClientUpdateVerificationFlowWithLinkMethod(string csrfToken = default(string), string email = default(string), MethodEnum method = default(MethodEnum), Object transientPayload = default(Object)) { // to ensure "email" is required (not null) if (email == null) { @@ -83,6 +84,7 @@ protected ClientUpdateVerificationFlowWithLinkMethod() this.Email = email; this.Method = method; this.CsrfToken = csrfToken; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -100,6 +102,13 @@ protected ClientUpdateVerificationFlowWithLinkMethod() [DataMember(Name = "email", IsRequired = true, EmitDefaultValue = false)] public string Email { get; set; } + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// Gets or Sets additional properties /// @@ -117,6 +126,7 @@ public override string ToString() sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); sb.Append(" Email: ").Append(Email).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -166,6 +176,11 @@ public bool Equals(ClientUpdateVerificationFlowWithLinkMethod input) ( this.Method == input.Method || this.Method.Equals(input.Method) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -188,6 +203,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.Email.GetHashCode(); } hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateWorkspacePayload.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateWorkspacePayload.cs new file mode 100644 index 00000000000..369e522b719 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUpdateWorkspacePayload.cs @@ -0,0 +1,155 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientUpdateWorkspacePayload + /// + [DataContract(Name = "updateWorkspacePayload")] + public partial class ClientUpdateWorkspacePayload : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientUpdateWorkspacePayload() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// The name of the workspace. (required). + public ClientUpdateWorkspacePayload(string name = default(string)) + { + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for ClientUpdateWorkspacePayload and cannot be null"); + } + this.Name = name; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// The name of the workspace. + /// + /// The name of the workspace. + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientUpdateWorkspacePayload {\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientUpdateWorkspacePayload); + } + + /// + /// Returns true if ClientUpdateWorkspacePayload instances are equal + /// + /// Instance of ClientUpdateWorkspacePayload to be compared + /// Boolean + public bool Equals(ClientUpdateWorkspacePayload input) + { + if (input == null) + { + return false; + } + return + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientUsage.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientUsage.cs index ee3d97ca44b..fd07e73edae 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientUsage.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientUsage.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialPrimingResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialPrimingResponse.cs index 05a8e488de8..68aa9fd7a90 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialPrimingResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialPrimingResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialProof.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialProof.cs index f9f45e698fe..08891084bd0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialProof.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialProof.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialResponse.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialResponse.cs index a87184da28f..25c5e9d395c 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialResponse.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableCredentialResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableIdentityAddress.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableIdentityAddress.cs index 5e955f06071..6502653f28d 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableIdentityAddress.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVerifiableIdentityAddress.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlow.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlow.cs index 7cdd225d5e6..11f68eb2016 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlow.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlow.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,9 +50,10 @@ protected ClientVerificationFlow() /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.. /// ReturnTo contains the requested return_to URL.. /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. (required). + /// TransientPayload is used to pass data from the verification flow to hooks and email templates. /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public ClientVerificationFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) + public ClientVerificationFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), ClientUiContainer ui = default(ClientUiContainer)) { // to ensure "id" is required (not null) if (id == null) { @@ -79,6 +80,7 @@ protected ClientVerificationFlow() this.IssuedAt = issuedAt; this.RequestUrl = requestUrl; this.ReturnTo = returnTo; + this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } @@ -131,6 +133,13 @@ protected ClientVerificationFlow() [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] public Object State { get; set; } + /// + /// TransientPayload is used to pass data from the verification flow to hooks and email templates + /// + /// TransientPayload is used to pass data from the verification flow to hooks and email templates + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + /// /// The flow type can either be `api` or `browser`. /// @@ -165,6 +174,7 @@ public override string ToString() sb.Append(" RequestUrl: ").Append(RequestUrl).Append("\n"); sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" State: ").Append(State).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Ui: ").Append(Ui).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -238,6 +248,11 @@ public bool Equals(ClientVerificationFlow input) (this.State != null && this.State.Equals(input.State)) ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) && ( this.Type == input.Type || (this.Type != null && @@ -288,6 +303,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.State.GetHashCode(); } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlowState.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlowState.cs index 027236d87b4..25d7a9843b0 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlowState.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVerificationFlowState.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientVersion.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientVersion.cs index 897f4ce4509..17403163131 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientVersion.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientVersion.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientWarning.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientWarning.cs index be5e2f8168e..796020b341e 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientWarning.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientWarning.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspace.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspace.cs index 89bd26d942b..3ba85486066 100644 --- a/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspace.cs +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspace.cs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspaceMeta.cs b/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspaceMeta.cs new file mode 100644 index 00000000000..527d8f0f0e8 --- /dev/null +++ b/clients/client/dotnet/src/Ory.Client/Model/ClientWorkspaceMeta.cs @@ -0,0 +1,248 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Client.Client.OpenAPIDateConverter; + +namespace Ory.Client.Model +{ + /// + /// ClientWorkspaceMeta + /// + [DataContract(Name = "workspaceMeta")] + public partial class ClientWorkspaceMeta : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected ClientWorkspaceMeta() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// createdAt (required). + /// id (required). + /// name (required). + /// subscriptionId. + /// subscriptionPlan. + /// updatedAt (required). + public ClientWorkspaceMeta(DateTime createdAt = default(DateTime), string id = default(string), string name = default(string), string subscriptionId = default(string), string subscriptionPlan = default(string), DateTime updatedAt = default(DateTime)) + { + this.CreatedAt = createdAt; + // to ensure "id" is required (not null) + if (id == null) { + throw new ArgumentNullException("id is a required property for ClientWorkspaceMeta and cannot be null"); + } + this.Id = id; + // to ensure "name" is required (not null) + if (name == null) { + throw new ArgumentNullException("name is a required property for ClientWorkspaceMeta and cannot be null"); + } + this.Name = name; + this.UpdatedAt = updatedAt; + this.SubscriptionId = subscriptionId; + this.SubscriptionPlan = subscriptionPlan; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets CreatedAt + /// + [DataMember(Name = "created_at", IsRequired = true, EmitDefaultValue = false)] + public DateTime CreatedAt { get; set; } + + /// + /// Gets or Sets Id + /// + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets Name + /// + [DataMember(Name = "name", IsRequired = true, EmitDefaultValue = false)] + public string Name { get; set; } + + /// + /// Gets or Sets SubscriptionId + /// + [DataMember(Name = "subscription_id", EmitDefaultValue = true)] + public string SubscriptionId { get; set; } + + /// + /// Gets or Sets SubscriptionPlan + /// + [DataMember(Name = "subscription_plan", EmitDefaultValue = true)] + public string SubscriptionPlan { get; set; } + + /// + /// Gets or Sets UpdatedAt + /// + [DataMember(Name = "updated_at", IsRequired = true, EmitDefaultValue = false)] + public DateTime UpdatedAt { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class ClientWorkspaceMeta {\n"); + sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Name: ").Append(Name).Append("\n"); + sb.Append(" SubscriptionId: ").Append(SubscriptionId).Append("\n"); + sb.Append(" SubscriptionPlan: ").Append(SubscriptionPlan).Append("\n"); + sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as ClientWorkspaceMeta); + } + + /// + /// Returns true if ClientWorkspaceMeta instances are equal + /// + /// Instance of ClientWorkspaceMeta to be compared + /// Boolean + public bool Equals(ClientWorkspaceMeta input) + { + if (input == null) + { + return false; + } + return + ( + this.CreatedAt == input.CreatedAt || + (this.CreatedAt != null && + this.CreatedAt.Equals(input.CreatedAt)) + ) && + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) && + ( + this.Name == input.Name || + (this.Name != null && + this.Name.Equals(input.Name)) + ) && + ( + this.SubscriptionId == input.SubscriptionId || + (this.SubscriptionId != null && + this.SubscriptionId.Equals(input.SubscriptionId)) + ) && + ( + this.SubscriptionPlan == input.SubscriptionPlan || + (this.SubscriptionPlan != null && + this.SubscriptionPlan.Equals(input.SubscriptionPlan)) + ) && + ( + this.UpdatedAt == input.UpdatedAt || + (this.UpdatedAt != null && + this.UpdatedAt.Equals(input.UpdatedAt)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.CreatedAt != null) + { + hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); + } + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Name != null) + { + hashCode = (hashCode * 59) + this.Name.GetHashCode(); + } + if (this.SubscriptionId != null) + { + hashCode = (hashCode * 59) + this.SubscriptionId.GetHashCode(); + } + if (this.SubscriptionPlan != null) + { + hashCode = (hashCode * 59) + this.SubscriptionPlan.GetHashCode(); + } + if (this.UpdatedAt != null) + { + hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/client/dotnet/src/Ory.Client/Ory.Client.csproj b/clients/client/dotnet/src/Ory.Client/Ory.Client.csproj index 0feb5f1fc50..5982330ca76 100644 --- a/clients/client/dotnet/src/Ory.Client/Ory.Client.csproj +++ b/clients/client/dotnet/src/Ory.Client/Ory.Client.csproj @@ -12,7 +12,7 @@ A library generated from a OpenAPI doc No Copyright Ory.Client - 1.5.1 + 1.8.1 bin\$(Configuration)\$(TargetFramework)\Ory.Client.xml Apache-2.0 https://github.com/ory/sdk.git diff --git a/clients/client/elixir/.openapi-generator/FILES b/clients/client/elixir/.openapi-generator/FILES index 527378a773f..e1b5319c8bb 100644 --- a/clients/client/elixir/.openapi-generator/FILES +++ b/clients/client/elixir/.openapi-generator/FILES @@ -55,8 +55,11 @@ lib/ory/model/create_recovery_code_for_identity_body.ex lib/ory/model/create_recovery_link_for_identity_body.ex lib/ory/model/create_relationship_body.ex lib/ory/model/create_subscription_body.ex +lib/ory/model/create_subscription_common.ex lib/ory/model/create_verifiable_credential_request_body.ex lib/ory/model/create_workspace_member_invite_body.ex +lib/ory/model/create_workspace_payload.ex +lib/ory/model/create_workspace_subscription_body.ex lib/ory/model/credential_supported_draft00.ex lib/ory/model/custom_domain.ex lib/ory/model/delete_my_sessions_count.ex @@ -91,12 +94,10 @@ lib/ory/model/identity_credentials_code.ex lib/ory/model/identity_credentials_oidc.ex lib/ory/model/identity_credentials_oidc_provider.ex lib/ory/model/identity_credentials_password.ex -lib/ory/model/identity_credentials_type.ex lib/ory/model/identity_patch.ex lib/ory/model/identity_patch_response.ex lib/ory/model/identity_schema_container.ex lib/ory/model/identity_schema_preset.ex -lib/ory/model/identity_state.ex lib/ory/model/identity_with_credentials.ex lib/ory/model/identity_with_credentials_oidc.ex lib/ory/model/identity_with_credentials_oidc_config.ex @@ -107,7 +108,6 @@ lib/ory/model/internal_get_project_branding_body.ex lib/ory/model/internal_is_ax_welcome_screen_enabled_for_project_body.ex lib/ory/model/internal_is_owner_for_project_by_slug_body.ex lib/ory/model/internal_is_owner_for_project_by_slug_response.ex -lib/ory/model/internal_provision_mock_subscription.ex lib/ory/model/introspected_o_auth2_token.ex lib/ory/model/is_owner_for_project_by_slug.ex lib/ory/model/is_ready_200_response.ex @@ -119,6 +119,7 @@ lib/ory/model/keto_namespace.ex lib/ory/model/list_event_streams.ex lib/ory/model/list_my_workspaces_response.ex lib/ory/model/list_organizations_response.ex +lib/ory/model/list_workspace_projects_response.ex lib/ory/model/login_flow.ex lib/ory/model/login_flow_state.ex lib/ory/model/logout_flow.ex @@ -128,6 +129,7 @@ lib/ory/model/member_invite.ex lib/ory/model/message.ex lib/ory/model/message_dispatch.ex lib/ory/model/metrics_datapoint.ex +lib/ory/model/migration_options.ex lib/ory/model/namespace.ex lib/ory/model/needs_privileged_session_error.ex lib/ory/model/normalized_project.ex @@ -156,6 +158,7 @@ lib/ory/model/pagination_headers.ex lib/ory/model/parse_error.ex lib/ory/model/patch_identities_body.ex lib/ory/model/perform_native_logout_body.ex +lib/ory/model/permissions_on_workpace_response.ex lib/ory/model/plan.ex lib/ory/model/plan_details.ex lib/ory/model/post_check_permission_body.ex @@ -168,6 +171,7 @@ lib/ory/model/project_branding_theme.ex lib/ory/model/project_cors.ex lib/ory/model/project_events_datapoint.ex lib/ory/model/project_host.ex +lib/ory/model/project_member.ex lib/ory/model/project_metadata.ex lib/ory/model/project_service_identity.ex lib/ory/model/project_service_o_auth2.ex @@ -202,7 +206,6 @@ lib/ory/model/set_project_branding_theme_body.ex lib/ory/model/settings_flow.ex lib/ory/model/settings_flow_state.ex lib/ory/model/source_position.ex -lib/ory/model/stripe_customer.ex lib/ory/model/subject_set.ex lib/ory/model/subscription.ex lib/ory/model/successful_code_exchange_response.ex @@ -253,6 +256,7 @@ lib/ory/model/update_subscription_body.ex lib/ory/model/update_verification_flow_body.ex lib/ory/model/update_verification_flow_with_code_method.ex lib/ory/model/update_verification_flow_with_link_method.ex +lib/ory/model/update_workspace_payload.ex lib/ory/model/usage.ex lib/ory/model/verifiable_credential_priming_response.ex lib/ory/model/verifiable_credential_proof.ex @@ -263,6 +267,7 @@ lib/ory/model/verification_flow_state.ex lib/ory/model/version.ex lib/ory/model/warning.ex lib/ory/model/workspace.ex +lib/ory/model/workspace_meta.ex lib/ory/request_builder.ex mix.exs test/test_helper.exs diff --git a/clients/client/elixir/README.md b/clients/client/elixir/README.md index c204d4e461d..386459db9ea 100644 --- a/clients/client/elixir/README.md +++ b/clients/client/elixir/README.md @@ -18,7 +18,7 @@ your list of dependencies in `mix.exs`: ```elixir def deps do - [{:ory_client, "~> v1.5.1"}] + [{:ory_client, "~> v1.8.1"}] end ``` diff --git a/clients/client/elixir/lib/ory/api/frontend.ex b/clients/client/elixir/lib/ory/api/frontend.ex index 57c5a67be5c..a1a6e45e31c 100644 --- a/clients/client/elixir/lib/ory/api/frontend.ex +++ b/clients/client/elixir/lib/ory/api/frontend.ex @@ -23,6 +23,7 @@ defmodule Ory.Api.Frontend do - `:Cookie` (String.t): HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. - `:login_challenge` (String.t): An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). - `:organization` (String.t): An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + - `:via` (String.t): Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. ### Returns @@ -37,7 +38,8 @@ defmodule Ory.Api.Frontend do :return_to => :query, :Cookie => :headers, :login_challenge => :query, - :organization => :query + :organization => :query, + :via => :query } request = @@ -270,6 +272,7 @@ defmodule Ory.Api.Frontend do - `:"X-Session-Token"` (String.t): The Session Token of the Identity performing the settings flow. - `:return_session_token_exchange_code` (boolean()): EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. - `:return_to` (String.t): The URL to return the browser to after the flow was completed. + - `:via` (String.t): Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. ### Returns @@ -283,7 +286,8 @@ defmodule Ory.Api.Frontend do :aal => :query, :"X-Session-Token" => :headers, :return_session_token_exchange_code => :query, - :return_to => :query + :return_to => :query, + :via => :query } request = diff --git a/clients/client/elixir/lib/ory/api/identity.ex b/clients/client/elixir/lib/ory/api/identity.ex index 9fca4baf9ef..0f23a19871c 100644 --- a/clients/client/elixir/lib/ory/api/identity.ex +++ b/clients/client/elixir/lib/ory/api/identity.ex @@ -134,6 +134,7 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters + - `:return_to` (String.t): - `:body` (CreateRecoveryLinkForIdentityBody): ### Returns @@ -144,6 +145,7 @@ defmodule Ory.Api.Identity do @spec create_recovery_link_for_identity(Tesla.Env.client, keyword()) :: {:ok, Ory.Model.ErrorGeneric.t} | {:ok, Ory.Model.RecoveryLinkForIdentity.t} | {:error, Tesla.Env.t} def create_recovery_link_for_identity(connection, opts \\ []) do optional_params = %{ + :return_to => :query, :body => :body } @@ -205,7 +207,7 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `id` (String.t): ID is the identity's ID. - - `type` (String.t): Type is the credential's Type. One of totp, webauthn, lookup + - `type` (String.t): Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 - `opts` (keyword): Optional parameters ### Returns @@ -452,9 +454,10 @@ defmodule Ory.Api.Identity do - `:page_size` (integer()): Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - `:page_token` (String.t): Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - `:consistency` (String.t): Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - - `:ids_filter` ([String.t]): IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + - `:ids` ([String.t]): List of ids used to filter identities. If this list is empty, then no filter will be applied. - `:credentials_identifier` (String.t): CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. - `:preview_credentials_identifier_similar` (String.t): This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + - `:include_credential` ([String.t]): Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. ### Returns @@ -469,9 +472,10 @@ defmodule Ory.Api.Identity do :page_size => :query, :page_token => :query, :consistency => :query, - :ids_filter => :query, + :ids => :query, :credentials_identifier => :query, - :preview_credentials_identifier_similar => :query + :preview_credentials_identifier_similar => :query, + :include_credential => :query } request = diff --git a/clients/client/elixir/lib/ory/api/permission.ex b/clients/client/elixir/lib/ory/api/permission.ex index 1261b7d9b4c..f3d816bee75 100644 --- a/clients/client/elixir/lib/ory/api/permission.ex +++ b/clients/client/elixir/lib/ory/api/permission.ex @@ -204,7 +204,7 @@ defmodule Ory.Api.Permission do - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters - - `:"max-depth"` (integer()): nolint:deadcode,unused + - `:"max-depth"` (integer()): - `:body` (PostCheckPermissionOrErrorBody): ### Returns diff --git a/clients/client/elixir/lib/ory/api/project.ex b/clients/client/elixir/lib/ory/api/project.ex index 31a197fd627..e7d06bf3e95 100644 --- a/clients/client/elixir/lib/ory/api/project.ex +++ b/clients/client/elixir/lib/ory/api/project.ex @@ -304,10 +304,10 @@ defmodule Ory.Api.Project do ### Returns - - `{:ok, [%CloudAccount{}, ...]}` on success + - `{:ok, [%ProjectMember{}, ...]}` on success - `{:error, Tesla.Env.t}` on failure """ - @spec get_project_members(Tesla.Env.client, String.t, keyword()) :: {:ok, Ory.Model.GenericError.t} | {:ok, list(Ory.Model.CloudAccount.t)} | {:error, Tesla.Env.t} + @spec get_project_members(Tesla.Env.client, String.t, keyword()) :: {:ok, Ory.Model.GenericError.t} | {:ok, list(Ory.Model.ProjectMember.t)} | {:error, Tesla.Env.t} def get_project_members(connection, project, _opts \\ []) do request = %{} @@ -318,7 +318,7 @@ defmodule Ory.Api.Project do connection |> Connection.request(request) |> evaluate_response([ - {200, Ory.Model.CloudAccount}, + {200, Ory.Model.ProjectMember}, {401, Ory.Model.GenericError}, {406, Ory.Model.GenericError}, {:default, Ory.Model.GenericError} @@ -333,7 +333,7 @@ defmodule Ory.Api.Project do - `connection` (Ory.Connection): Connection to server - `project_id` (String.t): Project ID - `event_type` (String.t): The event type to query for - - `resolution` (String.t): The resolution of the buckets The minimum resolution is 1 hour. + - `resolution` (String.t): The resolution of the buckets The minimum resolution is 1 minute. - `from` (DateTime.t): The start RFC3339 date of the time window - `to` (DateTime.t): The end RFC3339 date of the time window - `opts` (keyword): Optional parameters diff --git a/clients/client/elixir/lib/ory/connection.ex b/clients/client/elixir/lib/ory/connection.ex index e9071ecb34d..ad0a9dc539d 100644 --- a/clients/client/elixir/lib/ory/connection.ex +++ b/clients/client/elixir/lib/ory/connection.ex @@ -164,7 +164,7 @@ defmodule Ory.Connection do Keyword.get( tesla_options, :user_agent, - "openapi-generator - Ory v1.5.1 - elixir" + "openapi-generator - Ory v1.8.1 - elixir" ) ) diff --git a/clients/client/elixir/lib/ory/model/accept_o_auth2_consent_request.ex b/clients/client/elixir/lib/ory/model/accept_o_auth2_consent_request.ex index c280f1dd52c..62d4270760d 100644 --- a/clients/client/elixir/lib/ory/model/accept_o_auth2_consent_request.ex +++ b/clients/client/elixir/lib/ory/model/accept_o_auth2_consent_request.ex @@ -8,6 +8,7 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequest do @derive Jason.Encoder defstruct [ + :context, :grant_access_token_audience, :grant_scope, :handled_at, @@ -17,6 +18,7 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequest do ] @type t :: %__MODULE__{ + :context => map() | nil, :grant_access_token_audience => [String.t] | nil, :grant_scope => [String.t] | nil, :handled_at => DateTime.t | nil, diff --git a/clients/client/elixir/lib/ory/model/cloud_account.ex b/clients/client/elixir/lib/ory/model/cloud_account.ex index fcad82a36b9..52860be39a4 100644 --- a/clients/client/elixir/lib/ory/model/cloud_account.ex +++ b/clients/client/elixir/lib/ory/model/cloud_account.ex @@ -14,9 +14,9 @@ defmodule Ory.Model.CloudAccount do ] @type t :: %__MODULE__{ - :email => String.t | nil, - :id => String.t | nil, - :name => String.t | nil + :email => String.t, + :id => String.t, + :name => String.t } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/create_identity_body.ex b/clients/client/elixir/lib/ory/model/create_identity_body.ex index 341a73da1df..9251559f387 100644 --- a/clients/client/elixir/lib/ory/model/create_identity_body.ex +++ b/clients/client/elixir/lib/ory/model/create_identity_body.ex @@ -24,7 +24,7 @@ defmodule Ory.Model.CreateIdentityBody do :metadata_public => any() | nil, :recovery_addresses => [Ory.Model.RecoveryIdentityAddress.t] | nil, :schema_id => String.t, - :state => Ory.Model.IdentityState.t | nil, + :state => String.t | nil, :traits => map(), :verifiable_addresses => [Ory.Model.VerifiableIdentityAddress.t] | nil } @@ -35,7 +35,6 @@ defmodule Ory.Model.CreateIdentityBody do value |> Deserializer.deserialize(:credentials, :struct, Ory.Model.IdentityWithCredentials) |> Deserializer.deserialize(:recovery_addresses, :list, Ory.Model.RecoveryIdentityAddress) - |> Deserializer.deserialize(:state, :struct, Ory.Model.IdentityState) |> Deserializer.deserialize(:verifiable_addresses, :list, Ory.Model.VerifiableIdentityAddress) end end diff --git a/clients/client/elixir/lib/ory/model/create_project_body.ex b/clients/client/elixir/lib/ory/model/create_project_body.ex index 266696d8702..c4012a78751 100644 --- a/clients/client/elixir/lib/ory/model/create_project_body.ex +++ b/clients/client/elixir/lib/ory/model/create_project_body.ex @@ -8,11 +8,13 @@ defmodule Ory.Model.CreateProjectBody do @derive Jason.Encoder defstruct [ + :environment, :name, :workspace_id ] @type t :: %__MODULE__{ + :environment => String.t, :name => String.t, :workspace_id => String.t | nil } diff --git a/clients/client/elixir/lib/ory/model/create_project_normalized_payload.ex b/clients/client/elixir/lib/ory/model/create_project_normalized_payload.ex index ab90e6de4fe..3cdde3d50a4 100644 --- a/clients/client/elixir/lib/ory/model/create_project_normalized_payload.ex +++ b/clients/client/elixir/lib/ory/model/create_project_normalized_payload.ex @@ -10,12 +10,15 @@ defmodule Ory.Model.CreateProjectNormalizedPayload do defstruct [ :created_at, :disable_account_experience_welcome_screen, + :enable_ax_v2, + :environment, :hydra_oauth2_allowed_top_level_claims, :hydra_oauth2_client_credentials_default_grant_allowed_scope, :hydra_oauth2_exclude_not_before_claim, :hydra_oauth2_grant_jwt_iat_optional, :hydra_oauth2_grant_jwt_jti_optional, :hydra_oauth2_grant_jwt_max_ttl, + :hydra_oauth2_mirror_top_level_claims, :hydra_oauth2_pkce_enforced, :hydra_oauth2_pkce_enforced_for_public_clients, :hydra_oauth2_refresh_token_hook, @@ -74,6 +77,7 @@ defmodule Ory.Model.CreateProjectNormalizedPayload do :kratos_courier_templates_login_code_valid_email_body_html, :kratos_courier_templates_login_code_valid_email_body_plaintext, :kratos_courier_templates_login_code_valid_email_subject, + :kratos_courier_templates_login_code_valid_sms_body_plaintext, :kratos_courier_templates_recovery_code_invalid_email_body_html, :kratos_courier_templates_recovery_code_invalid_email_body_plaintext, :kratos_courier_templates_recovery_code_invalid_email_subject, @@ -159,6 +163,7 @@ defmodule Ory.Model.CreateProjectNormalizedPayload do :kratos_selfservice_flows_verification_use, :kratos_selfservice_methods_code_config_lifespan, :kratos_selfservice_methods_code_enabled, + :kratos_selfservice_methods_code_mfa_enabled, :kratos_selfservice_methods_code_passwordless_enabled, :kratos_selfservice_methods_link_config_base_url, :kratos_selfservice_methods_link_config_lifespan, @@ -202,12 +207,15 @@ defmodule Ory.Model.CreateProjectNormalizedPayload do @type t :: %__MODULE__{ :created_at => DateTime.t | nil, :disable_account_experience_welcome_screen => boolean() | nil, + :enable_ax_v2 => boolean() | nil, + :environment => String.t, :hydra_oauth2_allowed_top_level_claims => [String.t] | nil, :hydra_oauth2_client_credentials_default_grant_allowed_scope => boolean() | nil, :hydra_oauth2_exclude_not_before_claim => boolean() | nil, :hydra_oauth2_grant_jwt_iat_optional => boolean() | nil, :hydra_oauth2_grant_jwt_jti_optional => boolean() | nil, :hydra_oauth2_grant_jwt_max_ttl => String.t | nil, + :hydra_oauth2_mirror_top_level_claims => boolean() | nil, :hydra_oauth2_pkce_enforced => boolean() | nil, :hydra_oauth2_pkce_enforced_for_public_clients => boolean() | nil, :hydra_oauth2_refresh_token_hook => String.t | nil, @@ -266,6 +274,7 @@ defmodule Ory.Model.CreateProjectNormalizedPayload do :kratos_courier_templates_login_code_valid_email_body_html => String.t | nil, :kratos_courier_templates_login_code_valid_email_body_plaintext => String.t | nil, :kratos_courier_templates_login_code_valid_email_subject => String.t | nil, + :kratos_courier_templates_login_code_valid_sms_body_plaintext => String.t | nil, :kratos_courier_templates_recovery_code_invalid_email_body_html => String.t | nil, :kratos_courier_templates_recovery_code_invalid_email_body_plaintext => String.t | nil, :kratos_courier_templates_recovery_code_invalid_email_subject => String.t | nil, @@ -351,6 +360,7 @@ defmodule Ory.Model.CreateProjectNormalizedPayload do :kratos_selfservice_flows_verification_use => String.t | nil, :kratos_selfservice_methods_code_config_lifespan => String.t | nil, :kratos_selfservice_methods_code_enabled => boolean() | nil, + :kratos_selfservice_methods_code_mfa_enabled => boolean() | nil, :kratos_selfservice_methods_code_passwordless_enabled => boolean() | nil, :kratos_selfservice_methods_link_config_base_url => String.t | nil, :kratos_selfservice_methods_link_config_lifespan => String.t | nil, diff --git a/clients/client/elixir/lib/ory/model/create_subscription_body.ex b/clients/client/elixir/lib/ory/model/create_subscription_body.ex index b2010a59a1c..da4ac3c8676 100644 --- a/clients/client/elixir/lib/ory/model/create_subscription_body.ex +++ b/clients/client/elixir/lib/ory/model/create_subscription_body.ex @@ -3,7 +3,7 @@ defmodule Ory.Model.CreateSubscriptionBody do @moduledoc """ - Create Subscription Request Body + """ @derive Jason.Encoder @@ -12,17 +12,15 @@ defmodule Ory.Model.CreateSubscriptionBody do :interval, :plan, :provision_first_project, - :return_to, - :workspace + :return_to ] @type t :: %__MODULE__{ :currency => String.t | nil, :interval => String.t, :plan => String.t, - :provision_first_project => String.t | nil, - :return_to => String.t | nil, - :workspace => String.t | nil + :provision_first_project => String.t, + :return_to => String.t | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/internal_provision_mock_subscription.ex b/clients/client/elixir/lib/ory/model/create_subscription_common.ex similarity index 60% rename from clients/client/elixir/lib/ory/model/internal_provision_mock_subscription.ex rename to clients/client/elixir/lib/ory/model/create_subscription_common.ex index 3c9c1c06466..5b9da5bd20e 100644 --- a/clients/client/elixir/lib/ory/model/internal_provision_mock_subscription.ex +++ b/clients/client/elixir/lib/ory/model/create_subscription_common.ex @@ -1,24 +1,24 @@ # NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. -defmodule Ory.Model.InternalProvisionMockSubscription do +defmodule Ory.Model.CreateSubscriptionCommon do @moduledoc """ - Internal Provision Mock Subscription Request Body + """ @derive Jason.Encoder defstruct [ :currency, - :identity_id, :interval, - :plan + :plan, + :return_to ] @type t :: %__MODULE__{ - :currency => String.t, - :identity_id => String.t, + :currency => String.t | nil, :interval => String.t, - :plan => String.t + :plan => String.t, + :return_to => String.t | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/identity_credentials_type.ex b/clients/client/elixir/lib/ory/model/create_workspace_payload.ex similarity index 77% rename from clients/client/elixir/lib/ory/model/identity_credentials_type.ex rename to clients/client/elixir/lib/ory/model/create_workspace_payload.ex index 1566d1910ab..3590838c52c 100644 --- a/clients/client/elixir/lib/ory/model/identity_credentials_type.ex +++ b/clients/client/elixir/lib/ory/model/create_workspace_payload.ex @@ -1,18 +1,18 @@ # NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. -defmodule Ory.Model.IdentityCredentialsType do +defmodule Ory.Model.CreateWorkspacePayload do @moduledoc """ - and so on. + """ @derive Jason.Encoder defstruct [ - + :name ] @type t :: %__MODULE__{ - + :name => String.t } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/create_workspace_subscription_body.ex b/clients/client/elixir/lib/ory/model/create_workspace_subscription_body.ex new file mode 100644 index 00000000000..879915e778f --- /dev/null +++ b/clients/client/elixir/lib/ory/model/create_workspace_subscription_body.ex @@ -0,0 +1,28 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.CreateWorkspaceSubscriptionBody do + @moduledoc """ + + """ + + @derive Jason.Encoder + defstruct [ + :currency, + :interval, + :plan, + :return_to + ] + + @type t :: %__MODULE__{ + :currency => String.t | nil, + :interval => String.t, + :plan => String.t, + :return_to => String.t | nil + } + + def decode(value) do + value + end +end + diff --git a/clients/client/elixir/lib/ory/model/identity.ex b/clients/client/elixir/lib/ory/model/identity.ex index a849a7980df..7ddadcc73d3 100644 --- a/clients/client/elixir/lib/ory/model/identity.ex +++ b/clients/client/elixir/lib/ory/model/identity.ex @@ -34,7 +34,7 @@ defmodule Ory.Model.Identity do :recovery_addresses => [Ory.Model.RecoveryIdentityAddress.t] | nil, :schema_id => String.t, :schema_url => String.t, - :state => Ory.Model.IdentityState.t | nil, + :state => String.t | nil, :state_changed_at => DateTime.t | nil, :traits => any() | nil, :updated_at => DateTime.t | nil, @@ -48,7 +48,6 @@ defmodule Ory.Model.Identity do |> Deserializer.deserialize(:created_at, :datetime, nil) |> Deserializer.deserialize(:credentials, :map, Ory.Model.IdentityCredentials) |> Deserializer.deserialize(:recovery_addresses, :list, Ory.Model.RecoveryIdentityAddress) - |> Deserializer.deserialize(:state, :struct, Ory.Model.IdentityState) |> Deserializer.deserialize(:state_changed_at, :datetime, nil) |> Deserializer.deserialize(:updated_at, :datetime, nil) |> Deserializer.deserialize(:verifiable_addresses, :list, Ory.Model.VerifiableIdentityAddress) diff --git a/clients/client/elixir/lib/ory/model/identity_credentials.ex b/clients/client/elixir/lib/ory/model/identity_credentials.ex index b1098df34d8..ab9b80d9ce8 100644 --- a/clients/client/elixir/lib/ory/model/identity_credentials.ex +++ b/clients/client/elixir/lib/ory/model/identity_credentials.ex @@ -20,7 +20,7 @@ defmodule Ory.Model.IdentityCredentials do :config => map() | nil, :created_at => DateTime.t | nil, :identifiers => [String.t] | nil, - :type => Ory.Model.IdentityCredentialsType.t | nil, + :type => String.t | nil, :updated_at => DateTime.t | nil, :version => integer() | nil } @@ -30,7 +30,6 @@ defmodule Ory.Model.IdentityCredentials do def decode(value) do value |> Deserializer.deserialize(:created_at, :datetime, nil) - |> Deserializer.deserialize(:type, :struct, Ory.Model.IdentityCredentialsType) |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/client/elixir/lib/ory/model/list_my_workspaces_response.ex b/clients/client/elixir/lib/ory/model/list_my_workspaces_response.ex index 471dd409b30..30fb476493f 100644 --- a/clients/client/elixir/lib/ory/model/list_my_workspaces_response.ex +++ b/clients/client/elixir/lib/ory/model/list_my_workspaces_response.ex @@ -16,14 +16,14 @@ defmodule Ory.Model.ListMyWorkspacesResponse do @type t :: %__MODULE__{ :has_next_page => boolean(), :next_page_token => String.t, - :workspaces => [Ory.Model.Workspace.t] + :workspaces => [Ory.Model.WorkspaceMeta.t] } alias Ory.Deserializer def decode(value) do value - |> Deserializer.deserialize(:workspaces, :list, Ory.Model.Workspace) + |> Deserializer.deserialize(:workspaces, :list, Ory.Model.WorkspaceMeta) end end diff --git a/clients/client/elixir/lib/ory/model/list_workspace_projects_response.ex b/clients/client/elixir/lib/ory/model/list_workspace_projects_response.ex new file mode 100644 index 00000000000..6343fa86f4e --- /dev/null +++ b/clients/client/elixir/lib/ory/model/list_workspace_projects_response.ex @@ -0,0 +1,29 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.ListWorkspaceProjectsResponse do + @moduledoc """ + + """ + + @derive Jason.Encoder + defstruct [ + :has_next_page, + :next_page, + :projects + ] + + @type t :: %__MODULE__{ + :has_next_page => boolean(), + :next_page => String.t, + :projects => [Ory.Model.ProjectMetadata.t] + } + + alias Ory.Deserializer + + def decode(value) do + value + |> Deserializer.deserialize(:projects, :list, Ory.Model.ProjectMetadata) + end +end + diff --git a/clients/client/elixir/lib/ory/model/login_flow.ex b/clients/client/elixir/lib/ory/model/login_flow.ex index d00fb570764..c6f80522bfd 100644 --- a/clients/client/elixir/lib/ory/model/login_flow.ex +++ b/clients/client/elixir/lib/ory/model/login_flow.ex @@ -22,13 +22,14 @@ defmodule Ory.Model.LoginFlow do :return_to, :session_token_exchange_code, :state, + :transient_payload, :type, :ui, :updated_at ] @type t :: %__MODULE__{ - :active => Ory.Model.IdentityCredentialsType.t | nil, + :active => String.t | nil, :created_at => DateTime.t | nil, :expires_at => DateTime.t, :id => String.t, @@ -42,6 +43,7 @@ defmodule Ory.Model.LoginFlow do :return_to => String.t | nil, :session_token_exchange_code => String.t | nil, :state => any() | nil, + :transient_payload => map() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t, :updated_at => DateTime.t | nil @@ -51,7 +53,6 @@ defmodule Ory.Model.LoginFlow do def decode(value) do value - |> Deserializer.deserialize(:active, :struct, Ory.Model.IdentityCredentialsType) |> Deserializer.deserialize(:created_at, :datetime, nil) |> Deserializer.deserialize(:expires_at, :datetime, nil) |> Deserializer.deserialize(:issued_at, :datetime, nil) diff --git a/clients/client/elixir/lib/ory/model/migration_options.ex b/clients/client/elixir/lib/ory/model/migration_options.ex new file mode 100644 index 00000000000..0b29dfdb385 --- /dev/null +++ b/clients/client/elixir/lib/ory/model/migration_options.ex @@ -0,0 +1,24 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.MigrationOptions do + @moduledoc """ + + """ + + @derive Jason.Encoder + defstruct [ + :environment, + :project_subscription + ] + + @type t :: %__MODULE__{ + :environment => String.t, + :project_subscription => String.t + } + + def decode(value) do + value + end +end + diff --git a/clients/client/elixir/lib/ory/model/normalized_project_revision.ex b/clients/client/elixir/lib/ory/model/normalized_project_revision.ex index 67cb92f8844..283dcc82596 100644 --- a/clients/client/elixir/lib/ory/model/normalized_project_revision.ex +++ b/clients/client/elixir/lib/ory/model/normalized_project_revision.ex @@ -10,12 +10,14 @@ defmodule Ory.Model.NormalizedProjectRevision do defstruct [ :created_at, :disable_account_experience_welcome_screen, + :enable_ax_v2, :hydra_oauth2_allowed_top_level_claims, :hydra_oauth2_client_credentials_default_grant_allowed_scope, :hydra_oauth2_exclude_not_before_claim, :hydra_oauth2_grant_jwt_iat_optional, :hydra_oauth2_grant_jwt_jti_optional, :hydra_oauth2_grant_jwt_max_ttl, + :hydra_oauth2_mirror_top_level_claims, :hydra_oauth2_pkce_enforced, :hydra_oauth2_pkce_enforced_for_public_clients, :hydra_oauth2_refresh_token_hook, @@ -74,6 +76,7 @@ defmodule Ory.Model.NormalizedProjectRevision do :kratos_courier_templates_login_code_valid_email_body_html, :kratos_courier_templates_login_code_valid_email_body_plaintext, :kratos_courier_templates_login_code_valid_email_subject, + :kratos_courier_templates_login_code_valid_sms_body_plaintext, :kratos_courier_templates_recovery_code_invalid_email_body_html, :kratos_courier_templates_recovery_code_invalid_email_body_plaintext, :kratos_courier_templates_recovery_code_invalid_email_subject, @@ -159,6 +162,7 @@ defmodule Ory.Model.NormalizedProjectRevision do :kratos_selfservice_flows_verification_use, :kratos_selfservice_methods_code_config_lifespan, :kratos_selfservice_methods_code_enabled, + :kratos_selfservice_methods_code_mfa_enabled, :kratos_selfservice_methods_code_passwordless_enabled, :kratos_selfservice_methods_link_config_base_url, :kratos_selfservice_methods_link_config_lifespan, @@ -201,12 +205,14 @@ defmodule Ory.Model.NormalizedProjectRevision do @type t :: %__MODULE__{ :created_at => DateTime.t | nil, :disable_account_experience_welcome_screen => boolean() | nil, + :enable_ax_v2 => boolean() | nil, :hydra_oauth2_allowed_top_level_claims => [String.t] | nil, :hydra_oauth2_client_credentials_default_grant_allowed_scope => boolean() | nil, :hydra_oauth2_exclude_not_before_claim => boolean() | nil, :hydra_oauth2_grant_jwt_iat_optional => boolean() | nil, :hydra_oauth2_grant_jwt_jti_optional => boolean() | nil, :hydra_oauth2_grant_jwt_max_ttl => String.t | nil, + :hydra_oauth2_mirror_top_level_claims => boolean() | nil, :hydra_oauth2_pkce_enforced => boolean() | nil, :hydra_oauth2_pkce_enforced_for_public_clients => boolean() | nil, :hydra_oauth2_refresh_token_hook => String.t | nil, @@ -265,6 +271,7 @@ defmodule Ory.Model.NormalizedProjectRevision do :kratos_courier_templates_login_code_valid_email_body_html => String.t | nil, :kratos_courier_templates_login_code_valid_email_body_plaintext => String.t | nil, :kratos_courier_templates_login_code_valid_email_subject => String.t | nil, + :kratos_courier_templates_login_code_valid_sms_body_plaintext => String.t | nil, :kratos_courier_templates_recovery_code_invalid_email_body_html => String.t | nil, :kratos_courier_templates_recovery_code_invalid_email_body_plaintext => String.t | nil, :kratos_courier_templates_recovery_code_invalid_email_subject => String.t | nil, @@ -350,6 +357,7 @@ defmodule Ory.Model.NormalizedProjectRevision do :kratos_selfservice_flows_verification_use => String.t | nil, :kratos_selfservice_methods_code_config_lifespan => String.t | nil, :kratos_selfservice_methods_code_enabled => boolean() | nil, + :kratos_selfservice_methods_code_mfa_enabled => boolean() | nil, :kratos_selfservice_methods_code_passwordless_enabled => boolean() | nil, :kratos_selfservice_methods_link_config_base_url => String.t | nil, :kratos_selfservice_methods_link_config_lifespan => String.t | nil, diff --git a/clients/client/elixir/lib/ory/model/normalized_project_revision_third_party_provider.ex b/clients/client/elixir/lib/ory/model/normalized_project_revision_third_party_provider.ex index 7b67b0485d7..465a0dd8743 100644 --- a/clients/client/elixir/lib/ory/model/normalized_project_revision_third_party_provider.ex +++ b/clients/client/elixir/lib/ory/model/normalized_project_revision_third_party_provider.ex @@ -14,6 +14,7 @@ defmodule Ory.Model.NormalizedProjectRevisionThirdPartyProvider do :apple_team_id, :auth_url, :azure_tenant, + :claims_source, :client_id, :client_secret, :created_at, @@ -40,6 +41,7 @@ defmodule Ory.Model.NormalizedProjectRevisionThirdPartyProvider do :apple_team_id => String.t | nil, :auth_url => String.t | nil, :azure_tenant => String.t | nil, + :claims_source => String.t | nil, :client_id => String.t | nil, :client_secret => String.t | nil, :created_at => DateTime.t | nil, diff --git a/clients/client/elixir/lib/ory/model/o_auth2_client.ex b/clients/client/elixir/lib/ory/model/o_auth2_client.ex index e593f1ceeb2..60ba19ac568 100644 --- a/clients/client/elixir/lib/ory/model/o_auth2_client.ex +++ b/clients/client/elixir/lib/ory/model/o_auth2_client.ex @@ -49,6 +49,7 @@ defmodule Ory.Model.OAuth2Client do :scope, :sector_identifier_uri, :skip_consent, + :skip_logout_consent, :subject_type, :token_endpoint_auth_method, :token_endpoint_auth_signing_alg, @@ -99,6 +100,7 @@ defmodule Ory.Model.OAuth2Client do :scope => String.t | nil, :sector_identifier_uri => String.t | nil, :skip_consent => boolean() | nil, + :skip_logout_consent => boolean() | nil, :subject_type => String.t | nil, :token_endpoint_auth_method => String.t | nil, :token_endpoint_auth_signing_alg => String.t | nil, diff --git a/clients/client/elixir/lib/ory/model/o_auth2_consent_session.ex b/clients/client/elixir/lib/ory/model/o_auth2_consent_session.ex index f6c0ce9f892..5dd2415b4e1 100644 --- a/clients/client/elixir/lib/ory/model/o_auth2_consent_session.ex +++ b/clients/client/elixir/lib/ory/model/o_auth2_consent_session.ex @@ -9,6 +9,7 @@ defmodule Ory.Model.OAuth2ConsentSession do @derive Jason.Encoder defstruct [ :consent_request, + :context, :expires_at, :grant_access_token_audience, :grant_scope, @@ -20,6 +21,7 @@ defmodule Ory.Model.OAuth2ConsentSession do @type t :: %__MODULE__{ :consent_request => Ory.Model.OAuth2ConsentRequest.t | nil, + :context => map() | nil, :expires_at => Ory.Model.OAuth2ConsentSessionExpiresAt.t | nil, :grant_access_token_audience => [String.t] | nil, :grant_scope => [String.t] | nil, diff --git a/clients/client/elixir/lib/ory/model/permissions_on_workpace_response.ex b/clients/client/elixir/lib/ory/model/permissions_on_workpace_response.ex new file mode 100644 index 00000000000..fdb63f55da2 --- /dev/null +++ b/clients/client/elixir/lib/ory/model/permissions_on_workpace_response.ex @@ -0,0 +1,22 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.PermissionsOnWorkpaceResponse do + @moduledoc """ + Get Permissions on Project Request Parameters + """ + + @derive Jason.Encoder + defstruct [ + :permissions + ] + + @type t :: %__MODULE__{ + :permissions => %{optional(String.t) => boolean()} | nil + } + + def decode(value) do + value + end +end + diff --git a/clients/client/elixir/lib/ory/model/project_member.ex b/clients/client/elixir/lib/ory/model/project_member.ex new file mode 100644 index 00000000000..aa0eb3c4e45 --- /dev/null +++ b/clients/client/elixir/lib/ory/model/project_member.ex @@ -0,0 +1,28 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.ProjectMember do + @moduledoc """ + + """ + + @derive Jason.Encoder + defstruct [ + :email, + :id, + :name, + :role + ] + + @type t :: %__MODULE__{ + :email => String.t, + :id => String.t, + :name => String.t, + :role => String.t + } + + def decode(value) do + value + end +end + diff --git a/clients/client/elixir/lib/ory/model/project_metadata.ex b/clients/client/elixir/lib/ory/model/project_metadata.ex index 881a369dbaf..ff15097266a 100644 --- a/clients/client/elixir/lib/ory/model/project_metadata.ex +++ b/clients/client/elixir/lib/ory/model/project_metadata.ex @@ -9,6 +9,7 @@ defmodule Ory.Model.ProjectMetadata do @derive Jason.Encoder defstruct [ :created_at, + :environment, :hosts, :id, :name, @@ -22,6 +23,7 @@ defmodule Ory.Model.ProjectMetadata do @type t :: %__MODULE__{ :created_at => DateTime.t, + :environment => String.t, :hosts => [String.t], :id => String.t, :name => String.t, diff --git a/clients/client/elixir/lib/ory/model/recovery_flow.ex b/clients/client/elixir/lib/ory/model/recovery_flow.ex index 90f7b007e1e..98e609c34b1 100644 --- a/clients/client/elixir/lib/ory/model/recovery_flow.ex +++ b/clients/client/elixir/lib/ory/model/recovery_flow.ex @@ -16,6 +16,7 @@ defmodule Ory.Model.RecoveryFlow do :request_url, :return_to, :state, + :transient_payload, :type, :ui ] @@ -29,6 +30,7 @@ defmodule Ory.Model.RecoveryFlow do :request_url => String.t, :return_to => String.t | nil, :state => any() | nil, + :transient_payload => map() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } diff --git a/clients/client/elixir/lib/ory/model/registration_flow.ex b/clients/client/elixir/lib/ory/model/registration_flow.ex index 54cbaa3d52c..8f00199abce 100644 --- a/clients/client/elixir/lib/ory/model/registration_flow.ex +++ b/clients/client/elixir/lib/ory/model/registration_flow.ex @@ -25,7 +25,7 @@ defmodule Ory.Model.RegistrationFlow do ] @type t :: %__MODULE__{ - :active => Ory.Model.IdentityCredentialsType.t | nil, + :active => String.t | nil, :expires_at => DateTime.t, :id => String.t, :issued_at => DateTime.t, @@ -45,7 +45,6 @@ defmodule Ory.Model.RegistrationFlow do def decode(value) do value - |> Deserializer.deserialize(:active, :struct, Ory.Model.IdentityCredentialsType) |> Deserializer.deserialize(:expires_at, :datetime, nil) |> Deserializer.deserialize(:issued_at, :datetime, nil) |> Deserializer.deserialize(:oauth2_login_request, :struct, Ory.Model.OAuth2LoginRequest) diff --git a/clients/client/elixir/lib/ory/model/settings_flow.ex b/clients/client/elixir/lib/ory/model/settings_flow.ex index db2a5b61041..3d169e44aa9 100644 --- a/clients/client/elixir/lib/ory/model/settings_flow.ex +++ b/clients/client/elixir/lib/ory/model/settings_flow.ex @@ -17,6 +17,7 @@ defmodule Ory.Model.SettingsFlow do :request_url, :return_to, :state, + :transient_payload, :type, :ui ] @@ -31,6 +32,7 @@ defmodule Ory.Model.SettingsFlow do :request_url => String.t, :return_to => String.t | nil, :state => any() | nil, + :transient_payload => map() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } diff --git a/clients/client/elixir/lib/ory/model/subscription.ex b/clients/client/elixir/lib/ory/model/subscription.ex index 8fce213337b..01958ac5278 100644 --- a/clients/client/elixir/lib/ory/model/subscription.ex +++ b/clients/client/elixir/lib/ory/model/subscription.ex @@ -12,6 +12,7 @@ defmodule Ory.Model.Subscription do :currency, :current_interval, :current_plan, + :current_plan_details, :customer_id, :id, :interval_changes_to, @@ -20,6 +21,7 @@ defmodule Ory.Model.Subscription do :plan_changes_at, :plan_changes_to, :status, + :stripe_checkout_expires_at, :updated_at ] @@ -28,6 +30,7 @@ defmodule Ory.Model.Subscription do :currency => String.t, :current_interval => String.t, :current_plan => String.t, + :current_plan_details => Ory.Model.PlanDetails.t | nil, :customer_id => String.t, :id => String.t, :interval_changes_to => String.t | nil, @@ -36,6 +39,7 @@ defmodule Ory.Model.Subscription do :plan_changes_at => DateTime.t | nil, :plan_changes_to => String.t | nil, :status => String.t, + :stripe_checkout_expires_at => DateTime.t | nil, :updated_at => DateTime.t } @@ -44,8 +48,10 @@ defmodule Ory.Model.Subscription do def decode(value) do value |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:current_plan_details, :struct, Ory.Model.PlanDetails) |> Deserializer.deserialize(:payed_until, :datetime, nil) |> Deserializer.deserialize(:plan_changes_at, :datetime, nil) + |> Deserializer.deserialize(:stripe_checkout_expires_at, :datetime, nil) |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/client/elixir/lib/ory/model/update_identity_body.ex b/clients/client/elixir/lib/ory/model/update_identity_body.ex index 1a639557bac..2a37275d352 100644 --- a/clients/client/elixir/lib/ory/model/update_identity_body.ex +++ b/clients/client/elixir/lib/ory/model/update_identity_body.ex @@ -21,7 +21,7 @@ defmodule Ory.Model.UpdateIdentityBody do :metadata_admin => any() | nil, :metadata_public => any() | nil, :schema_id => String.t, - :state => Ory.Model.IdentityState.t, + :state => String.t, :traits => map() } @@ -30,7 +30,6 @@ defmodule Ory.Model.UpdateIdentityBody do def decode(value) do value |> Deserializer.deserialize(:credentials, :struct, Ory.Model.IdentityWithCredentials) - |> Deserializer.deserialize(:state, :struct, Ory.Model.IdentityState) end end diff --git a/clients/client/elixir/lib/ory/model/update_login_flow_body.ex b/clients/client/elixir/lib/ory/model/update_login_flow_body.ex index 12a863a2d29..9648b1510ab 100644 --- a/clients/client/elixir/lib/ory/model/update_login_flow_body.ex +++ b/clients/client/elixir/lib/ory/model/update_login_flow_body.ex @@ -13,6 +13,7 @@ defmodule Ory.Model.UpdateLoginFlowBody do :method, :password, :password_identifier, + :transient_payload, :id_token, :id_token_nonce, :provider, @@ -31,6 +32,7 @@ defmodule Ory.Model.UpdateLoginFlowBody do :method => String.t, :password => String.t, :password_identifier => String.t | nil, + :transient_payload => map() | nil, :id_token => String.t | nil, :id_token_nonce => String.t | nil, :provider => String.t, diff --git a/clients/client/elixir/lib/ory/model/update_login_flow_with_code_method.ex b/clients/client/elixir/lib/ory/model/update_login_flow_with_code_method.ex index de1e9f7b3aa..80567dec97c 100644 --- a/clients/client/elixir/lib/ory/model/update_login_flow_with_code_method.ex +++ b/clients/client/elixir/lib/ory/model/update_login_flow_with_code_method.ex @@ -12,7 +12,8 @@ defmodule Ory.Model.UpdateLoginFlowWithCodeMethod do :csrf_token, :identifier, :method, - :resend + :resend, + :transient_payload ] @type t :: %__MODULE__{ @@ -20,7 +21,8 @@ defmodule Ory.Model.UpdateLoginFlowWithCodeMethod do :csrf_token => String.t, :identifier => String.t | nil, :method => String.t, - :resend => String.t | nil + :resend => String.t | nil, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex b/clients/client/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex index da78e3d6eba..db573967064 100644 --- a/clients/client/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex +++ b/clients/client/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex @@ -14,6 +14,7 @@ defmodule Ory.Model.UpdateLoginFlowWithOidcMethod do :method, :provider, :traits, + :transient_payload, :upstream_parameters ] @@ -24,6 +25,7 @@ defmodule Ory.Model.UpdateLoginFlowWithOidcMethod do :method => String.t, :provider => String.t, :traits => map() | nil, + :transient_payload => map() | nil, :upstream_parameters => map() | nil } diff --git a/clients/client/elixir/lib/ory/model/update_login_flow_with_password_method.ex b/clients/client/elixir/lib/ory/model/update_login_flow_with_password_method.ex index 1b91d7076e7..f6496fe4c04 100644 --- a/clients/client/elixir/lib/ory/model/update_login_flow_with_password_method.ex +++ b/clients/client/elixir/lib/ory/model/update_login_flow_with_password_method.ex @@ -12,7 +12,8 @@ defmodule Ory.Model.UpdateLoginFlowWithPasswordMethod do :identifier, :method, :password, - :password_identifier + :password_identifier, + :transient_payload ] @type t :: %__MODULE__{ @@ -20,7 +21,8 @@ defmodule Ory.Model.UpdateLoginFlowWithPasswordMethod do :identifier => String.t, :method => String.t, :password => String.t, - :password_identifier => String.t | nil + :password_identifier => String.t | nil, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_login_flow_with_totp_method.ex b/clients/client/elixir/lib/ory/model/update_login_flow_with_totp_method.ex index c60e7351211..5a68c896972 100644 --- a/clients/client/elixir/lib/ory/model/update_login_flow_with_totp_method.ex +++ b/clients/client/elixir/lib/ory/model/update_login_flow_with_totp_method.ex @@ -10,13 +10,15 @@ defmodule Ory.Model.UpdateLoginFlowWithTotpMethod do defstruct [ :csrf_token, :method, - :totp_code + :totp_code, + :transient_payload ] @type t :: %__MODULE__{ :csrf_token => String.t | nil, :method => String.t, - :totp_code => String.t + :totp_code => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex b/clients/client/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex index 6647fb8cb96..0489562f462 100644 --- a/clients/client/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex +++ b/clients/client/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex @@ -11,6 +11,7 @@ defmodule Ory.Model.UpdateLoginFlowWithWebAuthnMethod do :csrf_token, :identifier, :method, + :transient_payload, :webauthn_login ] @@ -18,6 +19,7 @@ defmodule Ory.Model.UpdateLoginFlowWithWebAuthnMethod do :csrf_token => String.t | nil, :identifier => String.t, :method => String.t, + :transient_payload => map() | nil, :webauthn_login => String.t | nil } diff --git a/clients/client/elixir/lib/ory/model/update_recovery_flow_body.ex b/clients/client/elixir/lib/ory/model/update_recovery_flow_body.ex index 9cd881af4f4..67069bd6aa7 100644 --- a/clients/client/elixir/lib/ory/model/update_recovery_flow_body.ex +++ b/clients/client/elixir/lib/ory/model/update_recovery_flow_body.ex @@ -11,6 +11,7 @@ defmodule Ory.Model.UpdateRecoveryFlowBody do :csrf_token, :email, :method, + :transient_payload, :code ] @@ -18,6 +19,7 @@ defmodule Ory.Model.UpdateRecoveryFlowBody do :csrf_token => String.t | nil, :email => String.t, :method => String.t, + :transient_payload => map() | nil, :code => String.t | nil } diff --git a/clients/client/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex b/clients/client/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex index dee348aa839..1786e47056d 100644 --- a/clients/client/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex +++ b/clients/client/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex @@ -11,14 +11,16 @@ defmodule Ory.Model.UpdateRecoveryFlowWithCodeMethod do :code, :csrf_token, :email, - :method + :method, + :transient_payload ] @type t :: %__MODULE__{ :code => String.t | nil, :csrf_token => String.t | nil, :email => String.t | nil, - :method => String.t + :method => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex b/clients/client/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex index 5a7deb067df..fd86a8c74ce 100644 --- a/clients/client/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex +++ b/clients/client/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex @@ -10,13 +10,15 @@ defmodule Ory.Model.UpdateRecoveryFlowWithLinkMethod do defstruct [ :csrf_token, :email, - :method + :method, + :transient_payload ] @type t :: %__MODULE__{ :csrf_token => String.t | nil, :email => String.t, - :method => String.t + :method => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_body.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_body.ex index eb18a6c2b26..5154d2d7eb0 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_body.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_body.ex @@ -11,6 +11,7 @@ defmodule Ory.Model.UpdateSettingsFlowBody do :csrf_token, :method, :password, + :transient_payload, :traits, :flow, :link, @@ -31,6 +32,7 @@ defmodule Ory.Model.UpdateSettingsFlowBody do :csrf_token => String.t | nil, :method => String.t, :password => String.t, + :transient_payload => map() | nil, :traits => map(), :flow => String.t | nil, :link => String.t | nil, diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex index fecde24f3ca..91c9e3df987 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex @@ -13,7 +13,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithLookupMethod do :lookup_secret_disable, :lookup_secret_regenerate, :lookup_secret_reveal, - :method + :method, + :transient_payload ] @type t :: %__MODULE__{ @@ -22,7 +23,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithLookupMethod do :lookup_secret_disable => boolean() | nil, :lookup_secret_regenerate => boolean() | nil, :lookup_secret_reveal => boolean() | nil, - :method => String.t + :method => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex index 04b0a6cea1d..51b839e946a 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex @@ -12,6 +12,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithOidcMethod do :link, :method, :traits, + :transient_payload, :unlink, :upstream_parameters ] @@ -21,6 +22,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithOidcMethod do :link => String.t | nil, :method => String.t, :traits => map() | nil, + :transient_payload => map() | nil, :unlink => String.t | nil, :upstream_parameters => map() | nil } diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_with_password_method.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_with_password_method.ex index e945c7db898..041ba7c2754 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_with_password_method.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_with_password_method.ex @@ -10,13 +10,15 @@ defmodule Ory.Model.UpdateSettingsFlowWithPasswordMethod do defstruct [ :csrf_token, :method, - :password + :password, + :transient_payload ] @type t :: %__MODULE__{ :csrf_token => String.t | nil, :method => String.t, - :password => String.t + :password => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex index c4c5a063d38..701b4d97a1b 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex @@ -10,13 +10,15 @@ defmodule Ory.Model.UpdateSettingsFlowWithProfileMethod do defstruct [ :csrf_token, :method, - :traits + :traits, + :transient_payload ] @type t :: %__MODULE__{ :csrf_token => String.t | nil, :method => String.t, - :traits => map() + :traits => map(), + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex index 229000c8081..0becb154140 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex @@ -11,14 +11,16 @@ defmodule Ory.Model.UpdateSettingsFlowWithTotpMethod do :csrf_token, :method, :totp_code, - :totp_unlink + :totp_unlink, + :transient_payload ] @type t :: %__MODULE__{ :csrf_token => String.t | nil, :method => String.t, :totp_code => String.t | nil, - :totp_unlink => boolean() | nil + :totp_unlink => boolean() | nil, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex b/clients/client/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex index 89530542b5c..b9be0a2dcb7 100644 --- a/clients/client/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex +++ b/clients/client/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex @@ -10,6 +10,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithWebAuthnMethod do defstruct [ :csrf_token, :method, + :transient_payload, :webauthn_register, :webauthn_register_displayname, :webauthn_remove @@ -18,6 +19,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithWebAuthnMethod do @type t :: %__MODULE__{ :csrf_token => String.t | nil, :method => String.t, + :transient_payload => map() | nil, :webauthn_register => String.t | nil, :webauthn_register_displayname => String.t | nil, :webauthn_remove => String.t | nil diff --git a/clients/client/elixir/lib/ory/model/update_subscription_body.ex b/clients/client/elixir/lib/ory/model/update_subscription_body.ex index 8b5e1e0678c..f64b5ae814d 100644 --- a/clients/client/elixir/lib/ory/model/update_subscription_body.ex +++ b/clients/client/elixir/lib/ory/model/update_subscription_body.ex @@ -3,7 +3,7 @@ defmodule Ory.Model.UpdateSubscriptionBody do @moduledoc """ - Update Subscription Request Body + """ @derive Jason.Encoder diff --git a/clients/client/elixir/lib/ory/model/update_verification_flow_body.ex b/clients/client/elixir/lib/ory/model/update_verification_flow_body.ex index dedec1fd08b..27755e96caa 100644 --- a/clients/client/elixir/lib/ory/model/update_verification_flow_body.ex +++ b/clients/client/elixir/lib/ory/model/update_verification_flow_body.ex @@ -11,6 +11,7 @@ defmodule Ory.Model.UpdateVerificationFlowBody do :csrf_token, :email, :method, + :transient_payload, :code ] @@ -18,6 +19,7 @@ defmodule Ory.Model.UpdateVerificationFlowBody do :csrf_token => String.t | nil, :email => String.t, :method => String.t, + :transient_payload => map() | nil, :code => String.t | nil } diff --git a/clients/client/elixir/lib/ory/model/update_verification_flow_with_code_method.ex b/clients/client/elixir/lib/ory/model/update_verification_flow_with_code_method.ex index a523e9fed58..dc38732fed0 100644 --- a/clients/client/elixir/lib/ory/model/update_verification_flow_with_code_method.ex +++ b/clients/client/elixir/lib/ory/model/update_verification_flow_with_code_method.ex @@ -11,14 +11,16 @@ defmodule Ory.Model.UpdateVerificationFlowWithCodeMethod do :code, :csrf_token, :email, - :method + :method, + :transient_payload ] @type t :: %__MODULE__{ :code => String.t | nil, :csrf_token => String.t | nil, :email => String.t | nil, - :method => String.t + :method => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/update_verification_flow_with_link_method.ex b/clients/client/elixir/lib/ory/model/update_verification_flow_with_link_method.ex index 85221586e10..d482f369523 100644 --- a/clients/client/elixir/lib/ory/model/update_verification_flow_with_link_method.ex +++ b/clients/client/elixir/lib/ory/model/update_verification_flow_with_link_method.ex @@ -10,13 +10,15 @@ defmodule Ory.Model.UpdateVerificationFlowWithLinkMethod do defstruct [ :csrf_token, :email, - :method + :method, + :transient_payload ] @type t :: %__MODULE__{ :csrf_token => String.t | nil, :email => String.t, - :method => String.t + :method => String.t, + :transient_payload => map() | nil } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/identity_state.ex b/clients/client/elixir/lib/ory/model/update_workspace_payload.ex similarity index 73% rename from clients/client/elixir/lib/ory/model/identity_state.ex rename to clients/client/elixir/lib/ory/model/update_workspace_payload.ex index 4b6c8647a29..2d6fec89b9e 100644 --- a/clients/client/elixir/lib/ory/model/identity_state.ex +++ b/clients/client/elixir/lib/ory/model/update_workspace_payload.ex @@ -1,18 +1,18 @@ # NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. -defmodule Ory.Model.IdentityState do +defmodule Ory.Model.UpdateWorkspacePayload do @moduledoc """ - The state can either be `active` or `inactive`. + """ @derive Jason.Encoder defstruct [ - + :name ] @type t :: %__MODULE__{ - + :name => String.t } def decode(value) do diff --git a/clients/client/elixir/lib/ory/model/verification_flow.ex b/clients/client/elixir/lib/ory/model/verification_flow.ex index b83e930cd70..30107391318 100644 --- a/clients/client/elixir/lib/ory/model/verification_flow.ex +++ b/clients/client/elixir/lib/ory/model/verification_flow.ex @@ -15,6 +15,7 @@ defmodule Ory.Model.VerificationFlow do :request_url, :return_to, :state, + :transient_payload, :type, :ui ] @@ -27,6 +28,7 @@ defmodule Ory.Model.VerificationFlow do :request_url => String.t | nil, :return_to => String.t | nil, :state => any() | nil, + :transient_payload => map() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } diff --git a/clients/client/elixir/lib/ory/model/workspace_meta.ex b/clients/client/elixir/lib/ory/model/workspace_meta.ex new file mode 100644 index 00000000000..7e5107c5e06 --- /dev/null +++ b/clients/client/elixir/lib/ory/model/workspace_meta.ex @@ -0,0 +1,36 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.WorkspaceMeta do + @moduledoc """ + + """ + + @derive Jason.Encoder + defstruct [ + :created_at, + :id, + :name, + :subscription_id, + :subscription_plan, + :updated_at + ] + + @type t :: %__MODULE__{ + :created_at => DateTime.t, + :id => String.t, + :name => String.t, + :subscription_id => String.t | nil, + :subscription_plan => String.t | nil, + :updated_at => DateTime.t + } + + alias Ory.Deserializer + + def decode(value) do + value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) + end +end + diff --git a/clients/client/elixir/mix.exs b/clients/client/elixir/mix.exs index a66dc9956de..e4e073d3f4b 100644 --- a/clients/client/elixir/mix.exs +++ b/clients/client/elixir/mix.exs @@ -4,7 +4,7 @@ defmodule Ory.Mixfile do def project do [ app: :ory_client, - version: "1.5.1", + version: "1.8.1", elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, diff --git a/clients/client/elixir/mix.lock b/clients/client/elixir/mix.lock index 371b65330f6..61d6bb1e128 100644 --- a/clients/client/elixir/mix.lock +++ b/clients/client/elixir/mix.lock @@ -2,11 +2,11 @@ "dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"}, "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, - "ex_doc": {:hex, :ex_doc, "0.31.1", "8a2355ac42b1cc7b2379da9e40243f2670143721dd50748bf6c3b1184dae2089", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "3178c3a407c557d8343479e1ff117a96fd31bafe52a039079593fb0524ef61b0"}, + "ex_doc": {:hex, :ex_doc, "0.31.2", "8b06d0a5ac69e1a54df35519c951f1f44a7b7ca9a5bb7a260cd8a174d6322ece", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "317346c14febaba9ca40fd97b5b5919f7751fb85d399cc8e7e8872049f37e0af"}, "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, - "makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.3", "d684f4bac8690e70b06eb52dad65d26de2eefa44cd19d64a8095e1417df7c8fd", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "b78dc853d2e670ff6390b605d807263bf606da3c82be37f9d7f68635bd886fc9"}, + "makeup_elixir": {:hex, :makeup_elixir, "0.16.2", "627e84b8e8bf22e60a2579dad15067c755531fea049ae26ef1020cad58fe9578", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "41193978704763f6bbe6cc2758b84909e62984c7752b3784bd3c218bb341706b"}, + "makeup_erlang": {:hex, :makeup_erlang, "0.1.5", "e0ff5a7c708dda34311f7522a8758e23bfcd7d8d8068dc312b5eb41c6fd76eba", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "94d2e986428585a21516d7d7149781480013c56e30c6a233534bedf38867a59a"}, "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, "tesla": {:hex, :tesla, "1.8.0", "d511a4f5c5e42538d97eef7c40ec4f3e44effdc5068206f42ed859e09e51d1fd", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, ">= 1.0.0", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.2", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "10501f360cd926a309501287470372af1a6e1cbed0f43949203a4c13300bc79f"}, diff --git a/clients/client/go/.openapi-generator/FILES b/clients/client/go/.openapi-generator/FILES index 3e00fd9c2c9..a449e2ef837 100644 --- a/clients/client/go/.openapi-generator/FILES +++ b/clients/client/go/.openapi-generator/FILES @@ -55,8 +55,11 @@ docs/CreateRecoveryCodeForIdentityBody.md docs/CreateRecoveryLinkForIdentityBody.md docs/CreateRelationshipBody.md docs/CreateSubscriptionBody.md +docs/CreateSubscriptionCommon.md docs/CreateVerifiableCredentialRequestBody.md docs/CreateWorkspaceMemberInviteBody.md +docs/CreateWorkspacePayload.md +docs/CreateWorkspaceSubscriptionBody.md docs/CredentialSupportedDraft00.md docs/CustomDomain.md docs/DeleteMySessionsCount.md @@ -94,12 +97,10 @@ 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/IdentitySchemaPreset.md -docs/IdentityState.md docs/IdentityWithCredentials.md docs/IdentityWithCredentialsOidc.md docs/IdentityWithCredentialsOidcConfig.md @@ -110,7 +111,6 @@ docs/InternalGetProjectBrandingBody.md docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md docs/InternalIsOwnerForProjectBySlugBody.md docs/InternalIsOwnerForProjectBySlugResponse.md -docs/InternalProvisionMockSubscription.md docs/IntrospectedOAuth2Token.md docs/IsOwnerForProjectBySlug.md docs/IsReady200Response.md @@ -123,6 +123,7 @@ docs/KetoNamespace.md docs/ListEventStreams.md docs/ListMyWorkspacesResponse.md docs/ListOrganizationsResponse.md +docs/ListWorkspaceProjectsResponse.md docs/LoginFlow.md docs/LoginFlowState.md docs/LogoutFlow.md @@ -133,6 +134,7 @@ docs/Message.md docs/MessageDispatch.md docs/MetadataAPI.md docs/MetricsDatapoint.md +docs/MigrationOptions.md docs/Namespace.md docs/NeedsPrivilegedSessionError.md docs/NormalizedProject.md @@ -164,6 +166,7 @@ docs/ParseError.md docs/PatchIdentitiesBody.md docs/PerformNativeLogoutBody.md docs/PermissionAPI.md +docs/PermissionsOnWorkpaceResponse.md docs/Plan.md docs/PlanDetails.md docs/PostCheckPermissionBody.md @@ -177,6 +180,7 @@ docs/ProjectBrandingTheme.md docs/ProjectCors.md docs/ProjectEventsDatapoint.md docs/ProjectHost.md +docs/ProjectMember.md docs/ProjectMetadata.md docs/ProjectServiceIdentity.md docs/ProjectServiceOAuth2.md @@ -212,7 +216,6 @@ docs/SetProjectBrandingThemeBody.md docs/SettingsFlow.md docs/SettingsFlowState.md docs/SourcePosition.md -docs/StripeCustomer.md docs/SubjectSet.md docs/Subscription.md docs/SuccessfulCodeExchangeResponse.md @@ -263,6 +266,7 @@ docs/UpdateSubscriptionBody.md docs/UpdateVerificationFlowBody.md docs/UpdateVerificationFlowWithCodeMethod.md docs/UpdateVerificationFlowWithLinkMethod.md +docs/UpdateWorkspacePayload.md docs/Usage.md docs/VerifiableCredentialPrimingResponse.md docs/VerifiableCredentialProof.md @@ -274,6 +278,7 @@ docs/Version.md docs/Warning.md docs/WellknownAPI.md docs/Workspace.md +docs/WorkspaceMeta.md git_push.sh go.mod go.sum @@ -314,8 +319,11 @@ model_create_recovery_code_for_identity_body.go model_create_recovery_link_for_identity_body.go model_create_relationship_body.go model_create_subscription_body.go +model_create_subscription_common.go model_create_verifiable_credential_request_body.go model_create_workspace_member_invite_body.go +model_create_workspace_payload.go +model_create_workspace_subscription_body.go model_credential_supported_draft00.go model_custom_domain.go model_delete_my_sessions_count.go @@ -350,12 +358,10 @@ 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_schema_preset.go -model_identity_state.go model_identity_with_credentials.go model_identity_with_credentials_oidc.go model_identity_with_credentials_oidc_config.go @@ -366,7 +372,6 @@ model_internal_get_project_branding_body.go model_internal_is_ax_welcome_screen_enabled_for_project_body.go model_internal_is_owner_for_project_by_slug_body.go model_internal_is_owner_for_project_by_slug_response.go -model_internal_provision_mock_subscription.go model_introspected_o_auth2_token.go model_is_owner_for_project_by_slug.go model_is_ready_200_response.go @@ -378,6 +383,7 @@ model_keto_namespace.go model_list_event_streams.go model_list_my_workspaces_response.go model_list_organizations_response.go +model_list_workspace_projects_response.go model_login_flow.go model_login_flow_state.go model_logout_flow.go @@ -387,6 +393,7 @@ model_member_invite.go model_message.go model_message_dispatch.go model_metrics_datapoint.go +model_migration_options.go model_namespace.go model_needs_privileged_session_error.go model_normalized_project.go @@ -415,6 +422,7 @@ model_pagination_headers.go model_parse_error.go model_patch_identities_body.go model_perform_native_logout_body.go +model_permissions_on_workpace_response.go model_plan.go model_plan_details.go model_post_check_permission_body.go @@ -427,6 +435,7 @@ model_project_branding_theme.go model_project_cors.go model_project_events_datapoint.go model_project_host.go +model_project_member.go model_project_metadata.go model_project_service_identity.go model_project_service_o_auth2.go @@ -461,7 +470,6 @@ model_set_project_branding_theme_body.go model_settings_flow.go model_settings_flow_state.go model_source_position.go -model_stripe_customer.go model_subject_set.go model_subscription.go model_successful_code_exchange_response.go @@ -512,6 +520,7 @@ model_update_subscription_body.go model_update_verification_flow_body.go model_update_verification_flow_with_code_method.go model_update_verification_flow_with_link_method.go +model_update_workspace_payload.go model_usage.go model_verifiable_credential_priming_response.go model_verifiable_credential_proof.go @@ -522,6 +531,7 @@ model_verification_flow_state.go model_version.go model_warning.go model_workspace.go +model_workspace_meta.go response.go test/api_courier_test.go test/api_events_test.go diff --git a/clients/client/go/README.md b/clients/client/go/README.md index 65e344029b4..8006e04a551 100644 --- a/clients/client/go/README.md +++ b/clients/client/go/README.md @@ -7,7 +7,7 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: v1.5.1 +- API version: v1.8.1 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -252,8 +252,11 @@ Class | Method | HTTP request | Description - [CreateRecoveryLinkForIdentityBody](docs/CreateRecoveryLinkForIdentityBody.md) - [CreateRelationshipBody](docs/CreateRelationshipBody.md) - [CreateSubscriptionBody](docs/CreateSubscriptionBody.md) + - [CreateSubscriptionCommon](docs/CreateSubscriptionCommon.md) - [CreateVerifiableCredentialRequestBody](docs/CreateVerifiableCredentialRequestBody.md) - [CreateWorkspaceMemberInviteBody](docs/CreateWorkspaceMemberInviteBody.md) + - [CreateWorkspacePayload](docs/CreateWorkspacePayload.md) + - [CreateWorkspaceSubscriptionBody](docs/CreateWorkspaceSubscriptionBody.md) - [CredentialSupportedDraft00](docs/CredentialSupportedDraft00.md) - [CustomDomain](docs/CustomDomain.md) - [DeleteMySessionsCount](docs/DeleteMySessionsCount.md) @@ -288,12 +291,10 @@ Class | Method | HTTP request | Description - [IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](docs/IdentityCredentialsType.md) - [IdentityPatch](docs/IdentityPatch.md) - [IdentityPatchResponse](docs/IdentityPatchResponse.md) - [IdentitySchemaContainer](docs/IdentitySchemaContainer.md) - [IdentitySchemaPreset](docs/IdentitySchemaPreset.md) - - [IdentityState](docs/IdentityState.md) - [IdentityWithCredentials](docs/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](docs/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](docs/IdentityWithCredentialsOidcConfig.md) @@ -304,7 +305,6 @@ Class | Method | HTTP request | Description - [InternalIsAXWelcomeScreenEnabledForProjectBody](docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md) - [InternalIsOwnerForProjectBySlugBody](docs/InternalIsOwnerForProjectBySlugBody.md) - [InternalIsOwnerForProjectBySlugResponse](docs/InternalIsOwnerForProjectBySlugResponse.md) - - [InternalProvisionMockSubscription](docs/InternalProvisionMockSubscription.md) - [IntrospectedOAuth2Token](docs/IntrospectedOAuth2Token.md) - [IsOwnerForProjectBySlug](docs/IsOwnerForProjectBySlug.md) - [IsReady200Response](docs/IsReady200Response.md) @@ -316,6 +316,7 @@ Class | Method | HTTP request | Description - [ListEventStreams](docs/ListEventStreams.md) - [ListMyWorkspacesResponse](docs/ListMyWorkspacesResponse.md) - [ListOrganizationsResponse](docs/ListOrganizationsResponse.md) + - [ListWorkspaceProjectsResponse](docs/ListWorkspaceProjectsResponse.md) - [LoginFlow](docs/LoginFlow.md) - [LoginFlowState](docs/LoginFlowState.md) - [LogoutFlow](docs/LogoutFlow.md) @@ -325,6 +326,7 @@ Class | Method | HTTP request | Description - [Message](docs/Message.md) - [MessageDispatch](docs/MessageDispatch.md) - [MetricsDatapoint](docs/MetricsDatapoint.md) + - [MigrationOptions](docs/MigrationOptions.md) - [Namespace](docs/Namespace.md) - [NeedsPrivilegedSessionError](docs/NeedsPrivilegedSessionError.md) - [NormalizedProject](docs/NormalizedProject.md) @@ -353,6 +355,7 @@ Class | Method | HTTP request | Description - [ParseError](docs/ParseError.md) - [PatchIdentitiesBody](docs/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](docs/PerformNativeLogoutBody.md) + - [PermissionsOnWorkpaceResponse](docs/PermissionsOnWorkpaceResponse.md) - [Plan](docs/Plan.md) - [PlanDetails](docs/PlanDetails.md) - [PostCheckPermissionBody](docs/PostCheckPermissionBody.md) @@ -365,6 +368,7 @@ Class | Method | HTTP request | Description - [ProjectCors](docs/ProjectCors.md) - [ProjectEventsDatapoint](docs/ProjectEventsDatapoint.md) - [ProjectHost](docs/ProjectHost.md) + - [ProjectMember](docs/ProjectMember.md) - [ProjectMetadata](docs/ProjectMetadata.md) - [ProjectServiceIdentity](docs/ProjectServiceIdentity.md) - [ProjectServiceOAuth2](docs/ProjectServiceOAuth2.md) @@ -399,7 +403,6 @@ Class | Method | HTTP request | Description - [SettingsFlow](docs/SettingsFlow.md) - [SettingsFlowState](docs/SettingsFlowState.md) - [SourcePosition](docs/SourcePosition.md) - - [StripeCustomer](docs/StripeCustomer.md) - [SubjectSet](docs/SubjectSet.md) - [Subscription](docs/Subscription.md) - [SuccessfulCodeExchangeResponse](docs/SuccessfulCodeExchangeResponse.md) @@ -450,6 +453,7 @@ Class | Method | HTTP request | Description - [UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md) - [UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md) - [UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md) + - [UpdateWorkspacePayload](docs/UpdateWorkspacePayload.md) - [Usage](docs/Usage.md) - [VerifiableCredentialPrimingResponse](docs/VerifiableCredentialPrimingResponse.md) - [VerifiableCredentialProof](docs/VerifiableCredentialProof.md) @@ -460,6 +464,7 @@ Class | Method | HTTP request | Description - [Version](docs/Version.md) - [Warning](docs/Warning.md) - [Workspace](docs/Workspace.md) + - [WorkspaceMeta](docs/WorkspaceMeta.md) ## Documentation For Authorization diff --git a/clients/client/go/api/openapi.yaml b/clients/client/go/api/openapi.yaml index e7a848bdbfe..7b84ee4d8ef 100644 --- a/clients/client/go/api/openapi.yaml +++ b/clients/client/go/api/openapi.yaml @@ -11,7 +11,7 @@ info: url: https://www.apache.org/licenses/LICENSE-2.0.html termsOfService: /ptos title: Ory APIs - version: v1.5.1 + version: v1.8.1 servers: - url: "https://{project}.projects.oryapis.com/" variables: @@ -648,11 +648,11 @@ paths: strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - description: |- - IdsFilter is list of ids used to filter identities. + List of ids used to filter identities. If this list is empty, then no filter will be applied. explode: true in: query - name: ids_filter + name: ids required: false schema: items: @@ -682,6 +682,20 @@ paths: schema: type: string style: form + - description: |- + Include Credentials in Response + + Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return + the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. + explode: true + in: query + name: include_credential + required: false + schema: + items: + type: string + type: array + style: form responses: "200": content: @@ -853,11 +867,13 @@ paths: items: enum: - password - - totp - oidc - - webauthn + - totp - lookup_secret + - webauthn - code + - link_recovery + - code_recovery type: string type: array style: form @@ -1013,19 +1029,40 @@ paths: type: string style: simple - description: |- - Type is the credential's Type. - One of totp, webauthn, lookup + Type is the type of credentials to be deleted. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 explode: false in: path name: type required: true schema: enum: + - password + - oidc - totp + - lookup_secret - webauthn - - lookup + - code + - link_recovery + - code_recovery type: string style: simple + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 responses: "204": description: |- @@ -2169,6 +2206,14 @@ paths: This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. operationId: createRecoveryLinkForIdentity + parameters: + - explode: true + in: query + name: return_to + required: false + schema: + type: string + style: form requestBody: content: application/json: @@ -3855,13 +3900,13 @@ paths: - description: |- The resolution of the buckets - The minimum resolution is 1 hour. + The minimum resolution is 1 minute. explode: true in: query name: resolution required: true schema: - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + pattern: "^[0-9]+(m|h|d|M|y)$" type: string style: form - description: The start RFC3339 date of the time window @@ -4607,8 +4652,7 @@ paths: \ to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview)." operationId: postCheckPermissionOrError parameters: - - description: "nolint:deadcode,unused" - explode: true + - explode: true in: query name: max-depth required: false @@ -5216,6 +5260,15 @@ paths: schema: type: string style: form + - description: Via should contain the identity's credential the code should + be sent to. Only relevant in aal2 flows. + explode: true + in: query + name: via + required: false + schema: + type: string + style: form responses: "200": content: @@ -5336,6 +5389,15 @@ paths: schema: type: string style: form + - description: Via should contain the identity's credential the code should + be sent to. Only relevant in aal2 flows. + explode: true + in: query + name: via + required: false + schema: + type: string + style: form responses: "200": content: @@ -7482,8 +7544,6 @@ components: - count - name type: object - CodeAddressType: - type: string CreateInviteResponse: properties: all_invites: @@ -7504,2165 +7564,2269 @@ components: description: A email to invite type: string type: object - CreateVerifiableCredentialRequestBody: - example: - types: - - types - - types - format: format - proof: - proof_type: proof_type - jwt: jwt - properties: - format: - type: string - proof: - $ref: '#/components/schemas/VerifiableCredentialProof' - types: - items: - type: string - type: array - title: CreateVerifiableCredentialRequestBody contains the request body to request - a verifiable credential. - type: object - CreateWorkspaceMemberInviteBody: - description: Create Workspace Invite Request Body - properties: - invitee_email: - description: A email to invite - type: string - type: object - CustomHostnameStatus: - title: CustomHostnameStatus is the enumeration of valid state values in the - CustomHostnameSSL. - type: string - DefaultError: {} - Duration: - description: |- - A Duration represents the elapsed time between two instants - as an int64 nanosecond count. The representation limits the - largest representable duration to approximately 290 years. - format: int64 - type: integer - GenericUsage: - properties: - additional_price: - description: AdditionalPrice is the price per-unit in cent exceeding IncludedUsage. - A price of 0 means that no other items can be consumed. - format: int64 - type: integer - included_usage: - description: IncludedUsage is the number of included items. - format: int64 - type: integer - required: - - additional_price - - included_usage - title: GenericUsage is the generic usage type that can be used for any feature. - type: object - ID: - format: int64 - type: integer - JSONRawMessage: - title: "JSONRawMessage represents a json.RawMessage that works well with JSON,\ - \ SQL, and Swagger." - type: object - KetoNamespace: + CreateProjectNormalizedPayload: + description: Create project (normalized) request payload properties: - id: - format: int64 - type: integer - name: + created_at: + description: The Project's Revision Creation Date + format: date-time + readOnly: true type: string - type: object - KetoNamespaces: - items: - $ref: '#/components/schemas/KetoNamespace' - type: array - ListMyWorkspacesResponse: - properties: - has_next_page: + disable_account_experience_welcome_screen: + description: "Whether to disable the account experience welcome screen,\ + \ which is hosted under `/ui/welcome`." type: boolean - next_page_token: + enable_ax_v2: + description: Whether the new account experience is enabled and reachable. + type: boolean + environment: + description: |2- + + prod Production + dev Development + enum: + - prod + - dev type: string - workspaces: + x-go-enum-desc: |- + prod Production + dev Development + hydra_oauth2_allowed_top_level_claims: items: - $ref: '#/components/schemas/workspace' + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." type: array - required: - - has_next_page - - next_page_token - - workspaces - type: object - NormalizedProjectRevisionCourierChannel: - properties: - channel_id: - description: The Channel's public ID - type: string - created_at: - description: The creation date - format: date-time - readOnly: true - type: string - request_config_auth_config_api_key_in: + hydra_oauth2_client_credentials_default_grant_allowed_scope: description: |- - API key location + Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. - Can either be "header" or "query" - example: header - type: string - request_config_auth_config_api_key_name: + Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full + scope is automatically granted when performing the OAuth2 Client Credentials flow. + + If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. + + Setting this option to true is common if you need compatibility with MITREid. + + This governs the "oauth2.client_credentials.default_grant_allowed_scope" setting. + type: boolean + hydra_oauth2_exclude_not_before_claim: description: |- - API key name + Set to true if you want to exclude claim `nbf (not before)` part of access token. - Only used if the auth type is api_key - type: string - request_config_auth_config_api_key_value: + This governs the "oauth2.exclude_not_before_claim" setting. + type: boolean + hydra_oauth2_grant_jwt_iat_optional: description: |- - API key value + Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - Only used if the auth type is api_key - type: string - request_config_auth_config_basic_auth_password: + If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. + + This governs the "oauth2.grant.jwt.iat_optional" setting. + type: boolean + hydra_oauth2_grant_jwt_jti_optional: description: |- - Basic Auth Password + Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - Only used if the auth type is basic_auth + If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. + + This governs the "oauth2.grant.jwt.jti_optional" setting. + type: boolean + hydra_oauth2_grant_jwt_max_ttl: + default: 720h + description: |- + Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. + + This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. + + Useful as a safety measure and recommended to keep below 720h. + + This governs the "oauth2.grant.jwt.max_ttl" setting. + example: 30m + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - request_config_auth_config_basic_auth_user: + hydra_oauth2_mirror_top_level_claims: description: |- - Basic Auth Username + Set to false if you don't want to mirror custom claims under 'ext'. - Only used if the auth type is basic_auth + This governs the "oauth2.mirror_top_level_claims" setting. + type: boolean + hydra_oauth2_pkce_enforced: + description: |- + Configures whether PKCE should be enforced for all OAuth2 Clients. + + This governs the "oauth2.pkce.enforced" setting. + type: boolean + hydra_oauth2_pkce_enforced_for_public_clients: + description: |- + Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). + + This governs the "oauth2.pkce.enforced_for_public_clients" setting. + type: boolean + hydra_oauth2_refresh_token_hook: + description: |- + Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. + + This governs the "oauth2.refresh_token_hook" setting. type: string - request_config_auth_type: + hydra_oauth2_token_hook: description: |- - HTTP Auth Method to use for the HTTP call + Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims. - Can either be basic_auth or api_key - basic_auth CourierChannelAuthTypeBasicAuth - api_key CourierChannelAuthTypeApiKey - enum: - - basic_auth - - api_key + This governs the "oauth2.token_hook.url" setting. type: string - x-go-enum-desc: |- - basic_auth CourierChannelAuthTypeBasicAuth - api_key CourierChannelAuthTypeApiKey - request_config_body: - description: URI pointing to the JsonNet template used for HTTP body payload - generation. - type: string - request_config_headers: - description: "NullJSONRawMessage represents a json.RawMessage that works\ - \ well with JSON, SQL, and Swagger and is NULLable-" - nullable: true - type: object - request_config_method: - description: "The HTTP method to use (GET, POST, etc) for the HTTP call" - example: POST - type: string - request_config_url: - type: string - updated_at: - description: Last upate time - format: date-time - readOnly: true + hydra_oidc_dynamic_client_registration_default_scope: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_oidc_dynamic_client_registration_enabled: + description: |- + Configures OpenID Connect Dynamic Client Registration. + + This governs the "oidc.dynamic_client_registration.enabled" setting. + type: boolean + hydra_oidc_subject_identifiers_pairwise_salt: + description: |- + Configures OpenID Connect Discovery and overwrites the pairwise algorithm + + This governs the "oidc.subject_identifiers.pairwise_salt" setting. type: string - required: - - channel_id - - request_config_body - - request_config_method - type: object - NullBool: - nullable: true - type: boolean - NullDuration: - nullable: true - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" - type: string - NullInt: - nullable: true - type: integer - NullString: - nullable: true - type: string - NullTime: - format: date-time - nullable: true - type: string - NullUUID: - format: uuid4 - nullable: true - type: string - OAuth2LoginChallengeParams: - type: object - OrganizationBody: - description: Create B2B SSO Organization Request Body - example: - domains: - - domains - - domains - label: label - properties: - domains: - description: Domains contains the list of organization's domains. + hydra_oidc_subject_identifiers_supported_types: items: type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." type: array - label: - description: Label contains the organization's label. + hydra_secrets_cookie: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_secrets_system: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_serve_cookies_same_site_legacy_workaround: + description: |- + Configures the Ory Hydra Cookie Same Site Legacy Workaround + + This governs the "serve.cookies.same_site_legacy_workaround" setting. + type: boolean + hydra_serve_cookies_same_site_mode: + description: |- + Configures the Ory Hydra Cookie Same Site Mode + + This governs the "serve.cookies.same_site_mode" setting. type: string - type: object - ParseError: - example: - start: - Line: 0 - column: 6 - end: - Line: 0 - column: 6 - message: message - properties: - end: - $ref: '#/components/schemas/SourcePosition' - message: + hydra_strategies_access_token: + default: opaque + description: |- + Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens + + This governs the "strategies.access_token" setting. + opaque Oauth2AccessTokenStrategyOpaque + jwt Oauth2AccessTokenStrategyJwt + enum: + - opaque + - jwt type: string - start: - $ref: '#/components/schemas/SourcePosition' - type: object - Plan: - properties: - name: - description: Name is the name of the plan. + x-go-enum-desc: |- + opaque Oauth2AccessTokenStrategyOpaque + jwt Oauth2AccessTokenStrategyJwt + hydra_strategies_scope: + default: wildcard + description: |- + Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes + + This governs the "strategies.scope" setting. + exact Oauth2ScopeStrategyExact + wildcard Oauth2ScopeStrategyWildcard + enum: + - exact + - wildcard type: string - version: - description: Version is the version of the plan. The combination of `name@version` - must be unique. - format: int64 - type: integer - required: - - name - - version - type: object - PlanDetails: - properties: - base_fee_monthly: - description: BaseFeeMonthly is the monthly base fee for the plan. - format: int64 - type: integer - base_fee_yearly: - description: BaseFeeYearly is the yearly base fee for the plan. - format: int64 - type: integer - custom: - description: Custom is true if the plan is custom. This means it will be - hidden from the pricing page. - type: boolean - description: - description: Description is the description of the plan. + x-go-enum-desc: |- + exact Oauth2ScopeStrategyExact + wildcard Oauth2ScopeStrategyWildcard + hydra_ttl_access_token: + default: 30m + description: This governs the "ttl.access_token" setting. + example: 1h + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - features: - additionalProperties: - $ref: '#/components/schemas/GenericUsage' - description: Features are the feature definitions included in the plan. - type: object - name: - description: Name is the name of the plan. + hydra_ttl_auth_code: + default: 720h + description: |- + Configures how long refresh tokens are valid. + + Set to -1 for refresh tokens to never expire. This is not recommended! + + This governs the "ttl.auth_code" setting. + example: 30m + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - version: - description: Version is the version of the plan. The combination of `name@version` - must be unique. - format: int64 - type: integer - required: - - base_fee_monthly - - base_fee_yearly - - custom - - description - - features - - name - - version - type: object - Pricing: - items: - $ref: '#/components/schemas/PlanDetails' - type: array - ProjectEventsDatapoint: - properties: - attributes: - description: Event attributes with details - items: - $ref: '#/components/schemas/Attribute' - type: array - name: - description: Name of the event + hydra_ttl_id_token: + default: 30m + description: This governs the "ttl.id_token" setting. + example: 1h + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - timestamp: - description: Time of occurence - format: date-time + hydra_ttl_login_consent_request: + default: 30m + description: |- + Configures how long a user login and consent flow may take. + + This governs the "ttl.login_consent_request" setting. + example: 1h + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - required: - - attributes - - name - - timestamp - type: object - RFC6749ErrorJson: - properties: - error: + hydra_ttl_refresh_token: + default: 720h + description: |- + Configures how long refresh tokens are valid. + + Set to -1 for refresh tokens to never expire. This is not recommended! + + This governs the "ttl.refresh_token" setting. + example: 30m + pattern: "^([0-9]+(ns|us|ms|s|m|h)|-1)$" type: string - error_debug: + hydra_urls_consent: + description: |- + Sets the OAuth2 Consent Endpoint URL of the OAuth2 User Login & Consent flow. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.consent" setting. type: string - error_description: + hydra_urls_error: + description: |- + Sets the OAuth2 Error URL of the OAuth2 User Login & Consent flow. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.error" setting. type: string - error_hint: + hydra_urls_login: + description: |- + Sets the OAuth2 Login Endpoint URL of the OAuth2 User Login & Consent flow. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.login" setting. type: string - status_code: - format: int64 - type: integer - title: RFC6749ErrorJson is a helper struct for JSON encoding/decoding of RFC6749Error. - type: object - RecoveryAddressType: - title: RecoveryAddressType must not exceed 16 characters as that is the limitation - in the SQL Schema. - type: string - SessionActivityDatapoint: - properties: - country: - description: Country of the events + hydra_urls_logout: + description: |- + Sets the logout endpoint. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.logout" setting. type: string - failed: - description: Number of events that failed in the given timeframe - format: int64 - type: integer - succeeded: - description: Number of events that succeeded in the given timeframe - format: int64 - type: integer - required: - - country - - failed - - succeeded - type: object - SourcePosition: - example: - Line: 0 - column: 6 - properties: - Line: - format: int64 - type: integer - column: - format: int64 - type: integer - type: object - String: - $ref: '#/components/schemas/NullString' - StringSliceJSONFormat: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - SubscriptionStatus: - description: |- - For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. + hydra_urls_post_logout_redirect: + description: |- + When an OAuth2-related user agent requests to log out, they will be redirected to this url afterwards per default. - A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. + Defaults to the Ory Account Experience in development and your application in production mode when a custom domain is connected. - If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). + This governs the "urls.post_logout_redirect" setting. + type: string + hydra_urls_registration: + description: |- + Sets the OAuth2 Registration Endpoint URL of the OAuth2 User Login & Consent flow. - If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. - title: "Possible values are `incomplete`, `incomplete_expired`, `trialing`,\ - \ `active`, `past_due`, `canceled`, or `unpaid`." - type: string - Time: - format: date-time - type: string - UUID: - format: uuid4 - type: string - Usage: - properties: - GenericUsage: - $ref: '#/components/schemas/GenericUsage' - type: object - VerifiableCredentialProof: - example: - proof_type: proof_type - jwt: jwt - properties: - jwt: + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.registration" setting. type: string - proof_type: + hydra_urls_self_issuer: + description: |- + This value will be used as the issuer in access and ID tokens. It must be specified and using HTTPS protocol, unless the development mode is enabled. + + On the Ory Network it will be very rare that you want to modify this value. If left empty, it will default to the correct value for the Ory Network. + + This governs the "urls.self.issuer" setting. type: string - title: VerifiableCredentialProof contains the proof of a verifiable credential. - type: object - Warning: - example: - code: 0 - message: message - properties: - code: - format: int64 - type: integer - message: + hydra_webfinger_jwks_broadcast_keys: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_webfinger_oidc_discovery_auth_url: + description: |- + Configures OpenID Connect Discovery and overwrites the OAuth2 Authorization URL. + + This governs the "webfinger.oidc.discovery.auth_url" setting. type: string - type: object - acceptOAuth2ConsentRequest: - properties: - grant_access_token_audience: + hydra_webfinger_oidc_discovery_client_registration_url: + description: |- + Configures OpenID Connect Discovery and overwrites the OpenID Connect Dynamic Client Registration Endpoint. + + This governs the "webfinger.oidc.discovery.client_registration_url" setting. + type: string + hydra_webfinger_oidc_discovery_jwks_url: + description: |- + Configures OpenID Connect Discovery and overwrites the JWKS URL. + + This governs the "webfinger.oidc.discovery.jwks_url" setting. + type: string + hydra_webfinger_oidc_discovery_supported_claims: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - grant_scope: + hydra_webfinger_oidc_discovery_supported_scope: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - handled_at: - format: date-time - title: NullTime implements sql.NullTime functionality. - type: string - remember: - description: |- - Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same - client asks the same user for the same, or a subset of, scope. - type: boolean - remember_for: - description: |- - RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the - authorization will be remembered indefinitely. - format: int64 - type: integer - session: - $ref: '#/components/schemas/acceptOAuth2ConsentRequestSession' - title: The request payload used to accept a consent request. - type: object - acceptOAuth2ConsentRequestSession: - example: - access_token: "" - id_token: "" - properties: - access_token: + hydra_webfinger_oidc_discovery_token_url: description: |- - AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the - refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. - If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties - can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! - id_token: + Configures OpenID Connect Discovery and overwrites the OAuth2 Token URL. + + This governs the "webfinger.oidc.discovery.token_url" setting. + type: string + hydra_webfinger_oidc_discovery_userinfo_url: description: |- - IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable - by anyone that has access to the ID Challenge. Use with care! - title: Pass session data to a consent request. - type: object - acceptOAuth2LoginRequest: - properties: - acr: + Configures OpenID Connect Discovery and overwrites userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra's userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself. + + This governs the "webfinger.oidc.discovery.userinfo_url" setting. + type: string + id: + description: The revision ID. + format: uuid + readOnly: true + type: string + keto_namespace_configuration: description: |- - ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it - to express that, for example, a user authenticated using two factor authentication. + The Revisions' Keto Namespace Configuration + + The string is a URL pointing to an OPL file with the configuration. type: string - amr: + keto_namespaces: items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." + $ref: '#/components/schemas/KetoNamespace' type: array - context: - title: "JSONRawMessage represents a json.RawMessage that works well with\ - \ JSON, SQL, and Swagger." - type: object - extend_session_lifespan: + kratos_cookies_same_site: description: |- - Extend OAuth2 authentication session lifespan - - If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. + Configures the Ory Kratos Cookie SameSite Attribute - This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. - type: boolean - force_subject_identifier: + This governs the "cookies.same_site" setting. + type: string + kratos_courier_channels: + items: + $ref: '#/components/schemas/NormalizedProjectRevisionCourierChannel' + type: array + kratos_courier_delivery_strategy: + default: smtp description: |- - ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the - (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID - Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. - - Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the - sub claim in the OAuth 2.0 Introspection. + The delivery strategy to use when sending emails - Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself - you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in - ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's - configuration). + `smtp`: Use SMTP server + `http`: Use the built in HTTP client to send the email to some remote service + type: string + kratos_courier_http_request_config_auth_api_key_in: + description: |- + The location of the API key to use in the HTTP email sending service's authentication - Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies - that you have to compute this value on every authentication process (probably depending on the client ID or some - other unique value). + `header`: Send the key value pair as a header + `cookie`: Send the key value pair as a cookie + This governs the "courier.http.auth.config.in" setting + type: string + kratos_courier_http_request_config_auth_api_key_name: + description: |- + The name of the API key to use in the HTTP email sending service's authentication - If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. + This governs the "courier.http.auth.config.name" setting type: string - identity_provider_session_id: + kratos_courier_http_request_config_auth_api_key_value: description: |- - IdentityProviderSessionID is the session ID of the end-user that authenticated. - If specified, we will use this value to propagate the logout. + The value of the API key to use in the HTTP email sending service's authentication + + This governs the "courier.http.auth.config.value" setting type: string - remember: + kratos_courier_http_request_config_auth_basic_auth_password: description: |- - Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store - a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she - will not be asked to log in again. - type: boolean - remember_for: + The password to use for basic auth in the HTTP email sending service's authentication + + This governs the "courier.http.auth.config.password" setting + type: string + kratos_courier_http_request_config_auth_basic_auth_user: description: |- - RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the - authorization will be remembered for the duration of the browser session (using a session cookie). - format: int64 - type: integer - subject: - description: Subject is the user ID of the end-user that authenticated. + The user to use for basic auth in the HTTP email sending service's authentication + + This governs the "courier.http.auth.config.user" setting type: string - required: - - subject - title: HandledLoginRequest is the request payload used to accept a login request. - type: object - activeProjectInConsole: - description: The Active Project ID - example: - project_id: project_id - properties: - project_id: + kratos_courier_http_request_config_auth_type: + default: empty (no authentication) description: |- - The Active Project ID + The authentication type to use while contacting the remote HTTP email sending service - format: uuid + `basic_auth`: Use Basic Authentication + `api_key`: Use API Key Authentication in a header or cookie type: string - type: object - authenticatorAssuranceLevel: - description: |- - The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder - for an attacker to compromise the account. + kratos_courier_http_request_config_body: + description: |- + The Jsonnet template to generate the body to send to the remote HTTP email sending service - Generally, "aal1" implies that one authentication factor was used while AAL2 implies that two factors (e.g. - password + TOTP) have been used. + Should be valid Jsonnet and base64 encoded - To learn more about these levels please head over to: https://www.ory.sh/kratos/docs/concepts/credentials - enum: - - aal0 - - aal1 - - aal2 - - aal3 - title: Authenticator Assurance Level (AAL) - type: string - batchPatchIdentitiesResponse: - description: Patch identities response - example: - identities: - - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - action: create - - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - action: create - properties: - identities: - description: The patch responses for the individual identities. - items: - $ref: '#/components/schemas/identityPatchResponse' - type: array - type: object - checkOplSyntaxBody: - description: Ory Permission Language Document - type: string - checkOplSyntaxResult: - example: - errors: - - start: - Line: 0 - column: 6 - end: - Line: 0 - column: 6 - message: message - - start: - Line: 0 - column: 6 - end: - Line: 0 - column: 6 - message: message - properties: - errors: - description: The list of syntax errors - items: - $ref: '#/components/schemas/ParseError' - type: array - title: CheckOPLSyntaxResponse represents the response for an OPL syntax check - request. - type: object - checkPermissionResult: - description: The content of the allowed field is mirrored in the HTTP status - code. - example: - allowed: true - properties: - allowed: - description: whether the relation tuple is allowed - type: boolean - required: - - allowed - title: Check Permission Result - type: object - cloudAccount: - properties: - email: - type: string - id: - format: uuid + This governs the "courier.http.body" setting type: string - name: + kratos_courier_http_request_config_headers: + description: "NullJSONRawMessage represents a json.RawMessage that works\ + \ well with JSON, SQL, and Swagger and is NULLable-" + nullable: true + type: object + kratos_courier_http_request_config_method: + default: POST + description: The http METHOD to use when calling the remote HTTP email sending + service type: string - type: object - consistencyRequestParameters: - description: Control API consistency guarantees - properties: - consistency: + kratos_courier_http_request_config_url: description: |- - Read Consistency Level (preview) - - The read consistency level determines the consistency guarantee for reads: - - strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. - eventual (very fast): The result will return data that is about 4.8 seconds old. - - The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with - `ory patch project --replace '/previews/default_read_consistency_level="strong"'`. - - Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency - controls to more APIs. Currently, the following APIs will be affected by this setting: + The URL of the remote HTTP email sending service - `GET /admin/identities` + This governs the "courier.http.url" setting + type: string + kratos_courier_smtp_connection_uri: + description: |- + Configures the Ory Kratos SMTP Connection URI - This feature is in preview and only available in Ory Network. - ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. - strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. - eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - enum: - - "" - - strong - - eventual + This governs the "courier.smtp.connection_uri" setting. type: string - x-go-enum-desc: |2- - ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. - strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. - eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - type: object - continueWith: - discriminator: - mapping: - set_ory_session_token: '#/components/schemas/continueWithSetOrySessionToken' - show_recovery_ui: '#/components/schemas/continueWithRecoveryUi' - show_settings_ui: '#/components/schemas/continueWithSettingsUi' - show_verification_ui: '#/components/schemas/continueWithVerificationUi' - propertyName: action - oneOf: - - $ref: '#/components/schemas/continueWithVerificationUi' - - $ref: '#/components/schemas/continueWithSetOrySessionToken' - - $ref: '#/components/schemas/continueWithSettingsUi' - - $ref: '#/components/schemas/continueWithRecoveryUi' - continueWithRecoveryUi: - description: "Indicates, that the UI flow could be continued by showing a recovery\ - \ ui" - properties: - action: + kratos_courier_smtp_from_address: description: |- - Action will always be `show_recovery_ui` - show_recovery_ui ContinueWithActionShowRecoveryUIString - enum: - - show_recovery_ui + Configures the Ory Kratos SMTP From Address + + This governs the "courier.smtp.from_address" setting. type: string - x-go-enum-desc: show_recovery_ui ContinueWithActionShowRecoveryUIString - flow: - $ref: '#/components/schemas/continueWithRecoveryUiFlow' - required: - - action - - flow - type: object - continueWithRecoveryUiFlow: - properties: - id: - description: The ID of the recovery flow - format: uuid + kratos_courier_smtp_from_name: + description: |- + Configures the Ory Kratos SMTP From Name + + This governs the "courier.smtp.from_name" setting. type: string - url: - description: The URL of the recovery flow + kratos_courier_smtp_headers: + description: "NullJSONRawMessage represents a json.RawMessage that works\ + \ well with JSON, SQL, and Swagger and is NULLable-" + nullable: true + type: object + kratos_courier_smtp_local_name: + description: |- + Configures the local_name to use in SMTP connections + + This governs the "courier.smtp.local_name" setting. type: string - required: - - id - type: object - continueWithSetOrySessionToken: - description: "Indicates that a session was issued, and the application should\ - \ use this token for authenticated requests" - properties: - action: + kratos_courier_templates_login_code_valid_email_body_html: description: |- - Action will always be `set_ory_session_token` - set_ory_session_token ContinueWithActionSetOrySessionTokenString - enum: - - set_ory_session_token + Configures the Ory Kratos Valid Login via Code Email Body HTML Template + + This governs the "courier.smtp.templates.login_code.valid.email.body.html" setting. type: string - x-go-enum-desc: set_ory_session_token ContinueWithActionSetOrySessionTokenString - ory_session_token: - description: Token is the token of the session + kratos_courier_templates_login_code_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.login_code.valid.email.body.plaintext" setting. type: string - required: - - action - - ory_session_token - type: object - continueWithSettingsUi: - description: "Indicates, that the UI flow could be continued by showing a settings\ - \ ui" - properties: - action: + kratos_courier_templates_login_code_valid_email_subject: description: |- - Action will always be `show_settings_ui` - show_settings_ui ContinueWithActionShowSettingsUIString - enum: - - show_settings_ui + Configures the Ory Kratos Valid Login via Code Email Subject Template + + This governs the "courier.smtp.templates.login_code.valid.email.subject" setting. type: string - x-go-enum-desc: show_settings_ui ContinueWithActionShowSettingsUIString - flow: - $ref: '#/components/schemas/continueWithSettingsUiFlow' - required: - - action - - flow - type: object - continueWithSettingsUiFlow: - properties: - id: - description: The ID of the settings flow - format: uuid + kratos_courier_templates_login_code_valid_sms_body_plaintext: + description: |- + Configures the Ory Kratos Valid Login via Code SMS plain text body + + This governs the "courier.smtp.templates.login_code.valid.sms.plaintext" setting. type: string - required: - - id - type: object - continueWithVerificationUi: - description: "Indicates, that the UI flow could be continued by showing a verification\ - \ ui" - properties: - action: + kratos_courier_templates_recovery_code_invalid_email_body_html: description: |- - Action will always be `show_verification_ui` - show_verification_ui ContinueWithActionShowVerificationUIString - enum: - - show_verification_ui + Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template + + This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. type: string - x-go-enum-desc: show_verification_ui ContinueWithActionShowVerificationUIString - flow: - $ref: '#/components/schemas/continueWithVerificationUiFlow' - required: - - action - - flow - type: object - continueWithVerificationUiFlow: - properties: - id: - description: The ID of the verification flow - format: uuid + kratos_courier_templates_recovery_code_invalid_email_body_plaintext: + description: |- + Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery_code.invalid.email.body.plaintext" setting. type: string - url: - description: The URL of the verification flow + kratos_courier_templates_recovery_code_invalid_email_subject: + description: |- + Configures the Ory Kratos Invalid Recovery via Code Email Subject Template + + This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. type: string - verifiable_address: - description: The address that should be verified in this flow + kratos_courier_templates_recovery_code_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Recovery via Code Email Body HTML Template + + This governs the "courier.smtp.templates.recovery_code.valid.email.body.html" setting. type: string - required: - - id - - verifiable_address - type: object - courierMessageStatus: - description: A Message's Status - enum: - - queued - - sent - - processing - - abandoned - type: string - courierMessageType: - description: It can either be `email` or `phone` - enum: - - email - - phone - title: A Message's Type - type: string - createCustomDomainBody: - description: Create Custom Hostname Request Body - properties: - cookie_domain: - description: The domain where cookies will be set. Has to be a parent domain - of the custom hostname to work. + kratos_courier_templates_recovery_code_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Recovery via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery_code.valid.email.body.plaintext" setting. type: string - cors_allowed_origins: - description: CORS Allowed origins for the custom hostname. - items: - type: string - type: array - cors_enabled: - description: CORS Enabled for the custom hostname. - type: boolean - custom_ui_base_url: - description: The base URL where the custom user interface will be exposed. + kratos_courier_templates_recovery_code_valid_email_subject: + description: |- + Configures the Ory Kratos Valid Recovery via Code Email Subject Template + + This governs the "courier.smtp.templates.recovery_code.valid.email.subject" setting. type: string - hostname: - description: The custom hostname where the API will be exposed. + kratos_courier_templates_recovery_invalid_email_body_html: + description: |- + Configures the Ory Kratos Invalid Recovery Email Body HTML Template + + This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. type: string - type: object - createEventStreamBody: - description: Create Event Stream Request Body - properties: - role_arn: - description: The AWS IAM role ARN to assume when publishing to the SNS topic. + kratos_courier_templates_recovery_invalid_email_body_plaintext: + description: |- + Configures the Ory Kratos Invalid Recovery Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery.invalid.email.body.plaintext" setting. type: string - topic_arn: - description: The AWS SNS topic ARN. + kratos_courier_templates_recovery_invalid_email_subject: + description: |- + Configures the Ory Kratos Invalid Recovery Email Subject Template + + This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. type: string - type: - description: "The type of the event stream (AWS SNS, GCP Pub/Sub, etc)." - enum: - - sns + kratos_courier_templates_recovery_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Recovery Email Body HTML Template + + This governs the "courier.smtp.templates.recovery.valid.email.body.html" setting. type: string - required: - - role_arn - - topic_arn - - type - type: object - createIdentityBody: - description: Create Identity Body - properties: - credentials: - $ref: '#/components/schemas/identityWithCredentials' - metadata_admin: - description: Store metadata about the user which is only accessible through - admin APIs such as `GET /admin/identities/`. - metadata_public: + kratos_courier_templates_recovery_valid_email_body_plaintext: description: |- - Store metadata about the identity which the identity itself can see when calling for example the - session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. - recovery_addresses: + Configures the Ory Kratos Valid Recovery Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery.valid.email.body.plaintext" setting. + type: string + kratos_courier_templates_recovery_valid_email_subject: description: |- - RecoveryAddresses contains all the addresses that can be used to recover an identity. + Configures the Ory Kratos Valid Recovery Email Subject Template - Use this structure to import recovery addresses for an identity. Please keep in mind - that the address needs to be represented in the Identity Schema or this field will be overwritten - on the next identity update. - items: - $ref: '#/components/schemas/recoveryIdentityAddress' - type: array - schema_id: - description: SchemaID is the ID of the JSON Schema to be used for validating - the identity's traits. + This governs the "courier.smtp.templates.recovery.valid.email.subject" setting. type: string - state: - $ref: '#/components/schemas/identityState' - traits: + kratos_courier_templates_registration_code_valid_email_body_html: description: |- - Traits represent an identity's traits. The identity is able to create, modify, and delete traits - in a self-service manner. The input will always be validated against the JSON Schema defined - in `schema_url`. - type: object - verifiable_addresses: + Configures the Ory Kratos Valid Registration via Code Email Body HTML Template + + This governs the "courier.smtp.templates.registration_code.valid.email.body.html" setting. + type: string + kratos_courier_templates_registration_code_valid_email_body_plaintext: description: |- - VerifiableAddresses contains all the addresses that can be verified by the user. + Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template - Use this structure to import verified addresses for an identity. Please keep in mind - that the address needs to be represented in the Identity Schema or this field will be overwritten - on the next identity update. - items: - $ref: '#/components/schemas/verifiableIdentityAddress' - type: array - required: - - schema_id - - traits - type: object - createJsonWebKeySet: - description: Create JSON Web Key Set Request Body - properties: - alg: + This governs the "courier.smtp.templates.registration_code.valid.email.body.plaintext" setting. + type: string + kratos_courier_templates_registration_code_valid_email_subject: description: |- - JSON Web Key Algorithm + Configures the Ory Kratos Valid Registration via Code Email Subject Template - The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. + This governs the "courier.smtp.templates.registration_code.valid.email.subject" setting. type: string - kid: + kratos_courier_templates_verification_code_invalid_email_body_html: description: |- - JSON Web Key ID + Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template - The Key ID of the key to be created. + This governs the "courier.smtp.templates.verification_code.invalid.email.body.html" setting. type: string - use: + kratos_courier_templates_verification_code_invalid_email_body_plaintext: description: |- - JSON Web Key Use + Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template - The "use" (public key use) parameter identifies the intended use of - the public key. The "use" parameter is employed to indicate whether - a public key is used for encrypting data or verifying the signature - on data. Valid values are "enc" and "sig". - type: string - required: - - alg - - kid - - use - type: object - createMemberInviteResponse: - $ref: '#/components/schemas/CreateInviteResponse' - createProjectBody: - description: Create Project Request Body - properties: - name: - description: The name of the project to be created + This governs the "courier.smtp.templates.verification_code.invalid.email.body.plaintext" setting. type: string - workspace_id: - format: uuid4 - nullable: true + kratos_courier_templates_verification_code_invalid_email_subject: + description: |- + Configures the Ory Kratos Invalid Verification via Code Email Subject Template + + This governs the "courier.smtp.templates.verification_code.invalid.email.subject" setting. type: string - required: - - name - type: object - createProjectBranding: - description: Create a Project Branding - properties: - favicon_type: + kratos_courier_templates_verification_code_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Verification via Code Email Body HTML Template + + This governs the "courier.smtp.templates.verification_code.valid.email.body.html" setting. type: string - favicon_url: + kratos_courier_templates_verification_code_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Verification via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.verification_code.valid.email.body.plaintext" setting. type: string - logo_type: + kratos_courier_templates_verification_code_valid_email_subject: + description: |- + Configures the Ory Kratos Valid Verification via Code Email Subject Template + + This governs the "courier.smtp.templates.verification_code.valid.email.subject" setting. type: string - logo_url: + kratos_courier_templates_verification_code_valid_sms_body_plaintext: + description: |- + Configures the Ory Kratos Valid Verification via Code SMS Body Plaintext + + This governs the "courier.smtp.templates.verification_code.valid.sms.body.plaintext" setting. type: string - name: + kratos_courier_templates_verification_invalid_email_body_html: + description: |- + Configures the Ory Kratos Invalid Verification Email Body HTML Template + + This governs the "courier.smtp.templates.verification.invalid.email.body.html" setting. type: string - theme: - $ref: '#/components/schemas/projectBrandingColors' - type: object - createProjectNormalizedPayload: - description: Create project (normalized) request payload - properties: - created_at: - description: The Project's Revision Creation Date - format: date-time - readOnly: true + kratos_courier_templates_verification_invalid_email_body_plaintext: + description: |- + Configures the Ory Kratos Invalid Verification Email Body Plaintext Template + + This governs the "courier.smtp.templates.verification.invalid.email.body.plaintext" setting. type: string - disable_account_experience_welcome_screen: - description: "Whether to disable the account experience welcome screen,\ - \ which is hosted under `/ui/welcome`." - type: boolean - hydra_oauth2_allowed_top_level_claims: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_oauth2_client_credentials_default_grant_allowed_scope: + kratos_courier_templates_verification_invalid_email_subject: description: |- - Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. + Configures the Ory Kratos Invalid Verification Email Subject Template - Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full - scope is automatically granted when performing the OAuth2 Client Credentials flow. + This governs the "courier.smtp.templates.verification.invalid.email.subject" setting. + type: string + kratos_courier_templates_verification_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Verification Email Body HTML Template - If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. + This governs the "courier.smtp.templates.verification.valid.email.body.html" setting. + type: string + kratos_courier_templates_verification_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Verification Email Body Plaintext Template - Setting this option to true is common if you need compatibility with MITREid. + This governs the "courier.smtp.templates.verification.valid.email.body.plaintext" setting. + type: string + kratos_courier_templates_verification_valid_email_subject: + description: |- + Configures the Ory Kratos Valid Verification Email Subject Template - This governs the "oauth2.client_credentials.default_grant_allowed_scope" setting. - type: boolean - hydra_oauth2_exclude_not_before_claim: + This governs the "courier.smtp.templates.verification.valid.email.subject" setting. + type: string + kratos_feature_flags_cacheable_sessions: description: |- - Set to true if you want to exclude claim `nbf (not before)` part of access token. + Configures the Ory Kratos Session caching feature flag - This governs the "oauth2.exclude_not_before_claim" setting. + This governs the "feature_flags.cacheable_sessions" setting. type: boolean - hydra_oauth2_grant_jwt_iat_optional: + kratos_feature_flags_use_continue_with_transitions: description: |- - Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - - If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. + Configures the Ory Kratos Session use_continue_with_transitions flag - This governs the "oauth2.grant.jwt.iat_optional" setting. + This governs the "feature_flags.use_continue_with_transitions" setting. type: boolean - hydra_oauth2_grant_jwt_jti_optional: + kratos_identity_schemas: + items: + $ref: '#/components/schemas/normalizedProjectRevisionIdentitySchema' + type: array + kratos_oauth2_provider_headers: + description: "NullJSONRawMessage represents a json.RawMessage that works\ + \ well with JSON, SQL, and Swagger and is NULLable-" + nullable: true + type: object + kratos_oauth2_provider_override_return_to: description: |- - Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - - If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. + Kratos OAuth2 Provider Override Return To - This governs the "oauth2.grant.jwt.jti_optional" setting. + Enabling this allows Kratos to set the return_to parameter automatically to the OAuth2 request URL on the login flow, allowing complex flows such as recovery to continue to the initial OAuth2 flow. type: boolean - hydra_oauth2_grant_jwt_max_ttl: - default: 720h + kratos_oauth2_provider_url: description: |- - Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. - - This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. - - Useful as a safety measure and recommended to keep below 720h. + The Revisions' OAuth2 Provider Integration URL - This governs the "oauth2.grant.jwt.max_ttl" setting. - example: 30m - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "oauth2_provider.url" setting. type: string - hydra_oauth2_pkce_enforced: + kratos_preview_default_read_consistency_level: description: |- - Configures whether PKCE should be enforced for all OAuth2 Clients. + Configures the default read consistency level for identity APIs - This governs the "oauth2.pkce.enforced" setting. - type: boolean - hydra_oauth2_pkce_enforced_for_public_clients: - description: |- - Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). + This governs the `preview.default_read_consistency_level` setting. - This governs the "oauth2.pkce.enforced_for_public_clients" setting. - type: boolean - hydra_oauth2_refresh_token_hook: - description: |- - Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. + The read consistency level determines the consistency guarantee for reads: - This governs the "oauth2.refresh_token_hook" setting. - type: string - hydra_oauth2_token_hook: - description: |- - Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims. + strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. + eventual (very fast): The result will return data that is about 4.8 seconds old. - This governs the "oauth2.token_hook.url" setting. + Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency + controls to more APIs. Currently, the following APIs will be affected by this setting: + + `GET /admin/identities` + + Defaults to "strong" for new and existing projects. This feature is in preview. Use with caution. type: string - hydra_oidc_dynamic_client_registration_default_scope: + kratos_secrets_cipher: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_oidc_dynamic_client_registration_enabled: - description: |- - Configures OpenID Connect Dynamic Client Registration. - - This governs the "oidc.dynamic_client_registration.enabled" setting. - type: boolean - hydra_oidc_subject_identifiers_pairwise_salt: - description: |- - Configures OpenID Connect Discovery and overwrites the pairwise algorithm - - This governs the "oidc.subject_identifiers.pairwise_salt" setting. - type: string - hydra_oidc_subject_identifiers_supported_types: + kratos_secrets_cookie: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_secrets_cookie: + kratos_secrets_default: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_secrets_system: + kratos_selfservice_allowed_return_urls: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_serve_cookies_same_site_legacy_workaround: + kratos_selfservice_default_browser_return_url: description: |- - Configures the Ory Hydra Cookie Same Site Legacy Workaround + Configures the Ory Kratos Default Return URL - This governs the "serve.cookies.same_site_legacy_workaround" setting. - type: boolean - hydra_serve_cookies_same_site_mode: + This governs the "selfservice.allowed_return_urls" setting. + type: string + kratos_selfservice_flows_error_ui_url: description: |- - Configures the Ory Hydra Cookie Same Site Mode + Configures the Ory Kratos Error UI URL + + This governs the "selfservice.flows.error.ui_url" setting. + type: string + kratos_selfservice_flows_login_after_code_default_browser_return_url: + description: |- + Configures the Ory Kratos Login After Password Default Return URL + + This governs the "selfservice.flows.code.after.password.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_login_after_default_browser_return_url: + description: |- + Configures the Ory Kratos Login Default Return URL + + This governs the "selfservice.flows.login.after.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url: + description: |- + Configures the Ory Kratos Login After Password Default Return URL + + This governs the "selfservice.flows.lookup_secret.after.password.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_login_after_oidc_default_browser_return_url: + description: |- + Configures the Ory Kratos Login After OIDC Default Return URL - This governs the "serve.cookies.same_site_mode" setting. + This governs the "selfservice.flows.login.after.oidc.default_browser_return_url" setting. type: string - hydra_strategies_access_token: - default: opaque + kratos_selfservice_flows_login_after_password_default_browser_return_url: description: |- - Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens + Configures the Ory Kratos Login After Password Default Return URL - This governs the "strategies.access_token" setting. - opaque Oauth2AccessTokenStrategyOpaque - jwt Oauth2AccessTokenStrategyJwt - enum: - - opaque - - jwt + This governs the "selfservice.flows.login.after.password.default_browser_return_url" setting. type: string - x-go-enum-desc: |- - opaque Oauth2AccessTokenStrategyOpaque - jwt Oauth2AccessTokenStrategyJwt - hydra_strategies_scope: - default: wildcard + kratos_selfservice_flows_login_after_totp_default_browser_return_url: description: |- - Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes + Configures the Ory Kratos Login After Password Default Return URL - This governs the "strategies.scope" setting. - exact Oauth2ScopeStrategyExact - wildcard Oauth2ScopeStrategyWildcard - enum: - - exact - - wildcard - type: string - x-go-enum-desc: |- - exact Oauth2ScopeStrategyExact - wildcard Oauth2ScopeStrategyWildcard - hydra_ttl_access_token: - default: 30m - description: This governs the "ttl.access_token" setting. - example: 1h - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "selfservice.flows.totp.after.password.default_browser_return_url" setting. type: string - hydra_ttl_auth_code: - default: 720h + kratos_selfservice_flows_login_after_webauthn_default_browser_return_url: description: |- - Configures how long refresh tokens are valid. - - Set to -1 for refresh tokens to never expire. This is not recommended! + Configures the Ory Kratos Login After WebAuthn Default Return URL - This governs the "ttl.auth_code" setting. - example: 30m - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "selfservice.flows.login.after.webauthn.default_browser_return_url" setting. type: string - hydra_ttl_id_token: - default: 30m - description: This governs the "ttl.id_token" setting. - example: 1h - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + kratos_selfservice_flows_login_lifespan: + description: |- + Configures the Ory Kratos Login Lifespan + + This governs the "selfservice.flows.login.lifespan" setting. type: string - hydra_ttl_login_consent_request: - default: 30m + kratos_selfservice_flows_login_ui_url: description: |- - Configures how long a user login and consent flow may take. + Configures the Ory Kratos Login UI URL - This governs the "ttl.login_consent_request" setting. - example: 1h - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "selfservice.flows.login.ui_url" setting. type: string - hydra_ttl_refresh_token: - default: 720h + kratos_selfservice_flows_logout_after_default_browser_return_url: description: |- - Configures how long refresh tokens are valid. + Configures the Ory Kratos Logout Default Return URL - Set to -1 for refresh tokens to never expire. This is not recommended! + This governs the "selfservice.flows.logout.after.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_recovery_after_default_browser_return_url: + description: |- + Configures the Ory Kratos Recovery Default Return URL - This governs the "ttl.refresh_token" setting. - example: 30m - pattern: "^([0-9]+(ns|us|ms|s|m|h)|-1)$" + This governs the "selfservice.flows.recovery.after.default_browser_return_url" setting. type: string - hydra_urls_consent: + kratos_selfservice_flows_recovery_enabled: description: |- - Sets the OAuth2 Consent Endpoint URL of the OAuth2 User Login & Consent flow. + Configures the Ory Kratos Recovery Enabled Setting - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.recovery.enabled" setting. + type: boolean + kratos_selfservice_flows_recovery_lifespan: + description: |- + Configures the Ory Kratos Recovery Lifespan - This governs the "urls.consent" setting. + This governs the "selfservice.flows.recovery.lifespan" setting. type: string - hydra_urls_error: + kratos_selfservice_flows_recovery_notify_unknown_recipients: description: |- - Sets the OAuth2 Error URL of the OAuth2 User Login & Consent flow. + Configures whether to notify unknown recipients of a Ory Kratos recovery flow - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.recovery.notify_unknown_recipients" setting. + type: boolean + kratos_selfservice_flows_recovery_ui_url: + description: |- + Configures the Ory Kratos Recovery UI URL - This governs the "urls.error" setting. + This governs the "selfservice.flows.recovery.ui_url" setting. type: string - hydra_urls_login: + kratos_selfservice_flows_recovery_use: description: |- - Sets the OAuth2 Login Endpoint URL of the OAuth2 User Login & Consent flow. + Configures the Ory Kratos Recovery strategy to use ("link" or "code") - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.recovery.use" setting. + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + enum: + - link + - code + type: string + x-go-enum-desc: |- + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + kratos_selfservice_flows_registration_after_code_default_browser_return_url: + description: |- + Configures the Ory Kratos Registration After Code Default Return URL - This governs the "urls.login" setting. + This governs the "selfservice.flows.registration.after.code.default_browser_return_url" setting. type: string - hydra_urls_logout: + kratos_selfservice_flows_registration_after_default_browser_return_url: description: |- - Sets the logout endpoint. + Configures the Ory Kratos Registration Default Return URL - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.registration.after.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_registration_after_oidc_default_browser_return_url: + description: |- + Configures the Ory Kratos Registration After OIDC Default Return URL - This governs the "urls.logout" setting. + This governs the "selfservice.flows.registration.after.oidc.default_browser_return_url" setting. type: string - hydra_urls_post_logout_redirect: + kratos_selfservice_flows_registration_after_password_default_browser_return_url: description: |- - When an OAuth2-related user agent requests to log out, they will be redirected to this url afterwards per default. + Configures the Ory Kratos Registration After Password Default Return URL - Defaults to the Ory Account Experience in development and your application in production mode when a custom domain is connected. + This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url: + description: |- + Configures the Ory Kratos Registration After Password Default Return URL - This governs the "urls.post_logout_redirect" setting. + This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. type: string - hydra_urls_registration: + kratos_selfservice_flows_registration_enabled: description: |- - Sets the OAuth2 Registration Endpoint URL of the OAuth2 User Login & Consent flow. + Configures the Whether Ory Kratos Registration is Enabled - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.registration.enabled" setting.0 + type: boolean + kratos_selfservice_flows_registration_lifespan: + description: |- + Configures the Ory Kratos Registration Lifespan - This governs the "urls.registration" setting. + This governs the "selfservice.flows.registration.lifespan" setting. type: string - hydra_urls_self_issuer: + kratos_selfservice_flows_registration_login_hints: description: |- - This value will be used as the issuer in access and ID tokens. It must be specified and using HTTPS protocol, unless the development mode is enabled. + Configures the Ory Kratos Registration Login Hints - On the Ory Network it will be very rare that you want to modify this value. If left empty, it will default to the correct value for the Ory Network. + Shows helpful information when a user tries to sign up with a duplicate account. - This governs the "urls.self.issuer" setting. - type: string - hydra_webfinger_jwks_broadcast_keys: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_webfinger_oidc_discovery_auth_url: + This governs the "selfservice.flows.registration.login_hints" setting. + type: boolean + kratos_selfservice_flows_registration_ui_url: description: |- - Configures OpenID Connect Discovery and overwrites the OAuth2 Authorization URL. + Configures the Ory Kratos Registration UI URL - This governs the "webfinger.oidc.discovery.auth_url" setting. + This governs the "selfservice.flows.registration.ui_url" setting. type: string - hydra_webfinger_oidc_discovery_client_registration_url: + kratos_selfservice_flows_settings_after_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites the OpenID Connect Dynamic Client Registration Endpoint. + Configures the Ory Kratos Settings Default Return URL - This governs the "webfinger.oidc.discovery.client_registration_url" setting. + This governs the "selfservice.flows.settings.after.default_browser_return_url" setting. type: string - hydra_webfinger_oidc_discovery_jwks_url: + kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites the JWKS URL. + Configures the Ory Kratos Settings Default Return URL After Updating Lookup Secrets - This governs the "webfinger.oidc.discovery.jwks_url" setting. + This governs the "selfservice.flows.settings.after.lookup_secret.default_browser_return_url" setting. type: string - hydra_webfinger_oidc_discovery_supported_claims: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_webfinger_oidc_discovery_supported_scope: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_webfinger_oidc_discovery_token_url: + kratos_selfservice_flows_settings_after_oidc_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites the OAuth2 Token URL. + Configures the Ory Kratos Settings Default Return URL After Updating Social Sign In - This governs the "webfinger.oidc.discovery.token_url" setting. + This governs the "selfservice.flows.settings.after.oidc.default_browser_return_url" setting. type: string - hydra_webfinger_oidc_discovery_userinfo_url: + kratos_selfservice_flows_settings_after_password_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra's userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself. + Configures the Ory Kratos Settings Default Return URL After Updating Passwords - This governs the "webfinger.oidc.discovery.userinfo_url" setting. + This governs the "selfservice.flows.settings.after.password.default_browser_return_url" setting. type: string - id: - description: The revision ID. - format: uuid - readOnly: true + kratos_selfservice_flows_settings_after_profile_default_browser_return_url: + description: |- + Configures the Ory Kratos Settings Default Return URL After Updating Profiles + + This governs the "selfservice.flows.settings.after.profile.default_browser_return_url" setting. type: string - keto_namespace_configuration: + kratos_selfservice_flows_settings_after_totp_default_browser_return_url: description: |- - The Revisions' Keto Namespace Configuration + Configures the Ory Kratos Settings Default Return URL After Updating TOTP - The string is a URL pointing to an OPL file with the configuration. + This governs the "selfservice.flows.settings.after.totp.default_browser_return_url" setting. type: string - keto_namespaces: - items: - $ref: '#/components/schemas/KetoNamespace' - type: array - kratos_cookies_same_site: + kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url: description: |- - Configures the Ory Kratos Cookie SameSite Attribute + Configures the Ory Kratos Settings Default Return URL After Updating WebAuthn - This governs the "cookies.same_site" setting. + This governs the "selfservice.flows.settings.webauthn.profile.default_browser_return_url" setting. type: string - kratos_courier_channels: - items: - $ref: '#/components/schemas/NormalizedProjectRevisionCourierChannel' - type: array - kratos_courier_delivery_strategy: - default: smtp + kratos_selfservice_flows_settings_lifespan: description: |- - The delivery strategy to use when sending emails + Configures the Ory Kratos Settings Lifespan - `smtp`: Use SMTP server - `http`: Use the built in HTTP client to send the email to some remote service + This governs the "selfservice.flows.settings.lifespan" setting. type: string - kratos_courier_http_request_config_auth_api_key_in: + kratos_selfservice_flows_settings_privileged_session_max_age: description: |- - The location of the API key to use in the HTTP email sending service's authentication + Configures the Ory Kratos Settings Privileged Session Max Age - `header`: Send the key value pair as a header - `cookie`: Send the key value pair as a cookie - This governs the "courier.http.auth.config.in" setting + This governs the "selfservice.flows.settings.privileged_session_max_age" setting. type: string - kratos_courier_http_request_config_auth_api_key_name: + kratos_selfservice_flows_settings_required_aal: description: |- - The name of the API key to use in the HTTP email sending service's authentication + Configures the Ory Kratos Settings Required AAL - This governs the "courier.http.auth.config.name" setting + This governs the "selfservice.flows.settings.required_aal" setting. type: string - kratos_courier_http_request_config_auth_api_key_value: + kratos_selfservice_flows_settings_ui_url: description: |- - The value of the API key to use in the HTTP email sending service's authentication + Configures the Ory Kratos Settings UI URL - This governs the "courier.http.auth.config.value" setting + This governs the "selfservice.flows.settings.ui_url" setting. type: string - kratos_courier_http_request_config_auth_basic_auth_password: + kratos_selfservice_flows_verification_after_default_browser_return_url: description: |- - The password to use for basic auth in the HTTP email sending service's authentication + Configures the Ory Kratos Verification Default Return URL - This governs the "courier.http.auth.config.password" setting + This governs the "selfservice.flows.verification.after.default_browser_return_url" setting. type: string - kratos_courier_http_request_config_auth_basic_auth_user: + kratos_selfservice_flows_verification_enabled: description: |- - The user to use for basic auth in the HTTP email sending service's authentication + Configures the Ory Kratos Verification Enabled Setting - This governs the "courier.http.auth.config.user" setting - type: string - kratos_courier_http_request_config_auth_type: - default: empty (no authentication) + This governs the "selfservice.flows.verification.enabled" setting. + type: boolean + kratos_selfservice_flows_verification_lifespan: description: |- - The authentication type to use while contacting the remote HTTP email sending service + Configures the Ory Kratos Verification Lifespan - `basic_auth`: Use Basic Authentication - `api_key`: Use API Key Authentication in a header or cookie + This governs the "selfservice.flows.verification.lifespan" setting. type: string - kratos_courier_http_request_config_body: + kratos_selfservice_flows_verification_notify_unknown_recipients: description: |- - The Jsonnet template to generate the body to send to the remote HTTP email sending service + Configures whether to notify unknown recipients of a Ory Kratos verification flow - Should be valid Jsonnet and base64 encoded + This governs the "selfservice.flows.verification.notify_unknown_recipients" setting. + type: boolean + kratos_selfservice_flows_verification_ui_url: + description: |- + Configures the Ory Kratos Verification UI URL - This governs the "courier.http.body" setting - type: string - kratos_courier_http_request_config_headers: - description: "NullJSONRawMessage represents a json.RawMessage that works\ - \ well with JSON, SQL, and Swagger and is NULLable-" - nullable: true - type: object - kratos_courier_http_request_config_method: - default: POST - description: The http METHOD to use when calling the remote HTTP email sending - service + This governs the "selfservice.flows.verification.ui_url" setting. type: string - kratos_courier_http_request_config_url: + kratos_selfservice_flows_verification_use: description: |- - The URL of the remote HTTP email sending service + Configures the Ory Kratos Strategy to use for Verification - This governs the "courier.http.url" setting + This governs the "selfservice.flows.verification.use" setting. + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + enum: + - link + - code type: string - kratos_courier_smtp_connection_uri: + x-go-enum-desc: |- + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + kratos_selfservice_methods_code_config_lifespan: description: |- - Configures the Ory Kratos SMTP Connection URI + Configures the Ory Kratos Code Method's lifespan - This governs the "courier.smtp.connection_uri" setting. + This governs the "selfservice.methods.code.config.lifespan" setting. type: string - kratos_courier_smtp_from_address: + kratos_selfservice_methods_code_enabled: description: |- - Configures the Ory Kratos SMTP From Address + Configures whether Ory Kratos Code Method is enabled - This governs the "courier.smtp.from_address" setting. - type: string - kratos_courier_smtp_from_name: + This governs the "selfservice.methods.code.enabled" setting. + type: boolean + kratos_selfservice_methods_code_mfa_enabled: description: |- - Configures the Ory Kratos SMTP From Name + Configues whether the code method can be used to fulfil MFA flows - This governs the "courier.smtp.from_name" setting. - type: string - kratos_courier_smtp_headers: - description: "NullJSONRawMessage represents a json.RawMessage that works\ - \ well with JSON, SQL, and Swagger and is NULLable-" - nullable: true - type: object - kratos_courier_smtp_local_name: + This governs the "selfservice.methods.code.mfa_enabled" setting. + type: boolean + kratos_selfservice_methods_code_passwordless_enabled: description: |- - Configures the local_name to use in SMTP connections + Configues whether Ory Kratos Passwordless should use the Code Method - This governs the "courier.smtp.local_name" setting. - type: string - kratos_courier_templates_login_code_valid_email_body_html: + This governs the "selfservice.methods.code.passwordless_enabled" setting. + type: boolean + kratos_selfservice_methods_link_config_base_url: description: |- - Configures the Ory Kratos Valid Login via Code Email Body HTML Template + Configures the Base URL which Recovery, Verification, and Login Links Point to - This governs the "courier.smtp.templates.login_code.valid.email.body.html" setting. + It is recommended to leave this value empty. It will be appropriately configured to the best matching domain + (e.g. when using custom domains) automatically. + + This governs the "selfservice.methods.link.config.base_url" setting. type: string - kratos_courier_templates_login_code_valid_email_body_plaintext: + kratos_selfservice_methods_link_config_lifespan: description: |- - Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template + Configures the Ory Kratos Link Method's lifespan - This governs the "courier.smtp.templates.login_code.valid.email.body.plaintext" setting. + This governs the "selfservice.methods.link.config.lifespan" setting. type: string - kratos_courier_templates_login_code_valid_email_subject: + kratos_selfservice_methods_link_enabled: description: |- - Configures the Ory Kratos Valid Login via Code Email Subject Template + Configures whether Ory Kratos Link Method is enabled - This governs the "courier.smtp.templates.login_code.valid.email.subject" setting. - type: string - kratos_courier_templates_recovery_code_invalid_email_body_html: + This governs the "selfservice.methods.link.enabled" setting. + type: boolean + kratos_selfservice_methods_lookup_secret_enabled: description: |- - Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template + Configures whether Ory Kratos TOTP Lookup Secret is enabled - This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_code_invalid_email_body_plaintext: + This governs the "selfservice.methods.lookup_secret.enabled" setting. + type: boolean + kratos_selfservice_methods_oidc_config_base_redirect_uri: description: |- - Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template + Configures the Ory Kratos Third Party / OpenID Connect base redirect URI - This governs the "courier.smtp.templates.recovery_code.invalid.email.body.plaintext" setting. + This governs the "selfservice.methods.oidc.config.base_redirect_uri" setting. type: string - kratos_courier_templates_recovery_code_invalid_email_subject: + kratos_selfservice_methods_oidc_config_providers: + items: + $ref: '#/components/schemas/normalizedProjectRevisionThirdPartyProvider' + type: array + kratos_selfservice_methods_oidc_enabled: description: |- - Configures the Ory Kratos Invalid Recovery via Code Email Subject Template + Configures whether Ory Kratos Third Party / OpenID Connect Login is enabled - This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_code_valid_email_body_html: + This governs the "selfservice.methods.oidc.enabled" setting. + type: boolean + kratos_selfservice_methods_password_config_haveibeenpwned_enabled: description: |- - Configures the Ory Kratos Valid Recovery via Code Email Body HTML Template + Configures whether Ory Kratos Password HIBP Checks is enabled - This governs the "courier.smtp.templates.recovery_code.valid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_code_valid_email_body_plaintext: + This governs the "selfservice.methods.password.config.haveibeenpwned_enabled" setting. + type: boolean + kratos_selfservice_methods_password_config_identifier_similarity_check_enabled: description: |- - Configures the Ory Kratos Valid Recovery via Code Email Body Plaintext Template + Configures whether Ory Kratos Password should disable the similarity policy. - This governs the "courier.smtp.templates.recovery_code.valid.email.body.plaintext" setting. - type: string - kratos_courier_templates_recovery_code_valid_email_subject: + This governs the "selfservice.methods.password.config.identifier_similarity_check_enabled" setting. + type: boolean + kratos_selfservice_methods_password_config_ignore_network_errors: description: |- - Configures the Ory Kratos Valid Recovery via Code Email Subject Template + Configures whether Ory Kratos Password Should ignore HIBPWND Network Errors - This governs the "courier.smtp.templates.recovery_code.valid.email.subject" setting. - type: string - kratos_courier_templates_recovery_invalid_email_body_html: + This governs the "selfservice.methods.password.config.ignore_network_errors" setting. + type: boolean + kratos_selfservice_methods_password_config_max_breaches: description: |- - Configures the Ory Kratos Invalid Recovery Email Body HTML Template + Configures Ory Kratos Password Max Breaches Detection - This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_invalid_email_body_plaintext: + This governs the "selfservice.methods.password.config.max_breaches" setting. + format: int64 + type: integer + kratos_selfservice_methods_password_config_min_password_length: description: |- - Configures the Ory Kratos Invalid Recovery Email Body Plaintext Template + Configures the minimum length of passwords. - This governs the "courier.smtp.templates.recovery.invalid.email.body.plaintext" setting. - type: string - kratos_courier_templates_recovery_invalid_email_subject: + This governs the "selfservice.methods.password.config.min_password_length" setting. + format: int64 + type: integer + kratos_selfservice_methods_password_enabled: description: |- - Configures the Ory Kratos Invalid Recovery Email Subject Template + Configures whether Ory Kratos Password Method is enabled - This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_valid_email_body_html: + This governs the "selfservice.methods.password.enabled" setting. + type: boolean + kratos_selfservice_methods_profile_enabled: description: |- - Configures the Ory Kratos Valid Recovery Email Body HTML Template + Configures whether Ory Kratos Profile Method is enabled - This governs the "courier.smtp.templates.recovery.valid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_valid_email_body_plaintext: + This governs the "selfservice.methods.profile.enabled" setting. + type: boolean + kratos_selfservice_methods_totp_config_issuer: description: |- - Configures the Ory Kratos Valid Recovery Email Body Plaintext Template + Configures Ory Kratos TOTP Issuer - This governs the "courier.smtp.templates.recovery.valid.email.body.plaintext" setting. + This governs the "selfservice.methods.totp.config.issuer" setting. type: string - kratos_courier_templates_recovery_valid_email_subject: + kratos_selfservice_methods_totp_enabled: description: |- - Configures the Ory Kratos Valid Recovery Email Subject Template + Configures whether Ory Kratos TOTP Method is enabled - This governs the "courier.smtp.templates.recovery.valid.email.subject" setting. - type: string - kratos_courier_templates_registration_code_valid_email_body_html: + This governs the "selfservice.methods.totp.enabled" setting. + type: boolean + kratos_selfservice_methods_webauthn_config_passwordless: description: |- - Configures the Ory Kratos Valid Registration via Code Email Body HTML Template + Configures whether Ory Kratos Webauthn is used for passwordless flows - This governs the "courier.smtp.templates.registration_code.valid.email.body.html" setting. + This governs the "selfservice.methods.webauthn.config.passwordless" setting. + type: boolean + kratos_selfservice_methods_webauthn_config_rp_display_name: + description: |- + Configures the Ory Kratos Webauthn RP Display Name + + This governs the "selfservice.methods.webauthn.config.rp.display_name" setting. type: string - kratos_courier_templates_registration_code_valid_email_body_plaintext: + kratos_selfservice_methods_webauthn_config_rp_icon: description: |- - Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template + Configures the Ory Kratos Webauthn RP Icon - This governs the "courier.smtp.templates.registration_code.valid.email.body.plaintext" setting. + This governs the "selfservice.methods.webauthn.config.rp.icon" setting. + Deprecated: This value will be ignored due to security considerations. type: string - kratos_courier_templates_registration_code_valid_email_subject: + kratos_selfservice_methods_webauthn_config_rp_id: description: |- - Configures the Ory Kratos Valid Registration via Code Email Subject Template + Configures the Ory Kratos Webauthn RP ID - This governs the "courier.smtp.templates.registration_code.valid.email.subject" setting. + This governs the "selfservice.methods.webauthn.config.rp.id" setting. type: string - kratos_courier_templates_verification_code_invalid_email_body_html: + kratos_selfservice_methods_webauthn_config_rp_origins: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + kratos_selfservice_methods_webauthn_enabled: description: |- - Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template + Configures whether Ory Kratos Webauthn is enabled - This governs the "courier.smtp.templates.verification_code.invalid.email.body.html" setting. - type: string - kratos_courier_templates_verification_code_invalid_email_body_plaintext: + This governs the "selfservice.methods.webauthn.enabled" setting. + type: boolean + kratos_session_cookie_persistent: description: |- - Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template + Configures the Ory Kratos Session Cookie Persistent Attribute - This governs the "courier.smtp.templates.verification_code.invalid.email.body.plaintext" setting. - type: string - kratos_courier_templates_verification_code_invalid_email_subject: + This governs the "session.cookie.persistent" setting. + type: boolean + kratos_session_cookie_same_site: description: |- - Configures the Ory Kratos Invalid Verification via Code Email Subject Template + Configures the Ory Kratos Session Cookie SameSite Attribute - This governs the "courier.smtp.templates.verification_code.invalid.email.subject" setting. + This governs the "session.cookie.same_site" setting. type: string - kratos_courier_templates_verification_code_valid_email_body_html: + kratos_session_lifespan: description: |- - Configures the Ory Kratos Valid Verification via Code Email Body HTML Template + Configures the Ory Kratos Session Lifespan - This governs the "courier.smtp.templates.verification_code.valid.email.body.html" setting. + This governs the "session.lifespan" setting. type: string - kratos_courier_templates_verification_code_valid_email_body_plaintext: + kratos_session_whoami_required_aal: description: |- - Configures the Ory Kratos Valid Verification via Code Email Body Plaintext Template + Configures the Ory Kratos Session Whoami AAL requirement - This governs the "courier.smtp.templates.verification_code.valid.email.body.plaintext" setting. + This governs the "session.whoami.required_aal" setting. type: string - kratos_courier_templates_verification_code_valid_email_subject: + kratos_session_whoami_tokenizer_templates: + items: + $ref: '#/components/schemas/normalizedProjectRevisionTokenizerTemplate' + type: array + name: + description: The project's name. + type: string + project_id: + description: The Revision's Project ID + format: uuid + type: string + project_revision_hooks: + items: + $ref: '#/components/schemas/normalizedProjectRevisionHook' + type: array + serve_admin_cors_allowed_origins: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + serve_admin_cors_enabled: description: |- - Configures the Ory Kratos Valid Verification via Code Email Subject Template + Enable CORS headers on all admin APIs - This governs the "courier.smtp.templates.verification_code.valid.email.subject" setting. - type: string - kratos_courier_templates_verification_code_valid_sms_body_plaintext: + This governs the "serve.admin.cors.enabled" setting. + type: boolean + serve_public_cors_allowed_origins: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + serve_public_cors_enabled: description: |- - Configures the Ory Kratos Valid Verification via Code SMS Body Plaintext + Enable CORS headers on all public APIs - This governs the "courier.smtp.templates.verification_code.valid.sms.body.plaintext" setting. + This governs the "serve.public.cors.enabled" setting. + type: boolean + strict_security: + description: Whether the project should employ strict security measures. + Setting this to true is recommended for going into production. + type: boolean + updated_at: + description: Last Time Project's Revision was Updated + format: date-time + readOnly: true type: string - kratos_courier_templates_verification_invalid_email_body_html: - description: |- - Configures the Ory Kratos Invalid Verification Email Body HTML Template + workspace_id: + format: uuid4 + nullable: true + type: string + required: + - environment + - name + type: object + CreateSubscriptionCommon: + properties: + currency: + description: |2- - This governs the "courier.smtp.templates.verification.invalid.email.body.html" setting. + usd USD + eur Euro + enum: + - usd + - eur type: string - kratos_courier_templates_verification_invalid_email_body_plaintext: - description: |- - Configures the Ory Kratos Invalid Verification Email Body Plaintext Template + x-go-enum-desc: |- + usd USD + eur Euro + interval: + description: |2- - This governs the "courier.smtp.templates.verification.invalid.email.body.plaintext" setting. + monthly Monthly + yearly Yearly + enum: + - monthly + - yearly type: string - kratos_courier_templates_verification_invalid_email_subject: + x-go-enum-desc: |- + monthly Monthly + yearly Yearly + plan: + type: string + return_to: + type: string + required: + - interval + - plan + type: object + CreateVerifiableCredentialRequestBody: + example: + types: + - types + - types + format: format + proof: + proof_type: proof_type + jwt: jwt + properties: + format: + type: string + proof: + $ref: '#/components/schemas/VerifiableCredentialProof' + types: + items: + type: string + type: array + title: CreateVerifiableCredentialRequestBody contains the request body to request + a verifiable credential. + type: object + CreateWorkspaceMemberInviteBody: + description: Create Workspace Invite Request Body + properties: + invitee_email: + description: A email to invite + type: string + type: object + CustomHostnameStatus: + title: CustomHostnameStatus is the enumeration of valid state values in the + CustomHostnameSSL. + type: string + DefaultError: {} + Duration: + description: |- + A Duration represents the elapsed time between two instants + as an int64 nanosecond count. The representation limits the + largest representable duration to approximately 290 years. + format: int64 + type: integer + GenericUsage: + properties: + additional_price: + description: AdditionalPrice is the price per-unit in cent exceeding IncludedUsage. + A price of 0 means that no other items can be consumed. + format: int64 + type: integer + included_usage: + description: IncludedUsage is the number of included items. + format: int64 + type: integer + required: + - additional_price + - included_usage + title: GenericUsage is the generic usage type that can be used for any feature. + type: object + ID: + format: int64 + type: integer + JSONRawMessage: + title: "JSONRawMessage represents a json.RawMessage that works well with JSON,\ + \ SQL, and Swagger." + type: object + KetoNamespace: + properties: + id: + format: int64 + type: integer + name: + type: string + type: object + KetoNamespaces: + items: + $ref: '#/components/schemas/KetoNamespace' + type: array + ListMyWorkspacesResponse: + properties: + has_next_page: + type: boolean + next_page_token: + type: string + workspaces: + items: + $ref: '#/components/schemas/workspaceMeta' + type: array + required: + - has_next_page + - next_page_token + - workspaces + type: object + NormalizedProjectRevisionCourierChannel: + properties: + channel_id: + description: The Channel's public ID + type: string + created_at: + description: The creation date + format: date-time + readOnly: true + type: string + request_config_auth_config_api_key_in: description: |- - Configures the Ory Kratos Invalid Verification Email Subject Template + API key location - This governs the "courier.smtp.templates.verification.invalid.email.subject" setting. + Can either be "header" or "query" + example: header type: string - kratos_courier_templates_verification_valid_email_body_html: + request_config_auth_config_api_key_name: description: |- - Configures the Ory Kratos Valid Verification Email Body HTML Template + API key name - This governs the "courier.smtp.templates.verification.valid.email.body.html" setting. + Only used if the auth type is api_key type: string - kratos_courier_templates_verification_valid_email_body_plaintext: + request_config_auth_config_api_key_value: description: |- - Configures the Ory Kratos Valid Verification Email Body Plaintext Template + API key value - This governs the "courier.smtp.templates.verification.valid.email.body.plaintext" setting. + Only used if the auth type is api_key type: string - kratos_courier_templates_verification_valid_email_subject: + request_config_auth_config_basic_auth_password: description: |- - Configures the Ory Kratos Valid Verification Email Subject Template + Basic Auth Password - This governs the "courier.smtp.templates.verification.valid.email.subject" setting. + Only used if the auth type is basic_auth type: string - kratos_feature_flags_cacheable_sessions: + request_config_auth_config_basic_auth_user: description: |- - Configures the Ory Kratos Session caching feature flag + Basic Auth Username - This governs the "feature_flags.cacheable_sessions" setting. - type: boolean - kratos_feature_flags_use_continue_with_transitions: + Only used if the auth type is basic_auth + type: string + request_config_auth_type: description: |- - Configures the Ory Kratos Session use_continue_with_transitions flag + HTTP Auth Method to use for the HTTP call - This governs the "feature_flags.use_continue_with_transitions" setting. - type: boolean - kratos_identity_schemas: - items: - $ref: '#/components/schemas/normalizedProjectRevisionIdentitySchema' - type: array - kratos_oauth2_provider_headers: + Can either be basic_auth or api_key + basic_auth CourierChannelAuthTypeBasicAuth + api_key CourierChannelAuthTypeApiKey + enum: + - basic_auth + - api_key + type: string + x-go-enum-desc: |- + basic_auth CourierChannelAuthTypeBasicAuth + api_key CourierChannelAuthTypeApiKey + request_config_body: + description: URI pointing to the JsonNet template used for HTTP body payload + generation. + type: string + request_config_headers: description: "NullJSONRawMessage represents a json.RawMessage that works\ \ well with JSON, SQL, and Swagger and is NULLable-" nullable: true type: object - kratos_oauth2_provider_override_return_to: - description: |- - Kratos OAuth2 Provider Override Return To - - Enabling this allows Kratos to set the return_to parameter automatically to the OAuth2 request URL on the login flow, allowing complex flows such as recovery to continue to the initial OAuth2 flow. + request_config_method: + description: "The HTTP method to use (GET, POST, etc) for the HTTP call" + example: POST + type: string + request_config_url: + type: string + updated_at: + description: Last upate time + format: date-time + readOnly: true + type: string + required: + - channel_id + - request_config_body + - request_config_method + type: object + NullBool: + nullable: true + type: boolean + NullDuration: + nullable: true + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + type: string + NullInt: + nullable: true + type: integer + NullString: + nullable: true + type: string + NullTime: + format: date-time + nullable: true + type: string + NullUUID: + format: uuid4 + nullable: true + type: string + OAuth2LoginChallengeParams: + type: object + OrganizationBody: + description: Create B2B SSO Organization Request Body + example: + domains: + - domains + - domains + label: label + properties: + domains: + description: Domains contains the list of organization's domains. + items: + type: string + type: array + label: + description: Label contains the organization's label. + type: string + type: object + ParseError: + example: + start: + Line: 0 + column: 6 + end: + Line: 0 + column: 6 + message: message + properties: + end: + $ref: '#/components/schemas/SourcePosition' + message: + type: string + start: + $ref: '#/components/schemas/SourcePosition' + type: object + Plan: + properties: + name: + description: Name is the name of the plan. + type: string + version: + description: Version is the version of the plan. The combination of `name@version` + must be unique. + format: int64 + type: integer + required: + - name + - version + type: object + PlanDetails: + properties: + base_fee_monthly: + description: BaseFeeMonthly is the monthly base fee for the plan. + format: int64 + type: integer + base_fee_yearly: + description: BaseFeeYearly is the yearly base fee for the plan. + format: int64 + type: integer + custom: + description: Custom is true if the plan is custom. This means it will be + hidden from the pricing page. type: boolean - kratos_oauth2_provider_url: - description: |- - The Revisions' OAuth2 Provider Integration URL - - This governs the "oauth2_provider.url" setting. + description: + description: Description is the description of the plan. type: string - kratos_preview_default_read_consistency_level: - description: |- - Configures the default read consistency level for identity APIs - - This governs the `preview.default_read_consistency_level` setting. - - The read consistency level determines the consistency guarantee for reads: - - strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. - eventual (very fast): The result will return data that is about 4.8 seconds old. + features: + additionalProperties: + $ref: '#/components/schemas/GenericUsage' + title: Features are the feature definitions included in the plan. + type: object + name: + description: Name is the name of the plan. + type: string + version: + description: Version is the version of the plan. The combination of `name@version` + must be unique. + format: int64 + type: integer + required: + - base_fee_monthly + - base_fee_yearly + - custom + - description + - features + - name + - version + type: object + PlanFeatures: + additionalProperties: + $ref: '#/components/schemas/GenericUsage' + title: Features are the feature definitions included in the plan. + type: object + Pricing: + items: + $ref: '#/components/schemas/PlanDetails' + type: array + ProjectEventsDatapoint: + properties: + attributes: + description: Event attributes with details + items: + $ref: '#/components/schemas/Attribute' + type: array + name: + description: Name of the event + type: string + timestamp: + description: Time of occurence + format: date-time + type: string + required: + - attributes + - name + - timestamp + type: object + RFC6749ErrorJson: + properties: + error: + type: string + error_debug: + type: string + error_description: + type: string + error_hint: + type: string + status_code: + format: int64 + type: integer + title: RFC6749ErrorJson is a helper struct for JSON encoding/decoding of RFC6749Error. + type: object + RecoveryAddressType: + title: RecoveryAddressType must not exceed 16 characters as that is the limitation + in the SQL Schema. + type: string + SessionActivityDatapoint: + properties: + country: + description: Country of the events + type: string + failed: + description: Number of events that failed in the given timeframe + format: int64 + type: integer + succeeded: + description: Number of events that succeeded in the given timeframe + format: int64 + type: integer + required: + - country + - failed + - succeeded + type: object + SourcePosition: + example: + Line: 0 + column: 6 + properties: + Line: + format: int64 + type: integer + column: + format: int64 + type: integer + type: object + String: + $ref: '#/components/schemas/NullString' + StringSliceJSONFormat: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + SubscriptionStatus: + description: |- + For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. - Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency - controls to more APIs. Currently, the following APIs will be affected by this setting: + A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. - `GET /admin/identities` + If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). - Defaults to "strong" for new and existing projects. This feature is in preview. Use with caution. + If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. + title: "Possible values are `incomplete`, `incomplete_expired`, `trialing`,\ + \ `active`, `past_due`, `canceled`, or `unpaid`." + type: string + Time: + format: date-time + type: string + UUID: + format: uuid4 + type: string + Usage: + properties: + GenericUsage: + $ref: '#/components/schemas/GenericUsage' + type: object + VerifiableCredentialProof: + example: + proof_type: proof_type + jwt: jwt + properties: + jwt: type: string - kratos_secrets_cipher: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - kratos_secrets_cookie: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - kratos_secrets_default: + proof_type: + type: string + title: VerifiableCredentialProof contains the proof of a verifiable credential. + type: object + Warning: + example: + code: 0 + message: message + properties: + code: + format: int64 + type: integer + message: + type: string + type: object + acceptOAuth2ConsentRequest: + properties: + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." + type: object + grant_access_token_audience: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - kratos_selfservice_allowed_return_urls: + grant_scope: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - kratos_selfservice_default_browser_return_url: - description: |- - Configures the Ory Kratos Default Return URL - - This governs the "selfservice.allowed_return_urls" setting. - type: string - kratos_selfservice_flows_error_ui_url: - description: |- - Configures the Ory Kratos Error UI URL - - This governs the "selfservice.flows.error.ui_url" setting. - type: string - kratos_selfservice_flows_login_after_code_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.code.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_default_browser_return_url: - description: |- - Configures the Ory Kratos Login Default Return URL - - This governs the "selfservice.flows.login.after.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.lookup_secret.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_oidc_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After OIDC Default Return URL - - This governs the "selfservice.flows.login.after.oidc.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_password_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.login.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_totp_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.totp.after.password.default_browser_return_url" setting. + handled_at: + format: date-time + title: NullTime implements sql.NullTime functionality. type: string - kratos_selfservice_flows_login_after_webauthn_default_browser_return_url: + remember: description: |- - Configures the Ory Kratos Login After WebAuthn Default Return URL - - This governs the "selfservice.flows.login.after.webauthn.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_lifespan: + Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same + client asks the same user for the same, or a subset of, scope. + type: boolean + remember_for: description: |- - Configures the Ory Kratos Login Lifespan - - This governs the "selfservice.flows.login.lifespan" setting. - type: string - kratos_selfservice_flows_login_ui_url: + RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the + authorization will be remembered indefinitely. + format: int64 + type: integer + session: + $ref: '#/components/schemas/acceptOAuth2ConsentRequestSession' + title: The request payload used to accept a consent request. + type: object + acceptOAuth2ConsentRequestSession: + example: + access_token: "" + id_token: "" + properties: + access_token: description: |- - Configures the Ory Kratos Login UI URL - - This governs the "selfservice.flows.login.ui_url" setting. - type: string - kratos_selfservice_flows_logout_after_default_browser_return_url: + AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the + refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. + If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties + can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! + id_token: description: |- - Configures the Ory Kratos Logout Default Return URL - - This governs the "selfservice.flows.logout.after.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_recovery_after_default_browser_return_url: + IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable + by anyone that has access to the ID Challenge. Use with care! + title: Pass session data to a consent request. + type: object + acceptOAuth2LoginRequest: + properties: + acr: description: |- - Configures the Ory Kratos Recovery Default Return URL - - This governs the "selfservice.flows.recovery.after.default_browser_return_url" setting. + ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it + to express that, for example, a user authenticated using two factor authentication. type: string - kratos_selfservice_flows_recovery_enabled: - description: |- - Configures the Ory Kratos Recovery Enabled Setting - - This governs the "selfservice.flows.recovery.enabled" setting. - type: boolean - kratos_selfservice_flows_recovery_lifespan: + amr: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." + type: object + extend_session_lifespan: description: |- - Configures the Ory Kratos Recovery Lifespan + Extend OAuth2 authentication session lifespan - This governs the "selfservice.flows.recovery.lifespan" setting. - type: string - kratos_selfservice_flows_recovery_notify_unknown_recipients: - description: |- - Configures whether to notify unknown recipients of a Ory Kratos recovery flow + If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. - This governs the "selfservice.flows.recovery.notify_unknown_recipients" setting. + This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. type: boolean - kratos_selfservice_flows_recovery_ui_url: - description: |- - Configures the Ory Kratos Recovery UI URL - - This governs the "selfservice.flows.recovery.ui_url" setting. - type: string - kratos_selfservice_flows_recovery_use: - description: |- - Configures the Ory Kratos Recovery strategy to use ("link" or "code") - - This governs the "selfservice.flows.recovery.use" setting. - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode - enum: - - link - - code - type: string - x-go-enum-desc: |- - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode - kratos_selfservice_flows_registration_after_code_default_browser_return_url: - description: |- - Configures the Ory Kratos Registration After Code Default Return URL - - This governs the "selfservice.flows.registration.after.code.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_registration_after_default_browser_return_url: + force_subject_identifier: description: |- - Configures the Ory Kratos Registration Default Return URL + ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the + (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID + Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. - This governs the "selfservice.flows.registration.after.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_registration_after_oidc_default_browser_return_url: - description: |- - Configures the Ory Kratos Registration After OIDC Default Return URL + Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the + sub claim in the OAuth 2.0 Introspection. - This governs the "selfservice.flows.registration.after.oidc.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_registration_after_password_default_browser_return_url: - description: |- - Configures the Ory Kratos Registration After Password Default Return URL + Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself + you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in + ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's + configuration). - This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. + Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies + that you have to compute this value on every authentication process (probably depending on the client ID or some + other unique value). + + If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. type: string - kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url: + identity_provider_session_id: description: |- - Configures the Ory Kratos Registration After Password Default Return URL - - This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. + IdentityProviderSessionID is the session ID of the end-user that authenticated. + If specified, we will use this value to propagate the logout. type: string - kratos_selfservice_flows_registration_enabled: + remember: description: |- - Configures the Whether Ory Kratos Registration is Enabled - - This governs the "selfservice.flows.registration.enabled" setting.0 + Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store + a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she + will not be asked to log in again. type: boolean - kratos_selfservice_flows_registration_lifespan: + remember_for: description: |- - Configures the Ory Kratos Registration Lifespan - - This governs the "selfservice.flows.registration.lifespan" setting. + RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the + authorization will be remembered for the duration of the browser session (using a session cookie). + format: int64 + type: integer + subject: + description: Subject is the user ID of the end-user that authenticated. type: string - kratos_selfservice_flows_registration_login_hints: + required: + - subject + title: HandledLoginRequest is the request payload used to accept a login request. + type: object + activeProjectInConsole: + description: The Active Project ID + example: + project_id: project_id + properties: + project_id: description: |- - Configures the Ory Kratos Registration Login Hints + The Active Project ID - Shows helpful information when a user tries to sign up with a duplicate account. + format: uuid + type: string + type: object + authenticatorAssuranceLevel: + description: |- + The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder + for an attacker to compromise the account. - This governs the "selfservice.flows.registration.login_hints" setting. - type: boolean - kratos_selfservice_flows_registration_ui_url: - description: |- - Configures the Ory Kratos Registration UI URL + Generally, "aal1" implies that one authentication factor was used while AAL2 implies that two factors (e.g. + password + TOTP) have been used. - This governs the "selfservice.flows.registration.ui_url" setting. + To learn more about these levels please head over to: https://www.ory.sh/kratos/docs/concepts/credentials + enum: + - aal0 + - aal1 + - aal2 + - aal3 + title: Authenticator Assurance Level (AAL) + type: string + batchPatchIdentitiesResponse: + description: Patch identities response + example: + identities: + - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + action: create + - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + action: create + properties: + identities: + description: The patch responses for the individual identities. + items: + $ref: '#/components/schemas/identityPatchResponse' + type: array + type: object + checkOplSyntaxBody: + description: Ory Permission Language Document + type: string + checkOplSyntaxResult: + example: + errors: + - start: + Line: 0 + column: 6 + end: + Line: 0 + column: 6 + message: message + - start: + Line: 0 + column: 6 + end: + Line: 0 + column: 6 + message: message + properties: + errors: + description: The list of syntax errors + items: + $ref: '#/components/schemas/ParseError' + type: array + title: CheckOPLSyntaxResponse represents the response for an OPL syntax check + request. + type: object + checkPermissionResult: + description: The content of the allowed field is mirrored in the HTTP status + code. + example: + allowed: true + properties: + allowed: + description: whether the relation tuple is allowed + type: boolean + required: + - allowed + title: Check Permission Result + type: object + cloudAccount: + properties: + email: type: string - kratos_selfservice_flows_settings_after_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL - - This governs the "selfservice.flows.settings.after.default_browser_return_url" setting. + id: + format: uuid type: string - kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Lookup Secrets - - This governs the "selfservice.flows.settings.after.lookup_secret.default_browser_return_url" setting. + name: type: string - kratos_selfservice_flows_settings_after_oidc_default_browser_return_url: + required: + - email + - id + - name + type: object + consistencyRequestParameters: + description: Control API consistency guarantees + properties: + consistency: description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Social Sign In + Read Consistency Level (preview) - This governs the "selfservice.flows.settings.after.oidc.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_password_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Passwords + The read consistency level determines the consistency guarantee for reads: - This governs the "selfservice.flows.settings.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_profile_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Profiles + strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. + eventual (very fast): The result will return data that is about 4.8 seconds old. - This governs the "selfservice.flows.settings.after.profile.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_totp_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating TOTP + The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with + `ory patch project --replace '/previews/default_read_consistency_level="strong"'`. - This governs the "selfservice.flows.settings.after.totp.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating WebAuthn + Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency + controls to more APIs. Currently, the following APIs will be affected by this setting: - This governs the "selfservice.flows.settings.webauthn.profile.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_lifespan: - description: |- - Configures the Ory Kratos Settings Lifespan + `GET /admin/identities` - This governs the "selfservice.flows.settings.lifespan" setting. + This feature is in preview and only available in Ory Network. + ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. + strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. + eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + enum: + - "" + - strong + - eventual type: string - kratos_selfservice_flows_settings_privileged_session_max_age: + x-go-enum-desc: |2- + ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. + strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. + eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + type: object + continueWith: + discriminator: + mapping: + set_ory_session_token: '#/components/schemas/continueWithSetOrySessionToken' + show_recovery_ui: '#/components/schemas/continueWithRecoveryUi' + show_settings_ui: '#/components/schemas/continueWithSettingsUi' + show_verification_ui: '#/components/schemas/continueWithVerificationUi' + propertyName: action + oneOf: + - $ref: '#/components/schemas/continueWithVerificationUi' + - $ref: '#/components/schemas/continueWithSetOrySessionToken' + - $ref: '#/components/schemas/continueWithSettingsUi' + - $ref: '#/components/schemas/continueWithRecoveryUi' + continueWithRecoveryUi: + description: "Indicates, that the UI flow could be continued by showing a recovery\ + \ ui" + properties: + action: description: |- - Configures the Ory Kratos Settings Privileged Session Max Age - - This governs the "selfservice.flows.settings.privileged_session_max_age" setting. + Action will always be `show_recovery_ui` + show_recovery_ui ContinueWithActionShowRecoveryUIString + enum: + - show_recovery_ui type: string - kratos_selfservice_flows_settings_required_aal: - description: |- - Configures the Ory Kratos Settings Required AAL - - This governs the "selfservice.flows.settings.required_aal" setting. + x-go-enum-desc: show_recovery_ui ContinueWithActionShowRecoveryUIString + flow: + $ref: '#/components/schemas/continueWithRecoveryUiFlow' + required: + - action + - flow + type: object + continueWithRecoveryUiFlow: + properties: + id: + description: The ID of the recovery flow + format: uuid type: string - kratos_selfservice_flows_settings_ui_url: - description: |- - Configures the Ory Kratos Settings UI URL - - This governs the "selfservice.flows.settings.ui_url" setting. + url: + description: The URL of the recovery flow type: string - kratos_selfservice_flows_verification_after_default_browser_return_url: + required: + - id + type: object + continueWithSetOrySessionToken: + description: "Indicates that a session was issued, and the application should\ + \ use this token for authenticated requests" + properties: + action: description: |- - Configures the Ory Kratos Verification Default Return URL - - This governs the "selfservice.flows.verification.after.default_browser_return_url" setting. + Action will always be `set_ory_session_token` + set_ory_session_token ContinueWithActionSetOrySessionTokenString + enum: + - set_ory_session_token type: string - kratos_selfservice_flows_verification_enabled: - description: |- - Configures the Ory Kratos Verification Enabled Setting - - This governs the "selfservice.flows.verification.enabled" setting. - type: boolean - kratos_selfservice_flows_verification_lifespan: - description: |- - Configures the Ory Kratos Verification Lifespan - - This governs the "selfservice.flows.verification.lifespan" setting. + x-go-enum-desc: set_ory_session_token ContinueWithActionSetOrySessionTokenString + ory_session_token: + description: Token is the token of the session type: string - kratos_selfservice_flows_verification_notify_unknown_recipients: - description: |- - Configures whether to notify unknown recipients of a Ory Kratos verification flow - - This governs the "selfservice.flows.verification.notify_unknown_recipients" setting. - type: boolean - kratos_selfservice_flows_verification_ui_url: + required: + - action + - ory_session_token + type: object + continueWithSettingsUi: + description: "Indicates, that the UI flow could be continued by showing a settings\ + \ ui" + properties: + action: description: |- - Configures the Ory Kratos Verification UI URL - - This governs the "selfservice.flows.verification.ui_url" setting. + Action will always be `show_settings_ui` + show_settings_ui ContinueWithActionShowSettingsUIString + enum: + - show_settings_ui type: string - kratos_selfservice_flows_verification_use: + x-go-enum-desc: show_settings_ui ContinueWithActionShowSettingsUIString + flow: + $ref: '#/components/schemas/continueWithSettingsUiFlow' + required: + - action + - flow + type: object + continueWithSettingsUiFlow: + properties: + id: + description: The ID of the settings flow + format: uuid + type: string + required: + - id + type: object + continueWithVerificationUi: + description: "Indicates, that the UI flow could be continued by showing a verification\ + \ ui" + properties: + action: description: |- - Configures the Ory Kratos Strategy to use for Verification - - This governs the "selfservice.flows.verification.use" setting. - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode + Action will always be `show_verification_ui` + show_verification_ui ContinueWithActionShowVerificationUIString enum: - - link - - code + - show_verification_ui type: string - x-go-enum-desc: |- - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode - kratos_selfservice_methods_code_config_lifespan: - description: |- - Configures the Ory Kratos Code Method's lifespan - - This governs the "selfservice.methods.code.config.lifespan" setting. + x-go-enum-desc: show_verification_ui ContinueWithActionShowVerificationUIString + flow: + $ref: '#/components/schemas/continueWithVerificationUiFlow' + required: + - action + - flow + type: object + continueWithVerificationUiFlow: + properties: + id: + description: The ID of the verification flow + format: uuid type: string - kratos_selfservice_methods_code_enabled: - description: |- - Configures whether Ory Kratos Code Method is enabled - - This governs the "selfservice.methods.code.enabled" setting. - type: boolean - kratos_selfservice_methods_code_passwordless_enabled: - description: |- - Configues whether Ory Kratos Passwordless should use the Code Method - - This governs the "selfservice.methods.code.passwordless_enabled" setting. - type: boolean - kratos_selfservice_methods_link_config_base_url: - description: |- - Configures the Base URL which Recovery, Verification, and Login Links Point to - - It is recommended to leave this value empty. It will be appropriately configured to the best matching domain - (e.g. when using custom domains) automatically. - - This governs the "selfservice.methods.link.config.base_url" setting. + url: + description: The URL of the verification flow type: string - kratos_selfservice_methods_link_config_lifespan: - description: |- - Configures the Ory Kratos Link Method's lifespan - - This governs the "selfservice.methods.link.config.lifespan" setting. + verifiable_address: + description: The address that should be verified in this flow type: string - kratos_selfservice_methods_link_enabled: - description: |- - Configures whether Ory Kratos Link Method is enabled - - This governs the "selfservice.methods.link.enabled" setting. - type: boolean - kratos_selfservice_methods_lookup_secret_enabled: - description: |- - Configures whether Ory Kratos TOTP Lookup Secret is enabled - - This governs the "selfservice.methods.lookup_secret.enabled" setting. - type: boolean - kratos_selfservice_methods_oidc_config_base_redirect_uri: - description: |- - Configures the Ory Kratos Third Party / OpenID Connect base redirect URI - - This governs the "selfservice.methods.oidc.config.base_redirect_uri" setting. + required: + - id + - verifiable_address + type: object + courierMessageStatus: + description: A Message's Status + enum: + - queued + - sent + - processing + - abandoned + type: string + courierMessageType: + description: It can either be `email` or `phone` + enum: + - email + - phone + title: A Message's Type + type: string + createCustomDomainBody: + description: Create Custom Hostname Request Body + properties: + cookie_domain: + description: The domain where cookies will be set. Has to be a parent domain + of the custom hostname to work. type: string - kratos_selfservice_methods_oidc_config_providers: + cors_allowed_origins: + description: CORS Allowed origins for the custom hostname. items: - $ref: '#/components/schemas/normalizedProjectRevisionThirdPartyProvider' + type: string type: array - kratos_selfservice_methods_oidc_enabled: - description: |- - Configures whether Ory Kratos Third Party / OpenID Connect Login is enabled - - This governs the "selfservice.methods.oidc.enabled" setting. - type: boolean - kratos_selfservice_methods_password_config_haveibeenpwned_enabled: - description: |- - Configures whether Ory Kratos Password HIBP Checks is enabled - - This governs the "selfservice.methods.password.config.haveibeenpwned_enabled" setting. - type: boolean - kratos_selfservice_methods_password_config_identifier_similarity_check_enabled: - description: |- - Configures whether Ory Kratos Password should disable the similarity policy. - - This governs the "selfservice.methods.password.config.identifier_similarity_check_enabled" setting. - type: boolean - kratos_selfservice_methods_password_config_ignore_network_errors: - description: |- - Configures whether Ory Kratos Password Should ignore HIBPWND Network Errors - - This governs the "selfservice.methods.password.config.ignore_network_errors" setting. - type: boolean - kratos_selfservice_methods_password_config_max_breaches: - description: |- - Configures Ory Kratos Password Max Breaches Detection - - This governs the "selfservice.methods.password.config.max_breaches" setting. - format: int64 - type: integer - kratos_selfservice_methods_password_config_min_password_length: - description: |- - Configures the minimum length of passwords. - - This governs the "selfservice.methods.password.config.min_password_length" setting. - format: int64 - type: integer - kratos_selfservice_methods_password_enabled: - description: |- - Configures whether Ory Kratos Password Method is enabled - - This governs the "selfservice.methods.password.enabled" setting. - type: boolean - kratos_selfservice_methods_profile_enabled: - description: |- - Configures whether Ory Kratos Profile Method is enabled - - This governs the "selfservice.methods.profile.enabled" setting. + cors_enabled: + description: CORS Enabled for the custom hostname. type: boolean - kratos_selfservice_methods_totp_config_issuer: - description: |- - Configures Ory Kratos TOTP Issuer - - This governs the "selfservice.methods.totp.config.issuer" setting. + custom_ui_base_url: + description: The base URL where the custom user interface will be exposed. + type: string + hostname: + description: The custom hostname where the API will be exposed. + type: string + type: object + createEventStreamBody: + description: Create Event Stream Request Body + properties: + role_arn: + description: The AWS IAM role ARN to assume when publishing to the SNS topic. + type: string + topic_arn: + description: The AWS SNS topic ARN. + type: string + type: + description: "The type of the event stream (AWS SNS, GCP Pub/Sub, etc)." + enum: + - sns type: string - kratos_selfservice_methods_totp_enabled: - description: |- - Configures whether Ory Kratos TOTP Method is enabled - - This governs the "selfservice.methods.totp.enabled" setting. - type: boolean - kratos_selfservice_methods_webauthn_config_passwordless: + required: + - role_arn + - topic_arn + - type + type: object + createIdentityBody: + description: Create Identity Body + properties: + credentials: + $ref: '#/components/schemas/identityWithCredentials' + metadata_admin: + description: Store metadata about the user which is only accessible through + admin APIs such as `GET /admin/identities/`. + metadata_public: description: |- - Configures whether Ory Kratos Webauthn is used for passwordless flows - - This governs the "selfservice.methods.webauthn.config.passwordless" setting. - type: boolean - kratos_selfservice_methods_webauthn_config_rp_display_name: + Store metadata about the identity which the identity itself can see when calling for example the + session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. + recovery_addresses: description: |- - Configures the Ory Kratos Webauthn RP Display Name + RecoveryAddresses contains all the addresses that can be used to recover an identity. - This governs the "selfservice.methods.webauthn.config.rp.display_name" setting. + Use this structure to import recovery addresses for an identity. Please keep in mind + that the address needs to be represented in the Identity Schema or this field will be overwritten + on the next identity update. + items: + $ref: '#/components/schemas/recoveryIdentityAddress' + type: array + schema_id: + description: SchemaID is the ID of the JSON Schema to be used for validating + the identity's traits. type: string - kratos_selfservice_methods_webauthn_config_rp_icon: + state: description: |- - Configures the Ory Kratos Webauthn RP Icon - - This governs the "selfservice.methods.webauthn.config.rp.icon" setting. - Deprecated: This value will be ignored due to security considerations. + State is the identity's state. + active StateActive + inactive StateInactive + enum: + - active + - inactive type: string - kratos_selfservice_methods_webauthn_config_rp_id: + x-go-enum-desc: |- + active StateActive + inactive StateInactive + traits: description: |- - Configures the Ory Kratos Webauthn RP ID + Traits represent an identity's traits. The identity is able to create, modify, and delete traits + in a self-service manner. The input will always be validated against the JSON Schema defined + in `schema_url`. + type: object + verifiable_addresses: + description: |- + VerifiableAddresses contains all the addresses that can be verified by the user. - This governs the "selfservice.methods.webauthn.config.rp.id" setting. - type: string - kratos_selfservice_methods_webauthn_config_rp_origins: + Use this structure to import verified addresses for an identity. Please keep in mind + that the address needs to be represented in the Identity Schema or this field will be overwritten + on the next identity update. items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." + $ref: '#/components/schemas/verifiableIdentityAddress' type: array - kratos_selfservice_methods_webauthn_enabled: - description: |- - Configures whether Ory Kratos Webauthn is enabled - - This governs the "selfservice.methods.webauthn.enabled" setting. - type: boolean - kratos_session_cookie_persistent: + required: + - schema_id + - traits + type: object + createJsonWebKeySet: + description: Create JSON Web Key Set Request Body + properties: + alg: description: |- - Configures the Ory Kratos Session Cookie Persistent Attribute + JSON Web Key Algorithm - This governs the "session.cookie.persistent" setting. - type: boolean - kratos_session_cookie_same_site: + The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. + type: string + kid: description: |- - Configures the Ory Kratos Session Cookie SameSite Attribute + JSON Web Key ID - This governs the "session.cookie.same_site" setting. + The Key ID of the key to be created. type: string - kratos_session_lifespan: + use: description: |- - Configures the Ory Kratos Session Lifespan + JSON Web Key Use - This governs the "session.lifespan" setting. + The "use" (public key use) parameter identifies the intended use of + the public key. The "use" parameter is employed to indicate whether + a public key is used for encrypting data or verifying the signature + on data. Valid values are "enc" and "sig". type: string - kratos_session_whoami_required_aal: + required: + - alg + - kid + - use + type: object + createMemberInviteResponse: + $ref: '#/components/schemas/CreateInviteResponse' + createProjectBody: + description: Create Project Request Body + properties: + environment: description: |- - Configures the Ory Kratos Session Whoami AAL requirement - - This governs the "session.whoami.required_aal" setting. + The environment of the project. + prod Production + dev Development + enum: + - prod + - dev type: string - kratos_session_whoami_tokenizer_templates: - items: - $ref: '#/components/schemas/normalizedProjectRevisionTokenizerTemplate' - type: array + x-go-enum-desc: |- + prod Production + dev Development name: - description: The project's name. - type: string - project_id: - description: The Revision's Project ID - format: uuid - type: string - project_revision_hooks: - items: - $ref: '#/components/schemas/normalizedProjectRevisionHook' - type: array - serve_admin_cors_allowed_origins: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - serve_admin_cors_enabled: - description: |- - Enable CORS headers on all admin APIs - - This governs the "serve.admin.cors.enabled" setting. - type: boolean - serve_public_cors_allowed_origins: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - serve_public_cors_enabled: - description: |- - Enable CORS headers on all public APIs - - This governs the "serve.public.cors.enabled" setting. - type: boolean - strict_security: - description: Whether the project should employ strict security measures. - Setting this to true is recommended for going into production. - type: boolean - updated_at: - description: Last Time Project's Revision was Updated - format: date-time - readOnly: true + description: The name of the project to be created type: string workspace_id: format: uuid4 nullable: true type: string required: + - environment - name type: object + createProjectBranding: + description: Create a Project Branding + properties: + favicon_type: + type: string + favicon_url: + type: string + logo_type: + type: string + logo_url: + type: string + name: + type: string + theme: + $ref: '#/components/schemas/projectBrandingColors' + type: object createRecoveryCodeForIdentityBody: description: Create Recovery Code for Identity Request Body properties: @@ -9727,7 +9891,6 @@ components: $ref: '#/components/schemas/subjectSet' type: object createSubscriptionBody: - description: Create Subscription Request Body properties: currency: description: |2- @@ -9756,14 +9919,52 @@ components: plan: type: string provision_first_project: - format: uuid4 - nullable: true + format: uuid type: string return_to: type: string - workspace: - format: uuid4 - nullable: true + required: + - interval + - plan + - provision_first_project + type: object + createWorkspacePayload: + properties: + name: + description: The name of the workspace + type: string + required: + - name + type: object + createWorkspaceSubscriptionBody: + properties: + currency: + description: |2- + + usd USD + eur Euro + enum: + - usd + - eur + type: string + x-go-enum-desc: |- + usd USD + eur Euro + interval: + description: |2- + + monthly Monthly + yearly Yearly + enum: + - monthly + - yearly + type: string + x-go-enum-desc: |- + monthly Monthly + yearly Yearly + plan: + type: string + return_to: type: string required: - interval @@ -10086,6 +10287,10 @@ components: required: - type type: object + falsyNullBool: + description: It JSON decodes to false if null. + title: FalsyNullBool represents a bool that may be null. + type: boolean flowError: example: updated_at: 2000-01-23T04:56:07.000+00:00 @@ -10357,7 +10562,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -10396,7 +10601,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" properties: created_at: @@ -10449,7 +10654,19 @@ components: format: url type: string state: - $ref: '#/components/schemas/identityState' + description: |- + State is the identity's state. + + This value has currently no effect. + active StateActive + inactive StateInactive + enum: + - active + - inactive + type: string + x-go-enum-desc: |- + active StateActive + inactive StateInactive state_changed_at: format: date-time title: NullTime implements sql.NullTime functionality. @@ -10485,7 +10702,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 properties: @@ -10504,7 +10721,35 @@ components: type: string type: array type: - $ref: '#/components/schemas/identityCredentialsType' + description: |- + Type discriminates between different types of credentials. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 + enum: + - password + - oidc + - totp + - lookup_secret + - webauthn + - code + - link_recovery + - code_recovery + type: string + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 updated_at: description: UpdatedAt is a helper struct field for gobuffalo.pop. format: date-time @@ -10519,6 +10764,7 @@ components: description: CredentialsCode represents a one time login/registration code properties: address_type: + description: The type of the address for this code type: string used_at: format: date-time @@ -10559,18 +10805,6 @@ components: title: CredentialsPassword is contains the configuration for credentials of the type password. type: object - identityCredentialsType: - description: and so on. - enum: - - password - - totp - - oidc - - webauthn - - lookup_secret - - code - title: "CredentialsType represents several different credential types, like\ - \ password credentials, passwordless credentials," - type: string identityMetaSchema: description: Identity Meta Schema type: object @@ -10651,13 +10885,6 @@ components: items: $ref: '#/components/schemas/identitySchemaContainer' type: array - identityState: - description: The state can either be `active` or `inactive`. - enum: - - active - - inactive - title: An Identity's State - type: string identityTraits: description: |- Traits represent an identity's traits. The identity is able to create, modify, and delete traits @@ -10774,46 +11001,6 @@ components: required: - project_id type: object - internalProvisionMockSubscription: - description: Internal Provision Mock Subscription Request Body - properties: - currency: - description: |- - Currency - usd USD - eur Euro - enum: - - usd - - eur - type: string - x-go-enum-desc: |- - usd USD - eur Euro - identity_id: - description: Identity ID - format: uuid - type: string - interval: - description: |- - Billing Interval - monthly Monthly - yearly Yearly - enum: - - monthly - - yearly - type: string - x-go-enum-desc: |- - monthly Monthly - yearly Yearly - plan: - description: Plan ID - type: string - required: - - currency - - identity_id - - interval - - plan - type: object introspectedOAuth2Token: description: |- Introspection contains an access token's session data as specified by @@ -11199,6 +11386,21 @@ components: required: - organizations type: object + listWorkspaceProjectsResponse: + properties: + has_next_page: + type: boolean + next_page: + type: string + projects: + items: + $ref: '#/components/schemas/projectMetadata' + type: array + required: + - has_next_page + - next_page + - projects + type: object loginFlow: description: |- This object represents a login flow. A login flow is initiated at the "Initiate Login API / Browser Flow" @@ -11207,7 +11409,7 @@ components: Once a login flow is completed successfully, a session cookie or session token will be issued. example: requested_aal: null - active: null + active: password created_at: 2000-01-23T04:56:07.000+00:00 refresh: true return_to: return_to @@ -11283,6 +11485,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -11303,6 +11506,7 @@ components: requested_scope: - requested_scope - requested_scope + transient_payload: "{}" ui: nodes: - meta: @@ -11359,7 +11563,37 @@ components: state: "" properties: active: - $ref: '#/components/schemas/identityCredentialsType' + description: |- + The active login method + + If set contains the login method used. If the flow is new, it is unset. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 + enum: + - password + - oidc + - totp + - lookup_secret + - webauthn + - code + - link_recovery + - code_recovery + type: string + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 created_at: description: CreatedAt is a helper struct field for gobuffalo.pop. format: date-time @@ -11419,6 +11653,10 @@ components: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + transient_payload: + description: TransientPayload is used to pass data from the login to hooks + and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -11797,6 +12035,41 @@ components: - count - time type: object + migrationOptions: + properties: + environment: + description: |- + The environment of the project in the workspace. Can be one of "prod" or + "dev". Note that the number of projects in the "prod" environment is limited + depending on the subscription. + prod Production + dev Development + enum: + - prod + - dev + type: string + x-go-enum-desc: |- + prod Production + dev Development + project_subscription: + description: |- + The action to take with the project subscription. Can be one of "migrate", and + "ignore". "migrate" will migrate the project subscription to the workspace. + "ignore" will ignore the project subscription. + migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. + ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + enum: + - migrate + - ignore + type: string + x-go-enum-desc: |- + migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. + ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + required: + - environment + - project_subscription + title: MigrationOptions contain the options for migrating a project to a workspace. + type: object namespace: example: name: name @@ -11907,6 +12180,9 @@ components: description: "Whether to disable the account experience welcome screen,\ \ which is hosted under `/ui/welcome`." type: boolean + enable_ax_v2: + description: Whether the new account experience is enabled and reachable. + type: boolean hydra_oauth2_allowed_top_level_claims: items: type: string @@ -11961,6 +12237,12 @@ components: example: 30m pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string + hydra_oauth2_mirror_top_level_claims: + description: |- + Set to false if you don't want to mirror custom claims under 'ext'. + + This governs the "oauth2.mirror_top_level_claims" setting. + type: boolean hydra_oauth2_pkce_enforced: description: |- Configures whether PKCE should be enforced for all OAuth2 Clients. @@ -12354,6 +12636,12 @@ components: This governs the "courier.smtp.templates.login_code.valid.email.subject" setting. type: string + kratos_courier_templates_login_code_valid_sms_body_plaintext: + description: |- + Configures the Ory Kratos Valid Login via Code SMS plain text body + + This governs the "courier.smtp.templates.login_code.valid.sms.plaintext" setting. + type: string kratos_courier_templates_recovery_code_invalid_email_body_html: description: |- Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template @@ -12891,6 +13179,12 @@ components: This governs the "selfservice.methods.code.enabled" setting. type: boolean + kratos_selfservice_methods_code_mfa_enabled: + description: |- + Configues whether the code method can be used to fulfil MFA flows + + This governs the "selfservice.methods.code.mfa_enabled" setting. + type: boolean kratos_selfservice_methods_code_passwordless_enabled: description: |- Configues whether Ory Kratos Passwordless should use the Code Method @@ -13281,6 +13575,9 @@ components: `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. example: contoso.onmicrosoft.com type: string + claims_source: + nullable: true + type: string client_id: description: ClientID is the application's Client ID. type: string @@ -13498,6 +13795,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -13771,6 +14069,11 @@ components: SkipConsent skips the consent screen for this client. This field can only be set from the admin API. type: boolean + skip_logout_consent: + description: |- + SkipLogoutConsent skips the logout consent screen for this client. This field can only + be set from the admin API. + type: boolean subject_type: description: |- OpenID Connect Subject Type @@ -13943,6 +14246,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -14173,6 +14477,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -14200,6 +14505,7 @@ components: session: access_token: "" id_token: "" + context: "{}" grant_access_token_audience: - grant_access_token_audience - grant_access_token_audience @@ -14211,6 +14517,10 @@ components: properties: consent_request: $ref: '#/components/schemas/oAuth2ConsentRequest' + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." + type: object expires_at: $ref: '#/components/schemas/oAuth2ConsentSession_expires_at' grant_access_token_audience: @@ -14321,6 +14631,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -14451,6 +14762,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -15122,6 +15434,14 @@ components: type: boolean description: Get Permissions on Project Request Parameters type: object + permissionsOnWorkpaceResponse: + description: Get Permissions on Project Request Parameters + properties: + permissions: + additionalProperties: + type: boolean + type: object + type: object plans: $ref: '#/components/schemas/Pricing' postCheckPermissionBody: @@ -15666,7 +15986,27 @@ components: - project_id type: object projectMember: - $ref: '#/components/schemas/cloudAccount' + example: + role: role + name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + email: email + properties: + email: + type: string + id: + format: uuid + type: string + name: + type: string + role: + type: string + required: + - email + - id + - name + - role + type: object projectMembers: items: $ref: '#/components/schemas/projectMember' @@ -15675,6 +16015,7 @@ components: example: subscription_id: subscription_id workspace_id: workspace_id + environment: prod updated_at: 2000-01-23T04:56:07.000+00:00 hosts: - hosts @@ -15690,6 +16031,18 @@ components: description: The Project's Creation Date format: date-time type: string + environment: + description: |- + The environment of the project. + prod Production + dev Development + enum: + - prod + - dev + type: string + x-go-enum-desc: |- + prod Production + dev Development hosts: items: type: string @@ -15740,6 +16093,7 @@ components: type: string required: - created_at + - environment - hosts - id - name @@ -15842,9 +16196,12 @@ components: project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant + concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + permission_checks_rate_limit_tier RateLimitTierPermissionChecks + oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect enum: - region_eu - region_us @@ -15864,9 +16221,12 @@ components: - project_metrics_events_history - organizations - rop_grant + - concierge_onboarding - rate_limit_tier - session_rate_limit_tier - identities_list_rate_limit_tier + - permission_checks_rate_limit_tier + - oauth2_introspect_rate_limit_tier type: string x-go-enum-desc: |- region_eu RegionEU @@ -15887,9 +16247,12 @@ components: project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant + concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + permission_checks_rate_limit_tier RateLimitTierPermissionChecks + oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect feature_available: type: boolean included: @@ -15941,6 +16304,7 @@ components: We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery) example: expires_at: 2000-01-23T04:56:07.000+00:00 + transient_payload: "{}" ui: nodes: - meta: @@ -16042,6 +16406,10 @@ components: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. + transient_payload: + description: TransientPayload is used to pass data from the recovery flow + to hooks and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -16126,7 +16494,7 @@ components: type: object registrationFlow: example: - active: null + active: password return_to: return_to session_token_exchange_code: session_token_exchange_code type: type @@ -16200,6 +16568,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -16276,7 +16645,36 @@ components: state: "" properties: active: - $ref: '#/components/schemas/identityCredentialsType' + description: |- + Active, if set, contains the registration method that is being used. It is initially + not set. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 + enum: + - password + - oidc + - totp + - lookup_secret + - webauthn + - code + - link_recovery + - code_recovery + type: string + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 expires_at: description: |- ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, @@ -16576,7 +16974,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -16615,7 +17013,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" authenticated_at: 2000-01-23T04:56:07.000+00:00 active: true @@ -16845,6 +17243,7 @@ components: We recommend reading the [User Settings Documentation](../self-service/flows/user-settings) example: expires_at: 2000-01-23T04:56:07.000+00:00 + transient_payload: "{}" ui: nodes: - meta: @@ -16903,7 +17302,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -16942,7 +17341,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" continue_with: - null @@ -17003,6 +17402,10 @@ components: success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. "please use a valid phone number") data was sent. + transient_payload: + description: TransientPayload is used to pass data from the settings flow + to hooks and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -17031,11 +17434,6 @@ components: - success title: 'State represents the state of this flow. It knows two states:' type: string - stripeCustomer: - properties: - id: - type: string - type: object subjectSet: example: namespace: namespace @@ -17092,6 +17490,8 @@ components: description: The currently active plan of the subscription readOnly: true type: string + current_plan_details: + $ref: '#/components/schemas/PlanDetails' customer_id: description: The ID of the stripe customer readOnly: true @@ -17130,6 +17530,9 @@ components: title: "Possible values are `incomplete`, `incomplete_expired`, `trialing`,\ \ `active`, `past_due`, `canceled`, or `unpaid`." type: string + stripe_checkout_expires_at: + format: date-time + type: string updated_at: format: date-time readOnly: true @@ -17203,7 +17606,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17242,7 +17645,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" authenticated_at: 2000-01-23T04:56:07.000+00:00 active: true @@ -17278,7 +17681,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17317,7 +17720,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" session: tokenized: tokenized @@ -17352,7 +17755,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17391,7 +17794,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" authenticated_at: 2000-01-23T04:56:07.000+00:00 active: true @@ -18184,7 +18587,17 @@ components: will update the Identity's SchemaID. type: string state: - $ref: '#/components/schemas/identityState' + description: |- + State is the identity's state. + active StateActive + inactive StateInactive + enum: + - active + - inactive + type: string + x-go-enum-desc: |- + active StateActive + inactive StateInactive traits: description: |- Traits represent an identity's traits. The identity is able to create, modify, and delete traits @@ -18234,6 +18647,9 @@ components: resend: description: Resend is set when the user wants to resend the code type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - csrf_token - method @@ -18292,6 +18708,9 @@ components: description: The identity traits. This is a placeholder for the registration flow. type: object + transient_payload: + description: Transient data to pass along to any webhooks + type: object upstream_parameters: description: |- UpstreamParameters are the parameters that are passed to the upstream identity provider. @@ -18329,6 +18748,9 @@ components: Identifier is the email or username of the user trying to log in. This field is deprecated! type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - identifier - method @@ -18348,6 +18770,9 @@ components: totp_code: description: The TOTP code. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method - totp_code @@ -18367,6 +18792,9 @@ components: description: Method should be set to "webAuthn" when logging in using the WebAuthn strategy. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object webauthn_login: description: |- Login a WebAuthn Security Key @@ -18427,6 +18855,9 @@ components: x-go-enum-desc: |- link RecoveryStrategyLink code RecoveryStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18461,6 +18892,9 @@ components: x-go-enum-desc: |- link RecoveryStrategyLink code RecoveryStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - email - method @@ -18663,6 +19097,9 @@ components: Should be set to "lookup" when trying to add, update, or remove a lookup pairing. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18696,6 +19133,9 @@ components: in: body type: object + transient_payload: + description: Transient data to pass along to any webhooks + type: object unlink: description: |- Unlink this provider @@ -18733,6 +19173,9 @@ components: password: description: Password is the updated password type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method - password @@ -18758,6 +19201,9 @@ components: The identity's traits. type: object + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method - traits @@ -18783,6 +19229,9 @@ components: effectively removing the credential. This can be used to set up a new TOTP device. type: boolean + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18798,6 +19247,9 @@ components: Should be set to "webauthn" when trying to add, update, or remove a webAuthn pairing. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object webauthn_register: description: |- Register a WebAuthn Security Key @@ -18821,7 +19273,6 @@ components: - method type: object updateSubscriptionBody: - description: Update Subscription Request Body properties: interval: description: |2- @@ -18892,6 +19343,9 @@ components: x-go-enum-desc: |- link VerificationStrategyLink code VerificationStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18926,10 +19380,21 @@ components: x-go-enum-desc: |- link VerificationStrategyLink code VerificationStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - email - method type: object + updateWorkspacePayload: + properties: + name: + description: The name of the workspace. + type: string + required: + - name + type: object verifiableCredentialPrimingResponse: properties: c_nonce: @@ -19029,6 +19494,7 @@ components: For more information head over to: https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation example: expires_at: 2000-01-23T04:56:07.000+00:00 + transient_payload: "{}" ui: nodes: - meta: @@ -19125,6 +19591,10 @@ components: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. + transient_payload: + description: TransientPayload is used to pass data from the verification + flow to hooks and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -19182,6 +19652,32 @@ components: - name - updated_at type: object + workspaceMeta: + properties: + created_at: + format: date-time + type: string + id: + format: uuid + type: string + name: + type: string + subscription_id: + format: uuid4 + nullable: true + type: string + subscription_plan: + nullable: true + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - id + - name + - updated_at + type: object workspaces: items: $ref: '#/components/schemas/workspace' diff --git a/clients/client/go/api_courier.go b/clients/client/go/api_courier.go index 43990668631..b3ebe2ad2e9 100644 --- a/clients/client/go/api_courier.go +++ b/clients/client/go/api_courier.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_events.go b/clients/client/go/api_events.go index 6e40f15ecb0..c0ce0127352 100644 --- a/clients/client/go/api_events.go +++ b/clients/client/go/api_events.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_frontend.go b/clients/client/go/api_frontend.go index ad3bf804736..44c03e8f7c5 100644 --- a/clients/client/go/api_frontend.go +++ b/clients/client/go/api_frontend.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -937,6 +937,7 @@ type FrontendAPICreateBrowserLoginFlowRequest struct { cookie *string loginChallenge *string organization *string + via *string } // Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session. @@ -975,6 +976,12 @@ func (r FrontendAPICreateBrowserLoginFlowRequest) Organization(organization stri return r } +// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. +func (r FrontendAPICreateBrowserLoginFlowRequest) Via(via string) FrontendAPICreateBrowserLoginFlowRequest { + r.via = &via + return r +} + func (r FrontendAPICreateBrowserLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.CreateBrowserLoginFlowExecute(r) } @@ -1052,6 +1059,9 @@ func (a *FrontendAPIService) CreateBrowserLoginFlowExecute(r FrontendAPICreateBr if r.organization != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "organization", r.organization, "") } + if r.via != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "via", r.via, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1906,6 +1916,7 @@ type FrontendAPICreateNativeLoginFlowRequest struct { xSessionToken *string returnSessionTokenExchangeCode *bool returnTo *string + via *string } // Refresh a login session If set to true, this will refresh an existing login session by asking the user to sign in again. This will reset the authenticated_at time of the session. @@ -1938,6 +1949,12 @@ func (r FrontendAPICreateNativeLoginFlowRequest) ReturnTo(returnTo string) Front return r } +// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. +func (r FrontendAPICreateNativeLoginFlowRequest) Via(via string) FrontendAPICreateNativeLoginFlowRequest { + r.via = &via + return r +} + func (r FrontendAPICreateNativeLoginFlowRequest) Execute() (*LoginFlow, *http.Response, error) { return r.ApiService.CreateNativeLoginFlowExecute(r) } @@ -2009,6 +2026,9 @@ func (a *FrontendAPIService) CreateNativeLoginFlowExecute(r FrontendAPICreateNat if r.returnTo != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "return_to", r.returnTo, "") } + if r.via != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "via", r.via, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/clients/client/go/api_identity.go b/clients/client/go/api_identity.go index eda70bf28b3..66e2002a4fd 100644 --- a/clients/client/go/api_identity.go +++ b/clients/client/go/api_identity.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -112,7 +112,7 @@ You can only delete second factor (aal2) credentials. @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 credential's Type. One of totp, webauthn, lookup + @param type_ Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 IdentityAPIDeleteIdentityCredentialsRequest */ DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityAPIDeleteIdentityCredentialsRequest @@ -728,9 +728,15 @@ func (a *IdentityAPIService) CreateRecoveryCodeForIdentityExecute(r IdentityAPIC type IdentityAPICreateRecoveryLinkForIdentityRequest struct { ctx context.Context ApiService IdentityAPI + returnTo *string createRecoveryLinkForIdentityBody *CreateRecoveryLinkForIdentityBody } +func (r IdentityAPICreateRecoveryLinkForIdentityRequest) ReturnTo(returnTo string) IdentityAPICreateRecoveryLinkForIdentityRequest { + r.returnTo = &returnTo + return r +} + func (r IdentityAPICreateRecoveryLinkForIdentityRequest) CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody CreateRecoveryLinkForIdentityBody) IdentityAPICreateRecoveryLinkForIdentityRequest { r.createRecoveryLinkForIdentityBody = &createRecoveryLinkForIdentityBody return r @@ -777,6 +783,9 @@ func (a *IdentityAPIService) CreateRecoveryLinkForIdentityExecute(r IdentityAPIC localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.returnTo != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "return_to", r.returnTo, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -995,7 +1004,7 @@ You can only delete second factor (aal2) credentials. @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 credential's Type. One of totp, webauthn, lookup + @param type_ Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 IdentityAPIDeleteIdentityCredentialsRequest */ func (a *IdentityAPIService) DeleteIdentityCredentials(ctx context.Context, id string, type_ string) IdentityAPIDeleteIdentityCredentialsRequest { @@ -1896,9 +1905,10 @@ type IdentityAPIListIdentitiesRequest struct { pageSize *int64 pageToken *string consistency *string - idsFilter *[]string + ids *[]string credentialsIdentifier *string previewCredentialsIdentifierSimilar *string + includeCredential *[]string } // Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. @@ -1931,9 +1941,9 @@ func (r IdentityAPIListIdentitiesRequest) Consistency(consistency string) Identi return r } -// IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. -func (r IdentityAPIListIdentitiesRequest) IdsFilter(idsFilter []string) IdentityAPIListIdentitiesRequest { - r.idsFilter = &idsFilter +// List of ids used to filter identities. If this list is empty, then no filter will be applied. +func (r IdentityAPIListIdentitiesRequest) Ids(ids []string) IdentityAPIListIdentitiesRequest { + r.ids = &ids return r } @@ -1949,6 +1959,12 @@ func (r IdentityAPIListIdentitiesRequest) PreviewCredentialsIdentifierSimilar(pr return r } +// Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. +func (r IdentityAPIListIdentitiesRequest) IncludeCredential(includeCredential []string) IdentityAPIListIdentitiesRequest { + r.includeCredential = &includeCredential + return r +} + func (r IdentityAPIListIdentitiesRequest) Execute() ([]Identity, *http.Response, error) { return r.ApiService.ListIdentitiesExecute(r) } @@ -2013,15 +2029,15 @@ func (a *IdentityAPIService) ListIdentitiesExecute(r IdentityAPIListIdentitiesRe if r.consistency != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "consistency", r.consistency, "") } - if r.idsFilter != nil { - t := *r.idsFilter + if r.ids != nil { + t := *r.ids if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ids_filter", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ids", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ids_filter", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "ids", t, "multi") } } if r.credentialsIdentifier != nil { @@ -2030,6 +2046,17 @@ func (a *IdentityAPIService) ListIdentitiesExecute(r IdentityAPIListIdentitiesRe if r.previewCredentialsIdentifierSimilar != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "preview_credentials_identifier_similar", r.previewCredentialsIdentifierSimilar, "") } + if r.includeCredential != nil { + t := *r.includeCredential + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "include_credential", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "include_credential", t, "multi") + } + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} diff --git a/clients/client/go/api_jwk.go b/clients/client/go/api_jwk.go index 6cafa473dd1..402961a7b52 100644 --- a/clients/client/go/api_jwk.go +++ b/clients/client/go/api_jwk.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_metadata.go b/clients/client/go/api_metadata.go index e0fedc70663..dc4b237d9cc 100644 --- a/clients/client/go/api_metadata.go +++ b/clients/client/go/api_metadata.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_o_auth2.go b/clients/client/go/api_o_auth2.go index fb0e697d2ed..d591c6be6d4 100644 --- a/clients/client/go/api_o_auth2.go +++ b/clients/client/go/api_o_auth2.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_oidc.go b/clients/client/go/api_oidc.go index a953e343497..3f2eb2451e2 100644 --- a/clients/client/go/api_oidc.go +++ b/clients/client/go/api_oidc.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_permission.go b/clients/client/go/api_permission.go index 9b650ae46f8..5736f0dc1e3 100644 --- a/clients/client/go/api_permission.go +++ b/clients/client/go/api_permission.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -814,7 +814,6 @@ type PermissionAPIPostCheckPermissionOrErrorRequest struct { postCheckPermissionOrErrorBody *PostCheckPermissionOrErrorBody } -// nolint:deadcode,unused func (r PermissionAPIPostCheckPermissionOrErrorRequest) MaxDepth(maxDepth int64) PermissionAPIPostCheckPermissionOrErrorRequest { r.maxDepth = &maxDepth return r diff --git a/clients/client/go/api_project.go b/clients/client/go/api_project.go index 1f3dbf6e4cd..97b6f40771e 100644 --- a/clients/client/go/api_project.go +++ b/clients/client/go/api_project.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -151,8 +151,8 @@ type ProjectAPI interface { GetProjectMembers(ctx context.Context, project string) ProjectAPIGetProjectMembersRequest // GetProjectMembersExecute executes the request - // @return []CloudAccount - GetProjectMembersExecute(r ProjectAPIGetProjectMembersRequest) ([]CloudAccount, *http.Response, error) + // @return []ProjectMember + GetProjectMembersExecute(r ProjectAPIGetProjectMembersRequest) ([]ProjectMember, *http.Response, error) /* GetProjectMetrics Method for GetProjectMetrics @@ -1412,7 +1412,7 @@ type ProjectAPIGetProjectMembersRequest struct { project string } -func (r ProjectAPIGetProjectMembersRequest) Execute() ([]CloudAccount, *http.Response, error) { +func (r ProjectAPIGetProjectMembersRequest) Execute() ([]ProjectMember, *http.Response, error) { return r.ApiService.GetProjectMembersExecute(r) } @@ -1434,13 +1434,13 @@ func (a *ProjectAPIService) GetProjectMembers(ctx context.Context, project strin } // Execute executes the request -// @return []CloudAccount -func (a *ProjectAPIService) GetProjectMembersExecute(r ProjectAPIGetProjectMembersRequest) ([]CloudAccount, *http.Response, error) { +// @return []ProjectMember +func (a *ProjectAPIService) GetProjectMembersExecute(r ProjectAPIGetProjectMembersRequest) ([]ProjectMember, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue []CloudAccount + localVarReturnValue []ProjectMember ) localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ProjectAPIService.GetProjectMembers") @@ -1555,7 +1555,7 @@ func (r ProjectAPIGetProjectMetricsRequest) EventType(eventType string) ProjectA return r } -// The resolution of the buckets The minimum resolution is 1 hour. +// The resolution of the buckets The minimum resolution is 1 minute. func (r ProjectAPIGetProjectMetricsRequest) Resolution(resolution string) ProjectAPIGetProjectMetricsRequest { r.resolution = &resolution return r diff --git a/clients/client/go/api_relationship.go b/clients/client/go/api_relationship.go index d9ff70771b8..14b500e112c 100644 --- a/clients/client/go/api_relationship.go +++ b/clients/client/go/api_relationship.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/api_wellknown.go b/clients/client/go/api_wellknown.go index e01c961ab6b..2ea6ba7e519 100644 --- a/clients/client/go/api_wellknown.go +++ b/clients/client/go/api_wellknown.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/client.go b/clients/client/go/client.go index 15ca05cf395..279e75eb0db 100644 --- a/clients/client/go/client.go +++ b/clients/client/go/client.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -43,7 +43,7 @@ var ( queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Ory APIs API vv1.5.1 +// APIClient manages communication with the Ory APIs API vv1.8.1 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/clients/client/go/configuration.go b/clients/client/go/configuration.go index ca6f0df1bd8..36575cd8aed 100644 --- a/clients/client/go/configuration.go +++ b/clients/client/go/configuration.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/docs/AcceptOAuth2ConsentRequest.md b/clients/client/go/docs/AcceptOAuth2ConsentRequest.md index ec518b5d77d..29503ffc0c2 100644 --- a/clients/client/go/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/client/go/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Context** | Pointer to **map[string]interface{}** | | [optional] **GrantAccessTokenAudience** | Pointer to **[]string** | | [optional] **GrantScope** | Pointer to **[]string** | | [optional] **HandledAt** | Pointer to **time.Time** | | [optional] @@ -30,6 +31,31 @@ NewAcceptOAuth2ConsentRequestWithDefaults instantiates a new AcceptOAuth2Consent This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetContext + +`func (o *AcceptOAuth2ConsentRequest) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *AcceptOAuth2ConsentRequest) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *AcceptOAuth2ConsentRequest) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *AcceptOAuth2ConsentRequest) HasContext() bool` + +HasContext returns a boolean if a field has been set. + ### GetGrantAccessTokenAudience `func (o *AcceptOAuth2ConsentRequest) GetGrantAccessTokenAudience() []string` diff --git a/clients/client/go/docs/CloudAccount.md b/clients/client/go/docs/CloudAccount.md index 9f61dab0c16..e70bd270b92 100644 --- a/clients/client/go/docs/CloudAccount.md +++ b/clients/client/go/docs/CloudAccount.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Email** | Pointer to **string** | | [optional] -**Id** | Pointer to **string** | | [optional] -**Name** | Pointer to **string** | | [optional] +**Email** | **string** | | +**Id** | **string** | | +**Name** | **string** | | ## Methods ### NewCloudAccount -`func NewCloudAccount() *CloudAccount` +`func NewCloudAccount(email string, id string, name string, ) *CloudAccount` NewCloudAccount instantiates a new CloudAccount object This constructor will assign default values to properties that have it defined, @@ -46,11 +46,6 @@ and a boolean to check if the value has been set. SetEmail sets Email field to given value. -### HasEmail - -`func (o *CloudAccount) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. ### GetId @@ -71,11 +66,6 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. -### HasId - -`func (o *CloudAccount) HasId() bool` - -HasId returns a boolean if a field has been set. ### GetName @@ -96,11 +86,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *CloudAccount) HasName() bool` - -HasName returns a boolean if a field has been set. [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/CreateIdentityBody.md b/clients/client/go/docs/CreateIdentityBody.md index b847c7f70b9..7f65b7f7854 100644 --- a/clients/client/go/docs/CreateIdentityBody.md +++ b/clients/client/go/docs/CreateIdentityBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **MetadataPublic** | Pointer to **interface{}** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **RecoveryAddresses** | Pointer to [**[]RecoveryIdentityAddress**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**State** | Pointer to [**IdentityState**](IdentityState.md) | | [optional] +**State** | Pointer to **string** | State is the identity's state. active StateActive inactive StateInactive | [optional] **Traits** | **map[string]interface{}** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **VerifiableAddresses** | Pointer to [**[]VerifiableIdentityAddress**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] @@ -174,20 +174,20 @@ SetSchemaId sets SchemaId field to given value. ### GetState -`func (o *CreateIdentityBody) GetState() IdentityState` +`func (o *CreateIdentityBody) GetState() string` GetState returns the State field if non-nil, zero value otherwise. ### GetStateOk -`func (o *CreateIdentityBody) GetStateOk() (*IdentityState, bool)` +`func (o *CreateIdentityBody) GetStateOk() (*string, bool)` GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetState -`func (o *CreateIdentityBody) SetState(v IdentityState)` +`func (o *CreateIdentityBody) SetState(v string)` SetState sets State field to given value. diff --git a/clients/client/go/docs/CreateProjectBody.md b/clients/client/go/docs/CreateProjectBody.md index ade1de6d962..df01385f978 100644 --- a/clients/client/go/docs/CreateProjectBody.md +++ b/clients/client/go/docs/CreateProjectBody.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Environment** | **string** | The environment of the project. prod Production dev Development | **Name** | **string** | The name of the project to be created | **WorkspaceId** | Pointer to **NullableString** | | [optional] @@ -11,7 +12,7 @@ Name | Type | Description | Notes ### NewCreateProjectBody -`func NewCreateProjectBody(name string, ) *CreateProjectBody` +`func NewCreateProjectBody(environment string, name string, ) *CreateProjectBody` NewCreateProjectBody instantiates a new CreateProjectBody object This constructor will assign default values to properties that have it defined, @@ -26,6 +27,26 @@ NewCreateProjectBodyWithDefaults instantiates a new CreateProjectBody object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetEnvironment + +`func (o *CreateProjectBody) GetEnvironment() string` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *CreateProjectBody) GetEnvironmentOk() (*string, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *CreateProjectBody) SetEnvironment(v string)` + +SetEnvironment sets Environment field to given value. + + ### GetName `func (o *CreateProjectBody) GetName() string` diff --git a/clients/client/go/docs/CreateProjectNormalizedPayload.md b/clients/client/go/docs/CreateProjectNormalizedPayload.md index f8ac2557222..ac42e1a5698 100644 --- a/clients/client/go/docs/CreateProjectNormalizedPayload.md +++ b/clients/client/go/docs/CreateProjectNormalizedPayload.md @@ -6,12 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | Pointer to **time.Time** | The Project's Revision Creation Date | [optional] [readonly] **DisableAccountExperienceWelcomeScreen** | Pointer to **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**EnableAxV2** | Pointer to **bool** | Whether the new account experience is enabled and reachable. | [optional] +**Environment** | **string** | prod Production dev Development | **HydraOauth2AllowedTopLevelClaims** | Pointer to **[]string** | | [optional] **HydraOauth2ClientCredentialsDefaultGrantAllowedScope** | Pointer to **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **HydraOauth2ExcludeNotBeforeClaim** | Pointer to **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **HydraOauth2GrantJwtIatOptional** | Pointer to **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **HydraOauth2GrantJwtJtiOptional** | Pointer to **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **HydraOauth2GrantJwtMaxTtl** | Pointer to **string** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to "720h"] +**HydraOauth2MirrorTopLevelClaims** | Pointer to **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **HydraOauth2PkceEnforced** | Pointer to **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **HydraOauth2PkceEnforcedForPublicClients** | Pointer to **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **HydraOauth2RefreshTokenHook** | Pointer to **string** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +73,7 @@ Name | Type | Description | Notes **KratosCourierTemplatesLoginCodeValidEmailBodyHtml** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailSubject** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | Pointer to **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | Pointer to **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | Pointer to **string** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +159,7 @@ Name | Type | Description | Notes **KratosSelfserviceFlowsVerificationUse** | Pointer to **string** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **KratosSelfserviceMethodsCodeConfigLifespan** | Pointer to **string** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **KratosSelfserviceMethodsCodeEnabled** | Pointer to **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**KratosSelfserviceMethodsCodeMfaEnabled** | Pointer to **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **KratosSelfserviceMethodsCodePasswordlessEnabled** | Pointer to **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigBaseUrl** | Pointer to **string** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigLifespan** | Pointer to **string** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] @@ -198,7 +203,7 @@ Name | Type | Description | Notes ### NewCreateProjectNormalizedPayload -`func NewCreateProjectNormalizedPayload(name string, ) *CreateProjectNormalizedPayload` +`func NewCreateProjectNormalizedPayload(environment string, name string, ) *CreateProjectNormalizedPayload` NewCreateProjectNormalizedPayload instantiates a new CreateProjectNormalizedPayload object This constructor will assign default values to properties that have it defined, @@ -263,6 +268,51 @@ SetDisableAccountExperienceWelcomeScreen sets DisableAccountExperienceWelcomeScr HasDisableAccountExperienceWelcomeScreen returns a boolean if a field has been set. +### GetEnableAxV2 + +`func (o *CreateProjectNormalizedPayload) GetEnableAxV2() bool` + +GetEnableAxV2 returns the EnableAxV2 field if non-nil, zero value otherwise. + +### GetEnableAxV2Ok + +`func (o *CreateProjectNormalizedPayload) GetEnableAxV2Ok() (*bool, bool)` + +GetEnableAxV2Ok returns a tuple with the EnableAxV2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableAxV2 + +`func (o *CreateProjectNormalizedPayload) SetEnableAxV2(v bool)` + +SetEnableAxV2 sets EnableAxV2 field to given value. + +### HasEnableAxV2 + +`func (o *CreateProjectNormalizedPayload) HasEnableAxV2() bool` + +HasEnableAxV2 returns a boolean if a field has been set. + +### GetEnvironment + +`func (o *CreateProjectNormalizedPayload) GetEnvironment() string` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *CreateProjectNormalizedPayload) GetEnvironmentOk() (*string, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *CreateProjectNormalizedPayload) SetEnvironment(v string)` + +SetEnvironment sets Environment field to given value. + + ### GetHydraOauth2AllowedTopLevelClaims `func (o *CreateProjectNormalizedPayload) GetHydraOauth2AllowedTopLevelClaims() []string` @@ -413,6 +463,31 @@ SetHydraOauth2GrantJwtMaxTtl sets HydraOauth2GrantJwtMaxTtl field to given value HasHydraOauth2GrantJwtMaxTtl returns a boolean if a field has been set. +### GetHydraOauth2MirrorTopLevelClaims + +`func (o *CreateProjectNormalizedPayload) GetHydraOauth2MirrorTopLevelClaims() bool` + +GetHydraOauth2MirrorTopLevelClaims returns the HydraOauth2MirrorTopLevelClaims field if non-nil, zero value otherwise. + +### GetHydraOauth2MirrorTopLevelClaimsOk + +`func (o *CreateProjectNormalizedPayload) GetHydraOauth2MirrorTopLevelClaimsOk() (*bool, bool)` + +GetHydraOauth2MirrorTopLevelClaimsOk returns a tuple with the HydraOauth2MirrorTopLevelClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHydraOauth2MirrorTopLevelClaims + +`func (o *CreateProjectNormalizedPayload) SetHydraOauth2MirrorTopLevelClaims(v bool)` + +SetHydraOauth2MirrorTopLevelClaims sets HydraOauth2MirrorTopLevelClaims field to given value. + +### HasHydraOauth2MirrorTopLevelClaims + +`func (o *CreateProjectNormalizedPayload) HasHydraOauth2MirrorTopLevelClaims() bool` + +HasHydraOauth2MirrorTopLevelClaims returns a boolean if a field has been set. + ### GetHydraOauth2PkceEnforced `func (o *CreateProjectNormalizedPayload) GetHydraOauth2PkceEnforced() bool` @@ -1883,6 +1958,31 @@ SetKratosCourierTemplatesLoginCodeValidEmailSubject sets KratosCourierTemplatesL HasKratosCourierTemplatesLoginCodeValidEmailSubject returns a boolean if a field has been set. +### GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + +`func (o *CreateProjectNormalizedPayload) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() string` + +GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field if non-nil, zero value otherwise. + +### GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk + +`func (o *CreateProjectNormalizedPayload) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk() (*string, bool)` + +GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk returns a tuple with the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + +`func (o *CreateProjectNormalizedPayload) SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(v string)` + +SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext sets KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field to given value. + +### HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + +`func (o *CreateProjectNormalizedPayload) HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() bool` + +HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns a boolean if a field has been set. + ### GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml `func (o *CreateProjectNormalizedPayload) GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml() string` @@ -4018,6 +4118,31 @@ SetKratosSelfserviceMethodsCodeEnabled sets KratosSelfserviceMethodsCodeEnabled HasKratosSelfserviceMethodsCodeEnabled returns a boolean if a field has been set. +### GetKratosSelfserviceMethodsCodeMfaEnabled + +`func (o *CreateProjectNormalizedPayload) GetKratosSelfserviceMethodsCodeMfaEnabled() bool` + +GetKratosSelfserviceMethodsCodeMfaEnabled returns the KratosSelfserviceMethodsCodeMfaEnabled field if non-nil, zero value otherwise. + +### GetKratosSelfserviceMethodsCodeMfaEnabledOk + +`func (o *CreateProjectNormalizedPayload) GetKratosSelfserviceMethodsCodeMfaEnabledOk() (*bool, bool)` + +GetKratosSelfserviceMethodsCodeMfaEnabledOk returns a tuple with the KratosSelfserviceMethodsCodeMfaEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKratosSelfserviceMethodsCodeMfaEnabled + +`func (o *CreateProjectNormalizedPayload) SetKratosSelfserviceMethodsCodeMfaEnabled(v bool)` + +SetKratosSelfserviceMethodsCodeMfaEnabled sets KratosSelfserviceMethodsCodeMfaEnabled field to given value. + +### HasKratosSelfserviceMethodsCodeMfaEnabled + +`func (o *CreateProjectNormalizedPayload) HasKratosSelfserviceMethodsCodeMfaEnabled() bool` + +HasKratosSelfserviceMethodsCodeMfaEnabled returns a boolean if a field has been set. + ### GetKratosSelfserviceMethodsCodePasswordlessEnabled `func (o *CreateProjectNormalizedPayload) GetKratosSelfserviceMethodsCodePasswordlessEnabled() bool` diff --git a/clients/client/go/docs/CreateSubscriptionBody.md b/clients/client/go/docs/CreateSubscriptionBody.md index 7569cfc68dc..148f6b95f8a 100644 --- a/clients/client/go/docs/CreateSubscriptionBody.md +++ b/clients/client/go/docs/CreateSubscriptionBody.md @@ -7,15 +7,14 @@ Name | Type | Description | Notes **Currency** | Pointer to **string** | usd USD eur Euro | [optional] **Interval** | **string** | monthly Monthly yearly Yearly | **Plan** | **string** | | -**ProvisionFirstProject** | Pointer to **NullableString** | | [optional] +**ProvisionFirstProject** | **string** | | **ReturnTo** | Pointer to **string** | | [optional] -**Workspace** | Pointer to **NullableString** | | [optional] ## Methods ### NewCreateSubscriptionBody -`func NewCreateSubscriptionBody(interval string, plan string, ) *CreateSubscriptionBody` +`func NewCreateSubscriptionBody(interval string, plan string, provisionFirstProject string, ) *CreateSubscriptionBody` NewCreateSubscriptionBody instantiates a new CreateSubscriptionBody object This constructor will assign default values to properties that have it defined, @@ -114,22 +113,7 @@ and a boolean to check if the value has been set. SetProvisionFirstProject sets ProvisionFirstProject field to given value. -### HasProvisionFirstProject -`func (o *CreateSubscriptionBody) HasProvisionFirstProject() bool` - -HasProvisionFirstProject returns a boolean if a field has been set. - -### SetProvisionFirstProjectNil - -`func (o *CreateSubscriptionBody) SetProvisionFirstProjectNil(b bool)` - - SetProvisionFirstProjectNil sets the value for ProvisionFirstProject to be an explicit nil - -### UnsetProvisionFirstProject -`func (o *CreateSubscriptionBody) UnsetProvisionFirstProject()` - -UnsetProvisionFirstProject ensures that no value is present for ProvisionFirstProject, not even an explicit nil ### GetReturnTo `func (o *CreateSubscriptionBody) GetReturnTo() string` @@ -155,41 +139,6 @@ SetReturnTo sets ReturnTo field to given value. HasReturnTo returns a boolean if a field has been set. -### GetWorkspace - -`func (o *CreateSubscriptionBody) GetWorkspace() string` - -GetWorkspace returns the Workspace field if non-nil, zero value otherwise. - -### GetWorkspaceOk - -`func (o *CreateSubscriptionBody) GetWorkspaceOk() (*string, bool)` - -GetWorkspaceOk returns a tuple with the Workspace field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWorkspace - -`func (o *CreateSubscriptionBody) SetWorkspace(v string)` - -SetWorkspace sets Workspace field to given value. - -### HasWorkspace - -`func (o *CreateSubscriptionBody) HasWorkspace() bool` - -HasWorkspace returns a boolean if a field has been set. - -### SetWorkspaceNil - -`func (o *CreateSubscriptionBody) SetWorkspaceNil(b bool)` - - SetWorkspaceNil sets the value for Workspace to be an explicit nil - -### UnsetWorkspace -`func (o *CreateSubscriptionBody) UnsetWorkspace()` - -UnsetWorkspace ensures that no value is present for Workspace, not even an explicit nil [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/CreateSubscriptionCommon.md b/clients/client/go/docs/CreateSubscriptionCommon.md new file mode 100644 index 00000000000..61846ecd6ff --- /dev/null +++ b/clients/client/go/docs/CreateSubscriptionCommon.md @@ -0,0 +1,124 @@ +# CreateSubscriptionCommon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | Pointer to **string** | usd USD eur Euro | [optional] +**Interval** | **string** | monthly Monthly yearly Yearly | +**Plan** | **string** | | +**ReturnTo** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateSubscriptionCommon + +`func NewCreateSubscriptionCommon(interval string, plan string, ) *CreateSubscriptionCommon` + +NewCreateSubscriptionCommon instantiates a new CreateSubscriptionCommon object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateSubscriptionCommonWithDefaults + +`func NewCreateSubscriptionCommonWithDefaults() *CreateSubscriptionCommon` + +NewCreateSubscriptionCommonWithDefaults instantiates a new CreateSubscriptionCommon object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrency + +`func (o *CreateSubscriptionCommon) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *CreateSubscriptionCommon) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *CreateSubscriptionCommon) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *CreateSubscriptionCommon) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetInterval + +`func (o *CreateSubscriptionCommon) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *CreateSubscriptionCommon) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *CreateSubscriptionCommon) SetInterval(v string)` + +SetInterval sets Interval field to given value. + + +### GetPlan + +`func (o *CreateSubscriptionCommon) GetPlan() string` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *CreateSubscriptionCommon) GetPlanOk() (*string, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *CreateSubscriptionCommon) SetPlan(v string)` + +SetPlan sets Plan field to given value. + + +### GetReturnTo + +`func (o *CreateSubscriptionCommon) GetReturnTo() string` + +GetReturnTo returns the ReturnTo field if non-nil, zero value otherwise. + +### GetReturnToOk + +`func (o *CreateSubscriptionCommon) GetReturnToOk() (*string, bool)` + +GetReturnToOk returns a tuple with the ReturnTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnTo + +`func (o *CreateSubscriptionCommon) SetReturnTo(v string)` + +SetReturnTo sets ReturnTo field to given value. + +### HasReturnTo + +`func (o *CreateSubscriptionCommon) HasReturnTo() bool` + +HasReturnTo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/CreateWorkspacePayload.md b/clients/client/go/docs/CreateWorkspacePayload.md new file mode 100644 index 00000000000..bf5d8b2a3aa --- /dev/null +++ b/clients/client/go/docs/CreateWorkspacePayload.md @@ -0,0 +1,51 @@ +# CreateWorkspacePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the workspace | + +## Methods + +### NewCreateWorkspacePayload + +`func NewCreateWorkspacePayload(name string, ) *CreateWorkspacePayload` + +NewCreateWorkspacePayload instantiates a new CreateWorkspacePayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateWorkspacePayloadWithDefaults + +`func NewCreateWorkspacePayloadWithDefaults() *CreateWorkspacePayload` + +NewCreateWorkspacePayloadWithDefaults instantiates a new CreateWorkspacePayload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CreateWorkspacePayload) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CreateWorkspacePayload) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CreateWorkspacePayload) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/CreateWorkspaceSubscriptionBody.md b/clients/client/go/docs/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..91db4223ca8 --- /dev/null +++ b/clients/client/go/docs/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,124 @@ +# CreateWorkspaceSubscriptionBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Currency** | Pointer to **string** | usd USD eur Euro | [optional] +**Interval** | **string** | monthly Monthly yearly Yearly | +**Plan** | **string** | | +**ReturnTo** | Pointer to **string** | | [optional] + +## Methods + +### NewCreateWorkspaceSubscriptionBody + +`func NewCreateWorkspaceSubscriptionBody(interval string, plan string, ) *CreateWorkspaceSubscriptionBody` + +NewCreateWorkspaceSubscriptionBody instantiates a new CreateWorkspaceSubscriptionBody object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCreateWorkspaceSubscriptionBodyWithDefaults + +`func NewCreateWorkspaceSubscriptionBodyWithDefaults() *CreateWorkspaceSubscriptionBody` + +NewCreateWorkspaceSubscriptionBodyWithDefaults instantiates a new CreateWorkspaceSubscriptionBody object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCurrency + +`func (o *CreateWorkspaceSubscriptionBody) GetCurrency() string` + +GetCurrency returns the Currency field if non-nil, zero value otherwise. + +### GetCurrencyOk + +`func (o *CreateWorkspaceSubscriptionBody) GetCurrencyOk() (*string, bool)` + +GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrency + +`func (o *CreateWorkspaceSubscriptionBody) SetCurrency(v string)` + +SetCurrency sets Currency field to given value. + +### HasCurrency + +`func (o *CreateWorkspaceSubscriptionBody) HasCurrency() bool` + +HasCurrency returns a boolean if a field has been set. + +### GetInterval + +`func (o *CreateWorkspaceSubscriptionBody) GetInterval() string` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *CreateWorkspaceSubscriptionBody) GetIntervalOk() (*string, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *CreateWorkspaceSubscriptionBody) SetInterval(v string)` + +SetInterval sets Interval field to given value. + + +### GetPlan + +`func (o *CreateWorkspaceSubscriptionBody) GetPlan() string` + +GetPlan returns the Plan field if non-nil, zero value otherwise. + +### GetPlanOk + +`func (o *CreateWorkspaceSubscriptionBody) GetPlanOk() (*string, bool)` + +GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlan + +`func (o *CreateWorkspaceSubscriptionBody) SetPlan(v string)` + +SetPlan sets Plan field to given value. + + +### GetReturnTo + +`func (o *CreateWorkspaceSubscriptionBody) GetReturnTo() string` + +GetReturnTo returns the ReturnTo field if non-nil, zero value otherwise. + +### GetReturnToOk + +`func (o *CreateWorkspaceSubscriptionBody) GetReturnToOk() (*string, bool)` + +GetReturnToOk returns a tuple with the ReturnTo field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetReturnTo + +`func (o *CreateWorkspaceSubscriptionBody) SetReturnTo(v string)` + +SetReturnTo sets ReturnTo field to given value. + +### HasReturnTo + +`func (o *CreateWorkspaceSubscriptionBody) HasReturnTo() bool` + +HasReturnTo returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/FrontendAPI.md b/clients/client/go/docs/FrontendAPI.md index b85402aeaae..a052144310c 100644 --- a/clients/client/go/docs/FrontendAPI.md +++ b/clients/client/go/docs/FrontendAPI.md @@ -39,7 +39,7 @@ Method | HTTP request | Description ## CreateBrowserLoginFlow -> LoginFlow CreateBrowserLoginFlow(ctx).Refresh(refresh).Aal(aal).ReturnTo(returnTo).Cookie(cookie).LoginChallenge(loginChallenge).Organization(organization).Execute() +> LoginFlow CreateBrowserLoginFlow(ctx).Refresh(refresh).Aal(aal).ReturnTo(returnTo).Cookie(cookie).LoginChallenge(loginChallenge).Organization(organization).Via(via).Execute() Create Login Flow for Browsers @@ -64,10 +64,11 @@ func main() { cookie := "cookie_example" // string | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) loginChallenge := "loginChallenge_example" // string | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) organization := "organization_example" // string | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + via := "via_example" // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.FrontendAPI.CreateBrowserLoginFlow(context.Background()).Refresh(refresh).Aal(aal).ReturnTo(returnTo).Cookie(cookie).LoginChallenge(loginChallenge).Organization(organization).Execute() + resp, r, err := apiClient.FrontendAPI.CreateBrowserLoginFlow(context.Background()).Refresh(refresh).Aal(aal).ReturnTo(returnTo).Cookie(cookie).LoginChallenge(loginChallenge).Organization(organization).Via(via).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FrontendAPI.CreateBrowserLoginFlow``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -94,6 +95,7 @@ Name | Type | Description | Notes **cookie** | **string** | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | **loginChallenge** | **string** | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | **organization** | **string** | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | + **via** | **string** | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | ### Return type @@ -455,7 +457,7 @@ No authorization required ## CreateNativeLoginFlow -> LoginFlow CreateNativeLoginFlow(ctx).Refresh(refresh).Aal(aal).XSessionToken(xSessionToken).ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode).ReturnTo(returnTo).Execute() +> LoginFlow CreateNativeLoginFlow(ctx).Refresh(refresh).Aal(aal).XSessionToken(xSessionToken).ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode).ReturnTo(returnTo).Via(via).Execute() Create Login Flow for Native Apps @@ -479,10 +481,11 @@ func main() { xSessionToken := "xSessionToken_example" // string | The Session Token of the Identity performing the settings flow. (optional) returnSessionTokenExchangeCode := true // bool | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) returnTo := "returnTo_example" // string | The URL to return the browser to after the flow was completed. (optional) + via := "via_example" // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.FrontendAPI.CreateNativeLoginFlow(context.Background()).Refresh(refresh).Aal(aal).XSessionToken(xSessionToken).ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode).ReturnTo(returnTo).Execute() + resp, r, err := apiClient.FrontendAPI.CreateNativeLoginFlow(context.Background()).Refresh(refresh).Aal(aal).XSessionToken(xSessionToken).ReturnSessionTokenExchangeCode(returnSessionTokenExchangeCode).ReturnTo(returnTo).Via(via).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `FrontendAPI.CreateNativeLoginFlow``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -508,6 +511,7 @@ Name | Type | Description | Notes **xSessionToken** | **string** | The Session Token of the Identity performing the settings flow. | **returnSessionTokenExchangeCode** | **bool** | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | **returnTo** | **string** | The URL to return the browser to after the flow was completed. | + **via** | **string** | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | ### Return type diff --git a/clients/client/go/docs/Identity.md b/clients/client/go/docs/Identity.md index c86207015af..9971e0fcf55 100644 --- a/clients/client/go/docs/Identity.md +++ b/clients/client/go/docs/Identity.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **RecoveryAddresses** | Pointer to [**[]RecoveryIdentityAddress**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **SchemaUrl** | **string** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**State** | Pointer to [**IdentityState**](IdentityState.md) | | [optional] +**State** | Pointer to **string** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **StateChangedAt** | Pointer to **time.Time** | | [optional] **Traits** | **interface{}** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **UpdatedAt** | Pointer to **time.Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] @@ -280,20 +280,20 @@ SetSchemaUrl sets SchemaUrl field to given value. ### GetState -`func (o *Identity) GetState() IdentityState` +`func (o *Identity) GetState() string` GetState returns the State field if non-nil, zero value otherwise. ### GetStateOk -`func (o *Identity) GetStateOk() (*IdentityState, bool)` +`func (o *Identity) GetStateOk() (*string, bool)` GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetState -`func (o *Identity) SetState(v IdentityState)` +`func (o *Identity) SetState(v string)` SetState sets State field to given value. diff --git a/clients/client/go/docs/IdentityAPI.md b/clients/client/go/docs/IdentityAPI.md index 5dbbcaa93db..199789dfcc0 100644 --- a/clients/client/go/docs/IdentityAPI.md +++ b/clients/client/go/docs/IdentityAPI.md @@ -225,7 +225,7 @@ Name | Type | Description | Notes ## CreateRecoveryLinkForIdentity -> RecoveryLinkForIdentity CreateRecoveryLinkForIdentity(ctx).CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody).Execute() +> RecoveryLinkForIdentity CreateRecoveryLinkForIdentity(ctx).ReturnTo(returnTo).CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody).Execute() Create a Recovery Link @@ -244,11 +244,12 @@ import ( ) func main() { + returnTo := "returnTo_example" // string | (optional) createRecoveryLinkForIdentityBody := *openapiclient.NewCreateRecoveryLinkForIdentityBody("IdentityId_example") // CreateRecoveryLinkForIdentityBody | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody).Execute() + resp, r, err := apiClient.IdentityAPI.CreateRecoveryLinkForIdentity(context.Background()).ReturnTo(returnTo).CreateRecoveryLinkForIdentityBody(createRecoveryLinkForIdentityBody).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IdentityAPI.CreateRecoveryLinkForIdentity``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -269,6 +270,7 @@ Other parameters are passed through a pointer to a apiCreateRecoveryLinkForIdent Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **returnTo** | **string** | | **createRecoveryLinkForIdentityBody** | [**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md) | | ### Return type @@ -379,7 +381,7 @@ import ( func main() { id := "id_example" // string | ID is the identity's ID. - type_ := "type__example" // string | Type is the credential's Type. One of totp, webauthn, lookup + type_ := "type__example" // string | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -398,7 +400,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. **id** | **string** | ID is the identity's ID. | -**type_** | **string** | Type is the credential's Type. One of totp, webauthn, lookup | +**type_** | **string** | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | ### Other Parameters @@ -850,7 +852,7 @@ Name | Type | Description | Notes ## ListIdentities -> []Identity ListIdentities(ctx).PerPage(perPage).Page(page).PageSize(pageSize).PageToken(pageToken).Consistency(consistency).IdsFilter(idsFilter).CredentialsIdentifier(credentialsIdentifier).PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar).Execute() +> []Identity ListIdentities(ctx).PerPage(perPage).Page(page).PageSize(pageSize).PageToken(pageToken).Consistency(consistency).Ids(ids).CredentialsIdentifier(credentialsIdentifier).PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar).IncludeCredential(includeCredential).Execute() List Identities @@ -874,13 +876,14 @@ func main() { pageSize := int64(789) // int64 | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250) pageToken := "pageToken_example" // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1") consistency := "consistency_example" // string | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - idsFilter := []string{"Inner_example"} // []string | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + ids := []string{"Inner_example"} // []string | List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) credentialsIdentifier := "credentialsIdentifier_example" // string | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) previewCredentialsIdentifierSimilar := "previewCredentialsIdentifierSimilar_example" // string | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + includeCredential := []string{"Inner_example"} // []string | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IdentityAPI.ListIdentities(context.Background()).PerPage(perPage).Page(page).PageSize(pageSize).PageToken(pageToken).Consistency(consistency).IdsFilter(idsFilter).CredentialsIdentifier(credentialsIdentifier).PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar).Execute() + resp, r, err := apiClient.IdentityAPI.ListIdentities(context.Background()).PerPage(perPage).Page(page).PageSize(pageSize).PageToken(pageToken).Consistency(consistency).Ids(ids).CredentialsIdentifier(credentialsIdentifier).PreviewCredentialsIdentifierSimilar(previewCredentialsIdentifierSimilar).IncludeCredential(includeCredential).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IdentityAPI.ListIdentities``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -906,9 +909,10 @@ Name | Type | Description | Notes **pageSize** | **int64** | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [default to 250] **pageToken** | **string** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [default to "1"] **consistency** | **string** | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | - **idsFilter** | **[]string** | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | + **ids** | **[]string** | List of ids used to filter identities. If this list is empty, then no filter will be applied. | **credentialsIdentifier** | **string** | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | **previewCredentialsIdentifierSimilar** | **string** | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | + **includeCredential** | **[]string** | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | ### Return type @@ -1246,7 +1250,7 @@ import ( func main() { id := "id_example" // string | ID must be set to the ID of identity you want to update - updateIdentityBody := *openapiclient.NewUpdateIdentityBody("SchemaId_example", openapiclient.identityState("active"), map[string]interface{}(123)) // UpdateIdentityBody | (optional) + updateIdentityBody := *openapiclient.NewUpdateIdentityBody("SchemaId_example", "State_example", map[string]interface{}(123)) // UpdateIdentityBody | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/clients/client/go/docs/IdentityCredentials.md b/clients/client/go/docs/IdentityCredentials.md index 19b869b000b..49516782bc3 100644 --- a/clients/client/go/docs/IdentityCredentials.md +++ b/clients/client/go/docs/IdentityCredentials.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Config** | Pointer to **map[string]interface{}** | | [optional] **CreatedAt** | Pointer to **time.Time** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **Identifiers** | Pointer to **[]string** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**Type** | Pointer to [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**Type** | Pointer to **string** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **UpdatedAt** | Pointer to **time.Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **Version** | Pointer to **int64** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] @@ -107,20 +107,20 @@ HasIdentifiers returns a boolean if a field has been set. ### GetType -`func (o *IdentityCredentials) GetType() IdentityCredentialsType` +`func (o *IdentityCredentials) GetType() string` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *IdentityCredentials) GetTypeOk() (*IdentityCredentialsType, bool)` +`func (o *IdentityCredentials) GetTypeOk() (*string, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *IdentityCredentials) SetType(v IdentityCredentialsType)` +`func (o *IdentityCredentials) SetType(v string)` SetType sets Type field to given value. diff --git a/clients/client/go/docs/IdentityCredentialsCode.md b/clients/client/go/docs/IdentityCredentialsCode.md index 7db76078a10..e1e7665b0e5 100644 --- a/clients/client/go/docs/IdentityCredentialsCode.md +++ b/clients/client/go/docs/IdentityCredentialsCode.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**AddressType** | Pointer to **string** | | [optional] +**AddressType** | Pointer to **string** | The type of the address for this code | [optional] **UsedAt** | Pointer to **NullableTime** | | [optional] ## Methods diff --git a/clients/client/go/docs/IdentityCredentialsType.md b/clients/client/go/docs/IdentityCredentialsType.md deleted file mode 100644 index 20dcdeed1dd..00000000000 --- a/clients/client/go/docs/IdentityCredentialsType.md +++ /dev/null @@ -1,21 +0,0 @@ -# IdentityCredentialsType - -## Enum - - -* `PASSWORD` (value: `"password"`) - -* `TOTP` (value: `"totp"`) - -* `OIDC` (value: `"oidc"`) - -* `WEBAUTHN` (value: `"webauthn"`) - -* `LOOKUP_SECRET` (value: `"lookup_secret"`) - -* `CODE` (value: `"code"`) - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/clients/client/go/docs/InternalProvisionMockSubscription.md b/clients/client/go/docs/InternalProvisionMockSubscription.md deleted file mode 100644 index 397ba3594a5..00000000000 --- a/clients/client/go/docs/InternalProvisionMockSubscription.md +++ /dev/null @@ -1,114 +0,0 @@ -# InternalProvisionMockSubscription - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Currency** | **string** | Currency usd USD eur Euro | -**IdentityId** | **string** | Identity ID | -**Interval** | **string** | Billing Interval monthly Monthly yearly Yearly | -**Plan** | **string** | Plan ID | - -## Methods - -### NewInternalProvisionMockSubscription - -`func NewInternalProvisionMockSubscription(currency string, identityId string, interval string, plan string, ) *InternalProvisionMockSubscription` - -NewInternalProvisionMockSubscription instantiates a new InternalProvisionMockSubscription object -This constructor will assign default values to properties that have it defined, -and makes sure properties required by API are set, but the set of arguments -will change when the set of required properties is changed - -### NewInternalProvisionMockSubscriptionWithDefaults - -`func NewInternalProvisionMockSubscriptionWithDefaults() *InternalProvisionMockSubscription` - -NewInternalProvisionMockSubscriptionWithDefaults instantiates a new InternalProvisionMockSubscription object -This constructor will only assign default values to properties that have it defined, -but it doesn't guarantee that properties required by API are set - -### GetCurrency - -`func (o *InternalProvisionMockSubscription) GetCurrency() string` - -GetCurrency returns the Currency field if non-nil, zero value otherwise. - -### GetCurrencyOk - -`func (o *InternalProvisionMockSubscription) GetCurrencyOk() (*string, bool)` - -GetCurrencyOk returns a tuple with the Currency field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCurrency - -`func (o *InternalProvisionMockSubscription) SetCurrency(v string)` - -SetCurrency sets Currency field to given value. - - -### GetIdentityId - -`func (o *InternalProvisionMockSubscription) GetIdentityId() string` - -GetIdentityId returns the IdentityId field if non-nil, zero value otherwise. - -### GetIdentityIdOk - -`func (o *InternalProvisionMockSubscription) GetIdentityIdOk() (*string, bool)` - -GetIdentityIdOk returns a tuple with the IdentityId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIdentityId - -`func (o *InternalProvisionMockSubscription) SetIdentityId(v string)` - -SetIdentityId sets IdentityId field to given value. - - -### GetInterval - -`func (o *InternalProvisionMockSubscription) GetInterval() string` - -GetInterval returns the Interval field if non-nil, zero value otherwise. - -### GetIntervalOk - -`func (o *InternalProvisionMockSubscription) GetIntervalOk() (*string, bool)` - -GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterval - -`func (o *InternalProvisionMockSubscription) SetInterval(v string)` - -SetInterval sets Interval field to given value. - - -### GetPlan - -`func (o *InternalProvisionMockSubscription) GetPlan() string` - -GetPlan returns the Plan field if non-nil, zero value otherwise. - -### GetPlanOk - -`func (o *InternalProvisionMockSubscription) GetPlanOk() (*string, bool)` - -GetPlanOk returns a tuple with the Plan field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlan - -`func (o *InternalProvisionMockSubscription) SetPlan(v string)` - -SetPlan sets Plan field to given value. - - - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/clients/client/go/docs/ListMyWorkspacesResponse.md b/clients/client/go/docs/ListMyWorkspacesResponse.md index f8eba5ad907..47371f2f37f 100644 --- a/clients/client/go/docs/ListMyWorkspacesResponse.md +++ b/clients/client/go/docs/ListMyWorkspacesResponse.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **HasNextPage** | **bool** | | **NextPageToken** | **string** | | -**Workspaces** | [**[]Workspace**](Workspace.md) | | +**Workspaces** | [**[]WorkspaceMeta**](WorkspaceMeta.md) | | ## Methods ### NewListMyWorkspacesResponse -`func NewListMyWorkspacesResponse(hasNextPage bool, nextPageToken string, workspaces []Workspace, ) *ListMyWorkspacesResponse` +`func NewListMyWorkspacesResponse(hasNextPage bool, nextPageToken string, workspaces []WorkspaceMeta, ) *ListMyWorkspacesResponse` NewListMyWorkspacesResponse instantiates a new ListMyWorkspacesResponse object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetNextPageToken sets NextPageToken field to given value. ### GetWorkspaces -`func (o *ListMyWorkspacesResponse) GetWorkspaces() []Workspace` +`func (o *ListMyWorkspacesResponse) GetWorkspaces() []WorkspaceMeta` GetWorkspaces returns the Workspaces field if non-nil, zero value otherwise. ### GetWorkspacesOk -`func (o *ListMyWorkspacesResponse) GetWorkspacesOk() (*[]Workspace, bool)` +`func (o *ListMyWorkspacesResponse) GetWorkspacesOk() (*[]WorkspaceMeta, bool)` GetWorkspacesOk returns a tuple with the Workspaces field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWorkspaces -`func (o *ListMyWorkspacesResponse) SetWorkspaces(v []Workspace)` +`func (o *ListMyWorkspacesResponse) SetWorkspaces(v []WorkspaceMeta)` SetWorkspaces sets Workspaces field to given value. diff --git a/clients/client/go/docs/ListWorkspaceProjectsResponse.md b/clients/client/go/docs/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..95ebd170f95 --- /dev/null +++ b/clients/client/go/docs/ListWorkspaceProjectsResponse.md @@ -0,0 +1,93 @@ +# ListWorkspaceProjectsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**HasNextPage** | **bool** | | +**NextPage** | **string** | | +**Projects** | [**[]ProjectMetadata**](ProjectMetadata.md) | | + +## Methods + +### NewListWorkspaceProjectsResponse + +`func NewListWorkspaceProjectsResponse(hasNextPage bool, nextPage string, projects []ProjectMetadata, ) *ListWorkspaceProjectsResponse` + +NewListWorkspaceProjectsResponse instantiates a new ListWorkspaceProjectsResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewListWorkspaceProjectsResponseWithDefaults + +`func NewListWorkspaceProjectsResponseWithDefaults() *ListWorkspaceProjectsResponse` + +NewListWorkspaceProjectsResponseWithDefaults instantiates a new ListWorkspaceProjectsResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetHasNextPage + +`func (o *ListWorkspaceProjectsResponse) GetHasNextPage() bool` + +GetHasNextPage returns the HasNextPage field if non-nil, zero value otherwise. + +### GetHasNextPageOk + +`func (o *ListWorkspaceProjectsResponse) GetHasNextPageOk() (*bool, bool)` + +GetHasNextPageOk returns a tuple with the HasNextPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHasNextPage + +`func (o *ListWorkspaceProjectsResponse) SetHasNextPage(v bool)` + +SetHasNextPage sets HasNextPage field to given value. + + +### GetNextPage + +`func (o *ListWorkspaceProjectsResponse) GetNextPage() string` + +GetNextPage returns the NextPage field if non-nil, zero value otherwise. + +### GetNextPageOk + +`func (o *ListWorkspaceProjectsResponse) GetNextPageOk() (*string, bool)` + +GetNextPageOk returns a tuple with the NextPage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNextPage + +`func (o *ListWorkspaceProjectsResponse) SetNextPage(v string)` + +SetNextPage sets NextPage field to given value. + + +### GetProjects + +`func (o *ListWorkspaceProjectsResponse) GetProjects() []ProjectMetadata` + +GetProjects returns the Projects field if non-nil, zero value otherwise. + +### GetProjectsOk + +`func (o *ListWorkspaceProjectsResponse) GetProjectsOk() (*[]ProjectMetadata, bool)` + +GetProjectsOk returns a tuple with the Projects field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjects + +`func (o *ListWorkspaceProjectsResponse) SetProjects(v []ProjectMetadata)` + +SetProjects sets Projects field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/LoginFlow.md b/clients/client/go/docs/LoginFlow.md index 9716d1d288d..98556b3b1bf 100644 --- a/clients/client/go/docs/LoginFlow.md +++ b/clients/client/go/docs/LoginFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | Pointer to [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**Active** | Pointer to **string** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **CreatedAt** | Pointer to **time.Time** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **ExpiresAt** | **time.Time** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **Id** | **string** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> | @@ -18,6 +18,7 @@ Name | Type | Description | Notes **ReturnTo** | Pointer to **string** | ReturnTo contains the requested return_to URL. | [optional] **SessionTokenExchangeCode** | Pointer to **string** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] **State** | **interface{}** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | +**TransientPayload** | Pointer to **map[string]interface{}** | TransientPayload is used to pass data from the login to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**UiContainer**](UiContainer.md) | | **UpdatedAt** | Pointer to **time.Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] @@ -43,20 +44,20 @@ but it doesn't guarantee that properties required by API are set ### GetActive -`func (o *LoginFlow) GetActive() IdentityCredentialsType` +`func (o *LoginFlow) GetActive() string` GetActive returns the Active field if non-nil, zero value otherwise. ### GetActiveOk -`func (o *LoginFlow) GetActiveOk() (*IdentityCredentialsType, bool)` +`func (o *LoginFlow) GetActiveOk() (*string, bool)` GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetActive -`func (o *LoginFlow) SetActive(v IdentityCredentialsType)` +`func (o *LoginFlow) SetActive(v string)` SetActive sets Active field to given value. @@ -386,6 +387,31 @@ SetState sets State field to given value. `func (o *LoginFlow) UnsetState()` UnsetState ensures that no value is present for State, not even an explicit nil +### GetTransientPayload + +`func (o *LoginFlow) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *LoginFlow) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *LoginFlow) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *LoginFlow) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetType `func (o *LoginFlow) GetType() string` diff --git a/clients/client/go/docs/MigrationOptions.md b/clients/client/go/docs/MigrationOptions.md new file mode 100644 index 00000000000..60432477682 --- /dev/null +++ b/clients/client/go/docs/MigrationOptions.md @@ -0,0 +1,72 @@ +# MigrationOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Environment** | **string** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | +**ProjectSubscription** | **string** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | + +## Methods + +### NewMigrationOptions + +`func NewMigrationOptions(environment string, projectSubscription string, ) *MigrationOptions` + +NewMigrationOptions instantiates a new MigrationOptions object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewMigrationOptionsWithDefaults + +`func NewMigrationOptionsWithDefaults() *MigrationOptions` + +NewMigrationOptionsWithDefaults instantiates a new MigrationOptions object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEnvironment + +`func (o *MigrationOptions) GetEnvironment() string` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *MigrationOptions) GetEnvironmentOk() (*string, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *MigrationOptions) SetEnvironment(v string)` + +SetEnvironment sets Environment field to given value. + + +### GetProjectSubscription + +`func (o *MigrationOptions) GetProjectSubscription() string` + +GetProjectSubscription returns the ProjectSubscription field if non-nil, zero value otherwise. + +### GetProjectSubscriptionOk + +`func (o *MigrationOptions) GetProjectSubscriptionOk() (*string, bool)` + +GetProjectSubscriptionOk returns a tuple with the ProjectSubscription field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProjectSubscription + +`func (o *MigrationOptions) SetProjectSubscription(v string)` + +SetProjectSubscription sets ProjectSubscription field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/NormalizedProjectRevision.md b/clients/client/go/docs/NormalizedProjectRevision.md index f7cef4b7c51..136708a1e25 100644 --- a/clients/client/go/docs/NormalizedProjectRevision.md +++ b/clients/client/go/docs/NormalizedProjectRevision.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | Pointer to **time.Time** | The Project's Revision Creation Date | [optional] [readonly] **DisableAccountExperienceWelcomeScreen** | Pointer to **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**EnableAxV2** | Pointer to **bool** | Whether the new account experience is enabled and reachable. | [optional] **HydraOauth2AllowedTopLevelClaims** | Pointer to **[]string** | | [optional] **HydraOauth2ClientCredentialsDefaultGrantAllowedScope** | Pointer to **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **HydraOauth2ExcludeNotBeforeClaim** | Pointer to **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **HydraOauth2GrantJwtIatOptional** | Pointer to **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **HydraOauth2GrantJwtJtiOptional** | Pointer to **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **HydraOauth2GrantJwtMaxTtl** | Pointer to **string** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to "720h"] +**HydraOauth2MirrorTopLevelClaims** | Pointer to **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **HydraOauth2PkceEnforced** | Pointer to **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **HydraOauth2PkceEnforcedForPublicClients** | Pointer to **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **HydraOauth2RefreshTokenHook** | Pointer to **string** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +72,7 @@ Name | Type | Description | Notes **KratosCourierTemplatesLoginCodeValidEmailBodyHtml** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesLoginCodeValidEmailSubject** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | Pointer to **string** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | Pointer to **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | Pointer to **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **KratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | Pointer to **string** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +158,7 @@ Name | Type | Description | Notes **KratosSelfserviceFlowsVerificationUse** | Pointer to **string** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **KratosSelfserviceMethodsCodeConfigLifespan** | Pointer to **string** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **KratosSelfserviceMethodsCodeEnabled** | Pointer to **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**KratosSelfserviceMethodsCodeMfaEnabled** | Pointer to **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **KratosSelfserviceMethodsCodePasswordlessEnabled** | Pointer to **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigBaseUrl** | Pointer to **string** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **KratosSelfserviceMethodsLinkConfigLifespan** | Pointer to **string** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] @@ -262,6 +266,31 @@ SetDisableAccountExperienceWelcomeScreen sets DisableAccountExperienceWelcomeScr HasDisableAccountExperienceWelcomeScreen returns a boolean if a field has been set. +### GetEnableAxV2 + +`func (o *NormalizedProjectRevision) GetEnableAxV2() bool` + +GetEnableAxV2 returns the EnableAxV2 field if non-nil, zero value otherwise. + +### GetEnableAxV2Ok + +`func (o *NormalizedProjectRevision) GetEnableAxV2Ok() (*bool, bool)` + +GetEnableAxV2Ok returns a tuple with the EnableAxV2 field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnableAxV2 + +`func (o *NormalizedProjectRevision) SetEnableAxV2(v bool)` + +SetEnableAxV2 sets EnableAxV2 field to given value. + +### HasEnableAxV2 + +`func (o *NormalizedProjectRevision) HasEnableAxV2() bool` + +HasEnableAxV2 returns a boolean if a field has been set. + ### GetHydraOauth2AllowedTopLevelClaims `func (o *NormalizedProjectRevision) GetHydraOauth2AllowedTopLevelClaims() []string` @@ -412,6 +441,31 @@ SetHydraOauth2GrantJwtMaxTtl sets HydraOauth2GrantJwtMaxTtl field to given value HasHydraOauth2GrantJwtMaxTtl returns a boolean if a field has been set. +### GetHydraOauth2MirrorTopLevelClaims + +`func (o *NormalizedProjectRevision) GetHydraOauth2MirrorTopLevelClaims() bool` + +GetHydraOauth2MirrorTopLevelClaims returns the HydraOauth2MirrorTopLevelClaims field if non-nil, zero value otherwise. + +### GetHydraOauth2MirrorTopLevelClaimsOk + +`func (o *NormalizedProjectRevision) GetHydraOauth2MirrorTopLevelClaimsOk() (*bool, bool)` + +GetHydraOauth2MirrorTopLevelClaimsOk returns a tuple with the HydraOauth2MirrorTopLevelClaims field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetHydraOauth2MirrorTopLevelClaims + +`func (o *NormalizedProjectRevision) SetHydraOauth2MirrorTopLevelClaims(v bool)` + +SetHydraOauth2MirrorTopLevelClaims sets HydraOauth2MirrorTopLevelClaims field to given value. + +### HasHydraOauth2MirrorTopLevelClaims + +`func (o *NormalizedProjectRevision) HasHydraOauth2MirrorTopLevelClaims() bool` + +HasHydraOauth2MirrorTopLevelClaims returns a boolean if a field has been set. + ### GetHydraOauth2PkceEnforced `func (o *NormalizedProjectRevision) GetHydraOauth2PkceEnforced() bool` @@ -1882,6 +1936,31 @@ SetKratosCourierTemplatesLoginCodeValidEmailSubject sets KratosCourierTemplatesL HasKratosCourierTemplatesLoginCodeValidEmailSubject returns a boolean if a field has been set. +### GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + +`func (o *NormalizedProjectRevision) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() string` + +GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field if non-nil, zero value otherwise. + +### GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk + +`func (o *NormalizedProjectRevision) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk() (*string, bool)` + +GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk returns a tuple with the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + +`func (o *NormalizedProjectRevision) SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(v string)` + +SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext sets KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field to given value. + +### HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + +`func (o *NormalizedProjectRevision) HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() bool` + +HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns a boolean if a field has been set. + ### GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml `func (o *NormalizedProjectRevision) GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml() string` @@ -4017,6 +4096,31 @@ SetKratosSelfserviceMethodsCodeEnabled sets KratosSelfserviceMethodsCodeEnabled HasKratosSelfserviceMethodsCodeEnabled returns a boolean if a field has been set. +### GetKratosSelfserviceMethodsCodeMfaEnabled + +`func (o *NormalizedProjectRevision) GetKratosSelfserviceMethodsCodeMfaEnabled() bool` + +GetKratosSelfserviceMethodsCodeMfaEnabled returns the KratosSelfserviceMethodsCodeMfaEnabled field if non-nil, zero value otherwise. + +### GetKratosSelfserviceMethodsCodeMfaEnabledOk + +`func (o *NormalizedProjectRevision) GetKratosSelfserviceMethodsCodeMfaEnabledOk() (*bool, bool)` + +GetKratosSelfserviceMethodsCodeMfaEnabledOk returns a tuple with the KratosSelfserviceMethodsCodeMfaEnabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetKratosSelfserviceMethodsCodeMfaEnabled + +`func (o *NormalizedProjectRevision) SetKratosSelfserviceMethodsCodeMfaEnabled(v bool)` + +SetKratosSelfserviceMethodsCodeMfaEnabled sets KratosSelfserviceMethodsCodeMfaEnabled field to given value. + +### HasKratosSelfserviceMethodsCodeMfaEnabled + +`func (o *NormalizedProjectRevision) HasKratosSelfserviceMethodsCodeMfaEnabled() bool` + +HasKratosSelfserviceMethodsCodeMfaEnabled returns a boolean if a field has been set. + ### GetKratosSelfserviceMethodsCodePasswordlessEnabled `func (o *NormalizedProjectRevision) GetKratosSelfserviceMethodsCodePasswordlessEnabled() bool` diff --git a/clients/client/go/docs/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/go/docs/NormalizedProjectRevisionThirdPartyProvider.md index c889efad97f..cac45b5a74f 100644 --- a/clients/client/go/docs/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/go/docs/NormalizedProjectRevisionThirdPartyProvider.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **AppleTeamId** | Pointer to **string** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] **AuthUrl** | Pointer to **string** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] **AzureTenant** | Pointer to **string** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] +**ClaimsSource** | Pointer to **NullableString** | | [optional] **ClientId** | Pointer to **string** | ClientID is the application's Client ID. | [optional] **ClientSecret** | Pointer to **NullableString** | | [optional] **CreatedAt** | Pointer to **time.Time** | The Project's Revision Creation Date | [optional] [readonly] @@ -207,6 +208,41 @@ SetAzureTenant sets AzureTenant field to given value. HasAzureTenant returns a boolean if a field has been set. +### GetClaimsSource + +`func (o *NormalizedProjectRevisionThirdPartyProvider) GetClaimsSource() string` + +GetClaimsSource returns the ClaimsSource field if non-nil, zero value otherwise. + +### GetClaimsSourceOk + +`func (o *NormalizedProjectRevisionThirdPartyProvider) GetClaimsSourceOk() (*string, bool)` + +GetClaimsSourceOk returns a tuple with the ClaimsSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClaimsSource + +`func (o *NormalizedProjectRevisionThirdPartyProvider) SetClaimsSource(v string)` + +SetClaimsSource sets ClaimsSource field to given value. + +### HasClaimsSource + +`func (o *NormalizedProjectRevisionThirdPartyProvider) HasClaimsSource() bool` + +HasClaimsSource returns a boolean if a field has been set. + +### SetClaimsSourceNil + +`func (o *NormalizedProjectRevisionThirdPartyProvider) SetClaimsSourceNil(b bool)` + + SetClaimsSourceNil sets the value for ClaimsSource to be an explicit nil + +### UnsetClaimsSource +`func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetClaimsSource()` + +UnsetClaimsSource ensures that no value is present for ClaimsSource, not even an explicit nil ### GetClientId `func (o *NormalizedProjectRevisionThirdPartyProvider) GetClientId() string` diff --git a/clients/client/go/docs/OAuth2Client.md b/clients/client/go/docs/OAuth2Client.md index 7aeaedbb882..ac1159bedb6 100644 --- a/clients/client/go/docs/OAuth2Client.md +++ b/clients/client/go/docs/OAuth2Client.md @@ -45,6 +45,7 @@ Name | Type | Description | Notes **Scope** | Pointer to **string** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **SectorIdentifierUri** | Pointer to **string** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **SkipConsent** | Pointer to **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**SkipLogoutConsent** | Pointer to **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **SubjectType** | Pointer to **string** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **TokenEndpointAuthMethod** | Pointer to **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to "client_secret_basic"] **TokenEndpointAuthSigningAlg** | Pointer to **string** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] @@ -1206,6 +1207,31 @@ SetSkipConsent sets SkipConsent field to given value. HasSkipConsent returns a boolean if a field has been set. +### GetSkipLogoutConsent + +`func (o *OAuth2Client) GetSkipLogoutConsent() bool` + +GetSkipLogoutConsent returns the SkipLogoutConsent field if non-nil, zero value otherwise. + +### GetSkipLogoutConsentOk + +`func (o *OAuth2Client) GetSkipLogoutConsentOk() (*bool, bool)` + +GetSkipLogoutConsentOk returns a tuple with the SkipLogoutConsent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSkipLogoutConsent + +`func (o *OAuth2Client) SetSkipLogoutConsent(v bool)` + +SetSkipLogoutConsent sets SkipLogoutConsent field to given value. + +### HasSkipLogoutConsent + +`func (o *OAuth2Client) HasSkipLogoutConsent() bool` + +HasSkipLogoutConsent returns a boolean if a field has been set. + ### GetSubjectType `func (o *OAuth2Client) GetSubjectType() string` diff --git a/clients/client/go/docs/OAuth2ConsentSession.md b/clients/client/go/docs/OAuth2ConsentSession.md index 732ecca2a3f..523f2dca552 100644 --- a/clients/client/go/docs/OAuth2ConsentSession.md +++ b/clients/client/go/docs/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConsentRequest** | Pointer to [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**Context** | Pointer to **map[string]interface{}** | | [optional] **ExpiresAt** | Pointer to [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **GrantAccessTokenAudience** | Pointer to **[]string** | | [optional] **GrantScope** | Pointer to **[]string** | | [optional] @@ -57,6 +58,31 @@ SetConsentRequest sets ConsentRequest field to given value. HasConsentRequest returns a boolean if a field has been set. +### GetContext + +`func (o *OAuth2ConsentSession) GetContext() map[string]interface{}` + +GetContext returns the Context field if non-nil, zero value otherwise. + +### GetContextOk + +`func (o *OAuth2ConsentSession) GetContextOk() (*map[string]interface{}, bool)` + +GetContextOk returns a tuple with the Context field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContext + +`func (o *OAuth2ConsentSession) SetContext(v map[string]interface{})` + +SetContext sets Context field to given value. + +### HasContext + +`func (o *OAuth2ConsentSession) HasContext() bool` + +HasContext returns a boolean if a field has been set. + ### GetExpiresAt `func (o *OAuth2ConsentSession) GetExpiresAt() OAuth2ConsentSessionExpiresAt` diff --git a/clients/client/go/docs/PermissionAPI.md b/clients/client/go/docs/PermissionAPI.md index 1c122b4cd65..6beee3b8096 100644 --- a/clients/client/go/docs/PermissionAPI.md +++ b/clients/client/go/docs/PermissionAPI.md @@ -333,7 +333,7 @@ import ( ) func main() { - maxDepth := int64(789) // int64 | nolint:deadcode,unused (optional) + maxDepth := int64(789) // int64 | (optional) postCheckPermissionOrErrorBody := *openapiclient.NewPostCheckPermissionOrErrorBody() // PostCheckPermissionOrErrorBody | (optional) configuration := openapiclient.NewConfiguration() @@ -359,7 +359,7 @@ Other parameters are passed through a pointer to a apiPostCheckPermissionOrError Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **maxDepth** | **int64** | nolint:deadcode,unused | + **maxDepth** | **int64** | | **postCheckPermissionOrErrorBody** | [**PostCheckPermissionOrErrorBody**](PostCheckPermissionOrErrorBody.md) | | ### Return type diff --git a/clients/client/go/docs/PermissionsOnWorkpaceResponse.md b/clients/client/go/docs/PermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..92940a5860c --- /dev/null +++ b/clients/client/go/docs/PermissionsOnWorkpaceResponse.md @@ -0,0 +1,56 @@ +# PermissionsOnWorkpaceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Permissions** | Pointer to **map[string]bool** | | [optional] + +## Methods + +### NewPermissionsOnWorkpaceResponse + +`func NewPermissionsOnWorkpaceResponse() *PermissionsOnWorkpaceResponse` + +NewPermissionsOnWorkpaceResponse instantiates a new PermissionsOnWorkpaceResponse object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPermissionsOnWorkpaceResponseWithDefaults + +`func NewPermissionsOnWorkpaceResponseWithDefaults() *PermissionsOnWorkpaceResponse` + +NewPermissionsOnWorkpaceResponseWithDefaults instantiates a new PermissionsOnWorkpaceResponse object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetPermissions + +`func (o *PermissionsOnWorkpaceResponse) GetPermissions() map[string]bool` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *PermissionsOnWorkpaceResponse) GetPermissionsOk() (*map[string]bool, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *PermissionsOnWorkpaceResponse) SetPermissions(v map[string]bool)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *PermissionsOnWorkpaceResponse) HasPermissions() bool` + +HasPermissions returns a boolean if a field has been set. + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/PlanDetails.md b/clients/client/go/docs/PlanDetails.md index ae1d276f2c3..509fb41f503 100644 --- a/clients/client/go/docs/PlanDetails.md +++ b/clients/client/go/docs/PlanDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **BaseFeeYearly** | **int64** | BaseFeeYearly is the yearly base fee for the plan. | **Custom** | **bool** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | **Description** | **string** | Description is the description of the plan. | -**Features** | [**map[string]GenericUsage**](GenericUsage.md) | Features are the feature definitions included in the plan. | +**Features** | [**map[string]GenericUsage**](GenericUsage.md) | | **Name** | **string** | Name is the name of the plan. | **Version** | **int64** | Version is the version of the plan. The combination of `name@version` must be unique. | diff --git a/clients/client/go/docs/ProjectAPI.md b/clients/client/go/docs/ProjectAPI.md index 35ce5387788..c8d7ce239f7 100644 --- a/clients/client/go/docs/ProjectAPI.md +++ b/clients/client/go/docs/ProjectAPI.md @@ -119,7 +119,7 @@ import ( ) func main() { - createProjectBody := *openapiclient.NewCreateProjectBody("Name_example") // CreateProjectBody | (optional) + createProjectBody := *openapiclient.NewCreateProjectBody("Environment_example", "Name_example") // CreateProjectBody | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -580,7 +580,7 @@ Name | Type | Description | Notes ## GetProjectMembers -> []CloudAccount GetProjectMembers(ctx, project).Execute() +> []ProjectMember GetProjectMembers(ctx, project).Execute() Get all members associated with this project @@ -608,7 +608,7 @@ func main() { fmt.Fprintf(os.Stderr, "Error when calling `ProjectAPI.GetProjectMembers``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `GetProjectMembers`: []CloudAccount + // response from `GetProjectMembers`: []ProjectMember fmt.Fprintf(os.Stdout, "Response from `ProjectAPI.GetProjectMembers`: %v\n", resp) } ``` @@ -632,7 +632,7 @@ Name | Type | Description | Notes ### Return type -[**[]CloudAccount**](CloudAccount.md) +[**[]ProjectMember**](ProjectMember.md) ### Authorization @@ -672,7 +672,7 @@ import ( func main() { projectId := "projectId_example" // string | Project ID eventType := "eventType_example" // string | The event type to query for - resolution := "resolution_example" // string | The resolution of the buckets The minimum resolution is 1 hour. + resolution := "resolution_example" // string | The resolution of the buckets The minimum resolution is 1 minute. from := time.Now() // time.Time | The start RFC3339 date of the time window to := time.Now() // time.Time | The end RFC3339 date of the time window @@ -705,7 +705,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **eventType** | **string** | The event type to query for | - **resolution** | **string** | The resolution of the buckets The minimum resolution is 1 hour. | + **resolution** | **string** | The resolution of the buckets The minimum resolution is 1 minute. | **from** | **time.Time** | The start RFC3339 date of the time window | **to** | **time.Time** | The end RFC3339 date of the time window | diff --git a/clients/client/go/docs/ProjectMember.md b/clients/client/go/docs/ProjectMember.md new file mode 100644 index 00000000000..680a3847f2c --- /dev/null +++ b/clients/client/go/docs/ProjectMember.md @@ -0,0 +1,114 @@ +# ProjectMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Email** | **string** | | +**Id** | **string** | | +**Name** | **string** | | +**Role** | **string** | | + +## Methods + +### NewProjectMember + +`func NewProjectMember(email string, id string, name string, role string, ) *ProjectMember` + +NewProjectMember instantiates a new ProjectMember object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewProjectMemberWithDefaults + +`func NewProjectMemberWithDefaults() *ProjectMember` + +NewProjectMemberWithDefaults instantiates a new ProjectMember object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetEmail + +`func (o *ProjectMember) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ProjectMember) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ProjectMember) SetEmail(v string)` + +SetEmail sets Email field to given value. + + +### GetId + +`func (o *ProjectMember) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *ProjectMember) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *ProjectMember) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *ProjectMember) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *ProjectMember) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *ProjectMember) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRole + +`func (o *ProjectMember) GetRole() string` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *ProjectMember) GetRoleOk() (*string, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *ProjectMember) SetRole(v string)` + +SetRole sets Role field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/ProjectMetadata.md b/clients/client/go/docs/ProjectMetadata.md index 638b2d8de1f..cc3486f4f33 100644 --- a/clients/client/go/docs/ProjectMetadata.md +++ b/clients/client/go/docs/ProjectMetadata.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CreatedAt** | **time.Time** | The Project's Creation Date | +**Environment** | **string** | The environment of the project. prod Production dev Development | **Hosts** | **[]string** | | **Id** | **string** | The project's ID. | [readonly] **Name** | **string** | The project's name if set | @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewProjectMetadata -`func NewProjectMetadata(createdAt time.Time, hosts []string, id string, name string, state string, updatedAt time.Time, ) *ProjectMetadata` +`func NewProjectMetadata(createdAt time.Time, environment string, hosts []string, id string, name string, state string, updatedAt time.Time, ) *ProjectMetadata` NewProjectMetadata instantiates a new ProjectMetadata object This constructor will assign default values to properties that have it defined, @@ -54,6 +55,26 @@ and a boolean to check if the value has been set. SetCreatedAt sets CreatedAt field to given value. +### GetEnvironment + +`func (o *ProjectMetadata) GetEnvironment() string` + +GetEnvironment returns the Environment field if non-nil, zero value otherwise. + +### GetEnvironmentOk + +`func (o *ProjectMetadata) GetEnvironmentOk() (*string, bool)` + +GetEnvironmentOk returns a tuple with the Environment field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironment + +`func (o *ProjectMetadata) SetEnvironment(v string)` + +SetEnvironment sets Environment field to given value. + + ### GetHosts `func (o *ProjectMetadata) GetHosts() []string` diff --git a/clients/client/go/docs/QuotaUsage.md b/clients/client/go/docs/QuotaUsage.md index 86dfb1203fb..395c344ffc0 100644 --- a/clients/client/go/docs/QuotaUsage.md +++ b/clients/client/go/docs/QuotaUsage.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AdditionalPrice** | **int64** | The additional price per unit in cents. | **CanUseMore** | **bool** | | -**Feature** | **string** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | +**Feature** | **string** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | **FeatureAvailable** | **bool** | | **Included** | **int64** | | **Used** | **int64** | | diff --git a/clients/client/go/docs/RecoveryFlow.md b/clients/client/go/docs/RecoveryFlow.md index 8d2559d2f47..49ca4048224 100644 --- a/clients/client/go/docs/RecoveryFlow.md +++ b/clients/client/go/docs/RecoveryFlow.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | Pointer to **string** | ReturnTo contains the requested return_to URL. | [optional] **State** | **interface{}** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | +**TransientPayload** | Pointer to **map[string]interface{}** | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**UiContainer**](UiContainer.md) | | @@ -219,6 +220,31 @@ SetState sets State field to given value. `func (o *RecoveryFlow) UnsetState()` UnsetState ensures that no value is present for State, not even an explicit nil +### GetTransientPayload + +`func (o *RecoveryFlow) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *RecoveryFlow) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *RecoveryFlow) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *RecoveryFlow) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetType `func (o *RecoveryFlow) GetType() string` diff --git a/clients/client/go/docs/RegistrationFlow.md b/clients/client/go/docs/RegistrationFlow.md index 4912b949754..799766cd146 100644 --- a/clients/client/go/docs/RegistrationFlow.md +++ b/clients/client/go/docs/RegistrationFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | Pointer to [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**Active** | Pointer to **string** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **ExpiresAt** | **time.Time** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **Id** | **string** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> | **IssuedAt** | **time.Time** | IssuedAt is the time (UTC) when the flow occurred. | @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetActive -`func (o *RegistrationFlow) GetActive() IdentityCredentialsType` +`func (o *RegistrationFlow) GetActive() string` GetActive returns the Active field if non-nil, zero value otherwise. ### GetActiveOk -`func (o *RegistrationFlow) GetActiveOk() (*IdentityCredentialsType, bool)` +`func (o *RegistrationFlow) GetActiveOk() (*string, bool)` GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetActive -`func (o *RegistrationFlow) SetActive(v IdentityCredentialsType)` +`func (o *RegistrationFlow) SetActive(v string)` SetActive sets Active field to given value. diff --git a/clients/client/go/docs/SettingsFlow.md b/clients/client/go/docs/SettingsFlow.md index 1b3f1c33f3a..482c0358a1c 100644 --- a/clients/client/go/docs/SettingsFlow.md +++ b/clients/client/go/docs/SettingsFlow.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | Pointer to **string** | ReturnTo contains the requested return_to URL. | [optional] **State** | **interface{}** | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | +**TransientPayload** | Pointer to **map[string]interface{}** | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**UiContainer**](UiContainer.md) | | @@ -240,6 +241,31 @@ SetState sets State field to given value. `func (o *SettingsFlow) UnsetState()` UnsetState ensures that no value is present for State, not even an explicit nil +### GetTransientPayload + +`func (o *SettingsFlow) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *SettingsFlow) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *SettingsFlow) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *SettingsFlow) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetType `func (o *SettingsFlow) GetType() string` diff --git a/clients/client/go/docs/Subscription.md b/clients/client/go/docs/Subscription.md index 243e95cb6fa..9087687c5d8 100644 --- a/clients/client/go/docs/Subscription.md +++ b/clients/client/go/docs/Subscription.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Currency** | **string** | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | [readonly] **CurrentInterval** | **string** | The currently active interval of the subscription monthly Monthly yearly Yearly | [readonly] **CurrentPlan** | **string** | The currently active plan of the subscription | [readonly] +**CurrentPlanDetails** | Pointer to [**PlanDetails**](PlanDetails.md) | | [optional] **CustomerId** | **string** | The ID of the stripe customer | [readonly] **Id** | **string** | The ID of the subscription | [readonly] **IntervalChangesTo** | **NullableString** | | @@ -16,6 +17,7 @@ Name | Type | Description | Notes **PlanChangesAt** | Pointer to **time.Time** | | [optional] **PlanChangesTo** | **NullableString** | | **Status** | **string** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | +**StripeCheckoutExpiresAt** | Pointer to **time.Time** | | [optional] **UpdatedAt** | **time.Time** | | [readonly] ## Methods @@ -117,6 +119,31 @@ and a boolean to check if the value has been set. SetCurrentPlan sets CurrentPlan field to given value. +### GetCurrentPlanDetails + +`func (o *Subscription) GetCurrentPlanDetails() PlanDetails` + +GetCurrentPlanDetails returns the CurrentPlanDetails field if non-nil, zero value otherwise. + +### GetCurrentPlanDetailsOk + +`func (o *Subscription) GetCurrentPlanDetailsOk() (*PlanDetails, bool)` + +GetCurrentPlanDetailsOk returns a tuple with the CurrentPlanDetails field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCurrentPlanDetails + +`func (o *Subscription) SetCurrentPlanDetails(v PlanDetails)` + +SetCurrentPlanDetails sets CurrentPlanDetails field to given value. + +### HasCurrentPlanDetails + +`func (o *Subscription) HasCurrentPlanDetails() bool` + +HasCurrentPlanDetails returns a boolean if a field has been set. + ### GetCustomerId `func (o *Subscription) GetCustomerId() string` @@ -317,6 +344,31 @@ and a boolean to check if the value has been set. SetStatus sets Status field to given value. +### GetStripeCheckoutExpiresAt + +`func (o *Subscription) GetStripeCheckoutExpiresAt() time.Time` + +GetStripeCheckoutExpiresAt returns the StripeCheckoutExpiresAt field if non-nil, zero value otherwise. + +### GetStripeCheckoutExpiresAtOk + +`func (o *Subscription) GetStripeCheckoutExpiresAtOk() (*time.Time, bool)` + +GetStripeCheckoutExpiresAtOk returns a tuple with the StripeCheckoutExpiresAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStripeCheckoutExpiresAt + +`func (o *Subscription) SetStripeCheckoutExpiresAt(v time.Time)` + +SetStripeCheckoutExpiresAt sets StripeCheckoutExpiresAt field to given value. + +### HasStripeCheckoutExpiresAt + +`func (o *Subscription) HasStripeCheckoutExpiresAt() bool` + +HasStripeCheckoutExpiresAt returns a boolean if a field has been set. + ### GetUpdatedAt `func (o *Subscription) GetUpdatedAt() time.Time` diff --git a/clients/client/go/docs/UpdateIdentityBody.md b/clients/client/go/docs/UpdateIdentityBody.md index 9088afe6d55..a234955c49c 100644 --- a/clients/client/go/docs/UpdateIdentityBody.md +++ b/clients/client/go/docs/UpdateIdentityBody.md @@ -8,14 +8,14 @@ Name | Type | Description | Notes **MetadataAdmin** | Pointer to **interface{}** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] **MetadataPublic** | Pointer to **interface{}** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**State** | [**IdentityState**](IdentityState.md) | | +**State** | **string** | State is the identity's state. active StateActive inactive StateInactive | **Traits** | **map[string]interface{}** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | ## Methods ### NewUpdateIdentityBody -`func NewUpdateIdentityBody(schemaId string, state IdentityState, traits map[string]interface{}, ) *UpdateIdentityBody` +`func NewUpdateIdentityBody(schemaId string, state string, traits map[string]interface{}, ) *UpdateIdentityBody` NewUpdateIdentityBody instantiates a new UpdateIdentityBody object This constructor will assign default values to properties that have it defined, @@ -147,20 +147,20 @@ SetSchemaId sets SchemaId field to given value. ### GetState -`func (o *UpdateIdentityBody) GetState() IdentityState` +`func (o *UpdateIdentityBody) GetState() string` GetState returns the State field if non-nil, zero value otherwise. ### GetStateOk -`func (o *UpdateIdentityBody) GetStateOk() (*IdentityState, bool)` +`func (o *UpdateIdentityBody) GetStateOk() (*string, bool)` GetStateOk returns a tuple with the State field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetState -`func (o *UpdateIdentityBody) SetState(v IdentityState)` +`func (o *UpdateIdentityBody) SetState(v string)` SetState sets State field to given value. diff --git a/clients/client/go/docs/UpdateLoginFlowBody.md b/clients/client/go/docs/UpdateLoginFlowBody.md index 49938c0853f..843b28193b9 100644 --- a/clients/client/go/docs/UpdateLoginFlowBody.md +++ b/clients/client/go/docs/UpdateLoginFlowBody.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **Password** | **string** | The user's password. | **PasswordIdentifier** | Pointer to **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **IdToken** | Pointer to **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **IdTokenNonce** | Pointer to **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **Provider** | **string** | The provider to register with | @@ -144,6 +145,31 @@ SetPasswordIdentifier sets PasswordIdentifier field to given value. HasPasswordIdentifier returns a boolean if a field has been set. +### GetTransientPayload + +`func (o *UpdateLoginFlowBody) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateLoginFlowBody) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateLoginFlowBody) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateLoginFlowBody) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetIdToken `func (o *UpdateLoginFlowBody) GetIdToken() string` diff --git a/clients/client/go/docs/UpdateLoginFlowWithCodeMethod.md b/clients/client/go/docs/UpdateLoginFlowWithCodeMethod.md index f15cec8c051..20b8556d3ac 100644 --- a/clients/client/go/docs/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/go/docs/UpdateLoginFlowWithCodeMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Identifier** | Pointer to **string** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] **Method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **Resend** | Pointer to **string** | Resend is set when the user wants to resend the code | [optional] +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -144,6 +145,31 @@ SetResend sets Resend field to given value. HasResend returns a boolean if a field has been set. +### GetTransientPayload + +`func (o *UpdateLoginFlowWithCodeMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateLoginFlowWithCodeMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateLoginFlowWithCodeMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateLoginFlowWithCodeMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateLoginFlowWithOidcMethod.md b/clients/client/go/docs/UpdateLoginFlowWithOidcMethod.md index 9d13a2c261f..c176dddf463 100644 --- a/clients/client/go/docs/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/go/docs/UpdateLoginFlowWithOidcMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **Method** | **string** | Method to use This field must be set to `oidc` when using the oidc method. | **Provider** | **string** | The provider to register with | **Traits** | Pointer to **map[string]interface{}** | The identity traits. This is a placeholder for the registration flow. | [optional] +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **UpstreamParameters** | Pointer to **map[string]interface{}** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] ## Methods @@ -171,6 +172,31 @@ SetTraits sets Traits field to given value. HasTraits returns a boolean if a field has been set. +### GetTransientPayload + +`func (o *UpdateLoginFlowWithOidcMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateLoginFlowWithOidcMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateLoginFlowWithOidcMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateLoginFlowWithOidcMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetUpstreamParameters `func (o *UpdateLoginFlowWithOidcMethod) GetUpstreamParameters() map[string]interface{}` diff --git a/clients/client/go/docs/UpdateLoginFlowWithPasswordMethod.md b/clients/client/go/docs/UpdateLoginFlowWithPasswordMethod.md index 5f7a0126f27..c7430df8946 100644 --- a/clients/client/go/docs/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/go/docs/UpdateLoginFlowWithPasswordMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **Method** | **string** | Method should be set to \"password\" when logging in using the identifier and password strategy. | **Password** | **string** | The user's password. | **PasswordIdentifier** | Pointer to **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -139,6 +140,31 @@ SetPasswordIdentifier sets PasswordIdentifier field to given value. HasPasswordIdentifier returns a boolean if a field has been set. +### GetTransientPayload + +`func (o *UpdateLoginFlowWithPasswordMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateLoginFlowWithPasswordMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateLoginFlowWithPasswordMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateLoginFlowWithPasswordMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateLoginFlowWithTotpMethod.md b/clients/client/go/docs/UpdateLoginFlowWithTotpMethod.md index e7f26e79406..e423df7bf1a 100644 --- a/clients/client/go/docs/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/go/docs/UpdateLoginFlowWithTotpMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Method** | **string** | Method should be set to \"totp\" when logging in using the TOTP strategy. | **TotpCode** | **string** | The TOTP code. | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -92,6 +93,31 @@ and a boolean to check if the value has been set. SetTotpCode sets TotpCode field to given value. +### GetTransientPayload + +`func (o *UpdateLoginFlowWithTotpMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateLoginFlowWithTotpMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateLoginFlowWithTotpMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateLoginFlowWithTotpMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/go/docs/UpdateLoginFlowWithWebAuthnMethod.md index 0b67ed5846e..41b2d370631 100644 --- a/clients/client/go/docs/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/go/docs/UpdateLoginFlowWithWebAuthnMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Identifier** | **string** | Identifier is the email or username of the user trying to log in. | **Method** | **string** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **WebauthnLogin** | Pointer to **string** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] ## Methods @@ -93,6 +94,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateLoginFlowWithWebAuthnMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateLoginFlowWithWebAuthnMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateLoginFlowWithWebAuthnMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateLoginFlowWithWebAuthnMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetWebauthnLogin `func (o *UpdateLoginFlowWithWebAuthnMethod) GetWebauthnLogin() string` diff --git a/clients/client/go/docs/UpdateRecoveryFlowBody.md b/clients/client/go/docs/UpdateRecoveryFlowBody.md index 7269043370f..afb677c49ca 100644 --- a/clients/client/go/docs/UpdateRecoveryFlowBody.md +++ b/clients/client/go/docs/UpdateRecoveryFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **Method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **Code** | Pointer to **string** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] ## Methods @@ -93,6 +94,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateRecoveryFlowBody) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateRecoveryFlowBody) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateRecoveryFlowBody) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateRecoveryFlowBody) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetCode `func (o *UpdateRecoveryFlowBody) GetCode() string` diff --git a/clients/client/go/docs/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/go/docs/UpdateRecoveryFlowWithCodeMethod.md index 28652a1ca24..c194b2c9e91 100644 --- a/clients/client/go/docs/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/go/docs/UpdateRecoveryFlowWithCodeMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | Pointer to **string** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **Method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -123,6 +124,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateRecoveryFlowWithCodeMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateRecoveryFlowWithCodeMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateRecoveryFlowWithCodeMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateRecoveryFlowWithCodeMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/go/docs/UpdateRecoveryFlowWithLinkMethod.md index ee871e07ea1..cc2bd412bd0 100644 --- a/clients/client/go/docs/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/go/docs/UpdateRecoveryFlowWithLinkMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **Method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -92,6 +93,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateRecoveryFlowWithLinkMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateRecoveryFlowWithLinkMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateRecoveryFlowWithLinkMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateRecoveryFlowWithLinkMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateSettingsFlowBody.md b/clients/client/go/docs/UpdateSettingsFlowBody.md index 9144580be9b..20944a4959b 100644 --- a/clients/client/go/docs/UpdateSettingsFlowBody.md +++ b/clients/client/go/docs/UpdateSettingsFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | CSRFToken is the anti-CSRF token | [optional] **Method** | **string** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | **Password** | **string** | Password is the updated password | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **Traits** | **map[string]interface{}** | The identity's traits in: body | **Flow** | Pointer to **string** | Flow ID is the flow's ID. in: query | [optional] **Link** | Pointer to **string** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] @@ -106,6 +107,31 @@ and a boolean to check if the value has been set. SetPassword sets Password field to given value. +### GetTransientPayload + +`func (o *UpdateSettingsFlowBody) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowBody) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowBody) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowBody) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetTraits `func (o *UpdateSettingsFlowBody) GetTraits() map[string]interface{}` diff --git a/clients/client/go/docs/UpdateSettingsFlowWithLookupMethod.md b/clients/client/go/docs/UpdateSettingsFlowWithLookupMethod.md index a8976d9c663..1b7f3079f50 100644 --- a/clients/client/go/docs/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/go/docs/UpdateSettingsFlowWithLookupMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **LookupSecretRegenerate** | Pointer to **bool** | If set to true will regenerate the lookup secrets | [optional] **LookupSecretReveal** | Pointer to **bool** | If set to true will reveal the lookup secrets | [optional] **Method** | **string** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -175,6 +176,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateSettingsFlowWithLookupMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowWithLookupMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowWithLookupMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowWithLookupMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateSettingsFlowWithOidcMethod.md b/clients/client/go/docs/UpdateSettingsFlowWithOidcMethod.md index 55412687a08..d5552361fa4 100644 --- a/clients/client/go/docs/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/go/docs/UpdateSettingsFlowWithOidcMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Link** | Pointer to **string** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **Method** | **string** | Method Should be set to profile when trying to update a profile. | **Traits** | Pointer to **map[string]interface{}** | The identity's traits in: body | [optional] +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **Unlink** | Pointer to **string** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] **UpstreamParameters** | Pointer to **map[string]interface{}** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] @@ -125,6 +126,31 @@ SetTraits sets Traits field to given value. HasTraits returns a boolean if a field has been set. +### GetTransientPayload + +`func (o *UpdateSettingsFlowWithOidcMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowWithOidcMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowWithOidcMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowWithOidcMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetUnlink `func (o *UpdateSettingsFlowWithOidcMethod) GetUnlink() string` diff --git a/clients/client/go/docs/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/go/docs/UpdateSettingsFlowWithPasswordMethod.md index 18fe8f70817..77a8821b604 100644 --- a/clients/client/go/docs/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/go/docs/UpdateSettingsFlowWithPasswordMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | CSRFToken is the anti-CSRF token | [optional] **Method** | **string** | Method Should be set to password when trying to update a password. | **Password** | **string** | Password is the updated password | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -92,6 +93,31 @@ and a boolean to check if the value has been set. SetPassword sets Password field to given value. +### GetTransientPayload + +`func (o *UpdateSettingsFlowWithPasswordMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowWithPasswordMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowWithPasswordMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowWithPasswordMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateSettingsFlowWithProfileMethod.md b/clients/client/go/docs/UpdateSettingsFlowWithProfileMethod.md index e7d5f0bd9e0..48cd04e9822 100644 --- a/clients/client/go/docs/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/go/docs/UpdateSettingsFlowWithProfileMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] **Method** | **string** | Method Should be set to profile when trying to update a profile. | **Traits** | **map[string]interface{}** | Traits The identity's traits. | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -92,6 +93,31 @@ and a boolean to check if the value has been set. SetTraits sets Traits field to given value. +### GetTransientPayload + +`func (o *UpdateSettingsFlowWithProfileMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowWithProfileMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowWithProfileMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowWithProfileMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateSettingsFlowWithTotpMethod.md b/clients/client/go/docs/UpdateSettingsFlowWithTotpMethod.md index c28ae26f873..3d8f74608cd 100644 --- a/clients/client/go/docs/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/go/docs/UpdateSettingsFlowWithTotpMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Method** | **string** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | **TotpCode** | Pointer to **string** | ValidationTOTP must contain a valid TOTP based on the | [optional] **TotpUnlink** | Pointer to **bool** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -123,6 +124,31 @@ SetTotpUnlink sets TotpUnlink field to given value. HasTotpUnlink returns a boolean if a field has been set. +### GetTransientPayload + +`func (o *UpdateSettingsFlowWithTotpMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowWithTotpMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowWithTotpMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowWithTotpMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/go/docs/UpdateSettingsFlowWithWebAuthnMethod.md index ec6cfd1813a..7c48d4088e8 100644 --- a/clients/client/go/docs/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/go/docs/UpdateSettingsFlowWithWebAuthnMethod.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CsrfToken** | Pointer to **string** | CSRFToken is the anti-CSRF token | [optional] **Method** | **string** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **WebauthnRegister** | Pointer to **string** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **WebauthnRegisterDisplayname** | Pointer to **string** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] **WebauthnRemove** | Pointer to **string** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] @@ -74,6 +75,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateSettingsFlowWithWebAuthnMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateSettingsFlowWithWebAuthnMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateSettingsFlowWithWebAuthnMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateSettingsFlowWithWebAuthnMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetWebauthnRegister `func (o *UpdateSettingsFlowWithWebAuthnMethod) GetWebauthnRegister() string` diff --git a/clients/client/go/docs/UpdateVerificationFlowBody.md b/clients/client/go/docs/UpdateVerificationFlowBody.md index d286da281c9..b0e88168f83 100644 --- a/clients/client/go/docs/UpdateVerificationFlowBody.md +++ b/clients/client/go/docs/UpdateVerificationFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **Method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] **Code** | Pointer to **string** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] ## Methods @@ -93,6 +94,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateVerificationFlowBody) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateVerificationFlowBody) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateVerificationFlowBody) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateVerificationFlowBody) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetCode `func (o *UpdateVerificationFlowBody) GetCode() string` diff --git a/clients/client/go/docs/UpdateVerificationFlowWithCodeMethod.md b/clients/client/go/docs/UpdateVerificationFlowWithCodeMethod.md index e1f57ec2c92..120b5f3ee2d 100644 --- a/clients/client/go/docs/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/go/docs/UpdateVerificationFlowWithCodeMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | Pointer to **string** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **Method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -123,6 +124,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateVerificationFlowWithCodeMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateVerificationFlowWithCodeMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateVerificationFlowWithCodeMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateVerificationFlowWithCodeMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateVerificationFlowWithLinkMethod.md b/clients/client/go/docs/UpdateVerificationFlowWithLinkMethod.md index 39361d140ab..50f45adb39f 100644 --- a/clients/client/go/docs/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/go/docs/UpdateVerificationFlowWithLinkMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **CsrfToken** | Pointer to **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **Email** | **string** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **Method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | +**TransientPayload** | Pointer to **map[string]interface{}** | Transient data to pass along to any webhooks | [optional] ## Methods @@ -92,6 +93,31 @@ and a boolean to check if the value has been set. SetMethod sets Method field to given value. +### GetTransientPayload + +`func (o *UpdateVerificationFlowWithLinkMethod) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *UpdateVerificationFlowWithLinkMethod) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *UpdateVerificationFlowWithLinkMethod) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *UpdateVerificationFlowWithLinkMethod) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/go/docs/UpdateWorkspacePayload.md b/clients/client/go/docs/UpdateWorkspacePayload.md new file mode 100644 index 00000000000..d4ec64baa06 --- /dev/null +++ b/clients/client/go/docs/UpdateWorkspacePayload.md @@ -0,0 +1,51 @@ +# UpdateWorkspacePayload + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | The name of the workspace. | + +## Methods + +### NewUpdateWorkspacePayload + +`func NewUpdateWorkspacePayload(name string, ) *UpdateWorkspacePayload` + +NewUpdateWorkspacePayload instantiates a new UpdateWorkspacePayload object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewUpdateWorkspacePayloadWithDefaults + +`func NewUpdateWorkspacePayloadWithDefaults() *UpdateWorkspacePayload` + +NewUpdateWorkspacePayloadWithDefaults instantiates a new UpdateWorkspacePayload object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *UpdateWorkspacePayload) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *UpdateWorkspacePayload) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *UpdateWorkspacePayload) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/docs/VerificationFlow.md b/clients/client/go/docs/VerificationFlow.md index c6cbb3e7e00..e9a641a2427 100644 --- a/clients/client/go/docs/VerificationFlow.md +++ b/clients/client/go/docs/VerificationFlow.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **RequestUrl** | Pointer to **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **ReturnTo** | Pointer to **string** | ReturnTo contains the requested return_to URL. | [optional] **State** | **interface{}** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | +**TransientPayload** | Pointer to **map[string]interface{}** | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**UiContainer**](UiContainer.md) | | @@ -208,6 +209,31 @@ SetState sets State field to given value. `func (o *VerificationFlow) UnsetState()` UnsetState ensures that no value is present for State, not even an explicit nil +### GetTransientPayload + +`func (o *VerificationFlow) GetTransientPayload() map[string]interface{}` + +GetTransientPayload returns the TransientPayload field if non-nil, zero value otherwise. + +### GetTransientPayloadOk + +`func (o *VerificationFlow) GetTransientPayloadOk() (*map[string]interface{}, bool)` + +GetTransientPayloadOk returns a tuple with the TransientPayload field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTransientPayload + +`func (o *VerificationFlow) SetTransientPayload(v map[string]interface{})` + +SetTransientPayload sets TransientPayload field to given value. + +### HasTransientPayload + +`func (o *VerificationFlow) HasTransientPayload() bool` + +HasTransientPayload returns a boolean if a field has been set. + ### GetType `func (o *VerificationFlow) GetType() string` diff --git a/clients/client/go/docs/WorkspaceMeta.md b/clients/client/go/docs/WorkspaceMeta.md new file mode 100644 index 00000000000..73adcbcb02e --- /dev/null +++ b/clients/client/go/docs/WorkspaceMeta.md @@ -0,0 +1,186 @@ +# WorkspaceMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**CreatedAt** | **time.Time** | | +**Id** | **string** | | +**Name** | **string** | | +**SubscriptionId** | Pointer to **NullableString** | | [optional] +**SubscriptionPlan** | Pointer to **NullableString** | | [optional] +**UpdatedAt** | **time.Time** | | + +## Methods + +### NewWorkspaceMeta + +`func NewWorkspaceMeta(createdAt time.Time, id string, name string, updatedAt time.Time, ) *WorkspaceMeta` + +NewWorkspaceMeta instantiates a new WorkspaceMeta object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWorkspaceMetaWithDefaults + +`func NewWorkspaceMetaWithDefaults() *WorkspaceMeta` + +NewWorkspaceMetaWithDefaults instantiates a new WorkspaceMeta object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCreatedAt + +`func (o *WorkspaceMeta) GetCreatedAt() time.Time` + +GetCreatedAt returns the CreatedAt field if non-nil, zero value otherwise. + +### GetCreatedAtOk + +`func (o *WorkspaceMeta) GetCreatedAtOk() (*time.Time, bool)` + +GetCreatedAtOk returns a tuple with the CreatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreatedAt + +`func (o *WorkspaceMeta) SetCreatedAt(v time.Time)` + +SetCreatedAt sets CreatedAt field to given value. + + +### GetId + +`func (o *WorkspaceMeta) GetId() string` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *WorkspaceMeta) GetIdOk() (*string, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *WorkspaceMeta) SetId(v string)` + +SetId sets Id field to given value. + + +### GetName + +`func (o *WorkspaceMeta) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *WorkspaceMeta) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *WorkspaceMeta) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSubscriptionId + +`func (o *WorkspaceMeta) GetSubscriptionId() string` + +GetSubscriptionId returns the SubscriptionId field if non-nil, zero value otherwise. + +### GetSubscriptionIdOk + +`func (o *WorkspaceMeta) GetSubscriptionIdOk() (*string, bool)` + +GetSubscriptionIdOk returns a tuple with the SubscriptionId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionId + +`func (o *WorkspaceMeta) SetSubscriptionId(v string)` + +SetSubscriptionId sets SubscriptionId field to given value. + +### HasSubscriptionId + +`func (o *WorkspaceMeta) HasSubscriptionId() bool` + +HasSubscriptionId returns a boolean if a field has been set. + +### SetSubscriptionIdNil + +`func (o *WorkspaceMeta) SetSubscriptionIdNil(b bool)` + + SetSubscriptionIdNil sets the value for SubscriptionId to be an explicit nil + +### UnsetSubscriptionId +`func (o *WorkspaceMeta) UnsetSubscriptionId()` + +UnsetSubscriptionId ensures that no value is present for SubscriptionId, not even an explicit nil +### GetSubscriptionPlan + +`func (o *WorkspaceMeta) GetSubscriptionPlan() string` + +GetSubscriptionPlan returns the SubscriptionPlan field if non-nil, zero value otherwise. + +### GetSubscriptionPlanOk + +`func (o *WorkspaceMeta) GetSubscriptionPlanOk() (*string, bool)` + +GetSubscriptionPlanOk returns a tuple with the SubscriptionPlan field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubscriptionPlan + +`func (o *WorkspaceMeta) SetSubscriptionPlan(v string)` + +SetSubscriptionPlan sets SubscriptionPlan field to given value. + +### HasSubscriptionPlan + +`func (o *WorkspaceMeta) HasSubscriptionPlan() bool` + +HasSubscriptionPlan returns a boolean if a field has been set. + +### SetSubscriptionPlanNil + +`func (o *WorkspaceMeta) SetSubscriptionPlanNil(b bool)` + + SetSubscriptionPlanNil sets the value for SubscriptionPlan to be an explicit nil + +### UnsetSubscriptionPlan +`func (o *WorkspaceMeta) UnsetSubscriptionPlan()` + +UnsetSubscriptionPlan ensures that no value is present for SubscriptionPlan, not even an explicit nil +### GetUpdatedAt + +`func (o *WorkspaceMeta) GetUpdatedAt() time.Time` + +GetUpdatedAt returns the UpdatedAt field if non-nil, zero value otherwise. + +### GetUpdatedAtOk + +`func (o *WorkspaceMeta) GetUpdatedAtOk() (*time.Time, bool)` + +GetUpdatedAtOk returns a tuple with the UpdatedAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpdatedAt + +`func (o *WorkspaceMeta) SetUpdatedAt(v time.Time)` + +SetUpdatedAt sets UpdatedAt field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/go/go.mod b/clients/client/go/go.mod index c296b70e022..28069555031 100644 --- a/clients/client/go/go.mod +++ b/clients/client/go/go.mod @@ -3,15 +3,15 @@ module github.com/ory/client-go go 1.17 require ( - github.com/stretchr/testify v1.8.4 - golang.org/x/oauth2 v0.16.0 + github.com/stretchr/testify v1.9.0 + golang.org/x/oauth2 v0.18.0 ) require ( github.com/davecgh/go-spew v1.1.1 // indirect github.com/golang/protobuf v1.5.3 // indirect github.com/pmezard/go-difflib v1.0.0 // indirect - golang.org/x/net v0.20.0 // indirect + golang.org/x/net v0.22.0 // indirect google.golang.org/appengine v1.6.7 // indirect google.golang.org/protobuf v1.31.0 // indirect gopkg.in/yaml.v3 v3.0.1 // indirect diff --git a/clients/client/go/go.sum b/clients/client/go/go.sum index 88647f52f0e..7342133e08e 100644 --- a/clients/client/go/go.sum +++ b/clients/client/go/go.sum @@ -8,14 +8,14 @@ github.com/google/go-cmp v0.5.5/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/ github.com/google/go-cmp v0.5.9 h1:O2Tfq5qg4qc4AmwVlvv0oLiVAGB7enBSJ2x2DqQFi38= github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk= -github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo= +github.com/stretchr/testify v1.9.0 h1:HtqpIVDClZ4nwg75+f6Lvsy/wHu+3BoSGCbBAcpTsTg= +github.com/stretchr/testify v1.9.0/go.mod h1:r2ic/lqez/lEtzL7wO/rwa5dbSLXVDPFyf8C91i36aY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= golang.org/x/net v0.0.0-20190603091049-60506f45cf65/go.mod h1:HSz+uSET+XFnRR8LxR5pz3Of3rY3CfYBVs4xY44aLks= -golang.org/x/net v0.20.0 h1:aCL9BSgETF1k+blQaYUBx9hJ9LOGP3gAVemcZlf1Kpo= -golang.org/x/net v0.20.0/go.mod h1:z8BVo6PvndSri0LbOE3hAn0apkU+1YvI6E70E9jsnvY= -golang.org/x/oauth2 v0.16.0 h1:aDkGMBSYxElaoP81NpoUoz2oo2R2wHdZpGToUxfyQrQ= -golang.org/x/oauth2 v0.16.0/go.mod h1:hqZ+0LWXsiVoZpeld6jVt06P3adbS2Uu911W1SsJv2o= +golang.org/x/net v0.22.0 h1:9sGLhx7iRIHEiX0oAJ3MRZMUCElJgy7Br1nO+AMN3Tc= +golang.org/x/net v0.22.0/go.mod h1:JKghWKKOSdJwpW2GEx0Ja7fmaKnMsbu+MWVZTokSYmg= +golang.org/x/oauth2 v0.18.0 h1:09qnuIAgzdx1XplqJvW6CQqMCtGZykZWcXzPMPUusvI= +golang.org/x/oauth2 v0.18.0/go.mod h1:Wf7knwG0MPoWIMMBgFlEaSUDaKskp0dCfrlJRJXbBi8= golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.2/go.mod h1:bEr9sfX3Q8Zfm5fL9x+3itogRgK3+ptLWKqgva+5dAk= diff --git a/clients/client/go/model_accept_o_auth2_consent_request.go b/clients/client/go/model_accept_o_auth2_consent_request.go index 5088aadc706..7e0d65a7376 100644 --- a/clients/client/go/model_accept_o_auth2_consent_request.go +++ b/clients/client/go/model_accept_o_auth2_consent_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -21,6 +21,7 @@ var _ MappedNullable = &AcceptOAuth2ConsentRequest{} // AcceptOAuth2ConsentRequest struct for AcceptOAuth2ConsentRequest type AcceptOAuth2ConsentRequest struct { + Context map[string]interface{} `json:"context,omitempty"` GrantAccessTokenAudience []string `json:"grant_access_token_audience,omitempty"` GrantScope []string `json:"grant_scope,omitempty"` HandledAt *time.Time `json:"handled_at,omitempty"` @@ -51,6 +52,38 @@ func NewAcceptOAuth2ConsentRequestWithDefaults() *AcceptOAuth2ConsentRequest { return &this } +// GetContext returns the Context field value if set, zero value otherwise. +func (o *AcceptOAuth2ConsentRequest) GetContext() map[string]interface{} { + if o == nil || IsNil(o.Context) { + var ret map[string]interface{} + return ret + } + return o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *AcceptOAuth2ConsentRequest) GetContextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Context) { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *AcceptOAuth2ConsentRequest) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. +func (o *AcceptOAuth2ConsentRequest) SetContext(v map[string]interface{}) { + o.Context = v +} + // GetGrantAccessTokenAudience returns the GrantAccessTokenAudience field value if set, zero value otherwise. func (o *AcceptOAuth2ConsentRequest) GetGrantAccessTokenAudience() []string { if o == nil || IsNil(o.GrantAccessTokenAudience) { @@ -253,6 +286,9 @@ func (o AcceptOAuth2ConsentRequest) MarshalJSON() ([]byte, error) { func (o AcceptOAuth2ConsentRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } if !IsNil(o.GrantAccessTokenAudience) { toSerialize["grant_access_token_audience"] = o.GrantAccessTokenAudience } @@ -293,6 +329,7 @@ func (o *AcceptOAuth2ConsentRequest) UnmarshalJSON(bytes []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "context") delete(additionalProperties, "grant_access_token_audience") delete(additionalProperties, "grant_scope") delete(additionalProperties, "handled_at") diff --git a/clients/client/go/model_accept_o_auth2_consent_request_session.go b/clients/client/go/model_accept_o_auth2_consent_request_session.go index 731ab0eb96d..2ab07e52c7e 100644 --- a/clients/client/go/model_accept_o_auth2_consent_request_session.go +++ b/clients/client/go/model_accept_o_auth2_consent_request_session.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_accept_o_auth2_login_request.go b/clients/client/go/model_accept_o_auth2_login_request.go index a97bfb4fed0..383182087aa 100644 --- a/clients/client/go/model_accept_o_auth2_login_request.go +++ b/clients/client/go/model_accept_o_auth2_login_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_active_project_in_console.go b/clients/client/go/model_active_project_in_console.go index 406571b0fd6..eaee1ea1f5d 100644 --- a/clients/client/go/model_active_project_in_console.go +++ b/clients/client/go/model_active_project_in_console.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_attribute.go b/clients/client/go/model_attribute.go index 6e1d67bd90c..9a8c3e5eca2 100644 --- a/clients/client/go/model_attribute.go +++ b/clients/client/go/model_attribute.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_attribute_filter.go b/clients/client/go/model_attribute_filter.go index 1705a9e9b7f..351cb611ce0 100644 --- a/clients/client/go/model_attribute_filter.go +++ b/clients/client/go/model_attribute_filter.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_attributes_count_datapoint.go b/clients/client/go/model_attributes_count_datapoint.go index 86db6f43e76..09c0d74be89 100644 --- a/clients/client/go/model_attributes_count_datapoint.go +++ b/clients/client/go/model_attributes_count_datapoint.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_authenticator_assurance_level.go b/clients/client/go/model_authenticator_assurance_level.go index ef2cd84c5a1..a8dfd6b4680 100644 --- a/clients/client/go/model_authenticator_assurance_level.go +++ b/clients/client/go/model_authenticator_assurance_level.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_batch_patch_identities_response.go b/clients/client/go/model_batch_patch_identities_response.go index 161f7dd1407..58e0e88ed48 100644 --- a/clients/client/go/model_batch_patch_identities_response.go +++ b/clients/client/go/model_batch_patch_identities_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_check_opl_syntax_result.go b/clients/client/go/model_check_opl_syntax_result.go index bfbb46a579d..af93fcbbae7 100644 --- a/clients/client/go/model_check_opl_syntax_result.go +++ b/clients/client/go/model_check_opl_syntax_result.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_check_permission_result.go b/clients/client/go/model_check_permission_result.go index 57272319af5..70b967732ec 100644 --- a/clients/client/go/model_check_permission_result.go +++ b/clients/client/go/model_check_permission_result.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_cloud_account.go b/clients/client/go/model_cloud_account.go index 3d8220d47dd..90cf8cf21ff 100644 --- a/clients/client/go/model_cloud_account.go +++ b/clients/client/go/model_cloud_account.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -13,6 +13,7 @@ package client import ( "encoding/json" + "fmt" ) // checks if the CloudAccount type satisfies the MappedNullable interface at compile time @@ -20,9 +21,9 @@ var _ MappedNullable = &CloudAccount{} // CloudAccount struct for CloudAccount type CloudAccount struct { - Email *string `json:"email,omitempty"` - Id *string `json:"id,omitempty"` - Name *string `json:"name,omitempty"` + Email string `json:"email"` + Id string `json:"id"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -32,8 +33,11 @@ type _CloudAccount CloudAccount // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCloudAccount() *CloudAccount { +func NewCloudAccount(email string, id string, name string) *CloudAccount { this := CloudAccount{} + this.Email = email + this.Id = id + this.Name = name return &this } @@ -45,100 +49,76 @@ func NewCloudAccountWithDefaults() *CloudAccount { return &this } -// GetEmail returns the Email field value if set, zero value otherwise. +// GetEmail returns the Email field value func (o *CloudAccount) GetEmail() string { - if o == nil || IsNil(o.Email) { + if o == nil { var ret string return ret } - return *o.Email + + return o.Email } -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// GetEmailOk returns a tuple with the Email field value // and a boolean to check if the value has been set. func (o *CloudAccount) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { + if o == nil { return nil, false } - return o.Email, true + return &o.Email, true } -// HasEmail returns a boolean if a field has been set. -func (o *CloudAccount) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. +// SetEmail sets field value func (o *CloudAccount) SetEmail(v string) { - o.Email = &v + o.Email = v } -// GetId returns the Id field value if set, zero value otherwise. +// GetId returns the Id field value func (o *CloudAccount) GetId() string { - if o == nil || IsNil(o.Id) { + if o == nil { var ret string return ret } - return *o.Id + + return o.Id } -// GetIdOk returns a tuple with the Id field value if set, nil otherwise +// GetIdOk returns a tuple with the Id field value // and a boolean to check if the value has been set. func (o *CloudAccount) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { + if o == nil { return nil, false } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *CloudAccount) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false + return &o.Id, true } -// SetId gets a reference to the given string and assigns it to the Id field. +// SetId sets field value func (o *CloudAccount) SetId(v string) { - o.Id = &v + o.Id = v } -// GetName returns the Name field value if set, zero value otherwise. +// GetName returns the Name field value func (o *CloudAccount) GetName() string { - if o == nil || IsNil(o.Name) { + if o == nil { var ret string return ret } - return *o.Name + + return o.Name } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. func (o *CloudAccount) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { + if o == nil { return nil, false } - return o.Name, true + return &o.Name, true } -// HasName returns a boolean if a field has been set. -func (o *CloudAccount) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. +// SetName sets field value func (o *CloudAccount) SetName(v string) { - o.Name = &v + o.Name = v } func (o CloudAccount) MarshalJSON() ([]byte, error) { @@ -151,15 +131,9 @@ func (o CloudAccount) MarshalJSON() ([]byte, error) { func (o CloudAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } + toSerialize["email"] = o.Email + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -169,6 +143,29 @@ func (o CloudAccount) ToMap() (map[string]interface{}, error) { } func (o *CloudAccount) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "email", + "id", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + varCloudAccount := _CloudAccount{} err = json.Unmarshal(bytes, &varCloudAccount) diff --git a/clients/client/go/model_consistency_request_parameters.go b/clients/client/go/model_consistency_request_parameters.go index f7133c0d6b7..58006b9c6c0 100644 --- a/clients/client/go/model_consistency_request_parameters.go +++ b/clients/client/go/model_consistency_request_parameters.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with.go b/clients/client/go/model_continue_with.go index 7e7e90abc83..9b46f5eb22a 100644 --- a/clients/client/go/model_continue_with.go +++ b/clients/client/go/model_continue_with.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_recovery_ui.go b/clients/client/go/model_continue_with_recovery_ui.go index 1b0dc0922fe..e5fc8742dc1 100644 --- a/clients/client/go/model_continue_with_recovery_ui.go +++ b/clients/client/go/model_continue_with_recovery_ui.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_recovery_ui_flow.go b/clients/client/go/model_continue_with_recovery_ui_flow.go index 4d89a2da8b2..7bb9094b87a 100644 --- a/clients/client/go/model_continue_with_recovery_ui_flow.go +++ b/clients/client/go/model_continue_with_recovery_ui_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_set_ory_session_token.go b/clients/client/go/model_continue_with_set_ory_session_token.go index 63a663dddb8..173b19c7334 100644 --- a/clients/client/go/model_continue_with_set_ory_session_token.go +++ b/clients/client/go/model_continue_with_set_ory_session_token.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_settings_ui.go b/clients/client/go/model_continue_with_settings_ui.go index fd78defd330..38c0aacf26a 100644 --- a/clients/client/go/model_continue_with_settings_ui.go +++ b/clients/client/go/model_continue_with_settings_ui.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_settings_ui_flow.go b/clients/client/go/model_continue_with_settings_ui_flow.go index f701265ddcf..922dd615192 100644 --- a/clients/client/go/model_continue_with_settings_ui_flow.go +++ b/clients/client/go/model_continue_with_settings_ui_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_verification_ui.go b/clients/client/go/model_continue_with_verification_ui.go index e2502eb362a..2722b055d05 100644 --- a/clients/client/go/model_continue_with_verification_ui.go +++ b/clients/client/go/model_continue_with_verification_ui.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_continue_with_verification_ui_flow.go b/clients/client/go/model_continue_with_verification_ui_flow.go index c2bf158eba8..4697beb9904 100644 --- a/clients/client/go/model_continue_with_verification_ui_flow.go +++ b/clients/client/go/model_continue_with_verification_ui_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_courier_message_status.go b/clients/client/go/model_courier_message_status.go index 08d17d4358a..1127b2d17bc 100644 --- a/clients/client/go/model_courier_message_status.go +++ b/clients/client/go/model_courier_message_status.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_courier_message_type.go b/clients/client/go/model_courier_message_type.go index 6d4904580d4..632b7e9c510 100644 --- a/clients/client/go/model_courier_message_type.go +++ b/clients/client/go/model_courier_message_type.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_custom_domain_body.go b/clients/client/go/model_create_custom_domain_body.go index 7ebe27432df..442ab4dfd82 100644 --- a/clients/client/go/model_create_custom_domain_body.go +++ b/clients/client/go/model_create_custom_domain_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_event_stream_body.go b/clients/client/go/model_create_event_stream_body.go index 094f6c7c378..b38c3216e21 100644 --- a/clients/client/go/model_create_event_stream_body.go +++ b/clients/client/go/model_create_event_stream_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_identity_body.go b/clients/client/go/model_create_identity_body.go index 29f806609b7..2c4ab5a697b 100644 --- a/clients/client/go/model_create_identity_body.go +++ b/clients/client/go/model_create_identity_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -30,7 +30,8 @@ type CreateIdentityBody struct { RecoveryAddresses []RecoveryIdentityAddress `json:"recovery_addresses,omitempty"` // SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. SchemaId string `json:"schema_id"` - State *IdentityState `json:"state,omitempty"` + // State is the identity's state. active StateActive inactive StateInactive + State *string `json:"state,omitempty"` // Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. Traits map[string]interface{} `json:"traits"` // VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. @@ -214,9 +215,9 @@ func (o *CreateIdentityBody) SetSchemaId(v string) { } // GetState returns the State field value if set, zero value otherwise. -func (o *CreateIdentityBody) GetState() IdentityState { +func (o *CreateIdentityBody) GetState() string { if o == nil || IsNil(o.State) { - var ret IdentityState + var ret string return ret } return *o.State @@ -224,7 +225,7 @@ func (o *CreateIdentityBody) GetState() IdentityState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *CreateIdentityBody) GetStateOk() (*IdentityState, bool) { +func (o *CreateIdentityBody) GetStateOk() (*string, bool) { if o == nil || IsNil(o.State) { return nil, false } @@ -240,8 +241,8 @@ func (o *CreateIdentityBody) HasState() bool { return false } -// SetState gets a reference to the given IdentityState and assigns it to the State field. -func (o *CreateIdentityBody) SetState(v IdentityState) { +// SetState gets a reference to the given string and assigns it to the State field. +func (o *CreateIdentityBody) SetState(v string) { o.State = &v } diff --git a/clients/client/go/model_create_invite_response.go b/clients/client/go/model_create_invite_response.go index 28e9285a85d..08227fd0eb2 100644 --- a/clients/client/go/model_create_invite_response.go +++ b/clients/client/go/model_create_invite_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_json_web_key_set.go b/clients/client/go/model_create_json_web_key_set.go index 628b8c7cd91..c82b9b63ed2 100644 --- a/clients/client/go/model_create_json_web_key_set.go +++ b/clients/client/go/model_create_json_web_key_set.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_project_api_key_request.go b/clients/client/go/model_create_project_api_key_request.go index 6de964d0fd3..b47450e237f 100644 --- a/clients/client/go/model_create_project_api_key_request.go +++ b/clients/client/go/model_create_project_api_key_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_project_body.go b/clients/client/go/model_create_project_body.go index f95a217ec7d..1e9a5d60ed9 100644 --- a/clients/client/go/model_create_project_body.go +++ b/clients/client/go/model_create_project_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -21,6 +21,8 @@ var _ MappedNullable = &CreateProjectBody{} // CreateProjectBody Create Project Request Body type CreateProjectBody struct { + // The environment of the project. prod Production dev Development + Environment string `json:"environment"` // The name of the project to be created Name string `json:"name"` WorkspaceId NullableString `json:"workspace_id,omitempty"` @@ -33,8 +35,9 @@ type _CreateProjectBody CreateProjectBody // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateProjectBody(name string) *CreateProjectBody { +func NewCreateProjectBody(environment string, name string) *CreateProjectBody { this := CreateProjectBody{} + this.Environment = environment this.Name = name return &this } @@ -47,6 +50,30 @@ func NewCreateProjectBodyWithDefaults() *CreateProjectBody { return &this } +// GetEnvironment returns the Environment field value +func (o *CreateProjectBody) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *CreateProjectBody) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *CreateProjectBody) SetEnvironment(v string) { + o.Environment = v +} + // GetName returns the Name field value func (o *CreateProjectBody) GetName() string { if o == nil { @@ -123,6 +150,7 @@ func (o CreateProjectBody) MarshalJSON() ([]byte, error) { func (o CreateProjectBody) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["environment"] = o.Environment toSerialize["name"] = o.Name if o.WorkspaceId.IsSet() { toSerialize["workspace_id"] = o.WorkspaceId.Get() @@ -140,6 +168,7 @@ func (o *CreateProjectBody) UnmarshalJSON(bytes []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "environment", "name", } @@ -170,6 +199,7 @@ func (o *CreateProjectBody) UnmarshalJSON(bytes []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "environment") delete(additionalProperties, "name") delete(additionalProperties, "workspace_id") o.AdditionalProperties = additionalProperties diff --git a/clients/client/go/model_create_project_branding.go b/clients/client/go/model_create_project_branding.go index d5cee9f6919..68b024c5ee8 100644 --- a/clients/client/go/model_create_project_branding.go +++ b/clients/client/go/model_create_project_branding.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_project_member_invite_body.go b/clients/client/go/model_create_project_member_invite_body.go index db7bb9d50aa..fb3f9e9a81a 100644 --- a/clients/client/go/model_create_project_member_invite_body.go +++ b/clients/client/go/model_create_project_member_invite_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_project_normalized_payload.go b/clients/client/go/model_create_project_normalized_payload.go index ad96efb633e..27fee52f8c8 100644 --- a/clients/client/go/model_create_project_normalized_payload.go +++ b/clients/client/go/model_create_project_normalized_payload.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -26,6 +26,10 @@ type CreateProjectNormalizedPayload struct { CreatedAt *time.Time `json:"created_at,omitempty"` // Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. DisableAccountExperienceWelcomeScreen *bool `json:"disable_account_experience_welcome_screen,omitempty"` + // Whether the new account experience is enabled and reachable. + EnableAxV2 *bool `json:"enable_ax_v2,omitempty"` + // prod Production dev Development + Environment string `json:"environment"` HydraOauth2AllowedTopLevelClaims []string `json:"hydra_oauth2_allowed_top_level_claims,omitempty"` // Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. HydraOauth2ClientCredentialsDefaultGrantAllowedScope *bool `json:"hydra_oauth2_client_credentials_default_grant_allowed_scope,omitempty"` @@ -37,6 +41,8 @@ type CreateProjectNormalizedPayload struct { HydraOauth2GrantJwtJtiOptional *bool `json:"hydra_oauth2_grant_jwt_jti_optional,omitempty"` // Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. HydraOauth2GrantJwtMaxTtl *string `json:"hydra_oauth2_grant_jwt_max_ttl,omitempty"` + // Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + HydraOauth2MirrorTopLevelClaims *bool `json:"hydra_oauth2_mirror_top_level_claims,omitempty"` // Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. HydraOauth2PkceEnforced *bool `json:"hydra_oauth2_pkce_enforced,omitempty"` // Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. @@ -144,6 +150,8 @@ type CreateProjectNormalizedPayload struct { KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext *string `json:"kratos_courier_templates_login_code_valid_email_body_plaintext,omitempty"` // Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. KratosCourierTemplatesLoginCodeValidEmailSubject *string `json:"kratos_courier_templates_login_code_valid_email_subject,omitempty"` + // Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext *string `json:"kratos_courier_templates_login_code_valid_sms_body_plaintext,omitempty"` // Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml *string `json:"kratos_courier_templates_recovery_code_invalid_email_body_html,omitempty"` // Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. @@ -309,6 +317,8 @@ type CreateProjectNormalizedPayload struct { KratosSelfserviceMethodsCodeConfigLifespan *string `json:"kratos_selfservice_methods_code_config_lifespan,omitempty"` // Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. KratosSelfserviceMethodsCodeEnabled *bool `json:"kratos_selfservice_methods_code_enabled,omitempty"` + // Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + KratosSelfserviceMethodsCodeMfaEnabled *bool `json:"kratos_selfservice_methods_code_mfa_enabled,omitempty"` // Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. KratosSelfserviceMethodsCodePasswordlessEnabled *bool `json:"kratos_selfservice_methods_code_passwordless_enabled,omitempty"` // Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. @@ -387,8 +397,9 @@ type _CreateProjectNormalizedPayload CreateProjectNormalizedPayload // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateProjectNormalizedPayload(name string) *CreateProjectNormalizedPayload { +func NewCreateProjectNormalizedPayload(environment string, name string) *CreateProjectNormalizedPayload { this := CreateProjectNormalizedPayload{} + this.Environment = environment var hydraOauth2GrantJwtMaxTtl string = "720h" this.HydraOauth2GrantJwtMaxTtl = &hydraOauth2GrantJwtMaxTtl var hydraStrategiesAccessToken string = "opaque" @@ -509,6 +520,62 @@ func (o *CreateProjectNormalizedPayload) SetDisableAccountExperienceWelcomeScree o.DisableAccountExperienceWelcomeScreen = &v } +// GetEnableAxV2 returns the EnableAxV2 field value if set, zero value otherwise. +func (o *CreateProjectNormalizedPayload) GetEnableAxV2() bool { + if o == nil || IsNil(o.EnableAxV2) { + var ret bool + return ret + } + return *o.EnableAxV2 +} + +// GetEnableAxV2Ok returns a tuple with the EnableAxV2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateProjectNormalizedPayload) GetEnableAxV2Ok() (*bool, bool) { + if o == nil || IsNil(o.EnableAxV2) { + return nil, false + } + return o.EnableAxV2, true +} + +// HasEnableAxV2 returns a boolean if a field has been set. +func (o *CreateProjectNormalizedPayload) HasEnableAxV2() bool { + if o != nil && !IsNil(o.EnableAxV2) { + return true + } + + return false +} + +// SetEnableAxV2 gets a reference to the given bool and assigns it to the EnableAxV2 field. +func (o *CreateProjectNormalizedPayload) SetEnableAxV2(v bool) { + o.EnableAxV2 = &v +} + +// GetEnvironment returns the Environment field value +func (o *CreateProjectNormalizedPayload) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *CreateProjectNormalizedPayload) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *CreateProjectNormalizedPayload) SetEnvironment(v string) { + o.Environment = v +} + // GetHydraOauth2AllowedTopLevelClaims returns the HydraOauth2AllowedTopLevelClaims field value if set, zero value otherwise. func (o *CreateProjectNormalizedPayload) GetHydraOauth2AllowedTopLevelClaims() []string { if o == nil || IsNil(o.HydraOauth2AllowedTopLevelClaims) { @@ -701,6 +768,38 @@ func (o *CreateProjectNormalizedPayload) SetHydraOauth2GrantJwtMaxTtl(v string) o.HydraOauth2GrantJwtMaxTtl = &v } +// GetHydraOauth2MirrorTopLevelClaims returns the HydraOauth2MirrorTopLevelClaims field value if set, zero value otherwise. +func (o *CreateProjectNormalizedPayload) GetHydraOauth2MirrorTopLevelClaims() bool { + if o == nil || IsNil(o.HydraOauth2MirrorTopLevelClaims) { + var ret bool + return ret + } + return *o.HydraOauth2MirrorTopLevelClaims +} + +// GetHydraOauth2MirrorTopLevelClaimsOk returns a tuple with the HydraOauth2MirrorTopLevelClaims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateProjectNormalizedPayload) GetHydraOauth2MirrorTopLevelClaimsOk() (*bool, bool) { + if o == nil || IsNil(o.HydraOauth2MirrorTopLevelClaims) { + return nil, false + } + return o.HydraOauth2MirrorTopLevelClaims, true +} + +// HasHydraOauth2MirrorTopLevelClaims returns a boolean if a field has been set. +func (o *CreateProjectNormalizedPayload) HasHydraOauth2MirrorTopLevelClaims() bool { + if o != nil && !IsNil(o.HydraOauth2MirrorTopLevelClaims) { + return true + } + + return false +} + +// SetHydraOauth2MirrorTopLevelClaims gets a reference to the given bool and assigns it to the HydraOauth2MirrorTopLevelClaims field. +func (o *CreateProjectNormalizedPayload) SetHydraOauth2MirrorTopLevelClaims(v bool) { + o.HydraOauth2MirrorTopLevelClaims = &v +} + // GetHydraOauth2PkceEnforced returns the HydraOauth2PkceEnforced field value if set, zero value otherwise. func (o *CreateProjectNormalizedPayload) GetHydraOauth2PkceEnforced() bool { if o == nil || IsNil(o.HydraOauth2PkceEnforced) { @@ -2559,6 +2658,38 @@ func (o *CreateProjectNormalizedPayload) SetKratosCourierTemplatesLoginCodeValid o.KratosCourierTemplatesLoginCodeValidEmailSubject = &v } +// GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field value if set, zero value otherwise. +func (o *CreateProjectNormalizedPayload) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() string { + if o == nil || IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + var ret string + return ret + } + return *o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext +} + +// GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk returns a tuple with the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateProjectNormalizedPayload) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk() (*string, bool) { + if o == nil || IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + return nil, false + } + return o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, true +} + +// HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns a boolean if a field has been set. +func (o *CreateProjectNormalizedPayload) HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() bool { + if o != nil && !IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + return true + } + + return false +} + +// SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext gets a reference to the given string and assigns it to the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field. +func (o *CreateProjectNormalizedPayload) SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(v string) { + o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = &v +} + // GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml returns the KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml field value if set, zero value otherwise. func (o *CreateProjectNormalizedPayload) GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml() string { if o == nil || IsNil(o.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) { @@ -5280,6 +5411,38 @@ func (o *CreateProjectNormalizedPayload) SetKratosSelfserviceMethodsCodeEnabled( o.KratosSelfserviceMethodsCodeEnabled = &v } +// GetKratosSelfserviceMethodsCodeMfaEnabled returns the KratosSelfserviceMethodsCodeMfaEnabled field value if set, zero value otherwise. +func (o *CreateProjectNormalizedPayload) GetKratosSelfserviceMethodsCodeMfaEnabled() bool { + if o == nil || IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + var ret bool + return ret + } + return *o.KratosSelfserviceMethodsCodeMfaEnabled +} + +// GetKratosSelfserviceMethodsCodeMfaEnabledOk returns a tuple with the KratosSelfserviceMethodsCodeMfaEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateProjectNormalizedPayload) GetKratosSelfserviceMethodsCodeMfaEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + return nil, false + } + return o.KratosSelfserviceMethodsCodeMfaEnabled, true +} + +// HasKratosSelfserviceMethodsCodeMfaEnabled returns a boolean if a field has been set. +func (o *CreateProjectNormalizedPayload) HasKratosSelfserviceMethodsCodeMfaEnabled() bool { + if o != nil && !IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + return true + } + + return false +} + +// SetKratosSelfserviceMethodsCodeMfaEnabled gets a reference to the given bool and assigns it to the KratosSelfserviceMethodsCodeMfaEnabled field. +func (o *CreateProjectNormalizedPayload) SetKratosSelfserviceMethodsCodeMfaEnabled(v bool) { + o.KratosSelfserviceMethodsCodeMfaEnabled = &v +} + // GetKratosSelfserviceMethodsCodePasswordlessEnabled returns the KratosSelfserviceMethodsCodePasswordlessEnabled field value if set, zero value otherwise. func (o *CreateProjectNormalizedPayload) GetKratosSelfserviceMethodsCodePasswordlessEnabled() bool { if o == nil || IsNil(o.KratosSelfserviceMethodsCodePasswordlessEnabled) { @@ -6514,6 +6677,10 @@ func (o CreateProjectNormalizedPayload) ToMap() (map[string]interface{}, error) if !IsNil(o.DisableAccountExperienceWelcomeScreen) { toSerialize["disable_account_experience_welcome_screen"] = o.DisableAccountExperienceWelcomeScreen } + if !IsNil(o.EnableAxV2) { + toSerialize["enable_ax_v2"] = o.EnableAxV2 + } + toSerialize["environment"] = o.Environment if !IsNil(o.HydraOauth2AllowedTopLevelClaims) { toSerialize["hydra_oauth2_allowed_top_level_claims"] = o.HydraOauth2AllowedTopLevelClaims } @@ -6532,6 +6699,9 @@ func (o CreateProjectNormalizedPayload) ToMap() (map[string]interface{}, error) if !IsNil(o.HydraOauth2GrantJwtMaxTtl) { toSerialize["hydra_oauth2_grant_jwt_max_ttl"] = o.HydraOauth2GrantJwtMaxTtl } + if !IsNil(o.HydraOauth2MirrorTopLevelClaims) { + toSerialize["hydra_oauth2_mirror_top_level_claims"] = o.HydraOauth2MirrorTopLevelClaims + } if !IsNil(o.HydraOauth2PkceEnforced) { toSerialize["hydra_oauth2_pkce_enforced"] = o.HydraOauth2PkceEnforced } @@ -6706,6 +6876,9 @@ func (o CreateProjectNormalizedPayload) ToMap() (map[string]interface{}, error) if !IsNil(o.KratosCourierTemplatesLoginCodeValidEmailSubject) { toSerialize["kratos_courier_templates_login_code_valid_email_subject"] = o.KratosCourierTemplatesLoginCodeValidEmailSubject } + if !IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + toSerialize["kratos_courier_templates_login_code_valid_sms_body_plaintext"] = o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + } if !IsNil(o.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) { toSerialize["kratos_courier_templates_recovery_code_invalid_email_body_html"] = o.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml } @@ -6961,6 +7134,9 @@ func (o CreateProjectNormalizedPayload) ToMap() (map[string]interface{}, error) if !IsNil(o.KratosSelfserviceMethodsCodeEnabled) { toSerialize["kratos_selfservice_methods_code_enabled"] = o.KratosSelfserviceMethodsCodeEnabled } + if !IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + toSerialize["kratos_selfservice_methods_code_mfa_enabled"] = o.KratosSelfserviceMethodsCodeMfaEnabled + } if !IsNil(o.KratosSelfserviceMethodsCodePasswordlessEnabled) { toSerialize["kratos_selfservice_methods_code_passwordless_enabled"] = o.KratosSelfserviceMethodsCodePasswordlessEnabled } @@ -7086,6 +7262,7 @@ func (o *CreateProjectNormalizedPayload) UnmarshalJSON(bytes []byte) (err error) // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "environment", "name", } @@ -7118,12 +7295,15 @@ func (o *CreateProjectNormalizedPayload) UnmarshalJSON(bytes []byte) (err error) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "created_at") delete(additionalProperties, "disable_account_experience_welcome_screen") + delete(additionalProperties, "enable_ax_v2") + delete(additionalProperties, "environment") delete(additionalProperties, "hydra_oauth2_allowed_top_level_claims") delete(additionalProperties, "hydra_oauth2_client_credentials_default_grant_allowed_scope") delete(additionalProperties, "hydra_oauth2_exclude_not_before_claim") delete(additionalProperties, "hydra_oauth2_grant_jwt_iat_optional") delete(additionalProperties, "hydra_oauth2_grant_jwt_jti_optional") delete(additionalProperties, "hydra_oauth2_grant_jwt_max_ttl") + delete(additionalProperties, "hydra_oauth2_mirror_top_level_claims") delete(additionalProperties, "hydra_oauth2_pkce_enforced") delete(additionalProperties, "hydra_oauth2_pkce_enforced_for_public_clients") delete(additionalProperties, "hydra_oauth2_refresh_token_hook") @@ -7182,6 +7362,7 @@ func (o *CreateProjectNormalizedPayload) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "kratos_courier_templates_login_code_valid_email_body_html") delete(additionalProperties, "kratos_courier_templates_login_code_valid_email_body_plaintext") delete(additionalProperties, "kratos_courier_templates_login_code_valid_email_subject") + delete(additionalProperties, "kratos_courier_templates_login_code_valid_sms_body_plaintext") delete(additionalProperties, "kratos_courier_templates_recovery_code_invalid_email_body_html") delete(additionalProperties, "kratos_courier_templates_recovery_code_invalid_email_body_plaintext") delete(additionalProperties, "kratos_courier_templates_recovery_code_invalid_email_subject") @@ -7267,6 +7448,7 @@ func (o *CreateProjectNormalizedPayload) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "kratos_selfservice_flows_verification_use") delete(additionalProperties, "kratos_selfservice_methods_code_config_lifespan") delete(additionalProperties, "kratos_selfservice_methods_code_enabled") + delete(additionalProperties, "kratos_selfservice_methods_code_mfa_enabled") delete(additionalProperties, "kratos_selfservice_methods_code_passwordless_enabled") delete(additionalProperties, "kratos_selfservice_methods_link_config_base_url") delete(additionalProperties, "kratos_selfservice_methods_link_config_lifespan") diff --git a/clients/client/go/model_create_recovery_code_for_identity_body.go b/clients/client/go/model_create_recovery_code_for_identity_body.go index 6d24652d50e..94a8c67ad2c 100644 --- a/clients/client/go/model_create_recovery_code_for_identity_body.go +++ b/clients/client/go/model_create_recovery_code_for_identity_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_recovery_link_for_identity_body.go b/clients/client/go/model_create_recovery_link_for_identity_body.go index 84582d23fd0..ac3e721d36b 100644 --- a/clients/client/go/model_create_recovery_link_for_identity_body.go +++ b/clients/client/go/model_create_recovery_link_for_identity_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_relationship_body.go b/clients/client/go/model_create_relationship_body.go index 372f2dda5d6..9e725757f08 100644 --- a/clients/client/go/model_create_relationship_body.go +++ b/clients/client/go/model_create_relationship_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_subscription_body.go b/clients/client/go/model_create_subscription_body.go index 14936cc111c..387a734860e 100644 --- a/clients/client/go/model_create_subscription_body.go +++ b/clients/client/go/model_create_subscription_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -19,16 +19,15 @@ import ( // checks if the CreateSubscriptionBody type satisfies the MappedNullable interface at compile time var _ MappedNullable = &CreateSubscriptionBody{} -// CreateSubscriptionBody Create Subscription Request Body +// CreateSubscriptionBody struct for CreateSubscriptionBody type CreateSubscriptionBody struct { // usd USD eur Euro Currency *string `json:"currency,omitempty"` // monthly Monthly yearly Yearly Interval string `json:"interval"` Plan string `json:"plan"` - ProvisionFirstProject NullableString `json:"provision_first_project,omitempty"` + ProvisionFirstProject string `json:"provision_first_project"` ReturnTo *string `json:"return_to,omitempty"` - Workspace NullableString `json:"workspace,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,10 +37,11 @@ type _CreateSubscriptionBody CreateSubscriptionBody // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewCreateSubscriptionBody(interval string, plan string) *CreateSubscriptionBody { +func NewCreateSubscriptionBody(interval string, plan string, provisionFirstProject string) *CreateSubscriptionBody { this := CreateSubscriptionBody{} this.Interval = interval this.Plan = plan + this.ProvisionFirstProject = provisionFirstProject return &this } @@ -133,46 +133,28 @@ func (o *CreateSubscriptionBody) SetPlan(v string) { o.Plan = v } -// GetProvisionFirstProject returns the ProvisionFirstProject field value if set, zero value otherwise (both if not set or set to explicit null). +// GetProvisionFirstProject returns the ProvisionFirstProject field value func (o *CreateSubscriptionBody) GetProvisionFirstProject() string { - if o == nil || IsNil(o.ProvisionFirstProject.Get()) { + if o == nil { var ret string return ret } - return *o.ProvisionFirstProject.Get() + + return o.ProvisionFirstProject } -// GetProvisionFirstProjectOk returns a tuple with the ProvisionFirstProject field value if set, nil otherwise +// GetProvisionFirstProjectOk returns a tuple with the ProvisionFirstProject field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CreateSubscriptionBody) GetProvisionFirstProjectOk() (*string, bool) { if o == nil { return nil, false } - return o.ProvisionFirstProject.Get(), o.ProvisionFirstProject.IsSet() + return &o.ProvisionFirstProject, true } -// HasProvisionFirstProject returns a boolean if a field has been set. -func (o *CreateSubscriptionBody) HasProvisionFirstProject() bool { - if o != nil && o.ProvisionFirstProject.IsSet() { - return true - } - - return false -} - -// SetProvisionFirstProject gets a reference to the given NullableString and assigns it to the ProvisionFirstProject field. +// SetProvisionFirstProject sets field value func (o *CreateSubscriptionBody) SetProvisionFirstProject(v string) { - o.ProvisionFirstProject.Set(&v) -} -// SetProvisionFirstProjectNil sets the value for ProvisionFirstProject to be an explicit nil -func (o *CreateSubscriptionBody) SetProvisionFirstProjectNil() { - o.ProvisionFirstProject.Set(nil) -} - -// UnsetProvisionFirstProject ensures that no value is present for ProvisionFirstProject, not even an explicit nil -func (o *CreateSubscriptionBody) UnsetProvisionFirstProject() { - o.ProvisionFirstProject.Unset() + o.ProvisionFirstProject = v } // GetReturnTo returns the ReturnTo field value if set, zero value otherwise. @@ -207,48 +189,6 @@ func (o *CreateSubscriptionBody) SetReturnTo(v string) { o.ReturnTo = &v } -// GetWorkspace returns the Workspace field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CreateSubscriptionBody) GetWorkspace() string { - if o == nil || IsNil(o.Workspace.Get()) { - var ret string - return ret - } - return *o.Workspace.Get() -} - -// GetWorkspaceOk returns a tuple with the Workspace field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CreateSubscriptionBody) GetWorkspaceOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.Workspace.Get(), o.Workspace.IsSet() -} - -// HasWorkspace returns a boolean if a field has been set. -func (o *CreateSubscriptionBody) HasWorkspace() bool { - if o != nil && o.Workspace.IsSet() { - return true - } - - return false -} - -// SetWorkspace gets a reference to the given NullableString and assigns it to the Workspace field. -func (o *CreateSubscriptionBody) SetWorkspace(v string) { - o.Workspace.Set(&v) -} -// SetWorkspaceNil sets the value for Workspace to be an explicit nil -func (o *CreateSubscriptionBody) SetWorkspaceNil() { - o.Workspace.Set(nil) -} - -// UnsetWorkspace ensures that no value is present for Workspace, not even an explicit nil -func (o *CreateSubscriptionBody) UnsetWorkspace() { - o.Workspace.Unset() -} - func (o CreateSubscriptionBody) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -264,15 +204,10 @@ func (o CreateSubscriptionBody) ToMap() (map[string]interface{}, error) { } toSerialize["interval"] = o.Interval toSerialize["plan"] = o.Plan - if o.ProvisionFirstProject.IsSet() { - toSerialize["provision_first_project"] = o.ProvisionFirstProject.Get() - } + toSerialize["provision_first_project"] = o.ProvisionFirstProject if !IsNil(o.ReturnTo) { toSerialize["return_to"] = o.ReturnTo } - if o.Workspace.IsSet() { - toSerialize["workspace"] = o.Workspace.Get() - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -288,6 +223,7 @@ func (o *CreateSubscriptionBody) UnmarshalJSON(bytes []byte) (err error) { requiredProperties := []string{ "interval", "plan", + "provision_first_project", } allProperties := make(map[string]interface{}) @@ -322,7 +258,6 @@ func (o *CreateSubscriptionBody) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "plan") delete(additionalProperties, "provision_first_project") delete(additionalProperties, "return_to") - delete(additionalProperties, "workspace") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_create_subscription_common.go b/clients/client/go/model_create_subscription_common.go new file mode 100644 index 00000000000..3fe14ba39ba --- /dev/null +++ b/clients/client/go/model_create_subscription_common.go @@ -0,0 +1,274 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateSubscriptionCommon type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateSubscriptionCommon{} + +// CreateSubscriptionCommon struct for CreateSubscriptionCommon +type CreateSubscriptionCommon struct { + // usd USD eur Euro + Currency *string `json:"currency,omitempty"` + // monthly Monthly yearly Yearly + Interval string `json:"interval"` + Plan string `json:"plan"` + ReturnTo *string `json:"return_to,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateSubscriptionCommon CreateSubscriptionCommon + +// NewCreateSubscriptionCommon instantiates a new CreateSubscriptionCommon object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateSubscriptionCommon(interval string, plan string) *CreateSubscriptionCommon { + this := CreateSubscriptionCommon{} + this.Interval = interval + this.Plan = plan + return &this +} + +// NewCreateSubscriptionCommonWithDefaults instantiates a new CreateSubscriptionCommon object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateSubscriptionCommonWithDefaults() *CreateSubscriptionCommon { + this := CreateSubscriptionCommon{} + return &this +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *CreateSubscriptionCommon) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSubscriptionCommon) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *CreateSubscriptionCommon) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *CreateSubscriptionCommon) SetCurrency(v string) { + o.Currency = &v +} + +// GetInterval returns the Interval field value +func (o *CreateSubscriptionCommon) GetInterval() string { + if o == nil { + var ret string + return ret + } + + return o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value +// and a boolean to check if the value has been set. +func (o *CreateSubscriptionCommon) GetIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Interval, true +} + +// SetInterval sets field value +func (o *CreateSubscriptionCommon) SetInterval(v string) { + o.Interval = v +} + +// GetPlan returns the Plan field value +func (o *CreateSubscriptionCommon) GetPlan() string { + if o == nil { + var ret string + return ret + } + + return o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value +// and a boolean to check if the value has been set. +func (o *CreateSubscriptionCommon) GetPlanOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Plan, true +} + +// SetPlan sets field value +func (o *CreateSubscriptionCommon) SetPlan(v string) { + o.Plan = v +} + +// GetReturnTo returns the ReturnTo field value if set, zero value otherwise. +func (o *CreateSubscriptionCommon) GetReturnTo() string { + if o == nil || IsNil(o.ReturnTo) { + var ret string + return ret + } + return *o.ReturnTo +} + +// GetReturnToOk returns a tuple with the ReturnTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateSubscriptionCommon) GetReturnToOk() (*string, bool) { + if o == nil || IsNil(o.ReturnTo) { + return nil, false + } + return o.ReturnTo, true +} + +// HasReturnTo returns a boolean if a field has been set. +func (o *CreateSubscriptionCommon) HasReturnTo() bool { + if o != nil && !IsNil(o.ReturnTo) { + return true + } + + return false +} + +// SetReturnTo gets a reference to the given string and assigns it to the ReturnTo field. +func (o *CreateSubscriptionCommon) SetReturnTo(v string) { + o.ReturnTo = &v +} + +func (o CreateSubscriptionCommon) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateSubscriptionCommon) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + toSerialize["interval"] = o.Interval + toSerialize["plan"] = o.Plan + if !IsNil(o.ReturnTo) { + toSerialize["return_to"] = o.ReturnTo + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateSubscriptionCommon) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "interval", + "plan", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateSubscriptionCommon := _CreateSubscriptionCommon{} + + err = json.Unmarshal(bytes, &varCreateSubscriptionCommon) + + if err != nil { + return err + } + + *o = CreateSubscriptionCommon(varCreateSubscriptionCommon) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "currency") + delete(additionalProperties, "interval") + delete(additionalProperties, "plan") + delete(additionalProperties, "return_to") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateSubscriptionCommon struct { + value *CreateSubscriptionCommon + isSet bool +} + +func (v NullableCreateSubscriptionCommon) Get() *CreateSubscriptionCommon { + return v.value +} + +func (v *NullableCreateSubscriptionCommon) Set(val *CreateSubscriptionCommon) { + v.value = val + v.isSet = true +} + +func (v NullableCreateSubscriptionCommon) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateSubscriptionCommon) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateSubscriptionCommon(val *CreateSubscriptionCommon) *NullableCreateSubscriptionCommon { + return &NullableCreateSubscriptionCommon{value: val, isSet: true} +} + +func (v NullableCreateSubscriptionCommon) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateSubscriptionCommon) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_create_verifiable_credential_request_body.go b/clients/client/go/model_create_verifiable_credential_request_body.go index 9621be855fc..a77e9e5ab6b 100644 --- a/clients/client/go/model_create_verifiable_credential_request_body.go +++ b/clients/client/go/model_create_verifiable_credential_request_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_workspace_member_invite_body.go b/clients/client/go/model_create_workspace_member_invite_body.go index dae021cc98c..6f07d1503fc 100644 --- a/clients/client/go/model_create_workspace_member_invite_body.go +++ b/clients/client/go/model_create_workspace_member_invite_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_create_workspace_payload.go b/clients/client/go/model_create_workspace_payload.go new file mode 100644 index 00000000000..607e07bc7f2 --- /dev/null +++ b/clients/client/go/model_create_workspace_payload.go @@ -0,0 +1,170 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateWorkspacePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateWorkspacePayload{} + +// CreateWorkspacePayload struct for CreateWorkspacePayload +type CreateWorkspacePayload struct { + // The name of the workspace + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _CreateWorkspacePayload CreateWorkspacePayload + +// NewCreateWorkspacePayload instantiates a new CreateWorkspacePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateWorkspacePayload(name string) *CreateWorkspacePayload { + this := CreateWorkspacePayload{} + this.Name = name + return &this +} + +// NewCreateWorkspacePayloadWithDefaults instantiates a new CreateWorkspacePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateWorkspacePayloadWithDefaults() *CreateWorkspacePayload { + this := CreateWorkspacePayload{} + return &this +} + +// GetName returns the Name field value +func (o *CreateWorkspacePayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CreateWorkspacePayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CreateWorkspacePayload) SetName(v string) { + o.Name = v +} + +func (o CreateWorkspacePayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateWorkspacePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateWorkspacePayload) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateWorkspacePayload := _CreateWorkspacePayload{} + + err = json.Unmarshal(bytes, &varCreateWorkspacePayload) + + if err != nil { + return err + } + + *o = CreateWorkspacePayload(varCreateWorkspacePayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateWorkspacePayload struct { + value *CreateWorkspacePayload + isSet bool +} + +func (v NullableCreateWorkspacePayload) Get() *CreateWorkspacePayload { + return v.value +} + +func (v *NullableCreateWorkspacePayload) Set(val *CreateWorkspacePayload) { + v.value = val + v.isSet = true +} + +func (v NullableCreateWorkspacePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateWorkspacePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateWorkspacePayload(val *CreateWorkspacePayload) *NullableCreateWorkspacePayload { + return &NullableCreateWorkspacePayload{value: val, isSet: true} +} + +func (v NullableCreateWorkspacePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateWorkspacePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_create_workspace_subscription_body.go b/clients/client/go/model_create_workspace_subscription_body.go new file mode 100644 index 00000000000..ccc7f2f3962 --- /dev/null +++ b/clients/client/go/model_create_workspace_subscription_body.go @@ -0,0 +1,274 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the CreateWorkspaceSubscriptionBody type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CreateWorkspaceSubscriptionBody{} + +// CreateWorkspaceSubscriptionBody struct for CreateWorkspaceSubscriptionBody +type CreateWorkspaceSubscriptionBody struct { + // usd USD eur Euro + Currency *string `json:"currency,omitempty"` + // monthly Monthly yearly Yearly + Interval string `json:"interval"` + Plan string `json:"plan"` + ReturnTo *string `json:"return_to,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CreateWorkspaceSubscriptionBody CreateWorkspaceSubscriptionBody + +// NewCreateWorkspaceSubscriptionBody instantiates a new CreateWorkspaceSubscriptionBody object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCreateWorkspaceSubscriptionBody(interval string, plan string) *CreateWorkspaceSubscriptionBody { + this := CreateWorkspaceSubscriptionBody{} + this.Interval = interval + this.Plan = plan + return &this +} + +// NewCreateWorkspaceSubscriptionBodyWithDefaults instantiates a new CreateWorkspaceSubscriptionBody object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCreateWorkspaceSubscriptionBodyWithDefaults() *CreateWorkspaceSubscriptionBody { + this := CreateWorkspaceSubscriptionBody{} + return &this +} + +// GetCurrency returns the Currency field value if set, zero value otherwise. +func (o *CreateWorkspaceSubscriptionBody) GetCurrency() string { + if o == nil || IsNil(o.Currency) { + var ret string + return ret + } + return *o.Currency +} + +// GetCurrencyOk returns a tuple with the Currency field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkspaceSubscriptionBody) GetCurrencyOk() (*string, bool) { + if o == nil || IsNil(o.Currency) { + return nil, false + } + return o.Currency, true +} + +// HasCurrency returns a boolean if a field has been set. +func (o *CreateWorkspaceSubscriptionBody) HasCurrency() bool { + if o != nil && !IsNil(o.Currency) { + return true + } + + return false +} + +// SetCurrency gets a reference to the given string and assigns it to the Currency field. +func (o *CreateWorkspaceSubscriptionBody) SetCurrency(v string) { + o.Currency = &v +} + +// GetInterval returns the Interval field value +func (o *CreateWorkspaceSubscriptionBody) GetInterval() string { + if o == nil { + var ret string + return ret + } + + return o.Interval +} + +// GetIntervalOk returns a tuple with the Interval field value +// and a boolean to check if the value has been set. +func (o *CreateWorkspaceSubscriptionBody) GetIntervalOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Interval, true +} + +// SetInterval sets field value +func (o *CreateWorkspaceSubscriptionBody) SetInterval(v string) { + o.Interval = v +} + +// GetPlan returns the Plan field value +func (o *CreateWorkspaceSubscriptionBody) GetPlan() string { + if o == nil { + var ret string + return ret + } + + return o.Plan +} + +// GetPlanOk returns a tuple with the Plan field value +// and a boolean to check if the value has been set. +func (o *CreateWorkspaceSubscriptionBody) GetPlanOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Plan, true +} + +// SetPlan sets field value +func (o *CreateWorkspaceSubscriptionBody) SetPlan(v string) { + o.Plan = v +} + +// GetReturnTo returns the ReturnTo field value if set, zero value otherwise. +func (o *CreateWorkspaceSubscriptionBody) GetReturnTo() string { + if o == nil || IsNil(o.ReturnTo) { + var ret string + return ret + } + return *o.ReturnTo +} + +// GetReturnToOk returns a tuple with the ReturnTo field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CreateWorkspaceSubscriptionBody) GetReturnToOk() (*string, bool) { + if o == nil || IsNil(o.ReturnTo) { + return nil, false + } + return o.ReturnTo, true +} + +// HasReturnTo returns a boolean if a field has been set. +func (o *CreateWorkspaceSubscriptionBody) HasReturnTo() bool { + if o != nil && !IsNil(o.ReturnTo) { + return true + } + + return false +} + +// SetReturnTo gets a reference to the given string and assigns it to the ReturnTo field. +func (o *CreateWorkspaceSubscriptionBody) SetReturnTo(v string) { + o.ReturnTo = &v +} + +func (o CreateWorkspaceSubscriptionBody) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CreateWorkspaceSubscriptionBody) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Currency) { + toSerialize["currency"] = o.Currency + } + toSerialize["interval"] = o.Interval + toSerialize["plan"] = o.Plan + if !IsNil(o.ReturnTo) { + toSerialize["return_to"] = o.ReturnTo + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CreateWorkspaceSubscriptionBody) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "interval", + "plan", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCreateWorkspaceSubscriptionBody := _CreateWorkspaceSubscriptionBody{} + + err = json.Unmarshal(bytes, &varCreateWorkspaceSubscriptionBody) + + if err != nil { + return err + } + + *o = CreateWorkspaceSubscriptionBody(varCreateWorkspaceSubscriptionBody) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "currency") + delete(additionalProperties, "interval") + delete(additionalProperties, "plan") + delete(additionalProperties, "return_to") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCreateWorkspaceSubscriptionBody struct { + value *CreateWorkspaceSubscriptionBody + isSet bool +} + +func (v NullableCreateWorkspaceSubscriptionBody) Get() *CreateWorkspaceSubscriptionBody { + return v.value +} + +func (v *NullableCreateWorkspaceSubscriptionBody) Set(val *CreateWorkspaceSubscriptionBody) { + v.value = val + v.isSet = true +} + +func (v NullableCreateWorkspaceSubscriptionBody) IsSet() bool { + return v.isSet +} + +func (v *NullableCreateWorkspaceSubscriptionBody) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCreateWorkspaceSubscriptionBody(val *CreateWorkspaceSubscriptionBody) *NullableCreateWorkspaceSubscriptionBody { + return &NullableCreateWorkspaceSubscriptionBody{value: val, isSet: true} +} + +func (v NullableCreateWorkspaceSubscriptionBody) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCreateWorkspaceSubscriptionBody) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_credential_supported_draft00.go b/clients/client/go/model_credential_supported_draft00.go index 25d2581572b..e2953163886 100644 --- a/clients/client/go/model_credential_supported_draft00.go +++ b/clients/client/go/model_credential_supported_draft00.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_custom_domain.go b/clients/client/go/model_custom_domain.go index 548de810763..49fd52641ea 100644 --- a/clients/client/go/model_custom_domain.go +++ b/clients/client/go/model_custom_domain.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_delete_my_sessions_count.go b/clients/client/go/model_delete_my_sessions_count.go index d0cd148c45c..554647f4ec6 100644 --- a/clients/client/go/model_delete_my_sessions_count.go +++ b/clients/client/go/model_delete_my_sessions_count.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_email_template_data.go b/clients/client/go/model_email_template_data.go index ae1a971ab9f..eeaf3006d9c 100644 --- a/clients/client/go/model_email_template_data.go +++ b/clients/client/go/model_email_template_data.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_email_template_data_body.go b/clients/client/go/model_email_template_data_body.go index df6bbeb2c9b..4ff5168cd9d 100644 --- a/clients/client/go/model_email_template_data_body.go +++ b/clients/client/go/model_email_template_data_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_error_authenticator_assurance_level_not_satisfied.go b/clients/client/go/model_error_authenticator_assurance_level_not_satisfied.go index 32c77b42284..489a72ad196 100644 --- a/clients/client/go/model_error_authenticator_assurance_level_not_satisfied.go +++ b/clients/client/go/model_error_authenticator_assurance_level_not_satisfied.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_error_browser_location_change_required.go b/clients/client/go/model_error_browser_location_change_required.go index a84cfe0c463..3a3f130411a 100644 --- a/clients/client/go/model_error_browser_location_change_required.go +++ b/clients/client/go/model_error_browser_location_change_required.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_error_flow_replaced.go b/clients/client/go/model_error_flow_replaced.go index d5e1bf5ae54..7af400fdba2 100644 --- a/clients/client/go/model_error_flow_replaced.go +++ b/clients/client/go/model_error_flow_replaced.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_error_generic.go b/clients/client/go/model_error_generic.go index 1a79ae7b497..1074e26587c 100644 --- a/clients/client/go/model_error_generic.go +++ b/clients/client/go/model_error_generic.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_error_o_auth2.go b/clients/client/go/model_error_o_auth2.go index 128c0a5f044..3cd07108df0 100644 --- a/clients/client/go/model_error_o_auth2.go +++ b/clients/client/go/model_error_o_auth2.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_event_stream.go b/clients/client/go/model_event_stream.go index 1f8b8a278b7..3495768cd5b 100644 --- a/clients/client/go/model_event_stream.go +++ b/clients/client/go/model_event_stream.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_expanded_permission_tree.go b/clients/client/go/model_expanded_permission_tree.go index 3938642a3ea..9524b19ccf8 100644 --- a/clients/client/go/model_expanded_permission_tree.go +++ b/clients/client/go/model_expanded_permission_tree.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_flow_error.go b/clients/client/go/model_flow_error.go index de4f45aceef..c6e542e57fa 100644 --- a/clients/client/go/model_flow_error.go +++ b/clients/client/go/model_flow_error.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_generic_error.go b/clients/client/go/model_generic_error.go index aa41f3f68e5..83ee80c1654 100644 --- a/clients/client/go/model_generic_error.go +++ b/clients/client/go/model_generic_error.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_generic_error_content.go b/clients/client/go/model_generic_error_content.go index 63a7ae90913..e82d75553e3 100644 --- a/clients/client/go/model_generic_error_content.go +++ b/clients/client/go/model_generic_error_content.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_generic_usage.go b/clients/client/go/model_generic_usage.go index 43ffd8e7db6..ab92cfa52de 100644 --- a/clients/client/go/model_generic_usage.go +++ b/clients/client/go/model_generic_usage.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_attributes_count_response.go b/clients/client/go/model_get_attributes_count_response.go index 7b467e4e1ee..4496e1fb5d8 100644 --- a/clients/client/go/model_get_attributes_count_response.go +++ b/clients/client/go/model_get_attributes_count_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_managed_identity_schema_location.go b/clients/client/go/model_get_managed_identity_schema_location.go index 84e63b6b5b4..1921d0c1081 100644 --- a/clients/client/go/model_get_managed_identity_schema_location.go +++ b/clients/client/go/model_get_managed_identity_schema_location.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_metrics_event_attributes_response.go b/clients/client/go/model_get_metrics_event_attributes_response.go index ffbf0ae0b91..da73fd6deae 100644 --- a/clients/client/go/model_get_metrics_event_attributes_response.go +++ b/clients/client/go/model_get_metrics_event_attributes_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_metrics_event_types_response.go b/clients/client/go/model_get_metrics_event_types_response.go index 3b1496bc604..db2a331361d 100644 --- a/clients/client/go/model_get_metrics_event_types_response.go +++ b/clients/client/go/model_get_metrics_event_types_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_organization_response.go b/clients/client/go/model_get_organization_response.go index 66fc1e892aa..02f2a7b4469 100644 --- a/clients/client/go/model_get_organization_response.go +++ b/clients/client/go/model_get_organization_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_project_events_body.go b/clients/client/go/model_get_project_events_body.go index 30ec43c5ba9..0d4e32f1f68 100644 --- a/clients/client/go/model_get_project_events_body.go +++ b/clients/client/go/model_get_project_events_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_project_events_response.go b/clients/client/go/model_get_project_events_response.go index aa124ee34f6..fc9e52a3d3a 100644 --- a/clients/client/go/model_get_project_events_response.go +++ b/clients/client/go/model_get_project_events_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_project_metrics_response.go b/clients/client/go/model_get_project_metrics_response.go index d8d01b4273e..41739281959 100644 --- a/clients/client/go/model_get_project_metrics_response.go +++ b/clients/client/go/model_get_project_metrics_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_session_activity_response.go b/clients/client/go/model_get_session_activity_response.go index 9f0fb830b7e..d6ff3f6daf9 100644 --- a/clients/client/go/model_get_session_activity_response.go +++ b/clients/client/go/model_get_session_activity_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_get_version_200_response.go b/clients/client/go/model_get_version_200_response.go index 550eb9dd8be..1634ce87ab9 100644 --- a/clients/client/go/model_get_version_200_response.go +++ b/clients/client/go/model_get_version_200_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_health_not_ready_status.go b/clients/client/go/model_health_not_ready_status.go index 75346b61a4f..18785def8e1 100644 --- a/clients/client/go/model_health_not_ready_status.go +++ b/clients/client/go/model_health_not_ready_status.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_health_status.go b/clients/client/go/model_health_status.go index 6f67a641e5d..2c9f26aa204 100644 --- a/clients/client/go/model_health_status.go +++ b/clients/client/go/model_health_status.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity.go b/clients/client/go/model_identity.go index 4e5ac898b5c..721ceb72a5f 100644 --- a/clients/client/go/model_identity.go +++ b/clients/client/go/model_identity.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -39,7 +39,8 @@ type Identity struct { SchemaId string `json:"schema_id"` // SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url SchemaUrl string `json:"schema_url"` - State *IdentityState `json:"state,omitempty"` + // State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + State *string `json:"state,omitempty"` StateChangedAt *time.Time `json:"state_changed_at,omitempty"` // Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. Traits interface{} `json:"traits"` @@ -350,9 +351,9 @@ func (o *Identity) SetSchemaUrl(v string) { } // GetState returns the State field value if set, zero value otherwise. -func (o *Identity) GetState() IdentityState { +func (o *Identity) GetState() string { if o == nil || IsNil(o.State) { - var ret IdentityState + var ret string return ret } return *o.State @@ -360,7 +361,7 @@ func (o *Identity) GetState() IdentityState { // GetStateOk returns a tuple with the State field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Identity) GetStateOk() (*IdentityState, bool) { +func (o *Identity) GetStateOk() (*string, bool) { if o == nil || IsNil(o.State) { return nil, false } @@ -376,8 +377,8 @@ func (o *Identity) HasState() bool { return false } -// SetState gets a reference to the given IdentityState and assigns it to the State field. -func (o *Identity) SetState(v IdentityState) { +// SetState gets a reference to the given string and assigns it to the State field. +func (o *Identity) SetState(v string) { o.State = &v } diff --git a/clients/client/go/model_identity_credentials.go b/clients/client/go/model_identity_credentials.go index 8a76fe9b0d9..e55c1a1979c 100644 --- a/clients/client/go/model_identity_credentials.go +++ b/clients/client/go/model_identity_credentials.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -26,7 +26,8 @@ type IdentityCredentials struct { CreatedAt *time.Time `json:"created_at,omitempty"` // Identifiers represents a list of unique identifiers this credential type matches. Identifiers []string `json:"identifiers,omitempty"` - Type *IdentityCredentialsType `json:"type,omitempty"` + // Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + Type *string `json:"type,omitempty"` // UpdatedAt is a helper struct field for gobuffalo.pop. UpdatedAt *time.Time `json:"updated_at,omitempty"` // Version refers to the version of the credential. Useful when changing the config schema. @@ -150,9 +151,9 @@ func (o *IdentityCredentials) SetIdentifiers(v []string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *IdentityCredentials) GetType() IdentityCredentialsType { +func (o *IdentityCredentials) GetType() string { if o == nil || IsNil(o.Type) { - var ret IdentityCredentialsType + var ret string return ret } return *o.Type @@ -160,7 +161,7 @@ func (o *IdentityCredentials) GetType() IdentityCredentialsType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *IdentityCredentials) GetTypeOk() (*IdentityCredentialsType, bool) { +func (o *IdentityCredentials) GetTypeOk() (*string, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -176,8 +177,8 @@ func (o *IdentityCredentials) HasType() bool { return false } -// SetType gets a reference to the given IdentityCredentialsType and assigns it to the Type field. -func (o *IdentityCredentials) SetType(v IdentityCredentialsType) { +// SetType gets a reference to the given string and assigns it to the Type field. +func (o *IdentityCredentials) SetType(v string) { o.Type = &v } diff --git a/clients/client/go/model_identity_credentials_code.go b/clients/client/go/model_identity_credentials_code.go index 08f847d78af..7b9ab96068f 100644 --- a/clients/client/go/model_identity_credentials_code.go +++ b/clients/client/go/model_identity_credentials_code.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -21,6 +21,7 @@ var _ MappedNullable = &IdentityCredentialsCode{} // IdentityCredentialsCode CredentialsCode represents a one time login/registration code type IdentityCredentialsCode struct { + // The type of the address for this code AddressType *string `json:"address_type,omitempty"` UsedAt NullableTime `json:"used_at,omitempty"` AdditionalProperties map[string]interface{} diff --git a/clients/client/go/model_identity_credentials_oidc.go b/clients/client/go/model_identity_credentials_oidc.go index 729e14c7078..ea46de075ca 100644 --- a/clients/client/go/model_identity_credentials_oidc.go +++ b/clients/client/go/model_identity_credentials_oidc.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_credentials_oidc_provider.go b/clients/client/go/model_identity_credentials_oidc_provider.go index 39e8a32a287..26a03fabd12 100644 --- a/clients/client/go/model_identity_credentials_oidc_provider.go +++ b/clients/client/go/model_identity_credentials_oidc_provider.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_credentials_password.go b/clients/client/go/model_identity_credentials_password.go index 5f8e50e0c4c..137fe392cce 100644 --- a/clients/client/go/model_identity_credentials_password.go +++ b/clients/client/go/model_identity_credentials_password.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_credentials_type.go b/clients/client/go/model_identity_credentials_type.go deleted file mode 100644 index f73fa971dcc..00000000000 --- a/clients/client/go/model_identity_credentials_type.go +++ /dev/null @@ -1,120 +0,0 @@ -/* -Ory APIs - -Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -API version: v1.5.1 -Contact: support@ory.sh -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - -// IdentityCredentialsType and so on. -type IdentityCredentialsType string - -// List of identityCredentialsType -const ( - IDENTITYCREDENTIALSTYPE_PASSWORD IdentityCredentialsType = "password" - IDENTITYCREDENTIALSTYPE_TOTP IdentityCredentialsType = "totp" - IDENTITYCREDENTIALSTYPE_OIDC IdentityCredentialsType = "oidc" - IDENTITYCREDENTIALSTYPE_WEBAUTHN IdentityCredentialsType = "webauthn" - IDENTITYCREDENTIALSTYPE_LOOKUP_SECRET IdentityCredentialsType = "lookup_secret" - IDENTITYCREDENTIALSTYPE_CODE IdentityCredentialsType = "code" -) - -// All allowed values of IdentityCredentialsType enum -var AllowedIdentityCredentialsTypeEnumValues = []IdentityCredentialsType{ - "password", - "totp", - "oidc", - "webauthn", - "lookup_secret", - "code", -} - -func (v *IdentityCredentialsType) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := IdentityCredentialsType(value) - for _, existing := range AllowedIdentityCredentialsTypeEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid IdentityCredentialsType", value) -} - -// NewIdentityCredentialsTypeFromValue returns a pointer to a valid IdentityCredentialsType -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewIdentityCredentialsTypeFromValue(v string) (*IdentityCredentialsType, error) { - ev := IdentityCredentialsType(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for IdentityCredentialsType: valid values are %v", v, AllowedIdentityCredentialsTypeEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v IdentityCredentialsType) IsValid() bool { - for _, existing := range AllowedIdentityCredentialsTypeEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to identityCredentialsType value -func (v IdentityCredentialsType) Ptr() *IdentityCredentialsType { - return &v -} - -type NullableIdentityCredentialsType struct { - value *IdentityCredentialsType - isSet bool -} - -func (v NullableIdentityCredentialsType) Get() *IdentityCredentialsType { - return v.value -} - -func (v *NullableIdentityCredentialsType) Set(val *IdentityCredentialsType) { - v.value = val - v.isSet = true -} - -func (v NullableIdentityCredentialsType) IsSet() bool { - return v.isSet -} - -func (v *NullableIdentityCredentialsType) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIdentityCredentialsType(val *IdentityCredentialsType) *NullableIdentityCredentialsType { - return &NullableIdentityCredentialsType{value: val, isSet: true} -} - -func (v NullableIdentityCredentialsType) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableIdentityCredentialsType) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/clients/client/go/model_identity_patch.go b/clients/client/go/model_identity_patch.go index 180f41e5497..2130c9524f8 100644 --- a/clients/client/go/model_identity_patch.go +++ b/clients/client/go/model_identity_patch.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_patch_response.go b/clients/client/go/model_identity_patch_response.go index c16c7dc7f34..60faf6e0634 100644 --- a/clients/client/go/model_identity_patch_response.go +++ b/clients/client/go/model_identity_patch_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_schema_container.go b/clients/client/go/model_identity_schema_container.go index 7cab77fe828..145002ae1fb 100644 --- a/clients/client/go/model_identity_schema_container.go +++ b/clients/client/go/model_identity_schema_container.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_schema_preset.go b/clients/client/go/model_identity_schema_preset.go index 5b3e26c87f6..cdaf7fe41e8 100644 --- a/clients/client/go/model_identity_schema_preset.go +++ b/clients/client/go/model_identity_schema_preset.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_state.go b/clients/client/go/model_identity_state.go deleted file mode 100644 index fddf379bc27..00000000000 --- a/clients/client/go/model_identity_state.go +++ /dev/null @@ -1,112 +0,0 @@ -/* -Ory APIs - -Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -API version: v1.5.1 -Contact: support@ory.sh -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - -// IdentityState The state can either be `active` or `inactive`. -type IdentityState string - -// List of identityState -const ( - IDENTITYSTATE_ACTIVE IdentityState = "active" - IDENTITYSTATE_INACTIVE IdentityState = "inactive" -) - -// All allowed values of IdentityState enum -var AllowedIdentityStateEnumValues = []IdentityState{ - "active", - "inactive", -} - -func (v *IdentityState) UnmarshalJSON(src []byte) error { - var value string - err := json.Unmarshal(src, &value) - if err != nil { - return err - } - enumTypeValue := IdentityState(value) - for _, existing := range AllowedIdentityStateEnumValues { - if existing == enumTypeValue { - *v = enumTypeValue - return nil - } - } - - return fmt.Errorf("%+v is not a valid IdentityState", value) -} - -// NewIdentityStateFromValue returns a pointer to a valid IdentityState -// for the value passed as argument, or an error if the value passed is not allowed by the enum -func NewIdentityStateFromValue(v string) (*IdentityState, error) { - ev := IdentityState(v) - if ev.IsValid() { - return &ev, nil - } else { - return nil, fmt.Errorf("invalid value '%v' for IdentityState: valid values are %v", v, AllowedIdentityStateEnumValues) - } -} - -// IsValid return true if the value is valid for the enum, false otherwise -func (v IdentityState) IsValid() bool { - for _, existing := range AllowedIdentityStateEnumValues { - if existing == v { - return true - } - } - return false -} - -// Ptr returns reference to identityState value -func (v IdentityState) Ptr() *IdentityState { - return &v -} - -type NullableIdentityState struct { - value *IdentityState - isSet bool -} - -func (v NullableIdentityState) Get() *IdentityState { - return v.value -} - -func (v *NullableIdentityState) Set(val *IdentityState) { - v.value = val - v.isSet = true -} - -func (v NullableIdentityState) IsSet() bool { - return v.isSet -} - -func (v *NullableIdentityState) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableIdentityState(val *IdentityState) *NullableIdentityState { - return &NullableIdentityState{value: val, isSet: true} -} - -func (v NullableIdentityState) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableIdentityState) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - diff --git a/clients/client/go/model_identity_with_credentials.go b/clients/client/go/model_identity_with_credentials.go index 1065e047d38..37913940b88 100644 --- a/clients/client/go/model_identity_with_credentials.go +++ b/clients/client/go/model_identity_with_credentials.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_with_credentials_oidc.go b/clients/client/go/model_identity_with_credentials_oidc.go index f9fc8067a68..7722b74fa07 100644 --- a/clients/client/go/model_identity_with_credentials_oidc.go +++ b/clients/client/go/model_identity_with_credentials_oidc.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_with_credentials_oidc_config.go b/clients/client/go/model_identity_with_credentials_oidc_config.go index 2e895552cd5..fa80d1220a2 100644 --- a/clients/client/go/model_identity_with_credentials_oidc_config.go +++ b/clients/client/go/model_identity_with_credentials_oidc_config.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_with_credentials_oidc_config_provider.go b/clients/client/go/model_identity_with_credentials_oidc_config_provider.go index b17a6c563d1..e2aaefb6c89 100644 --- a/clients/client/go/model_identity_with_credentials_oidc_config_provider.go +++ b/clients/client/go/model_identity_with_credentials_oidc_config_provider.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_with_credentials_password.go b/clients/client/go/model_identity_with_credentials_password.go index 07b55c8daf4..871095bf9ba 100644 --- a/clients/client/go/model_identity_with_credentials_password.go +++ b/clients/client/go/model_identity_with_credentials_password.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_identity_with_credentials_password_config.go b/clients/client/go/model_identity_with_credentials_password_config.go index 6dcafcb4ef9..a76a7b45de5 100644 --- a/clients/client/go/model_identity_with_credentials_password_config.go +++ b/clients/client/go/model_identity_with_credentials_password_config.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_internal_get_project_branding_body.go b/clients/client/go/model_internal_get_project_branding_body.go index 4bbf44a4e8c..0ee7f02fc9a 100644 --- a/clients/client/go/model_internal_get_project_branding_body.go +++ b/clients/client/go/model_internal_get_project_branding_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_internal_is_ax_welcome_screen_enabled_for_project_body.go b/clients/client/go/model_internal_is_ax_welcome_screen_enabled_for_project_body.go index 694e20f130d..46cd79b4751 100644 --- a/clients/client/go/model_internal_is_ax_welcome_screen_enabled_for_project_body.go +++ b/clients/client/go/model_internal_is_ax_welcome_screen_enabled_for_project_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_internal_is_owner_for_project_by_slug_body.go b/clients/client/go/model_internal_is_owner_for_project_by_slug_body.go index bfca56203ee..d8ef618a924 100644 --- a/clients/client/go/model_internal_is_owner_for_project_by_slug_body.go +++ b/clients/client/go/model_internal_is_owner_for_project_by_slug_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_internal_is_owner_for_project_by_slug_response.go b/clients/client/go/model_internal_is_owner_for_project_by_slug_response.go index 63589a474bc..500747e17ed 100644 --- a/clients/client/go/model_internal_is_owner_for_project_by_slug_response.go +++ b/clients/client/go/model_internal_is_owner_for_project_by_slug_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_internal_provision_mock_subscription.go b/clients/client/go/model_internal_provision_mock_subscription.go deleted file mode 100644 index 827f8ec3e9d..00000000000 --- a/clients/client/go/model_internal_provision_mock_subscription.go +++ /dev/null @@ -1,260 +0,0 @@ -/* -Ory APIs - -Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -API version: v1.5.1 -Contact: support@ory.sh -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" - "fmt" -) - -// checks if the InternalProvisionMockSubscription type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &InternalProvisionMockSubscription{} - -// InternalProvisionMockSubscription Internal Provision Mock Subscription Request Body -type InternalProvisionMockSubscription struct { - // Currency usd USD eur Euro - Currency string `json:"currency"` - // Identity ID - IdentityId string `json:"identity_id"` - // Billing Interval monthly Monthly yearly Yearly - Interval string `json:"interval"` - // Plan ID - Plan string `json:"plan"` - AdditionalProperties map[string]interface{} -} - -type _InternalProvisionMockSubscription InternalProvisionMockSubscription - -// NewInternalProvisionMockSubscription instantiates a new InternalProvisionMockSubscription object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewInternalProvisionMockSubscription(currency string, identityId string, interval string, plan string) *InternalProvisionMockSubscription { - this := InternalProvisionMockSubscription{} - this.Currency = currency - this.IdentityId = identityId - this.Interval = interval - this.Plan = plan - return &this -} - -// NewInternalProvisionMockSubscriptionWithDefaults instantiates a new InternalProvisionMockSubscription object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewInternalProvisionMockSubscriptionWithDefaults() *InternalProvisionMockSubscription { - this := InternalProvisionMockSubscription{} - return &this -} - -// GetCurrency returns the Currency field value -func (o *InternalProvisionMockSubscription) GetCurrency() string { - if o == nil { - var ret string - return ret - } - - return o.Currency -} - -// GetCurrencyOk returns a tuple with the Currency field value -// and a boolean to check if the value has been set. -func (o *InternalProvisionMockSubscription) GetCurrencyOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Currency, true -} - -// SetCurrency sets field value -func (o *InternalProvisionMockSubscription) SetCurrency(v string) { - o.Currency = v -} - -// GetIdentityId returns the IdentityId field value -func (o *InternalProvisionMockSubscription) GetIdentityId() string { - if o == nil { - var ret string - return ret - } - - return o.IdentityId -} - -// GetIdentityIdOk returns a tuple with the IdentityId field value -// and a boolean to check if the value has been set. -func (o *InternalProvisionMockSubscription) GetIdentityIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.IdentityId, true -} - -// SetIdentityId sets field value -func (o *InternalProvisionMockSubscription) SetIdentityId(v string) { - o.IdentityId = v -} - -// GetInterval returns the Interval field value -func (o *InternalProvisionMockSubscription) GetInterval() string { - if o == nil { - var ret string - return ret - } - - return o.Interval -} - -// GetIntervalOk returns a tuple with the Interval field value -// and a boolean to check if the value has been set. -func (o *InternalProvisionMockSubscription) GetIntervalOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Interval, true -} - -// SetInterval sets field value -func (o *InternalProvisionMockSubscription) SetInterval(v string) { - o.Interval = v -} - -// GetPlan returns the Plan field value -func (o *InternalProvisionMockSubscription) GetPlan() string { - if o == nil { - var ret string - return ret - } - - return o.Plan -} - -// GetPlanOk returns a tuple with the Plan field value -// and a boolean to check if the value has been set. -func (o *InternalProvisionMockSubscription) GetPlanOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Plan, true -} - -// SetPlan sets field value -func (o *InternalProvisionMockSubscription) SetPlan(v string) { - o.Plan = v -} - -func (o InternalProvisionMockSubscription) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o InternalProvisionMockSubscription) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - toSerialize["currency"] = o.Currency - toSerialize["identity_id"] = o.IdentityId - toSerialize["interval"] = o.Interval - toSerialize["plan"] = o.Plan - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *InternalProvisionMockSubscription) UnmarshalJSON(bytes []byte) (err error) { - // This validates that all required properties are included in the JSON object - // by unmarshalling the object into a generic map with string keys and checking - // that every required field exists as a key in the generic map. - requiredProperties := []string{ - "currency", - "identity_id", - "interval", - "plan", - } - - allProperties := make(map[string]interface{}) - - err = json.Unmarshal(bytes, &allProperties) - - if err != nil { - return err; - } - - for _, requiredProperty := range(requiredProperties) { - if _, exists := allProperties[requiredProperty]; !exists { - return fmt.Errorf("no value given for required property %v", requiredProperty) - } - } - - varInternalProvisionMockSubscription := _InternalProvisionMockSubscription{} - - err = json.Unmarshal(bytes, &varInternalProvisionMockSubscription) - - if err != nil { - return err - } - - *o = InternalProvisionMockSubscription(varInternalProvisionMockSubscription) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "currency") - delete(additionalProperties, "identity_id") - delete(additionalProperties, "interval") - delete(additionalProperties, "plan") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableInternalProvisionMockSubscription struct { - value *InternalProvisionMockSubscription - isSet bool -} - -func (v NullableInternalProvisionMockSubscription) Get() *InternalProvisionMockSubscription { - return v.value -} - -func (v *NullableInternalProvisionMockSubscription) Set(val *InternalProvisionMockSubscription) { - v.value = val - v.isSet = true -} - -func (v NullableInternalProvisionMockSubscription) IsSet() bool { - return v.isSet -} - -func (v *NullableInternalProvisionMockSubscription) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableInternalProvisionMockSubscription(val *InternalProvisionMockSubscription) *NullableInternalProvisionMockSubscription { - return &NullableInternalProvisionMockSubscription{value: val, isSet: true} -} - -func (v NullableInternalProvisionMockSubscription) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableInternalProvisionMockSubscription) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/clients/client/go/model_introspected_o_auth2_token.go b/clients/client/go/model_introspected_o_auth2_token.go index 16bd94fd5ec..efb594f9c3d 100644 --- a/clients/client/go/model_introspected_o_auth2_token.go +++ b/clients/client/go/model_introspected_o_auth2_token.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_is_owner_for_project_by_slug.go b/clients/client/go/model_is_owner_for_project_by_slug.go index 8ba9ef8463a..df9ac1fc020 100644 --- a/clients/client/go/model_is_owner_for_project_by_slug.go +++ b/clients/client/go/model_is_owner_for_project_by_slug.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_is_ready_200_response.go b/clients/client/go/model_is_ready_200_response.go index ba8439bafd5..3d58fa2bf87 100644 --- a/clients/client/go/model_is_ready_200_response.go +++ b/clients/client/go/model_is_ready_200_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_is_ready_503_response.go b/clients/client/go/model_is_ready_503_response.go index 608d31ce783..380eec9daad 100644 --- a/clients/client/go/model_is_ready_503_response.go +++ b/clients/client/go/model_is_ready_503_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_json_patch.go b/clients/client/go/model_json_patch.go index 512b53ac31a..eff3f607144 100644 --- a/clients/client/go/model_json_patch.go +++ b/clients/client/go/model_json_patch.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_json_web_key.go b/clients/client/go/model_json_web_key.go index 5dc335409c4..268dc9f0148 100644 --- a/clients/client/go/model_json_web_key.go +++ b/clients/client/go/model_json_web_key.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_json_web_key_set.go b/clients/client/go/model_json_web_key_set.go index 3e67c2d3c54..89b7d7b4eec 100644 --- a/clients/client/go/model_json_web_key_set.go +++ b/clients/client/go/model_json_web_key_set.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_keto_namespace.go b/clients/client/go/model_keto_namespace.go index 04eba8f3efc..3f4934605e8 100644 --- a/clients/client/go/model_keto_namespace.go +++ b/clients/client/go/model_keto_namespace.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_list_event_streams.go b/clients/client/go/model_list_event_streams.go index 6abe6957ddd..4f7b3f79fbf 100644 --- a/clients/client/go/model_list_event_streams.go +++ b/clients/client/go/model_list_event_streams.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_list_my_workspaces_response.go b/clients/client/go/model_list_my_workspaces_response.go index d2b017c02b2..62edbd59afa 100644 --- a/clients/client/go/model_list_my_workspaces_response.go +++ b/clients/client/go/model_list_my_workspaces_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -23,7 +23,7 @@ var _ MappedNullable = &ListMyWorkspacesResponse{} type ListMyWorkspacesResponse struct { HasNextPage bool `json:"has_next_page"` NextPageToken string `json:"next_page_token"` - Workspaces []Workspace `json:"workspaces"` + Workspaces []WorkspaceMeta `json:"workspaces"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _ListMyWorkspacesResponse ListMyWorkspacesResponse // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewListMyWorkspacesResponse(hasNextPage bool, nextPageToken string, workspaces []Workspace) *ListMyWorkspacesResponse { +func NewListMyWorkspacesResponse(hasNextPage bool, nextPageToken string, workspaces []WorkspaceMeta) *ListMyWorkspacesResponse { this := ListMyWorkspacesResponse{} this.HasNextPage = hasNextPage this.NextPageToken = nextPageToken @@ -98,9 +98,9 @@ func (o *ListMyWorkspacesResponse) SetNextPageToken(v string) { } // GetWorkspaces returns the Workspaces field value -func (o *ListMyWorkspacesResponse) GetWorkspaces() []Workspace { +func (o *ListMyWorkspacesResponse) GetWorkspaces() []WorkspaceMeta { if o == nil { - var ret []Workspace + var ret []WorkspaceMeta return ret } @@ -109,7 +109,7 @@ func (o *ListMyWorkspacesResponse) GetWorkspaces() []Workspace { // GetWorkspacesOk returns a tuple with the Workspaces field value // and a boolean to check if the value has been set. -func (o *ListMyWorkspacesResponse) GetWorkspacesOk() ([]Workspace, bool) { +func (o *ListMyWorkspacesResponse) GetWorkspacesOk() ([]WorkspaceMeta, bool) { if o == nil { return nil, false } @@ -117,7 +117,7 @@ func (o *ListMyWorkspacesResponse) GetWorkspacesOk() ([]Workspace, bool) { } // SetWorkspaces sets field value -func (o *ListMyWorkspacesResponse) SetWorkspaces(v []Workspace) { +func (o *ListMyWorkspacesResponse) SetWorkspaces(v []WorkspaceMeta) { o.Workspaces = v } diff --git a/clients/client/go/model_list_organizations_response.go b/clients/client/go/model_list_organizations_response.go index fccff15e582..cd1c84fc232 100644 --- a/clients/client/go/model_list_organizations_response.go +++ b/clients/client/go/model_list_organizations_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_list_workspace_projects_response.go b/clients/client/go/model_list_workspace_projects_response.go new file mode 100644 index 00000000000..5a69456f605 --- /dev/null +++ b/clients/client/go/model_list_workspace_projects_response.go @@ -0,0 +1,227 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the ListWorkspaceProjectsResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ListWorkspaceProjectsResponse{} + +// ListWorkspaceProjectsResponse struct for ListWorkspaceProjectsResponse +type ListWorkspaceProjectsResponse struct { + HasNextPage bool `json:"has_next_page"` + NextPage string `json:"next_page"` + Projects []ProjectMetadata `json:"projects"` + AdditionalProperties map[string]interface{} +} + +type _ListWorkspaceProjectsResponse ListWorkspaceProjectsResponse + +// NewListWorkspaceProjectsResponse instantiates a new ListWorkspaceProjectsResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewListWorkspaceProjectsResponse(hasNextPage bool, nextPage string, projects []ProjectMetadata) *ListWorkspaceProjectsResponse { + this := ListWorkspaceProjectsResponse{} + this.HasNextPage = hasNextPage + this.NextPage = nextPage + this.Projects = projects + return &this +} + +// NewListWorkspaceProjectsResponseWithDefaults instantiates a new ListWorkspaceProjectsResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewListWorkspaceProjectsResponseWithDefaults() *ListWorkspaceProjectsResponse { + this := ListWorkspaceProjectsResponse{} + return &this +} + +// GetHasNextPage returns the HasNextPage field value +func (o *ListWorkspaceProjectsResponse) GetHasNextPage() bool { + if o == nil { + var ret bool + return ret + } + + return o.HasNextPage +} + +// GetHasNextPageOk returns a tuple with the HasNextPage field value +// and a boolean to check if the value has been set. +func (o *ListWorkspaceProjectsResponse) GetHasNextPageOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.HasNextPage, true +} + +// SetHasNextPage sets field value +func (o *ListWorkspaceProjectsResponse) SetHasNextPage(v bool) { + o.HasNextPage = v +} + +// GetNextPage returns the NextPage field value +func (o *ListWorkspaceProjectsResponse) GetNextPage() string { + if o == nil { + var ret string + return ret + } + + return o.NextPage +} + +// GetNextPageOk returns a tuple with the NextPage field value +// and a boolean to check if the value has been set. +func (o *ListWorkspaceProjectsResponse) GetNextPageOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.NextPage, true +} + +// SetNextPage sets field value +func (o *ListWorkspaceProjectsResponse) SetNextPage(v string) { + o.NextPage = v +} + +// GetProjects returns the Projects field value +func (o *ListWorkspaceProjectsResponse) GetProjects() []ProjectMetadata { + if o == nil { + var ret []ProjectMetadata + return ret + } + + return o.Projects +} + +// GetProjectsOk returns a tuple with the Projects field value +// and a boolean to check if the value has been set. +func (o *ListWorkspaceProjectsResponse) GetProjectsOk() ([]ProjectMetadata, bool) { + if o == nil { + return nil, false + } + return o.Projects, true +} + +// SetProjects sets field value +func (o *ListWorkspaceProjectsResponse) SetProjects(v []ProjectMetadata) { + o.Projects = v +} + +func (o ListWorkspaceProjectsResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ListWorkspaceProjectsResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["has_next_page"] = o.HasNextPage + toSerialize["next_page"] = o.NextPage + toSerialize["projects"] = o.Projects + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ListWorkspaceProjectsResponse) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "has_next_page", + "next_page", + "projects", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varListWorkspaceProjectsResponse := _ListWorkspaceProjectsResponse{} + + err = json.Unmarshal(bytes, &varListWorkspaceProjectsResponse) + + if err != nil { + return err + } + + *o = ListWorkspaceProjectsResponse(varListWorkspaceProjectsResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "has_next_page") + delete(additionalProperties, "next_page") + delete(additionalProperties, "projects") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableListWorkspaceProjectsResponse struct { + value *ListWorkspaceProjectsResponse + isSet bool +} + +func (v NullableListWorkspaceProjectsResponse) Get() *ListWorkspaceProjectsResponse { + return v.value +} + +func (v *NullableListWorkspaceProjectsResponse) Set(val *ListWorkspaceProjectsResponse) { + v.value = val + v.isSet = true +} + +func (v NullableListWorkspaceProjectsResponse) IsSet() bool { + return v.isSet +} + +func (v *NullableListWorkspaceProjectsResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableListWorkspaceProjectsResponse(val *ListWorkspaceProjectsResponse) *NullableListWorkspaceProjectsResponse { + return &NullableListWorkspaceProjectsResponse{value: val, isSet: true} +} + +func (v NullableListWorkspaceProjectsResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableListWorkspaceProjectsResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_login_flow.go b/clients/client/go/model_login_flow.go index 018836ddeff..22887a7d34c 100644 --- a/clients/client/go/model_login_flow.go +++ b/clients/client/go/model_login_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -22,7 +22,8 @@ var _ MappedNullable = &LoginFlow{} // LoginFlow This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. type LoginFlow struct { - Active *IdentityCredentialsType `json:"active,omitempty"` + // The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + Active *string `json:"active,omitempty"` // CreatedAt is a helper struct field for gobuffalo.pop. CreatedAt *time.Time `json:"created_at,omitempty"` // ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. @@ -46,6 +47,8 @@ type LoginFlow struct { SessionTokenExchangeCode *string `json:"session_token_exchange_code,omitempty"` // State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. State interface{} `json:"state"` + // TransientPayload is used to pass data from the login to hooks and email templates + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // The flow type can either be `api` or `browser`. Type string `json:"type"` Ui UiContainer `json:"ui"` @@ -81,9 +84,9 @@ func NewLoginFlowWithDefaults() *LoginFlow { } // GetActive returns the Active field value if set, zero value otherwise. -func (o *LoginFlow) GetActive() IdentityCredentialsType { +func (o *LoginFlow) GetActive() string { if o == nil || IsNil(o.Active) { - var ret IdentityCredentialsType + var ret string return ret } return *o.Active @@ -91,7 +94,7 @@ func (o *LoginFlow) GetActive() IdentityCredentialsType { // GetActiveOk returns a tuple with the Active field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *LoginFlow) GetActiveOk() (*IdentityCredentialsType, bool) { +func (o *LoginFlow) GetActiveOk() (*string, bool) { if o == nil || IsNil(o.Active) { return nil, false } @@ -107,8 +110,8 @@ func (o *LoginFlow) HasActive() bool { return false } -// SetActive gets a reference to the given IdentityCredentialsType and assigns it to the Active field. -func (o *LoginFlow) SetActive(v IdentityCredentialsType) { +// SetActive gets a reference to the given string and assigns it to the Active field. +func (o *LoginFlow) SetActive(v string) { o.Active = &v } @@ -500,6 +503,38 @@ func (o *LoginFlow) SetState(v interface{}) { o.State = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *LoginFlow) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LoginFlow) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *LoginFlow) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *LoginFlow) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetType returns the Type field value func (o *LoginFlow) GetType() string { if o == nil { @@ -624,6 +659,9 @@ func (o LoginFlow) ToMap() (map[string]interface{}, error) { if o.State != nil { toSerialize["state"] = o.State } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } toSerialize["type"] = o.Type toSerialize["ui"] = o.Ui if !IsNil(o.UpdatedAt) { @@ -692,6 +730,7 @@ func (o *LoginFlow) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "return_to") delete(additionalProperties, "session_token_exchange_code") delete(additionalProperties, "state") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "type") delete(additionalProperties, "ui") delete(additionalProperties, "updated_at") diff --git a/clients/client/go/model_login_flow_state.go b/clients/client/go/model_login_flow_state.go index 8175eca61ce..9be9759f772 100644 --- a/clients/client/go/model_login_flow_state.go +++ b/clients/client/go/model_login_flow_state.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_logout_flow.go b/clients/client/go/model_logout_flow.go index 1a4019703ae..c098e09fe1c 100644 --- a/clients/client/go/model_logout_flow.go +++ b/clients/client/go/model_logout_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_managed_identity_schema.go b/clients/client/go/model_managed_identity_schema.go index 28166ddbdac..69840b2e3e9 100644 --- a/clients/client/go/model_managed_identity_schema.go +++ b/clients/client/go/model_managed_identity_schema.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_managed_identity_schema_validation_result.go b/clients/client/go/model_managed_identity_schema_validation_result.go index 9ead393a821..c8721ce2128 100644 --- a/clients/client/go/model_managed_identity_schema_validation_result.go +++ b/clients/client/go/model_managed_identity_schema_validation_result.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_member_invite.go b/clients/client/go/model_member_invite.go index 13e061b979e..f36ad484fb8 100644 --- a/clients/client/go/model_member_invite.go +++ b/clients/client/go/model_member_invite.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_message.go b/clients/client/go/model_message.go index 16983b341bc..247f2edf46e 100644 --- a/clients/client/go/model_message.go +++ b/clients/client/go/model_message.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_message_dispatch.go b/clients/client/go/model_message_dispatch.go index 8388e8bfd64..cd046a6ce45 100644 --- a/clients/client/go/model_message_dispatch.go +++ b/clients/client/go/model_message_dispatch.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_metrics_datapoint.go b/clients/client/go/model_metrics_datapoint.go index 4dba3ab66da..5025b28e292 100644 --- a/clients/client/go/model_metrics_datapoint.go +++ b/clients/client/go/model_metrics_datapoint.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_migration_options.go b/clients/client/go/model_migration_options.go new file mode 100644 index 00000000000..0e30b83e476 --- /dev/null +++ b/clients/client/go/model_migration_options.go @@ -0,0 +1,200 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the MigrationOptions type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &MigrationOptions{} + +// MigrationOptions struct for MigrationOptions +type MigrationOptions struct { + // The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + Environment string `json:"environment"` + // The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + ProjectSubscription string `json:"project_subscription"` + AdditionalProperties map[string]interface{} +} + +type _MigrationOptions MigrationOptions + +// NewMigrationOptions instantiates a new MigrationOptions object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewMigrationOptions(environment string, projectSubscription string) *MigrationOptions { + this := MigrationOptions{} + this.Environment = environment + this.ProjectSubscription = projectSubscription + return &this +} + +// NewMigrationOptionsWithDefaults instantiates a new MigrationOptions object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewMigrationOptionsWithDefaults() *MigrationOptions { + this := MigrationOptions{} + return &this +} + +// GetEnvironment returns the Environment field value +func (o *MigrationOptions) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *MigrationOptions) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *MigrationOptions) SetEnvironment(v string) { + o.Environment = v +} + +// GetProjectSubscription returns the ProjectSubscription field value +func (o *MigrationOptions) GetProjectSubscription() string { + if o == nil { + var ret string + return ret + } + + return o.ProjectSubscription +} + +// GetProjectSubscriptionOk returns a tuple with the ProjectSubscription field value +// and a boolean to check if the value has been set. +func (o *MigrationOptions) GetProjectSubscriptionOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ProjectSubscription, true +} + +// SetProjectSubscription sets field value +func (o *MigrationOptions) SetProjectSubscription(v string) { + o.ProjectSubscription = v +} + +func (o MigrationOptions) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o MigrationOptions) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["environment"] = o.Environment + toSerialize["project_subscription"] = o.ProjectSubscription + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *MigrationOptions) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "environment", + "project_subscription", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varMigrationOptions := _MigrationOptions{} + + err = json.Unmarshal(bytes, &varMigrationOptions) + + if err != nil { + return err + } + + *o = MigrationOptions(varMigrationOptions) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "environment") + delete(additionalProperties, "project_subscription") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableMigrationOptions struct { + value *MigrationOptions + isSet bool +} + +func (v NullableMigrationOptions) Get() *MigrationOptions { + return v.value +} + +func (v *NullableMigrationOptions) Set(val *MigrationOptions) { + v.value = val + v.isSet = true +} + +func (v NullableMigrationOptions) IsSet() bool { + return v.isSet +} + +func (v *NullableMigrationOptions) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableMigrationOptions(val *MigrationOptions) *NullableMigrationOptions { + return &NullableMigrationOptions{value: val, isSet: true} +} + +func (v NullableMigrationOptions) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableMigrationOptions) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_namespace.go b/clients/client/go/model_namespace.go index 6b082d72a4b..990d0908cb7 100644 --- a/clients/client/go/model_namespace.go +++ b/clients/client/go/model_namespace.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_needs_privileged_session_error.go b/clients/client/go/model_needs_privileged_session_error.go index 61b2f9fd1eb..f892fe1151b 100644 --- a/clients/client/go/model_needs_privileged_session_error.go +++ b/clients/client/go/model_needs_privileged_session_error.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_normalized_project.go b/clients/client/go/model_normalized_project.go index db543577c49..65cae011c27 100644 --- a/clients/client/go/model_normalized_project.go +++ b/clients/client/go/model_normalized_project.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_normalized_project_revision.go b/clients/client/go/model_normalized_project_revision.go index 8faf1a77082..439faf35cb5 100644 --- a/clients/client/go/model_normalized_project_revision.go +++ b/clients/client/go/model_normalized_project_revision.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -26,6 +26,8 @@ type NormalizedProjectRevision struct { CreatedAt *time.Time `json:"created_at,omitempty"` // Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. DisableAccountExperienceWelcomeScreen *bool `json:"disable_account_experience_welcome_screen,omitempty"` + // Whether the new account experience is enabled and reachable. + EnableAxV2 *bool `json:"enable_ax_v2,omitempty"` HydraOauth2AllowedTopLevelClaims []string `json:"hydra_oauth2_allowed_top_level_claims,omitempty"` // Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. HydraOauth2ClientCredentialsDefaultGrantAllowedScope *bool `json:"hydra_oauth2_client_credentials_default_grant_allowed_scope,omitempty"` @@ -37,6 +39,8 @@ type NormalizedProjectRevision struct { HydraOauth2GrantJwtJtiOptional *bool `json:"hydra_oauth2_grant_jwt_jti_optional,omitempty"` // Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. HydraOauth2GrantJwtMaxTtl *string `json:"hydra_oauth2_grant_jwt_max_ttl,omitempty"` + // Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + HydraOauth2MirrorTopLevelClaims *bool `json:"hydra_oauth2_mirror_top_level_claims,omitempty"` // Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. HydraOauth2PkceEnforced *bool `json:"hydra_oauth2_pkce_enforced,omitempty"` // Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. @@ -144,6 +148,8 @@ type NormalizedProjectRevision struct { KratosCourierTemplatesLoginCodeValidEmailBodyPlaintext *string `json:"kratos_courier_templates_login_code_valid_email_body_plaintext,omitempty"` // Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. KratosCourierTemplatesLoginCodeValidEmailSubject *string `json:"kratos_courier_templates_login_code_valid_email_subject,omitempty"` + // Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext *string `json:"kratos_courier_templates_login_code_valid_sms_body_plaintext,omitempty"` // Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml *string `json:"kratos_courier_templates_recovery_code_invalid_email_body_html,omitempty"` // Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. @@ -309,6 +315,8 @@ type NormalizedProjectRevision struct { KratosSelfserviceMethodsCodeConfigLifespan *string `json:"kratos_selfservice_methods_code_config_lifespan,omitempty"` // Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. KratosSelfserviceMethodsCodeEnabled *bool `json:"kratos_selfservice_methods_code_enabled,omitempty"` + // Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + KratosSelfserviceMethodsCodeMfaEnabled *bool `json:"kratos_selfservice_methods_code_mfa_enabled,omitempty"` // Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. KratosSelfserviceMethodsCodePasswordlessEnabled *bool `json:"kratos_selfservice_methods_code_passwordless_enabled,omitempty"` // Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. @@ -508,6 +516,38 @@ func (o *NormalizedProjectRevision) SetDisableAccountExperienceWelcomeScreen(v b o.DisableAccountExperienceWelcomeScreen = &v } +// GetEnableAxV2 returns the EnableAxV2 field value if set, zero value otherwise. +func (o *NormalizedProjectRevision) GetEnableAxV2() bool { + if o == nil || IsNil(o.EnableAxV2) { + var ret bool + return ret + } + return *o.EnableAxV2 +} + +// GetEnableAxV2Ok returns a tuple with the EnableAxV2 field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NormalizedProjectRevision) GetEnableAxV2Ok() (*bool, bool) { + if o == nil || IsNil(o.EnableAxV2) { + return nil, false + } + return o.EnableAxV2, true +} + +// HasEnableAxV2 returns a boolean if a field has been set. +func (o *NormalizedProjectRevision) HasEnableAxV2() bool { + if o != nil && !IsNil(o.EnableAxV2) { + return true + } + + return false +} + +// SetEnableAxV2 gets a reference to the given bool and assigns it to the EnableAxV2 field. +func (o *NormalizedProjectRevision) SetEnableAxV2(v bool) { + o.EnableAxV2 = &v +} + // GetHydraOauth2AllowedTopLevelClaims returns the HydraOauth2AllowedTopLevelClaims field value if set, zero value otherwise. func (o *NormalizedProjectRevision) GetHydraOauth2AllowedTopLevelClaims() []string { if o == nil || IsNil(o.HydraOauth2AllowedTopLevelClaims) { @@ -700,6 +740,38 @@ func (o *NormalizedProjectRevision) SetHydraOauth2GrantJwtMaxTtl(v string) { o.HydraOauth2GrantJwtMaxTtl = &v } +// GetHydraOauth2MirrorTopLevelClaims returns the HydraOauth2MirrorTopLevelClaims field value if set, zero value otherwise. +func (o *NormalizedProjectRevision) GetHydraOauth2MirrorTopLevelClaims() bool { + if o == nil || IsNil(o.HydraOauth2MirrorTopLevelClaims) { + var ret bool + return ret + } + return *o.HydraOauth2MirrorTopLevelClaims +} + +// GetHydraOauth2MirrorTopLevelClaimsOk returns a tuple with the HydraOauth2MirrorTopLevelClaims field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NormalizedProjectRevision) GetHydraOauth2MirrorTopLevelClaimsOk() (*bool, bool) { + if o == nil || IsNil(o.HydraOauth2MirrorTopLevelClaims) { + return nil, false + } + return o.HydraOauth2MirrorTopLevelClaims, true +} + +// HasHydraOauth2MirrorTopLevelClaims returns a boolean if a field has been set. +func (o *NormalizedProjectRevision) HasHydraOauth2MirrorTopLevelClaims() bool { + if o != nil && !IsNil(o.HydraOauth2MirrorTopLevelClaims) { + return true + } + + return false +} + +// SetHydraOauth2MirrorTopLevelClaims gets a reference to the given bool and assigns it to the HydraOauth2MirrorTopLevelClaims field. +func (o *NormalizedProjectRevision) SetHydraOauth2MirrorTopLevelClaims(v bool) { + o.HydraOauth2MirrorTopLevelClaims = &v +} + // GetHydraOauth2PkceEnforced returns the HydraOauth2PkceEnforced field value if set, zero value otherwise. func (o *NormalizedProjectRevision) GetHydraOauth2PkceEnforced() bool { if o == nil || IsNil(o.HydraOauth2PkceEnforced) { @@ -2558,6 +2630,38 @@ func (o *NormalizedProjectRevision) SetKratosCourierTemplatesLoginCodeValidEmail o.KratosCourierTemplatesLoginCodeValidEmailSubject = &v } +// GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field value if set, zero value otherwise. +func (o *NormalizedProjectRevision) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() string { + if o == nil || IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + var ret string + return ret + } + return *o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext +} + +// GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk returns a tuple with the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NormalizedProjectRevision) GetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintextOk() (*string, bool) { + if o == nil || IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + return nil, false + } + return o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, true +} + +// HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext returns a boolean if a field has been set. +func (o *NormalizedProjectRevision) HasKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() bool { + if o != nil && !IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + return true + } + + return false +} + +// SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext gets a reference to the given string and assigns it to the KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext field. +func (o *NormalizedProjectRevision) SetKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(v string) { + o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = &v +} + // GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml returns the KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml field value if set, zero value otherwise. func (o *NormalizedProjectRevision) GetKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml() string { if o == nil || IsNil(o.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) { @@ -5279,6 +5383,38 @@ func (o *NormalizedProjectRevision) SetKratosSelfserviceMethodsCodeEnabled(v boo o.KratosSelfserviceMethodsCodeEnabled = &v } +// GetKratosSelfserviceMethodsCodeMfaEnabled returns the KratosSelfserviceMethodsCodeMfaEnabled field value if set, zero value otherwise. +func (o *NormalizedProjectRevision) GetKratosSelfserviceMethodsCodeMfaEnabled() bool { + if o == nil || IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + var ret bool + return ret + } + return *o.KratosSelfserviceMethodsCodeMfaEnabled +} + +// GetKratosSelfserviceMethodsCodeMfaEnabledOk returns a tuple with the KratosSelfserviceMethodsCodeMfaEnabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NormalizedProjectRevision) GetKratosSelfserviceMethodsCodeMfaEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + return nil, false + } + return o.KratosSelfserviceMethodsCodeMfaEnabled, true +} + +// HasKratosSelfserviceMethodsCodeMfaEnabled returns a boolean if a field has been set. +func (o *NormalizedProjectRevision) HasKratosSelfserviceMethodsCodeMfaEnabled() bool { + if o != nil && !IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + return true + } + + return false +} + +// SetKratosSelfserviceMethodsCodeMfaEnabled gets a reference to the given bool and assigns it to the KratosSelfserviceMethodsCodeMfaEnabled field. +func (o *NormalizedProjectRevision) SetKratosSelfserviceMethodsCodeMfaEnabled(v bool) { + o.KratosSelfserviceMethodsCodeMfaEnabled = &v +} + // GetKratosSelfserviceMethodsCodePasswordlessEnabled returns the KratosSelfserviceMethodsCodePasswordlessEnabled field value if set, zero value otherwise. func (o *NormalizedProjectRevision) GetKratosSelfserviceMethodsCodePasswordlessEnabled() bool { if o == nil || IsNil(o.KratosSelfserviceMethodsCodePasswordlessEnabled) { @@ -6471,6 +6607,9 @@ func (o NormalizedProjectRevision) ToMap() (map[string]interface{}, error) { if !IsNil(o.DisableAccountExperienceWelcomeScreen) { toSerialize["disable_account_experience_welcome_screen"] = o.DisableAccountExperienceWelcomeScreen } + if !IsNil(o.EnableAxV2) { + toSerialize["enable_ax_v2"] = o.EnableAxV2 + } if !IsNil(o.HydraOauth2AllowedTopLevelClaims) { toSerialize["hydra_oauth2_allowed_top_level_claims"] = o.HydraOauth2AllowedTopLevelClaims } @@ -6489,6 +6628,9 @@ func (o NormalizedProjectRevision) ToMap() (map[string]interface{}, error) { if !IsNil(o.HydraOauth2GrantJwtMaxTtl) { toSerialize["hydra_oauth2_grant_jwt_max_ttl"] = o.HydraOauth2GrantJwtMaxTtl } + if !IsNil(o.HydraOauth2MirrorTopLevelClaims) { + toSerialize["hydra_oauth2_mirror_top_level_claims"] = o.HydraOauth2MirrorTopLevelClaims + } if !IsNil(o.HydraOauth2PkceEnforced) { toSerialize["hydra_oauth2_pkce_enforced"] = o.HydraOauth2PkceEnforced } @@ -6663,6 +6805,9 @@ func (o NormalizedProjectRevision) ToMap() (map[string]interface{}, error) { if !IsNil(o.KratosCourierTemplatesLoginCodeValidEmailSubject) { toSerialize["kratos_courier_templates_login_code_valid_email_subject"] = o.KratosCourierTemplatesLoginCodeValidEmailSubject } + if !IsNil(o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + toSerialize["kratos_courier_templates_login_code_valid_sms_body_plaintext"] = o.KratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + } if !IsNil(o.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) { toSerialize["kratos_courier_templates_recovery_code_invalid_email_body_html"] = o.KratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml } @@ -6918,6 +7063,9 @@ func (o NormalizedProjectRevision) ToMap() (map[string]interface{}, error) { if !IsNil(o.KratosSelfserviceMethodsCodeEnabled) { toSerialize["kratos_selfservice_methods_code_enabled"] = o.KratosSelfserviceMethodsCodeEnabled } + if !IsNil(o.KratosSelfserviceMethodsCodeMfaEnabled) { + toSerialize["kratos_selfservice_methods_code_mfa_enabled"] = o.KratosSelfserviceMethodsCodeMfaEnabled + } if !IsNil(o.KratosSelfserviceMethodsCodePasswordlessEnabled) { toSerialize["kratos_selfservice_methods_code_passwordless_enabled"] = o.KratosSelfserviceMethodsCodePasswordlessEnabled } @@ -7072,12 +7220,14 @@ func (o *NormalizedProjectRevision) UnmarshalJSON(bytes []byte) (err error) { if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "created_at") delete(additionalProperties, "disable_account_experience_welcome_screen") + delete(additionalProperties, "enable_ax_v2") delete(additionalProperties, "hydra_oauth2_allowed_top_level_claims") delete(additionalProperties, "hydra_oauth2_client_credentials_default_grant_allowed_scope") delete(additionalProperties, "hydra_oauth2_exclude_not_before_claim") delete(additionalProperties, "hydra_oauth2_grant_jwt_iat_optional") delete(additionalProperties, "hydra_oauth2_grant_jwt_jti_optional") delete(additionalProperties, "hydra_oauth2_grant_jwt_max_ttl") + delete(additionalProperties, "hydra_oauth2_mirror_top_level_claims") delete(additionalProperties, "hydra_oauth2_pkce_enforced") delete(additionalProperties, "hydra_oauth2_pkce_enforced_for_public_clients") delete(additionalProperties, "hydra_oauth2_refresh_token_hook") @@ -7136,6 +7286,7 @@ func (o *NormalizedProjectRevision) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "kratos_courier_templates_login_code_valid_email_body_html") delete(additionalProperties, "kratos_courier_templates_login_code_valid_email_body_plaintext") delete(additionalProperties, "kratos_courier_templates_login_code_valid_email_subject") + delete(additionalProperties, "kratos_courier_templates_login_code_valid_sms_body_plaintext") delete(additionalProperties, "kratos_courier_templates_recovery_code_invalid_email_body_html") delete(additionalProperties, "kratos_courier_templates_recovery_code_invalid_email_body_plaintext") delete(additionalProperties, "kratos_courier_templates_recovery_code_invalid_email_subject") @@ -7221,6 +7372,7 @@ func (o *NormalizedProjectRevision) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "kratos_selfservice_flows_verification_use") delete(additionalProperties, "kratos_selfservice_methods_code_config_lifespan") delete(additionalProperties, "kratos_selfservice_methods_code_enabled") + delete(additionalProperties, "kratos_selfservice_methods_code_mfa_enabled") delete(additionalProperties, "kratos_selfservice_methods_code_passwordless_enabled") delete(additionalProperties, "kratos_selfservice_methods_link_config_base_url") delete(additionalProperties, "kratos_selfservice_methods_link_config_lifespan") diff --git a/clients/client/go/model_normalized_project_revision_courier_channel.go b/clients/client/go/model_normalized_project_revision_courier_channel.go index 470278ca26e..d2da2f67831 100644 --- a/clients/client/go/model_normalized_project_revision_courier_channel.go +++ b/clients/client/go/model_normalized_project_revision_courier_channel.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_normalized_project_revision_hook.go b/clients/client/go/model_normalized_project_revision_hook.go index 0ffc667bf36..f62a0c8c16f 100644 --- a/clients/client/go/model_normalized_project_revision_hook.go +++ b/clients/client/go/model_normalized_project_revision_hook.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_normalized_project_revision_identity_schema.go b/clients/client/go/model_normalized_project_revision_identity_schema.go index f5e6e0b9f65..8cd4ead050f 100644 --- a/clients/client/go/model_normalized_project_revision_identity_schema.go +++ b/clients/client/go/model_normalized_project_revision_identity_schema.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_normalized_project_revision_third_party_provider.go b/clients/client/go/model_normalized_project_revision_third_party_provider.go index 49f4fa342a5..743aa04e945 100644 --- a/clients/client/go/model_normalized_project_revision_third_party_provider.go +++ b/clients/client/go/model_normalized_project_revision_third_party_provider.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -31,6 +31,7 @@ type NormalizedProjectRevisionThirdPartyProvider struct { AuthUrl *string `json:"auth_url,omitempty"` // Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. AzureTenant *string `json:"azure_tenant,omitempty"` + ClaimsSource NullableString `json:"claims_source,omitempty"` // ClientID is the application's Client ID. ClientId *string `json:"client_id,omitempty"` ClientSecret NullableString `json:"client_secret,omitempty"` @@ -283,6 +284,48 @@ func (o *NormalizedProjectRevisionThirdPartyProvider) SetAzureTenant(v string) { o.AzureTenant = &v } +// GetClaimsSource returns the ClaimsSource field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NormalizedProjectRevisionThirdPartyProvider) GetClaimsSource() string { + if o == nil || IsNil(o.ClaimsSource.Get()) { + var ret string + return ret + } + return *o.ClaimsSource.Get() +} + +// GetClaimsSourceOk returns a tuple with the ClaimsSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NormalizedProjectRevisionThirdPartyProvider) GetClaimsSourceOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ClaimsSource.Get(), o.ClaimsSource.IsSet() +} + +// HasClaimsSource returns a boolean if a field has been set. +func (o *NormalizedProjectRevisionThirdPartyProvider) HasClaimsSource() bool { + if o != nil && o.ClaimsSource.IsSet() { + return true + } + + return false +} + +// SetClaimsSource gets a reference to the given NullableString and assigns it to the ClaimsSource field. +func (o *NormalizedProjectRevisionThirdPartyProvider) SetClaimsSource(v string) { + o.ClaimsSource.Set(&v) +} +// SetClaimsSourceNil sets the value for ClaimsSource to be an explicit nil +func (o *NormalizedProjectRevisionThirdPartyProvider) SetClaimsSourceNil() { + o.ClaimsSource.Set(nil) +} + +// UnsetClaimsSource ensures that no value is present for ClaimsSource, not even an explicit nil +func (o *NormalizedProjectRevisionThirdPartyProvider) UnsetClaimsSource() { + o.ClaimsSource.Unset() +} + // GetClientId returns the ClientId field value if set, zero value otherwise. func (o *NormalizedProjectRevisionThirdPartyProvider) GetClientId() string { if o == nil || IsNil(o.ClientId) { @@ -885,6 +928,9 @@ func (o NormalizedProjectRevisionThirdPartyProvider) ToMap() (map[string]interfa if !IsNil(o.AzureTenant) { toSerialize["azure_tenant"] = o.AzureTenant } + if o.ClaimsSource.IsSet() { + toSerialize["claims_source"] = o.ClaimsSource.Get() + } if !IsNil(o.ClientId) { toSerialize["client_id"] = o.ClientId } @@ -964,6 +1010,7 @@ func (o *NormalizedProjectRevisionThirdPartyProvider) UnmarshalJSON(bytes []byte delete(additionalProperties, "apple_team_id") delete(additionalProperties, "auth_url") delete(additionalProperties, "azure_tenant") + delete(additionalProperties, "claims_source") delete(additionalProperties, "client_id") delete(additionalProperties, "client_secret") delete(additionalProperties, "created_at") diff --git a/clients/client/go/model_normalized_project_revision_tokenizer_template.go b/clients/client/go/model_normalized_project_revision_tokenizer_template.go index bf911015c3c..d85ba868a89 100644 --- a/clients/client/go/model_normalized_project_revision_tokenizer_template.go +++ b/clients/client/go/model_normalized_project_revision_tokenizer_template.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_client.go b/clients/client/go/model_o_auth2_client.go index 6614f8a2a03..3ed5401a74f 100644 --- a/clients/client/go/model_o_auth2_client.go +++ b/clients/client/go/model_o_auth2_client.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -84,6 +84,8 @@ type OAuth2Client struct { SectorIdentifierUri *string `json:"sector_identifier_uri,omitempty"` // SkipConsent skips the consent screen for this client. This field can only be set from the admin API. SkipConsent *bool `json:"skip_consent,omitempty"` + // SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + SkipLogoutConsent *bool `json:"skip_logout_consent,omitempty"` // OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. SubjectType *string `json:"subject_type,omitempty"` // OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. @@ -1535,6 +1537,38 @@ func (o *OAuth2Client) SetSkipConsent(v bool) { o.SkipConsent = &v } +// GetSkipLogoutConsent returns the SkipLogoutConsent field value if set, zero value otherwise. +func (o *OAuth2Client) GetSkipLogoutConsent() bool { + if o == nil || IsNil(o.SkipLogoutConsent) { + var ret bool + return ret + } + return *o.SkipLogoutConsent +} + +// GetSkipLogoutConsentOk returns a tuple with the SkipLogoutConsent field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuth2Client) GetSkipLogoutConsentOk() (*bool, bool) { + if o == nil || IsNil(o.SkipLogoutConsent) { + return nil, false + } + return o.SkipLogoutConsent, true +} + +// HasSkipLogoutConsent returns a boolean if a field has been set. +func (o *OAuth2Client) HasSkipLogoutConsent() bool { + if o != nil && !IsNil(o.SkipLogoutConsent) { + return true + } + + return false +} + +// SetSkipLogoutConsent gets a reference to the given bool and assigns it to the SkipLogoutConsent field. +func (o *OAuth2Client) SetSkipLogoutConsent(v bool) { + o.SkipLogoutConsent = &v +} + // GetSubjectType returns the SubjectType field value if set, zero value otherwise. func (o *OAuth2Client) GetSubjectType() string { if o == nil || IsNil(o.SubjectType) { @@ -1860,6 +1894,9 @@ func (o OAuth2Client) ToMap() (map[string]interface{}, error) { if !IsNil(o.SkipConsent) { toSerialize["skip_consent"] = o.SkipConsent } + if !IsNil(o.SkipLogoutConsent) { + toSerialize["skip_logout_consent"] = o.SkipLogoutConsent + } if !IsNil(o.SubjectType) { toSerialize["subject_type"] = o.SubjectType } @@ -1941,6 +1978,7 @@ func (o *OAuth2Client) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "scope") delete(additionalProperties, "sector_identifier_uri") delete(additionalProperties, "skip_consent") + delete(additionalProperties, "skip_logout_consent") delete(additionalProperties, "subject_type") delete(additionalProperties, "token_endpoint_auth_method") delete(additionalProperties, "token_endpoint_auth_signing_alg") diff --git a/clients/client/go/model_o_auth2_client_token_lifespans.go b/clients/client/go/model_o_auth2_client_token_lifespans.go index 63cf3a5e4f5..a13c0eed978 100644 --- a/clients/client/go/model_o_auth2_client_token_lifespans.go +++ b/clients/client/go/model_o_auth2_client_token_lifespans.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_consent_request.go b/clients/client/go/model_o_auth2_consent_request.go index f7cb952eea9..0e8b87ce45d 100644 --- a/clients/client/go/model_o_auth2_consent_request.go +++ b/clients/client/go/model_o_auth2_consent_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_consent_request_open_id_connect_context.go b/clients/client/go/model_o_auth2_consent_request_open_id_connect_context.go index a701d4a45ba..9be01365ee7 100644 --- a/clients/client/go/model_o_auth2_consent_request_open_id_connect_context.go +++ b/clients/client/go/model_o_auth2_consent_request_open_id_connect_context.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_consent_session.go b/clients/client/go/model_o_auth2_consent_session.go index bce144f4f6d..ecff5eee16b 100644 --- a/clients/client/go/model_o_auth2_consent_session.go +++ b/clients/client/go/model_o_auth2_consent_session.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -22,6 +22,7 @@ var _ MappedNullable = &OAuth2ConsentSession{} // OAuth2ConsentSession A completed OAuth 2.0 Consent Session. type OAuth2ConsentSession struct { ConsentRequest *OAuth2ConsentRequest `json:"consent_request,omitempty"` + Context map[string]interface{} `json:"context,omitempty"` ExpiresAt *OAuth2ConsentSessionExpiresAt `json:"expires_at,omitempty"` GrantAccessTokenAudience []string `json:"grant_access_token_audience,omitempty"` GrantScope []string `json:"grant_scope,omitempty"` @@ -85,6 +86,38 @@ func (o *OAuth2ConsentSession) SetConsentRequest(v OAuth2ConsentRequest) { o.ConsentRequest = &v } +// GetContext returns the Context field value if set, zero value otherwise. +func (o *OAuth2ConsentSession) GetContext() map[string]interface{} { + if o == nil || IsNil(o.Context) { + var ret map[string]interface{} + return ret + } + return o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *OAuth2ConsentSession) GetContextOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.Context) { + return map[string]interface{}{}, false + } + return o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *OAuth2ConsentSession) HasContext() bool { + if o != nil && !IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given map[string]interface{} and assigns it to the Context field. +func (o *OAuth2ConsentSession) SetContext(v map[string]interface{}) { + o.Context = v +} + // GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetExpiresAt() OAuth2ConsentSessionExpiresAt { if o == nil || IsNil(o.ExpiresAt) { @@ -322,6 +355,9 @@ func (o OAuth2ConsentSession) ToMap() (map[string]interface{}, error) { if !IsNil(o.ConsentRequest) { toSerialize["consent_request"] = o.ConsentRequest } + if !IsNil(o.Context) { + toSerialize["context"] = o.Context + } if !IsNil(o.ExpiresAt) { toSerialize["expires_at"] = o.ExpiresAt } @@ -366,6 +402,7 @@ func (o *OAuth2ConsentSession) UnmarshalJSON(bytes []byte) (err error) { if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "consent_request") + delete(additionalProperties, "context") delete(additionalProperties, "expires_at") delete(additionalProperties, "grant_access_token_audience") delete(additionalProperties, "grant_scope") diff --git a/clients/client/go/model_o_auth2_consent_session_expires_at.go b/clients/client/go/model_o_auth2_consent_session_expires_at.go index 6395149d77a..eefc4421197 100644 --- a/clients/client/go/model_o_auth2_consent_session_expires_at.go +++ b/clients/client/go/model_o_auth2_consent_session_expires_at.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_login_request.go b/clients/client/go/model_o_auth2_login_request.go index 9b0d48dacd0..fcee8413c6d 100644 --- a/clients/client/go/model_o_auth2_login_request.go +++ b/clients/client/go/model_o_auth2_login_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_logout_request.go b/clients/client/go/model_o_auth2_logout_request.go index 55b62eca4d1..bd43a26aad0 100644 --- a/clients/client/go/model_o_auth2_logout_request.go +++ b/clients/client/go/model_o_auth2_logout_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_redirect_to.go b/clients/client/go/model_o_auth2_redirect_to.go index 45578ed87bd..e3f738df29b 100644 --- a/clients/client/go/model_o_auth2_redirect_to.go +++ b/clients/client/go/model_o_auth2_redirect_to.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_o_auth2_token_exchange.go b/clients/client/go/model_o_auth2_token_exchange.go index e3e4c98d603..162991b03ad 100644 --- a/clients/client/go/model_o_auth2_token_exchange.go +++ b/clients/client/go/model_o_auth2_token_exchange.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_oidc_configuration.go b/clients/client/go/model_oidc_configuration.go index 7dce1d7138e..44782f0ee2b 100644 --- a/clients/client/go/model_oidc_configuration.go +++ b/clients/client/go/model_oidc_configuration.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_oidc_user_info.go b/clients/client/go/model_oidc_user_info.go index e461c02fbf0..180277bace1 100644 --- a/clients/client/go/model_oidc_user_info.go +++ b/clients/client/go/model_oidc_user_info.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_organization.go b/clients/client/go/model_organization.go index 619924a05d5..0f9456f543e 100644 --- a/clients/client/go/model_organization.go +++ b/clients/client/go/model_organization.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_organization_body.go b/clients/client/go/model_organization_body.go index 8098d43069b..a6e80a2bc6d 100644 --- a/clients/client/go/model_organization_body.go +++ b/clients/client/go/model_organization_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_pagination.go b/clients/client/go/model_pagination.go index 5cbbe9935cb..6ee609394f2 100644 --- a/clients/client/go/model_pagination.go +++ b/clients/client/go/model_pagination.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_pagination_headers.go b/clients/client/go/model_pagination_headers.go index 0ce42b0c03d..4a27ae1d713 100644 --- a/clients/client/go/model_pagination_headers.go +++ b/clients/client/go/model_pagination_headers.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_parse_error.go b/clients/client/go/model_parse_error.go index 2deb7d6d08e..0f452a51eee 100644 --- a/clients/client/go/model_parse_error.go +++ b/clients/client/go/model_parse_error.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_patch_identities_body.go b/clients/client/go/model_patch_identities_body.go index c97b1aed38c..6ff09fec132 100644 --- a/clients/client/go/model_patch_identities_body.go +++ b/clients/client/go/model_patch_identities_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_perform_native_logout_body.go b/clients/client/go/model_perform_native_logout_body.go index 587c06f3180..2498daa5cb3 100644 --- a/clients/client/go/model_perform_native_logout_body.go +++ b/clients/client/go/model_perform_native_logout_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_permissions_on_workpace_response.go b/clients/client/go/model_permissions_on_workpace_response.go new file mode 100644 index 00000000000..689c347dcc4 --- /dev/null +++ b/clients/client/go/model_permissions_on_workpace_response.go @@ -0,0 +1,156 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" +) + +// checks if the PermissionsOnWorkpaceResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PermissionsOnWorkpaceResponse{} + +// PermissionsOnWorkpaceResponse Get Permissions on Project Request Parameters +type PermissionsOnWorkpaceResponse struct { + Permissions *map[string]bool `json:"permissions,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PermissionsOnWorkpaceResponse PermissionsOnWorkpaceResponse + +// NewPermissionsOnWorkpaceResponse instantiates a new PermissionsOnWorkpaceResponse object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPermissionsOnWorkpaceResponse() *PermissionsOnWorkpaceResponse { + this := PermissionsOnWorkpaceResponse{} + return &this +} + +// NewPermissionsOnWorkpaceResponseWithDefaults instantiates a new PermissionsOnWorkpaceResponse object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPermissionsOnWorkpaceResponseWithDefaults() *PermissionsOnWorkpaceResponse { + this := PermissionsOnWorkpaceResponse{} + return &this +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *PermissionsOnWorkpaceResponse) GetPermissions() map[string]bool { + if o == nil || IsNil(o.Permissions) { + var ret map[string]bool + return ret + } + return *o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PermissionsOnWorkpaceResponse) GetPermissionsOk() (*map[string]bool, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *PermissionsOnWorkpaceResponse) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given map[string]bool and assigns it to the Permissions field. +func (o *PermissionsOnWorkpaceResponse) SetPermissions(v map[string]bool) { + o.Permissions = &v +} + +func (o PermissionsOnWorkpaceResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PermissionsOnWorkpaceResponse) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PermissionsOnWorkpaceResponse) UnmarshalJSON(bytes []byte) (err error) { + varPermissionsOnWorkpaceResponse := _PermissionsOnWorkpaceResponse{} + + err = json.Unmarshal(bytes, &varPermissionsOnWorkpaceResponse) + + if err != nil { + return err + } + + *o = PermissionsOnWorkpaceResponse(varPermissionsOnWorkpaceResponse) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "permissions") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePermissionsOnWorkpaceResponse struct { + value *PermissionsOnWorkpaceResponse + isSet bool +} + +func (v NullablePermissionsOnWorkpaceResponse) Get() *PermissionsOnWorkpaceResponse { + return v.value +} + +func (v *NullablePermissionsOnWorkpaceResponse) Set(val *PermissionsOnWorkpaceResponse) { + v.value = val + v.isSet = true +} + +func (v NullablePermissionsOnWorkpaceResponse) IsSet() bool { + return v.isSet +} + +func (v *NullablePermissionsOnWorkpaceResponse) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePermissionsOnWorkpaceResponse(val *PermissionsOnWorkpaceResponse) *NullablePermissionsOnWorkpaceResponse { + return &NullablePermissionsOnWorkpaceResponse{value: val, isSet: true} +} + +func (v NullablePermissionsOnWorkpaceResponse) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePermissionsOnWorkpaceResponse) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_plan.go b/clients/client/go/model_plan.go index c908d3fbd3f..b16b8bde3c8 100644 --- a/clients/client/go/model_plan.go +++ b/clients/client/go/model_plan.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_plan_details.go b/clients/client/go/model_plan_details.go index 4e4ee38f864..ebf3c01e21d 100644 --- a/clients/client/go/model_plan_details.go +++ b/clients/client/go/model_plan_details.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -29,7 +29,6 @@ type PlanDetails struct { Custom bool `json:"custom"` // Description is the description of the plan. Description string `json:"description"` - // Features are the feature definitions included in the plan. Features map[string]GenericUsage `json:"features"` // Name is the name of the plan. Name string `json:"name"` diff --git a/clients/client/go/model_post_check_permission_body.go b/clients/client/go/model_post_check_permission_body.go index 74835cef9f4..12f9dab34b2 100644 --- a/clients/client/go/model_post_check_permission_body.go +++ b/clients/client/go/model_post_check_permission_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_post_check_permission_or_error_body.go b/clients/client/go/model_post_check_permission_or_error_body.go index 0847478981e..aec9ce12bf6 100644 --- a/clients/client/go/model_post_check_permission_or_error_body.go +++ b/clients/client/go/model_post_check_permission_or_error_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project.go b/clients/client/go/model_project.go index d78e06d8195..73177868a5a 100644 --- a/clients/client/go/model_project.go +++ b/clients/client/go/model_project.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_api_key.go b/clients/client/go/model_project_api_key.go index 779aa5878c4..0795d566433 100644 --- a/clients/client/go/model_project_api_key.go +++ b/clients/client/go/model_project_api_key.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_branding.go b/clients/client/go/model_project_branding.go index 0b63adf36eb..77e7d1428ca 100644 --- a/clients/client/go/model_project_branding.go +++ b/clients/client/go/model_project_branding.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_branding_colors.go b/clients/client/go/model_project_branding_colors.go index 3f2b2b7a460..11e334eaca0 100644 --- a/clients/client/go/model_project_branding_colors.go +++ b/clients/client/go/model_project_branding_colors.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_branding_theme.go b/clients/client/go/model_project_branding_theme.go index e7f690dd9b0..d08a1d0e3ce 100644 --- a/clients/client/go/model_project_branding_theme.go +++ b/clients/client/go/model_project_branding_theme.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_cors.go b/clients/client/go/model_project_cors.go index d5448c17fe8..6e9109006ed 100644 --- a/clients/client/go/model_project_cors.go +++ b/clients/client/go/model_project_cors.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_events_datapoint.go b/clients/client/go/model_project_events_datapoint.go index 884fcca4a9a..78300d64409 100644 --- a/clients/client/go/model_project_events_datapoint.go +++ b/clients/client/go/model_project_events_datapoint.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_host.go b/clients/client/go/model_project_host.go index d90eed7ebd6..f745e618609 100644 --- a/clients/client/go/model_project_host.go +++ b/clients/client/go/model_project_host.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_member.go b/clients/client/go/model_project_member.go new file mode 100644 index 00000000000..525782af52f --- /dev/null +++ b/clients/client/go/model_project_member.go @@ -0,0 +1,256 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the ProjectMember type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ProjectMember{} + +// ProjectMember struct for ProjectMember +type ProjectMember struct { + Email string `json:"email"` + Id string `json:"id"` + Name string `json:"name"` + Role string `json:"role"` + AdditionalProperties map[string]interface{} +} + +type _ProjectMember ProjectMember + +// NewProjectMember instantiates a new ProjectMember object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewProjectMember(email string, id string, name string, role string) *ProjectMember { + this := ProjectMember{} + this.Email = email + this.Id = id + this.Name = name + this.Role = role + return &this +} + +// NewProjectMemberWithDefaults instantiates a new ProjectMember object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewProjectMemberWithDefaults() *ProjectMember { + this := ProjectMember{} + return &this +} + +// GetEmail returns the Email field value +func (o *ProjectMember) GetEmail() string { + if o == nil { + var ret string + return ret + } + + return o.Email +} + +// GetEmailOk returns a tuple with the Email field value +// and a boolean to check if the value has been set. +func (o *ProjectMember) GetEmailOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Email, true +} + +// SetEmail sets field value +func (o *ProjectMember) SetEmail(v string) { + o.Email = v +} + +// GetId returns the Id field value +func (o *ProjectMember) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *ProjectMember) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *ProjectMember) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *ProjectMember) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *ProjectMember) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *ProjectMember) SetName(v string) { + o.Name = v +} + +// GetRole returns the Role field value +func (o *ProjectMember) GetRole() string { + if o == nil { + var ret string + return ret + } + + return o.Role +} + +// GetRoleOk returns a tuple with the Role field value +// and a boolean to check if the value has been set. +func (o *ProjectMember) GetRoleOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Role, true +} + +// SetRole sets field value +func (o *ProjectMember) SetRole(v string) { + o.Role = v +} + +func (o ProjectMember) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ProjectMember) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["email"] = o.Email + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + toSerialize["role"] = o.Role + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ProjectMember) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "email", + "id", + "name", + "role", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varProjectMember := _ProjectMember{} + + err = json.Unmarshal(bytes, &varProjectMember) + + if err != nil { + return err + } + + *o = ProjectMember(varProjectMember) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "email") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "role") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableProjectMember struct { + value *ProjectMember + isSet bool +} + +func (v NullableProjectMember) Get() *ProjectMember { + return v.value +} + +func (v *NullableProjectMember) Set(val *ProjectMember) { + v.value = val + v.isSet = true +} + +func (v NullableProjectMember) IsSet() bool { + return v.isSet +} + +func (v *NullableProjectMember) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableProjectMember(val *ProjectMember) *NullableProjectMember { + return &NullableProjectMember{value: val, isSet: true} +} + +func (v NullableProjectMember) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableProjectMember) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_project_metadata.go b/clients/client/go/model_project_metadata.go index bdc8237a94c..3ae10c5cd08 100644 --- a/clients/client/go/model_project_metadata.go +++ b/clients/client/go/model_project_metadata.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -24,6 +24,8 @@ var _ MappedNullable = &ProjectMetadata{} type ProjectMetadata struct { // The Project's Creation Date CreatedAt time.Time `json:"created_at"` + // The environment of the project. prod Production dev Development + Environment string `json:"environment"` Hosts []string `json:"hosts"` // The project's ID. Id string `json:"id"` @@ -47,9 +49,10 @@ type _ProjectMetadata ProjectMetadata // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewProjectMetadata(createdAt time.Time, hosts []string, id string, name string, state string, updatedAt time.Time) *ProjectMetadata { +func NewProjectMetadata(createdAt time.Time, environment string, hosts []string, id string, name string, state string, updatedAt time.Time) *ProjectMetadata { this := ProjectMetadata{} this.CreatedAt = createdAt + this.Environment = environment this.Hosts = hosts this.Id = id this.Name = name @@ -90,6 +93,30 @@ func (o *ProjectMetadata) SetCreatedAt(v time.Time) { o.CreatedAt = v } +// GetEnvironment returns the Environment field value +func (o *ProjectMetadata) GetEnvironment() string { + if o == nil { + var ret string + return ret + } + + return o.Environment +} + +// GetEnvironmentOk returns a tuple with the Environment field value +// and a boolean to check if the value has been set. +func (o *ProjectMetadata) GetEnvironmentOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Environment, true +} + +// SetEnvironment sets field value +func (o *ProjectMetadata) SetEnvironment(v string) { + o.Environment = v +} + // GetHosts returns the Hosts field value func (o *ProjectMetadata) GetHosts() []string { if o == nil { @@ -379,6 +406,7 @@ func (o ProjectMetadata) MarshalJSON() ([]byte, error) { func (o ProjectMetadata) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["created_at"] = o.CreatedAt + toSerialize["environment"] = o.Environment toSerialize["hosts"] = o.Hosts toSerialize["id"] = o.Id toSerialize["name"] = o.Name @@ -410,6 +438,7 @@ func (o *ProjectMetadata) UnmarshalJSON(bytes []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "created_at", + "environment", "hosts", "id", "name", @@ -445,6 +474,7 @@ func (o *ProjectMetadata) UnmarshalJSON(bytes []byte) (err error) { if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "created_at") + delete(additionalProperties, "environment") delete(additionalProperties, "hosts") delete(additionalProperties, "id") delete(additionalProperties, "name") diff --git a/clients/client/go/model_project_service_identity.go b/clients/client/go/model_project_service_identity.go index 5f0dc841595..b442239495c 100644 --- a/clients/client/go/model_project_service_identity.go +++ b/clients/client/go/model_project_service_identity.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_service_o_auth2.go b/clients/client/go/model_project_service_o_auth2.go index 4aaf2ca8ade..5ad001009ef 100644 --- a/clients/client/go/model_project_service_o_auth2.go +++ b/clients/client/go/model_project_service_o_auth2.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_service_permission.go b/clients/client/go/model_project_service_permission.go index daf4c39451e..ecefaf1b8ae 100644 --- a/clients/client/go/model_project_service_permission.go +++ b/clients/client/go/model_project_service_permission.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_project_services.go b/clients/client/go/model_project_services.go index adcc24dad28..854b24780de 100644 --- a/clients/client/go/model_project_services.go +++ b/clients/client/go/model_project_services.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_quota_usage.go b/clients/client/go/model_quota_usage.go index edc40d72d0f..ca9f3304c87 100644 --- a/clients/client/go/model_quota_usage.go +++ b/clients/client/go/model_quota_usage.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -24,7 +24,7 @@ type QuotaUsage struct { // The additional price per unit in cents. AdditionalPrice int64 `json:"additional_price"` CanUseMore bool `json:"can_use_more"` - // region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + // region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect Feature string `json:"feature"` FeatureAvailable bool `json:"feature_available"` Included int64 `json:"included"` diff --git a/clients/client/go/model_recovery_code_for_identity.go b/clients/client/go/model_recovery_code_for_identity.go index b2b2026946a..2058728345e 100644 --- a/clients/client/go/model_recovery_code_for_identity.go +++ b/clients/client/go/model_recovery_code_for_identity.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_recovery_flow.go b/clients/client/go/model_recovery_flow.go index 416d5515385..9c30da75f5f 100644 --- a/clients/client/go/model_recovery_flow.go +++ b/clients/client/go/model_recovery_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -38,6 +38,8 @@ type RecoveryFlow struct { ReturnTo *string `json:"return_to,omitempty"` // State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. State interface{} `json:"state"` + // TransientPayload is used to pass data from the recovery flow to hooks and email templates + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // The flow type can either be `api` or `browser`. Type string `json:"type"` Ui UiContainer `json:"ui"` @@ -288,6 +290,38 @@ func (o *RecoveryFlow) SetState(v interface{}) { o.State = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *RecoveryFlow) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RecoveryFlow) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *RecoveryFlow) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *RecoveryFlow) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetType returns the Type field value func (o *RecoveryFlow) GetType() string { if o == nil { @@ -362,6 +396,9 @@ func (o RecoveryFlow) ToMap() (map[string]interface{}, error) { if o.State != nil { toSerialize["state"] = o.State } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } toSerialize["type"] = o.Type toSerialize["ui"] = o.Ui @@ -421,6 +458,7 @@ func (o *RecoveryFlow) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "request_url") delete(additionalProperties, "return_to") delete(additionalProperties, "state") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "type") delete(additionalProperties, "ui") o.AdditionalProperties = additionalProperties diff --git a/clients/client/go/model_recovery_flow_state.go b/clients/client/go/model_recovery_flow_state.go index 2edc45913f0..63e2535a75f 100644 --- a/clients/client/go/model_recovery_flow_state.go +++ b/clients/client/go/model_recovery_flow_state.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_recovery_identity_address.go b/clients/client/go/model_recovery_identity_address.go index 9c796a05e22..badfd6abfe8 100644 --- a/clients/client/go/model_recovery_identity_address.go +++ b/clients/client/go/model_recovery_identity_address.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_recovery_link_for_identity.go b/clients/client/go/model_recovery_link_for_identity.go index f62ae508be3..b2636055c9e 100644 --- a/clients/client/go/model_recovery_link_for_identity.go +++ b/clients/client/go/model_recovery_link_for_identity.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_registration_flow.go b/clients/client/go/model_registration_flow.go index 256d56e9bcc..50343a0f99d 100644 --- a/clients/client/go/model_registration_flow.go +++ b/clients/client/go/model_registration_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -22,7 +22,8 @@ var _ MappedNullable = &RegistrationFlow{} // RegistrationFlow struct for RegistrationFlow type RegistrationFlow struct { - Active *IdentityCredentialsType `json:"active,omitempty"` + // Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + Active *string `json:"active,omitempty"` // ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. ExpiresAt time.Time `json:"expires_at"` // ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http:///?flow= @@ -76,9 +77,9 @@ func NewRegistrationFlowWithDefaults() *RegistrationFlow { } // GetActive returns the Active field value if set, zero value otherwise. -func (o *RegistrationFlow) GetActive() IdentityCredentialsType { +func (o *RegistrationFlow) GetActive() string { if o == nil || IsNil(o.Active) { - var ret IdentityCredentialsType + var ret string return ret } return *o.Active @@ -86,7 +87,7 @@ func (o *RegistrationFlow) GetActive() IdentityCredentialsType { // GetActiveOk returns a tuple with the Active field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *RegistrationFlow) GetActiveOk() (*IdentityCredentialsType, bool) { +func (o *RegistrationFlow) GetActiveOk() (*string, bool) { if o == nil || IsNil(o.Active) { return nil, false } @@ -102,8 +103,8 @@ func (o *RegistrationFlow) HasActive() bool { return false } -// SetActive gets a reference to the given IdentityCredentialsType and assigns it to the Active field. -func (o *RegistrationFlow) SetActive(v IdentityCredentialsType) { +// SetActive gets a reference to the given string and assigns it to the Active field. +func (o *RegistrationFlow) SetActive(v string) { o.Active = &v } diff --git a/clients/client/go/model_registration_flow_state.go b/clients/client/go/model_registration_flow_state.go index 510a1be6667..02b960cb714 100644 --- a/clients/client/go/model_registration_flow_state.go +++ b/clients/client/go/model_registration_flow_state.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_reject_o_auth2_request.go b/clients/client/go/model_reject_o_auth2_request.go index 2b2b238007a..efe4adcb623 100644 --- a/clients/client/go/model_reject_o_auth2_request.go +++ b/clients/client/go/model_reject_o_auth2_request.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_relation_query.go b/clients/client/go/model_relation_query.go index 1ccc31c1b90..3813a21a866 100644 --- a/clients/client/go/model_relation_query.go +++ b/clients/client/go/model_relation_query.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_relationship.go b/clients/client/go/model_relationship.go index bdd8edd8f55..6ce59eb31ba 100644 --- a/clients/client/go/model_relationship.go +++ b/clients/client/go/model_relationship.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_relationship_namespaces.go b/clients/client/go/model_relationship_namespaces.go index 6a3a311d1aa..ed388b37199 100644 --- a/clients/client/go/model_relationship_namespaces.go +++ b/clients/client/go/model_relationship_namespaces.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_relationship_patch.go b/clients/client/go/model_relationship_patch.go index 1f7ba7eb2f8..8359c3bb0d8 100644 --- a/clients/client/go/model_relationship_patch.go +++ b/clients/client/go/model_relationship_patch.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_relationships.go b/clients/client/go/model_relationships.go index 672f3e75d1c..a5a3a1989ce 100644 --- a/clients/client/go/model_relationships.go +++ b/clients/client/go/model_relationships.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_rfc6749_error_json.go b/clients/client/go/model_rfc6749_error_json.go index b2cb16d345c..f520ebbdfbc 100644 --- a/clients/client/go/model_rfc6749_error_json.go +++ b/clients/client/go/model_rfc6749_error_json.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_schema_patch.go b/clients/client/go/model_schema_patch.go index 732da485051..19fe79e6cfa 100644 --- a/clients/client/go/model_schema_patch.go +++ b/clients/client/go/model_schema_patch.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_self_service_flow_expired_error.go b/clients/client/go/model_self_service_flow_expired_error.go index 4c20b1cef54..aa56e7c455a 100644 --- a/clients/client/go/model_self_service_flow_expired_error.go +++ b/clients/client/go/model_self_service_flow_expired_error.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_session.go b/clients/client/go/model_session.go index e4360a45b97..2d0d633c85c 100644 --- a/clients/client/go/model_session.go +++ b/clients/client/go/model_session.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_session_activity_datapoint.go b/clients/client/go/model_session_activity_datapoint.go index 4f7a7300f2a..b35ea98faa9 100644 --- a/clients/client/go/model_session_activity_datapoint.go +++ b/clients/client/go/model_session_activity_datapoint.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_session_authentication_method.go b/clients/client/go/model_session_authentication_method.go index e3655a0a452..be90157b4e5 100644 --- a/clients/client/go/model_session_authentication_method.go +++ b/clients/client/go/model_session_authentication_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_session_device.go b/clients/client/go/model_session_device.go index f9859b1d188..d353a7f27a7 100644 --- a/clients/client/go/model_session_device.go +++ b/clients/client/go/model_session_device.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_set_active_project_in_console_body.go b/clients/client/go/model_set_active_project_in_console_body.go index c8bc9d256e7..3dd137dd1a0 100644 --- a/clients/client/go/model_set_active_project_in_console_body.go +++ b/clients/client/go/model_set_active_project_in_console_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_set_custom_domain_body.go b/clients/client/go/model_set_custom_domain_body.go index d2bdcfcde70..da0dab8952b 100644 --- a/clients/client/go/model_set_custom_domain_body.go +++ b/clients/client/go/model_set_custom_domain_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_set_event_stream_body.go b/clients/client/go/model_set_event_stream_body.go index eac0229687e..fe5e2845db5 100644 --- a/clients/client/go/model_set_event_stream_body.go +++ b/clients/client/go/model_set_event_stream_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_set_project.go b/clients/client/go/model_set_project.go index 98400ff4412..6cf961f6ec1 100644 --- a/clients/client/go/model_set_project.go +++ b/clients/client/go/model_set_project.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_set_project_branding_theme_body.go b/clients/client/go/model_set_project_branding_theme_body.go index 007d7967db6..ac343f46daa 100644 --- a/clients/client/go/model_set_project_branding_theme_body.go +++ b/clients/client/go/model_set_project_branding_theme_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_settings_flow.go b/clients/client/go/model_settings_flow.go index 0907489e2ea..2e932825555 100644 --- a/clients/client/go/model_settings_flow.go +++ b/clients/client/go/model_settings_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -39,6 +39,8 @@ type SettingsFlow struct { ReturnTo *string `json:"return_to,omitempty"` // State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. State interface{} `json:"state"` + // TransientPayload is used to pass data from the settings flow to hooks and email templates + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // The flow type can either be `api` or `browser`. Type string `json:"type"` Ui UiContainer `json:"ui"` @@ -314,6 +316,38 @@ func (o *SettingsFlow) SetState(v interface{}) { o.State = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *SettingsFlow) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SettingsFlow) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *SettingsFlow) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *SettingsFlow) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetType returns the Type field value func (o *SettingsFlow) GetType() string { if o == nil { @@ -389,6 +423,9 @@ func (o SettingsFlow) ToMap() (map[string]interface{}, error) { if o.State != nil { toSerialize["state"] = o.State } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } toSerialize["type"] = o.Type toSerialize["ui"] = o.Ui @@ -450,6 +487,7 @@ func (o *SettingsFlow) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "request_url") delete(additionalProperties, "return_to") delete(additionalProperties, "state") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "type") delete(additionalProperties, "ui") o.AdditionalProperties = additionalProperties diff --git a/clients/client/go/model_settings_flow_state.go b/clients/client/go/model_settings_flow_state.go index 0a1b8fb4a09..d141b2ce596 100644 --- a/clients/client/go/model_settings_flow_state.go +++ b/clients/client/go/model_settings_flow_state.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_source_position.go b/clients/client/go/model_source_position.go index 803d50b45e4..f45987337e9 100644 --- a/clients/client/go/model_source_position.go +++ b/clients/client/go/model_source_position.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_stripe_customer.go b/clients/client/go/model_stripe_customer.go deleted file mode 100644 index 95532cbfb8d..00000000000 --- a/clients/client/go/model_stripe_customer.go +++ /dev/null @@ -1,156 +0,0 @@ -/* -Ory APIs - -Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -API version: v1.5.1 -Contact: support@ory.sh -*/ - -// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. - -package client - -import ( - "encoding/json" -) - -// checks if the StripeCustomer type satisfies the MappedNullable interface at compile time -var _ MappedNullable = &StripeCustomer{} - -// StripeCustomer struct for StripeCustomer -type StripeCustomer struct { - Id *string `json:"id,omitempty"` - AdditionalProperties map[string]interface{} -} - -type _StripeCustomer StripeCustomer - -// NewStripeCustomer instantiates a new StripeCustomer object -// This constructor will assign default values to properties that have it defined, -// and makes sure properties required by API are set, but the set of arguments -// will change when the set of required properties is changed -func NewStripeCustomer() *StripeCustomer { - this := StripeCustomer{} - return &this -} - -// NewStripeCustomerWithDefaults instantiates a new StripeCustomer object -// This constructor will only assign default values to properties that have it defined, -// but it doesn't guarantee that properties required by API are set -func NewStripeCustomerWithDefaults() *StripeCustomer { - this := StripeCustomer{} - return &this -} - -// GetId returns the Id field value if set, zero value otherwise. -func (o *StripeCustomer) GetId() string { - if o == nil || IsNil(o.Id) { - var ret string - return ret - } - return *o.Id -} - -// GetIdOk returns a tuple with the Id field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *StripeCustomer) GetIdOk() (*string, bool) { - if o == nil || IsNil(o.Id) { - return nil, false - } - return o.Id, true -} - -// HasId returns a boolean if a field has been set. -func (o *StripeCustomer) HasId() bool { - if o != nil && !IsNil(o.Id) { - return true - } - - return false -} - -// SetId gets a reference to the given string and assigns it to the Id field. -func (o *StripeCustomer) SetId(v string) { - o.Id = &v -} - -func (o StripeCustomer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() - if err != nil { - return []byte{}, err - } - return json.Marshal(toSerialize) -} - -func (o StripeCustomer) ToMap() (map[string]interface{}, error) { - toSerialize := map[string]interface{}{} - if !IsNil(o.Id) { - toSerialize["id"] = o.Id - } - - for key, value := range o.AdditionalProperties { - toSerialize[key] = value - } - - return toSerialize, nil -} - -func (o *StripeCustomer) UnmarshalJSON(bytes []byte) (err error) { - varStripeCustomer := _StripeCustomer{} - - err = json.Unmarshal(bytes, &varStripeCustomer) - - if err != nil { - return err - } - - *o = StripeCustomer(varStripeCustomer) - - additionalProperties := make(map[string]interface{}) - - if err = json.Unmarshal(bytes, &additionalProperties); err == nil { - delete(additionalProperties, "id") - o.AdditionalProperties = additionalProperties - } - - return err -} - -type NullableStripeCustomer struct { - value *StripeCustomer - isSet bool -} - -func (v NullableStripeCustomer) Get() *StripeCustomer { - return v.value -} - -func (v *NullableStripeCustomer) Set(val *StripeCustomer) { - v.value = val - v.isSet = true -} - -func (v NullableStripeCustomer) IsSet() bool { - return v.isSet -} - -func (v *NullableStripeCustomer) Unset() { - v.value = nil - v.isSet = false -} - -func NewNullableStripeCustomer(val *StripeCustomer) *NullableStripeCustomer { - return &NullableStripeCustomer{value: val, isSet: true} -} - -func (v NullableStripeCustomer) MarshalJSON() ([]byte, error) { - return json.Marshal(v.value) -} - -func (v *NullableStripeCustomer) UnmarshalJSON(src []byte) error { - v.isSet = true - return json.Unmarshal(src, &v.value) -} - - diff --git a/clients/client/go/model_subject_set.go b/clients/client/go/model_subject_set.go index 53ca5f548b1..f30581000e6 100644 --- a/clients/client/go/model_subject_set.go +++ b/clients/client/go/model_subject_set.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_subscription.go b/clients/client/go/model_subscription.go index 010217415fe..1b0526f40ad 100644 --- a/clients/client/go/model_subscription.go +++ b/clients/client/go/model_subscription.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -29,6 +29,7 @@ type Subscription struct { CurrentInterval string `json:"current_interval"` // The currently active plan of the subscription CurrentPlan string `json:"current_plan"` + CurrentPlanDetails *PlanDetails `json:"current_plan_details,omitempty"` // The ID of the stripe customer CustomerId string `json:"customer_id"` // The ID of the subscription @@ -41,6 +42,7 @@ type Subscription struct { PlanChangesTo NullableString `json:"plan_changes_to"` // For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. Status string `json:"status"` + StripeCheckoutExpiresAt *time.Time `json:"stripe_checkout_expires_at,omitempty"` UpdatedAt time.Time `json:"updated_at"` AdditionalProperties map[string]interface{} } @@ -171,6 +173,38 @@ func (o *Subscription) SetCurrentPlan(v string) { o.CurrentPlan = v } +// GetCurrentPlanDetails returns the CurrentPlanDetails field value if set, zero value otherwise. +func (o *Subscription) GetCurrentPlanDetails() PlanDetails { + if o == nil || IsNil(o.CurrentPlanDetails) { + var ret PlanDetails + return ret + } + return *o.CurrentPlanDetails +} + +// GetCurrentPlanDetailsOk returns a tuple with the CurrentPlanDetails field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetCurrentPlanDetailsOk() (*PlanDetails, bool) { + if o == nil || IsNil(o.CurrentPlanDetails) { + return nil, false + } + return o.CurrentPlanDetails, true +} + +// HasCurrentPlanDetails returns a boolean if a field has been set. +func (o *Subscription) HasCurrentPlanDetails() bool { + if o != nil && !IsNil(o.CurrentPlanDetails) { + return true + } + + return false +} + +// SetCurrentPlanDetails gets a reference to the given PlanDetails and assigns it to the CurrentPlanDetails field. +func (o *Subscription) SetCurrentPlanDetails(v PlanDetails) { + o.CurrentPlanDetails = &v +} + // GetCustomerId returns the CustomerId field value func (o *Subscription) GetCustomerId() string { if o == nil { @@ -393,6 +427,38 @@ func (o *Subscription) SetStatus(v string) { o.Status = v } +// GetStripeCheckoutExpiresAt returns the StripeCheckoutExpiresAt field value if set, zero value otherwise. +func (o *Subscription) GetStripeCheckoutExpiresAt() time.Time { + if o == nil || IsNil(o.StripeCheckoutExpiresAt) { + var ret time.Time + return ret + } + return *o.StripeCheckoutExpiresAt +} + +// GetStripeCheckoutExpiresAtOk returns a tuple with the StripeCheckoutExpiresAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Subscription) GetStripeCheckoutExpiresAtOk() (*time.Time, bool) { + if o == nil || IsNil(o.StripeCheckoutExpiresAt) { + return nil, false + } + return o.StripeCheckoutExpiresAt, true +} + +// HasStripeCheckoutExpiresAt returns a boolean if a field has been set. +func (o *Subscription) HasStripeCheckoutExpiresAt() bool { + if o != nil && !IsNil(o.StripeCheckoutExpiresAt) { + return true + } + + return false +} + +// SetStripeCheckoutExpiresAt gets a reference to the given time.Time and assigns it to the StripeCheckoutExpiresAt field. +func (o *Subscription) SetStripeCheckoutExpiresAt(v time.Time) { + o.StripeCheckoutExpiresAt = &v +} + // GetUpdatedAt returns the UpdatedAt field value func (o *Subscription) GetUpdatedAt() time.Time { if o == nil { @@ -431,6 +497,9 @@ func (o Subscription) ToMap() (map[string]interface{}, error) { toSerialize["currency"] = o.Currency toSerialize["current_interval"] = o.CurrentInterval toSerialize["current_plan"] = o.CurrentPlan + if !IsNil(o.CurrentPlanDetails) { + toSerialize["current_plan_details"] = o.CurrentPlanDetails + } toSerialize["customer_id"] = o.CustomerId toSerialize["id"] = o.Id toSerialize["interval_changes_to"] = o.IntervalChangesTo.Get() @@ -443,6 +512,9 @@ func (o Subscription) ToMap() (map[string]interface{}, error) { } toSerialize["plan_changes_to"] = o.PlanChangesTo.Get() toSerialize["status"] = o.Status + if !IsNil(o.StripeCheckoutExpiresAt) { + toSerialize["stripe_checkout_expires_at"] = o.StripeCheckoutExpiresAt + } toSerialize["updated_at"] = o.UpdatedAt for key, value := range o.AdditionalProperties { @@ -501,6 +573,7 @@ func (o *Subscription) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "currency") delete(additionalProperties, "current_interval") delete(additionalProperties, "current_plan") + delete(additionalProperties, "current_plan_details") delete(additionalProperties, "customer_id") delete(additionalProperties, "id") delete(additionalProperties, "interval_changes_to") @@ -509,6 +582,7 @@ func (o *Subscription) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "plan_changes_at") delete(additionalProperties, "plan_changes_to") delete(additionalProperties, "status") + delete(additionalProperties, "stripe_checkout_expires_at") delete(additionalProperties, "updated_at") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_successful_code_exchange_response.go b/clients/client/go/model_successful_code_exchange_response.go index d234bc7a87a..e2226cf67eb 100644 --- a/clients/client/go/model_successful_code_exchange_response.go +++ b/clients/client/go/model_successful_code_exchange_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_successful_native_login.go b/clients/client/go/model_successful_native_login.go index 3c52cd8b755..68774b17af2 100644 --- a/clients/client/go/model_successful_native_login.go +++ b/clients/client/go/model_successful_native_login.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_successful_native_registration.go b/clients/client/go/model_successful_native_registration.go index 3f62bbcfaa0..2f727e4961f 100644 --- a/clients/client/go/model_successful_native_registration.go +++ b/clients/client/go/model_successful_native_registration.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_successful_project_update.go b/clients/client/go/model_successful_project_update.go index 81250371de8..47c41b0d819 100644 --- a/clients/client/go/model_successful_project_update.go +++ b/clients/client/go/model_successful_project_update.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_token_pagination.go b/clients/client/go/model_token_pagination.go index ddc9ce9fda3..8aafad7ee4f 100644 --- a/clients/client/go/model_token_pagination.go +++ b/clients/client/go/model_token_pagination.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_token_pagination_headers.go b/clients/client/go/model_token_pagination_headers.go index b26b869b962..56297b5444e 100644 --- a/clients/client/go/model_token_pagination_headers.go +++ b/clients/client/go/model_token_pagination_headers.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_token_pagination_request_parameters.go b/clients/client/go/model_token_pagination_request_parameters.go index a946fa386a2..f2b9df97bd0 100644 --- a/clients/client/go/model_token_pagination_request_parameters.go +++ b/clients/client/go/model_token_pagination_request_parameters.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_token_pagination_response_headers.go b/clients/client/go/model_token_pagination_response_headers.go index c1d8e5bdce5..eca26770086 100644 --- a/clients/client/go/model_token_pagination_response_headers.go +++ b/clients/client/go/model_token_pagination_response_headers.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_trust_o_auth2_jwt_grant_issuer.go b/clients/client/go/model_trust_o_auth2_jwt_grant_issuer.go index 6e2f0a3fa47..36cf48b0679 100644 --- a/clients/client/go/model_trust_o_auth2_jwt_grant_issuer.go +++ b/clients/client/go/model_trust_o_auth2_jwt_grant_issuer.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_trusted_o_auth2_jwt_grant_issuer.go b/clients/client/go/model_trusted_o_auth2_jwt_grant_issuer.go index 9aa45f466f9..8a95715f644 100644 --- a/clients/client/go/model_trusted_o_auth2_jwt_grant_issuer.go +++ b/clients/client/go/model_trusted_o_auth2_jwt_grant_issuer.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_trusted_o_auth2_jwt_grant_json_web_key.go b/clients/client/go/model_trusted_o_auth2_jwt_grant_json_web_key.go index 8fc4af0c962..a7ae133083d 100644 --- a/clients/client/go/model_trusted_o_auth2_jwt_grant_json_web_key.go +++ b/clients/client/go/model_trusted_o_auth2_jwt_grant_json_web_key.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_container.go b/clients/client/go/model_ui_container.go index b8823bee32c..0ee3c3b233f 100644 --- a/clients/client/go/model_ui_container.go +++ b/clients/client/go/model_ui_container.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node.go b/clients/client/go/model_ui_node.go index 67ff22345d0..5c2ea9aa242 100644 --- a/clients/client/go/model_ui_node.go +++ b/clients/client/go/model_ui_node.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_anchor_attributes.go b/clients/client/go/model_ui_node_anchor_attributes.go index 8f92298af25..719e67a4fbd 100644 --- a/clients/client/go/model_ui_node_anchor_attributes.go +++ b/clients/client/go/model_ui_node_anchor_attributes.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_attributes.go b/clients/client/go/model_ui_node_attributes.go index c5ea012ac3f..d3c1bb789d9 100644 --- a/clients/client/go/model_ui_node_attributes.go +++ b/clients/client/go/model_ui_node_attributes.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_image_attributes.go b/clients/client/go/model_ui_node_image_attributes.go index cfc6f36e79f..5d0079a7382 100644 --- a/clients/client/go/model_ui_node_image_attributes.go +++ b/clients/client/go/model_ui_node_image_attributes.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_input_attributes.go b/clients/client/go/model_ui_node_input_attributes.go index a6c43315e0e..a993df53da7 100644 --- a/clients/client/go/model_ui_node_input_attributes.go +++ b/clients/client/go/model_ui_node_input_attributes.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_meta.go b/clients/client/go/model_ui_node_meta.go index d8a1c3ddd9e..e165bcfd2d6 100644 --- a/clients/client/go/model_ui_node_meta.go +++ b/clients/client/go/model_ui_node_meta.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_script_attributes.go b/clients/client/go/model_ui_node_script_attributes.go index 5e344c75cdb..288aeb76809 100644 --- a/clients/client/go/model_ui_node_script_attributes.go +++ b/clients/client/go/model_ui_node_script_attributes.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_node_text_attributes.go b/clients/client/go/model_ui_node_text_attributes.go index a88fa9db640..a456c684f98 100644 --- a/clients/client/go/model_ui_node_text_attributes.go +++ b/clients/client/go/model_ui_node_text_attributes.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_ui_text.go b/clients/client/go/model_ui_text.go index b5252d3439d..848b378ae99 100644 --- a/clients/client/go/model_ui_text.go +++ b/clients/client/go/model_ui_text.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_identity_body.go b/clients/client/go/model_update_identity_body.go index 61916b9e292..5faca44f9ba 100644 --- a/clients/client/go/model_update_identity_body.go +++ b/clients/client/go/model_update_identity_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -28,7 +28,8 @@ type UpdateIdentityBody struct { MetadataPublic interface{} `json:"metadata_public,omitempty"` // SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. SchemaId string `json:"schema_id"` - State IdentityState `json:"state"` + // State is the identity's state. active StateActive inactive StateInactive + State string `json:"state"` // Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. Traits map[string]interface{} `json:"traits"` AdditionalProperties map[string]interface{} @@ -40,7 +41,7 @@ type _UpdateIdentityBody UpdateIdentityBody // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewUpdateIdentityBody(schemaId string, state IdentityState, traits map[string]interface{}) *UpdateIdentityBody { +func NewUpdateIdentityBody(schemaId string, state string, traits map[string]interface{}) *UpdateIdentityBody { this := UpdateIdentityBody{} this.SchemaId = schemaId this.State = state @@ -179,9 +180,9 @@ func (o *UpdateIdentityBody) SetSchemaId(v string) { } // GetState returns the State field value -func (o *UpdateIdentityBody) GetState() IdentityState { +func (o *UpdateIdentityBody) GetState() string { if o == nil { - var ret IdentityState + var ret string return ret } @@ -190,7 +191,7 @@ func (o *UpdateIdentityBody) GetState() IdentityState { // GetStateOk returns a tuple with the State field value // and a boolean to check if the value has been set. -func (o *UpdateIdentityBody) GetStateOk() (*IdentityState, bool) { +func (o *UpdateIdentityBody) GetStateOk() (*string, bool) { if o == nil { return nil, false } @@ -198,7 +199,7 @@ func (o *UpdateIdentityBody) GetStateOk() (*IdentityState, bool) { } // SetState sets field value -func (o *UpdateIdentityBody) SetState(v IdentityState) { +func (o *UpdateIdentityBody) SetState(v string) { o.State = v } diff --git a/clients/client/go/model_update_login_flow_body.go b/clients/client/go/model_update_login_flow_body.go index a872d275342..55ae395a3e0 100644 --- a/clients/client/go/model_update_login_flow_body.go +++ b/clients/client/go/model_update_login_flow_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_login_flow_with_code_method.go b/clients/client/go/model_update_login_flow_with_code_method.go index 3eedd2c2857..095a2d8bef5 100644 --- a/clients/client/go/model_update_login_flow_with_code_method.go +++ b/clients/client/go/model_update_login_flow_with_code_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -31,6 +31,8 @@ type UpdateLoginFlowWithCodeMethod struct { Method string `json:"method"` // Resend is set when the user wants to resend the code Resend *string `json:"resend,omitempty"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -199,6 +201,38 @@ func (o *UpdateLoginFlowWithCodeMethod) SetResend(v string) { o.Resend = &v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateLoginFlowWithCodeMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLoginFlowWithCodeMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateLoginFlowWithCodeMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateLoginFlowWithCodeMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateLoginFlowWithCodeMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -220,6 +254,9 @@ func (o UpdateLoginFlowWithCodeMethod) ToMap() (map[string]interface{}, error) { if !IsNil(o.Resend) { toSerialize["resend"] = o.Resend } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -269,6 +306,7 @@ func (o *UpdateLoginFlowWithCodeMethod) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "identifier") delete(additionalProperties, "method") delete(additionalProperties, "resend") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_login_flow_with_lookup_secret_method.go b/clients/client/go/model_update_login_flow_with_lookup_secret_method.go index 78a5a300dd3..16d44432b46 100644 --- a/clients/client/go/model_update_login_flow_with_lookup_secret_method.go +++ b/clients/client/go/model_update_login_flow_with_lookup_secret_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_login_flow_with_oidc_method.go b/clients/client/go/model_update_login_flow_with_oidc_method.go index 9f68657effc..4a6e53a6dc5 100644 --- a/clients/client/go/model_update_login_flow_with_oidc_method.go +++ b/clients/client/go/model_update_login_flow_with_oidc_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -33,6 +33,8 @@ type UpdateLoginFlowWithOidcMethod struct { Provider string `json:"provider"` // The identity traits. This is a placeholder for the registration flow. Traits map[string]interface{} `json:"traits,omitempty"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. UpstreamParameters map[string]interface{} `json:"upstream_parameters,omitempty"` AdditionalProperties map[string]interface{} @@ -235,6 +237,38 @@ func (o *UpdateLoginFlowWithOidcMethod) SetTraits(v map[string]interface{}) { o.Traits = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateLoginFlowWithOidcMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLoginFlowWithOidcMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateLoginFlowWithOidcMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateLoginFlowWithOidcMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetUpstreamParameters returns the UpstreamParameters field value if set, zero value otherwise. func (o *UpdateLoginFlowWithOidcMethod) GetUpstreamParameters() map[string]interface{} { if o == nil || IsNil(o.UpstreamParameters) { @@ -291,6 +325,9 @@ func (o UpdateLoginFlowWithOidcMethod) ToMap() (map[string]interface{}, error) { if !IsNil(o.Traits) { toSerialize["traits"] = o.Traits } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } if !IsNil(o.UpstreamParameters) { toSerialize["upstream_parameters"] = o.UpstreamParameters } @@ -344,6 +381,7 @@ func (o *UpdateLoginFlowWithOidcMethod) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "method") delete(additionalProperties, "provider") delete(additionalProperties, "traits") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "upstream_parameters") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_login_flow_with_password_method.go b/clients/client/go/model_update_login_flow_with_password_method.go index 7580722a596..265f48ddc5e 100644 --- a/clients/client/go/model_update_login_flow_with_password_method.go +++ b/clients/client/go/model_update_login_flow_with_password_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -31,6 +31,8 @@ type UpdateLoginFlowWithPasswordMethod struct { Password string `json:"password"` // Identifier is the email or username of the user trying to log in. This field is deprecated! PasswordIdentifier *string `json:"password_identifier,omitempty"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -192,6 +194,38 @@ func (o *UpdateLoginFlowWithPasswordMethod) SetPasswordIdentifier(v string) { o.PasswordIdentifier = &v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateLoginFlowWithPasswordMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLoginFlowWithPasswordMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateLoginFlowWithPasswordMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateLoginFlowWithPasswordMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateLoginFlowWithPasswordMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -211,6 +245,9 @@ func (o UpdateLoginFlowWithPasswordMethod) ToMap() (map[string]interface{}, erro if !IsNil(o.PasswordIdentifier) { toSerialize["password_identifier"] = o.PasswordIdentifier } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -261,6 +298,7 @@ func (o *UpdateLoginFlowWithPasswordMethod) UnmarshalJSON(bytes []byte) (err err delete(additionalProperties, "method") delete(additionalProperties, "password") delete(additionalProperties, "password_identifier") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_login_flow_with_totp_method.go b/clients/client/go/model_update_login_flow_with_totp_method.go index 8cf61c5cd85..2b98e903c43 100644 --- a/clients/client/go/model_update_login_flow_with_totp_method.go +++ b/clients/client/go/model_update_login_flow_with_totp_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -27,6 +27,8 @@ type UpdateLoginFlowWithTotpMethod struct { Method string `json:"method"` // The TOTP code. TotpCode string `json:"totp_code"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,6 +133,38 @@ func (o *UpdateLoginFlowWithTotpMethod) SetTotpCode(v string) { o.TotpCode = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateLoginFlowWithTotpMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLoginFlowWithTotpMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateLoginFlowWithTotpMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateLoginFlowWithTotpMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateLoginFlowWithTotpMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -146,6 +180,9 @@ func (o UpdateLoginFlowWithTotpMethod) ToMap() (map[string]interface{}, error) { } toSerialize["method"] = o.Method toSerialize["totp_code"] = o.TotpCode + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -193,6 +230,7 @@ func (o *UpdateLoginFlowWithTotpMethod) UnmarshalJSON(bytes []byte) (err error) delete(additionalProperties, "csrf_token") delete(additionalProperties, "method") delete(additionalProperties, "totp_code") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_login_flow_with_web_authn_method.go b/clients/client/go/model_update_login_flow_with_web_authn_method.go index 4f3b389d632..9032c6b45bf 100644 --- a/clients/client/go/model_update_login_flow_with_web_authn_method.go +++ b/clients/client/go/model_update_login_flow_with_web_authn_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -27,6 +27,8 @@ type UpdateLoginFlowWithWebAuthnMethod struct { Identifier string `json:"identifier"` // Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. WebauthnLogin *string `json:"webauthn_login,omitempty"` AdditionalProperties map[string]interface{} @@ -133,6 +135,38 @@ func (o *UpdateLoginFlowWithWebAuthnMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateLoginFlowWithWebAuthnMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateLoginFlowWithWebAuthnMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateLoginFlowWithWebAuthnMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateLoginFlowWithWebAuthnMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetWebauthnLogin returns the WebauthnLogin field value if set, zero value otherwise. func (o *UpdateLoginFlowWithWebAuthnMethod) GetWebauthnLogin() string { if o == nil || IsNil(o.WebauthnLogin) { @@ -180,6 +214,9 @@ func (o UpdateLoginFlowWithWebAuthnMethod) ToMap() (map[string]interface{}, erro } toSerialize["identifier"] = o.Identifier toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } if !IsNil(o.WebauthnLogin) { toSerialize["webauthn_login"] = o.WebauthnLogin } @@ -230,6 +267,7 @@ func (o *UpdateLoginFlowWithWebAuthnMethod) UnmarshalJSON(bytes []byte) (err err delete(additionalProperties, "csrf_token") delete(additionalProperties, "identifier") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "webauthn_login") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_recovery_flow_body.go b/clients/client/go/model_update_recovery_flow_body.go index 043ac2edf3d..a55b21ddcbe 100644 --- a/clients/client/go/model_update_recovery_flow_body.go +++ b/clients/client/go/model_update_recovery_flow_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_recovery_flow_with_code_method.go b/clients/client/go/model_update_recovery_flow_with_code_method.go index 6c738039388..5c6705ef531 100644 --- a/clients/client/go/model_update_recovery_flow_with_code_method.go +++ b/clients/client/go/model_update_recovery_flow_with_code_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -29,6 +29,8 @@ type UpdateRecoveryFlowWithCodeMethod struct { Email *string `json:"email,omitempty"` // Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -172,6 +174,38 @@ func (o *UpdateRecoveryFlowWithCodeMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateRecoveryFlowWithCodeMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateRecoveryFlowWithCodeMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateRecoveryFlowWithCodeMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateRecoveryFlowWithCodeMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateRecoveryFlowWithCodeMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +226,9 @@ func (o UpdateRecoveryFlowWithCodeMethod) ToMap() (map[string]interface{}, error toSerialize["email"] = o.Email } toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,6 +276,7 @@ func (o *UpdateRecoveryFlowWithCodeMethod) UnmarshalJSON(bytes []byte) (err erro delete(additionalProperties, "csrf_token") delete(additionalProperties, "email") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_recovery_flow_with_link_method.go b/clients/client/go/model_update_recovery_flow_with_link_method.go index d01b72bbcfc..eb234c265e2 100644 --- a/clients/client/go/model_update_recovery_flow_with_link_method.go +++ b/clients/client/go/model_update_recovery_flow_with_link_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -27,6 +27,8 @@ type UpdateRecoveryFlowWithLinkMethod struct { Email string `json:"email"` // Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,6 +133,38 @@ func (o *UpdateRecoveryFlowWithLinkMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateRecoveryFlowWithLinkMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateRecoveryFlowWithLinkMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateRecoveryFlowWithLinkMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateRecoveryFlowWithLinkMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateRecoveryFlowWithLinkMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -146,6 +180,9 @@ func (o UpdateRecoveryFlowWithLinkMethod) ToMap() (map[string]interface{}, error } toSerialize["email"] = o.Email toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -193,6 +230,7 @@ func (o *UpdateRecoveryFlowWithLinkMethod) UnmarshalJSON(bytes []byte) (err erro delete(additionalProperties, "csrf_token") delete(additionalProperties, "email") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_registration_flow_body.go b/clients/client/go/model_update_registration_flow_body.go index b3c97acf6e6..965e6601968 100644 --- a/clients/client/go/model_update_registration_flow_body.go +++ b/clients/client/go/model_update_registration_flow_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_registration_flow_with_code_method.go b/clients/client/go/model_update_registration_flow_with_code_method.go index 2db49ed119b..95b82a51cce 100644 --- a/clients/client/go/model_update_registration_flow_with_code_method.go +++ b/clients/client/go/model_update_registration_flow_with_code_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_registration_flow_with_oidc_method.go b/clients/client/go/model_update_registration_flow_with_oidc_method.go index d105afe55c6..8b9190ecae2 100644 --- a/clients/client/go/model_update_registration_flow_with_oidc_method.go +++ b/clients/client/go/model_update_registration_flow_with_oidc_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_registration_flow_with_password_method.go b/clients/client/go/model_update_registration_flow_with_password_method.go index 22e4cb27ff4..0c799043b63 100644 --- a/clients/client/go/model_update_registration_flow_with_password_method.go +++ b/clients/client/go/model_update_registration_flow_with_password_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_registration_flow_with_web_authn_method.go b/clients/client/go/model_update_registration_flow_with_web_authn_method.go index 3acefb4b594..97e2ea895c6 100644 --- a/clients/client/go/model_update_registration_flow_with_web_authn_method.go +++ b/clients/client/go/model_update_registration_flow_with_web_authn_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_settings_flow_body.go b/clients/client/go/model_update_settings_flow_body.go index ced4e639aa1..eee9192f946 100644 --- a/clients/client/go/model_update_settings_flow_body.go +++ b/clients/client/go/model_update_settings_flow_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_settings_flow_with_lookup_method.go b/clients/client/go/model_update_settings_flow_with_lookup_method.go index 9e01b44c2c9..94fecdd4049 100644 --- a/clients/client/go/model_update_settings_flow_with_lookup_method.go +++ b/clients/client/go/model_update_settings_flow_with_lookup_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -33,6 +33,8 @@ type UpdateSettingsFlowWithLookupMethod struct { LookupSecretReveal *bool `json:"lookup_secret_reveal,omitempty"` // Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -240,6 +242,38 @@ func (o *UpdateSettingsFlowWithLookupMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateSettingsFlowWithLookupMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSettingsFlowWithLookupMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateSettingsFlowWithLookupMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateSettingsFlowWithLookupMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateSettingsFlowWithLookupMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -266,6 +300,9 @@ func (o UpdateSettingsFlowWithLookupMethod) ToMap() (map[string]interface{}, err toSerialize["lookup_secret_reveal"] = o.LookupSecretReveal } toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -315,6 +352,7 @@ func (o *UpdateSettingsFlowWithLookupMethod) UnmarshalJSON(bytes []byte) (err er delete(additionalProperties, "lookup_secret_regenerate") delete(additionalProperties, "lookup_secret_reveal") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_settings_flow_with_oidc_method.go b/clients/client/go/model_update_settings_flow_with_oidc_method.go index 28c0637a785..a8c0e2d3184 100644 --- a/clients/client/go/model_update_settings_flow_with_oidc_method.go +++ b/clients/client/go/model_update_settings_flow_with_oidc_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -29,6 +29,8 @@ type UpdateSettingsFlowWithOidcMethod struct { Method string `json:"method"` // The identity's traits in: body Traits map[string]interface{} `json:"traits,omitempty"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // Unlink this provider Either this or `link` must be set. type: string in: body Unlink *string `json:"unlink,omitempty"` // UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. @@ -176,6 +178,38 @@ func (o *UpdateSettingsFlowWithOidcMethod) SetTraits(v map[string]interface{}) { o.Traits = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateSettingsFlowWithOidcMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSettingsFlowWithOidcMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateSettingsFlowWithOidcMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateSettingsFlowWithOidcMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetUnlink returns the Unlink field value if set, zero value otherwise. func (o *UpdateSettingsFlowWithOidcMethod) GetUnlink() string { if o == nil || IsNil(o.Unlink) { @@ -260,6 +294,9 @@ func (o UpdateSettingsFlowWithOidcMethod) ToMap() (map[string]interface{}, error if !IsNil(o.Traits) { toSerialize["traits"] = o.Traits } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } if !IsNil(o.Unlink) { toSerialize["unlink"] = o.Unlink } @@ -313,6 +350,7 @@ func (o *UpdateSettingsFlowWithOidcMethod) UnmarshalJSON(bytes []byte) (err erro delete(additionalProperties, "link") delete(additionalProperties, "method") delete(additionalProperties, "traits") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "unlink") delete(additionalProperties, "upstream_parameters") o.AdditionalProperties = additionalProperties diff --git a/clients/client/go/model_update_settings_flow_with_password_method.go b/clients/client/go/model_update_settings_flow_with_password_method.go index 2eb182449da..45887dccf85 100644 --- a/clients/client/go/model_update_settings_flow_with_password_method.go +++ b/clients/client/go/model_update_settings_flow_with_password_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -27,6 +27,8 @@ type UpdateSettingsFlowWithPasswordMethod struct { Method string `json:"method"` // Password is the updated password Password string `json:"password"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,6 +133,38 @@ func (o *UpdateSettingsFlowWithPasswordMethod) SetPassword(v string) { o.Password = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateSettingsFlowWithPasswordMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSettingsFlowWithPasswordMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateSettingsFlowWithPasswordMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateSettingsFlowWithPasswordMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateSettingsFlowWithPasswordMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -146,6 +180,9 @@ func (o UpdateSettingsFlowWithPasswordMethod) ToMap() (map[string]interface{}, e } toSerialize["method"] = o.Method toSerialize["password"] = o.Password + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -193,6 +230,7 @@ func (o *UpdateSettingsFlowWithPasswordMethod) UnmarshalJSON(bytes []byte) (err delete(additionalProperties, "csrf_token") delete(additionalProperties, "method") delete(additionalProperties, "password") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_settings_flow_with_profile_method.go b/clients/client/go/model_update_settings_flow_with_profile_method.go index 9a181e7849a..eb0a7a6d4cd 100644 --- a/clients/client/go/model_update_settings_flow_with_profile_method.go +++ b/clients/client/go/model_update_settings_flow_with_profile_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -27,6 +27,8 @@ type UpdateSettingsFlowWithProfileMethod struct { Method string `json:"method"` // Traits The identity's traits. Traits map[string]interface{} `json:"traits"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,6 +133,38 @@ func (o *UpdateSettingsFlowWithProfileMethod) SetTraits(v map[string]interface{} o.Traits = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateSettingsFlowWithProfileMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSettingsFlowWithProfileMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateSettingsFlowWithProfileMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateSettingsFlowWithProfileMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateSettingsFlowWithProfileMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -146,6 +180,9 @@ func (o UpdateSettingsFlowWithProfileMethod) ToMap() (map[string]interface{}, er } toSerialize["method"] = o.Method toSerialize["traits"] = o.Traits + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -193,6 +230,7 @@ func (o *UpdateSettingsFlowWithProfileMethod) UnmarshalJSON(bytes []byte) (err e delete(additionalProperties, "csrf_token") delete(additionalProperties, "method") delete(additionalProperties, "traits") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_settings_flow_with_totp_method.go b/clients/client/go/model_update_settings_flow_with_totp_method.go index 007ab9770f7..b002672ba9e 100644 --- a/clients/client/go/model_update_settings_flow_with_totp_method.go +++ b/clients/client/go/model_update_settings_flow_with_totp_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -29,6 +29,8 @@ type UpdateSettingsFlowWithTotpMethod struct { TotpCode *string `json:"totp_code,omitempty"` // UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. TotpUnlink *bool `json:"totp_unlink,omitempty"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -172,6 +174,38 @@ func (o *UpdateSettingsFlowWithTotpMethod) SetTotpUnlink(v bool) { o.TotpUnlink = &v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateSettingsFlowWithTotpMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSettingsFlowWithTotpMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateSettingsFlowWithTotpMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateSettingsFlowWithTotpMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateSettingsFlowWithTotpMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +226,9 @@ func (o UpdateSettingsFlowWithTotpMethod) ToMap() (map[string]interface{}, error if !IsNil(o.TotpUnlink) { toSerialize["totp_unlink"] = o.TotpUnlink } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,6 +276,7 @@ func (o *UpdateSettingsFlowWithTotpMethod) UnmarshalJSON(bytes []byte) (err erro delete(additionalProperties, "method") delete(additionalProperties, "totp_code") delete(additionalProperties, "totp_unlink") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_settings_flow_with_web_authn_method.go b/clients/client/go/model_update_settings_flow_with_web_authn_method.go index 64d7f633f7d..12b9c51919b 100644 --- a/clients/client/go/model_update_settings_flow_with_web_authn_method.go +++ b/clients/client/go/model_update_settings_flow_with_web_authn_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -25,6 +25,8 @@ type UpdateSettingsFlowWithWebAuthnMethod struct { CsrfToken *string `json:"csrf_token,omitempty"` // Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. WebauthnRegister *string `json:"webauthn_register,omitempty"` // Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. @@ -110,6 +112,38 @@ func (o *UpdateSettingsFlowWithWebAuthnMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateSettingsFlowWithWebAuthnMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateSettingsFlowWithWebAuthnMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateSettingsFlowWithWebAuthnMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateSettingsFlowWithWebAuthnMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetWebauthnRegister returns the WebauthnRegister field value if set, zero value otherwise. func (o *UpdateSettingsFlowWithWebAuthnMethod) GetWebauthnRegister() string { if o == nil || IsNil(o.WebauthnRegister) { @@ -220,6 +254,9 @@ func (o UpdateSettingsFlowWithWebAuthnMethod) ToMap() (map[string]interface{}, e toSerialize["csrf_token"] = o.CsrfToken } toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } if !IsNil(o.WebauthnRegister) { toSerialize["webauthn_register"] = o.WebauthnRegister } @@ -274,6 +311,7 @@ func (o *UpdateSettingsFlowWithWebAuthnMethod) UnmarshalJSON(bytes []byte) (err if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "csrf_token") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "webauthn_register") delete(additionalProperties, "webauthn_register_displayname") delete(additionalProperties, "webauthn_remove") diff --git a/clients/client/go/model_update_subscription_body.go b/clients/client/go/model_update_subscription_body.go index d2e30b590d1..9b646595133 100644 --- a/clients/client/go/model_update_subscription_body.go +++ b/clients/client/go/model_update_subscription_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -19,7 +19,7 @@ import ( // checks if the UpdateSubscriptionBody type satisfies the MappedNullable interface at compile time var _ MappedNullable = &UpdateSubscriptionBody{} -// UpdateSubscriptionBody Update Subscription Request Body +// UpdateSubscriptionBody struct for UpdateSubscriptionBody type UpdateSubscriptionBody struct { // monthly Monthly yearly Yearly Interval string `json:"interval"` diff --git a/clients/client/go/model_update_verification_flow_body.go b/clients/client/go/model_update_verification_flow_body.go index 1f458fed208..169df896a5a 100644 --- a/clients/client/go/model_update_verification_flow_body.go +++ b/clients/client/go/model_update_verification_flow_body.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_update_verification_flow_with_code_method.go b/clients/client/go/model_update_verification_flow_with_code_method.go index f396b81a432..ffdff682924 100644 --- a/clients/client/go/model_update_verification_flow_with_code_method.go +++ b/clients/client/go/model_update_verification_flow_with_code_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -29,6 +29,8 @@ type UpdateVerificationFlowWithCodeMethod struct { Email *string `json:"email,omitempty"` // Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -172,6 +174,38 @@ func (o *UpdateVerificationFlowWithCodeMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateVerificationFlowWithCodeMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVerificationFlowWithCodeMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateVerificationFlowWithCodeMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateVerificationFlowWithCodeMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateVerificationFlowWithCodeMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -192,6 +226,9 @@ func (o UpdateVerificationFlowWithCodeMethod) ToMap() (map[string]interface{}, e toSerialize["email"] = o.Email } toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,6 +276,7 @@ func (o *UpdateVerificationFlowWithCodeMethod) UnmarshalJSON(bytes []byte) (err delete(additionalProperties, "csrf_token") delete(additionalProperties, "email") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_verification_flow_with_link_method.go b/clients/client/go/model_update_verification_flow_with_link_method.go index 7582630ee55..e59a0933e7b 100644 --- a/clients/client/go/model_update_verification_flow_with_link_method.go +++ b/clients/client/go/model_update_verification_flow_with_link_method.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -27,6 +27,8 @@ type UpdateVerificationFlowWithLinkMethod struct { Email string `json:"email"` // Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode Method string `json:"method"` + // Transient data to pass along to any webhooks + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,6 +133,38 @@ func (o *UpdateVerificationFlowWithLinkMethod) SetMethod(v string) { o.Method = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *UpdateVerificationFlowWithLinkMethod) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UpdateVerificationFlowWithLinkMethod) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *UpdateVerificationFlowWithLinkMethod) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *UpdateVerificationFlowWithLinkMethod) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + func (o UpdateVerificationFlowWithLinkMethod) MarshalJSON() ([]byte, error) { toSerialize,err := o.ToMap() if err != nil { @@ -146,6 +180,9 @@ func (o UpdateVerificationFlowWithLinkMethod) ToMap() (map[string]interface{}, e } toSerialize["email"] = o.Email toSerialize["method"] = o.Method + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -193,6 +230,7 @@ func (o *UpdateVerificationFlowWithLinkMethod) UnmarshalJSON(bytes []byte) (err delete(additionalProperties, "csrf_token") delete(additionalProperties, "email") delete(additionalProperties, "method") + delete(additionalProperties, "transient_payload") o.AdditionalProperties = additionalProperties } diff --git a/clients/client/go/model_update_workspace_payload.go b/clients/client/go/model_update_workspace_payload.go new file mode 100644 index 00000000000..151ad9b7de8 --- /dev/null +++ b/clients/client/go/model_update_workspace_payload.go @@ -0,0 +1,170 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "fmt" +) + +// checks if the UpdateWorkspacePayload type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &UpdateWorkspacePayload{} + +// UpdateWorkspacePayload struct for UpdateWorkspacePayload +type UpdateWorkspacePayload struct { + // The name of the workspace. + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _UpdateWorkspacePayload UpdateWorkspacePayload + +// NewUpdateWorkspacePayload instantiates a new UpdateWorkspacePayload object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewUpdateWorkspacePayload(name string) *UpdateWorkspacePayload { + this := UpdateWorkspacePayload{} + this.Name = name + return &this +} + +// NewUpdateWorkspacePayloadWithDefaults instantiates a new UpdateWorkspacePayload object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewUpdateWorkspacePayloadWithDefaults() *UpdateWorkspacePayload { + this := UpdateWorkspacePayload{} + return &this +} + +// GetName returns the Name field value +func (o *UpdateWorkspacePayload) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *UpdateWorkspacePayload) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *UpdateWorkspacePayload) SetName(v string) { + o.Name = v +} + +func (o UpdateWorkspacePayload) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o UpdateWorkspacePayload) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *UpdateWorkspacePayload) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varUpdateWorkspacePayload := _UpdateWorkspacePayload{} + + err = json.Unmarshal(bytes, &varUpdateWorkspacePayload) + + if err != nil { + return err + } + + *o = UpdateWorkspacePayload(varUpdateWorkspacePayload) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableUpdateWorkspacePayload struct { + value *UpdateWorkspacePayload + isSet bool +} + +func (v NullableUpdateWorkspacePayload) Get() *UpdateWorkspacePayload { + return v.value +} + +func (v *NullableUpdateWorkspacePayload) Set(val *UpdateWorkspacePayload) { + v.value = val + v.isSet = true +} + +func (v NullableUpdateWorkspacePayload) IsSet() bool { + return v.isSet +} + +func (v *NullableUpdateWorkspacePayload) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableUpdateWorkspacePayload(val *UpdateWorkspacePayload) *NullableUpdateWorkspacePayload { + return &NullableUpdateWorkspacePayload{value: val, isSet: true} +} + +func (v NullableUpdateWorkspacePayload) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableUpdateWorkspacePayload) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/model_usage.go b/clients/client/go/model_usage.go index 9678a3c5d2f..a4c43551907 100644 --- a/clients/client/go/model_usage.go +++ b/clients/client/go/model_usage.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_verifiable_credential_priming_response.go b/clients/client/go/model_verifiable_credential_priming_response.go index c86fb2ce23b..302c5fc3716 100644 --- a/clients/client/go/model_verifiable_credential_priming_response.go +++ b/clients/client/go/model_verifiable_credential_priming_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_verifiable_credential_proof.go b/clients/client/go/model_verifiable_credential_proof.go index 7839bafc269..8c88596e96f 100644 --- a/clients/client/go/model_verifiable_credential_proof.go +++ b/clients/client/go/model_verifiable_credential_proof.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_verifiable_credential_response.go b/clients/client/go/model_verifiable_credential_response.go index b80cd350b69..d1d283795b3 100644 --- a/clients/client/go/model_verifiable_credential_response.go +++ b/clients/client/go/model_verifiable_credential_response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_verifiable_identity_address.go b/clients/client/go/model_verifiable_identity_address.go index 3222182f15d..eac8511862b 100644 --- a/clients/client/go/model_verifiable_identity_address.go +++ b/clients/client/go/model_verifiable_identity_address.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_verification_flow.go b/clients/client/go/model_verification_flow.go index 4e892e4cb51..93debf97871 100644 --- a/clients/client/go/model_verification_flow.go +++ b/clients/client/go/model_verification_flow.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ @@ -36,6 +36,8 @@ type VerificationFlow struct { ReturnTo *string `json:"return_to,omitempty"` // State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. State interface{} `json:"state"` + // TransientPayload is used to pass data from the verification flow to hooks and email templates + TransientPayload map[string]interface{} `json:"transient_payload,omitempty"` // The flow type can either be `api` or `browser`. Type string `json:"type"` Ui UiContainer `json:"ui"` @@ -275,6 +277,38 @@ func (o *VerificationFlow) SetState(v interface{}) { o.State = v } +// GetTransientPayload returns the TransientPayload field value if set, zero value otherwise. +func (o *VerificationFlow) GetTransientPayload() map[string]interface{} { + if o == nil || IsNil(o.TransientPayload) { + var ret map[string]interface{} + return ret + } + return o.TransientPayload +} + +// GetTransientPayloadOk returns a tuple with the TransientPayload field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VerificationFlow) GetTransientPayloadOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.TransientPayload) { + return map[string]interface{}{}, false + } + return o.TransientPayload, true +} + +// HasTransientPayload returns a boolean if a field has been set. +func (o *VerificationFlow) HasTransientPayload() bool { + if o != nil && !IsNil(o.TransientPayload) { + return true + } + + return false +} + +// SetTransientPayload gets a reference to the given map[string]interface{} and assigns it to the TransientPayload field. +func (o *VerificationFlow) SetTransientPayload(v map[string]interface{}) { + o.TransientPayload = v +} + // GetType returns the Type field value func (o *VerificationFlow) GetType() string { if o == nil { @@ -352,6 +386,9 @@ func (o VerificationFlow) ToMap() (map[string]interface{}, error) { if o.State != nil { toSerialize["state"] = o.State } + if !IsNil(o.TransientPayload) { + toSerialize["transient_payload"] = o.TransientPayload + } toSerialize["type"] = o.Type toSerialize["ui"] = o.Ui @@ -407,6 +444,7 @@ func (o *VerificationFlow) UnmarshalJSON(bytes []byte) (err error) { delete(additionalProperties, "request_url") delete(additionalProperties, "return_to") delete(additionalProperties, "state") + delete(additionalProperties, "transient_payload") delete(additionalProperties, "type") delete(additionalProperties, "ui") o.AdditionalProperties = additionalProperties diff --git a/clients/client/go/model_verification_flow_state.go b/clients/client/go/model_verification_flow_state.go index 6f67e5afe8e..3f0173f07a0 100644 --- a/clients/client/go/model_verification_flow_state.go +++ b/clients/client/go/model_verification_flow_state.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_version.go b/clients/client/go/model_version.go index bb21cc4ff1a..7e807b9a088 100644 --- a/clients/client/go/model_version.go +++ b/clients/client/go/model_version.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_warning.go b/clients/client/go/model_warning.go index 273178b4bd3..5537f52eaba 100644 --- a/clients/client/go/model_warning.go +++ b/clients/client/go/model_warning.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_workspace.go b/clients/client/go/model_workspace.go index 13394011b63..4dff5303035 100644 --- a/clients/client/go/model_workspace.go +++ b/clients/client/go/model_workspace.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/model_workspace_meta.go b/clients/client/go/model_workspace_meta.go new file mode 100644 index 00000000000..f5fdcfbf29b --- /dev/null +++ b/clients/client/go/model_workspace_meta.go @@ -0,0 +1,351 @@ +/* +Ory APIs + +Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +API version: v1.8.1 +Contact: support@ory.sh +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package client + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the WorkspaceMeta type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WorkspaceMeta{} + +// WorkspaceMeta struct for WorkspaceMeta +type WorkspaceMeta struct { + CreatedAt time.Time `json:"created_at"` + Id string `json:"id"` + Name string `json:"name"` + SubscriptionId NullableString `json:"subscription_id,omitempty"` + SubscriptionPlan NullableString `json:"subscription_plan,omitempty"` + UpdatedAt time.Time `json:"updated_at"` + AdditionalProperties map[string]interface{} +} + +type _WorkspaceMeta WorkspaceMeta + +// NewWorkspaceMeta instantiates a new WorkspaceMeta object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWorkspaceMeta(createdAt time.Time, id string, name string, updatedAt time.Time) *WorkspaceMeta { + this := WorkspaceMeta{} + this.CreatedAt = createdAt + this.Id = id + this.Name = name + this.UpdatedAt = updatedAt + return &this +} + +// NewWorkspaceMetaWithDefaults instantiates a new WorkspaceMeta object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWorkspaceMetaWithDefaults() *WorkspaceMeta { + this := WorkspaceMeta{} + return &this +} + +// GetCreatedAt returns the CreatedAt field value +func (o *WorkspaceMeta) GetCreatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.CreatedAt +} + +// GetCreatedAtOk returns a tuple with the CreatedAt field value +// and a boolean to check if the value has been set. +func (o *WorkspaceMeta) GetCreatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.CreatedAt, true +} + +// SetCreatedAt sets field value +func (o *WorkspaceMeta) SetCreatedAt(v time.Time) { + o.CreatedAt = v +} + +// GetId returns the Id field value +func (o *WorkspaceMeta) GetId() string { + if o == nil { + var ret string + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *WorkspaceMeta) GetIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *WorkspaceMeta) SetId(v string) { + o.Id = v +} + +// GetName returns the Name field value +func (o *WorkspaceMeta) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *WorkspaceMeta) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *WorkspaceMeta) SetName(v string) { + o.Name = v +} + +// GetSubscriptionId returns the SubscriptionId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkspaceMeta) GetSubscriptionId() string { + if o == nil || IsNil(o.SubscriptionId.Get()) { + var ret string + return ret + } + return *o.SubscriptionId.Get() +} + +// GetSubscriptionIdOk returns a tuple with the SubscriptionId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkspaceMeta) GetSubscriptionIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubscriptionId.Get(), o.SubscriptionId.IsSet() +} + +// HasSubscriptionId returns a boolean if a field has been set. +func (o *WorkspaceMeta) HasSubscriptionId() bool { + if o != nil && o.SubscriptionId.IsSet() { + return true + } + + return false +} + +// SetSubscriptionId gets a reference to the given NullableString and assigns it to the SubscriptionId field. +func (o *WorkspaceMeta) SetSubscriptionId(v string) { + o.SubscriptionId.Set(&v) +} +// SetSubscriptionIdNil sets the value for SubscriptionId to be an explicit nil +func (o *WorkspaceMeta) SetSubscriptionIdNil() { + o.SubscriptionId.Set(nil) +} + +// UnsetSubscriptionId ensures that no value is present for SubscriptionId, not even an explicit nil +func (o *WorkspaceMeta) UnsetSubscriptionId() { + o.SubscriptionId.Unset() +} + +// GetSubscriptionPlan returns the SubscriptionPlan field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WorkspaceMeta) GetSubscriptionPlan() string { + if o == nil || IsNil(o.SubscriptionPlan.Get()) { + var ret string + return ret + } + return *o.SubscriptionPlan.Get() +} + +// GetSubscriptionPlanOk returns a tuple with the SubscriptionPlan field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WorkspaceMeta) GetSubscriptionPlanOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.SubscriptionPlan.Get(), o.SubscriptionPlan.IsSet() +} + +// HasSubscriptionPlan returns a boolean if a field has been set. +func (o *WorkspaceMeta) HasSubscriptionPlan() bool { + if o != nil && o.SubscriptionPlan.IsSet() { + return true + } + + return false +} + +// SetSubscriptionPlan gets a reference to the given NullableString and assigns it to the SubscriptionPlan field. +func (o *WorkspaceMeta) SetSubscriptionPlan(v string) { + o.SubscriptionPlan.Set(&v) +} +// SetSubscriptionPlanNil sets the value for SubscriptionPlan to be an explicit nil +func (o *WorkspaceMeta) SetSubscriptionPlanNil() { + o.SubscriptionPlan.Set(nil) +} + +// UnsetSubscriptionPlan ensures that no value is present for SubscriptionPlan, not even an explicit nil +func (o *WorkspaceMeta) UnsetSubscriptionPlan() { + o.SubscriptionPlan.Unset() +} + +// GetUpdatedAt returns the UpdatedAt field value +func (o *WorkspaceMeta) GetUpdatedAt() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.UpdatedAt +} + +// GetUpdatedAtOk returns a tuple with the UpdatedAt field value +// and a boolean to check if the value has been set. +func (o *WorkspaceMeta) GetUpdatedAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.UpdatedAt, true +} + +// SetUpdatedAt sets field value +func (o *WorkspaceMeta) SetUpdatedAt(v time.Time) { + o.UpdatedAt = v +} + +func (o WorkspaceMeta) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WorkspaceMeta) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["created_at"] = o.CreatedAt + toSerialize["id"] = o.Id + toSerialize["name"] = o.Name + if o.SubscriptionId.IsSet() { + toSerialize["subscription_id"] = o.SubscriptionId.Get() + } + if o.SubscriptionPlan.IsSet() { + toSerialize["subscription_plan"] = o.SubscriptionPlan.Get() + } + toSerialize["updated_at"] = o.UpdatedAt + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WorkspaceMeta) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "created_at", + "id", + "name", + "updated_at", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varWorkspaceMeta := _WorkspaceMeta{} + + err = json.Unmarshal(bytes, &varWorkspaceMeta) + + if err != nil { + return err + } + + *o = WorkspaceMeta(varWorkspaceMeta) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(bytes, &additionalProperties); err == nil { + delete(additionalProperties, "created_at") + delete(additionalProperties, "id") + delete(additionalProperties, "name") + delete(additionalProperties, "subscription_id") + delete(additionalProperties, "subscription_plan") + delete(additionalProperties, "updated_at") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWorkspaceMeta struct { + value *WorkspaceMeta + isSet bool +} + +func (v NullableWorkspaceMeta) Get() *WorkspaceMeta { + return v.value +} + +func (v *NullableWorkspaceMeta) Set(val *WorkspaceMeta) { + v.value = val + v.isSet = true +} + +func (v NullableWorkspaceMeta) IsSet() bool { + return v.isSet +} + +func (v *NullableWorkspaceMeta) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWorkspaceMeta(val *WorkspaceMeta) *NullableWorkspaceMeta { + return &NullableWorkspaceMeta{value: val, isSet: true} +} + +func (v NullableWorkspaceMeta) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWorkspaceMeta) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/clients/client/go/response.go b/clients/client/go/response.go index 78de8fb778d..b2b2302b01a 100644 --- a/clients/client/go/response.go +++ b/clients/client/go/response.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/go/utils.go b/clients/client/go/utils.go index 5fa5fd9981a..b2dcb55dd93 100644 --- a/clients/client/go/utils.go +++ b/clients/client/go/utils.go @@ -3,7 +3,7 @@ Ory APIs Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -API version: v1.5.1 +API version: v1.8.1 Contact: support@ory.sh */ diff --git a/clients/client/java/.openapi-generator/FILES b/clients/client/java/.openapi-generator/FILES index 560a82c5f32..16dcbed4df1 100644 --- a/clients/client/java/.openapi-generator/FILES +++ b/clients/client/java/.openapi-generator/FILES @@ -44,8 +44,11 @@ docs/CreateRecoveryCodeForIdentityBody.md docs/CreateRecoveryLinkForIdentityBody.md docs/CreateRelationshipBody.md docs/CreateSubscriptionBody.md +docs/CreateSubscriptionCommon.md docs/CreateVerifiableCredentialRequestBody.md docs/CreateWorkspaceMemberInviteBody.md +docs/CreateWorkspacePayload.md +docs/CreateWorkspaceSubscriptionBody.md docs/CredentialSupportedDraft00.md docs/CustomDomain.md docs/DeleteMySessionsCount.md @@ -83,12 +86,10 @@ 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/IdentitySchemaPreset.md -docs/IdentityState.md docs/IdentityWithCredentials.md docs/IdentityWithCredentialsOidc.md docs/IdentityWithCredentialsOidcConfig.md @@ -99,7 +100,6 @@ docs/InternalGetProjectBrandingBody.md docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md docs/InternalIsOwnerForProjectBySlugBody.md docs/InternalIsOwnerForProjectBySlugResponse.md -docs/InternalProvisionMockSubscription.md docs/IntrospectedOAuth2Token.md docs/IsOwnerForProjectBySlug.md docs/IsReady200Response.md @@ -112,6 +112,7 @@ docs/KetoNamespace.md docs/ListEventStreams.md docs/ListMyWorkspacesResponse.md docs/ListOrganizationsResponse.md +docs/ListWorkspaceProjectsResponse.md docs/LoginFlow.md docs/LoginFlowState.md docs/LogoutFlow.md @@ -122,6 +123,7 @@ docs/Message.md docs/MessageDispatch.md docs/MetadataApi.md docs/MetricsDatapoint.md +docs/MigrationOptions.md docs/Namespace.md docs/NeedsPrivilegedSessionError.md docs/NormalizedProject.md @@ -153,6 +155,7 @@ docs/ParseError.md docs/PatchIdentitiesBody.md docs/PerformNativeLogoutBody.md docs/PermissionApi.md +docs/PermissionsOnWorkpaceResponse.md docs/Plan.md docs/PlanDetails.md docs/PostCheckPermissionBody.md @@ -166,6 +169,7 @@ docs/ProjectBrandingTheme.md docs/ProjectCors.md docs/ProjectEventsDatapoint.md docs/ProjectHost.md +docs/ProjectMember.md docs/ProjectMetadata.md docs/ProjectServiceIdentity.md docs/ProjectServiceOAuth2.md @@ -201,7 +205,6 @@ docs/SetProjectBrandingThemeBody.md docs/SettingsFlow.md docs/SettingsFlowState.md docs/SourcePosition.md -docs/StripeCustomer.md docs/SubjectSet.md docs/Subscription.md docs/SuccessfulCodeExchangeResponse.md @@ -252,6 +255,7 @@ docs/UpdateSubscriptionBody.md docs/UpdateVerificationFlowBody.md docs/UpdateVerificationFlowWithCodeMethod.md docs/UpdateVerificationFlowWithLinkMethod.md +docs/UpdateWorkspacePayload.md docs/Usage.md docs/VerifiableCredentialPrimingResponse.md docs/VerifiableCredentialProof.md @@ -263,6 +267,7 @@ docs/Version.md docs/Warning.md docs/WellknownApi.md docs/Workspace.md +docs/WorkspaceMeta.md git_push.sh gradle.properties gradle/wrapper/gradle-wrapper.jar @@ -343,8 +348,11 @@ src/main/java/sh/ory/model/CreateRecoveryCodeForIdentityBody.java src/main/java/sh/ory/model/CreateRecoveryLinkForIdentityBody.java src/main/java/sh/ory/model/CreateRelationshipBody.java src/main/java/sh/ory/model/CreateSubscriptionBody.java +src/main/java/sh/ory/model/CreateSubscriptionCommon.java src/main/java/sh/ory/model/CreateVerifiableCredentialRequestBody.java src/main/java/sh/ory/model/CreateWorkspaceMemberInviteBody.java +src/main/java/sh/ory/model/CreateWorkspacePayload.java +src/main/java/sh/ory/model/CreateWorkspaceSubscriptionBody.java src/main/java/sh/ory/model/CredentialSupportedDraft00.java src/main/java/sh/ory/model/CustomDomain.java src/main/java/sh/ory/model/DeleteMySessionsCount.java @@ -379,12 +387,10 @@ src/main/java/sh/ory/model/IdentityCredentialsCode.java src/main/java/sh/ory/model/IdentityCredentialsOidc.java src/main/java/sh/ory/model/IdentityCredentialsOidcProvider.java src/main/java/sh/ory/model/IdentityCredentialsPassword.java -src/main/java/sh/ory/model/IdentityCredentialsType.java src/main/java/sh/ory/model/IdentityPatch.java src/main/java/sh/ory/model/IdentityPatchResponse.java src/main/java/sh/ory/model/IdentitySchemaContainer.java src/main/java/sh/ory/model/IdentitySchemaPreset.java -src/main/java/sh/ory/model/IdentityState.java src/main/java/sh/ory/model/IdentityWithCredentials.java src/main/java/sh/ory/model/IdentityWithCredentialsOidc.java src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfig.java @@ -395,7 +401,6 @@ src/main/java/sh/ory/model/InternalGetProjectBrandingBody.java src/main/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBody.java src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugBody.java src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponse.java -src/main/java/sh/ory/model/InternalProvisionMockSubscription.java src/main/java/sh/ory/model/IntrospectedOAuth2Token.java src/main/java/sh/ory/model/IsOwnerForProjectBySlug.java src/main/java/sh/ory/model/IsReady200Response.java @@ -407,6 +412,7 @@ src/main/java/sh/ory/model/KetoNamespace.java src/main/java/sh/ory/model/ListEventStreams.java src/main/java/sh/ory/model/ListMyWorkspacesResponse.java src/main/java/sh/ory/model/ListOrganizationsResponse.java +src/main/java/sh/ory/model/ListWorkspaceProjectsResponse.java src/main/java/sh/ory/model/LoginFlow.java src/main/java/sh/ory/model/LoginFlowState.java src/main/java/sh/ory/model/LogoutFlow.java @@ -416,6 +422,7 @@ src/main/java/sh/ory/model/MemberInvite.java src/main/java/sh/ory/model/Message.java src/main/java/sh/ory/model/MessageDispatch.java src/main/java/sh/ory/model/MetricsDatapoint.java +src/main/java/sh/ory/model/MigrationOptions.java src/main/java/sh/ory/model/Namespace.java src/main/java/sh/ory/model/NeedsPrivilegedSessionError.java src/main/java/sh/ory/model/NormalizedProject.java @@ -444,6 +451,7 @@ src/main/java/sh/ory/model/PaginationHeaders.java src/main/java/sh/ory/model/ParseError.java src/main/java/sh/ory/model/PatchIdentitiesBody.java src/main/java/sh/ory/model/PerformNativeLogoutBody.java +src/main/java/sh/ory/model/PermissionsOnWorkpaceResponse.java src/main/java/sh/ory/model/Plan.java src/main/java/sh/ory/model/PlanDetails.java src/main/java/sh/ory/model/PostCheckPermissionBody.java @@ -456,6 +464,7 @@ src/main/java/sh/ory/model/ProjectBrandingTheme.java src/main/java/sh/ory/model/ProjectCors.java src/main/java/sh/ory/model/ProjectEventsDatapoint.java src/main/java/sh/ory/model/ProjectHost.java +src/main/java/sh/ory/model/ProjectMember.java src/main/java/sh/ory/model/ProjectMetadata.java src/main/java/sh/ory/model/ProjectServiceIdentity.java src/main/java/sh/ory/model/ProjectServiceOAuth2.java @@ -490,7 +499,6 @@ src/main/java/sh/ory/model/SetProjectBrandingThemeBody.java src/main/java/sh/ory/model/SettingsFlow.java src/main/java/sh/ory/model/SettingsFlowState.java src/main/java/sh/ory/model/SourcePosition.java -src/main/java/sh/ory/model/StripeCustomer.java src/main/java/sh/ory/model/SubjectSet.java src/main/java/sh/ory/model/Subscription.java src/main/java/sh/ory/model/SuccessfulCodeExchangeResponse.java @@ -541,6 +549,7 @@ src/main/java/sh/ory/model/UpdateSubscriptionBody.java src/main/java/sh/ory/model/UpdateVerificationFlowBody.java src/main/java/sh/ory/model/UpdateVerificationFlowWithCodeMethod.java src/main/java/sh/ory/model/UpdateVerificationFlowWithLinkMethod.java +src/main/java/sh/ory/model/UpdateWorkspacePayload.java src/main/java/sh/ory/model/Usage.java src/main/java/sh/ory/model/VerifiableCredentialPrimingResponse.java src/main/java/sh/ory/model/VerifiableCredentialProof.java @@ -551,6 +560,7 @@ src/main/java/sh/ory/model/VerificationFlowState.java src/main/java/sh/ory/model/Version.java src/main/java/sh/ory/model/Warning.java src/main/java/sh/ory/model/Workspace.java +src/main/java/sh/ory/model/WorkspaceMeta.java src/test/java/sh/ory/api/CourierApiTest.java src/test/java/sh/ory/api/EventsApiTest.java src/test/java/sh/ory/api/FrontendApiTest.java @@ -600,8 +610,11 @@ src/test/java/sh/ory/model/CreateRecoveryCodeForIdentityBodyTest.java src/test/java/sh/ory/model/CreateRecoveryLinkForIdentityBodyTest.java src/test/java/sh/ory/model/CreateRelationshipBodyTest.java src/test/java/sh/ory/model/CreateSubscriptionBodyTest.java +src/test/java/sh/ory/model/CreateSubscriptionCommonTest.java src/test/java/sh/ory/model/CreateVerifiableCredentialRequestBodyTest.java src/test/java/sh/ory/model/CreateWorkspaceMemberInviteBodyTest.java +src/test/java/sh/ory/model/CreateWorkspacePayloadTest.java +src/test/java/sh/ory/model/CreateWorkspaceSubscriptionBodyTest.java src/test/java/sh/ory/model/CredentialSupportedDraft00Test.java src/test/java/sh/ory/model/CustomDomainTest.java src/test/java/sh/ory/model/DeleteMySessionsCountTest.java @@ -635,12 +648,10 @@ src/test/java/sh/ory/model/IdentityCredentialsOidcProviderTest.java src/test/java/sh/ory/model/IdentityCredentialsOidcTest.java src/test/java/sh/ory/model/IdentityCredentialsPasswordTest.java src/test/java/sh/ory/model/IdentityCredentialsTest.java -src/test/java/sh/ory/model/IdentityCredentialsTypeTest.java src/test/java/sh/ory/model/IdentityPatchResponseTest.java src/test/java/sh/ory/model/IdentityPatchTest.java src/test/java/sh/ory/model/IdentitySchemaContainerTest.java src/test/java/sh/ory/model/IdentitySchemaPresetTest.java -src/test/java/sh/ory/model/IdentityStateTest.java src/test/java/sh/ory/model/IdentityTest.java src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigProviderTest.java src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigTest.java @@ -652,7 +663,6 @@ src/test/java/sh/ory/model/InternalGetProjectBrandingBodyTest.java src/test/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.java src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugBodyTest.java src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponseTest.java -src/test/java/sh/ory/model/InternalProvisionMockSubscriptionTest.java src/test/java/sh/ory/model/IntrospectedOAuth2TokenTest.java src/test/java/sh/ory/model/IsOwnerForProjectBySlugTest.java src/test/java/sh/ory/model/IsReady200ResponseTest.java @@ -664,6 +674,7 @@ src/test/java/sh/ory/model/KetoNamespaceTest.java src/test/java/sh/ory/model/ListEventStreamsTest.java src/test/java/sh/ory/model/ListMyWorkspacesResponseTest.java src/test/java/sh/ory/model/ListOrganizationsResponseTest.java +src/test/java/sh/ory/model/ListWorkspaceProjectsResponseTest.java src/test/java/sh/ory/model/LoginFlowStateTest.java src/test/java/sh/ory/model/LoginFlowTest.java src/test/java/sh/ory/model/LogoutFlowTest.java @@ -673,6 +684,7 @@ src/test/java/sh/ory/model/MemberInviteTest.java src/test/java/sh/ory/model/MessageDispatchTest.java src/test/java/sh/ory/model/MessageTest.java src/test/java/sh/ory/model/MetricsDatapointTest.java +src/test/java/sh/ory/model/MigrationOptionsTest.java src/test/java/sh/ory/model/NamespaceTest.java src/test/java/sh/ory/model/NeedsPrivilegedSessionErrorTest.java src/test/java/sh/ory/model/NormalizedProjectRevisionCourierChannelTest.java @@ -701,6 +713,7 @@ src/test/java/sh/ory/model/PaginationTest.java src/test/java/sh/ory/model/ParseErrorTest.java src/test/java/sh/ory/model/PatchIdentitiesBodyTest.java src/test/java/sh/ory/model/PerformNativeLogoutBodyTest.java +src/test/java/sh/ory/model/PermissionsOnWorkpaceResponseTest.java src/test/java/sh/ory/model/PlanDetailsTest.java src/test/java/sh/ory/model/PlanTest.java src/test/java/sh/ory/model/PostCheckPermissionBodyTest.java @@ -712,6 +725,7 @@ src/test/java/sh/ory/model/ProjectBrandingThemeTest.java src/test/java/sh/ory/model/ProjectCorsTest.java src/test/java/sh/ory/model/ProjectEventsDatapointTest.java src/test/java/sh/ory/model/ProjectHostTest.java +src/test/java/sh/ory/model/ProjectMemberTest.java src/test/java/sh/ory/model/ProjectMetadataTest.java src/test/java/sh/ory/model/ProjectServiceIdentityTest.java src/test/java/sh/ory/model/ProjectServiceOAuth2Test.java @@ -747,7 +761,6 @@ src/test/java/sh/ory/model/SetProjectTest.java src/test/java/sh/ory/model/SettingsFlowStateTest.java src/test/java/sh/ory/model/SettingsFlowTest.java src/test/java/sh/ory/model/SourcePositionTest.java -src/test/java/sh/ory/model/StripeCustomerTest.java src/test/java/sh/ory/model/SubjectSetTest.java src/test/java/sh/ory/model/SubscriptionTest.java src/test/java/sh/ory/model/SuccessfulCodeExchangeResponseTest.java @@ -798,6 +811,7 @@ src/test/java/sh/ory/model/UpdateSubscriptionBodyTest.java src/test/java/sh/ory/model/UpdateVerificationFlowBodyTest.java src/test/java/sh/ory/model/UpdateVerificationFlowWithCodeMethodTest.java src/test/java/sh/ory/model/UpdateVerificationFlowWithLinkMethodTest.java +src/test/java/sh/ory/model/UpdateWorkspacePayloadTest.java src/test/java/sh/ory/model/UsageTest.java src/test/java/sh/ory/model/VerifiableCredentialPrimingResponseTest.java src/test/java/sh/ory/model/VerifiableCredentialProofTest.java @@ -807,4 +821,5 @@ src/test/java/sh/ory/model/VerificationFlowStateTest.java src/test/java/sh/ory/model/VerificationFlowTest.java src/test/java/sh/ory/model/VersionTest.java src/test/java/sh/ory/model/WarningTest.java +src/test/java/sh/ory/model/WorkspaceMetaTest.java src/test/java/sh/ory/model/WorkspaceTest.java diff --git a/clients/client/java/README.md b/clients/client/java/README.md index 482da817dd0..7854aebc577 100644 --- a/clients/client/java/README.md +++ b/clients/client/java/README.md @@ -1,8 +1,8 @@ # client Ory APIs -- API version: v1.5.1 - - Build date: 2024-01-11T16:56:26.893672652Z[Etc/UTC] +- API version: v1.8.1 + - Build date: 2024-03-08T12:29:59.344544236Z[Etc/UTC] Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. @@ -42,7 +42,7 @@ Add this dependency to your project's POM: sh.ory client - v1.5.1 + v1.8.1 compile ``` @@ -58,7 +58,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "sh.ory:client:v1.5.1" + implementation "sh.ory:client:v1.8.1" } ``` @@ -72,7 +72,7 @@ mvn clean package Then manually install the following JARs: -* `target/client-v1.5.1.jar` +* `target/client-v1.8.1.jar` * `target/lib/*.jar` ## Getting Started @@ -293,8 +293,11 @@ Class | Method | HTTP request | Description - [CreateRecoveryLinkForIdentityBody](docs/CreateRecoveryLinkForIdentityBody.md) - [CreateRelationshipBody](docs/CreateRelationshipBody.md) - [CreateSubscriptionBody](docs/CreateSubscriptionBody.md) + - [CreateSubscriptionCommon](docs/CreateSubscriptionCommon.md) - [CreateVerifiableCredentialRequestBody](docs/CreateVerifiableCredentialRequestBody.md) - [CreateWorkspaceMemberInviteBody](docs/CreateWorkspaceMemberInviteBody.md) + - [CreateWorkspacePayload](docs/CreateWorkspacePayload.md) + - [CreateWorkspaceSubscriptionBody](docs/CreateWorkspaceSubscriptionBody.md) - [CredentialSupportedDraft00](docs/CredentialSupportedDraft00.md) - [CustomDomain](docs/CustomDomain.md) - [DeleteMySessionsCount](docs/DeleteMySessionsCount.md) @@ -329,12 +332,10 @@ Class | Method | HTTP request | Description - [IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](docs/IdentityCredentialsType.md) - [IdentityPatch](docs/IdentityPatch.md) - [IdentityPatchResponse](docs/IdentityPatchResponse.md) - [IdentitySchemaContainer](docs/IdentitySchemaContainer.md) - [IdentitySchemaPreset](docs/IdentitySchemaPreset.md) - - [IdentityState](docs/IdentityState.md) - [IdentityWithCredentials](docs/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](docs/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](docs/IdentityWithCredentialsOidcConfig.md) @@ -345,7 +346,6 @@ Class | Method | HTTP request | Description - [InternalIsAXWelcomeScreenEnabledForProjectBody](docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md) - [InternalIsOwnerForProjectBySlugBody](docs/InternalIsOwnerForProjectBySlugBody.md) - [InternalIsOwnerForProjectBySlugResponse](docs/InternalIsOwnerForProjectBySlugResponse.md) - - [InternalProvisionMockSubscription](docs/InternalProvisionMockSubscription.md) - [IntrospectedOAuth2Token](docs/IntrospectedOAuth2Token.md) - [IsOwnerForProjectBySlug](docs/IsOwnerForProjectBySlug.md) - [IsReady200Response](docs/IsReady200Response.md) @@ -357,6 +357,7 @@ Class | Method | HTTP request | Description - [ListEventStreams](docs/ListEventStreams.md) - [ListMyWorkspacesResponse](docs/ListMyWorkspacesResponse.md) - [ListOrganizationsResponse](docs/ListOrganizationsResponse.md) + - [ListWorkspaceProjectsResponse](docs/ListWorkspaceProjectsResponse.md) - [LoginFlow](docs/LoginFlow.md) - [LoginFlowState](docs/LoginFlowState.md) - [LogoutFlow](docs/LogoutFlow.md) @@ -366,6 +367,7 @@ Class | Method | HTTP request | Description - [Message](docs/Message.md) - [MessageDispatch](docs/MessageDispatch.md) - [MetricsDatapoint](docs/MetricsDatapoint.md) + - [MigrationOptions](docs/MigrationOptions.md) - [Namespace](docs/Namespace.md) - [NeedsPrivilegedSessionError](docs/NeedsPrivilegedSessionError.md) - [NormalizedProject](docs/NormalizedProject.md) @@ -394,6 +396,7 @@ Class | Method | HTTP request | Description - [ParseError](docs/ParseError.md) - [PatchIdentitiesBody](docs/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](docs/PerformNativeLogoutBody.md) + - [PermissionsOnWorkpaceResponse](docs/PermissionsOnWorkpaceResponse.md) - [Plan](docs/Plan.md) - [PlanDetails](docs/PlanDetails.md) - [PostCheckPermissionBody](docs/PostCheckPermissionBody.md) @@ -406,6 +409,7 @@ Class | Method | HTTP request | Description - [ProjectCors](docs/ProjectCors.md) - [ProjectEventsDatapoint](docs/ProjectEventsDatapoint.md) - [ProjectHost](docs/ProjectHost.md) + - [ProjectMember](docs/ProjectMember.md) - [ProjectMetadata](docs/ProjectMetadata.md) - [ProjectServiceIdentity](docs/ProjectServiceIdentity.md) - [ProjectServiceOAuth2](docs/ProjectServiceOAuth2.md) @@ -440,7 +444,6 @@ Class | Method | HTTP request | Description - [SettingsFlow](docs/SettingsFlow.md) - [SettingsFlowState](docs/SettingsFlowState.md) - [SourcePosition](docs/SourcePosition.md) - - [StripeCustomer](docs/StripeCustomer.md) - [SubjectSet](docs/SubjectSet.md) - [Subscription](docs/Subscription.md) - [SuccessfulCodeExchangeResponse](docs/SuccessfulCodeExchangeResponse.md) @@ -491,6 +494,7 @@ Class | Method | HTTP request | Description - [UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md) - [UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md) - [UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md) + - [UpdateWorkspacePayload](docs/UpdateWorkspacePayload.md) - [Usage](docs/Usage.md) - [VerifiableCredentialPrimingResponse](docs/VerifiableCredentialPrimingResponse.md) - [VerifiableCredentialProof](docs/VerifiableCredentialProof.md) @@ -501,6 +505,7 @@ Class | Method | HTTP request | Description - [Version](docs/Version.md) - [Warning](docs/Warning.md) - [Workspace](docs/Workspace.md) + - [WorkspaceMeta](docs/WorkspaceMeta.md) ## Documentation for Authorization diff --git a/clients/client/java/api/openapi.yaml b/clients/client/java/api/openapi.yaml index ad932c906e3..db9e2261926 100644 --- a/clients/client/java/api/openapi.yaml +++ b/clients/client/java/api/openapi.yaml @@ -11,7 +11,7 @@ info: url: https://www.apache.org/licenses/LICENSE-2.0.html termsOfService: /ptos title: Ory APIs - version: v1.5.1 + version: v1.8.1 servers: - url: "https://{project}.projects.oryapis.com/" variables: @@ -664,11 +664,11 @@ paths: strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - description: |- - IdsFilter is list of ids used to filter identities. + List of ids used to filter identities. If this list is empty, then no filter will be applied. explode: true in: query - name: ids_filter + name: ids required: false schema: items: @@ -698,6 +698,20 @@ paths: schema: type: string style: form + - description: |- + Include Credentials in Response + + Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return + the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. + explode: true + in: query + name: include_credential + required: false + schema: + items: + type: string + type: array + style: form responses: "200": content: @@ -875,11 +889,13 @@ paths: items: enum: - password - - totp - oidc - - webauthn + - totp - lookup_secret + - webauthn - code + - link_recovery + - code_recovery type: string type: array style: form @@ -1040,19 +1056,40 @@ paths: type: string style: simple - description: |- - Type is the credential's Type. - One of totp, webauthn, lookup + Type is the type of credentials to be deleted. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 explode: false in: path name: type required: true schema: enum: + - password + - oidc - totp + - lookup_secret - webauthn - - lookup + - code + - link_recovery + - code_recovery type: string style: simple + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 responses: "204": description: |- @@ -2230,6 +2267,14 @@ paths: This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. operationId: createRecoveryLinkForIdentity + parameters: + - explode: true + in: query + name: return_to + required: false + schema: + type: string + style: form requestBody: content: application/json: @@ -3969,13 +4014,13 @@ paths: - description: |- The resolution of the buckets - The minimum resolution is 1 hour. + The minimum resolution is 1 minute. explode: true in: query name: resolution required: true schema: - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + pattern: "^[0-9]+(m|h|d|M|y)$" type: string style: form - description: The start RFC3339 date of the time window @@ -4737,8 +4782,7 @@ paths: \ to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview)." operationId: postCheckPermissionOrError parameters: - - description: "nolint:deadcode,unused" - explode: true + - explode: true in: query name: max-depth required: false @@ -5357,6 +5401,15 @@ paths: schema: type: string style: form + - description: Via should contain the identity's credential the code should + be sent to. Only relevant in aal2 flows. + explode: true + in: query + name: via + required: false + schema: + type: string + style: form responses: "200": content: @@ -5478,6 +5531,15 @@ paths: schema: type: string style: form + - description: Via should contain the identity's credential the code should + be sent to. Only relevant in aal2 flows. + explode: true + in: query + name: via + required: false + schema: + type: string + style: form responses: "200": content: @@ -7657,8 +7719,6 @@ components: - count - name type: object - CodeAddressType: - type: string CreateInviteResponse: properties: all_invites: @@ -7679,2165 +7739,2269 @@ components: description: A email to invite type: string type: object - CreateVerifiableCredentialRequestBody: - example: - types: - - types - - types - format: format - proof: - proof_type: proof_type - jwt: jwt - properties: - format: - type: string - proof: - $ref: '#/components/schemas/VerifiableCredentialProof' - types: - items: - type: string - type: array - title: CreateVerifiableCredentialRequestBody contains the request body to request - a verifiable credential. - type: object - CreateWorkspaceMemberInviteBody: - description: Create Workspace Invite Request Body - properties: - invitee_email: - description: A email to invite - type: string - type: object - CustomHostnameStatus: - title: CustomHostnameStatus is the enumeration of valid state values in the - CustomHostnameSSL. - type: string - DefaultError: {} - Duration: - description: |- - A Duration represents the elapsed time between two instants - as an int64 nanosecond count. The representation limits the - largest representable duration to approximately 290 years. - format: int64 - type: integer - GenericUsage: - properties: - additional_price: - description: AdditionalPrice is the price per-unit in cent exceeding IncludedUsage. - A price of 0 means that no other items can be consumed. - format: int64 - type: integer - included_usage: - description: IncludedUsage is the number of included items. - format: int64 - type: integer - required: - - additional_price - - included_usage - title: GenericUsage is the generic usage type that can be used for any feature. - type: object - ID: - format: int64 - type: integer - JSONRawMessage: - title: "JSONRawMessage represents a json.RawMessage that works well with JSON,\ - \ SQL, and Swagger." - type: object - KetoNamespace: + CreateProjectNormalizedPayload: + description: Create project (normalized) request payload properties: - id: - format: int64 - type: integer - name: + created_at: + description: The Project's Revision Creation Date + format: date-time + readOnly: true type: string - type: object - KetoNamespaces: - items: - $ref: '#/components/schemas/KetoNamespace' - type: array - ListMyWorkspacesResponse: - properties: - has_next_page: + disable_account_experience_welcome_screen: + description: "Whether to disable the account experience welcome screen,\ + \ which is hosted under `/ui/welcome`." type: boolean - next_page_token: + enable_ax_v2: + description: Whether the new account experience is enabled and reachable. + type: boolean + environment: + description: |2- + + prod Production + dev Development + enum: + - prod + - dev type: string - workspaces: + x-go-enum-desc: |- + prod Production + dev Development + hydra_oauth2_allowed_top_level_claims: items: - $ref: '#/components/schemas/workspace' + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." type: array - required: - - has_next_page - - next_page_token - - workspaces - type: object - NormalizedProjectRevisionCourierChannel: - properties: - channel_id: - description: The Channel's public ID - type: string - created_at: - description: The creation date - format: date-time - readOnly: true - type: string - request_config_auth_config_api_key_in: + hydra_oauth2_client_credentials_default_grant_allowed_scope: description: |- - API key location + Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. - Can either be "header" or "query" - example: header - type: string - request_config_auth_config_api_key_name: + Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full + scope is automatically granted when performing the OAuth2 Client Credentials flow. + + If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. + + Setting this option to true is common if you need compatibility with MITREid. + + This governs the "oauth2.client_credentials.default_grant_allowed_scope" setting. + type: boolean + hydra_oauth2_exclude_not_before_claim: description: |- - API key name + Set to true if you want to exclude claim `nbf (not before)` part of access token. - Only used if the auth type is api_key - type: string - request_config_auth_config_api_key_value: + This governs the "oauth2.exclude_not_before_claim" setting. + type: boolean + hydra_oauth2_grant_jwt_iat_optional: description: |- - API key value + Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - Only used if the auth type is api_key - type: string - request_config_auth_config_basic_auth_password: + If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. + + This governs the "oauth2.grant.jwt.iat_optional" setting. + type: boolean + hydra_oauth2_grant_jwt_jti_optional: description: |- - Basic Auth Password + Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - Only used if the auth type is basic_auth + If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. + + This governs the "oauth2.grant.jwt.jti_optional" setting. + type: boolean + hydra_oauth2_grant_jwt_max_ttl: + default: 720h + description: |- + Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. + + This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. + + Useful as a safety measure and recommended to keep below 720h. + + This governs the "oauth2.grant.jwt.max_ttl" setting. + example: 30m + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - request_config_auth_config_basic_auth_user: + hydra_oauth2_mirror_top_level_claims: description: |- - Basic Auth Username + Set to false if you don't want to mirror custom claims under 'ext'. - Only used if the auth type is basic_auth + This governs the "oauth2.mirror_top_level_claims" setting. + type: boolean + hydra_oauth2_pkce_enforced: + description: |- + Configures whether PKCE should be enforced for all OAuth2 Clients. + + This governs the "oauth2.pkce.enforced" setting. + type: boolean + hydra_oauth2_pkce_enforced_for_public_clients: + description: |- + Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). + + This governs the "oauth2.pkce.enforced_for_public_clients" setting. + type: boolean + hydra_oauth2_refresh_token_hook: + description: |- + Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. + + This governs the "oauth2.refresh_token_hook" setting. type: string - request_config_auth_type: + hydra_oauth2_token_hook: description: |- - HTTP Auth Method to use for the HTTP call + Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims. - Can either be basic_auth or api_key - basic_auth CourierChannelAuthTypeBasicAuth - api_key CourierChannelAuthTypeApiKey - enum: - - basic_auth - - api_key + This governs the "oauth2.token_hook.url" setting. type: string - x-go-enum-desc: |- - basic_auth CourierChannelAuthTypeBasicAuth - api_key CourierChannelAuthTypeApiKey - request_config_body: - description: URI pointing to the JsonNet template used for HTTP body payload - generation. - type: string - request_config_headers: - description: "NullJSONRawMessage represents a json.RawMessage that works\ - \ well with JSON, SQL, and Swagger and is NULLable-" - nullable: true - type: object - request_config_method: - description: "The HTTP method to use (GET, POST, etc) for the HTTP call" - example: POST - type: string - request_config_url: - type: string - updated_at: - description: Last upate time - format: date-time - readOnly: true + hydra_oidc_dynamic_client_registration_default_scope: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_oidc_dynamic_client_registration_enabled: + description: |- + Configures OpenID Connect Dynamic Client Registration. + + This governs the "oidc.dynamic_client_registration.enabled" setting. + type: boolean + hydra_oidc_subject_identifiers_pairwise_salt: + description: |- + Configures OpenID Connect Discovery and overwrites the pairwise algorithm + + This governs the "oidc.subject_identifiers.pairwise_salt" setting. type: string - required: - - channel_id - - request_config_body - - request_config_method - type: object - NullBool: - nullable: true - type: boolean - NullDuration: - nullable: true - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" - type: string - NullInt: - nullable: true - type: integer - NullString: - nullable: true - type: string - NullTime: - format: date-time - nullable: true - type: string - NullUUID: - format: uuid4 - nullable: true - type: string - OAuth2LoginChallengeParams: - type: object - OrganizationBody: - description: Create B2B SSO Organization Request Body - example: - domains: - - domains - - domains - label: label - properties: - domains: - description: Domains contains the list of organization's domains. + hydra_oidc_subject_identifiers_supported_types: items: type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." type: array - label: - description: Label contains the organization's label. + hydra_secrets_cookie: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_secrets_system: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_serve_cookies_same_site_legacy_workaround: + description: |- + Configures the Ory Hydra Cookie Same Site Legacy Workaround + + This governs the "serve.cookies.same_site_legacy_workaround" setting. + type: boolean + hydra_serve_cookies_same_site_mode: + description: |- + Configures the Ory Hydra Cookie Same Site Mode + + This governs the "serve.cookies.same_site_mode" setting. type: string - type: object - ParseError: - example: - start: - Line: 0 - column: 6 - end: - Line: 0 - column: 6 - message: message - properties: - end: - $ref: '#/components/schemas/SourcePosition' - message: + hydra_strategies_access_token: + default: opaque + description: |- + Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens + + This governs the "strategies.access_token" setting. + opaque Oauth2AccessTokenStrategyOpaque + jwt Oauth2AccessTokenStrategyJwt + enum: + - opaque + - jwt type: string - start: - $ref: '#/components/schemas/SourcePosition' - type: object - Plan: - properties: - name: - description: Name is the name of the plan. + x-go-enum-desc: |- + opaque Oauth2AccessTokenStrategyOpaque + jwt Oauth2AccessTokenStrategyJwt + hydra_strategies_scope: + default: wildcard + description: |- + Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes + + This governs the "strategies.scope" setting. + exact Oauth2ScopeStrategyExact + wildcard Oauth2ScopeStrategyWildcard + enum: + - exact + - wildcard type: string - version: - description: Version is the version of the plan. The combination of `name@version` - must be unique. - format: int64 - type: integer - required: - - name - - version - type: object - PlanDetails: - properties: - base_fee_monthly: - description: BaseFeeMonthly is the monthly base fee for the plan. - format: int64 - type: integer - base_fee_yearly: - description: BaseFeeYearly is the yearly base fee for the plan. - format: int64 - type: integer - custom: - description: Custom is true if the plan is custom. This means it will be - hidden from the pricing page. - type: boolean - description: - description: Description is the description of the plan. + x-go-enum-desc: |- + exact Oauth2ScopeStrategyExact + wildcard Oauth2ScopeStrategyWildcard + hydra_ttl_access_token: + default: 30m + description: This governs the "ttl.access_token" setting. + example: 1h + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - features: - additionalProperties: - $ref: '#/components/schemas/GenericUsage' - description: Features are the feature definitions included in the plan. - type: object - name: - description: Name is the name of the plan. + hydra_ttl_auth_code: + default: 720h + description: |- + Configures how long refresh tokens are valid. + + Set to -1 for refresh tokens to never expire. This is not recommended! + + This governs the "ttl.auth_code" setting. + example: 30m + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - version: - description: Version is the version of the plan. The combination of `name@version` - must be unique. - format: int64 - type: integer - required: - - base_fee_monthly - - base_fee_yearly - - custom - - description - - features - - name - - version - type: object - Pricing: - items: - $ref: '#/components/schemas/PlanDetails' - type: array - ProjectEventsDatapoint: - properties: - attributes: - description: Event attributes with details - items: - $ref: '#/components/schemas/Attribute' - type: array - name: - description: Name of the event + hydra_ttl_id_token: + default: 30m + description: This governs the "ttl.id_token" setting. + example: 1h + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - timestamp: - description: Time of occurence - format: date-time + hydra_ttl_login_consent_request: + default: 30m + description: |- + Configures how long a user login and consent flow may take. + + This governs the "ttl.login_consent_request" setting. + example: 1h + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string - required: - - attributes - - name - - timestamp - type: object - RFC6749ErrorJson: - properties: - error: + hydra_ttl_refresh_token: + default: 720h + description: |- + Configures how long refresh tokens are valid. + + Set to -1 for refresh tokens to never expire. This is not recommended! + + This governs the "ttl.refresh_token" setting. + example: 30m + pattern: "^([0-9]+(ns|us|ms|s|m|h)|-1)$" type: string - error_debug: + hydra_urls_consent: + description: |- + Sets the OAuth2 Consent Endpoint URL of the OAuth2 User Login & Consent flow. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.consent" setting. type: string - error_description: + hydra_urls_error: + description: |- + Sets the OAuth2 Error URL of the OAuth2 User Login & Consent flow. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.error" setting. type: string - error_hint: + hydra_urls_login: + description: |- + Sets the OAuth2 Login Endpoint URL of the OAuth2 User Login & Consent flow. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.login" setting. type: string - status_code: - format: int64 - type: integer - title: RFC6749ErrorJson is a helper struct for JSON encoding/decoding of RFC6749Error. - type: object - RecoveryAddressType: - title: RecoveryAddressType must not exceed 16 characters as that is the limitation - in the SQL Schema. - type: string - SessionActivityDatapoint: - properties: - country: - description: Country of the events + hydra_urls_logout: + description: |- + Sets the logout endpoint. + + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.logout" setting. type: string - failed: - description: Number of events that failed in the given timeframe - format: int64 - type: integer - succeeded: - description: Number of events that succeeded in the given timeframe - format: int64 - type: integer - required: - - country - - failed - - succeeded - type: object - SourcePosition: - example: - Line: 0 - column: 6 - properties: - Line: - format: int64 - type: integer - column: - format: int64 - type: integer - type: object - String: - $ref: '#/components/schemas/NullString' - StringSliceJSONFormat: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - SubscriptionStatus: - description: |- - For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. + hydra_urls_post_logout_redirect: + description: |- + When an OAuth2-related user agent requests to log out, they will be redirected to this url afterwards per default. - A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. + Defaults to the Ory Account Experience in development and your application in production mode when a custom domain is connected. - If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). + This governs the "urls.post_logout_redirect" setting. + type: string + hydra_urls_registration: + description: |- + Sets the OAuth2 Registration Endpoint URL of the OAuth2 User Login & Consent flow. - If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. - title: "Possible values are `incomplete`, `incomplete_expired`, `trialing`,\ - \ `active`, `past_due`, `canceled`, or `unpaid`." - type: string - Time: - format: date-time - type: string - UUID: - format: uuid4 - type: string - Usage: - properties: - GenericUsage: - $ref: '#/components/schemas/GenericUsage' - type: object - VerifiableCredentialProof: - example: - proof_type: proof_type - jwt: jwt - properties: - jwt: + Defaults to the Ory Account Experience if left empty. + + This governs the "urls.registration" setting. type: string - proof_type: + hydra_urls_self_issuer: + description: |- + This value will be used as the issuer in access and ID tokens. It must be specified and using HTTPS protocol, unless the development mode is enabled. + + On the Ory Network it will be very rare that you want to modify this value. If left empty, it will default to the correct value for the Ory Network. + + This governs the "urls.self.issuer" setting. type: string - title: VerifiableCredentialProof contains the proof of a verifiable credential. - type: object - Warning: - example: - code: 0 - message: message - properties: - code: - format: int64 - type: integer - message: + hydra_webfinger_jwks_broadcast_keys: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + hydra_webfinger_oidc_discovery_auth_url: + description: |- + Configures OpenID Connect Discovery and overwrites the OAuth2 Authorization URL. + + This governs the "webfinger.oidc.discovery.auth_url" setting. type: string - type: object - acceptOAuth2ConsentRequest: - properties: - grant_access_token_audience: + hydra_webfinger_oidc_discovery_client_registration_url: + description: |- + Configures OpenID Connect Discovery and overwrites the OpenID Connect Dynamic Client Registration Endpoint. + + This governs the "webfinger.oidc.discovery.client_registration_url" setting. + type: string + hydra_webfinger_oidc_discovery_jwks_url: + description: |- + Configures OpenID Connect Discovery and overwrites the JWKS URL. + + This governs the "webfinger.oidc.discovery.jwks_url" setting. + type: string + hydra_webfinger_oidc_discovery_supported_claims: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - grant_scope: + hydra_webfinger_oidc_discovery_supported_scope: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - handled_at: - format: date-time - title: NullTime implements sql.NullTime functionality. - type: string - remember: - description: |- - Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same - client asks the same user for the same, or a subset of, scope. - type: boolean - remember_for: - description: |- - RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the - authorization will be remembered indefinitely. - format: int64 - type: integer - session: - $ref: '#/components/schemas/acceptOAuth2ConsentRequestSession' - title: The request payload used to accept a consent request. - type: object - acceptOAuth2ConsentRequestSession: - example: - access_token: "" - id_token: "" - properties: - access_token: + hydra_webfinger_oidc_discovery_token_url: description: |- - AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the - refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. - If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties - can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! - id_token: + Configures OpenID Connect Discovery and overwrites the OAuth2 Token URL. + + This governs the "webfinger.oidc.discovery.token_url" setting. + type: string + hydra_webfinger_oidc_discovery_userinfo_url: description: |- - IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable - by anyone that has access to the ID Challenge. Use with care! - title: Pass session data to a consent request. - type: object - acceptOAuth2LoginRequest: - properties: - acr: + Configures OpenID Connect Discovery and overwrites userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra's userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself. + + This governs the "webfinger.oidc.discovery.userinfo_url" setting. + type: string + id: + description: The revision ID. + format: uuid + readOnly: true + type: string + keto_namespace_configuration: description: |- - ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it - to express that, for example, a user authenticated using two factor authentication. + The Revisions' Keto Namespace Configuration + + The string is a URL pointing to an OPL file with the configuration. type: string - amr: + keto_namespaces: items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." + $ref: '#/components/schemas/KetoNamespace' type: array - context: - title: "JSONRawMessage represents a json.RawMessage that works well with\ - \ JSON, SQL, and Swagger." - type: object - extend_session_lifespan: + kratos_cookies_same_site: description: |- - Extend OAuth2 authentication session lifespan - - If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. + Configures the Ory Kratos Cookie SameSite Attribute - This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. - type: boolean - force_subject_identifier: + This governs the "cookies.same_site" setting. + type: string + kratos_courier_channels: + items: + $ref: '#/components/schemas/NormalizedProjectRevisionCourierChannel' + type: array + kratos_courier_delivery_strategy: + default: smtp description: |- - ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the - (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID - Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. - - Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the - sub claim in the OAuth 2.0 Introspection. + The delivery strategy to use when sending emails - Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself - you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in - ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's - configuration). + `smtp`: Use SMTP server + `http`: Use the built in HTTP client to send the email to some remote service + type: string + kratos_courier_http_request_config_auth_api_key_in: + description: |- + The location of the API key to use in the HTTP email sending service's authentication - Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies - that you have to compute this value on every authentication process (probably depending on the client ID or some - other unique value). + `header`: Send the key value pair as a header + `cookie`: Send the key value pair as a cookie + This governs the "courier.http.auth.config.in" setting + type: string + kratos_courier_http_request_config_auth_api_key_name: + description: |- + The name of the API key to use in the HTTP email sending service's authentication - If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. + This governs the "courier.http.auth.config.name" setting type: string - identity_provider_session_id: + kratos_courier_http_request_config_auth_api_key_value: description: |- - IdentityProviderSessionID is the session ID of the end-user that authenticated. - If specified, we will use this value to propagate the logout. + The value of the API key to use in the HTTP email sending service's authentication + + This governs the "courier.http.auth.config.value" setting type: string - remember: + kratos_courier_http_request_config_auth_basic_auth_password: description: |- - Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store - a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she - will not be asked to log in again. - type: boolean - remember_for: + The password to use for basic auth in the HTTP email sending service's authentication + + This governs the "courier.http.auth.config.password" setting + type: string + kratos_courier_http_request_config_auth_basic_auth_user: description: |- - RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the - authorization will be remembered for the duration of the browser session (using a session cookie). - format: int64 - type: integer - subject: - description: Subject is the user ID of the end-user that authenticated. + The user to use for basic auth in the HTTP email sending service's authentication + + This governs the "courier.http.auth.config.user" setting type: string - required: - - subject - title: HandledLoginRequest is the request payload used to accept a login request. - type: object - activeProjectInConsole: - description: The Active Project ID - example: - project_id: project_id - properties: - project_id: + kratos_courier_http_request_config_auth_type: + default: empty (no authentication) description: |- - The Active Project ID + The authentication type to use while contacting the remote HTTP email sending service - format: uuid + `basic_auth`: Use Basic Authentication + `api_key`: Use API Key Authentication in a header or cookie type: string - type: object - authenticatorAssuranceLevel: - description: |- - The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder - for an attacker to compromise the account. + kratos_courier_http_request_config_body: + description: |- + The Jsonnet template to generate the body to send to the remote HTTP email sending service - Generally, "aal1" implies that one authentication factor was used while AAL2 implies that two factors (e.g. - password + TOTP) have been used. + Should be valid Jsonnet and base64 encoded - To learn more about these levels please head over to: https://www.ory.sh/kratos/docs/concepts/credentials - enum: - - aal0 - - aal1 - - aal2 - - aal3 - title: Authenticator Assurance Level (AAL) - type: string - batchPatchIdentitiesResponse: - description: Patch identities response - example: - identities: - - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - action: create - - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - action: create - properties: - identities: - description: The patch responses for the individual identities. - items: - $ref: '#/components/schemas/identityPatchResponse' - type: array - type: object - checkOplSyntaxBody: - description: Ory Permission Language Document - type: string - checkOplSyntaxResult: - example: - errors: - - start: - Line: 0 - column: 6 - end: - Line: 0 - column: 6 - message: message - - start: - Line: 0 - column: 6 - end: - Line: 0 - column: 6 - message: message - properties: - errors: - description: The list of syntax errors - items: - $ref: '#/components/schemas/ParseError' - type: array - title: CheckOPLSyntaxResponse represents the response for an OPL syntax check - request. - type: object - checkPermissionResult: - description: The content of the allowed field is mirrored in the HTTP status - code. - example: - allowed: true - properties: - allowed: - description: whether the relation tuple is allowed - type: boolean - required: - - allowed - title: Check Permission Result - type: object - cloudAccount: - properties: - email: - type: string - id: - format: uuid + This governs the "courier.http.body" setting type: string - name: + kratos_courier_http_request_config_headers: + description: "NullJSONRawMessage represents a json.RawMessage that works\ + \ well with JSON, SQL, and Swagger and is NULLable-" + nullable: true + type: object + kratos_courier_http_request_config_method: + default: POST + description: The http METHOD to use when calling the remote HTTP email sending + service type: string - type: object - consistencyRequestParameters: - description: Control API consistency guarantees - properties: - consistency: + kratos_courier_http_request_config_url: description: |- - Read Consistency Level (preview) - - The read consistency level determines the consistency guarantee for reads: - - strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. - eventual (very fast): The result will return data that is about 4.8 seconds old. - - The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with - `ory patch project --replace '/previews/default_read_consistency_level="strong"'`. - - Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency - controls to more APIs. Currently, the following APIs will be affected by this setting: + The URL of the remote HTTP email sending service - `GET /admin/identities` + This governs the "courier.http.url" setting + type: string + kratos_courier_smtp_connection_uri: + description: |- + Configures the Ory Kratos SMTP Connection URI - This feature is in preview and only available in Ory Network. - ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. - strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. - eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - enum: - - "" - - strong - - eventual + This governs the "courier.smtp.connection_uri" setting. type: string - x-go-enum-desc: |2- - ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. - strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. - eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - type: object - continueWith: - discriminator: - mapping: - set_ory_session_token: '#/components/schemas/continueWithSetOrySessionToken' - show_recovery_ui: '#/components/schemas/continueWithRecoveryUi' - show_settings_ui: '#/components/schemas/continueWithSettingsUi' - show_verification_ui: '#/components/schemas/continueWithVerificationUi' - propertyName: action - oneOf: - - $ref: '#/components/schemas/continueWithVerificationUi' - - $ref: '#/components/schemas/continueWithSetOrySessionToken' - - $ref: '#/components/schemas/continueWithSettingsUi' - - $ref: '#/components/schemas/continueWithRecoveryUi' - continueWithRecoveryUi: - description: "Indicates, that the UI flow could be continued by showing a recovery\ - \ ui" - properties: - action: + kratos_courier_smtp_from_address: description: |- - Action will always be `show_recovery_ui` - show_recovery_ui ContinueWithActionShowRecoveryUIString - enum: - - show_recovery_ui + Configures the Ory Kratos SMTP From Address + + This governs the "courier.smtp.from_address" setting. type: string - x-go-enum-desc: show_recovery_ui ContinueWithActionShowRecoveryUIString - flow: - $ref: '#/components/schemas/continueWithRecoveryUiFlow' - required: - - action - - flow - type: object - continueWithRecoveryUiFlow: - properties: - id: - description: The ID of the recovery flow - format: uuid + kratos_courier_smtp_from_name: + description: |- + Configures the Ory Kratos SMTP From Name + + This governs the "courier.smtp.from_name" setting. type: string - url: - description: The URL of the recovery flow + kratos_courier_smtp_headers: + description: "NullJSONRawMessage represents a json.RawMessage that works\ + \ well with JSON, SQL, and Swagger and is NULLable-" + nullable: true + type: object + kratos_courier_smtp_local_name: + description: |- + Configures the local_name to use in SMTP connections + + This governs the "courier.smtp.local_name" setting. type: string - required: - - id - type: object - continueWithSetOrySessionToken: - description: "Indicates that a session was issued, and the application should\ - \ use this token for authenticated requests" - properties: - action: + kratos_courier_templates_login_code_valid_email_body_html: description: |- - Action will always be `set_ory_session_token` - set_ory_session_token ContinueWithActionSetOrySessionTokenString - enum: - - set_ory_session_token + Configures the Ory Kratos Valid Login via Code Email Body HTML Template + + This governs the "courier.smtp.templates.login_code.valid.email.body.html" setting. type: string - x-go-enum-desc: set_ory_session_token ContinueWithActionSetOrySessionTokenString - ory_session_token: - description: Token is the token of the session + kratos_courier_templates_login_code_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.login_code.valid.email.body.plaintext" setting. type: string - required: - - action - - ory_session_token - type: object - continueWithSettingsUi: - description: "Indicates, that the UI flow could be continued by showing a settings\ - \ ui" - properties: - action: + kratos_courier_templates_login_code_valid_email_subject: description: |- - Action will always be `show_settings_ui` - show_settings_ui ContinueWithActionShowSettingsUIString - enum: - - show_settings_ui + Configures the Ory Kratos Valid Login via Code Email Subject Template + + This governs the "courier.smtp.templates.login_code.valid.email.subject" setting. type: string - x-go-enum-desc: show_settings_ui ContinueWithActionShowSettingsUIString - flow: - $ref: '#/components/schemas/continueWithSettingsUiFlow' - required: - - action - - flow - type: object - continueWithSettingsUiFlow: - properties: - id: - description: The ID of the settings flow - format: uuid + kratos_courier_templates_login_code_valid_sms_body_plaintext: + description: |- + Configures the Ory Kratos Valid Login via Code SMS plain text body + + This governs the "courier.smtp.templates.login_code.valid.sms.plaintext" setting. type: string - required: - - id - type: object - continueWithVerificationUi: - description: "Indicates, that the UI flow could be continued by showing a verification\ - \ ui" - properties: - action: + kratos_courier_templates_recovery_code_invalid_email_body_html: description: |- - Action will always be `show_verification_ui` - show_verification_ui ContinueWithActionShowVerificationUIString - enum: - - show_verification_ui + Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template + + This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. type: string - x-go-enum-desc: show_verification_ui ContinueWithActionShowVerificationUIString - flow: - $ref: '#/components/schemas/continueWithVerificationUiFlow' - required: - - action - - flow - type: object - continueWithVerificationUiFlow: - properties: - id: - description: The ID of the verification flow - format: uuid + kratos_courier_templates_recovery_code_invalid_email_body_plaintext: + description: |- + Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery_code.invalid.email.body.plaintext" setting. type: string - url: - description: The URL of the verification flow + kratos_courier_templates_recovery_code_invalid_email_subject: + description: |- + Configures the Ory Kratos Invalid Recovery via Code Email Subject Template + + This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. type: string - verifiable_address: - description: The address that should be verified in this flow + kratos_courier_templates_recovery_code_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Recovery via Code Email Body HTML Template + + This governs the "courier.smtp.templates.recovery_code.valid.email.body.html" setting. type: string - required: - - id - - verifiable_address - type: object - courierMessageStatus: - description: A Message's Status - enum: - - queued - - sent - - processing - - abandoned - type: string - courierMessageType: - description: It can either be `email` or `phone` - enum: - - email - - phone - title: A Message's Type - type: string - createCustomDomainBody: - description: Create Custom Hostname Request Body - properties: - cookie_domain: - description: The domain where cookies will be set. Has to be a parent domain - of the custom hostname to work. + kratos_courier_templates_recovery_code_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Recovery via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery_code.valid.email.body.plaintext" setting. type: string - cors_allowed_origins: - description: CORS Allowed origins for the custom hostname. - items: - type: string - type: array - cors_enabled: - description: CORS Enabled for the custom hostname. - type: boolean - custom_ui_base_url: - description: The base URL where the custom user interface will be exposed. + kratos_courier_templates_recovery_code_valid_email_subject: + description: |- + Configures the Ory Kratos Valid Recovery via Code Email Subject Template + + This governs the "courier.smtp.templates.recovery_code.valid.email.subject" setting. type: string - hostname: - description: The custom hostname where the API will be exposed. + kratos_courier_templates_recovery_invalid_email_body_html: + description: |- + Configures the Ory Kratos Invalid Recovery Email Body HTML Template + + This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. type: string - type: object - createEventStreamBody: - description: Create Event Stream Request Body - properties: - role_arn: - description: The AWS IAM role ARN to assume when publishing to the SNS topic. + kratos_courier_templates_recovery_invalid_email_body_plaintext: + description: |- + Configures the Ory Kratos Invalid Recovery Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery.invalid.email.body.plaintext" setting. type: string - topic_arn: - description: The AWS SNS topic ARN. + kratos_courier_templates_recovery_invalid_email_subject: + description: |- + Configures the Ory Kratos Invalid Recovery Email Subject Template + + This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. type: string - type: - description: "The type of the event stream (AWS SNS, GCP Pub/Sub, etc)." - enum: - - sns + kratos_courier_templates_recovery_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Recovery Email Body HTML Template + + This governs the "courier.smtp.templates.recovery.valid.email.body.html" setting. type: string - required: - - role_arn - - topic_arn - - type - type: object - createIdentityBody: - description: Create Identity Body - properties: - credentials: - $ref: '#/components/schemas/identityWithCredentials' - metadata_admin: - description: Store metadata about the user which is only accessible through - admin APIs such as `GET /admin/identities/`. - metadata_public: + kratos_courier_templates_recovery_valid_email_body_plaintext: description: |- - Store metadata about the identity which the identity itself can see when calling for example the - session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. - recovery_addresses: + Configures the Ory Kratos Valid Recovery Email Body Plaintext Template + + This governs the "courier.smtp.templates.recovery.valid.email.body.plaintext" setting. + type: string + kratos_courier_templates_recovery_valid_email_subject: description: |- - RecoveryAddresses contains all the addresses that can be used to recover an identity. + Configures the Ory Kratos Valid Recovery Email Subject Template - Use this structure to import recovery addresses for an identity. Please keep in mind - that the address needs to be represented in the Identity Schema or this field will be overwritten - on the next identity update. - items: - $ref: '#/components/schemas/recoveryIdentityAddress' - type: array - schema_id: - description: SchemaID is the ID of the JSON Schema to be used for validating - the identity's traits. + This governs the "courier.smtp.templates.recovery.valid.email.subject" setting. type: string - state: - $ref: '#/components/schemas/identityState' - traits: + kratos_courier_templates_registration_code_valid_email_body_html: description: |- - Traits represent an identity's traits. The identity is able to create, modify, and delete traits - in a self-service manner. The input will always be validated against the JSON Schema defined - in `schema_url`. - type: object - verifiable_addresses: + Configures the Ory Kratos Valid Registration via Code Email Body HTML Template + + This governs the "courier.smtp.templates.registration_code.valid.email.body.html" setting. + type: string + kratos_courier_templates_registration_code_valid_email_body_plaintext: description: |- - VerifiableAddresses contains all the addresses that can be verified by the user. + Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template - Use this structure to import verified addresses for an identity. Please keep in mind - that the address needs to be represented in the Identity Schema or this field will be overwritten - on the next identity update. - items: - $ref: '#/components/schemas/verifiableIdentityAddress' - type: array - required: - - schema_id - - traits - type: object - createJsonWebKeySet: - description: Create JSON Web Key Set Request Body - properties: - alg: + This governs the "courier.smtp.templates.registration_code.valid.email.body.plaintext" setting. + type: string + kratos_courier_templates_registration_code_valid_email_subject: description: |- - JSON Web Key Algorithm + Configures the Ory Kratos Valid Registration via Code Email Subject Template - The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. + This governs the "courier.smtp.templates.registration_code.valid.email.subject" setting. type: string - kid: + kratos_courier_templates_verification_code_invalid_email_body_html: description: |- - JSON Web Key ID + Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template - The Key ID of the key to be created. + This governs the "courier.smtp.templates.verification_code.invalid.email.body.html" setting. type: string - use: + kratos_courier_templates_verification_code_invalid_email_body_plaintext: description: |- - JSON Web Key Use + Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template - The "use" (public key use) parameter identifies the intended use of - the public key. The "use" parameter is employed to indicate whether - a public key is used for encrypting data or verifying the signature - on data. Valid values are "enc" and "sig". - type: string - required: - - alg - - kid - - use - type: object - createMemberInviteResponse: - $ref: '#/components/schemas/CreateInviteResponse' - createProjectBody: - description: Create Project Request Body - properties: - name: - description: The name of the project to be created + This governs the "courier.smtp.templates.verification_code.invalid.email.body.plaintext" setting. type: string - workspace_id: - format: uuid4 - nullable: true + kratos_courier_templates_verification_code_invalid_email_subject: + description: |- + Configures the Ory Kratos Invalid Verification via Code Email Subject Template + + This governs the "courier.smtp.templates.verification_code.invalid.email.subject" setting. type: string - required: - - name - type: object - createProjectBranding: - description: Create a Project Branding - properties: - favicon_type: + kratos_courier_templates_verification_code_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Verification via Code Email Body HTML Template + + This governs the "courier.smtp.templates.verification_code.valid.email.body.html" setting. type: string - favicon_url: + kratos_courier_templates_verification_code_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Verification via Code Email Body Plaintext Template + + This governs the "courier.smtp.templates.verification_code.valid.email.body.plaintext" setting. type: string - logo_type: + kratos_courier_templates_verification_code_valid_email_subject: + description: |- + Configures the Ory Kratos Valid Verification via Code Email Subject Template + + This governs the "courier.smtp.templates.verification_code.valid.email.subject" setting. type: string - logo_url: + kratos_courier_templates_verification_code_valid_sms_body_plaintext: + description: |- + Configures the Ory Kratos Valid Verification via Code SMS Body Plaintext + + This governs the "courier.smtp.templates.verification_code.valid.sms.body.plaintext" setting. type: string - name: + kratos_courier_templates_verification_invalid_email_body_html: + description: |- + Configures the Ory Kratos Invalid Verification Email Body HTML Template + + This governs the "courier.smtp.templates.verification.invalid.email.body.html" setting. type: string - theme: - $ref: '#/components/schemas/projectBrandingColors' - type: object - createProjectNormalizedPayload: - description: Create project (normalized) request payload - properties: - created_at: - description: The Project's Revision Creation Date - format: date-time - readOnly: true + kratos_courier_templates_verification_invalid_email_body_plaintext: + description: |- + Configures the Ory Kratos Invalid Verification Email Body Plaintext Template + + This governs the "courier.smtp.templates.verification.invalid.email.body.plaintext" setting. type: string - disable_account_experience_welcome_screen: - description: "Whether to disable the account experience welcome screen,\ - \ which is hosted under `/ui/welcome`." - type: boolean - hydra_oauth2_allowed_top_level_claims: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_oauth2_client_credentials_default_grant_allowed_scope: + kratos_courier_templates_verification_invalid_email_subject: description: |- - Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. + Configures the Ory Kratos Invalid Verification Email Subject Template - Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full - scope is automatically granted when performing the OAuth2 Client Credentials flow. + This governs the "courier.smtp.templates.verification.invalid.email.subject" setting. + type: string + kratos_courier_templates_verification_valid_email_body_html: + description: |- + Configures the Ory Kratos Valid Verification Email Body HTML Template - If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. + This governs the "courier.smtp.templates.verification.valid.email.body.html" setting. + type: string + kratos_courier_templates_verification_valid_email_body_plaintext: + description: |- + Configures the Ory Kratos Valid Verification Email Body Plaintext Template - Setting this option to true is common if you need compatibility with MITREid. + This governs the "courier.smtp.templates.verification.valid.email.body.plaintext" setting. + type: string + kratos_courier_templates_verification_valid_email_subject: + description: |- + Configures the Ory Kratos Valid Verification Email Subject Template - This governs the "oauth2.client_credentials.default_grant_allowed_scope" setting. - type: boolean - hydra_oauth2_exclude_not_before_claim: + This governs the "courier.smtp.templates.verification.valid.email.subject" setting. + type: string + kratos_feature_flags_cacheable_sessions: description: |- - Set to true if you want to exclude claim `nbf (not before)` part of access token. + Configures the Ory Kratos Session caching feature flag - This governs the "oauth2.exclude_not_before_claim" setting. + This governs the "feature_flags.cacheable_sessions" setting. type: boolean - hydra_oauth2_grant_jwt_iat_optional: + kratos_feature_flags_use_continue_with_transitions: description: |- - Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - - If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. + Configures the Ory Kratos Session use_continue_with_transitions flag - This governs the "oauth2.grant.jwt.iat_optional" setting. + This governs the "feature_flags.use_continue_with_transitions" setting. type: boolean - hydra_oauth2_grant_jwt_jti_optional: + kratos_identity_schemas: + items: + $ref: '#/components/schemas/normalizedProjectRevisionIdentitySchema' + type: array + kratos_oauth2_provider_headers: + description: "NullJSONRawMessage represents a json.RawMessage that works\ + \ well with JSON, SQL, and Swagger and is NULLable-" + nullable: true + type: object + kratos_oauth2_provider_override_return_to: description: |- - Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). - - If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. + Kratos OAuth2 Provider Override Return To - This governs the "oauth2.grant.jwt.jti_optional" setting. + Enabling this allows Kratos to set the return_to parameter automatically to the OAuth2 request URL on the login flow, allowing complex flows such as recovery to continue to the initial OAuth2 flow. type: boolean - hydra_oauth2_grant_jwt_max_ttl: - default: 720h + kratos_oauth2_provider_url: description: |- - Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. - - This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. - - Useful as a safety measure and recommended to keep below 720h. + The Revisions' OAuth2 Provider Integration URL - This governs the "oauth2.grant.jwt.max_ttl" setting. - example: 30m - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "oauth2_provider.url" setting. type: string - hydra_oauth2_pkce_enforced: + kratos_preview_default_read_consistency_level: description: |- - Configures whether PKCE should be enforced for all OAuth2 Clients. + Configures the default read consistency level for identity APIs - This governs the "oauth2.pkce.enforced" setting. - type: boolean - hydra_oauth2_pkce_enforced_for_public_clients: - description: |- - Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). + This governs the `preview.default_read_consistency_level` setting. - This governs the "oauth2.pkce.enforced_for_public_clients" setting. - type: boolean - hydra_oauth2_refresh_token_hook: - description: |- - Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. + The read consistency level determines the consistency guarantee for reads: - This governs the "oauth2.refresh_token_hook" setting. - type: string - hydra_oauth2_token_hook: - description: |- - Sets the token hook endpoint for all grant types. If set it will be called while providing token to customize claims. + strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. + eventual (very fast): The result will return data that is about 4.8 seconds old. - This governs the "oauth2.token_hook.url" setting. + Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency + controls to more APIs. Currently, the following APIs will be affected by this setting: + + `GET /admin/identities` + + Defaults to "strong" for new and existing projects. This feature is in preview. Use with caution. type: string - hydra_oidc_dynamic_client_registration_default_scope: + kratos_secrets_cipher: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_oidc_dynamic_client_registration_enabled: - description: |- - Configures OpenID Connect Dynamic Client Registration. - - This governs the "oidc.dynamic_client_registration.enabled" setting. - type: boolean - hydra_oidc_subject_identifiers_pairwise_salt: - description: |- - Configures OpenID Connect Discovery and overwrites the pairwise algorithm - - This governs the "oidc.subject_identifiers.pairwise_salt" setting. - type: string - hydra_oidc_subject_identifiers_supported_types: + kratos_secrets_cookie: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_secrets_cookie: + kratos_secrets_default: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_secrets_system: + kratos_selfservice_allowed_return_urls: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - hydra_serve_cookies_same_site_legacy_workaround: + kratos_selfservice_default_browser_return_url: description: |- - Configures the Ory Hydra Cookie Same Site Legacy Workaround + Configures the Ory Kratos Default Return URL - This governs the "serve.cookies.same_site_legacy_workaround" setting. - type: boolean - hydra_serve_cookies_same_site_mode: + This governs the "selfservice.allowed_return_urls" setting. + type: string + kratos_selfservice_flows_error_ui_url: description: |- - Configures the Ory Hydra Cookie Same Site Mode + Configures the Ory Kratos Error UI URL + + This governs the "selfservice.flows.error.ui_url" setting. + type: string + kratos_selfservice_flows_login_after_code_default_browser_return_url: + description: |- + Configures the Ory Kratos Login After Password Default Return URL + + This governs the "selfservice.flows.code.after.password.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_login_after_default_browser_return_url: + description: |- + Configures the Ory Kratos Login Default Return URL + + This governs the "selfservice.flows.login.after.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url: + description: |- + Configures the Ory Kratos Login After Password Default Return URL + + This governs the "selfservice.flows.lookup_secret.after.password.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_login_after_oidc_default_browser_return_url: + description: |- + Configures the Ory Kratos Login After OIDC Default Return URL - This governs the "serve.cookies.same_site_mode" setting. + This governs the "selfservice.flows.login.after.oidc.default_browser_return_url" setting. type: string - hydra_strategies_access_token: - default: opaque + kratos_selfservice_flows_login_after_password_default_browser_return_url: description: |- - Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens + Configures the Ory Kratos Login After Password Default Return URL - This governs the "strategies.access_token" setting. - opaque Oauth2AccessTokenStrategyOpaque - jwt Oauth2AccessTokenStrategyJwt - enum: - - opaque - - jwt + This governs the "selfservice.flows.login.after.password.default_browser_return_url" setting. type: string - x-go-enum-desc: |- - opaque Oauth2AccessTokenStrategyOpaque - jwt Oauth2AccessTokenStrategyJwt - hydra_strategies_scope: - default: wildcard + kratos_selfservice_flows_login_after_totp_default_browser_return_url: description: |- - Defines how scopes are matched. For more details have a look at https://github.com/ory/fosite#scopes + Configures the Ory Kratos Login After Password Default Return URL - This governs the "strategies.scope" setting. - exact Oauth2ScopeStrategyExact - wildcard Oauth2ScopeStrategyWildcard - enum: - - exact - - wildcard - type: string - x-go-enum-desc: |- - exact Oauth2ScopeStrategyExact - wildcard Oauth2ScopeStrategyWildcard - hydra_ttl_access_token: - default: 30m - description: This governs the "ttl.access_token" setting. - example: 1h - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "selfservice.flows.totp.after.password.default_browser_return_url" setting. type: string - hydra_ttl_auth_code: - default: 720h + kratos_selfservice_flows_login_after_webauthn_default_browser_return_url: description: |- - Configures how long refresh tokens are valid. - - Set to -1 for refresh tokens to never expire. This is not recommended! + Configures the Ory Kratos Login After WebAuthn Default Return URL - This governs the "ttl.auth_code" setting. - example: 30m - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "selfservice.flows.login.after.webauthn.default_browser_return_url" setting. type: string - hydra_ttl_id_token: - default: 30m - description: This governs the "ttl.id_token" setting. - example: 1h - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + kratos_selfservice_flows_login_lifespan: + description: |- + Configures the Ory Kratos Login Lifespan + + This governs the "selfservice.flows.login.lifespan" setting. type: string - hydra_ttl_login_consent_request: - default: 30m + kratos_selfservice_flows_login_ui_url: description: |- - Configures how long a user login and consent flow may take. + Configures the Ory Kratos Login UI URL - This governs the "ttl.login_consent_request" setting. - example: 1h - pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + This governs the "selfservice.flows.login.ui_url" setting. type: string - hydra_ttl_refresh_token: - default: 720h + kratos_selfservice_flows_logout_after_default_browser_return_url: description: |- - Configures how long refresh tokens are valid. + Configures the Ory Kratos Logout Default Return URL - Set to -1 for refresh tokens to never expire. This is not recommended! + This governs the "selfservice.flows.logout.after.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_recovery_after_default_browser_return_url: + description: |- + Configures the Ory Kratos Recovery Default Return URL - This governs the "ttl.refresh_token" setting. - example: 30m - pattern: "^([0-9]+(ns|us|ms|s|m|h)|-1)$" + This governs the "selfservice.flows.recovery.after.default_browser_return_url" setting. type: string - hydra_urls_consent: + kratos_selfservice_flows_recovery_enabled: description: |- - Sets the OAuth2 Consent Endpoint URL of the OAuth2 User Login & Consent flow. + Configures the Ory Kratos Recovery Enabled Setting - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.recovery.enabled" setting. + type: boolean + kratos_selfservice_flows_recovery_lifespan: + description: |- + Configures the Ory Kratos Recovery Lifespan - This governs the "urls.consent" setting. + This governs the "selfservice.flows.recovery.lifespan" setting. type: string - hydra_urls_error: + kratos_selfservice_flows_recovery_notify_unknown_recipients: description: |- - Sets the OAuth2 Error URL of the OAuth2 User Login & Consent flow. + Configures whether to notify unknown recipients of a Ory Kratos recovery flow - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.recovery.notify_unknown_recipients" setting. + type: boolean + kratos_selfservice_flows_recovery_ui_url: + description: |- + Configures the Ory Kratos Recovery UI URL - This governs the "urls.error" setting. + This governs the "selfservice.flows.recovery.ui_url" setting. type: string - hydra_urls_login: + kratos_selfservice_flows_recovery_use: description: |- - Sets the OAuth2 Login Endpoint URL of the OAuth2 User Login & Consent flow. + Configures the Ory Kratos Recovery strategy to use ("link" or "code") - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.recovery.use" setting. + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + enum: + - link + - code + type: string + x-go-enum-desc: |- + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + kratos_selfservice_flows_registration_after_code_default_browser_return_url: + description: |- + Configures the Ory Kratos Registration After Code Default Return URL - This governs the "urls.login" setting. + This governs the "selfservice.flows.registration.after.code.default_browser_return_url" setting. type: string - hydra_urls_logout: + kratos_selfservice_flows_registration_after_default_browser_return_url: description: |- - Sets the logout endpoint. + Configures the Ory Kratos Registration Default Return URL - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.registration.after.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_registration_after_oidc_default_browser_return_url: + description: |- + Configures the Ory Kratos Registration After OIDC Default Return URL - This governs the "urls.logout" setting. + This governs the "selfservice.flows.registration.after.oidc.default_browser_return_url" setting. type: string - hydra_urls_post_logout_redirect: + kratos_selfservice_flows_registration_after_password_default_browser_return_url: description: |- - When an OAuth2-related user agent requests to log out, they will be redirected to this url afterwards per default. + Configures the Ory Kratos Registration After Password Default Return URL - Defaults to the Ory Account Experience in development and your application in production mode when a custom domain is connected. + This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. + type: string + kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url: + description: |- + Configures the Ory Kratos Registration After Password Default Return URL - This governs the "urls.post_logout_redirect" setting. + This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. type: string - hydra_urls_registration: + kratos_selfservice_flows_registration_enabled: description: |- - Sets the OAuth2 Registration Endpoint URL of the OAuth2 User Login & Consent flow. + Configures the Whether Ory Kratos Registration is Enabled - Defaults to the Ory Account Experience if left empty. + This governs the "selfservice.flows.registration.enabled" setting.0 + type: boolean + kratos_selfservice_flows_registration_lifespan: + description: |- + Configures the Ory Kratos Registration Lifespan - This governs the "urls.registration" setting. + This governs the "selfservice.flows.registration.lifespan" setting. type: string - hydra_urls_self_issuer: + kratos_selfservice_flows_registration_login_hints: description: |- - This value will be used as the issuer in access and ID tokens. It must be specified and using HTTPS protocol, unless the development mode is enabled. + Configures the Ory Kratos Registration Login Hints - On the Ory Network it will be very rare that you want to modify this value. If left empty, it will default to the correct value for the Ory Network. + Shows helpful information when a user tries to sign up with a duplicate account. - This governs the "urls.self.issuer" setting. - type: string - hydra_webfinger_jwks_broadcast_keys: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_webfinger_oidc_discovery_auth_url: + This governs the "selfservice.flows.registration.login_hints" setting. + type: boolean + kratos_selfservice_flows_registration_ui_url: description: |- - Configures OpenID Connect Discovery and overwrites the OAuth2 Authorization URL. + Configures the Ory Kratos Registration UI URL - This governs the "webfinger.oidc.discovery.auth_url" setting. + This governs the "selfservice.flows.registration.ui_url" setting. type: string - hydra_webfinger_oidc_discovery_client_registration_url: + kratos_selfservice_flows_settings_after_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites the OpenID Connect Dynamic Client Registration Endpoint. + Configures the Ory Kratos Settings Default Return URL - This governs the "webfinger.oidc.discovery.client_registration_url" setting. + This governs the "selfservice.flows.settings.after.default_browser_return_url" setting. type: string - hydra_webfinger_oidc_discovery_jwks_url: + kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites the JWKS URL. + Configures the Ory Kratos Settings Default Return URL After Updating Lookup Secrets - This governs the "webfinger.oidc.discovery.jwks_url" setting. + This governs the "selfservice.flows.settings.after.lookup_secret.default_browser_return_url" setting. type: string - hydra_webfinger_oidc_discovery_supported_claims: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_webfinger_oidc_discovery_supported_scope: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - hydra_webfinger_oidc_discovery_token_url: + kratos_selfservice_flows_settings_after_oidc_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites the OAuth2 Token URL. + Configures the Ory Kratos Settings Default Return URL After Updating Social Sign In - This governs the "webfinger.oidc.discovery.token_url" setting. + This governs the "selfservice.flows.settings.after.oidc.default_browser_return_url" setting. type: string - hydra_webfinger_oidc_discovery_userinfo_url: + kratos_selfservice_flows_settings_after_password_default_browser_return_url: description: |- - Configures OpenID Connect Discovery and overwrites userinfo endpoint to be advertised at the OpenID Connect Discovery endpoint /.well-known/openid-configuration. Defaults to Ory Hydra's userinfo endpoint at /userinfo. Set this value if you want to handle this endpoint yourself. + Configures the Ory Kratos Settings Default Return URL After Updating Passwords - This governs the "webfinger.oidc.discovery.userinfo_url" setting. + This governs the "selfservice.flows.settings.after.password.default_browser_return_url" setting. type: string - id: - description: The revision ID. - format: uuid - readOnly: true + kratos_selfservice_flows_settings_after_profile_default_browser_return_url: + description: |- + Configures the Ory Kratos Settings Default Return URL After Updating Profiles + + This governs the "selfservice.flows.settings.after.profile.default_browser_return_url" setting. type: string - keto_namespace_configuration: + kratos_selfservice_flows_settings_after_totp_default_browser_return_url: description: |- - The Revisions' Keto Namespace Configuration + Configures the Ory Kratos Settings Default Return URL After Updating TOTP - The string is a URL pointing to an OPL file with the configuration. + This governs the "selfservice.flows.settings.after.totp.default_browser_return_url" setting. type: string - keto_namespaces: - items: - $ref: '#/components/schemas/KetoNamespace' - type: array - kratos_cookies_same_site: + kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url: description: |- - Configures the Ory Kratos Cookie SameSite Attribute + Configures the Ory Kratos Settings Default Return URL After Updating WebAuthn - This governs the "cookies.same_site" setting. + This governs the "selfservice.flows.settings.webauthn.profile.default_browser_return_url" setting. type: string - kratos_courier_channels: - items: - $ref: '#/components/schemas/NormalizedProjectRevisionCourierChannel' - type: array - kratos_courier_delivery_strategy: - default: smtp + kratos_selfservice_flows_settings_lifespan: description: |- - The delivery strategy to use when sending emails + Configures the Ory Kratos Settings Lifespan - `smtp`: Use SMTP server - `http`: Use the built in HTTP client to send the email to some remote service + This governs the "selfservice.flows.settings.lifespan" setting. type: string - kratos_courier_http_request_config_auth_api_key_in: + kratos_selfservice_flows_settings_privileged_session_max_age: description: |- - The location of the API key to use in the HTTP email sending service's authentication + Configures the Ory Kratos Settings Privileged Session Max Age - `header`: Send the key value pair as a header - `cookie`: Send the key value pair as a cookie - This governs the "courier.http.auth.config.in" setting + This governs the "selfservice.flows.settings.privileged_session_max_age" setting. type: string - kratos_courier_http_request_config_auth_api_key_name: + kratos_selfservice_flows_settings_required_aal: description: |- - The name of the API key to use in the HTTP email sending service's authentication + Configures the Ory Kratos Settings Required AAL - This governs the "courier.http.auth.config.name" setting + This governs the "selfservice.flows.settings.required_aal" setting. type: string - kratos_courier_http_request_config_auth_api_key_value: + kratos_selfservice_flows_settings_ui_url: description: |- - The value of the API key to use in the HTTP email sending service's authentication + Configures the Ory Kratos Settings UI URL - This governs the "courier.http.auth.config.value" setting + This governs the "selfservice.flows.settings.ui_url" setting. type: string - kratos_courier_http_request_config_auth_basic_auth_password: + kratos_selfservice_flows_verification_after_default_browser_return_url: description: |- - The password to use for basic auth in the HTTP email sending service's authentication + Configures the Ory Kratos Verification Default Return URL - This governs the "courier.http.auth.config.password" setting + This governs the "selfservice.flows.verification.after.default_browser_return_url" setting. type: string - kratos_courier_http_request_config_auth_basic_auth_user: + kratos_selfservice_flows_verification_enabled: description: |- - The user to use for basic auth in the HTTP email sending service's authentication + Configures the Ory Kratos Verification Enabled Setting - This governs the "courier.http.auth.config.user" setting - type: string - kratos_courier_http_request_config_auth_type: - default: empty (no authentication) + This governs the "selfservice.flows.verification.enabled" setting. + type: boolean + kratos_selfservice_flows_verification_lifespan: description: |- - The authentication type to use while contacting the remote HTTP email sending service + Configures the Ory Kratos Verification Lifespan - `basic_auth`: Use Basic Authentication - `api_key`: Use API Key Authentication in a header or cookie + This governs the "selfservice.flows.verification.lifespan" setting. type: string - kratos_courier_http_request_config_body: + kratos_selfservice_flows_verification_notify_unknown_recipients: description: |- - The Jsonnet template to generate the body to send to the remote HTTP email sending service + Configures whether to notify unknown recipients of a Ory Kratos verification flow - Should be valid Jsonnet and base64 encoded + This governs the "selfservice.flows.verification.notify_unknown_recipients" setting. + type: boolean + kratos_selfservice_flows_verification_ui_url: + description: |- + Configures the Ory Kratos Verification UI URL - This governs the "courier.http.body" setting - type: string - kratos_courier_http_request_config_headers: - description: "NullJSONRawMessage represents a json.RawMessage that works\ - \ well with JSON, SQL, and Swagger and is NULLable-" - nullable: true - type: object - kratos_courier_http_request_config_method: - default: POST - description: The http METHOD to use when calling the remote HTTP email sending - service + This governs the "selfservice.flows.verification.ui_url" setting. type: string - kratos_courier_http_request_config_url: + kratos_selfservice_flows_verification_use: description: |- - The URL of the remote HTTP email sending service + Configures the Ory Kratos Strategy to use for Verification - This governs the "courier.http.url" setting + This governs the "selfservice.flows.verification.use" setting. + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + enum: + - link + - code type: string - kratos_courier_smtp_connection_uri: + x-go-enum-desc: |- + link SelfServiceMessageVerificationStrategyLink + code SelfServiceMessageVerificationStrategyCode + kratos_selfservice_methods_code_config_lifespan: description: |- - Configures the Ory Kratos SMTP Connection URI + Configures the Ory Kratos Code Method's lifespan - This governs the "courier.smtp.connection_uri" setting. + This governs the "selfservice.methods.code.config.lifespan" setting. type: string - kratos_courier_smtp_from_address: + kratos_selfservice_methods_code_enabled: description: |- - Configures the Ory Kratos SMTP From Address + Configures whether Ory Kratos Code Method is enabled - This governs the "courier.smtp.from_address" setting. - type: string - kratos_courier_smtp_from_name: + This governs the "selfservice.methods.code.enabled" setting. + type: boolean + kratos_selfservice_methods_code_mfa_enabled: description: |- - Configures the Ory Kratos SMTP From Name + Configues whether the code method can be used to fulfil MFA flows - This governs the "courier.smtp.from_name" setting. - type: string - kratos_courier_smtp_headers: - description: "NullJSONRawMessage represents a json.RawMessage that works\ - \ well with JSON, SQL, and Swagger and is NULLable-" - nullable: true - type: object - kratos_courier_smtp_local_name: + This governs the "selfservice.methods.code.mfa_enabled" setting. + type: boolean + kratos_selfservice_methods_code_passwordless_enabled: description: |- - Configures the local_name to use in SMTP connections + Configues whether Ory Kratos Passwordless should use the Code Method - This governs the "courier.smtp.local_name" setting. - type: string - kratos_courier_templates_login_code_valid_email_body_html: + This governs the "selfservice.methods.code.passwordless_enabled" setting. + type: boolean + kratos_selfservice_methods_link_config_base_url: description: |- - Configures the Ory Kratos Valid Login via Code Email Body HTML Template + Configures the Base URL which Recovery, Verification, and Login Links Point to - This governs the "courier.smtp.templates.login_code.valid.email.body.html" setting. + It is recommended to leave this value empty. It will be appropriately configured to the best matching domain + (e.g. when using custom domains) automatically. + + This governs the "selfservice.methods.link.config.base_url" setting. type: string - kratos_courier_templates_login_code_valid_email_body_plaintext: + kratos_selfservice_methods_link_config_lifespan: description: |- - Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template + Configures the Ory Kratos Link Method's lifespan - This governs the "courier.smtp.templates.login_code.valid.email.body.plaintext" setting. + This governs the "selfservice.methods.link.config.lifespan" setting. type: string - kratos_courier_templates_login_code_valid_email_subject: + kratos_selfservice_methods_link_enabled: description: |- - Configures the Ory Kratos Valid Login via Code Email Subject Template + Configures whether Ory Kratos Link Method is enabled - This governs the "courier.smtp.templates.login_code.valid.email.subject" setting. - type: string - kratos_courier_templates_recovery_code_invalid_email_body_html: + This governs the "selfservice.methods.link.enabled" setting. + type: boolean + kratos_selfservice_methods_lookup_secret_enabled: description: |- - Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template + Configures whether Ory Kratos TOTP Lookup Secret is enabled - This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_code_invalid_email_body_plaintext: + This governs the "selfservice.methods.lookup_secret.enabled" setting. + type: boolean + kratos_selfservice_methods_oidc_config_base_redirect_uri: description: |- - Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template + Configures the Ory Kratos Third Party / OpenID Connect base redirect URI - This governs the "courier.smtp.templates.recovery_code.invalid.email.body.plaintext" setting. + This governs the "selfservice.methods.oidc.config.base_redirect_uri" setting. type: string - kratos_courier_templates_recovery_code_invalid_email_subject: + kratos_selfservice_methods_oidc_config_providers: + items: + $ref: '#/components/schemas/normalizedProjectRevisionThirdPartyProvider' + type: array + kratos_selfservice_methods_oidc_enabled: description: |- - Configures the Ory Kratos Invalid Recovery via Code Email Subject Template + Configures whether Ory Kratos Third Party / OpenID Connect Login is enabled - This governs the "courier.smtp.templates.recovery_code.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_code_valid_email_body_html: + This governs the "selfservice.methods.oidc.enabled" setting. + type: boolean + kratos_selfservice_methods_password_config_haveibeenpwned_enabled: description: |- - Configures the Ory Kratos Valid Recovery via Code Email Body HTML Template + Configures whether Ory Kratos Password HIBP Checks is enabled - This governs the "courier.smtp.templates.recovery_code.valid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_code_valid_email_body_plaintext: + This governs the "selfservice.methods.password.config.haveibeenpwned_enabled" setting. + type: boolean + kratos_selfservice_methods_password_config_identifier_similarity_check_enabled: description: |- - Configures the Ory Kratos Valid Recovery via Code Email Body Plaintext Template + Configures whether Ory Kratos Password should disable the similarity policy. - This governs the "courier.smtp.templates.recovery_code.valid.email.body.plaintext" setting. - type: string - kratos_courier_templates_recovery_code_valid_email_subject: + This governs the "selfservice.methods.password.config.identifier_similarity_check_enabled" setting. + type: boolean + kratos_selfservice_methods_password_config_ignore_network_errors: description: |- - Configures the Ory Kratos Valid Recovery via Code Email Subject Template + Configures whether Ory Kratos Password Should ignore HIBPWND Network Errors - This governs the "courier.smtp.templates.recovery_code.valid.email.subject" setting. - type: string - kratos_courier_templates_recovery_invalid_email_body_html: + This governs the "selfservice.methods.password.config.ignore_network_errors" setting. + type: boolean + kratos_selfservice_methods_password_config_max_breaches: description: |- - Configures the Ory Kratos Invalid Recovery Email Body HTML Template + Configures Ory Kratos Password Max Breaches Detection - This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_invalid_email_body_plaintext: + This governs the "selfservice.methods.password.config.max_breaches" setting. + format: int64 + type: integer + kratos_selfservice_methods_password_config_min_password_length: description: |- - Configures the Ory Kratos Invalid Recovery Email Body Plaintext Template + Configures the minimum length of passwords. - This governs the "courier.smtp.templates.recovery.invalid.email.body.plaintext" setting. - type: string - kratos_courier_templates_recovery_invalid_email_subject: + This governs the "selfservice.methods.password.config.min_password_length" setting. + format: int64 + type: integer + kratos_selfservice_methods_password_enabled: description: |- - Configures the Ory Kratos Invalid Recovery Email Subject Template + Configures whether Ory Kratos Password Method is enabled - This governs the "courier.smtp.templates.recovery.invalid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_valid_email_body_html: + This governs the "selfservice.methods.password.enabled" setting. + type: boolean + kratos_selfservice_methods_profile_enabled: description: |- - Configures the Ory Kratos Valid Recovery Email Body HTML Template + Configures whether Ory Kratos Profile Method is enabled - This governs the "courier.smtp.templates.recovery.valid.email.body.html" setting. - type: string - kratos_courier_templates_recovery_valid_email_body_plaintext: + This governs the "selfservice.methods.profile.enabled" setting. + type: boolean + kratos_selfservice_methods_totp_config_issuer: description: |- - Configures the Ory Kratos Valid Recovery Email Body Plaintext Template + Configures Ory Kratos TOTP Issuer - This governs the "courier.smtp.templates.recovery.valid.email.body.plaintext" setting. + This governs the "selfservice.methods.totp.config.issuer" setting. type: string - kratos_courier_templates_recovery_valid_email_subject: + kratos_selfservice_methods_totp_enabled: description: |- - Configures the Ory Kratos Valid Recovery Email Subject Template + Configures whether Ory Kratos TOTP Method is enabled - This governs the "courier.smtp.templates.recovery.valid.email.subject" setting. - type: string - kratos_courier_templates_registration_code_valid_email_body_html: + This governs the "selfservice.methods.totp.enabled" setting. + type: boolean + kratos_selfservice_methods_webauthn_config_passwordless: description: |- - Configures the Ory Kratos Valid Registration via Code Email Body HTML Template + Configures whether Ory Kratos Webauthn is used for passwordless flows - This governs the "courier.smtp.templates.registration_code.valid.email.body.html" setting. + This governs the "selfservice.methods.webauthn.config.passwordless" setting. + type: boolean + kratos_selfservice_methods_webauthn_config_rp_display_name: + description: |- + Configures the Ory Kratos Webauthn RP Display Name + + This governs the "selfservice.methods.webauthn.config.rp.display_name" setting. type: string - kratos_courier_templates_registration_code_valid_email_body_plaintext: + kratos_selfservice_methods_webauthn_config_rp_icon: description: |- - Configures the Ory Kratos Valid Registration via Code Email Body Plaintext Template + Configures the Ory Kratos Webauthn RP Icon - This governs the "courier.smtp.templates.registration_code.valid.email.body.plaintext" setting. + This governs the "selfservice.methods.webauthn.config.rp.icon" setting. + Deprecated: This value will be ignored due to security considerations. type: string - kratos_courier_templates_registration_code_valid_email_subject: + kratos_selfservice_methods_webauthn_config_rp_id: description: |- - Configures the Ory Kratos Valid Registration via Code Email Subject Template + Configures the Ory Kratos Webauthn RP ID - This governs the "courier.smtp.templates.registration_code.valid.email.subject" setting. + This governs the "selfservice.methods.webauthn.config.rp.id" setting. type: string - kratos_courier_templates_verification_code_invalid_email_body_html: + kratos_selfservice_methods_webauthn_config_rp_origins: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + kratos_selfservice_methods_webauthn_enabled: description: |- - Configures the Ory Kratos Invalid Verification via Code Email Body HTML Template + Configures whether Ory Kratos Webauthn is enabled - This governs the "courier.smtp.templates.verification_code.invalid.email.body.html" setting. - type: string - kratos_courier_templates_verification_code_invalid_email_body_plaintext: + This governs the "selfservice.methods.webauthn.enabled" setting. + type: boolean + kratos_session_cookie_persistent: description: |- - Configures the Ory Kratos Invalid Verification via Code Email Body Plaintext Template + Configures the Ory Kratos Session Cookie Persistent Attribute - This governs the "courier.smtp.templates.verification_code.invalid.email.body.plaintext" setting. - type: string - kratos_courier_templates_verification_code_invalid_email_subject: + This governs the "session.cookie.persistent" setting. + type: boolean + kratos_session_cookie_same_site: description: |- - Configures the Ory Kratos Invalid Verification via Code Email Subject Template + Configures the Ory Kratos Session Cookie SameSite Attribute - This governs the "courier.smtp.templates.verification_code.invalid.email.subject" setting. + This governs the "session.cookie.same_site" setting. type: string - kratos_courier_templates_verification_code_valid_email_body_html: + kratos_session_lifespan: description: |- - Configures the Ory Kratos Valid Verification via Code Email Body HTML Template + Configures the Ory Kratos Session Lifespan - This governs the "courier.smtp.templates.verification_code.valid.email.body.html" setting. + This governs the "session.lifespan" setting. type: string - kratos_courier_templates_verification_code_valid_email_body_plaintext: + kratos_session_whoami_required_aal: description: |- - Configures the Ory Kratos Valid Verification via Code Email Body Plaintext Template + Configures the Ory Kratos Session Whoami AAL requirement - This governs the "courier.smtp.templates.verification_code.valid.email.body.plaintext" setting. + This governs the "session.whoami.required_aal" setting. type: string - kratos_courier_templates_verification_code_valid_email_subject: + kratos_session_whoami_tokenizer_templates: + items: + $ref: '#/components/schemas/normalizedProjectRevisionTokenizerTemplate' + type: array + name: + description: The project's name. + type: string + project_id: + description: The Revision's Project ID + format: uuid + type: string + project_revision_hooks: + items: + $ref: '#/components/schemas/normalizedProjectRevisionHook' + type: array + serve_admin_cors_allowed_origins: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + serve_admin_cors_enabled: description: |- - Configures the Ory Kratos Valid Verification via Code Email Subject Template + Enable CORS headers on all admin APIs - This governs the "courier.smtp.templates.verification_code.valid.email.subject" setting. - type: string - kratos_courier_templates_verification_code_valid_sms_body_plaintext: + This governs the "serve.admin.cors.enabled" setting. + type: boolean + serve_public_cors_allowed_origins: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + serve_public_cors_enabled: description: |- - Configures the Ory Kratos Valid Verification via Code SMS Body Plaintext + Enable CORS headers on all public APIs - This governs the "courier.smtp.templates.verification_code.valid.sms.body.plaintext" setting. + This governs the "serve.public.cors.enabled" setting. + type: boolean + strict_security: + description: Whether the project should employ strict security measures. + Setting this to true is recommended for going into production. + type: boolean + updated_at: + description: Last Time Project's Revision was Updated + format: date-time + readOnly: true type: string - kratos_courier_templates_verification_invalid_email_body_html: - description: |- - Configures the Ory Kratos Invalid Verification Email Body HTML Template + workspace_id: + format: uuid4 + nullable: true + type: string + required: + - environment + - name + type: object + CreateSubscriptionCommon: + properties: + currency: + description: |2- - This governs the "courier.smtp.templates.verification.invalid.email.body.html" setting. + usd USD + eur Euro + enum: + - usd + - eur type: string - kratos_courier_templates_verification_invalid_email_body_plaintext: - description: |- - Configures the Ory Kratos Invalid Verification Email Body Plaintext Template + x-go-enum-desc: |- + usd USD + eur Euro + interval: + description: |2- - This governs the "courier.smtp.templates.verification.invalid.email.body.plaintext" setting. + monthly Monthly + yearly Yearly + enum: + - monthly + - yearly type: string - kratos_courier_templates_verification_invalid_email_subject: + x-go-enum-desc: |- + monthly Monthly + yearly Yearly + plan: + type: string + return_to: + type: string + required: + - interval + - plan + type: object + CreateVerifiableCredentialRequestBody: + example: + types: + - types + - types + format: format + proof: + proof_type: proof_type + jwt: jwt + properties: + format: + type: string + proof: + $ref: '#/components/schemas/VerifiableCredentialProof' + types: + items: + type: string + type: array + title: CreateVerifiableCredentialRequestBody contains the request body to request + a verifiable credential. + type: object + CreateWorkspaceMemberInviteBody: + description: Create Workspace Invite Request Body + properties: + invitee_email: + description: A email to invite + type: string + type: object + CustomHostnameStatus: + title: CustomHostnameStatus is the enumeration of valid state values in the + CustomHostnameSSL. + type: string + DefaultError: {} + Duration: + description: |- + A Duration represents the elapsed time between two instants + as an int64 nanosecond count. The representation limits the + largest representable duration to approximately 290 years. + format: int64 + type: integer + GenericUsage: + properties: + additional_price: + description: AdditionalPrice is the price per-unit in cent exceeding IncludedUsage. + A price of 0 means that no other items can be consumed. + format: int64 + type: integer + included_usage: + description: IncludedUsage is the number of included items. + format: int64 + type: integer + required: + - additional_price + - included_usage + title: GenericUsage is the generic usage type that can be used for any feature. + type: object + ID: + format: int64 + type: integer + JSONRawMessage: + title: "JSONRawMessage represents a json.RawMessage that works well with JSON,\ + \ SQL, and Swagger." + type: object + KetoNamespace: + properties: + id: + format: int64 + type: integer + name: + type: string + type: object + KetoNamespaces: + items: + $ref: '#/components/schemas/KetoNamespace' + type: array + ListMyWorkspacesResponse: + properties: + has_next_page: + type: boolean + next_page_token: + type: string + workspaces: + items: + $ref: '#/components/schemas/workspaceMeta' + type: array + required: + - has_next_page + - next_page_token + - workspaces + type: object + NormalizedProjectRevisionCourierChannel: + properties: + channel_id: + description: The Channel's public ID + type: string + created_at: + description: The creation date + format: date-time + readOnly: true + type: string + request_config_auth_config_api_key_in: description: |- - Configures the Ory Kratos Invalid Verification Email Subject Template + API key location - This governs the "courier.smtp.templates.verification.invalid.email.subject" setting. + Can either be "header" or "query" + example: header type: string - kratos_courier_templates_verification_valid_email_body_html: + request_config_auth_config_api_key_name: description: |- - Configures the Ory Kratos Valid Verification Email Body HTML Template + API key name - This governs the "courier.smtp.templates.verification.valid.email.body.html" setting. + Only used if the auth type is api_key type: string - kratos_courier_templates_verification_valid_email_body_plaintext: + request_config_auth_config_api_key_value: description: |- - Configures the Ory Kratos Valid Verification Email Body Plaintext Template + API key value - This governs the "courier.smtp.templates.verification.valid.email.body.plaintext" setting. + Only used if the auth type is api_key type: string - kratos_courier_templates_verification_valid_email_subject: + request_config_auth_config_basic_auth_password: description: |- - Configures the Ory Kratos Valid Verification Email Subject Template + Basic Auth Password - This governs the "courier.smtp.templates.verification.valid.email.subject" setting. + Only used if the auth type is basic_auth type: string - kratos_feature_flags_cacheable_sessions: + request_config_auth_config_basic_auth_user: description: |- - Configures the Ory Kratos Session caching feature flag + Basic Auth Username - This governs the "feature_flags.cacheable_sessions" setting. - type: boolean - kratos_feature_flags_use_continue_with_transitions: + Only used if the auth type is basic_auth + type: string + request_config_auth_type: description: |- - Configures the Ory Kratos Session use_continue_with_transitions flag + HTTP Auth Method to use for the HTTP call - This governs the "feature_flags.use_continue_with_transitions" setting. - type: boolean - kratos_identity_schemas: - items: - $ref: '#/components/schemas/normalizedProjectRevisionIdentitySchema' - type: array - kratos_oauth2_provider_headers: + Can either be basic_auth or api_key + basic_auth CourierChannelAuthTypeBasicAuth + api_key CourierChannelAuthTypeApiKey + enum: + - basic_auth + - api_key + type: string + x-go-enum-desc: |- + basic_auth CourierChannelAuthTypeBasicAuth + api_key CourierChannelAuthTypeApiKey + request_config_body: + description: URI pointing to the JsonNet template used for HTTP body payload + generation. + type: string + request_config_headers: description: "NullJSONRawMessage represents a json.RawMessage that works\ \ well with JSON, SQL, and Swagger and is NULLable-" nullable: true type: object - kratos_oauth2_provider_override_return_to: - description: |- - Kratos OAuth2 Provider Override Return To - - Enabling this allows Kratos to set the return_to parameter automatically to the OAuth2 request URL on the login flow, allowing complex flows such as recovery to continue to the initial OAuth2 flow. + request_config_method: + description: "The HTTP method to use (GET, POST, etc) for the HTTP call" + example: POST + type: string + request_config_url: + type: string + updated_at: + description: Last upate time + format: date-time + readOnly: true + type: string + required: + - channel_id + - request_config_body + - request_config_method + type: object + NullBool: + nullable: true + type: boolean + NullDuration: + nullable: true + pattern: "^[0-9]+(ns|us|ms|s|m|h)$" + type: string + NullInt: + nullable: true + type: integer + NullString: + nullable: true + type: string + NullTime: + format: date-time + nullable: true + type: string + NullUUID: + format: uuid4 + nullable: true + type: string + OAuth2LoginChallengeParams: + type: object + OrganizationBody: + description: Create B2B SSO Organization Request Body + example: + domains: + - domains + - domains + label: label + properties: + domains: + description: Domains contains the list of organization's domains. + items: + type: string + type: array + label: + description: Label contains the organization's label. + type: string + type: object + ParseError: + example: + start: + Line: 0 + column: 6 + end: + Line: 0 + column: 6 + message: message + properties: + end: + $ref: '#/components/schemas/SourcePosition' + message: + type: string + start: + $ref: '#/components/schemas/SourcePosition' + type: object + Plan: + properties: + name: + description: Name is the name of the plan. + type: string + version: + description: Version is the version of the plan. The combination of `name@version` + must be unique. + format: int64 + type: integer + required: + - name + - version + type: object + PlanDetails: + properties: + base_fee_monthly: + description: BaseFeeMonthly is the monthly base fee for the plan. + format: int64 + type: integer + base_fee_yearly: + description: BaseFeeYearly is the yearly base fee for the plan. + format: int64 + type: integer + custom: + description: Custom is true if the plan is custom. This means it will be + hidden from the pricing page. type: boolean - kratos_oauth2_provider_url: - description: |- - The Revisions' OAuth2 Provider Integration URL - - This governs the "oauth2_provider.url" setting. + description: + description: Description is the description of the plan. type: string - kratos_preview_default_read_consistency_level: - description: |- - Configures the default read consistency level for identity APIs - - This governs the `preview.default_read_consistency_level` setting. - - The read consistency level determines the consistency guarantee for reads: - - strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. - eventual (very fast): The result will return data that is about 4.8 seconds old. + features: + additionalProperties: + $ref: '#/components/schemas/GenericUsage' + title: Features are the feature definitions included in the plan. + type: object + name: + description: Name is the name of the plan. + type: string + version: + description: Version is the version of the plan. The combination of `name@version` + must be unique. + format: int64 + type: integer + required: + - base_fee_monthly + - base_fee_yearly + - custom + - description + - features + - name + - version + type: object + PlanFeatures: + additionalProperties: + $ref: '#/components/schemas/GenericUsage' + title: Features are the feature definitions included in the plan. + type: object + Pricing: + items: + $ref: '#/components/schemas/PlanDetails' + type: array + ProjectEventsDatapoint: + properties: + attributes: + description: Event attributes with details + items: + $ref: '#/components/schemas/Attribute' + type: array + name: + description: Name of the event + type: string + timestamp: + description: Time of occurence + format: date-time + type: string + required: + - attributes + - name + - timestamp + type: object + RFC6749ErrorJson: + properties: + error: + type: string + error_debug: + type: string + error_description: + type: string + error_hint: + type: string + status_code: + format: int64 + type: integer + title: RFC6749ErrorJson is a helper struct for JSON encoding/decoding of RFC6749Error. + type: object + RecoveryAddressType: + title: RecoveryAddressType must not exceed 16 characters as that is the limitation + in the SQL Schema. + type: string + SessionActivityDatapoint: + properties: + country: + description: Country of the events + type: string + failed: + description: Number of events that failed in the given timeframe + format: int64 + type: integer + succeeded: + description: Number of events that succeeded in the given timeframe + format: int64 + type: integer + required: + - country + - failed + - succeeded + type: object + SourcePosition: + example: + Line: 0 + column: 6 + properties: + Line: + format: int64 + type: integer + column: + format: int64 + type: integer + type: object + String: + $ref: '#/components/schemas/NullString' + StringSliceJSONFormat: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + SubscriptionStatus: + description: |- + For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. - Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency - controls to more APIs. Currently, the following APIs will be affected by this setting: + A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. - `GET /admin/identities` + If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). - Defaults to "strong" for new and existing projects. This feature is in preview. Use with caution. + If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. + title: "Possible values are `incomplete`, `incomplete_expired`, `trialing`,\ + \ `active`, `past_due`, `canceled`, or `unpaid`." + type: string + Time: + format: date-time + type: string + UUID: + format: uuid4 + type: string + Usage: + properties: + GenericUsage: + $ref: '#/components/schemas/GenericUsage' + type: object + VerifiableCredentialProof: + example: + proof_type: proof_type + jwt: jwt + properties: + jwt: type: string - kratos_secrets_cipher: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - kratos_secrets_cookie: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - kratos_secrets_default: + proof_type: + type: string + title: VerifiableCredentialProof contains the proof of a verifiable credential. + type: object + Warning: + example: + code: 0 + message: message + properties: + code: + format: int64 + type: integer + message: + type: string + type: object + acceptOAuth2ConsentRequest: + properties: + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." + type: object + grant_access_token_audience: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - kratos_selfservice_allowed_return_urls: + grant_scope: items: type: string title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ \ JSON for SQL storage." type: array - kratos_selfservice_default_browser_return_url: - description: |- - Configures the Ory Kratos Default Return URL - - This governs the "selfservice.allowed_return_urls" setting. - type: string - kratos_selfservice_flows_error_ui_url: - description: |- - Configures the Ory Kratos Error UI URL - - This governs the "selfservice.flows.error.ui_url" setting. - type: string - kratos_selfservice_flows_login_after_code_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.code.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_default_browser_return_url: - description: |- - Configures the Ory Kratos Login Default Return URL - - This governs the "selfservice.flows.login.after.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.lookup_secret.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_oidc_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After OIDC Default Return URL - - This governs the "selfservice.flows.login.after.oidc.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_password_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.login.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_after_totp_default_browser_return_url: - description: |- - Configures the Ory Kratos Login After Password Default Return URL - - This governs the "selfservice.flows.totp.after.password.default_browser_return_url" setting. + handled_at: + format: date-time + title: NullTime implements sql.NullTime functionality. type: string - kratos_selfservice_flows_login_after_webauthn_default_browser_return_url: + remember: description: |- - Configures the Ory Kratos Login After WebAuthn Default Return URL - - This governs the "selfservice.flows.login.after.webauthn.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_login_lifespan: + Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same + client asks the same user for the same, or a subset of, scope. + type: boolean + remember_for: description: |- - Configures the Ory Kratos Login Lifespan - - This governs the "selfservice.flows.login.lifespan" setting. - type: string - kratos_selfservice_flows_login_ui_url: + RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the + authorization will be remembered indefinitely. + format: int64 + type: integer + session: + $ref: '#/components/schemas/acceptOAuth2ConsentRequestSession' + title: The request payload used to accept a consent request. + type: object + acceptOAuth2ConsentRequestSession: + example: + access_token: "" + id_token: "" + properties: + access_token: description: |- - Configures the Ory Kratos Login UI URL - - This governs the "selfservice.flows.login.ui_url" setting. - type: string - kratos_selfservice_flows_logout_after_default_browser_return_url: + AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the + refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. + If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties + can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! + id_token: description: |- - Configures the Ory Kratos Logout Default Return URL - - This governs the "selfservice.flows.logout.after.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_recovery_after_default_browser_return_url: + IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable + by anyone that has access to the ID Challenge. Use with care! + title: Pass session data to a consent request. + type: object + acceptOAuth2LoginRequest: + properties: + acr: description: |- - Configures the Ory Kratos Recovery Default Return URL - - This governs the "selfservice.flows.recovery.after.default_browser_return_url" setting. + ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it + to express that, for example, a user authenticated using two factor authentication. type: string - kratos_selfservice_flows_recovery_enabled: - description: |- - Configures the Ory Kratos Recovery Enabled Setting - - This governs the "selfservice.flows.recovery.enabled" setting. - type: boolean - kratos_selfservice_flows_recovery_lifespan: + amr: + items: + type: string + title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ + \ JSON for SQL storage." + type: array + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." + type: object + extend_session_lifespan: description: |- - Configures the Ory Kratos Recovery Lifespan + Extend OAuth2 authentication session lifespan - This governs the "selfservice.flows.recovery.lifespan" setting. - type: string - kratos_selfservice_flows_recovery_notify_unknown_recipients: - description: |- - Configures whether to notify unknown recipients of a Ory Kratos recovery flow + If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. - This governs the "selfservice.flows.recovery.notify_unknown_recipients" setting. + This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. type: boolean - kratos_selfservice_flows_recovery_ui_url: - description: |- - Configures the Ory Kratos Recovery UI URL - - This governs the "selfservice.flows.recovery.ui_url" setting. - type: string - kratos_selfservice_flows_recovery_use: - description: |- - Configures the Ory Kratos Recovery strategy to use ("link" or "code") - - This governs the "selfservice.flows.recovery.use" setting. - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode - enum: - - link - - code - type: string - x-go-enum-desc: |- - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode - kratos_selfservice_flows_registration_after_code_default_browser_return_url: - description: |- - Configures the Ory Kratos Registration After Code Default Return URL - - This governs the "selfservice.flows.registration.after.code.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_registration_after_default_browser_return_url: + force_subject_identifier: description: |- - Configures the Ory Kratos Registration Default Return URL + ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the + (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID + Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. - This governs the "selfservice.flows.registration.after.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_registration_after_oidc_default_browser_return_url: - description: |- - Configures the Ory Kratos Registration After OIDC Default Return URL + Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the + sub claim in the OAuth 2.0 Introspection. - This governs the "selfservice.flows.registration.after.oidc.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_registration_after_password_default_browser_return_url: - description: |- - Configures the Ory Kratos Registration After Password Default Return URL + Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself + you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in + ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's + configuration). - This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. + Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies + that you have to compute this value on every authentication process (probably depending on the client ID or some + other unique value). + + If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. type: string - kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url: + identity_provider_session_id: description: |- - Configures the Ory Kratos Registration After Password Default Return URL - - This governs the "selfservice.flows.registration.after.password.default_browser_return_url" setting. + IdentityProviderSessionID is the session ID of the end-user that authenticated. + If specified, we will use this value to propagate the logout. type: string - kratos_selfservice_flows_registration_enabled: + remember: description: |- - Configures the Whether Ory Kratos Registration is Enabled - - This governs the "selfservice.flows.registration.enabled" setting.0 + Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store + a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she + will not be asked to log in again. type: boolean - kratos_selfservice_flows_registration_lifespan: + remember_for: description: |- - Configures the Ory Kratos Registration Lifespan - - This governs the "selfservice.flows.registration.lifespan" setting. + RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the + authorization will be remembered for the duration of the browser session (using a session cookie). + format: int64 + type: integer + subject: + description: Subject is the user ID of the end-user that authenticated. type: string - kratos_selfservice_flows_registration_login_hints: + required: + - subject + title: HandledLoginRequest is the request payload used to accept a login request. + type: object + activeProjectInConsole: + description: The Active Project ID + example: + project_id: project_id + properties: + project_id: description: |- - Configures the Ory Kratos Registration Login Hints + The Active Project ID - Shows helpful information when a user tries to sign up with a duplicate account. + format: uuid + type: string + type: object + authenticatorAssuranceLevel: + description: |- + The authenticator assurance level can be one of "aal1", "aal2", or "aal3". A higher number means that it is harder + for an attacker to compromise the account. - This governs the "selfservice.flows.registration.login_hints" setting. - type: boolean - kratos_selfservice_flows_registration_ui_url: - description: |- - Configures the Ory Kratos Registration UI URL + Generally, "aal1" implies that one authentication factor was used while AAL2 implies that two factors (e.g. + password + TOTP) have been used. - This governs the "selfservice.flows.registration.ui_url" setting. + To learn more about these levels please head over to: https://www.ory.sh/kratos/docs/concepts/credentials + enum: + - aal0 + - aal1 + - aal2 + - aal3 + title: Authenticator Assurance Level (AAL) + type: string + batchPatchIdentitiesResponse: + description: Patch identities response + example: + identities: + - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + action: create + - patch_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + identity: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + action: create + properties: + identities: + description: The patch responses for the individual identities. + items: + $ref: '#/components/schemas/identityPatchResponse' + type: array + type: object + checkOplSyntaxBody: + description: Ory Permission Language Document + type: string + checkOplSyntaxResult: + example: + errors: + - start: + Line: 0 + column: 6 + end: + Line: 0 + column: 6 + message: message + - start: + Line: 0 + column: 6 + end: + Line: 0 + column: 6 + message: message + properties: + errors: + description: The list of syntax errors + items: + $ref: '#/components/schemas/ParseError' + type: array + title: CheckOPLSyntaxResponse represents the response for an OPL syntax check + request. + type: object + checkPermissionResult: + description: The content of the allowed field is mirrored in the HTTP status + code. + example: + allowed: true + properties: + allowed: + description: whether the relation tuple is allowed + type: boolean + required: + - allowed + title: Check Permission Result + type: object + cloudAccount: + properties: + email: type: string - kratos_selfservice_flows_settings_after_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL - - This governs the "selfservice.flows.settings.after.default_browser_return_url" setting. + id: + format: uuid type: string - kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Lookup Secrets - - This governs the "selfservice.flows.settings.after.lookup_secret.default_browser_return_url" setting. + name: type: string - kratos_selfservice_flows_settings_after_oidc_default_browser_return_url: + required: + - email + - id + - name + type: object + consistencyRequestParameters: + description: Control API consistency guarantees + properties: + consistency: description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Social Sign In + Read Consistency Level (preview) - This governs the "selfservice.flows.settings.after.oidc.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_password_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Passwords + The read consistency level determines the consistency guarantee for reads: - This governs the "selfservice.flows.settings.after.password.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_profile_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating Profiles + strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. + eventual (very fast): The result will return data that is about 4.8 seconds old. - This governs the "selfservice.flows.settings.after.profile.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_totp_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating TOTP + The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with + `ory patch project --replace '/previews/default_read_consistency_level="strong"'`. - This governs the "selfservice.flows.settings.after.totp.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url: - description: |- - Configures the Ory Kratos Settings Default Return URL After Updating WebAuthn + Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency + controls to more APIs. Currently, the following APIs will be affected by this setting: - This governs the "selfservice.flows.settings.webauthn.profile.default_browser_return_url" setting. - type: string - kratos_selfservice_flows_settings_lifespan: - description: |- - Configures the Ory Kratos Settings Lifespan + `GET /admin/identities` - This governs the "selfservice.flows.settings.lifespan" setting. + This feature is in preview and only available in Ory Network. + ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. + strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. + eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + enum: + - "" + - strong + - eventual type: string - kratos_selfservice_flows_settings_privileged_session_max_age: + x-go-enum-desc: |2- + ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. + strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. + eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + type: object + continueWith: + discriminator: + mapping: + set_ory_session_token: '#/components/schemas/continueWithSetOrySessionToken' + show_recovery_ui: '#/components/schemas/continueWithRecoveryUi' + show_settings_ui: '#/components/schemas/continueWithSettingsUi' + show_verification_ui: '#/components/schemas/continueWithVerificationUi' + propertyName: action + oneOf: + - $ref: '#/components/schemas/continueWithVerificationUi' + - $ref: '#/components/schemas/continueWithSetOrySessionToken' + - $ref: '#/components/schemas/continueWithSettingsUi' + - $ref: '#/components/schemas/continueWithRecoveryUi' + continueWithRecoveryUi: + description: "Indicates, that the UI flow could be continued by showing a recovery\ + \ ui" + properties: + action: description: |- - Configures the Ory Kratos Settings Privileged Session Max Age - - This governs the "selfservice.flows.settings.privileged_session_max_age" setting. + Action will always be `show_recovery_ui` + show_recovery_ui ContinueWithActionShowRecoveryUIString + enum: + - show_recovery_ui type: string - kratos_selfservice_flows_settings_required_aal: - description: |- - Configures the Ory Kratos Settings Required AAL - - This governs the "selfservice.flows.settings.required_aal" setting. + x-go-enum-desc: show_recovery_ui ContinueWithActionShowRecoveryUIString + flow: + $ref: '#/components/schemas/continueWithRecoveryUiFlow' + required: + - action + - flow + type: object + continueWithRecoveryUiFlow: + properties: + id: + description: The ID of the recovery flow + format: uuid type: string - kratos_selfservice_flows_settings_ui_url: - description: |- - Configures the Ory Kratos Settings UI URL - - This governs the "selfservice.flows.settings.ui_url" setting. + url: + description: The URL of the recovery flow type: string - kratos_selfservice_flows_verification_after_default_browser_return_url: + required: + - id + type: object + continueWithSetOrySessionToken: + description: "Indicates that a session was issued, and the application should\ + \ use this token for authenticated requests" + properties: + action: description: |- - Configures the Ory Kratos Verification Default Return URL - - This governs the "selfservice.flows.verification.after.default_browser_return_url" setting. + Action will always be `set_ory_session_token` + set_ory_session_token ContinueWithActionSetOrySessionTokenString + enum: + - set_ory_session_token type: string - kratos_selfservice_flows_verification_enabled: - description: |- - Configures the Ory Kratos Verification Enabled Setting - - This governs the "selfservice.flows.verification.enabled" setting. - type: boolean - kratos_selfservice_flows_verification_lifespan: - description: |- - Configures the Ory Kratos Verification Lifespan - - This governs the "selfservice.flows.verification.lifespan" setting. + x-go-enum-desc: set_ory_session_token ContinueWithActionSetOrySessionTokenString + ory_session_token: + description: Token is the token of the session type: string - kratos_selfservice_flows_verification_notify_unknown_recipients: - description: |- - Configures whether to notify unknown recipients of a Ory Kratos verification flow - - This governs the "selfservice.flows.verification.notify_unknown_recipients" setting. - type: boolean - kratos_selfservice_flows_verification_ui_url: + required: + - action + - ory_session_token + type: object + continueWithSettingsUi: + description: "Indicates, that the UI flow could be continued by showing a settings\ + \ ui" + properties: + action: description: |- - Configures the Ory Kratos Verification UI URL - - This governs the "selfservice.flows.verification.ui_url" setting. + Action will always be `show_settings_ui` + show_settings_ui ContinueWithActionShowSettingsUIString + enum: + - show_settings_ui type: string - kratos_selfservice_flows_verification_use: + x-go-enum-desc: show_settings_ui ContinueWithActionShowSettingsUIString + flow: + $ref: '#/components/schemas/continueWithSettingsUiFlow' + required: + - action + - flow + type: object + continueWithSettingsUiFlow: + properties: + id: + description: The ID of the settings flow + format: uuid + type: string + required: + - id + type: object + continueWithVerificationUi: + description: "Indicates, that the UI flow could be continued by showing a verification\ + \ ui" + properties: + action: description: |- - Configures the Ory Kratos Strategy to use for Verification - - This governs the "selfservice.flows.verification.use" setting. - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode + Action will always be `show_verification_ui` + show_verification_ui ContinueWithActionShowVerificationUIString enum: - - link - - code + - show_verification_ui type: string - x-go-enum-desc: |- - link SelfServiceMessageVerificationStrategyLink - code SelfServiceMessageVerificationStrategyCode - kratos_selfservice_methods_code_config_lifespan: - description: |- - Configures the Ory Kratos Code Method's lifespan - - This governs the "selfservice.methods.code.config.lifespan" setting. + x-go-enum-desc: show_verification_ui ContinueWithActionShowVerificationUIString + flow: + $ref: '#/components/schemas/continueWithVerificationUiFlow' + required: + - action + - flow + type: object + continueWithVerificationUiFlow: + properties: + id: + description: The ID of the verification flow + format: uuid type: string - kratos_selfservice_methods_code_enabled: - description: |- - Configures whether Ory Kratos Code Method is enabled - - This governs the "selfservice.methods.code.enabled" setting. - type: boolean - kratos_selfservice_methods_code_passwordless_enabled: - description: |- - Configues whether Ory Kratos Passwordless should use the Code Method - - This governs the "selfservice.methods.code.passwordless_enabled" setting. - type: boolean - kratos_selfservice_methods_link_config_base_url: - description: |- - Configures the Base URL which Recovery, Verification, and Login Links Point to - - It is recommended to leave this value empty. It will be appropriately configured to the best matching domain - (e.g. when using custom domains) automatically. - - This governs the "selfservice.methods.link.config.base_url" setting. + url: + description: The URL of the verification flow type: string - kratos_selfservice_methods_link_config_lifespan: - description: |- - Configures the Ory Kratos Link Method's lifespan - - This governs the "selfservice.methods.link.config.lifespan" setting. + verifiable_address: + description: The address that should be verified in this flow type: string - kratos_selfservice_methods_link_enabled: - description: |- - Configures whether Ory Kratos Link Method is enabled - - This governs the "selfservice.methods.link.enabled" setting. - type: boolean - kratos_selfservice_methods_lookup_secret_enabled: - description: |- - Configures whether Ory Kratos TOTP Lookup Secret is enabled - - This governs the "selfservice.methods.lookup_secret.enabled" setting. - type: boolean - kratos_selfservice_methods_oidc_config_base_redirect_uri: - description: |- - Configures the Ory Kratos Third Party / OpenID Connect base redirect URI - - This governs the "selfservice.methods.oidc.config.base_redirect_uri" setting. + required: + - id + - verifiable_address + type: object + courierMessageStatus: + description: A Message's Status + enum: + - queued + - sent + - processing + - abandoned + type: string + courierMessageType: + description: It can either be `email` or `phone` + enum: + - email + - phone + title: A Message's Type + type: string + createCustomDomainBody: + description: Create Custom Hostname Request Body + properties: + cookie_domain: + description: The domain where cookies will be set. Has to be a parent domain + of the custom hostname to work. type: string - kratos_selfservice_methods_oidc_config_providers: + cors_allowed_origins: + description: CORS Allowed origins for the custom hostname. items: - $ref: '#/components/schemas/normalizedProjectRevisionThirdPartyProvider' + type: string type: array - kratos_selfservice_methods_oidc_enabled: - description: |- - Configures whether Ory Kratos Third Party / OpenID Connect Login is enabled - - This governs the "selfservice.methods.oidc.enabled" setting. - type: boolean - kratos_selfservice_methods_password_config_haveibeenpwned_enabled: - description: |- - Configures whether Ory Kratos Password HIBP Checks is enabled - - This governs the "selfservice.methods.password.config.haveibeenpwned_enabled" setting. - type: boolean - kratos_selfservice_methods_password_config_identifier_similarity_check_enabled: - description: |- - Configures whether Ory Kratos Password should disable the similarity policy. - - This governs the "selfservice.methods.password.config.identifier_similarity_check_enabled" setting. - type: boolean - kratos_selfservice_methods_password_config_ignore_network_errors: - description: |- - Configures whether Ory Kratos Password Should ignore HIBPWND Network Errors - - This governs the "selfservice.methods.password.config.ignore_network_errors" setting. - type: boolean - kratos_selfservice_methods_password_config_max_breaches: - description: |- - Configures Ory Kratos Password Max Breaches Detection - - This governs the "selfservice.methods.password.config.max_breaches" setting. - format: int64 - type: integer - kratos_selfservice_methods_password_config_min_password_length: - description: |- - Configures the minimum length of passwords. - - This governs the "selfservice.methods.password.config.min_password_length" setting. - format: int64 - type: integer - kratos_selfservice_methods_password_enabled: - description: |- - Configures whether Ory Kratos Password Method is enabled - - This governs the "selfservice.methods.password.enabled" setting. - type: boolean - kratos_selfservice_methods_profile_enabled: - description: |- - Configures whether Ory Kratos Profile Method is enabled - - This governs the "selfservice.methods.profile.enabled" setting. + cors_enabled: + description: CORS Enabled for the custom hostname. type: boolean - kratos_selfservice_methods_totp_config_issuer: - description: |- - Configures Ory Kratos TOTP Issuer - - This governs the "selfservice.methods.totp.config.issuer" setting. + custom_ui_base_url: + description: The base URL where the custom user interface will be exposed. + type: string + hostname: + description: The custom hostname where the API will be exposed. + type: string + type: object + createEventStreamBody: + description: Create Event Stream Request Body + properties: + role_arn: + description: The AWS IAM role ARN to assume when publishing to the SNS topic. + type: string + topic_arn: + description: The AWS SNS topic ARN. + type: string + type: + description: "The type of the event stream (AWS SNS, GCP Pub/Sub, etc)." + enum: + - sns type: string - kratos_selfservice_methods_totp_enabled: - description: |- - Configures whether Ory Kratos TOTP Method is enabled - - This governs the "selfservice.methods.totp.enabled" setting. - type: boolean - kratos_selfservice_methods_webauthn_config_passwordless: + required: + - role_arn + - topic_arn + - type + type: object + createIdentityBody: + description: Create Identity Body + properties: + credentials: + $ref: '#/components/schemas/identityWithCredentials' + metadata_admin: + description: Store metadata about the user which is only accessible through + admin APIs such as `GET /admin/identities/`. + metadata_public: description: |- - Configures whether Ory Kratos Webauthn is used for passwordless flows - - This governs the "selfservice.methods.webauthn.config.passwordless" setting. - type: boolean - kratos_selfservice_methods_webauthn_config_rp_display_name: + Store metadata about the identity which the identity itself can see when calling for example the + session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. + recovery_addresses: description: |- - Configures the Ory Kratos Webauthn RP Display Name + RecoveryAddresses contains all the addresses that can be used to recover an identity. - This governs the "selfservice.methods.webauthn.config.rp.display_name" setting. + Use this structure to import recovery addresses for an identity. Please keep in mind + that the address needs to be represented in the Identity Schema or this field will be overwritten + on the next identity update. + items: + $ref: '#/components/schemas/recoveryIdentityAddress' + type: array + schema_id: + description: SchemaID is the ID of the JSON Schema to be used for validating + the identity's traits. type: string - kratos_selfservice_methods_webauthn_config_rp_icon: + state: description: |- - Configures the Ory Kratos Webauthn RP Icon - - This governs the "selfservice.methods.webauthn.config.rp.icon" setting. - Deprecated: This value will be ignored due to security considerations. + State is the identity's state. + active StateActive + inactive StateInactive + enum: + - active + - inactive type: string - kratos_selfservice_methods_webauthn_config_rp_id: + x-go-enum-desc: |- + active StateActive + inactive StateInactive + traits: description: |- - Configures the Ory Kratos Webauthn RP ID + Traits represent an identity's traits. The identity is able to create, modify, and delete traits + in a self-service manner. The input will always be validated against the JSON Schema defined + in `schema_url`. + type: object + verifiable_addresses: + description: |- + VerifiableAddresses contains all the addresses that can be verified by the user. - This governs the "selfservice.methods.webauthn.config.rp.id" setting. - type: string - kratos_selfservice_methods_webauthn_config_rp_origins: + Use this structure to import verified addresses for an identity. Please keep in mind + that the address needs to be represented in the Identity Schema or this field will be overwritten + on the next identity update. items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." + $ref: '#/components/schemas/verifiableIdentityAddress' type: array - kratos_selfservice_methods_webauthn_enabled: - description: |- - Configures whether Ory Kratos Webauthn is enabled - - This governs the "selfservice.methods.webauthn.enabled" setting. - type: boolean - kratos_session_cookie_persistent: + required: + - schema_id + - traits + type: object + createJsonWebKeySet: + description: Create JSON Web Key Set Request Body + properties: + alg: description: |- - Configures the Ory Kratos Session Cookie Persistent Attribute + JSON Web Key Algorithm - This governs the "session.cookie.persistent" setting. - type: boolean - kratos_session_cookie_same_site: + The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. + type: string + kid: description: |- - Configures the Ory Kratos Session Cookie SameSite Attribute + JSON Web Key ID - This governs the "session.cookie.same_site" setting. + The Key ID of the key to be created. type: string - kratos_session_lifespan: + use: description: |- - Configures the Ory Kratos Session Lifespan + JSON Web Key Use - This governs the "session.lifespan" setting. + The "use" (public key use) parameter identifies the intended use of + the public key. The "use" parameter is employed to indicate whether + a public key is used for encrypting data or verifying the signature + on data. Valid values are "enc" and "sig". type: string - kratos_session_whoami_required_aal: + required: + - alg + - kid + - use + type: object + createMemberInviteResponse: + $ref: '#/components/schemas/CreateInviteResponse' + createProjectBody: + description: Create Project Request Body + properties: + environment: description: |- - Configures the Ory Kratos Session Whoami AAL requirement - - This governs the "session.whoami.required_aal" setting. + The environment of the project. + prod Production + dev Development + enum: + - prod + - dev type: string - kratos_session_whoami_tokenizer_templates: - items: - $ref: '#/components/schemas/normalizedProjectRevisionTokenizerTemplate' - type: array + x-go-enum-desc: |- + prod Production + dev Development name: - description: The project's name. - type: string - project_id: - description: The Revision's Project ID - format: uuid - type: string - project_revision_hooks: - items: - $ref: '#/components/schemas/normalizedProjectRevisionHook' - type: array - serve_admin_cors_allowed_origins: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - serve_admin_cors_enabled: - description: |- - Enable CORS headers on all admin APIs - - This governs the "serve.admin.cors.enabled" setting. - type: boolean - serve_public_cors_allowed_origins: - items: - type: string - title: "StringSliceJSONFormat represents []string{} which is encoded to/from\ - \ JSON for SQL storage." - type: array - serve_public_cors_enabled: - description: |- - Enable CORS headers on all public APIs - - This governs the "serve.public.cors.enabled" setting. - type: boolean - strict_security: - description: Whether the project should employ strict security measures. - Setting this to true is recommended for going into production. - type: boolean - updated_at: - description: Last Time Project's Revision was Updated - format: date-time - readOnly: true + description: The name of the project to be created type: string workspace_id: format: uuid4 nullable: true type: string required: + - environment - name type: object + createProjectBranding: + description: Create a Project Branding + properties: + favicon_type: + type: string + favicon_url: + type: string + logo_type: + type: string + logo_url: + type: string + name: + type: string + theme: + $ref: '#/components/schemas/projectBrandingColors' + type: object createRecoveryCodeForIdentityBody: description: Create Recovery Code for Identity Request Body properties: @@ -9902,7 +10066,6 @@ components: $ref: '#/components/schemas/subjectSet' type: object createSubscriptionBody: - description: Create Subscription Request Body properties: currency: description: |2- @@ -9931,14 +10094,52 @@ components: plan: type: string provision_first_project: - format: uuid4 - nullable: true + format: uuid type: string return_to: type: string - workspace: - format: uuid4 - nullable: true + required: + - interval + - plan + - provision_first_project + type: object + createWorkspacePayload: + properties: + name: + description: The name of the workspace + type: string + required: + - name + type: object + createWorkspaceSubscriptionBody: + properties: + currency: + description: |2- + + usd USD + eur Euro + enum: + - usd + - eur + type: string + x-go-enum-desc: |- + usd USD + eur Euro + interval: + description: |2- + + monthly Monthly + yearly Yearly + enum: + - monthly + - yearly + type: string + x-go-enum-desc: |- + monthly Monthly + yearly Yearly + plan: + type: string + return_to: type: string required: - interval @@ -10261,6 +10462,10 @@ components: required: - type type: object + falsyNullBool: + description: It JSON decodes to false if null. + title: FalsyNullBool represents a bool that may be null. + type: boolean flowError: example: updated_at: 2000-01-23T04:56:07.000+00:00 @@ -10532,7 +10737,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -10571,7 +10776,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" properties: created_at: @@ -10624,7 +10829,19 @@ components: format: url type: string state: - $ref: '#/components/schemas/identityState' + description: |- + State is the identity's state. + + This value has currently no effect. + active StateActive + inactive StateInactive + enum: + - active + - inactive + type: string + x-go-enum-desc: |- + active StateActive + inactive StateInactive state_changed_at: format: date-time title: NullTime implements sql.NullTime functionality. @@ -10660,7 +10877,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 properties: @@ -10679,7 +10896,35 @@ components: type: string type: array type: - $ref: '#/components/schemas/identityCredentialsType' + description: |- + Type discriminates between different types of credentials. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 + enum: + - password + - oidc + - totp + - lookup_secret + - webauthn + - code + - link_recovery + - code_recovery + type: string + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 updated_at: description: UpdatedAt is a helper struct field for gobuffalo.pop. format: date-time @@ -10694,6 +10939,7 @@ components: description: CredentialsCode represents a one time login/registration code properties: address_type: + description: The type of the address for this code type: string used_at: format: date-time @@ -10734,18 +10980,6 @@ components: title: CredentialsPassword is contains the configuration for credentials of the type password. type: object - identityCredentialsType: - description: and so on. - enum: - - password - - totp - - oidc - - webauthn - - lookup_secret - - code - title: "CredentialsType represents several different credential types, like\ - \ password credentials, passwordless credentials," - type: string identityMetaSchema: description: Identity Meta Schema type: object @@ -10826,13 +11060,6 @@ components: items: $ref: '#/components/schemas/identitySchemaContainer' type: array - identityState: - description: The state can either be `active` or `inactive`. - enum: - - active - - inactive - title: An Identity's State - type: string identityTraits: description: |- Traits represent an identity's traits. The identity is able to create, modify, and delete traits @@ -10949,46 +11176,6 @@ components: required: - project_id type: object - internalProvisionMockSubscription: - description: Internal Provision Mock Subscription Request Body - properties: - currency: - description: |- - Currency - usd USD - eur Euro - enum: - - usd - - eur - type: string - x-go-enum-desc: |- - usd USD - eur Euro - identity_id: - description: Identity ID - format: uuid - type: string - interval: - description: |- - Billing Interval - monthly Monthly - yearly Yearly - enum: - - monthly - - yearly - type: string - x-go-enum-desc: |- - monthly Monthly - yearly Yearly - plan: - description: Plan ID - type: string - required: - - currency - - identity_id - - interval - - plan - type: object introspectedOAuth2Token: description: |- Introspection contains an access token's session data as specified by @@ -11374,6 +11561,21 @@ components: required: - organizations type: object + listWorkspaceProjectsResponse: + properties: + has_next_page: + type: boolean + next_page: + type: string + projects: + items: + $ref: '#/components/schemas/projectMetadata' + type: array + required: + - has_next_page + - next_page + - projects + type: object loginFlow: description: |- This object represents a login flow. A login flow is initiated at the "Initiate Login API / Browser Flow" @@ -11382,7 +11584,7 @@ components: Once a login flow is completed successfully, a session cookie or session token will be issued. example: requested_aal: null - active: null + active: password created_at: 2000-01-23T04:56:07.000+00:00 refresh: true return_to: return_to @@ -11458,6 +11660,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -11478,6 +11681,7 @@ components: requested_scope: - requested_scope - requested_scope + transient_payload: "{}" ui: nodes: - meta: @@ -11534,7 +11738,37 @@ components: state: "" properties: active: - $ref: '#/components/schemas/identityCredentialsType' + description: |- + The active login method + + If set contains the login method used. If the flow is new, it is unset. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 + enum: + - password + - oidc + - totp + - lookup_secret + - webauthn + - code + - link_recovery + - code_recovery + type: string + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 created_at: description: CreatedAt is a helper struct field for gobuffalo.pop. format: date-time @@ -11594,6 +11828,10 @@ components: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + transient_payload: + description: TransientPayload is used to pass data from the login to hooks + and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -11972,6 +12210,41 @@ components: - count - time type: object + migrationOptions: + properties: + environment: + description: |- + The environment of the project in the workspace. Can be one of "prod" or + "dev". Note that the number of projects in the "prod" environment is limited + depending on the subscription. + prod Production + dev Development + enum: + - prod + - dev + type: string + x-go-enum-desc: |- + prod Production + dev Development + project_subscription: + description: |- + The action to take with the project subscription. Can be one of "migrate", and + "ignore". "migrate" will migrate the project subscription to the workspace. + "ignore" will ignore the project subscription. + migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. + ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + enum: + - migrate + - ignore + type: string + x-go-enum-desc: |- + migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. + ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + required: + - environment + - project_subscription + title: MigrationOptions contain the options for migrating a project to a workspace. + type: object namespace: example: name: name @@ -12082,6 +12355,9 @@ components: description: "Whether to disable the account experience welcome screen,\ \ which is hosted under `/ui/welcome`." type: boolean + enable_ax_v2: + description: Whether the new account experience is enabled and reachable. + type: boolean hydra_oauth2_allowed_top_level_claims: items: type: string @@ -12136,6 +12412,12 @@ components: example: 30m pattern: "^[0-9]+(ns|us|ms|s|m|h)$" type: string + hydra_oauth2_mirror_top_level_claims: + description: |- + Set to false if you don't want to mirror custom claims under 'ext'. + + This governs the "oauth2.mirror_top_level_claims" setting. + type: boolean hydra_oauth2_pkce_enforced: description: |- Configures whether PKCE should be enforced for all OAuth2 Clients. @@ -12529,6 +12811,12 @@ components: This governs the "courier.smtp.templates.login_code.valid.email.subject" setting. type: string + kratos_courier_templates_login_code_valid_sms_body_plaintext: + description: |- + Configures the Ory Kratos Valid Login via Code SMS plain text body + + This governs the "courier.smtp.templates.login_code.valid.sms.plaintext" setting. + type: string kratos_courier_templates_recovery_code_invalid_email_body_html: description: |- Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template @@ -13066,6 +13354,12 @@ components: This governs the "selfservice.methods.code.enabled" setting. type: boolean + kratos_selfservice_methods_code_mfa_enabled: + description: |- + Configues whether the code method can be used to fulfil MFA flows + + This governs the "selfservice.methods.code.mfa_enabled" setting. + type: boolean kratos_selfservice_methods_code_passwordless_enabled: description: |- Configues whether Ory Kratos Passwordless should use the Code Method @@ -13456,6 +13750,9 @@ components: `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. example: contoso.onmicrosoft.com type: string + claims_source: + nullable: true + type: string client_id: description: ClientID is the application's Client ID. type: string @@ -13673,6 +13970,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -13946,6 +14244,11 @@ components: SkipConsent skips the consent screen for this client. This field can only be set from the admin API. type: boolean + skip_logout_consent: + description: |- + SkipLogoutConsent skips the logout consent screen for this client. This field can only + be set from the admin API. + type: boolean subject_type: description: |- OpenID Connect Subject Type @@ -14118,6 +14421,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -14348,6 +14652,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -14375,6 +14680,7 @@ components: session: access_token: "" id_token: "" + context: "{}" grant_access_token_audience: - grant_access_token_audience - grant_access_token_audience @@ -14386,6 +14692,10 @@ components: properties: consent_request: $ref: '#/components/schemas/oAuth2ConsentRequest' + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." + type: object expires_at: $ref: '#/components/schemas/oAuth2ConsentSession_expires_at' grant_access_token_audience: @@ -14496,6 +14806,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -14626,6 +14937,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -15297,6 +15609,14 @@ components: type: boolean description: Get Permissions on Project Request Parameters type: object + permissionsOnWorkpaceResponse: + description: Get Permissions on Project Request Parameters + properties: + permissions: + additionalProperties: + type: boolean + type: object + type: object plans: $ref: '#/components/schemas/Pricing' postCheckPermissionBody: @@ -15841,7 +16161,27 @@ components: - project_id type: object projectMember: - $ref: '#/components/schemas/cloudAccount' + example: + role: role + name: name + id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 + email: email + properties: + email: + type: string + id: + format: uuid + type: string + name: + type: string + role: + type: string + required: + - email + - id + - name + - role + type: object projectMembers: items: $ref: '#/components/schemas/projectMember' @@ -15850,6 +16190,7 @@ components: example: subscription_id: subscription_id workspace_id: workspace_id + environment: prod updated_at: 2000-01-23T04:56:07.000+00:00 hosts: - hosts @@ -15865,6 +16206,18 @@ components: description: The Project's Creation Date format: date-time type: string + environment: + description: |- + The environment of the project. + prod Production + dev Development + enum: + - prod + - dev + type: string + x-go-enum-desc: |- + prod Production + dev Development hosts: items: type: string @@ -15915,6 +16268,7 @@ components: type: string required: - created_at + - environment - hosts - id - name @@ -16017,9 +16371,12 @@ components: project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant + concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + permission_checks_rate_limit_tier RateLimitTierPermissionChecks + oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect enum: - region_eu - region_us @@ -16039,9 +16396,12 @@ components: - project_metrics_events_history - organizations - rop_grant + - concierge_onboarding - rate_limit_tier - session_rate_limit_tier - identities_list_rate_limit_tier + - permission_checks_rate_limit_tier + - oauth2_introspect_rate_limit_tier type: string x-go-enum-desc: |- region_eu RegionEU @@ -16062,9 +16422,12 @@ components: project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant + concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + permission_checks_rate_limit_tier RateLimitTierPermissionChecks + oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect feature_available: type: boolean included: @@ -16116,6 +16479,7 @@ components: We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery) example: expires_at: 2000-01-23T04:56:07.000+00:00 + transient_payload: "{}" ui: nodes: - meta: @@ -16217,6 +16581,10 @@ components: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. + transient_payload: + description: TransientPayload is used to pass data from the recovery flow + to hooks and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -16301,7 +16669,7 @@ components: type: object registrationFlow: example: - active: null + active: password return_to: return_to session_token_exchange_code: session_token_exchange_code type: type @@ -16375,6 +16743,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -16451,7 +16820,36 @@ components: state: "" properties: active: - $ref: '#/components/schemas/identityCredentialsType' + description: |- + Active, if set, contains the registration method that is being used. It is initially + not set. + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 + enum: + - password + - oidc + - totp + - lookup_secret + - webauthn + - code + - link_recovery + - code_recovery + type: string + x-go-enum-desc: |- + password CredentialsTypePassword + oidc CredentialsTypeOIDC + totp CredentialsTypeTOTP + lookup_secret CredentialsTypeLookup + webauthn CredentialsTypeWebAuthn + code CredentialsTypeCodeAuth + 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 expires_at: description: |- ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, @@ -16751,7 +17149,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -16790,7 +17188,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" authenticated_at: 2000-01-23T04:56:07.000+00:00 active: true @@ -17020,6 +17418,7 @@ components: We recommend reading the [User Settings Documentation](../self-service/flows/user-settings) example: expires_at: 2000-01-23T04:56:07.000+00:00 + transient_payload: "{}" ui: nodes: - meta: @@ -17078,7 +17477,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17117,7 +17516,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" continue_with: - null @@ -17178,6 +17577,10 @@ components: success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. "please use a valid phone number") data was sent. + transient_payload: + description: TransientPayload is used to pass data from the settings flow + to hooks and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -17206,11 +17609,6 @@ components: - success title: 'State represents the state of this flow. It knows two states:' type: string - stripeCustomer: - properties: - id: - type: string - type: object subjectSet: example: namespace: namespace @@ -17267,6 +17665,8 @@ components: description: The currently active plan of the subscription readOnly: true type: string + current_plan_details: + $ref: '#/components/schemas/PlanDetails' customer_id: description: The ID of the stripe customer readOnly: true @@ -17305,6 +17705,9 @@ components: title: "Possible values are `incomplete`, `incomplete_expired`, `trialing`,\ \ `active`, `past_due`, `canceled`, or `unpaid`." type: string + stripe_checkout_expires_at: + format: date-time + type: string updated_at: format: date-time readOnly: true @@ -17378,7 +17781,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17417,7 +17820,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" authenticated_at: 2000-01-23T04:56:07.000+00:00 active: true @@ -17453,7 +17856,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17492,7 +17895,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" session: tokenized: tokenized @@ -17527,7 +17930,7 @@ components: - identifiers - identifiers created_at: 2000-01-23T04:56:07.000+00:00 - type: null + type: password config: "{}" version: 0 state_changed_at: 2000-01-23T04:56:07.000+00:00 @@ -17566,7 +17969,7 @@ components: schema_id: schema_id schema_url: schema_url id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91 - state: null + state: active metadata_public: "{}" authenticated_at: 2000-01-23T04:56:07.000+00:00 active: true @@ -18359,7 +18762,17 @@ components: will update the Identity's SchemaID. type: string state: - $ref: '#/components/schemas/identityState' + description: |- + State is the identity's state. + active StateActive + inactive StateInactive + enum: + - active + - inactive + type: string + x-go-enum-desc: |- + active StateActive + inactive StateInactive traits: description: |- Traits represent an identity's traits. The identity is able to create, modify, and delete traits @@ -18409,6 +18822,9 @@ components: resend: description: Resend is set when the user wants to resend the code type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - csrf_token - method @@ -18467,6 +18883,9 @@ components: description: The identity traits. This is a placeholder for the registration flow. type: object + transient_payload: + description: Transient data to pass along to any webhooks + type: object upstream_parameters: description: |- UpstreamParameters are the parameters that are passed to the upstream identity provider. @@ -18504,6 +18923,9 @@ components: Identifier is the email or username of the user trying to log in. This field is deprecated! type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - identifier - method @@ -18523,6 +18945,9 @@ components: totp_code: description: The TOTP code. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method - totp_code @@ -18542,6 +18967,9 @@ components: description: Method should be set to "webAuthn" when logging in using the WebAuthn strategy. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object webauthn_login: description: |- Login a WebAuthn Security Key @@ -18602,6 +19030,9 @@ components: x-go-enum-desc: |- link RecoveryStrategyLink code RecoveryStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18636,6 +19067,9 @@ components: x-go-enum-desc: |- link RecoveryStrategyLink code RecoveryStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - email - method @@ -18838,6 +19272,9 @@ components: Should be set to "lookup" when trying to add, update, or remove a lookup pairing. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18871,6 +19308,9 @@ components: in: body type: object + transient_payload: + description: Transient data to pass along to any webhooks + type: object unlink: description: |- Unlink this provider @@ -18908,6 +19348,9 @@ components: password: description: Password is the updated password type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method - password @@ -18933,6 +19376,9 @@ components: The identity's traits. type: object + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method - traits @@ -18958,6 +19404,9 @@ components: effectively removing the credential. This can be used to set up a new TOTP device. type: boolean + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -18973,6 +19422,9 @@ components: Should be set to "webauthn" when trying to add, update, or remove a webAuthn pairing. type: string + transient_payload: + description: Transient data to pass along to any webhooks + type: object webauthn_register: description: |- Register a WebAuthn Security Key @@ -18996,7 +19448,6 @@ components: - method type: object updateSubscriptionBody: - description: Update Subscription Request Body properties: interval: description: |2- @@ -19067,6 +19518,9 @@ components: x-go-enum-desc: |- link VerificationStrategyLink code VerificationStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - method type: object @@ -19101,10 +19555,21 @@ components: x-go-enum-desc: |- link VerificationStrategyLink code VerificationStrategyCode + transient_payload: + description: Transient data to pass along to any webhooks + type: object required: - email - method type: object + updateWorkspacePayload: + properties: + name: + description: The name of the workspace. + type: string + required: + - name + type: object verifiableCredentialPrimingResponse: properties: c_nonce: @@ -19204,6 +19669,7 @@ components: For more information head over to: https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation example: expires_at: 2000-01-23T04:56:07.000+00:00 + transient_payload: "{}" ui: nodes: - meta: @@ -19300,6 +19766,10 @@ components: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. + transient_payload: + description: TransientPayload is used to pass data from the verification + flow to hooks and email templates + type: object type: description: The flow type can either be `api` or `browser`. title: Type is the flow type. @@ -19357,6 +19827,32 @@ components: - name - updated_at type: object + workspaceMeta: + properties: + created_at: + format: date-time + type: string + id: + format: uuid + type: string + name: + type: string + subscription_id: + format: uuid4 + nullable: true + type: string + subscription_plan: + nullable: true + type: string + updated_at: + format: date-time + type: string + required: + - created_at + - id + - name + - updated_at + type: object workspaces: items: $ref: '#/components/schemas/workspace' diff --git a/clients/client/java/build.gradle b/clients/client/java/build.gradle index 495191c5a90..e308fd8774c 100644 --- a/clients/client/java/build.gradle +++ b/clients/client/java/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'sh.ory' -version = 'v1.5.1' +version = 'v1.8.1' buildscript { repositories { diff --git a/clients/client/java/build.sbt b/clients/client/java/build.sbt index 4dde78ff562..0cada6fa818 100644 --- a/clients/client/java/build.sbt +++ b/clients/client/java/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "sh.ory", name := "client", - version := "v1.5.1", + version := "v1.8.1", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/clients/client/java/docs/AcceptOAuth2ConsentRequest.md b/clients/client/java/docs/AcceptOAuth2ConsentRequest.md index a73bc1094b4..c5bfadaffd4 100644 --- a/clients/client/java/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/client/java/docs/AcceptOAuth2ConsentRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**context** | **Object** | | [optional] | |**grantAccessTokenAudience** | **List<String>** | | [optional] | |**grantScope** | **List<String>** | | [optional] | |**handledAt** | **OffsetDateTime** | | [optional] | diff --git a/clients/client/java/docs/CloudAccount.md b/clients/client/java/docs/CloudAccount.md index 28d5a8cb6d8..5af5b8810e4 100644 --- a/clients/client/java/docs/CloudAccount.md +++ b/clients/client/java/docs/CloudAccount.md @@ -7,9 +7,9 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**email** | **String** | | [optional] | -|**id** | **String** | | [optional] | -|**name** | **String** | | [optional] | +|**email** | **String** | | | +|**id** | **String** | | | +|**name** | **String** | | | diff --git a/clients/client/java/docs/CreateIdentityBody.md b/clients/client/java/docs/CreateIdentityBody.md index cadc4653fc6..e34774c06a0 100644 --- a/clients/client/java/docs/CreateIdentityBody.md +++ b/clients/client/java/docs/CreateIdentityBody.md @@ -13,9 +13,18 @@ Create Identity Body |**metadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] | |**recoveryAddresses** | [**List<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] | |**schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | | -|**state** | **IdentityState** | | [optional] | +|**state** | [**StateEnum**](#StateEnum) | State is the identity's state. active StateActive inactive StateInactive | [optional] | |**traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | | |**verifiableAddresses** | [**List<VerifiableIdentityAddress>**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] | +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| ACTIVE | "active" | +| INACTIVE | "inactive" | + + + diff --git a/clients/client/java/docs/CreateProjectBody.md b/clients/client/java/docs/CreateProjectBody.md index 8ffb2f86459..bf5cafd823c 100644 --- a/clients/client/java/docs/CreateProjectBody.md +++ b/clients/client/java/docs/CreateProjectBody.md @@ -8,8 +8,18 @@ Create Project Request Body | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**environment** | [**EnvironmentEnum**](#EnvironmentEnum) | The environment of the project. prod Production dev Development | | |**name** | **String** | The name of the project to be created | | |**workspaceId** | **String** | | [optional] | +## Enum: EnvironmentEnum + +| Name | Value | +|---- | -----| +| PROD | "prod" | +| DEV | "dev" | + + + diff --git a/clients/client/java/docs/CreateProjectNormalizedPayload.md b/clients/client/java/docs/CreateProjectNormalizedPayload.md index c6ca3ac9b5e..5fd5cc3f390 100644 --- a/clients/client/java/docs/CreateProjectNormalizedPayload.md +++ b/clients/client/java/docs/CreateProjectNormalizedPayload.md @@ -10,12 +10,15 @@ Create project (normalized) request payload |------------ | ------------- | ------------- | -------------| |**createdAt** | **OffsetDateTime** | The Project's Revision Creation Date | [optional] [readonly] | |**disableAccountExperienceWelcomeScreen** | **Boolean** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] | +|**enableAxV2** | **Boolean** | Whether the new account experience is enabled and reachable. | [optional] | +|**environment** | [**EnvironmentEnum**](#EnvironmentEnum) | prod Production dev Development | | |**hydraOauth2AllowedTopLevelClaims** | **List<String>** | | [optional] | |**hydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **Boolean** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] | |**hydraOauth2ExcludeNotBeforeClaim** | **Boolean** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] | |**hydraOauth2GrantJwtIatOptional** | **Boolean** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] | |**hydraOauth2GrantJwtJtiOptional** | **Boolean** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] | |**hydraOauth2GrantJwtMaxTtl** | **String** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] | +|**hydraOauth2MirrorTopLevelClaims** | **Boolean** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] | |**hydraOauth2PkceEnforced** | **Boolean** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] | |**hydraOauth2PkceEnforcedForPublicClients** | **Boolean** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] | |**hydraOauth2RefreshTokenHook** | **String** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] | @@ -74,6 +77,7 @@ Create project (normalized) request payload |**kratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **String** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] | |**kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] | |**kratosCourierTemplatesLoginCodeValidEmailSubject** | **String** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] | +|**kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] | |**kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | |**kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] | |**kratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | @@ -159,6 +163,7 @@ Create project (normalized) request payload |**kratosSelfserviceFlowsVerificationUse** | [**KratosSelfserviceFlowsVerificationUseEnum**](#KratosSelfserviceFlowsVerificationUseEnum) | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] | |**kratosSelfserviceMethodsCodeConfigLifespan** | **String** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] | |**kratosSelfserviceMethodsCodeEnabled** | **Boolean** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] | +|**kratosSelfserviceMethodsCodeMfaEnabled** | **Boolean** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] | |**kratosSelfserviceMethodsCodePasswordlessEnabled** | **Boolean** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] | |**kratosSelfserviceMethodsLinkConfigBaseUrl** | **String** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] | |**kratosSelfserviceMethodsLinkConfigLifespan** | **String** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] | @@ -200,6 +205,15 @@ Create project (normalized) request payload +## Enum: EnvironmentEnum + +| Name | Value | +|---- | -----| +| PROD | "prod" | +| DEV | "dev" | + + + ## Enum: HydraStrategiesAccessTokenEnum | Name | Value | diff --git a/clients/client/java/docs/CreateSubscriptionBody.md b/clients/client/java/docs/CreateSubscriptionBody.md index 43c0d1fc021..89adacb37bb 100644 --- a/clients/client/java/docs/CreateSubscriptionBody.md +++ b/clients/client/java/docs/CreateSubscriptionBody.md @@ -2,7 +2,6 @@ # CreateSubscriptionBody -Create Subscription Request Body ## Properties @@ -11,9 +10,8 @@ Create Subscription Request Body |**currency** | [**CurrencyEnum**](#CurrencyEnum) | usd USD eur Euro | [optional] | |**interval** | [**IntervalEnum**](#IntervalEnum) | monthly Monthly yearly Yearly | | |**plan** | **String** | | | -|**provisionFirstProject** | **String** | | [optional] | +|**provisionFirstProject** | **String** | | | |**returnTo** | **String** | | [optional] | -|**workspace** | **String** | | [optional] | diff --git a/clients/client/java/docs/CreateSubscriptionCommon.md b/clients/client/java/docs/CreateSubscriptionCommon.md new file mode 100644 index 00000000000..bdedf8a2848 --- /dev/null +++ b/clients/client/java/docs/CreateSubscriptionCommon.md @@ -0,0 +1,34 @@ + + +# CreateSubscriptionCommon + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**currency** | [**CurrencyEnum**](#CurrencyEnum) | usd USD eur Euro | [optional] | +|**interval** | [**IntervalEnum**](#IntervalEnum) | monthly Monthly yearly Yearly | | +|**plan** | **String** | | | +|**returnTo** | **String** | | [optional] | + + + +## Enum: CurrencyEnum + +| Name | Value | +|---- | -----| +| USD | "usd" | +| EUR | "eur" | + + + +## Enum: IntervalEnum + +| Name | Value | +|---- | -----| +| MONTHLY | "monthly" | +| YEARLY | "yearly" | + + + diff --git a/clients/client/java/docs/StripeCustomer.md b/clients/client/java/docs/CreateWorkspacePayload.md similarity index 60% rename from clients/client/java/docs/StripeCustomer.md rename to clients/client/java/docs/CreateWorkspacePayload.md index c2d361b1f66..4650bb8d9c5 100644 --- a/clients/client/java/docs/StripeCustomer.md +++ b/clients/client/java/docs/CreateWorkspacePayload.md @@ -1,13 +1,13 @@ -# StripeCustomer +# CreateWorkspacePayload ## Properties | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**id** | **String** | | [optional] | +|**name** | **String** | The name of the workspace | | diff --git a/clients/client/java/docs/CreateWorkspaceSubscriptionBody.md b/clients/client/java/docs/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..36237e0898d --- /dev/null +++ b/clients/client/java/docs/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,34 @@ + + +# CreateWorkspaceSubscriptionBody + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**currency** | [**CurrencyEnum**](#CurrencyEnum) | usd USD eur Euro | [optional] | +|**interval** | [**IntervalEnum**](#IntervalEnum) | monthly Monthly yearly Yearly | | +|**plan** | **String** | | | +|**returnTo** | **String** | | [optional] | + + + +## Enum: CurrencyEnum + +| Name | Value | +|---- | -----| +| USD | "usd" | +| EUR | "eur" | + + + +## Enum: IntervalEnum + +| Name | Value | +|---- | -----| +| MONTHLY | "monthly" | +| YEARLY | "yearly" | + + + diff --git a/clients/client/java/docs/FrontendApi.md b/clients/client/java/docs/FrontendApi.md index 9e69af1a386..10578fdc09b 100644 --- a/clients/client/java/docs/FrontendApi.md +++ b/clients/client/java/docs/FrontendApi.md @@ -38,7 +38,7 @@ All URIs are relative to *https://playground.projects.oryapis.com* # **createBrowserLoginFlow** -> LoginFlow createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization) +> LoginFlow createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via) Create Login Flow for Browsers @@ -65,8 +65,9 @@ public class Example { String cookie = "cookie_example"; // String | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. String loginChallenge = "loginChallenge_example"; // String | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). String organization = "organization_example"; // String | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + String via = "via_example"; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - LoginFlow result = apiInstance.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); + LoginFlow result = apiInstance.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FrontendApi#createBrowserLoginFlow"); @@ -89,6 +90,7 @@ public class Example { | **cookie** | **String**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] | | **loginChallenge** | **String**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] | | **organization** | **String**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] | +| **via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] | ### Return type @@ -448,7 +450,7 @@ No authorization required # **createNativeLoginFlow** -> LoginFlow createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo) +> LoginFlow createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via) Create Login Flow for Native Apps @@ -474,8 +476,9 @@ public class Example { String xSessionToken = "xSessionToken_example"; // String | The Session Token of the Identity performing the settings flow. Boolean returnSessionTokenExchangeCode = true; // Boolean | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. String returnTo = "returnTo_example"; // String | The URL to return the browser to after the flow was completed. + String via = "via_example"; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - LoginFlow result = apiInstance.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + LoginFlow result = apiInstance.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling FrontendApi#createNativeLoginFlow"); @@ -497,6 +500,7 @@ public class Example { | **xSessionToken** | **String**| The Session Token of the Identity performing the settings flow. | [optional] | | **returnSessionTokenExchangeCode** | **Boolean**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] | | **returnTo** | **String**| The URL to return the browser to after the flow was completed. | [optional] | +| **via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] | ### Return type diff --git a/clients/client/java/docs/Identity.md b/clients/client/java/docs/Identity.md index 31e9febf8ac..7761998962f 100644 --- a/clients/client/java/docs/Identity.md +++ b/clients/client/java/docs/Identity.md @@ -17,7 +17,7 @@ An [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) repre |**recoveryAddresses** | [**List<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] | |**schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | | |**schemaUrl** | **String** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | | -|**state** | **IdentityState** | | [optional] | +|**state** | [**StateEnum**](#StateEnum) | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] | |**stateChangedAt** | **OffsetDateTime** | | [optional] | |**traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | | |**updatedAt** | **OffsetDateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] | @@ -25,3 +25,12 @@ An [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) repre +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| ACTIVE | "active" | +| INACTIVE | "inactive" | + + + diff --git a/clients/client/java/docs/IdentityApi.md b/clients/client/java/docs/IdentityApi.md index 90a2f5972de..69fb64914e3 100644 --- a/clients/client/java/docs/IdentityApi.md +++ b/clients/client/java/docs/IdentityApi.md @@ -236,7 +236,7 @@ public class Example { # **createRecoveryLinkForIdentity** -> RecoveryLinkForIdentity createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody) +> RecoveryLinkForIdentity createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody) Create a Recovery Link @@ -262,9 +262,10 @@ public class Example { oryAccessToken.setBearerToken("BEARER TOKEN"); IdentityApi apiInstance = new IdentityApi(defaultClient); + String returnTo = "returnTo_example"; // String | CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody = new CreateRecoveryLinkForIdentityBody(); // CreateRecoveryLinkForIdentityBody | try { - RecoveryLinkForIdentity result = apiInstance.createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody); + RecoveryLinkForIdentity result = apiInstance.createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IdentityApi#createRecoveryLinkForIdentity"); @@ -281,6 +282,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| +| **returnTo** | **String**| | [optional] | | **createRecoveryLinkForIdentityBody** | [**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md)| | [optional] | ### Return type @@ -401,7 +403,7 @@ public class Example { IdentityApi apiInstance = new IdentityApi(defaultClient); String id = "id_example"; // String | ID is the identity's ID. - String type = "totp"; // String | Type is the credential's Type. One of totp, webauthn, lookup + String type = "password"; // String | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 try { apiInstance.deleteIdentityCredentials(id, type); } catch (ApiException e) { @@ -420,7 +422,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| ID is the identity's ID. | | -| **type** | **String**| Type is the credential's Type. One of totp, webauthn, lookup | [enum: totp, webauthn, lookup] | +| **type** | **String**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [enum: password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery] | ### Return type @@ -700,7 +702,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| | **id** | **String**| ID must be set to the ID of identity you want to get | | -| **includeCredential** | [**List<String>**](String.md)| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] [enum: password, totp, oidc, webauthn, lookup_secret, code] | +| **includeCredential** | [**List<String>**](String.md)| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] [enum: password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery] | ### Return type @@ -859,7 +861,7 @@ public class Example { # **listIdentities** -> List<Identity> listIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar) +> List<Identity> listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential) List Identities @@ -890,11 +892,12 @@ public class Example { Long pageSize = 250L; // Long | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). String pageToken = "1"; // String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). String consistency = ""; // String | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - List idsFilter = Arrays.asList(); // List | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + List ids = Arrays.asList(); // List | List of ids used to filter identities. If this list is empty, then no filter will be applied. String credentialsIdentifier = "credentialsIdentifier_example"; // String | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. String previewCredentialsIdentifierSimilar = "previewCredentialsIdentifierSimilar_example"; // String | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + List includeCredential = Arrays.asList(); // List | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. try { - List result = apiInstance.listIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + List result = apiInstance.listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling IdentityApi#listIdentities"); @@ -916,9 +919,10 @@ public class Example { | **pageSize** | **Long**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] | | **pageToken** | **String**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 1] | | **consistency** | **String**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] [enum: , strong, eventual] | -| **idsFilter** | [**List<String>**](String.md)| IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] | +| **ids** | [**List<String>**](String.md)| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] | | **credentialsIdentifier** | **String**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] | | **previewCredentialsIdentifierSimilar** | **String**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] | +| **includeCredential** | [**List<String>**](String.md)| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] | ### Return type diff --git a/clients/client/java/docs/IdentityCredentials.md b/clients/client/java/docs/IdentityCredentials.md index e27fbf8a19b..c6f123a4fe2 100644 --- a/clients/client/java/docs/IdentityCredentials.md +++ b/clients/client/java/docs/IdentityCredentials.md @@ -11,9 +11,24 @@ Credentials represents a specific credential type |**config** | **Object** | | [optional] | |**createdAt** | **OffsetDateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] | |**identifiers** | **List<String>** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] | -|**type** | **IdentityCredentialsType** | | [optional] | +|**type** | [**TypeEnum**](#TypeEnum) | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] | |**updatedAt** | **OffsetDateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] | |**version** | **Long** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] | +## Enum: TypeEnum + +| Name | Value | +|---- | -----| +| PASSWORD | "password" | +| OIDC | "oidc" | +| TOTP | "totp" | +| LOOKUP_SECRET | "lookup_secret" | +| WEBAUTHN | "webauthn" | +| CODE | "code" | +| LINK_RECOVERY | "link_recovery" | +| CODE_RECOVERY | "code_recovery" | + + + diff --git a/clients/client/java/docs/IdentityCredentialsCode.md b/clients/client/java/docs/IdentityCredentialsCode.md index 749541c9f7e..46d040e8df9 100644 --- a/clients/client/java/docs/IdentityCredentialsCode.md +++ b/clients/client/java/docs/IdentityCredentialsCode.md @@ -8,7 +8,7 @@ CredentialsCode represents a one time login/registration code | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**addressType** | **String** | | [optional] | +|**addressType** | **String** | The type of the address for this code | [optional] | |**usedAt** | **OffsetDateTime** | | [optional] | diff --git a/clients/client/java/docs/IdentityCredentialsType.md b/clients/client/java/docs/IdentityCredentialsType.md deleted file mode 100644 index 160d41cc2e8..00000000000 --- a/clients/client/java/docs/IdentityCredentialsType.md +++ /dev/null @@ -1,21 +0,0 @@ - - -# IdentityCredentialsType - -## Enum - - -* `PASSWORD` (value: `"password"`) - -* `TOTP` (value: `"totp"`) - -* `OIDC` (value: `"oidc"`) - -* `WEBAUTHN` (value: `"webauthn"`) - -* `LOOKUP_SECRET` (value: `"lookup_secret"`) - -* `CODE` (value: `"code"`) - - - diff --git a/clients/client/java/docs/IdentityState.md b/clients/client/java/docs/IdentityState.md deleted file mode 100644 index 93e5dc0ecb9..00000000000 --- a/clients/client/java/docs/IdentityState.md +++ /dev/null @@ -1,13 +0,0 @@ - - -# IdentityState - -## Enum - - -* `ACTIVE` (value: `"active"`) - -* `INACTIVE` (value: `"inactive"`) - - - diff --git a/clients/client/java/docs/InternalProvisionMockSubscription.md b/clients/client/java/docs/InternalProvisionMockSubscription.md deleted file mode 100644 index f05962edba7..00000000000 --- a/clients/client/java/docs/InternalProvisionMockSubscription.md +++ /dev/null @@ -1,35 +0,0 @@ - - -# InternalProvisionMockSubscription - -Internal Provision Mock Subscription Request Body - -## Properties - -| Name | Type | Description | Notes | -|------------ | ------------- | ------------- | -------------| -|**currency** | [**CurrencyEnum**](#CurrencyEnum) | Currency usd USD eur Euro | | -|**identityId** | **String** | Identity ID | | -|**interval** | [**IntervalEnum**](#IntervalEnum) | Billing Interval monthly Monthly yearly Yearly | | -|**plan** | **String** | Plan ID | | - - - -## Enum: CurrencyEnum - -| Name | Value | -|---- | -----| -| USD | "usd" | -| EUR | "eur" | - - - -## Enum: IntervalEnum - -| Name | Value | -|---- | -----| -| MONTHLY | "monthly" | -| YEARLY | "yearly" | - - - diff --git a/clients/client/java/docs/ListMyWorkspacesResponse.md b/clients/client/java/docs/ListMyWorkspacesResponse.md index 2ef15ad1c0c..8360162870e 100644 --- a/clients/client/java/docs/ListMyWorkspacesResponse.md +++ b/clients/client/java/docs/ListMyWorkspacesResponse.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**hasNextPage** | **Boolean** | | | |**nextPageToken** | **String** | | | -|**workspaces** | [**List<Workspace>**](Workspace.md) | | | +|**workspaces** | [**List<WorkspaceMeta>**](WorkspaceMeta.md) | | | diff --git a/clients/client/java/docs/ListWorkspaceProjectsResponse.md b/clients/client/java/docs/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..8d6ca49a321 --- /dev/null +++ b/clients/client/java/docs/ListWorkspaceProjectsResponse.md @@ -0,0 +1,15 @@ + + +# ListWorkspaceProjectsResponse + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**hasNextPage** | **Boolean** | | | +|**nextPage** | **String** | | | +|**projects** | [**List<ProjectMetadata>**](ProjectMetadata.md) | | | + + + diff --git a/clients/client/java/docs/LoginFlow.md b/clients/client/java/docs/LoginFlow.md index 33e464028c3..8058ff4c102 100644 --- a/clients/client/java/docs/LoginFlow.md +++ b/clients/client/java/docs/LoginFlow.md @@ -8,7 +8,7 @@ This object represents a login flow. A login flow is initiated at the \"Initiate | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**active** | **IdentityCredentialsType** | | [optional] | +|**active** | [**ActiveEnum**](#ActiveEnum) | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] | |**createdAt** | **OffsetDateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] | |**expiresAt** | **OffsetDateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | | |**id** | **String** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> | | @@ -22,9 +22,25 @@ This object represents a login flow. A login flow is initiated at the \"Initiate |**returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] | |**sessionTokenExchangeCode** | **String** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] | |**state** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | | +|**transientPayload** | **Object** | TransientPayload is used to pass data from the login to hooks and email templates | [optional] | |**type** | **String** | The flow type can either be `api` or `browser`. | | |**ui** | [**UiContainer**](UiContainer.md) | | | |**updatedAt** | **OffsetDateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] | +## Enum: ActiveEnum + +| Name | Value | +|---- | -----| +| PASSWORD | "password" | +| OIDC | "oidc" | +| TOTP | "totp" | +| LOOKUP_SECRET | "lookup_secret" | +| WEBAUTHN | "webauthn" | +| CODE | "code" | +| LINK_RECOVERY | "link_recovery" | +| CODE_RECOVERY | "code_recovery" | + + + diff --git a/clients/client/java/docs/MigrationOptions.md b/clients/client/java/docs/MigrationOptions.md new file mode 100644 index 00000000000..d57d866abdb --- /dev/null +++ b/clients/client/java/docs/MigrationOptions.md @@ -0,0 +1,32 @@ + + +# MigrationOptions + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**environment** | [**EnvironmentEnum**](#EnvironmentEnum) | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | | +|**projectSubscription** | [**ProjectSubscriptionEnum**](#ProjectSubscriptionEnum) | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | | + + + +## Enum: EnvironmentEnum + +| Name | Value | +|---- | -----| +| PROD | "prod" | +| DEV | "dev" | + + + +## Enum: ProjectSubscriptionEnum + +| Name | Value | +|---- | -----| +| MIGRATE | "migrate" | +| IGNORE | "ignore" | + + + diff --git a/clients/client/java/docs/NormalizedProjectRevision.md b/clients/client/java/docs/NormalizedProjectRevision.md index 9ba100ce720..1912311da9f 100644 --- a/clients/client/java/docs/NormalizedProjectRevision.md +++ b/clients/client/java/docs/NormalizedProjectRevision.md @@ -9,12 +9,14 @@ |------------ | ------------- | ------------- | -------------| |**createdAt** | **OffsetDateTime** | The Project's Revision Creation Date | [optional] [readonly] | |**disableAccountExperienceWelcomeScreen** | **Boolean** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] | +|**enableAxV2** | **Boolean** | Whether the new account experience is enabled and reachable. | [optional] | |**hydraOauth2AllowedTopLevelClaims** | **List<String>** | | [optional] | |**hydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **Boolean** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] | |**hydraOauth2ExcludeNotBeforeClaim** | **Boolean** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] | |**hydraOauth2GrantJwtIatOptional** | **Boolean** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] | |**hydraOauth2GrantJwtJtiOptional** | **Boolean** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] | |**hydraOauth2GrantJwtMaxTtl** | **String** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] | +|**hydraOauth2MirrorTopLevelClaims** | **Boolean** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] | |**hydraOauth2PkceEnforced** | **Boolean** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] | |**hydraOauth2PkceEnforcedForPublicClients** | **Boolean** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] | |**hydraOauth2RefreshTokenHook** | **String** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] | @@ -73,6 +75,7 @@ |**kratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **String** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] | |**kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] | |**kratosCourierTemplatesLoginCodeValidEmailSubject** | **String** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] | +|**kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **String** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] | |**kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | |**kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] | |**kratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | @@ -158,6 +161,7 @@ |**kratosSelfserviceFlowsVerificationUse** | [**KratosSelfserviceFlowsVerificationUseEnum**](#KratosSelfserviceFlowsVerificationUseEnum) | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] | |**kratosSelfserviceMethodsCodeConfigLifespan** | **String** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] | |**kratosSelfserviceMethodsCodeEnabled** | **Boolean** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] | +|**kratosSelfserviceMethodsCodeMfaEnabled** | **Boolean** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] | |**kratosSelfserviceMethodsCodePasswordlessEnabled** | **Boolean** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] | |**kratosSelfserviceMethodsLinkConfigBaseUrl** | **String** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] | |**kratosSelfserviceMethodsLinkConfigLifespan** | **String** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] | diff --git a/clients/client/java/docs/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/java/docs/NormalizedProjectRevisionThirdPartyProvider.md index b3da4e02fc8..ba4639b40da 100644 --- a/clients/client/java/docs/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/java/docs/NormalizedProjectRevisionThirdPartyProvider.md @@ -13,6 +13,7 @@ |**appleTeamId** | **String** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] | |**authUrl** | **String** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] | |**azureTenant** | **String** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] | +|**claimsSource** | **String** | | [optional] | |**clientId** | **String** | ClientID is the application's Client ID. | [optional] | |**clientSecret** | **String** | | [optional] | |**createdAt** | **OffsetDateTime** | The Project's Revision Creation Date | [optional] [readonly] | diff --git a/clients/client/java/docs/OAuth2Client.md b/clients/client/java/docs/OAuth2Client.md index dbbc4a08f3c..e15f78f0a81 100644 --- a/clients/client/java/docs/OAuth2Client.md +++ b/clients/client/java/docs/OAuth2Client.md @@ -49,6 +49,7 @@ OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usuall |**scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] | |**sectorIdentifierUri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] | |**skipConsent** | **Boolean** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] | +|**skipLogoutConsent** | **Boolean** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] | |**subjectType** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] | |**tokenEndpointAuthMethod** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] | |**tokenEndpointAuthSigningAlg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] | diff --git a/clients/client/java/docs/OAuth2ConsentSession.md b/clients/client/java/docs/OAuth2ConsentSession.md index 56e5bf4261d..ec07011d9df 100644 --- a/clients/client/java/docs/OAuth2ConsentSession.md +++ b/clients/client/java/docs/OAuth2ConsentSession.md @@ -9,6 +9,7 @@ A completed OAuth 2.0 Consent Session. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**consentRequest** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] | +|**context** | **Object** | | [optional] | |**expiresAt** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] | |**grantAccessTokenAudience** | **List<String>** | | [optional] | |**grantScope** | **List<String>** | | [optional] | diff --git a/clients/client/java/docs/PermissionApi.md b/clients/client/java/docs/PermissionApi.md index acbb8995417..f94e7aea3e6 100644 --- a/clients/client/java/docs/PermissionApi.md +++ b/clients/client/java/docs/PermissionApi.md @@ -353,7 +353,7 @@ public class Example { oryAccessToken.setBearerToken("BEARER TOKEN"); PermissionApi apiInstance = new PermissionApi(defaultClient); - Long maxDepth = 56L; // Long | nolint:deadcode,unused + Long maxDepth = 56L; // Long | PostCheckPermissionOrErrorBody postCheckPermissionOrErrorBody = new PostCheckPermissionOrErrorBody(); // PostCheckPermissionOrErrorBody | try { CheckPermissionResult result = apiInstance.postCheckPermissionOrError(maxDepth, postCheckPermissionOrErrorBody); @@ -373,7 +373,7 @@ public class Example { | Name | Type | Description | Notes | |------------- | ------------- | ------------- | -------------| -| **maxDepth** | **Long**| nolint:deadcode,unused | [optional] | +| **maxDepth** | **Long**| | [optional] | | **postCheckPermissionOrErrorBody** | [**PostCheckPermissionOrErrorBody**](PostCheckPermissionOrErrorBody.md)| | [optional] | ### Return type diff --git a/clients/client/java/docs/PermissionsOnWorkpaceResponse.md b/clients/client/java/docs/PermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..957e72a542d --- /dev/null +++ b/clients/client/java/docs/PermissionsOnWorkpaceResponse.md @@ -0,0 +1,14 @@ + + +# PermissionsOnWorkpaceResponse + +Get Permissions on Project Request Parameters + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**permissions** | **Map<String, Boolean>** | | [optional] | + + + diff --git a/clients/client/java/docs/PlanDetails.md b/clients/client/java/docs/PlanDetails.md index ff907f20d68..58237a4cff9 100644 --- a/clients/client/java/docs/PlanDetails.md +++ b/clients/client/java/docs/PlanDetails.md @@ -11,7 +11,7 @@ |**baseFeeYearly** | **Long** | BaseFeeYearly is the yearly base fee for the plan. | | |**custom** | **Boolean** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | | |**description** | **String** | Description is the description of the plan. | | -|**features** | [**Map<String, GenericUsage>**](GenericUsage.md) | Features are the feature definitions included in the plan. | | +|**features** | [**Map<String, GenericUsage>**](GenericUsage.md) | | | |**name** | **String** | Name is the name of the plan. | | |**version** | **Long** | Version is the version of the plan. The combination of `name@version` must be unique. | | diff --git a/clients/client/java/docs/ProjectApi.md b/clients/client/java/docs/ProjectApi.md index 7a72ff2479b..005f8a4a200 100644 --- a/clients/client/java/docs/ProjectApi.md +++ b/clients/client/java/docs/ProjectApi.md @@ -587,7 +587,7 @@ public class Example { # **getProjectMembers** -> List<CloudAccount> getProjectMembers(project) +> List<ProjectMember> getProjectMembers(project) Get all members associated with this project @@ -615,7 +615,7 @@ public class Example { ProjectApi apiInstance = new ProjectApi(defaultClient); String project = "project_example"; // String | try { - List result = apiInstance.getProjectMembers(project); + List result = apiInstance.getProjectMembers(project); System.out.println(result); } catch (ApiException e) { System.err.println("Exception when calling ProjectApi#getProjectMembers"); @@ -636,7 +636,7 @@ public class Example { ### Return type -[**List<CloudAccount>**](CloudAccount.md) +[**List<ProjectMember>**](ProjectMember.md) ### Authorization @@ -685,7 +685,7 @@ public class Example { ProjectApi apiInstance = new ProjectApi(defaultClient); String projectId = "projectId_example"; // String | Project ID String eventType = "eventType_example"; // String | The event type to query for - String resolution = "resolution_example"; // String | The resolution of the buckets The minimum resolution is 1 hour. + String resolution = "resolution_example"; // String | The resolution of the buckets The minimum resolution is 1 minute. OffsetDateTime from = OffsetDateTime.now(); // OffsetDateTime | The start RFC3339 date of the time window OffsetDateTime to = OffsetDateTime.now(); // OffsetDateTime | The end RFC3339 date of the time window try { @@ -708,7 +708,7 @@ public class Example { |------------- | ------------- | ------------- | -------------| | **projectId** | **String**| Project ID | | | **eventType** | **String**| The event type to query for | | -| **resolution** | **String**| The resolution of the buckets The minimum resolution is 1 hour. | | +| **resolution** | **String**| The resolution of the buckets The minimum resolution is 1 minute. | | | **from** | **OffsetDateTime**| The start RFC3339 date of the time window | | | **to** | **OffsetDateTime**| The end RFC3339 date of the time window | | diff --git a/clients/client/java/docs/ProjectMember.md b/clients/client/java/docs/ProjectMember.md new file mode 100644 index 00000000000..af76dce09b0 --- /dev/null +++ b/clients/client/java/docs/ProjectMember.md @@ -0,0 +1,16 @@ + + +# ProjectMember + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**email** | **String** | | | +|**id** | **String** | | | +|**name** | **String** | | | +|**role** | **String** | | | + + + diff --git a/clients/client/java/docs/ProjectMetadata.md b/clients/client/java/docs/ProjectMetadata.md index 04903c4a79b..e6f70b283b1 100644 --- a/clients/client/java/docs/ProjectMetadata.md +++ b/clients/client/java/docs/ProjectMetadata.md @@ -8,6 +8,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**createdAt** | **OffsetDateTime** | The Project's Creation Date | | +|**environment** | [**EnvironmentEnum**](#EnvironmentEnum) | The environment of the project. prod Production dev Development | | |**hosts** | **List<String>** | | | |**id** | **String** | The project's ID. | [readonly] | |**name** | **String** | The project's name if set | | @@ -20,6 +21,15 @@ +## Enum: EnvironmentEnum + +| Name | Value | +|---- | -----| +| PROD | "prod" | +| DEV | "dev" | + + + ## Enum: StateEnum | Name | Value | diff --git a/clients/client/java/docs/QuotaUsage.md b/clients/client/java/docs/QuotaUsage.md index 0822b4f5f63..e518176d5e1 100644 --- a/clients/client/java/docs/QuotaUsage.md +++ b/clients/client/java/docs/QuotaUsage.md @@ -9,7 +9,7 @@ |------------ | ------------- | ------------- | -------------| |**additionalPrice** | **Long** | The additional price per unit in cents. | | |**canUseMore** | **Boolean** | | | -|**feature** | [**FeatureEnum**](#FeatureEnum) | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | | +|**feature** | [**FeatureEnum**](#FeatureEnum) | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | | |**featureAvailable** | **Boolean** | | | |**included** | **Long** | | | |**used** | **Long** | | | @@ -38,9 +38,12 @@ | PROJECT_METRICS_EVENTS_HISTORY | "project_metrics_events_history" | | ORGANIZATIONS | "organizations" | | ROP_GRANT | "rop_grant" | +| CONCIERGE_ONBOARDING | "concierge_onboarding" | | RATE_LIMIT_TIER | "rate_limit_tier" | | SESSION_RATE_LIMIT_TIER | "session_rate_limit_tier" | | IDENTITIES_LIST_RATE_LIMIT_TIER | "identities_list_rate_limit_tier" | +| PERMISSION_CHECKS_RATE_LIMIT_TIER | "permission_checks_rate_limit_tier" | +| OAUTH2_INTROSPECT_RATE_LIMIT_TIER | "oauth2_introspect_rate_limit_tier" | diff --git a/clients/client/java/docs/RecoveryFlow.md b/clients/client/java/docs/RecoveryFlow.md index 433c5e6802c..d6e360a7c3a 100644 --- a/clients/client/java/docs/RecoveryFlow.md +++ b/clients/client/java/docs/RecoveryFlow.md @@ -16,6 +16,7 @@ This request is used when an identity wants to recover their account. We recomm |**requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | | |**returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] | |**state** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | | +|**transientPayload** | **Object** | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] | |**type** | **String** | The flow type can either be `api` or `browser`. | | |**ui** | [**UiContainer**](UiContainer.md) | | | diff --git a/clients/client/java/docs/RegistrationFlow.md b/clients/client/java/docs/RegistrationFlow.md index 88b5f5c716a..0c9432afdbb 100644 --- a/clients/client/java/docs/RegistrationFlow.md +++ b/clients/client/java/docs/RegistrationFlow.md @@ -7,7 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| -|**active** | **IdentityCredentialsType** | | [optional] | +|**active** | [**ActiveEnum**](#ActiveEnum) | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] | |**expiresAt** | **OffsetDateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | | |**id** | **String** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> | | |**issuedAt** | **OffsetDateTime** | IssuedAt is the time (UTC) when the flow occurred. | | @@ -24,3 +24,18 @@ +## Enum: ActiveEnum + +| Name | Value | +|---- | -----| +| PASSWORD | "password" | +| OIDC | "oidc" | +| TOTP | "totp" | +| LOOKUP_SECRET | "lookup_secret" | +| WEBAUTHN | "webauthn" | +| CODE | "code" | +| LINK_RECOVERY | "link_recovery" | +| CODE_RECOVERY | "code_recovery" | + + + diff --git a/clients/client/java/docs/SettingsFlow.md b/clients/client/java/docs/SettingsFlow.md index 146c173b28c..84da94bb96b 100644 --- a/clients/client/java/docs/SettingsFlow.md +++ b/clients/client/java/docs/SettingsFlow.md @@ -17,6 +17,7 @@ This flow is used when an identity wants to update settings (e.g. profile data, |**requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | | |**returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] | |**state** | **Object** | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | | +|**transientPayload** | **Object** | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] | |**type** | **String** | The flow type can either be `api` or `browser`. | | |**ui** | [**UiContainer**](UiContainer.md) | | | diff --git a/clients/client/java/docs/Subscription.md b/clients/client/java/docs/Subscription.md index 566bf166d58..e79a15c7274 100644 --- a/clients/client/java/docs/Subscription.md +++ b/clients/client/java/docs/Subscription.md @@ -11,6 +11,7 @@ |**currency** | [**CurrencyEnum**](#CurrencyEnum) | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | [readonly] | |**currentInterval** | [**CurrentIntervalEnum**](#CurrentIntervalEnum) | The currently active interval of the subscription monthly Monthly yearly Yearly | [readonly] | |**currentPlan** | **String** | The currently active plan of the subscription | [readonly] | +|**currentPlanDetails** | [**PlanDetails**](PlanDetails.md) | | [optional] | |**customerId** | **String** | The ID of the stripe customer | [readonly] | |**id** | **String** | The ID of the subscription | [readonly] | |**intervalChangesTo** | **String** | | | @@ -19,6 +20,7 @@ |**planChangesAt** | **OffsetDateTime** | | [optional] | |**planChangesTo** | **String** | | | |**status** | **String** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | | +|**stripeCheckoutExpiresAt** | **OffsetDateTime** | | [optional] | |**updatedAt** | **OffsetDateTime** | | [readonly] | diff --git a/clients/client/java/docs/UpdateIdentityBody.md b/clients/client/java/docs/UpdateIdentityBody.md index 84c9894fcf9..18b3dcb835f 100644 --- a/clients/client/java/docs/UpdateIdentityBody.md +++ b/clients/client/java/docs/UpdateIdentityBody.md @@ -12,8 +12,17 @@ Update Identity Body |**metadataAdmin** | **Object** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] | |**metadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] | |**schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | | -|**state** | **IdentityState** | | | +|**state** | [**StateEnum**](#StateEnum) | State is the identity's state. active StateActive inactive StateInactive | | |**traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | | +## Enum: StateEnum + +| Name | Value | +|---- | -----| +| ACTIVE | "active" | +| INACTIVE | "inactive" | + + + diff --git a/clients/client/java/docs/UpdateLoginFlowBody.md b/clients/client/java/docs/UpdateLoginFlowBody.md index d20ccde5125..52722dca897 100644 --- a/clients/client/java/docs/UpdateLoginFlowBody.md +++ b/clients/client/java/docs/UpdateLoginFlowBody.md @@ -12,6 +12,7 @@ |**method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | | |**password** | **String** | The user's password. | | |**passwordIdentifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**idToken** | **String** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] | |**idTokenNonce** | **String** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] | |**provider** | **String** | The provider to register with | | diff --git a/clients/client/java/docs/UpdateLoginFlowWithCodeMethod.md b/clients/client/java/docs/UpdateLoginFlowWithCodeMethod.md index e6617984267..6571ea76c15 100644 --- a/clients/client/java/docs/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/java/docs/UpdateLoginFlowWithCodeMethod.md @@ -13,6 +13,7 @@ Update Login flow using the code method |**identifier** | **String** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] | |**method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | | |**resend** | **String** | Resend is set when the user wants to resend the code | [optional] | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateLoginFlowWithOidcMethod.md b/clients/client/java/docs/UpdateLoginFlowWithOidcMethod.md index ab4ef39502d..9c30716c4dc 100644 --- a/clients/client/java/docs/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/java/docs/UpdateLoginFlowWithOidcMethod.md @@ -14,6 +14,7 @@ Update Login Flow with OpenID Connect Method |**method** | **String** | Method to use This field must be set to `oidc` when using the oidc method. | | |**provider** | **String** | The provider to register with | | |**traits** | **Object** | The identity traits. This is a placeholder for the registration flow. | [optional] | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**upstreamParameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] | diff --git a/clients/client/java/docs/UpdateLoginFlowWithPasswordMethod.md b/clients/client/java/docs/UpdateLoginFlowWithPasswordMethod.md index 66288cacb3f..b65c60bdd5b 100644 --- a/clients/client/java/docs/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/java/docs/UpdateLoginFlowWithPasswordMethod.md @@ -13,6 +13,7 @@ Update Login Flow with Password Method |**method** | **String** | Method should be set to \"password\" when logging in using the identifier and password strategy. | | |**password** | **String** | The user's password. | | |**passwordIdentifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateLoginFlowWithTotpMethod.md b/clients/client/java/docs/UpdateLoginFlowWithTotpMethod.md index 41bd251bf5d..94510d2bba4 100644 --- a/clients/client/java/docs/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/java/docs/UpdateLoginFlowWithTotpMethod.md @@ -11,6 +11,7 @@ Update Login Flow with TOTP Method |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**method** | **String** | Method should be set to \"totp\" when logging in using the TOTP strategy. | | |**totpCode** | **String** | The TOTP code. | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/java/docs/UpdateLoginFlowWithWebAuthnMethod.md index 137bb258082..d10fd913f00 100644 --- a/clients/client/java/docs/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/java/docs/UpdateLoginFlowWithWebAuthnMethod.md @@ -11,6 +11,7 @@ Update Login Flow with WebAuthn Method |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**identifier** | **String** | Identifier is the email or username of the user trying to log in. | | |**method** | **String** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**webauthnLogin** | **String** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] | diff --git a/clients/client/java/docs/UpdateRecoveryFlowBody.md b/clients/client/java/docs/UpdateRecoveryFlowBody.md index e6f7bf330ec..e600095b110 100644 --- a/clients/client/java/docs/UpdateRecoveryFlowBody.md +++ b/clients/client/java/docs/UpdateRecoveryFlowBody.md @@ -11,6 +11,7 @@ Update Recovery Flow Request Body |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**email** | **String** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | | |**method** | [**MethodEnum**](#MethodEnum) | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**code** | **String** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] | diff --git a/clients/client/java/docs/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/java/docs/UpdateRecoveryFlowWithCodeMethod.md index 1f2a24b3131..59891423435 100644 --- a/clients/client/java/docs/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/java/docs/UpdateRecoveryFlowWithCodeMethod.md @@ -12,6 +12,7 @@ Update Recovery Flow with Code Method |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**email** | **String** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] | |**method** | [**MethodEnum**](#MethodEnum) | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/java/docs/UpdateRecoveryFlowWithLinkMethod.md index 4981358ed25..9ef57630b05 100644 --- a/clients/client/java/docs/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/java/docs/UpdateRecoveryFlowWithLinkMethod.md @@ -11,6 +11,7 @@ Update Recovery Flow with Link Method |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | | |**method** | [**MethodEnum**](#MethodEnum) | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowBody.md b/clients/client/java/docs/UpdateSettingsFlowBody.md index 031708efce2..f60de1669c0 100644 --- a/clients/client/java/docs/UpdateSettingsFlowBody.md +++ b/clients/client/java/docs/UpdateSettingsFlowBody.md @@ -11,6 +11,7 @@ Update Settings Flow Request Body |**csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] | |**method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | | |**password** | **String** | Password is the updated password | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**traits** | **Object** | The identity's traits in: body | | |**flow** | **String** | Flow ID is the flow's ID. in: query | [optional] | |**link** | **String** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowWithLookupMethod.md b/clients/client/java/docs/UpdateSettingsFlowWithLookupMethod.md index e50608dc97e..928f2c81664 100644 --- a/clients/client/java/docs/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/java/docs/UpdateSettingsFlowWithLookupMethod.md @@ -14,6 +14,7 @@ Update Settings Flow with Lookup Method |**lookupSecretRegenerate** | **Boolean** | If set to true will regenerate the lookup secrets | [optional] | |**lookupSecretReveal** | **Boolean** | If set to true will reveal the lookup secrets | [optional] | |**method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowWithOidcMethod.md b/clients/client/java/docs/UpdateSettingsFlowWithOidcMethod.md index c09dbd34e61..17171fc963d 100644 --- a/clients/client/java/docs/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/java/docs/UpdateSettingsFlowWithOidcMethod.md @@ -12,6 +12,7 @@ Update Settings Flow with OpenID Connect Method |**link** | **String** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] | |**method** | **String** | Method Should be set to profile when trying to update a profile. | | |**traits** | **Object** | The identity's traits in: body | [optional] | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**unlink** | **String** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] | |**upstreamParameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/java/docs/UpdateSettingsFlowWithPasswordMethod.md index 9a49e1bdb6e..32387ac2c78 100644 --- a/clients/client/java/docs/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/java/docs/UpdateSettingsFlowWithPasswordMethod.md @@ -11,6 +11,7 @@ Update Settings Flow with Password Method |**csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] | |**method** | **String** | Method Should be set to password when trying to update a password. | | |**password** | **String** | Password is the updated password | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowWithProfileMethod.md b/clients/client/java/docs/UpdateSettingsFlowWithProfileMethod.md index 06aeb4f79c4..7b7d4e5e1e7 100644 --- a/clients/client/java/docs/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/java/docs/UpdateSettingsFlowWithProfileMethod.md @@ -11,6 +11,7 @@ Update Settings Flow with Profile Method |**csrfToken** | **String** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] | |**method** | **String** | Method Should be set to profile when trying to update a profile. | | |**traits** | **Object** | Traits The identity's traits. | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowWithTotpMethod.md b/clients/client/java/docs/UpdateSettingsFlowWithTotpMethod.md index b3127972398..650a8d4b09d 100644 --- a/clients/client/java/docs/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/java/docs/UpdateSettingsFlowWithTotpMethod.md @@ -12,6 +12,7 @@ Update Settings Flow with TOTP Method |**method** | **String** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | | |**totpCode** | **String** | ValidationTOTP must contain a valid TOTP based on the | [optional] | |**totpUnlink** | **Boolean** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/java/docs/UpdateSettingsFlowWithWebAuthnMethod.md index 54348b4d420..313942a30d4 100644 --- a/clients/client/java/docs/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/java/docs/UpdateSettingsFlowWithWebAuthnMethod.md @@ -10,6 +10,7 @@ Update Settings Flow with WebAuthn Method |------------ | ------------- | ------------- | -------------| |**csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] | |**method** | **String** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**webauthnRegister** | **String** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] | |**webauthnRegisterDisplayname** | **String** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] | |**webauthnRemove** | **String** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] | diff --git a/clients/client/java/docs/UpdateSubscriptionBody.md b/clients/client/java/docs/UpdateSubscriptionBody.md index b2abf47907b..21030af931d 100644 --- a/clients/client/java/docs/UpdateSubscriptionBody.md +++ b/clients/client/java/docs/UpdateSubscriptionBody.md @@ -2,7 +2,6 @@ # UpdateSubscriptionBody -Update Subscription Request Body ## Properties diff --git a/clients/client/java/docs/UpdateVerificationFlowBody.md b/clients/client/java/docs/UpdateVerificationFlowBody.md index 3c7f4519545..e078a0caf7f 100644 --- a/clients/client/java/docs/UpdateVerificationFlowBody.md +++ b/clients/client/java/docs/UpdateVerificationFlowBody.md @@ -11,6 +11,7 @@ Update Verification Flow Request Body |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**email** | **String** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | | |**method** | [**MethodEnum**](#MethodEnum) | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | |**code** | **String** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] | diff --git a/clients/client/java/docs/UpdateVerificationFlowWithCodeMethod.md b/clients/client/java/docs/UpdateVerificationFlowWithCodeMethod.md index efb6685f788..ec7042f5bb6 100644 --- a/clients/client/java/docs/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/java/docs/UpdateVerificationFlowWithCodeMethod.md @@ -11,6 +11,7 @@ |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**email** | **String** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] | |**method** | [**MethodEnum**](#MethodEnum) | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateVerificationFlowWithLinkMethod.md b/clients/client/java/docs/UpdateVerificationFlowWithLinkMethod.md index abc115e3fce..fb1ae11e605 100644 --- a/clients/client/java/docs/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/java/docs/UpdateVerificationFlowWithLinkMethod.md @@ -11,6 +11,7 @@ Update Verification Flow with Link Method |**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | |**email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | | |**method** | [**MethodEnum**](#MethodEnum) | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | | +|**transientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] | diff --git a/clients/client/java/docs/UpdateWorkspacePayload.md b/clients/client/java/docs/UpdateWorkspacePayload.md new file mode 100644 index 00000000000..10958527ab3 --- /dev/null +++ b/clients/client/java/docs/UpdateWorkspacePayload.md @@ -0,0 +1,13 @@ + + +# UpdateWorkspacePayload + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**name** | **String** | The name of the workspace. | | + + + diff --git a/clients/client/java/docs/VerificationFlow.md b/clients/client/java/docs/VerificationFlow.md index 6734e1734f6..7f6245a9e2b 100644 --- a/clients/client/java/docs/VerificationFlow.md +++ b/clients/client/java/docs/VerificationFlow.md @@ -15,6 +15,7 @@ Used to verify an out-of-band communication channel such as an email address or |**requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] | |**returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] | |**state** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | | +|**transientPayload** | **Object** | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] | |**type** | **String** | The flow type can either be `api` or `browser`. | | |**ui** | [**UiContainer**](UiContainer.md) | | | diff --git a/clients/client/java/docs/WorkspaceMeta.md b/clients/client/java/docs/WorkspaceMeta.md new file mode 100644 index 00000000000..49bcaf53e0d --- /dev/null +++ b/clients/client/java/docs/WorkspaceMeta.md @@ -0,0 +1,18 @@ + + +# WorkspaceMeta + + +## Properties + +| Name | Type | Description | Notes | +|------------ | ------------- | ------------- | -------------| +|**createdAt** | **OffsetDateTime** | | | +|**id** | **String** | | | +|**name** | **String** | | | +|**subscriptionId** | **String** | | [optional] | +|**subscriptionPlan** | **String** | | [optional] | +|**updatedAt** | **OffsetDateTime** | | | + + + diff --git a/clients/client/java/src/main/java/sh/ory/ApiCallback.java b/clients/client/java/src/main/java/sh/ory/ApiCallback.java index a3567a4518d..1306cb0fb76 100644 --- a/clients/client/java/src/main/java/sh/ory/ApiCallback.java +++ b/clients/client/java/src/main/java/sh/ory/ApiCallback.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/ApiClient.java b/clients/client/java/src/main/java/sh/ory/ApiClient.java index 9f67c687dcc..5ca21f3629e 100644 --- a/clients/client/java/src/main/java/sh/ory/ApiClient.java +++ b/clients/client/java/src/main/java/sh/ory/ApiClient.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -211,7 +211,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/v1.5.1/java"); + setUserAgent("OpenAPI-Generator/v1.8.1/java"); authentications = new HashMap(); } diff --git a/clients/client/java/src/main/java/sh/ory/ApiException.java b/clients/client/java/src/main/java/sh/ory/ApiException.java index 33757aea14c..432748a5299 100644 --- a/clients/client/java/src/main/java/sh/ory/ApiException.java +++ b/clients/client/java/src/main/java/sh/ory/ApiException.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/clients/client/java/src/main/java/sh/ory/ApiResponse.java b/clients/client/java/src/main/java/sh/ory/ApiResponse.java index 1e54d3f396c..c25134e126e 100644 --- a/clients/client/java/src/main/java/sh/ory/ApiResponse.java +++ b/clients/client/java/src/main/java/sh/ory/ApiResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/Configuration.java b/clients/client/java/src/main/java/sh/ory/Configuration.java index 57f67feddd7..e3421c2fabb 100644 --- a/clients/client/java/src/main/java/sh/ory/Configuration.java +++ b/clients/client/java/src/main/java/sh/ory/Configuration.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package sh.ory; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/clients/client/java/src/main/java/sh/ory/GzipRequestInterceptor.java b/clients/client/java/src/main/java/sh/ory/GzipRequestInterceptor.java index 3c8dbc96fa3..42ed12012a6 100644 --- a/clients/client/java/src/main/java/sh/ory/GzipRequestInterceptor.java +++ b/clients/client/java/src/main/java/sh/ory/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/JSON.java b/clients/client/java/src/main/java/sh/ory/JSON.java index 9870cbe0768..940c344b1ce 100644 --- a/clients/client/java/src/main/java/sh/ory/JSON.java +++ b/clients/client/java/src/main/java/sh/ory/JSON.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -248,8 +248,11 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateRecoveryLinkForIdentityBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateRelationshipBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateSubscriptionBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateSubscriptionCommon.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateVerifiableCredentialRequestBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateWorkspaceMemberInviteBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateWorkspacePayload.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CreateWorkspaceSubscriptionBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CredentialSupportedDraft00.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.CustomDomain.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.DeleteMySessionsCount.CustomTypeAdapterFactory()); @@ -298,7 +301,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.InternalIsAXWelcomeScreenEnabledForProjectBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.InternalIsOwnerForProjectBySlugBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.InternalIsOwnerForProjectBySlugResponse.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.InternalProvisionMockSubscription.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.IntrospectedOAuth2Token.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.IsOwnerForProjectBySlug.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.IsReady200Response.CustomTypeAdapterFactory()); @@ -310,6 +312,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ListEventStreams.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ListMyWorkspacesResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ListOrganizationsResponse.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ListWorkspaceProjectsResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.LoginFlow.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.LogoutFlow.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ManagedIdentitySchema.CustomTypeAdapterFactory()); @@ -318,6 +321,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Message.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.MessageDispatch.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.MetricsDatapoint.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.MigrationOptions.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Namespace.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.NeedsPrivilegedSessionError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.NormalizedProject.CustomTypeAdapterFactory()); @@ -346,6 +350,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ParseError.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.PatchIdentitiesBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.PerformNativeLogoutBody.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.PermissionsOnWorkpaceResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Plan.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.PlanDetails.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.PostCheckPermissionBody.CustomTypeAdapterFactory()); @@ -358,6 +363,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectCors.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectEventsDatapoint.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectHost.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectMember.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectMetadata.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectServiceIdentity.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.ProjectServiceOAuth2.CustomTypeAdapterFactory()); @@ -389,7 +395,6 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.SetProjectBrandingThemeBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.SettingsFlow.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.SourcePosition.CustomTypeAdapterFactory()); - gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.StripeCustomer.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.SubjectSet.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Subscription.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.SuccessfulCodeExchangeResponse.CustomTypeAdapterFactory()); @@ -440,6 +445,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.UpdateVerificationFlowBody.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.UpdateVerificationFlowWithCodeMethod.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.UpdateVerificationFlowWithLinkMethod.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.UpdateWorkspacePayload.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Usage.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.VerifiableCredentialPrimingResponse.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.VerifiableCredentialProof.CustomTypeAdapterFactory()); @@ -449,6 +455,7 @@ private static Class getClassByDiscriminator(Map classByDiscriminatorValue, Stri gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Version.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Warning.CustomTypeAdapterFactory()); gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.Workspace.CustomTypeAdapterFactory()); + gsonBuilder.registerTypeAdapterFactory(new sh.ory.model.WorkspaceMeta.CustomTypeAdapterFactory()); gson = gsonBuilder.create(); } diff --git a/clients/client/java/src/main/java/sh/ory/Pair.java b/clients/client/java/src/main/java/sh/ory/Pair.java index 3e052ad1231..727d7f0e930 100644 --- a/clients/client/java/src/main/java/sh/ory/Pair.java +++ b/clients/client/java/src/main/java/sh/ory/Pair.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package sh.ory; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/clients/client/java/src/main/java/sh/ory/ProgressRequestBody.java b/clients/client/java/src/main/java/sh/ory/ProgressRequestBody.java index 4f78e9b25f7..2e54a5df6a7 100644 --- a/clients/client/java/src/main/java/sh/ory/ProgressRequestBody.java +++ b/clients/client/java/src/main/java/sh/ory/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/ProgressResponseBody.java b/clients/client/java/src/main/java/sh/ory/ProgressResponseBody.java index 6ddc79720db..9203fc002c3 100644 --- a/clients/client/java/src/main/java/sh/ory/ProgressResponseBody.java +++ b/clients/client/java/src/main/java/sh/ory/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/StringUtil.java b/clients/client/java/src/main/java/sh/ory/StringUtil.java index 6ca4aec8d4e..caebebdf01d 100644 --- a/clients/client/java/src/main/java/sh/ory/StringUtil.java +++ b/clients/client/java/src/main/java/sh/ory/StringUtil.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/clients/client/java/src/main/java/sh/ory/api/CourierApi.java b/clients/client/java/src/main/java/sh/ory/api/CourierApi.java index 360a0e66028..3fce7f9909f 100644 --- a/clients/client/java/src/main/java/sh/ory/api/CourierApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/CourierApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/EventsApi.java b/clients/client/java/src/main/java/sh/ory/api/EventsApi.java index 4903446f54f..27ca01cd060 100644 --- a/clients/client/java/src/main/java/sh/ory/api/EventsApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/EventsApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/FrontendApi.java b/clients/client/java/src/main/java/sh/ory/api/FrontendApi.java index 9a453998598..b68e63065f6 100644 --- a/clients/client/java/src/main/java/sh/ory/api/FrontendApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/FrontendApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -99,6 +99,7 @@ public void setCustomBaseUrl(String customBaseUrl) { * @param cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -111,7 +112,7 @@ public void setCustomBaseUrl(String customBaseUrl) { 0 errorGeneric - */ - public okhttp3.Call createBrowserLoginFlowCall(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createBrowserLoginFlowCall(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, String via, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -156,6 +157,10 @@ public okhttp3.Call createBrowserLoginFlowCall(Boolean refresh, String aal, Stri localVarQueryParams.addAll(localVarApiClient.parameterToPair("organization", organization)); } + if (via != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("via", via)); + } + if (cookie != null) { localVarHeaderParams.put("Cookie", localVarApiClient.parameterToString(cookie)); } @@ -180,8 +185,8 @@ public okhttp3.Call createBrowserLoginFlowCall(Boolean refresh, String aal, Stri } @SuppressWarnings("rawtypes") - private okhttp3.Call createBrowserLoginFlowValidateBeforeCall(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, final ApiCallback _callback) throws ApiException { - return createBrowserLoginFlowCall(refresh, aal, returnTo, cookie, loginChallenge, organization, _callback); + private okhttp3.Call createBrowserLoginFlowValidateBeforeCall(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, String via, final ApiCallback _callback) throws ApiException { + return createBrowserLoginFlowCall(refresh, aal, returnTo, cookie, loginChallenge, organization, via, _callback); } @@ -194,6 +199,7 @@ private okhttp3.Call createBrowserLoginFlowValidateBeforeCall(Boolean refresh, S * @param cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @return LoginFlow * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -205,8 +211,8 @@ private okhttp3.Call createBrowserLoginFlowValidateBeforeCall(Boolean refresh, S 0 errorGeneric - */ - public LoginFlow createBrowserLoginFlow(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization) throws ApiException { - ApiResponse localVarResp = createBrowserLoginFlowWithHttpInfo(refresh, aal, returnTo, cookie, loginChallenge, organization); + public LoginFlow createBrowserLoginFlow(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, String via) throws ApiException { + ApiResponse localVarResp = createBrowserLoginFlowWithHttpInfo(refresh, aal, returnTo, cookie, loginChallenge, organization, via); return localVarResp.getData(); } @@ -219,6 +225,7 @@ public LoginFlow createBrowserLoginFlow(Boolean refresh, String aal, String retu * @param cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @return ApiResponse<LoginFlow> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -230,8 +237,8 @@ public LoginFlow createBrowserLoginFlow(Boolean refresh, String aal, String retu 0 errorGeneric - */ - public ApiResponse createBrowserLoginFlowWithHttpInfo(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization) throws ApiException { - okhttp3.Call localVarCall = createBrowserLoginFlowValidateBeforeCall(refresh, aal, returnTo, cookie, loginChallenge, organization, null); + public ApiResponse createBrowserLoginFlowWithHttpInfo(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, String via) throws ApiException { + okhttp3.Call localVarCall = createBrowserLoginFlowValidateBeforeCall(refresh, aal, returnTo, cookie, loginChallenge, organization, via, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -245,6 +252,7 @@ public ApiResponse createBrowserLoginFlowWithHttpInfo(Boolean refresh * @param cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -257,9 +265,9 @@ public ApiResponse createBrowserLoginFlowWithHttpInfo(Boolean refresh 0 errorGeneric - */ - public okhttp3.Call createBrowserLoginFlowAsync(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createBrowserLoginFlowAsync(Boolean refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization, String via, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createBrowserLoginFlowValidateBeforeCall(refresh, aal, returnTo, cookie, loginChallenge, organization, _callback); + okhttp3.Call localVarCall = createBrowserLoginFlowValidateBeforeCall(refresh, aal, returnTo, cookie, loginChallenge, organization, via, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -976,6 +984,7 @@ public okhttp3.Call createBrowserVerificationFlowAsync(String returnTo, final Ap * @param xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param returnTo The URL to return the browser to after the flow was completed. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -987,7 +996,7 @@ public okhttp3.Call createBrowserVerificationFlowAsync(String returnTo, final Ap 0 errorGeneric - */ - public okhttp3.Call createNativeLoginFlowCall(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createNativeLoginFlowCall(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, String via, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1028,6 +1037,10 @@ public okhttp3.Call createNativeLoginFlowCall(Boolean refresh, String aal, Strin localVarQueryParams.addAll(localVarApiClient.parameterToPair("return_to", returnTo)); } + if (via != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("via", via)); + } + if (xSessionToken != null) { localVarHeaderParams.put("X-Session-Token", localVarApiClient.parameterToString(xSessionToken)); } @@ -1052,8 +1065,8 @@ public okhttp3.Call createNativeLoginFlowCall(Boolean refresh, String aal, Strin } @SuppressWarnings("rawtypes") - private okhttp3.Call createNativeLoginFlowValidateBeforeCall(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, final ApiCallback _callback) throws ApiException { - return createNativeLoginFlowCall(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, _callback); + private okhttp3.Call createNativeLoginFlowValidateBeforeCall(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, String via, final ApiCallback _callback) throws ApiException { + return createNativeLoginFlowCall(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via, _callback); } @@ -1065,6 +1078,7 @@ private okhttp3.Call createNativeLoginFlowValidateBeforeCall(Boolean refresh, St * @param xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param returnTo The URL to return the browser to after the flow was completed. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @return LoginFlow * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1075,8 +1089,8 @@ private okhttp3.Call createNativeLoginFlowValidateBeforeCall(Boolean refresh, St 0 errorGeneric - */ - public LoginFlow createNativeLoginFlow(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo) throws ApiException { - ApiResponse localVarResp = createNativeLoginFlowWithHttpInfo(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + public LoginFlow createNativeLoginFlow(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, String via) throws ApiException { + ApiResponse localVarResp = createNativeLoginFlowWithHttpInfo(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); return localVarResp.getData(); } @@ -1088,6 +1102,7 @@ public LoginFlow createNativeLoginFlow(Boolean refresh, String aal, String xSess * @param xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param returnTo The URL to return the browser to after the flow was completed. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @return ApiResponse<LoginFlow> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1098,8 +1113,8 @@ public LoginFlow createNativeLoginFlow(Boolean refresh, String aal, String xSess 0 errorGeneric - */ - public ApiResponse createNativeLoginFlowWithHttpInfo(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo) throws ApiException { - okhttp3.Call localVarCall = createNativeLoginFlowValidateBeforeCall(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, null); + public ApiResponse createNativeLoginFlowWithHttpInfo(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, String via) throws ApiException { + okhttp3.Call localVarCall = createNativeLoginFlowValidateBeforeCall(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1112,6 +1127,7 @@ public ApiResponse createNativeLoginFlowWithHttpInfo(Boolean refresh, * @param xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param returnTo The URL to return the browser to after the flow was completed. (optional) + * @param via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1123,9 +1139,9 @@ public ApiResponse createNativeLoginFlowWithHttpInfo(Boolean refresh, 0 errorGeneric - */ - public okhttp3.Call createNativeLoginFlowAsync(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createNativeLoginFlowAsync(Boolean refresh, String aal, String xSessionToken, Boolean returnSessionTokenExchangeCode, String returnTo, String via, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createNativeLoginFlowValidateBeforeCall(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, _callback); + okhttp3.Call localVarCall = createNativeLoginFlowValidateBeforeCall(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/clients/client/java/src/main/java/sh/ory/api/IdentityApi.java b/clients/client/java/src/main/java/sh/ory/api/IdentityApi.java index 2ef6f88fbc7..1bb06c7f78b 100644 --- a/clients/client/java/src/main/java/sh/ory/api/IdentityApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/IdentityApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -477,6 +477,7 @@ public okhttp3.Call createRecoveryCodeForIdentityAsync(CreateRecoveryCodeForIden } /** * Build call for createRecoveryLinkForIdentity + * @param returnTo (optional) * @param createRecoveryLinkForIdentityBody (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -490,7 +491,7 @@ public okhttp3.Call createRecoveryCodeForIdentityAsync(CreateRecoveryCodeForIden 0 errorGeneric - */ - public okhttp3.Call createRecoveryLinkForIdentityCall(CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRecoveryLinkForIdentityCall(String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -515,6 +516,10 @@ public okhttp3.Call createRecoveryLinkForIdentityCall(CreateRecoveryLinkForIdent Map localVarCookieParams = new HashMap(); Map localVarFormParams = new HashMap(); + if (returnTo != null) { + localVarQueryParams.addAll(localVarApiClient.parameterToPair("return_to", returnTo)); + } + final String[] localVarAccepts = { "application/json" }; @@ -536,14 +541,15 @@ public okhttp3.Call createRecoveryLinkForIdentityCall(CreateRecoveryLinkForIdent } @SuppressWarnings("rawtypes") - private okhttp3.Call createRecoveryLinkForIdentityValidateBeforeCall(CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody, final ApiCallback _callback) throws ApiException { - return createRecoveryLinkForIdentityCall(createRecoveryLinkForIdentityBody, _callback); + private okhttp3.Call createRecoveryLinkForIdentityValidateBeforeCall(String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody, final ApiCallback _callback) throws ApiException { + return createRecoveryLinkForIdentityCall(returnTo, createRecoveryLinkForIdentityBody, _callback); } /** * 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 returnTo (optional) * @param createRecoveryLinkForIdentityBody (optional) * @return RecoveryLinkForIdentity * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -556,14 +562,15 @@ private okhttp3.Call createRecoveryLinkForIdentityValidateBeforeCall(CreateRecov 0 errorGeneric - */ - public RecoveryLinkForIdentity createRecoveryLinkForIdentity(CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody) throws ApiException { - ApiResponse localVarResp = createRecoveryLinkForIdentityWithHttpInfo(createRecoveryLinkForIdentityBody); + public RecoveryLinkForIdentity createRecoveryLinkForIdentity(String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody) throws ApiException { + ApiResponse localVarResp = createRecoveryLinkForIdentityWithHttpInfo(returnTo, createRecoveryLinkForIdentityBody); return localVarResp.getData(); } /** * 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 returnTo (optional) * @param createRecoveryLinkForIdentityBody (optional) * @return ApiResponse<RecoveryLinkForIdentity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -576,8 +583,8 @@ public RecoveryLinkForIdentity createRecoveryLinkForIdentity(CreateRecoveryLinkF 0 errorGeneric - */ - public ApiResponse createRecoveryLinkForIdentityWithHttpInfo(CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody) throws ApiException { - okhttp3.Call localVarCall = createRecoveryLinkForIdentityValidateBeforeCall(createRecoveryLinkForIdentityBody, null); + public ApiResponse createRecoveryLinkForIdentityWithHttpInfo(String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody) throws ApiException { + okhttp3.Call localVarCall = createRecoveryLinkForIdentityValidateBeforeCall(returnTo, createRecoveryLinkForIdentityBody, null); Type localVarReturnType = new TypeToken(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -585,6 +592,7 @@ public ApiResponse createRecoveryLinkForIdentityWithHtt /** * Create a Recovery Link (asynchronously) * This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. + * @param returnTo (optional) * @param createRecoveryLinkForIdentityBody (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call @@ -598,9 +606,9 @@ public ApiResponse createRecoveryLinkForIdentityWithHtt 0 errorGeneric - */ - public okhttp3.Call createRecoveryLinkForIdentityAsync(CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody, final ApiCallback _callback) throws ApiException { + public okhttp3.Call createRecoveryLinkForIdentityAsync(String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody, final ApiCallback _callback) throws ApiException { - okhttp3.Call localVarCall = createRecoveryLinkForIdentityValidateBeforeCall(createRecoveryLinkForIdentityBody, _callback); + okhttp3.Call localVarCall = createRecoveryLinkForIdentityValidateBeforeCall(returnTo, createRecoveryLinkForIdentityBody, _callback); Type localVarReturnType = new TypeToken(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; @@ -735,7 +743,7 @@ public okhttp3.Call deleteIdentityAsync(String id, final ApiCallback _call /** * Build call for deleteIdentityCredentials * @param id ID is the identity's ID. (required) - * @param type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -813,7 +821,7 @@ private okhttp3.Call deleteIdentityCredentialsValidateBeforeCall(String id, Stri * Delete a credential for a specific identity * Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. * @param id ID is the identity's ID. (required) - * @param type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -831,7 +839,7 @@ public void deleteIdentityCredentials(String id, String type) throws ApiExceptio * Delete a credential for a specific identity * Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. * @param id ID is the identity's ID. (required) - * @param type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * @return ApiResponse<Void> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -851,7 +859,7 @@ public ApiResponse deleteIdentityCredentialsWithHttpInfo(String id, String * Delete a credential for a specific identity (asynchronously) * Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. * @param id ID is the identity's ID. (required) - * @param type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1686,9 +1694,10 @@ public okhttp3.Call getSessionAsync(String id, List expand, final ApiCal * @param pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 1) * @param consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * @param _callback Callback for upload/download progress * @return Call to execute * @throws ApiException If fail to serialize the request body object @@ -1699,7 +1708,7 @@ public okhttp3.Call getSessionAsync(String id, List expand, final ApiCal
0 errorGeneric -
*/ - public okhttp3.Call listIdentitiesCall(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List idsFilter, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, final ApiCallback _callback) throws ApiException { + public okhttp3.Call listIdentitiesCall(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, List includeCredential, final ApiCallback _callback) throws ApiException { String basePath = null; // Operation Servers String[] localBasePaths = new String[] { }; @@ -1744,8 +1753,8 @@ public okhttp3.Call listIdentitiesCall(Long perPage, Long page, Long pageSize, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("consistency", consistency)); } - if (idsFilter != null) { - localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "ids_filter", idsFilter)); + if (ids != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "ids", ids)); } if (credentialsIdentifier != null) { @@ -1756,6 +1765,10 @@ public okhttp3.Call listIdentitiesCall(Long perPage, Long page, Long pageSize, S localVarQueryParams.addAll(localVarApiClient.parameterToPair("preview_credentials_identifier_similar", previewCredentialsIdentifierSimilar)); } + if (includeCredential != null) { + localVarCollectionQueryParams.addAll(localVarApiClient.parameterToPairs("multi", "include_credential", includeCredential)); + } + final String[] localVarAccepts = { "application/json" }; @@ -1776,8 +1789,8 @@ public okhttp3.Call listIdentitiesCall(Long perPage, Long page, Long pageSize, S } @SuppressWarnings("rawtypes") - private okhttp3.Call listIdentitiesValidateBeforeCall(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List idsFilter, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, final ApiCallback _callback) throws ApiException { - return listIdentitiesCall(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar, _callback); + private okhttp3.Call listIdentitiesValidateBeforeCall(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, List includeCredential, final ApiCallback _callback) throws ApiException { + return listIdentitiesCall(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential, _callback); } @@ -1789,9 +1802,10 @@ private okhttp3.Call listIdentitiesValidateBeforeCall(Long perPage, Long page, L * @param pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 1) * @param consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * @return List<Identity> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1801,8 +1815,8 @@ private okhttp3.Call listIdentitiesValidateBeforeCall(Long perPage, Long page, L 0 errorGeneric - */ - public List listIdentities(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List idsFilter, String credentialsIdentifier, String previewCredentialsIdentifierSimilar) throws ApiException { - ApiResponse> localVarResp = listIdentitiesWithHttpInfo(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + public List listIdentities(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, List includeCredential) throws ApiException { + ApiResponse> localVarResp = listIdentitiesWithHttpInfo(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); return localVarResp.getData(); } @@ -1814,9 +1828,10 @@ public List listIdentities(Long perPage, Long page, Long pageSize, Str * @param pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 1) * @param consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * @return ApiResponse<List<Identity>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1826,8 +1841,8 @@ public List listIdentities(Long perPage, Long page, Long pageSize, Str 0 errorGeneric - */ - public ApiResponse> listIdentitiesWithHttpInfo(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List idsFilter, String credentialsIdentifier, String previewCredentialsIdentifierSimilar) throws ApiException { - okhttp3.Call localVarCall = listIdentitiesValidateBeforeCall(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar, null); + public ApiResponse> listIdentitiesWithHttpInfo(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, List includeCredential) throws ApiException { + okhttp3.Call localVarCall = listIdentitiesValidateBeforeCall(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential, null); Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1840,9 +1855,10 @@ public ApiResponse> listIdentitiesWithHttpInfo(Long perPage, Long * @param pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 1) * @param consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call * @throws ApiException If fail to process the API call, e.g. serializing the request body object @@ -1853,9 +1869,9 @@ public ApiResponse> listIdentitiesWithHttpInfo(Long perPage, Long 0 errorGeneric - */ - public okhttp3.Call listIdentitiesAsync(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List idsFilter, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call listIdentitiesAsync(Long perPage, Long page, Long pageSize, String pageToken, String consistency, List ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar, List includeCredential, final ApiCallback> _callback) throws ApiException { - okhttp3.Call localVarCall = listIdentitiesValidateBeforeCall(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar, _callback); + okhttp3.Call localVarCall = listIdentitiesValidateBeforeCall(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential, _callback); Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; diff --git a/clients/client/java/src/main/java/sh/ory/api/JwkApi.java b/clients/client/java/src/main/java/sh/ory/api/JwkApi.java index 1b30e0943ac..130a576b793 100644 --- a/clients/client/java/src/main/java/sh/ory/api/JwkApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/JwkApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/MetadataApi.java b/clients/client/java/src/main/java/sh/ory/api/MetadataApi.java index f243be5a717..ce070018f68 100644 --- a/clients/client/java/src/main/java/sh/ory/api/MetadataApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/MetadataApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/OAuth2Api.java b/clients/client/java/src/main/java/sh/ory/api/OAuth2Api.java index d8621667ea8..7963a5cfbcf 100644 --- a/clients/client/java/src/main/java/sh/ory/api/OAuth2Api.java +++ b/clients/client/java/src/main/java/sh/ory/api/OAuth2Api.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/OidcApi.java b/clients/client/java/src/main/java/sh/ory/api/OidcApi.java index 2a96311ddc6..d57845065b5 100644 --- a/clients/client/java/src/main/java/sh/ory/api/OidcApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/OidcApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/PermissionApi.java b/clients/client/java/src/main/java/sh/ory/api/PermissionApi.java index 10c2ece5b1e..103741a3e4d 100644 --- a/clients/client/java/src/main/java/sh/ory/api/PermissionApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/PermissionApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -759,7 +759,7 @@ public okhttp3.Call postCheckPermissionAsync(Long maxDepth, PostCheckPermissionB } /** * Build call for postCheckPermissionOrError - * @param maxDepth nolint:deadcode,unused (optional) + * @param maxDepth (optional) * @param postCheckPermissionOrErrorBody (optional) * @param _callback Callback for upload/download progress * @return Call to execute @@ -831,7 +831,7 @@ private okhttp3.Call postCheckPermissionOrErrorValidateBeforeCall(Long maxDepth, /** * Check a permission * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). - * @param maxDepth nolint:deadcode,unused (optional) + * @param maxDepth (optional) * @param postCheckPermissionOrErrorBody (optional) * @return CheckPermissionResult * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -852,7 +852,7 @@ public CheckPermissionResult postCheckPermissionOrError(Long maxDepth, PostCheck /** * Check a permission * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). - * @param maxDepth nolint:deadcode,unused (optional) + * @param maxDepth (optional) * @param postCheckPermissionOrErrorBody (optional) * @return ApiResponse<CheckPermissionResult> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -874,7 +874,7 @@ public ApiResponse postCheckPermissionOrErrorWithHttpInfo /** * Check a permission (asynchronously) * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). - * @param maxDepth nolint:deadcode,unused (optional) + * @param maxDepth (optional) * @param postCheckPermissionOrErrorBody (optional) * @param _callback The callback to be executed when the API call finishes * @return The request call diff --git a/clients/client/java/src/main/java/sh/ory/api/ProjectApi.java b/clients/client/java/src/main/java/sh/ory/api/ProjectApi.java index 6ccf941106f..2b1431a05c3 100644 --- a/clients/client/java/src/main/java/sh/ory/api/ProjectApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/ProjectApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import sh.ory.model.ActiveProjectInConsole; -import sh.ory.model.CloudAccount; import sh.ory.model.CreateProjectApiKeyRequest; import sh.ory.model.CreateProjectBody; import sh.ory.model.ErrorGeneric; @@ -42,6 +41,7 @@ import sh.ory.model.OrganizationBody; import sh.ory.model.Project; import sh.ory.model.ProjectApiKey; +import sh.ory.model.ProjectMember; import sh.ory.model.ProjectMetadata; import sh.ory.model.SetActiveProjectInConsoleBody; import sh.ory.model.SetProject; @@ -1263,7 +1263,7 @@ private okhttp3.Call getProjectMembersValidateBeforeCall(String project, final A * Get all members associated with this project * This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. * @param project (required) - * @return List<CloudAccount> + * @return List<ProjectMember> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1274,8 +1274,8 @@ private okhttp3.Call getProjectMembersValidateBeforeCall(String project, final A
0 genericError -
*/ - public List getProjectMembers(String project) throws ApiException { - ApiResponse> localVarResp = getProjectMembersWithHttpInfo(project); + public List getProjectMembers(String project) throws ApiException { + ApiResponse> localVarResp = getProjectMembersWithHttpInfo(project); return localVarResp.getData(); } @@ -1283,7 +1283,7 @@ public List getProjectMembers(String project) throws ApiException * Get all members associated with this project * This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. * @param project (required) - * @return ApiResponse<List<CloudAccount>> + * @return ApiResponse<List<ProjectMember>> * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body * @http.response.details @@ -1294,9 +1294,9 @@ public List getProjectMembers(String project) throws ApiException
0 genericError -
*/ - public ApiResponse> getProjectMembersWithHttpInfo(String project) throws ApiException { + public ApiResponse> getProjectMembersWithHttpInfo(String project) throws ApiException { okhttp3.Call localVarCall = getProjectMembersValidateBeforeCall(project, null); - Type localVarReturnType = new TypeToken>(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); return localVarApiClient.execute(localVarCall, localVarReturnType); } @@ -1316,10 +1316,10 @@ public ApiResponse> getProjectMembersWithHttpInfo(String proj 0 genericError - */ - public okhttp3.Call getProjectMembersAsync(String project, final ApiCallback> _callback) throws ApiException { + public okhttp3.Call getProjectMembersAsync(String project, final ApiCallback> _callback) throws ApiException { okhttp3.Call localVarCall = getProjectMembersValidateBeforeCall(project, _callback); - Type localVarReturnType = new TypeToken>(){}.getType(); + Type localVarReturnType = new TypeToken>(){}.getType(); localVarApiClient.executeAsync(localVarCall, localVarReturnType, _callback); return localVarCall; } @@ -1327,7 +1327,7 @@ public okhttp3.Call getProjectMembersAsync(String project, final ApiCallback getProjectMetricsWithHttpInfo(Stri * Retrieves project metrics for the specified event type and time range * @param projectId Project ID (required) * @param eventType The event type to query for (required) - * @param resolution The resolution of the buckets The minimum resolution is 1 hour. (required) + * @param resolution The resolution of the buckets The minimum resolution is 1 minute. (required) * @param from The start RFC3339 date of the time window (required) * @param to The end RFC3339 date of the time window (required) * @param _callback The callback to be executed when the API call finishes diff --git a/clients/client/java/src/main/java/sh/ory/api/RelationshipApi.java b/clients/client/java/src/main/java/sh/ory/api/RelationshipApi.java index 84e97a76ad5..68c0575ce31 100644 --- a/clients/client/java/src/main/java/sh/ory/api/RelationshipApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/RelationshipApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/api/WellknownApi.java b/clients/client/java/src/main/java/sh/ory/api/WellknownApi.java index e598b740f79..857594bd456 100644 --- a/clients/client/java/src/main/java/sh/ory/api/WellknownApi.java +++ b/clients/client/java/src/main/java/sh/ory/api/WellknownApi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/auth/ApiKeyAuth.java b/clients/client/java/src/main/java/sh/ory/auth/ApiKeyAuth.java index 41e4978e28b..dbc3571e2ca 100644 --- a/clients/client/java/src/main/java/sh/ory/auth/ApiKeyAuth.java +++ b/clients/client/java/src/main/java/sh/ory/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/clients/client/java/src/main/java/sh/ory/auth/Authentication.java b/clients/client/java/src/main/java/sh/ory/auth/Authentication.java index 2841fac7795..2c4b67d4b33 100644 --- a/clients/client/java/src/main/java/sh/ory/auth/Authentication.java +++ b/clients/client/java/src/main/java/sh/ory/auth/Authentication.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/auth/HttpBasicAuth.java b/clients/client/java/src/main/java/sh/ory/auth/HttpBasicAuth.java index 5dc7598a2d3..423bad2b275 100644 --- a/clients/client/java/src/main/java/sh/ory/auth/HttpBasicAuth.java +++ b/clients/client/java/src/main/java/sh/ory/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/auth/HttpBearerAuth.java b/clients/client/java/src/main/java/sh/ory/auth/HttpBearerAuth.java index 6edaf35daea..e94a2b2d055 100644 --- a/clients/client/java/src/main/java/sh/ory/auth/HttpBearerAuth.java +++ b/clients/client/java/src/main/java/sh/ory/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/clients/client/java/src/main/java/sh/ory/auth/OAuth.java b/clients/client/java/src/main/java/sh/ory/auth/OAuth.java index cb0b667ba33..8769da74973 100644 --- a/clients/client/java/src/main/java/sh/ory/auth/OAuth.java +++ b/clients/client/java/src/main/java/sh/ory/auth/OAuth.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth implements Authentication { private String accessToken; diff --git a/clients/client/java/src/main/java/sh/ory/auth/OAuthFlow.java b/clients/client/java/src/main/java/sh/ory/auth/OAuthFlow.java index 6a4ba663d3a..0c2085e2c91 100644 --- a/clients/client/java/src/main/java/sh/ory/auth/OAuthFlow.java +++ b/clients/client/java/src/main/java/sh/ory/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/clients/client/java/src/main/java/sh/ory/model/AbstractOpenApiSchema.java b/clients/client/java/src/main/java/sh/ory/model/AbstractOpenApiSchema.java index b03a3d64bae..f7c8bc47a9c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AbstractOpenApiSchema.java +++ b/clients/client/java/src/main/java/sh/ory/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequest.java b/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequest.java index 92fc317fc29..548e71e09a8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequest.java +++ b/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,8 +52,12 @@ /** * AcceptOAuth2ConsentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class AcceptOAuth2ConsentRequest { + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private Object context; + public static final String SERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCE = "grant_access_token_audience"; @SerializedName(SERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCE) private List grantAccessTokenAudience = null; @@ -81,6 +85,29 @@ public class AcceptOAuth2ConsentRequest { public AcceptOAuth2ConsentRequest() { } + public AcceptOAuth2ConsentRequest context(Object context) { + + this.context = context; + return this; + } + + /** + * Get context + * @return context + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getContext() { + return context; + } + + + public void setContext(Object context) { + this.context = context; + } + + public AcceptOAuth2ConsentRequest grantAccessTokenAudience(List grantAccessTokenAudience) { this.grantAccessTokenAudience = grantAccessTokenAudience; @@ -289,7 +316,8 @@ public boolean equals(Object o) { return false; } AcceptOAuth2ConsentRequest acceptOAuth2ConsentRequest = (AcceptOAuth2ConsentRequest) o; - return Objects.equals(this.grantAccessTokenAudience, acceptOAuth2ConsentRequest.grantAccessTokenAudience) && + return Objects.equals(this.context, acceptOAuth2ConsentRequest.context) && + Objects.equals(this.grantAccessTokenAudience, acceptOAuth2ConsentRequest.grantAccessTokenAudience) && Objects.equals(this.grantScope, acceptOAuth2ConsentRequest.grantScope) && Objects.equals(this.handledAt, acceptOAuth2ConsentRequest.handledAt) && Objects.equals(this.remember, acceptOAuth2ConsentRequest.remember) && @@ -300,13 +328,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); + return Objects.hash(context, grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AcceptOAuth2ConsentRequest {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" grantAccessTokenAudience: ").append(toIndentedString(grantAccessTokenAudience)).append("\n"); sb.append(" grantScope: ").append(toIndentedString(grantScope)).append("\n"); sb.append(" handledAt: ").append(toIndentedString(handledAt)).append("\n"); @@ -336,6 +365,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("context"); openapiFields.add("grant_access_token_audience"); openapiFields.add("grant_scope"); openapiFields.add("handled_at"); diff --git a/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequestSession.java b/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequestSession.java index 513a8b8eeba..998544aa249 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequestSession.java +++ b/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2ConsentRequestSession.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * AcceptOAuth2ConsentRequestSession */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class AcceptOAuth2ConsentRequestSession { public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2LoginRequest.java b/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2LoginRequest.java index 90f8c22ec89..806f622cb14 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2LoginRequest.java +++ b/clients/client/java/src/main/java/sh/ory/model/AcceptOAuth2LoginRequest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * AcceptOAuth2LoginRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class AcceptOAuth2LoginRequest { public static final String SERIALIZED_NAME_ACR = "acr"; @SerializedName(SERIALIZED_NAME_ACR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ActiveProjectInConsole.java b/clients/client/java/src/main/java/sh/ory/model/ActiveProjectInConsole.java index efb2ea39cb9..7d43cc39918 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ActiveProjectInConsole.java +++ b/clients/client/java/src/main/java/sh/ory/model/ActiveProjectInConsole.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * The Active Project ID */ @ApiModel(description = "The Active Project ID") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ActiveProjectInConsole { public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/Attribute.java b/clients/client/java/src/main/java/sh/ory/model/Attribute.java index 0263ce6dd97..f6da3ce0b37 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Attribute.java +++ b/clients/client/java/src/main/java/sh/ory/model/Attribute.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Attribute */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Attribute { public static final String SERIALIZED_NAME_KEY = "key"; @SerializedName(SERIALIZED_NAME_KEY) diff --git a/clients/client/java/src/main/java/sh/ory/model/AttributeFilter.java b/clients/client/java/src/main/java/sh/ory/model/AttributeFilter.java index 67b5c99448c..f248af74d44 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AttributeFilter.java +++ b/clients/client/java/src/main/java/sh/ory/model/AttributeFilter.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * AttributeFilter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class AttributeFilter { public static final String SERIALIZED_NAME_ATTRIBUTE = "attribute"; @SerializedName(SERIALIZED_NAME_ATTRIBUTE) diff --git a/clients/client/java/src/main/java/sh/ory/model/AttributesCountDatapoint.java b/clients/client/java/src/main/java/sh/ory/model/AttributesCountDatapoint.java index 71e712f2b16..1103e15acf6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AttributesCountDatapoint.java +++ b/clients/client/java/src/main/java/sh/ory/model/AttributesCountDatapoint.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * AttributesCountDatapoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class AttributesCountDatapoint { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/clients/client/java/src/main/java/sh/ory/model/AuthenticatorAssuranceLevel.java b/clients/client/java/src/main/java/sh/ory/model/AuthenticatorAssuranceLevel.java index 7c19d0c139d..97630d1618c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/AuthenticatorAssuranceLevel.java +++ b/clients/client/java/src/main/java/sh/ory/model/AuthenticatorAssuranceLevel.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/BatchPatchIdentitiesResponse.java b/clients/client/java/src/main/java/sh/ory/model/BatchPatchIdentitiesResponse.java index 8800b76a350..e029ec693c1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/BatchPatchIdentitiesResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/BatchPatchIdentitiesResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Patch identities response */ @ApiModel(description = "Patch identities response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class BatchPatchIdentitiesResponse { public static final String SERIALIZED_NAME_IDENTITIES = "identities"; @SerializedName(SERIALIZED_NAME_IDENTITIES) diff --git a/clients/client/java/src/main/java/sh/ory/model/CheckOplSyntaxResult.java b/clients/client/java/src/main/java/sh/ory/model/CheckOplSyntaxResult.java index 9bd9fa35587..ef6b1bdbf52 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CheckOplSyntaxResult.java +++ b/clients/client/java/src/main/java/sh/ory/model/CheckOplSyntaxResult.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * CheckOplSyntaxResult */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CheckOplSyntaxResult { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) diff --git a/clients/client/java/src/main/java/sh/ory/model/CheckPermissionResult.java b/clients/client/java/src/main/java/sh/ory/model/CheckPermissionResult.java index 0e5b291abf3..45304b6ae07 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CheckPermissionResult.java +++ b/clients/client/java/src/main/java/sh/ory/model/CheckPermissionResult.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * The content of the allowed field is mirrored in the HTTP status code. */ @ApiModel(description = "The content of the allowed field is mirrored in the HTTP status code.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CheckPermissionResult { public static final String SERIALIZED_NAME_ALLOWED = "allowed"; @SerializedName(SERIALIZED_NAME_ALLOWED) diff --git a/clients/client/java/src/main/java/sh/ory/model/CloudAccount.java b/clients/client/java/src/main/java/sh/ory/model/CloudAccount.java index 2ec2b67fbb5..ee1b840f880 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CloudAccount.java +++ b/clients/client/java/src/main/java/sh/ory/model/CloudAccount.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * CloudAccount */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CloudAccount { public static final String SERIALIZED_NAME_EMAIL = "email"; @SerializedName(SERIALIZED_NAME_EMAIL) @@ -75,8 +75,8 @@ public CloudAccount email(String email) { * Get email * @return email **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getEmail() { return email; @@ -98,8 +98,8 @@ public CloudAccount id(String id) { * Get id * @return id **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getId() { return id; @@ -121,8 +121,8 @@ public CloudAccount name(String name) { * Get name * @return name **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getName() { return name; @@ -235,6 +235,9 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("email"); + openapiRequiredFields.add("id"); + openapiRequiredFields.add("name"); } /** @@ -249,13 +252,20 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field(s) %s in CloudAccount is not found in the empty JSON string", CloudAccount.openapiRequiredFields.toString())); } } - if ((jsonObj.get("email") != null && !jsonObj.get("email").isJsonNull()) && !jsonObj.get("email").isJsonPrimitive()) { + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CloudAccount.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("email").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); } - if ((jsonObj.get("id") != null && !jsonObj.get("id").isJsonNull()) && !jsonObj.get("id").isJsonPrimitive()) { + if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } - if ((jsonObj.get("name") != null && !jsonObj.get("name").isJsonNull()) && !jsonObj.get("name").isJsonPrimitive()) { + if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } } diff --git a/clients/client/java/src/main/java/sh/ory/model/ConsistencyRequestParameters.java b/clients/client/java/src/main/java/sh/ory/model/ConsistencyRequestParameters.java index cde90d6102c..2eab25712c9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ConsistencyRequestParameters.java +++ b/clients/client/java/src/main/java/sh/ory/model/ConsistencyRequestParameters.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Control API consistency guarantees */ @ApiModel(description = "Control API consistency guarantees") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ConsistencyRequestParameters { /** * Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWith.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWith.java index 344b7eac9a4..3d91e8357d9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWith.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWith.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -62,7 +62,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWith extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(ContinueWith.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUi.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUi.java index e6ccb503194..27451c60b9f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUi.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Indicates, that the UI flow could be continued by showing a recovery ui */ @ApiModel(description = "Indicates, that the UI flow could be continued by showing a recovery ui") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithRecoveryUi { /** * Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUiFlow.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUiFlow.java index 036bd7404e6..d1c53342626 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUiFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithRecoveryUiFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ContinueWithRecoveryUiFlow */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithRecoveryUiFlow { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithSetOrySessionToken.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithSetOrySessionToken.java index d474ad56f99..c7ab310dcd5 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithSetOrySessionToken.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithSetOrySessionToken.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Indicates that a session was issued, and the application should use this token for authenticated requests */ @ApiModel(description = "Indicates that a session was issued, and the application should use this token for authenticated requests") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithSetOrySessionToken { /** * Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUi.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUi.java index 185e4a28581..5582e3aaebc 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUi.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Indicates, that the UI flow could be continued by showing a settings ui */ @ApiModel(description = "Indicates, that the UI flow could be continued by showing a settings ui") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithSettingsUi { /** * Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUiFlow.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUiFlow.java index ca7a615b7e1..9e770b1f229 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUiFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithSettingsUiFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ContinueWithSettingsUiFlow */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithSettingsUiFlow { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUi.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUi.java index 7e7119c374f..0e24d6f6d45 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUi.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUi.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Indicates, that the UI flow could be continued by showing a verification ui */ @ApiModel(description = "Indicates, that the UI flow could be continued by showing a verification ui") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithVerificationUi { /** * Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString diff --git a/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUiFlow.java b/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUiFlow.java index ceb6bc0632b..de5842ce5d4 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUiFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/ContinueWithVerificationUiFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ContinueWithVerificationUiFlow */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ContinueWithVerificationUiFlow { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/CourierMessageStatus.java b/clients/client/java/src/main/java/sh/ory/model/CourierMessageStatus.java index 7fdf12fc6f1..7729d910367 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CourierMessageStatus.java +++ b/clients/client/java/src/main/java/sh/ory/model/CourierMessageStatus.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/CourierMessageType.java b/clients/client/java/src/main/java/sh/ory/model/CourierMessageType.java index 44853af2ac0..50a466e6f60 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CourierMessageType.java +++ b/clients/client/java/src/main/java/sh/ory/model/CourierMessageType.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateCustomDomainBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateCustomDomainBody.java index aa7865af9ed..17b6a590d33 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateCustomDomainBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateCustomDomainBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Create Custom Hostname Request Body */ @ApiModel(description = "Create Custom Hostname Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateCustomDomainBody { public static final String SERIALIZED_NAME_COOKIE_DOMAIN = "cookie_domain"; @SerializedName(SERIALIZED_NAME_COOKIE_DOMAIN) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateEventStreamBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateEventStreamBody.java index cdedf8cbe3b..ccb2cf41f97 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateEventStreamBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateEventStreamBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Event Stream Request Body */ @ApiModel(description = "Create Event Stream Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateEventStreamBody { public static final String SERIALIZED_NAME_ROLE_ARN = "role_arn"; @SerializedName(SERIALIZED_NAME_ROLE_ARN) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateIdentityBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateIdentityBody.java index 7975d3793f1..e7f19d33ab8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateIdentityBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateIdentityBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,7 +26,6 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; -import sh.ory.model.IdentityState; import sh.ory.model.IdentityWithCredentials; import sh.ory.model.RecoveryIdentityAddress; import sh.ory.model.VerifiableIdentityAddress; @@ -56,7 +55,7 @@ * Create Identity Body */ @ApiModel(description = "Create Identity Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateIdentityBody { public static final String SERIALIZED_NAME_CREDENTIALS = "credentials"; @SerializedName(SERIALIZED_NAME_CREDENTIALS) @@ -78,9 +77,56 @@ public class CreateIdentityBody { @SerializedName(SERIALIZED_NAME_SCHEMA_ID) private String schemaId; + /** + * State is the identity's state. active StateActive inactive StateInactive + */ + @JsonAdapter(StateEnum.Adapter.class) + public enum StateEnum { + ACTIVE("active"), + + INACTIVE("inactive"); + + private String value; + + StateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StateEnum fromValue(String value) { + for (StateEnum b : StateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StateEnum.fromValue(value); + } + } + } + public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) - private IdentityState state; + private StateEnum state; public static final String SERIALIZED_NAME_TRAITS = "traits"; @SerializedName(SERIALIZED_NAME_TRAITS) @@ -216,25 +262,25 @@ public void setSchemaId(String schemaId) { } - public CreateIdentityBody state(IdentityState state) { + public CreateIdentityBody state(StateEnum state) { this.state = state; return this; } /** - * Get state + * State is the identity's state. active StateActive inactive StateInactive * @return state **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "State is the identity's state. active StateActive inactive StateInactive") - public IdentityState getState() { + public StateEnum getState() { return state; } - public void setState(IdentityState state) { + public void setState(StateEnum state) { this.state = state; } @@ -464,6 +510,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("schema_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `schema_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("schema_id").toString())); } + if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + } if (jsonObj.get("verifiable_addresses") != null && !jsonObj.get("verifiable_addresses").isJsonNull()) { JsonArray jsonArrayverifiableAddresses = jsonObj.getAsJsonArray("verifiable_addresses"); if (jsonArrayverifiableAddresses != null) { diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateInviteResponse.java b/clients/client/java/src/main/java/sh/ory/model/CreateInviteResponse.java index abbeaab60fb..28366a21f38 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateInviteResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateInviteResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * CreateInviteResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateInviteResponse { public static final String SERIALIZED_NAME_ALL_INVITES = "all_invites"; @SerializedName(SERIALIZED_NAME_ALL_INVITES) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateJsonWebKeySet.java b/clients/client/java/src/main/java/sh/ory/model/CreateJsonWebKeySet.java index 65b0f16d047..248c90b7342 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateJsonWebKeySet.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateJsonWebKeySet.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create JSON Web Key Set Request Body */ @ApiModel(description = "Create JSON Web Key Set Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateJsonWebKeySet { public static final String SERIALIZED_NAME_ALG = "alg"; @SerializedName(SERIALIZED_NAME_ALG) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateProjectApiKeyRequest.java b/clients/client/java/src/main/java/sh/ory/model/CreateProjectApiKeyRequest.java index fb4369ba4c8..c3f5b1a2dfa 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateProjectApiKeyRequest.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateProjectApiKeyRequest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * CreateProjectApiKeyRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateProjectApiKeyRequest { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateProjectBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateProjectBody.java index eef01fcea86..d97525c5380 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateProjectBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateProjectBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,8 +50,59 @@ * Create Project Request Body */ @ApiModel(description = "Create Project Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateProjectBody { + /** + * The environment of the project. prod Production dev Development + */ + @JsonAdapter(EnvironmentEnum.Adapter.class) + public enum EnvironmentEnum { + PROD("prod"), + + DEV("dev"); + + private String value; + + EnvironmentEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EnvironmentEnum fromValue(String value) { + for (EnvironmentEnum b : EnvironmentEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EnvironmentEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EnvironmentEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EnvironmentEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; + @SerializedName(SERIALIZED_NAME_ENVIRONMENT) + private EnvironmentEnum environment; + public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) private String name; @@ -63,6 +114,29 @@ public class CreateProjectBody { public CreateProjectBody() { } + public CreateProjectBody environment(EnvironmentEnum environment) { + + this.environment = environment; + return this; + } + + /** + * The environment of the project. prod Production dev Development + * @return environment + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The environment of the project. prod Production dev Development") + + public EnvironmentEnum getEnvironment() { + return environment; + } + + + public void setEnvironment(EnvironmentEnum environment) { + this.environment = environment; + } + + public CreateProjectBody name(String name) { this.name = name; @@ -163,7 +237,8 @@ public boolean equals(Object o) { return false; } CreateProjectBody createProjectBody = (CreateProjectBody) o; - return Objects.equals(this.name, createProjectBody.name) && + return Objects.equals(this.environment, createProjectBody.environment) && + Objects.equals(this.name, createProjectBody.name) && Objects.equals(this.workspaceId, createProjectBody.workspaceId)&& Objects.equals(this.additionalProperties, createProjectBody.additionalProperties); } @@ -174,7 +249,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(name, workspaceId, additionalProperties); + return Objects.hash(environment, name, workspaceId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -188,6 +263,7 @@ private static int hashCodeNullable(JsonNullable a) { public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class CreateProjectBody {\n"); + sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); sb.append(" workspaceId: ").append(toIndentedString(workspaceId)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -213,11 +289,13 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("environment"); openapiFields.add("name"); openapiFields.add("workspace_id"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("environment"); openapiRequiredFields.add("name"); } @@ -240,6 +318,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } + if (!jsonObj.get("environment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `environment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("environment").toString())); + } if (!jsonObj.get("name").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateProjectBranding.java b/clients/client/java/src/main/java/sh/ory/model/CreateProjectBranding.java index 256ea319aec..b87f5f88923 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateProjectBranding.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateProjectBranding.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Create a Project Branding */ @ApiModel(description = "Create a Project Branding") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateProjectBranding { public static final String SERIALIZED_NAME_FAVICON_TYPE = "favicon_type"; @SerializedName(SERIALIZED_NAME_FAVICON_TYPE) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateProjectMemberInviteBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateProjectMemberInviteBody.java index f3d0f031cbf..b04e288465d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateProjectMemberInviteBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateProjectMemberInviteBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Project MemberInvite Request Body */ @ApiModel(description = "Create Project MemberInvite Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateProjectMemberInviteBody { public static final String SERIALIZED_NAME_INVITEE_EMAIL = "invitee_email"; @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateProjectNormalizedPayload.java b/clients/client/java/src/main/java/sh/ory/model/CreateProjectNormalizedPayload.java index c38efc752d2..e587ed6ee6c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateProjectNormalizedPayload.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateProjectNormalizedPayload.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -59,7 +59,7 @@ * Create project (normalized) request payload */ @ApiModel(description = "Create project (normalized) request payload") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateProjectNormalizedPayload { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -69,6 +69,61 @@ public class CreateProjectNormalizedPayload { @SerializedName(SERIALIZED_NAME_DISABLE_ACCOUNT_EXPERIENCE_WELCOME_SCREEN) private Boolean disableAccountExperienceWelcomeScreen; + public static final String SERIALIZED_NAME_ENABLE_AX_V2 = "enable_ax_v2"; + @SerializedName(SERIALIZED_NAME_ENABLE_AX_V2) + private Boolean enableAxV2; + + /** + * prod Production dev Development + */ + @JsonAdapter(EnvironmentEnum.Adapter.class) + public enum EnvironmentEnum { + PROD("prod"), + + DEV("dev"); + + private String value; + + EnvironmentEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EnvironmentEnum fromValue(String value) { + for (EnvironmentEnum b : EnvironmentEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EnvironmentEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EnvironmentEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EnvironmentEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; + @SerializedName(SERIALIZED_NAME_ENVIRONMENT) + private EnvironmentEnum environment; + public static final String SERIALIZED_NAME_HYDRA_OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS = "hydra_oauth2_allowed_top_level_claims"; @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS) private List hydraOauth2AllowedTopLevelClaims = null; @@ -93,6 +148,10 @@ public class CreateProjectNormalizedPayload { @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_GRANT_JWT_MAX_TTL) private String hydraOauth2GrantJwtMaxTtl = "720h"; + public static final String SERIALIZED_NAME_HYDRA_OAUTH2_MIRROR_TOP_LEVEL_CLAIMS = "hydra_oauth2_mirror_top_level_claims"; + @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_MIRROR_TOP_LEVEL_CLAIMS) + private Boolean hydraOauth2MirrorTopLevelClaims; + public static final String SERIALIZED_NAME_HYDRA_OAUTH2_PKCE_ENFORCED = "hydra_oauth2_pkce_enforced"; @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_PKCE_ENFORCED) private Boolean hydraOauth2PkceEnforced; @@ -419,6 +478,10 @@ public HydraStrategiesScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_LOGIN_CODE_VALID_EMAIL_SUBJECT) private String kratosCourierTemplatesLoginCodeValidEmailSubject; + public static final String SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_LOGIN_CODE_VALID_SMS_BODY_PLAINTEXT = "kratos_courier_templates_login_code_valid_sms_body_plaintext"; + @SerializedName(SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_LOGIN_CODE_VALID_SMS_BODY_PLAINTEXT) + private String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + public static final String SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_RECOVERY_CODE_INVALID_EMAIL_BODY_HTML = "kratos_courier_templates_recovery_code_invalid_email_body_html"; @SerializedName(SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_RECOVERY_CODE_INVALID_EMAIL_BODY_HTML) private String kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @@ -853,6 +916,10 @@ public KratosSelfserviceFlowsVerificationUseEnum read(final JsonReader jsonReade @SerializedName(SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_ENABLED) private Boolean kratosSelfserviceMethodsCodeEnabled; + public static final String SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_MFA_ENABLED = "kratos_selfservice_methods_code_mfa_enabled"; + @SerializedName(SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_MFA_ENABLED) + private Boolean kratosSelfserviceMethodsCodeMfaEnabled; + public static final String SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_PASSWORDLESS_ENABLED = "kratos_selfservice_methods_code_passwordless_enabled"; @SerializedName(SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_PASSWORDLESS_ENABLED) private Boolean kratosSelfserviceMethodsCodePasswordlessEnabled; @@ -1057,6 +1124,52 @@ public void setDisableAccountExperienceWelcomeScreen(Boolean disableAccountExper } + public CreateProjectNormalizedPayload enableAxV2(Boolean enableAxV2) { + + this.enableAxV2 = enableAxV2; + return this; + } + + /** + * Whether the new account experience is enabled and reachable. + * @return enableAxV2 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether the new account experience is enabled and reachable.") + + public Boolean getEnableAxV2() { + return enableAxV2; + } + + + public void setEnableAxV2(Boolean enableAxV2) { + this.enableAxV2 = enableAxV2; + } + + + public CreateProjectNormalizedPayload environment(EnvironmentEnum environment) { + + this.environment = environment; + return this; + } + + /** + * prod Production dev Development + * @return environment + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = " prod Production dev Development") + + public EnvironmentEnum getEnvironment() { + return environment; + } + + + public void setEnvironment(EnvironmentEnum environment) { + this.environment = environment; + } + + public CreateProjectNormalizedPayload hydraOauth2AllowedTopLevelClaims(List hydraOauth2AllowedTopLevelClaims) { this.hydraOauth2AllowedTopLevelClaims = hydraOauth2AllowedTopLevelClaims; @@ -1203,6 +1316,29 @@ public void setHydraOauth2GrantJwtMaxTtl(String hydraOauth2GrantJwtMaxTtl) { } + public CreateProjectNormalizedPayload hydraOauth2MirrorTopLevelClaims(Boolean hydraOauth2MirrorTopLevelClaims) { + + this.hydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; + return this; + } + + /** + * Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + * @return hydraOauth2MirrorTopLevelClaims + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.") + + public Boolean getHydraOauth2MirrorTopLevelClaims() { + return hydraOauth2MirrorTopLevelClaims; + } + + + public void setHydraOauth2MirrorTopLevelClaims(Boolean hydraOauth2MirrorTopLevelClaims) { + this.hydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; + } + + public CreateProjectNormalizedPayload hydraOauth2PkceEnforced(Boolean hydraOauth2PkceEnforced) { this.hydraOauth2PkceEnforced = hydraOauth2PkceEnforced; @@ -2600,6 +2736,29 @@ public void setKratosCourierTemplatesLoginCodeValidEmailSubject(String kratosCou } + public CreateProjectNormalizedPayload kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + + this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + return this; + } + + /** + * Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + * @return kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.") + + public String getKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() { + return kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + } + + + public void setKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + } + + public CreateProjectNormalizedPayload kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml(String kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) { this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @@ -4595,6 +4754,29 @@ public void setKratosSelfserviceMethodsCodeEnabled(Boolean kratosSelfserviceMeth } + public CreateProjectNormalizedPayload kratosSelfserviceMethodsCodeMfaEnabled(Boolean kratosSelfserviceMethodsCodeMfaEnabled) { + + this.kratosSelfserviceMethodsCodeMfaEnabled = kratosSelfserviceMethodsCodeMfaEnabled; + return this; + } + + /** + * Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + * @return kratosSelfserviceMethodsCodeMfaEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.") + + public Boolean getKratosSelfserviceMethodsCodeMfaEnabled() { + return kratosSelfserviceMethodsCodeMfaEnabled; + } + + + public void setKratosSelfserviceMethodsCodeMfaEnabled(Boolean kratosSelfserviceMethodsCodeMfaEnabled) { + this.kratosSelfserviceMethodsCodeMfaEnabled = kratosSelfserviceMethodsCodeMfaEnabled; + } + + public CreateProjectNormalizedPayload kratosSelfserviceMethodsCodePasswordlessEnabled(Boolean kratosSelfserviceMethodsCodePasswordlessEnabled) { this.kratosSelfserviceMethodsCodePasswordlessEnabled = kratosSelfserviceMethodsCodePasswordlessEnabled; @@ -5564,12 +5746,15 @@ public boolean equals(Object o) { CreateProjectNormalizedPayload createProjectNormalizedPayload = (CreateProjectNormalizedPayload) o; return Objects.equals(this.createdAt, createProjectNormalizedPayload.createdAt) && Objects.equals(this.disableAccountExperienceWelcomeScreen, createProjectNormalizedPayload.disableAccountExperienceWelcomeScreen) && + Objects.equals(this.enableAxV2, createProjectNormalizedPayload.enableAxV2) && + Objects.equals(this.environment, createProjectNormalizedPayload.environment) && Objects.equals(this.hydraOauth2AllowedTopLevelClaims, createProjectNormalizedPayload.hydraOauth2AllowedTopLevelClaims) && Objects.equals(this.hydraOauth2ClientCredentialsDefaultGrantAllowedScope, createProjectNormalizedPayload.hydraOauth2ClientCredentialsDefaultGrantAllowedScope) && Objects.equals(this.hydraOauth2ExcludeNotBeforeClaim, createProjectNormalizedPayload.hydraOauth2ExcludeNotBeforeClaim) && Objects.equals(this.hydraOauth2GrantJwtIatOptional, createProjectNormalizedPayload.hydraOauth2GrantJwtIatOptional) && Objects.equals(this.hydraOauth2GrantJwtJtiOptional, createProjectNormalizedPayload.hydraOauth2GrantJwtJtiOptional) && Objects.equals(this.hydraOauth2GrantJwtMaxTtl, createProjectNormalizedPayload.hydraOauth2GrantJwtMaxTtl) && + Objects.equals(this.hydraOauth2MirrorTopLevelClaims, createProjectNormalizedPayload.hydraOauth2MirrorTopLevelClaims) && Objects.equals(this.hydraOauth2PkceEnforced, createProjectNormalizedPayload.hydraOauth2PkceEnforced) && Objects.equals(this.hydraOauth2PkceEnforcedForPublicClients, createProjectNormalizedPayload.hydraOauth2PkceEnforcedForPublicClients) && Objects.equals(this.hydraOauth2RefreshTokenHook, createProjectNormalizedPayload.hydraOauth2RefreshTokenHook) && @@ -5628,6 +5813,7 @@ public boolean equals(Object o) { Objects.equals(this.kratosCourierTemplatesLoginCodeValidEmailBodyHtml, createProjectNormalizedPayload.kratosCourierTemplatesLoginCodeValidEmailBodyHtml) && Objects.equals(this.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, createProjectNormalizedPayload.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext) && Objects.equals(this.kratosCourierTemplatesLoginCodeValidEmailSubject, createProjectNormalizedPayload.kratosCourierTemplatesLoginCodeValidEmailSubject) && + Objects.equals(this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, createProjectNormalizedPayload.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) && Objects.equals(this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, createProjectNormalizedPayload.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) && Objects.equals(this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, createProjectNormalizedPayload.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext) && Objects.equals(this.kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, createProjectNormalizedPayload.kratosCourierTemplatesRecoveryCodeInvalidEmailSubject) && @@ -5713,6 +5899,7 @@ public boolean equals(Object o) { Objects.equals(this.kratosSelfserviceFlowsVerificationUse, createProjectNormalizedPayload.kratosSelfserviceFlowsVerificationUse) && Objects.equals(this.kratosSelfserviceMethodsCodeConfigLifespan, createProjectNormalizedPayload.kratosSelfserviceMethodsCodeConfigLifespan) && Objects.equals(this.kratosSelfserviceMethodsCodeEnabled, createProjectNormalizedPayload.kratosSelfserviceMethodsCodeEnabled) && + Objects.equals(this.kratosSelfserviceMethodsCodeMfaEnabled, createProjectNormalizedPayload.kratosSelfserviceMethodsCodeMfaEnabled) && Objects.equals(this.kratosSelfserviceMethodsCodePasswordlessEnabled, createProjectNormalizedPayload.kratosSelfserviceMethodsCodePasswordlessEnabled) && Objects.equals(this.kratosSelfserviceMethodsLinkConfigBaseUrl, createProjectNormalizedPayload.kratosSelfserviceMethodsLinkConfigBaseUrl) && Objects.equals(this.kratosSelfserviceMethodsLinkConfigLifespan, createProjectNormalizedPayload.kratosSelfserviceMethodsLinkConfigLifespan) && @@ -5760,7 +5947,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(createdAt, disableAccountExperienceWelcomeScreen, hydraOauth2AllowedTopLevelClaims, hydraOauth2ClientCredentialsDefaultGrantAllowedScope, hydraOauth2ExcludeNotBeforeClaim, hydraOauth2GrantJwtIatOptional, hydraOauth2GrantJwtJtiOptional, hydraOauth2GrantJwtMaxTtl, hydraOauth2PkceEnforced, hydraOauth2PkceEnforcedForPublicClients, hydraOauth2RefreshTokenHook, hydraOauth2TokenHook, hydraOidcDynamicClientRegistrationDefaultScope, hydraOidcDynamicClientRegistrationEnabled, hydraOidcSubjectIdentifiersPairwiseSalt, hydraOidcSubjectIdentifiersSupportedTypes, hydraSecretsCookie, hydraSecretsSystem, hydraServeCookiesSameSiteLegacyWorkaround, hydraServeCookiesSameSiteMode, hydraStrategiesAccessToken, hydraStrategiesScope, hydraTtlAccessToken, hydraTtlAuthCode, hydraTtlIdToken, hydraTtlLoginConsentRequest, hydraTtlRefreshToken, hydraUrlsConsent, hydraUrlsError, hydraUrlsLogin, hydraUrlsLogout, hydraUrlsPostLogoutRedirect, hydraUrlsRegistration, hydraUrlsSelfIssuer, hydraWebfingerJwksBroadcastKeys, hydraWebfingerOidcDiscoveryAuthUrl, hydraWebfingerOidcDiscoveryClientRegistrationUrl, hydraWebfingerOidcDiscoveryJwksUrl, hydraWebfingerOidcDiscoverySupportedClaims, hydraWebfingerOidcDiscoverySupportedScope, hydraWebfingerOidcDiscoveryTokenUrl, hydraWebfingerOidcDiscoveryUserinfoUrl, id, ketoNamespaceConfiguration, ketoNamespaces, kratosCookiesSameSite, kratosCourierChannels, kratosCourierDeliveryStrategy, kratosCourierHttpRequestConfigAuthApiKeyIn, kratosCourierHttpRequestConfigAuthApiKeyName, kratosCourierHttpRequestConfigAuthApiKeyValue, kratosCourierHttpRequestConfigAuthBasicAuthPassword, kratosCourierHttpRequestConfigAuthBasicAuthUser, kratosCourierHttpRequestConfigAuthType, kratosCourierHttpRequestConfigBody, kratosCourierHttpRequestConfigHeaders, kratosCourierHttpRequestConfigMethod, kratosCourierHttpRequestConfigUrl, kratosCourierSmtpConnectionUri, kratosCourierSmtpFromAddress, kratosCourierSmtpFromName, kratosCourierSmtpHeaders, kratosCourierSmtpLocalName, kratosCourierTemplatesLoginCodeValidEmailBodyHtml, kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, kratosCourierTemplatesLoginCodeValidEmailSubject, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeValidEmailSubject, kratosCourierTemplatesRecoveryInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryInvalidEmailSubject, kratosCourierTemplatesRecoveryValidEmailBodyHtml, kratosCourierTemplatesRecoveryValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryValidEmailSubject, kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml, kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext, kratosCourierTemplatesRegistrationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml, kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeInvalidEmailSubject, kratosCourierTemplatesVerificationCodeValidEmailBodyHtml, kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailBodyHtml, kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailSubject, kratosCourierTemplatesVerificationValidEmailBodyHtml, kratosCourierTemplatesVerificationValidEmailBodyPlaintext, kratosCourierTemplatesVerificationValidEmailSubject, kratosFeatureFlagsCacheableSessions, kratosFeatureFlagsUseContinueWithTransitions, kratosIdentitySchemas, kratosOauth2ProviderHeaders, kratosOauth2ProviderOverrideReturnTo, kratosOauth2ProviderUrl, kratosPreviewDefaultReadConsistencyLevel, kratosSecretsCipher, kratosSecretsCookie, kratosSecretsDefault, kratosSelfserviceAllowedReturnUrls, kratosSelfserviceDefaultBrowserReturnUrl, kratosSelfserviceFlowsErrorUiUrl, kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginLifespan, kratosSelfserviceFlowsLoginUiUrl, kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryEnabled, kratosSelfserviceFlowsRecoveryLifespan, kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients, kratosSelfserviceFlowsRecoveryUiUrl, kratosSelfserviceFlowsRecoveryUse, kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationEnabled, kratosSelfserviceFlowsRegistrationLifespan, kratosSelfserviceFlowsRegistrationLoginHints, kratosSelfserviceFlowsRegistrationUiUrl, kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsLifespan, kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge, kratosSelfserviceFlowsSettingsRequiredAal, kratosSelfserviceFlowsSettingsUiUrl, kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsVerificationEnabled, kratosSelfserviceFlowsVerificationLifespan, kratosSelfserviceFlowsVerificationNotifyUnknownRecipients, kratosSelfserviceFlowsVerificationUiUrl, kratosSelfserviceFlowsVerificationUse, kratosSelfserviceMethodsCodeConfigLifespan, kratosSelfserviceMethodsCodeEnabled, kratosSelfserviceMethodsCodePasswordlessEnabled, kratosSelfserviceMethodsLinkConfigBaseUrl, kratosSelfserviceMethodsLinkConfigLifespan, kratosSelfserviceMethodsLinkEnabled, kratosSelfserviceMethodsLookupSecretEnabled, kratosSelfserviceMethodsOidcConfigBaseRedirectUri, kratosSelfserviceMethodsOidcConfigProviders, kratosSelfserviceMethodsOidcEnabled, kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled, kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled, kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors, kratosSelfserviceMethodsPasswordConfigMaxBreaches, kratosSelfserviceMethodsPasswordConfigMinPasswordLength, kratosSelfserviceMethodsPasswordEnabled, kratosSelfserviceMethodsProfileEnabled, kratosSelfserviceMethodsTotpConfigIssuer, kratosSelfserviceMethodsTotpEnabled, kratosSelfserviceMethodsWebauthnConfigPasswordless, kratosSelfserviceMethodsWebauthnConfigRpDisplayName, kratosSelfserviceMethodsWebauthnConfigRpIcon, kratosSelfserviceMethodsWebauthnConfigRpId, kratosSelfserviceMethodsWebauthnConfigRpOrigins, kratosSelfserviceMethodsWebauthnEnabled, kratosSessionCookiePersistent, kratosSessionCookieSameSite, kratosSessionLifespan, kratosSessionWhoamiRequiredAal, kratosSessionWhoamiTokenizerTemplates, name, projectId, projectRevisionHooks, serveAdminCorsAllowedOrigins, serveAdminCorsEnabled, servePublicCorsAllowedOrigins, servePublicCorsEnabled, strictSecurity, updatedAt, workspaceId, additionalProperties); + return Objects.hash(createdAt, disableAccountExperienceWelcomeScreen, enableAxV2, environment, hydraOauth2AllowedTopLevelClaims, hydraOauth2ClientCredentialsDefaultGrantAllowedScope, hydraOauth2ExcludeNotBeforeClaim, hydraOauth2GrantJwtIatOptional, hydraOauth2GrantJwtJtiOptional, hydraOauth2GrantJwtMaxTtl, hydraOauth2MirrorTopLevelClaims, hydraOauth2PkceEnforced, hydraOauth2PkceEnforcedForPublicClients, hydraOauth2RefreshTokenHook, hydraOauth2TokenHook, hydraOidcDynamicClientRegistrationDefaultScope, hydraOidcDynamicClientRegistrationEnabled, hydraOidcSubjectIdentifiersPairwiseSalt, hydraOidcSubjectIdentifiersSupportedTypes, hydraSecretsCookie, hydraSecretsSystem, hydraServeCookiesSameSiteLegacyWorkaround, hydraServeCookiesSameSiteMode, hydraStrategiesAccessToken, hydraStrategiesScope, hydraTtlAccessToken, hydraTtlAuthCode, hydraTtlIdToken, hydraTtlLoginConsentRequest, hydraTtlRefreshToken, hydraUrlsConsent, hydraUrlsError, hydraUrlsLogin, hydraUrlsLogout, hydraUrlsPostLogoutRedirect, hydraUrlsRegistration, hydraUrlsSelfIssuer, hydraWebfingerJwksBroadcastKeys, hydraWebfingerOidcDiscoveryAuthUrl, hydraWebfingerOidcDiscoveryClientRegistrationUrl, hydraWebfingerOidcDiscoveryJwksUrl, hydraWebfingerOidcDiscoverySupportedClaims, hydraWebfingerOidcDiscoverySupportedScope, hydraWebfingerOidcDiscoveryTokenUrl, hydraWebfingerOidcDiscoveryUserinfoUrl, id, ketoNamespaceConfiguration, ketoNamespaces, kratosCookiesSameSite, kratosCourierChannels, kratosCourierDeliveryStrategy, kratosCourierHttpRequestConfigAuthApiKeyIn, kratosCourierHttpRequestConfigAuthApiKeyName, kratosCourierHttpRequestConfigAuthApiKeyValue, kratosCourierHttpRequestConfigAuthBasicAuthPassword, kratosCourierHttpRequestConfigAuthBasicAuthUser, kratosCourierHttpRequestConfigAuthType, kratosCourierHttpRequestConfigBody, kratosCourierHttpRequestConfigHeaders, kratosCourierHttpRequestConfigMethod, kratosCourierHttpRequestConfigUrl, kratosCourierSmtpConnectionUri, kratosCourierSmtpFromAddress, kratosCourierSmtpFromName, kratosCourierSmtpHeaders, kratosCourierSmtpLocalName, kratosCourierTemplatesLoginCodeValidEmailBodyHtml, kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, kratosCourierTemplatesLoginCodeValidEmailSubject, kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeValidEmailSubject, kratosCourierTemplatesRecoveryInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryInvalidEmailSubject, kratosCourierTemplatesRecoveryValidEmailBodyHtml, kratosCourierTemplatesRecoveryValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryValidEmailSubject, kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml, kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext, kratosCourierTemplatesRegistrationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml, kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeInvalidEmailSubject, kratosCourierTemplatesVerificationCodeValidEmailBodyHtml, kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailBodyHtml, kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailSubject, kratosCourierTemplatesVerificationValidEmailBodyHtml, kratosCourierTemplatesVerificationValidEmailBodyPlaintext, kratosCourierTemplatesVerificationValidEmailSubject, kratosFeatureFlagsCacheableSessions, kratosFeatureFlagsUseContinueWithTransitions, kratosIdentitySchemas, kratosOauth2ProviderHeaders, kratosOauth2ProviderOverrideReturnTo, kratosOauth2ProviderUrl, kratosPreviewDefaultReadConsistencyLevel, kratosSecretsCipher, kratosSecretsCookie, kratosSecretsDefault, kratosSelfserviceAllowedReturnUrls, kratosSelfserviceDefaultBrowserReturnUrl, kratosSelfserviceFlowsErrorUiUrl, kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginLifespan, kratosSelfserviceFlowsLoginUiUrl, kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryEnabled, kratosSelfserviceFlowsRecoveryLifespan, kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients, kratosSelfserviceFlowsRecoveryUiUrl, kratosSelfserviceFlowsRecoveryUse, kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationEnabled, kratosSelfserviceFlowsRegistrationLifespan, kratosSelfserviceFlowsRegistrationLoginHints, kratosSelfserviceFlowsRegistrationUiUrl, kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsLifespan, kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge, kratosSelfserviceFlowsSettingsRequiredAal, kratosSelfserviceFlowsSettingsUiUrl, kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsVerificationEnabled, kratosSelfserviceFlowsVerificationLifespan, kratosSelfserviceFlowsVerificationNotifyUnknownRecipients, kratosSelfserviceFlowsVerificationUiUrl, kratosSelfserviceFlowsVerificationUse, kratosSelfserviceMethodsCodeConfigLifespan, kratosSelfserviceMethodsCodeEnabled, kratosSelfserviceMethodsCodeMfaEnabled, kratosSelfserviceMethodsCodePasswordlessEnabled, kratosSelfserviceMethodsLinkConfigBaseUrl, kratosSelfserviceMethodsLinkConfigLifespan, kratosSelfserviceMethodsLinkEnabled, kratosSelfserviceMethodsLookupSecretEnabled, kratosSelfserviceMethodsOidcConfigBaseRedirectUri, kratosSelfserviceMethodsOidcConfigProviders, kratosSelfserviceMethodsOidcEnabled, kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled, kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled, kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors, kratosSelfserviceMethodsPasswordConfigMaxBreaches, kratosSelfserviceMethodsPasswordConfigMinPasswordLength, kratosSelfserviceMethodsPasswordEnabled, kratosSelfserviceMethodsProfileEnabled, kratosSelfserviceMethodsTotpConfigIssuer, kratosSelfserviceMethodsTotpEnabled, kratosSelfserviceMethodsWebauthnConfigPasswordless, kratosSelfserviceMethodsWebauthnConfigRpDisplayName, kratosSelfserviceMethodsWebauthnConfigRpIcon, kratosSelfserviceMethodsWebauthnConfigRpId, kratosSelfserviceMethodsWebauthnConfigRpOrigins, kratosSelfserviceMethodsWebauthnEnabled, kratosSessionCookiePersistent, kratosSessionCookieSameSite, kratosSessionLifespan, kratosSessionWhoamiRequiredAal, kratosSessionWhoamiTokenizerTemplates, name, projectId, projectRevisionHooks, serveAdminCorsAllowedOrigins, serveAdminCorsEnabled, servePublicCorsAllowedOrigins, servePublicCorsEnabled, strictSecurity, updatedAt, workspaceId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -5776,12 +5963,15 @@ public String toString() { sb.append("class CreateProjectNormalizedPayload {\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" disableAccountExperienceWelcomeScreen: ").append(toIndentedString(disableAccountExperienceWelcomeScreen)).append("\n"); + sb.append(" enableAxV2: ").append(toIndentedString(enableAxV2)).append("\n"); + sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" hydraOauth2AllowedTopLevelClaims: ").append(toIndentedString(hydraOauth2AllowedTopLevelClaims)).append("\n"); sb.append(" hydraOauth2ClientCredentialsDefaultGrantAllowedScope: ").append(toIndentedString(hydraOauth2ClientCredentialsDefaultGrantAllowedScope)).append("\n"); sb.append(" hydraOauth2ExcludeNotBeforeClaim: ").append(toIndentedString(hydraOauth2ExcludeNotBeforeClaim)).append("\n"); sb.append(" hydraOauth2GrantJwtIatOptional: ").append(toIndentedString(hydraOauth2GrantJwtIatOptional)).append("\n"); sb.append(" hydraOauth2GrantJwtJtiOptional: ").append(toIndentedString(hydraOauth2GrantJwtJtiOptional)).append("\n"); sb.append(" hydraOauth2GrantJwtMaxTtl: ").append(toIndentedString(hydraOauth2GrantJwtMaxTtl)).append("\n"); + sb.append(" hydraOauth2MirrorTopLevelClaims: ").append(toIndentedString(hydraOauth2MirrorTopLevelClaims)).append("\n"); sb.append(" hydraOauth2PkceEnforced: ").append(toIndentedString(hydraOauth2PkceEnforced)).append("\n"); sb.append(" hydraOauth2PkceEnforcedForPublicClients: ").append(toIndentedString(hydraOauth2PkceEnforcedForPublicClients)).append("\n"); sb.append(" hydraOauth2RefreshTokenHook: ").append(toIndentedString(hydraOauth2RefreshTokenHook)).append("\n"); @@ -5840,6 +6030,7 @@ public String toString() { sb.append(" kratosCourierTemplatesLoginCodeValidEmailBodyHtml: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidEmailBodyHtml)).append("\n"); sb.append(" kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext)).append("\n"); sb.append(" kratosCourierTemplatesLoginCodeValidEmailSubject: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidEmailSubject)).append("\n"); + sb.append(" kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext)).append("\n"); sb.append(" kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: ").append(toIndentedString(kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml)).append("\n"); sb.append(" kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: ").append(toIndentedString(kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext)).append("\n"); sb.append(" kratosCourierTemplatesRecoveryCodeInvalidEmailSubject: ").append(toIndentedString(kratosCourierTemplatesRecoveryCodeInvalidEmailSubject)).append("\n"); @@ -5925,6 +6116,7 @@ public String toString() { sb.append(" kratosSelfserviceFlowsVerificationUse: ").append(toIndentedString(kratosSelfserviceFlowsVerificationUse)).append("\n"); sb.append(" kratosSelfserviceMethodsCodeConfigLifespan: ").append(toIndentedString(kratosSelfserviceMethodsCodeConfigLifespan)).append("\n"); sb.append(" kratosSelfserviceMethodsCodeEnabled: ").append(toIndentedString(kratosSelfserviceMethodsCodeEnabled)).append("\n"); + sb.append(" kratosSelfserviceMethodsCodeMfaEnabled: ").append(toIndentedString(kratosSelfserviceMethodsCodeMfaEnabled)).append("\n"); sb.append(" kratosSelfserviceMethodsCodePasswordlessEnabled: ").append(toIndentedString(kratosSelfserviceMethodsCodePasswordlessEnabled)).append("\n"); sb.append(" kratosSelfserviceMethodsLinkConfigBaseUrl: ").append(toIndentedString(kratosSelfserviceMethodsLinkConfigBaseUrl)).append("\n"); sb.append(" kratosSelfserviceMethodsLinkConfigLifespan: ").append(toIndentedString(kratosSelfserviceMethodsLinkConfigLifespan)).append("\n"); @@ -5988,12 +6180,15 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("created_at"); openapiFields.add("disable_account_experience_welcome_screen"); + openapiFields.add("enable_ax_v2"); + openapiFields.add("environment"); openapiFields.add("hydra_oauth2_allowed_top_level_claims"); openapiFields.add("hydra_oauth2_client_credentials_default_grant_allowed_scope"); openapiFields.add("hydra_oauth2_exclude_not_before_claim"); openapiFields.add("hydra_oauth2_grant_jwt_iat_optional"); openapiFields.add("hydra_oauth2_grant_jwt_jti_optional"); openapiFields.add("hydra_oauth2_grant_jwt_max_ttl"); + openapiFields.add("hydra_oauth2_mirror_top_level_claims"); openapiFields.add("hydra_oauth2_pkce_enforced"); openapiFields.add("hydra_oauth2_pkce_enforced_for_public_clients"); openapiFields.add("hydra_oauth2_refresh_token_hook"); @@ -6052,6 +6247,7 @@ private String toIndentedString(Object o) { openapiFields.add("kratos_courier_templates_login_code_valid_email_body_html"); openapiFields.add("kratos_courier_templates_login_code_valid_email_body_plaintext"); openapiFields.add("kratos_courier_templates_login_code_valid_email_subject"); + openapiFields.add("kratos_courier_templates_login_code_valid_sms_body_plaintext"); openapiFields.add("kratos_courier_templates_recovery_code_invalid_email_body_html"); openapiFields.add("kratos_courier_templates_recovery_code_invalid_email_body_plaintext"); openapiFields.add("kratos_courier_templates_recovery_code_invalid_email_subject"); @@ -6137,6 +6333,7 @@ private String toIndentedString(Object o) { openapiFields.add("kratos_selfservice_flows_verification_use"); openapiFields.add("kratos_selfservice_methods_code_config_lifespan"); openapiFields.add("kratos_selfservice_methods_code_enabled"); + openapiFields.add("kratos_selfservice_methods_code_mfa_enabled"); openapiFields.add("kratos_selfservice_methods_code_passwordless_enabled"); openapiFields.add("kratos_selfservice_methods_link_config_base_url"); openapiFields.add("kratos_selfservice_methods_link_config_lifespan"); @@ -6178,6 +6375,7 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("environment"); openapiRequiredFields.add("name"); } @@ -6200,6 +6398,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } + if (!jsonObj.get("environment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `environment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("environment").toString())); + } // ensure the optional json data is an array if present if (jsonObj.get("hydra_oauth2_allowed_top_level_claims") != null && !jsonObj.get("hydra_oauth2_allowed_top_level_claims").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `hydra_oauth2_allowed_top_level_claims` to be an array in the JSON string but got `%s`", jsonObj.get("hydra_oauth2_allowed_top_level_claims").toString())); @@ -6392,6 +6593,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("kratos_courier_templates_login_code_valid_email_subject") != null && !jsonObj.get("kratos_courier_templates_login_code_valid_email_subject").isJsonNull()) && !jsonObj.get("kratos_courier_templates_login_code_valid_email_subject").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kratos_courier_templates_login_code_valid_email_subject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kratos_courier_templates_login_code_valid_email_subject").toString())); } + if ((jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext") != null && !jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext").isJsonNull()) && !jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kratos_courier_templates_login_code_valid_sms_body_plaintext` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext").toString())); + } if ((jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html") != null && !jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html").isJsonNull()) && !jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kratos_courier_templates_recovery_code_invalid_email_body_html` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryCodeForIdentityBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryCodeForIdentityBody.java index de7ef3c8cdd..b912c8221b7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryCodeForIdentityBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryCodeForIdentityBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Recovery Code for Identity Request Body */ @ApiModel(description = "Create Recovery Code for Identity Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateRecoveryCodeForIdentityBody { public static final String SERIALIZED_NAME_EXPIRES_IN = "expires_in"; @SerializedName(SERIALIZED_NAME_EXPIRES_IN) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryLinkForIdentityBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryLinkForIdentityBody.java index 25eab3e6b62..5d10acf4021 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryLinkForIdentityBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateRecoveryLinkForIdentityBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Recovery Link for Identity Request Body */ @ApiModel(description = "Create Recovery Link for Identity Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateRecoveryLinkForIdentityBody { public static final String SERIALIZED_NAME_EXPIRES_IN = "expires_in"; @SerializedName(SERIALIZED_NAME_EXPIRES_IN) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateRelationshipBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateRelationshipBody.java index d25e02ae938..8ace2d86188 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateRelationshipBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateRelationshipBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Create Relationship Request Body */ @ApiModel(description = "Create Relationship Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateRelationshipBody { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionBody.java index dc125a62057..0286e7f0cac 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.openapitools.jackson.nullable.JsonNullable; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -47,10 +46,9 @@ import sh.ory.JSON; /** - * Create Subscription Request Body + * CreateSubscriptionBody */ -@ApiModel(description = "Create Subscription Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateSubscriptionBody { /** * usd USD eur Euro @@ -166,10 +164,6 @@ public IntervalEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_RETURN_TO) private String returnTo; - public static final String SERIALIZED_NAME_WORKSPACE = "workspace"; - @SerializedName(SERIALIZED_NAME_WORKSPACE) - private String workspace; - public CreateSubscriptionBody() { } @@ -252,8 +246,8 @@ public CreateSubscriptionBody provisionFirstProject(String provisionFirstProject * Get provisionFirstProject * @return provisionFirstProject **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") public String getProvisionFirstProject() { return provisionFirstProject; @@ -287,29 +281,6 @@ public void setReturnTo(String returnTo) { this.returnTo = returnTo; } - - public CreateSubscriptionBody workspace(String workspace) { - - this.workspace = workspace; - return this; - } - - /** - * Get workspace - * @return workspace - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "") - - public String getWorkspace() { - return workspace; - } - - - public void setWorkspace(String workspace) { - this.workspace = workspace; - } - /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -369,25 +340,13 @@ public boolean equals(Object o) { Objects.equals(this.interval, createSubscriptionBody.interval) && Objects.equals(this.plan, createSubscriptionBody.plan) && Objects.equals(this.provisionFirstProject, createSubscriptionBody.provisionFirstProject) && - Objects.equals(this.returnTo, createSubscriptionBody.returnTo) && - Objects.equals(this.workspace, createSubscriptionBody.workspace)&& + Objects.equals(this.returnTo, createSubscriptionBody.returnTo)&& Objects.equals(this.additionalProperties, createSubscriptionBody.additionalProperties); } - private static boolean equalsNullable(JsonNullable a, JsonNullable b) { - return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); - } - @Override public int hashCode() { - return Objects.hash(currency, interval, plan, provisionFirstProject, returnTo, workspace, additionalProperties); - } - - private static int hashCodeNullable(JsonNullable a) { - if (a == null) { - return 1; - } - return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + return Objects.hash(currency, interval, plan, provisionFirstProject, returnTo, additionalProperties); } @Override @@ -399,7 +358,6 @@ public String toString() { sb.append(" plan: ").append(toIndentedString(plan)).append("\n"); sb.append(" provisionFirstProject: ").append(toIndentedString(provisionFirstProject)).append("\n"); sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); - sb.append(" workspace: ").append(toIndentedString(workspace)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -428,12 +386,12 @@ private String toIndentedString(Object o) { openapiFields.add("plan"); openapiFields.add("provision_first_project"); openapiFields.add("return_to"); - openapiFields.add("workspace"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("interval"); openapiRequiredFields.add("plan"); + openapiRequiredFields.add("provision_first_project"); } /** @@ -464,15 +422,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("plan").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `plan` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plan").toString())); } - if ((jsonObj.get("provision_first_project") != null && !jsonObj.get("provision_first_project").isJsonNull()) && !jsonObj.get("provision_first_project").isJsonPrimitive()) { + if (!jsonObj.get("provision_first_project").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `provision_first_project` to be a primitive type in the JSON string but got `%s`", jsonObj.get("provision_first_project").toString())); } if ((jsonObj.get("return_to") != null && !jsonObj.get("return_to").isJsonNull()) && !jsonObj.get("return_to").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `return_to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("return_to").toString())); } - if ((jsonObj.get("workspace") != null && !jsonObj.get("workspace").isJsonNull()) && !jsonObj.get("workspace").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `workspace` to be a primitive type in the JSON string but got `%s`", jsonObj.get("workspace").toString())); - } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionCommon.java b/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionCommon.java new file mode 100644 index 00000000000..e93b795af27 --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/CreateSubscriptionCommon.java @@ -0,0 +1,485 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * CreateSubscriptionCommon + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class CreateSubscriptionCommon { + /** + * usd USD eur Euro + */ + @JsonAdapter(CurrencyEnum.Adapter.class) + public enum CurrencyEnum { + USD("usd"), + + EUR("eur"); + + private String value; + + CurrencyEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static CurrencyEnum fromValue(String value) { + for (CurrencyEnum b : CurrencyEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final CurrencyEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public CurrencyEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return CurrencyEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_CURRENCY = "currency"; + @SerializedName(SERIALIZED_NAME_CURRENCY) + private CurrencyEnum currency; + + /** + * monthly Monthly yearly Yearly + */ + @JsonAdapter(IntervalEnum.Adapter.class) + public enum IntervalEnum { + MONTHLY("monthly"), + + YEARLY("yearly"); + + private String value; + + IntervalEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static IntervalEnum fromValue(String value) { + for (IntervalEnum b : IntervalEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final IntervalEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public IntervalEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return IntervalEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_INTERVAL = "interval"; + @SerializedName(SERIALIZED_NAME_INTERVAL) + private IntervalEnum interval; + + public static final String SERIALIZED_NAME_PLAN = "plan"; + @SerializedName(SERIALIZED_NAME_PLAN) + private String plan; + + public static final String SERIALIZED_NAME_RETURN_TO = "return_to"; + @SerializedName(SERIALIZED_NAME_RETURN_TO) + private String returnTo; + + public CreateSubscriptionCommon() { + } + + public CreateSubscriptionCommon currency(CurrencyEnum currency) { + + this.currency = currency; + return this; + } + + /** + * usd USD eur Euro + * @return currency + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = " usd USD eur Euro") + + public CurrencyEnum getCurrency() { + return currency; + } + + + public void setCurrency(CurrencyEnum currency) { + this.currency = currency; + } + + + public CreateSubscriptionCommon interval(IntervalEnum interval) { + + this.interval = interval; + return this; + } + + /** + * monthly Monthly yearly Yearly + * @return interval + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = " monthly Monthly yearly Yearly") + + public IntervalEnum getInterval() { + return interval; + } + + + public void setInterval(IntervalEnum interval) { + this.interval = interval; + } + + + public CreateSubscriptionCommon plan(String plan) { + + this.plan = plan; + return this; + } + + /** + * Get plan + * @return plan + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getPlan() { + return plan; + } + + + public void setPlan(String plan) { + this.plan = plan; + } + + + public CreateSubscriptionCommon returnTo(String returnTo) { + + this.returnTo = returnTo; + return this; + } + + /** + * Get returnTo + * @return returnTo + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getReturnTo() { + return returnTo; + } + + + public void setReturnTo(String returnTo) { + this.returnTo = returnTo; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the CreateSubscriptionCommon instance itself + */ + public CreateSubscriptionCommon putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSubscriptionCommon createSubscriptionCommon = (CreateSubscriptionCommon) o; + return Objects.equals(this.currency, createSubscriptionCommon.currency) && + Objects.equals(this.interval, createSubscriptionCommon.interval) && + Objects.equals(this.plan, createSubscriptionCommon.plan) && + Objects.equals(this.returnTo, createSubscriptionCommon.returnTo)&& + Objects.equals(this.additionalProperties, createSubscriptionCommon.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(currency, interval, plan, returnTo, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSubscriptionCommon {\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append(" plan: ").append(toIndentedString(plan)).append("\n"); + sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("currency"); + openapiFields.add("interval"); + openapiFields.add("plan"); + openapiFields.add("return_to"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("interval"); + openapiRequiredFields.add("plan"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CreateSubscriptionCommon + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CreateSubscriptionCommon.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateSubscriptionCommon is not found in the empty JSON string", CreateSubscriptionCommon.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CreateSubscriptionCommon.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if ((jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) && !jsonObj.get("currency").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); + } + if (!jsonObj.get("interval").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); + } + if (!jsonObj.get("plan").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `plan` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plan").toString())); + } + if ((jsonObj.get("return_to") != null && !jsonObj.get("return_to").isJsonNull()) && !jsonObj.get("return_to").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `return_to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("return_to").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateSubscriptionCommon.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateSubscriptionCommon' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateSubscriptionCommon.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CreateSubscriptionCommon value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public CreateSubscriptionCommon read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + CreateSubscriptionCommon instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CreateSubscriptionCommon given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateSubscriptionCommon + * @throws IOException if the JSON string is invalid with respect to CreateSubscriptionCommon + */ + public static CreateSubscriptionCommon fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateSubscriptionCommon.class); + } + + /** + * Convert an instance of CreateSubscriptionCommon to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateVerifiableCredentialRequestBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateVerifiableCredentialRequestBody.java index ce5b6498e27..65dbe53827f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateVerifiableCredentialRequestBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateVerifiableCredentialRequestBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * CreateVerifiableCredentialRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateVerifiableCredentialRequestBody { public static final String SERIALIZED_NAME_FORMAT = "format"; @SerializedName(SERIALIZED_NAME_FORMAT) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceMemberInviteBody.java b/clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceMemberInviteBody.java index fba4cb4792e..17244d0c58d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceMemberInviteBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceMemberInviteBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Workspace Invite Request Body */ @ApiModel(description = "Create Workspace Invite Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CreateWorkspaceMemberInviteBody { public static final String SERIALIZED_NAME_INVITEE_EMAIL = "invitee_email"; @SerializedName(SERIALIZED_NAME_INVITEE_EMAIL) diff --git a/clients/client/java/src/main/java/sh/ory/model/CreateWorkspacePayload.java b/clients/client/java/src/main/java/sh/ory/model/CreateWorkspacePayload.java new file mode 100644 index 00000000000..ff237faa0a6 --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/CreateWorkspacePayload.java @@ -0,0 +1,291 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * CreateWorkspacePayload + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class CreateWorkspacePayload { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public CreateWorkspacePayload() { + } + + public CreateWorkspacePayload name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the workspace + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the workspace") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the CreateWorkspacePayload instance itself + */ + public CreateWorkspacePayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWorkspacePayload createWorkspacePayload = (CreateWorkspacePayload) o; + return Objects.equals(this.name, createWorkspacePayload.name)&& + Objects.equals(this.additionalProperties, createWorkspacePayload.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWorkspacePayload {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to CreateWorkspacePayload + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!CreateWorkspacePayload.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateWorkspacePayload is not found in the empty JSON string", CreateWorkspacePayload.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : CreateWorkspacePayload.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!CreateWorkspacePayload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateWorkspacePayload' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateWorkspacePayload.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, CreateWorkspacePayload value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public CreateWorkspacePayload read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + CreateWorkspacePayload instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of CreateWorkspacePayload given an JSON string + * + * @param jsonString JSON string + * @return An instance of CreateWorkspacePayload + * @throws IOException if the JSON string is invalid with respect to CreateWorkspacePayload + */ + public static CreateWorkspacePayload fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateWorkspacePayload.class); + } + + /** + * Convert an instance of CreateWorkspacePayload to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/main/java/sh/ory/model/InternalProvisionMockSubscription.java b/clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceSubscriptionBody.java similarity index 73% rename from clients/client/java/src/main/java/sh/ory/model/InternalProvisionMockSubscription.java rename to clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceSubscriptionBody.java index f6ce8fec182..d86241a70cc 100644 --- a/clients/client/java/src/main/java/sh/ory/model/InternalProvisionMockSubscription.java +++ b/clients/client/java/src/main/java/sh/ory/model/CreateWorkspaceSubscriptionBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,13 +46,12 @@ import sh.ory.JSON; /** - * Internal Provision Mock Subscription Request Body + * CreateWorkspaceSubscriptionBody */ -@ApiModel(description = "Internal Provision Mock Subscription Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") -public class InternalProvisionMockSubscription { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class CreateWorkspaceSubscriptionBody { /** - * Currency usd USD eur Euro + * usd USD eur Euro */ @JsonAdapter(CurrencyEnum.Adapter.class) public enum CurrencyEnum { @@ -102,12 +101,8 @@ public CurrencyEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_CURRENCY) private CurrencyEnum currency; - public static final String SERIALIZED_NAME_IDENTITY_ID = "identity_id"; - @SerializedName(SERIALIZED_NAME_IDENTITY_ID) - private String identityId; - /** - * Billing Interval monthly Monthly yearly Yearly + * monthly Monthly yearly Yearly */ @JsonAdapter(IntervalEnum.Adapter.class) public enum IntervalEnum { @@ -161,21 +156,25 @@ public IntervalEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PLAN) private String plan; - public InternalProvisionMockSubscription() { + public static final String SERIALIZED_NAME_RETURN_TO = "return_to"; + @SerializedName(SERIALIZED_NAME_RETURN_TO) + private String returnTo; + + public CreateWorkspaceSubscriptionBody() { } - public InternalProvisionMockSubscription currency(CurrencyEnum currency) { + public CreateWorkspaceSubscriptionBody currency(CurrencyEnum currency) { this.currency = currency; return this; } /** - * Currency usd USD eur Euro + * usd USD eur Euro * @return currency **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Currency usd USD eur Euro") + @javax.annotation.Nullable + @ApiModelProperty(value = " usd USD eur Euro") public CurrencyEnum getCurrency() { return currency; @@ -187,72 +186,72 @@ public void setCurrency(CurrencyEnum currency) { } - public InternalProvisionMockSubscription identityId(String identityId) { + public CreateWorkspaceSubscriptionBody interval(IntervalEnum interval) { - this.identityId = identityId; + this.interval = interval; return this; } /** - * Identity ID - * @return identityId + * monthly Monthly yearly Yearly + * @return interval **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Identity ID") + @ApiModelProperty(required = true, value = " monthly Monthly yearly Yearly") - public String getIdentityId() { - return identityId; + public IntervalEnum getInterval() { + return interval; } - public void setIdentityId(String identityId) { - this.identityId = identityId; + public void setInterval(IntervalEnum interval) { + this.interval = interval; } - public InternalProvisionMockSubscription interval(IntervalEnum interval) { + public CreateWorkspaceSubscriptionBody plan(String plan) { - this.interval = interval; + this.plan = plan; return this; } /** - * Billing Interval monthly Monthly yearly Yearly - * @return interval + * Get plan + * @return plan **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Billing Interval monthly Monthly yearly Yearly") + @ApiModelProperty(required = true, value = "") - public IntervalEnum getInterval() { - return interval; + public String getPlan() { + return plan; } - public void setInterval(IntervalEnum interval) { - this.interval = interval; + public void setPlan(String plan) { + this.plan = plan; } - public InternalProvisionMockSubscription plan(String plan) { + public CreateWorkspaceSubscriptionBody returnTo(String returnTo) { - this.plan = plan; + this.returnTo = returnTo; return this; } /** - * Plan ID - * @return plan + * Get returnTo + * @return returnTo **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Plan ID") + @javax.annotation.Nullable + @ApiModelProperty(value = "") - public String getPlan() { - return plan; + public String getReturnTo() { + return returnTo; } - public void setPlan(String plan) { - this.plan = plan; + public void setReturnTo(String returnTo) { + this.returnTo = returnTo; } /** @@ -268,9 +267,9 @@ public void setPlan(String plan) { * * @param key name of the property * @param value value of the property - * @return the InternalProvisionMockSubscription instance itself + * @return the CreateWorkspaceSubscriptionBody instance itself */ - public InternalProvisionMockSubscription putAdditionalProperty(String key, Object value) { + public CreateWorkspaceSubscriptionBody putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -309,27 +308,27 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - InternalProvisionMockSubscription internalProvisionMockSubscription = (InternalProvisionMockSubscription) o; - return Objects.equals(this.currency, internalProvisionMockSubscription.currency) && - Objects.equals(this.identityId, internalProvisionMockSubscription.identityId) && - Objects.equals(this.interval, internalProvisionMockSubscription.interval) && - Objects.equals(this.plan, internalProvisionMockSubscription.plan)&& - Objects.equals(this.additionalProperties, internalProvisionMockSubscription.additionalProperties); + CreateWorkspaceSubscriptionBody createWorkspaceSubscriptionBody = (CreateWorkspaceSubscriptionBody) o; + return Objects.equals(this.currency, createWorkspaceSubscriptionBody.currency) && + Objects.equals(this.interval, createWorkspaceSubscriptionBody.interval) && + Objects.equals(this.plan, createWorkspaceSubscriptionBody.plan) && + Objects.equals(this.returnTo, createWorkspaceSubscriptionBody.returnTo)&& + Objects.equals(this.additionalProperties, createWorkspaceSubscriptionBody.additionalProperties); } @Override public int hashCode() { - return Objects.hash(currency, identityId, interval, plan, additionalProperties); + return Objects.hash(currency, interval, plan, returnTo, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class InternalProvisionMockSubscription {\n"); + sb.append("class CreateWorkspaceSubscriptionBody {\n"); sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); - sb.append(" identityId: ").append(toIndentedString(identityId)).append("\n"); sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); sb.append(" plan: ").append(toIndentedString(plan)).append("\n"); + sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -354,14 +353,12 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("currency"); - openapiFields.add("identity_id"); openapiFields.add("interval"); openapiFields.add("plan"); + openapiFields.add("return_to"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); - openapiRequiredFields.add("currency"); - openapiRequiredFields.add("identity_id"); openapiRequiredFields.add("interval"); openapiRequiredFields.add("plan"); } @@ -370,49 +367,49 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to InternalProvisionMockSubscription + * @throws IOException if the JSON Object is invalid with respect to CreateWorkspaceSubscriptionBody */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!InternalProvisionMockSubscription.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in InternalProvisionMockSubscription is not found in the empty JSON string", InternalProvisionMockSubscription.openapiRequiredFields.toString())); + if (!CreateWorkspaceSubscriptionBody.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in CreateWorkspaceSubscriptionBody is not found in the empty JSON string", CreateWorkspaceSubscriptionBody.openapiRequiredFields.toString())); } } // check to make sure all required properties/fields are present in the JSON string - for (String requiredField : InternalProvisionMockSubscription.openapiRequiredFields) { + for (String requiredField : CreateWorkspaceSubscriptionBody.openapiRequiredFields) { if (jsonObj.get(requiredField) == null) { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } - if (!jsonObj.get("currency").isJsonPrimitive()) { + if ((jsonObj.get("currency") != null && !jsonObj.get("currency").isJsonNull()) && !jsonObj.get("currency").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `currency` to be a primitive type in the JSON string but got `%s`", jsonObj.get("currency").toString())); } - if (!jsonObj.get("identity_id").isJsonPrimitive()) { - throw new IllegalArgumentException(String.format("Expected the field `identity_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("identity_id").toString())); - } if (!jsonObj.get("interval").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `interval` to be a primitive type in the JSON string but got `%s`", jsonObj.get("interval").toString())); } if (!jsonObj.get("plan").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `plan` to be a primitive type in the JSON string but got `%s`", jsonObj.get("plan").toString())); } + if ((jsonObj.get("return_to") != null && !jsonObj.get("return_to").isJsonNull()) && !jsonObj.get("return_to").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `return_to` to be a primitive type in the JSON string but got `%s`", jsonObj.get("return_to").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!InternalProvisionMockSubscription.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'InternalProvisionMockSubscription' and its subtypes + if (!CreateWorkspaceSubscriptionBody.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'CreateWorkspaceSubscriptionBody' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(InternalProvisionMockSubscription.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(CreateWorkspaceSubscriptionBody.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, InternalProvisionMockSubscription value) throws IOException { + public void write(JsonWriter out, CreateWorkspaceSubscriptionBody value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additonal properties @@ -435,11 +432,11 @@ else if (entry.getValue() instanceof Character) } @Override - public InternalProvisionMockSubscription read(JsonReader in) throws IOException { + public CreateWorkspaceSubscriptionBody read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - InternalProvisionMockSubscription instance = thisAdapter.fromJsonTree(jsonObj); + CreateWorkspaceSubscriptionBody instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -466,18 +463,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of InternalProvisionMockSubscription given an JSON string + * Create an instance of CreateWorkspaceSubscriptionBody given an JSON string * * @param jsonString JSON string - * @return An instance of InternalProvisionMockSubscription - * @throws IOException if the JSON string is invalid with respect to InternalProvisionMockSubscription + * @return An instance of CreateWorkspaceSubscriptionBody + * @throws IOException if the JSON string is invalid with respect to CreateWorkspaceSubscriptionBody */ - public static InternalProvisionMockSubscription fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, InternalProvisionMockSubscription.class); + public static CreateWorkspaceSubscriptionBody fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, CreateWorkspaceSubscriptionBody.class); } /** - * Convert an instance of InternalProvisionMockSubscription to an JSON string + * Convert an instance of CreateWorkspaceSubscriptionBody to an JSON string * * @return JSON string */ diff --git a/clients/client/java/src/main/java/sh/ory/model/CredentialSupportedDraft00.java b/clients/client/java/src/main/java/sh/ory/model/CredentialSupportedDraft00.java index c5b8b8438da..f2b48c5e744 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CredentialSupportedDraft00.java +++ b/clients/client/java/src/main/java/sh/ory/model/CredentialSupportedDraft00.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Includes information about the supported verifiable credentials. */ @ApiModel(description = "Includes information about the supported verifiable credentials.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CredentialSupportedDraft00 { public static final String SERIALIZED_NAME_CRYPTOGRAPHIC_BINDING_METHODS_SUPPORTED = "cryptographic_binding_methods_supported"; @SerializedName(SERIALIZED_NAME_CRYPTOGRAPHIC_BINDING_METHODS_SUPPORTED) diff --git a/clients/client/java/src/main/java/sh/ory/model/CustomDomain.java b/clients/client/java/src/main/java/sh/ory/model/CustomDomain.java index ab9050024e9..f7d38bfb791 100644 --- a/clients/client/java/src/main/java/sh/ory/model/CustomDomain.java +++ b/clients/client/java/src/main/java/sh/ory/model/CustomDomain.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Custom Hostname */ @ApiModel(description = "Custom Hostname") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class CustomDomain { public static final String SERIALIZED_NAME_COOKIE_DOMAIN = "cookie_domain"; @SerializedName(SERIALIZED_NAME_COOKIE_DOMAIN) diff --git a/clients/client/java/src/main/java/sh/ory/model/DeleteMySessionsCount.java b/clients/client/java/src/main/java/sh/ory/model/DeleteMySessionsCount.java index bf7fedd5edf..87c4c2873f4 100644 --- a/clients/client/java/src/main/java/sh/ory/model/DeleteMySessionsCount.java +++ b/clients/client/java/src/main/java/sh/ory/model/DeleteMySessionsCount.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Deleted Session Count */ @ApiModel(description = "Deleted Session Count") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class DeleteMySessionsCount { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/clients/client/java/src/main/java/sh/ory/model/EmailTemplateData.java b/clients/client/java/src/main/java/sh/ory/model/EmailTemplateData.java index 758548a949d..84ff6273055 100644 --- a/clients/client/java/src/main/java/sh/ory/model/EmailTemplateData.java +++ b/clients/client/java/src/main/java/sh/ory/model/EmailTemplateData.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Contains the data of the email template, including the subject and body in HTML and plaintext variants */ @ApiModel(description = "Contains the data of the email template, including the subject and body in HTML and plaintext variants") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class EmailTemplateData { public static final String SERIALIZED_NAME_BODY = "body"; @SerializedName(SERIALIZED_NAME_BODY) diff --git a/clients/client/java/src/main/java/sh/ory/model/EmailTemplateDataBody.java b/clients/client/java/src/main/java/sh/ory/model/EmailTemplateDataBody.java index 9200c48f4eb..fd34c795992 100644 --- a/clients/client/java/src/main/java/sh/ory/model/EmailTemplateDataBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/EmailTemplateDataBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * EmailTemplateDataBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class EmailTemplateDataBody { public static final String SERIALIZED_NAME_HTML = "html"; @SerializedName(SERIALIZED_NAME_HTML) diff --git a/clients/client/java/src/main/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfied.java b/clients/client/java/src/main/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfied.java index cb144a27de9..0afe00b15ac 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfied.java +++ b/clients/client/java/src/main/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfied.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * ErrorAuthenticatorAssuranceLevelNotSatisfied */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ErrorAuthenticatorAssuranceLevelNotSatisfied { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ErrorBrowserLocationChangeRequired.java b/clients/client/java/src/main/java/sh/ory/model/ErrorBrowserLocationChangeRequired.java index 88959463e27..5459e101118 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ErrorBrowserLocationChangeRequired.java +++ b/clients/client/java/src/main/java/sh/ory/model/ErrorBrowserLocationChangeRequired.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * ErrorBrowserLocationChangeRequired */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ErrorBrowserLocationChangeRequired { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ErrorFlowReplaced.java b/clients/client/java/src/main/java/sh/ory/model/ErrorFlowReplaced.java index 2efd15e56cd..10e871d366c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ErrorFlowReplaced.java +++ b/clients/client/java/src/main/java/sh/ory/model/ErrorFlowReplaced.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Is sent when a flow is replaced by a different flow of the same class */ @ApiModel(description = "Is sent when a flow is replaced by a different flow of the same class") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ErrorFlowReplaced { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ErrorGeneric.java b/clients/client/java/src/main/java/sh/ory/model/ErrorGeneric.java index 60cadb57102..3dfac33cd14 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ErrorGeneric.java +++ b/clients/client/java/src/main/java/sh/ory/model/ErrorGeneric.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * The standard Ory JSON API error format. */ @ApiModel(description = "The standard Ory JSON API error format.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ErrorGeneric { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ErrorOAuth2.java b/clients/client/java/src/main/java/sh/ory/model/ErrorOAuth2.java index 5bf1473e36c..ca343a60322 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ErrorOAuth2.java +++ b/clients/client/java/src/main/java/sh/ory/model/ErrorOAuth2.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Error */ @ApiModel(description = "Error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ErrorOAuth2 { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/EventStream.java b/clients/client/java/src/main/java/sh/ory/model/EventStream.java index db912c1bbfc..313411c4c49 100644 --- a/clients/client/java/src/main/java/sh/ory/model/EventStream.java +++ b/clients/client/java/src/main/java/sh/ory/model/EventStream.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Event Stream */ @ApiModel(description = "Event Stream") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class EventStream { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/ExpandedPermissionTree.java b/clients/client/java/src/main/java/sh/ory/model/ExpandedPermissionTree.java index 7a30898dabb..ba93357b249 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ExpandedPermissionTree.java +++ b/clients/client/java/src/main/java/sh/ory/model/ExpandedPermissionTree.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * ExpandedPermissionTree */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ExpandedPermissionTree { public static final String SERIALIZED_NAME_CHILDREN = "children"; @SerializedName(SERIALIZED_NAME_CHILDREN) diff --git a/clients/client/java/src/main/java/sh/ory/model/FlowError.java b/clients/client/java/src/main/java/sh/ory/model/FlowError.java index 95187a27667..030dc285976 100644 --- a/clients/client/java/src/main/java/sh/ory/model/FlowError.java +++ b/clients/client/java/src/main/java/sh/ory/model/FlowError.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * FlowError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class FlowError { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/GenericError.java b/clients/client/java/src/main/java/sh/ory/model/GenericError.java index 430b84f6c61..fd2b58b9085 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GenericError.java +++ b/clients/client/java/src/main/java/sh/ory/model/GenericError.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred. */ @ApiModel(description = "Error responses are sent when an error (e.g. unauthorized, bad request, ...) occurred.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GenericError { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/clients/client/java/src/main/java/sh/ory/model/GenericErrorContent.java b/clients/client/java/src/main/java/sh/ory/model/GenericErrorContent.java index c22f4970caa..5f885e256f6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GenericErrorContent.java +++ b/clients/client/java/src/main/java/sh/ory/model/GenericErrorContent.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Error response */ @ApiModel(description = "Error response") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GenericErrorContent { public static final String SERIALIZED_NAME_DEBUG = "debug"; @SerializedName(SERIALIZED_NAME_DEBUG) diff --git a/clients/client/java/src/main/java/sh/ory/model/GenericUsage.java b/clients/client/java/src/main/java/sh/ory/model/GenericUsage.java index 44586e204f4..00a7e02d0c5 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GenericUsage.java +++ b/clients/client/java/src/main/java/sh/ory/model/GenericUsage.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * GenericUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GenericUsage { public static final String SERIALIZED_NAME_ADDITIONAL_PRICE = "additional_price"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRICE) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetAttributesCountResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetAttributesCountResponse.java index 52122bff1e3..7e2da4c9f4f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetAttributesCountResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetAttributesCountResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Response of the getAttributesCount endpoint */ @ApiModel(description = "Response of the getAttributesCount endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetAttributesCountResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetManagedIdentitySchemaLocation.java b/clients/client/java/src/main/java/sh/ory/model/GetManagedIdentitySchemaLocation.java index 9082c76e9fe..32c212fc77b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetManagedIdentitySchemaLocation.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetManagedIdentitySchemaLocation.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Ory Identity Schema Location */ @ApiModel(description = "Ory Identity Schema Location") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetManagedIdentitySchemaLocation { public static final String SERIALIZED_NAME_LOCATION = "location"; @SerializedName(SERIALIZED_NAME_LOCATION) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventAttributesResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventAttributesResponse.java index 45bbece1de4..b99e1546c53 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventAttributesResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventAttributesResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Response of the getMetricsEventAttributes endpoint */ @ApiModel(description = "Response of the getMetricsEventAttributes endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetMetricsEventAttributesResponse { public static final String SERIALIZED_NAME_EVENTS = "events"; @SerializedName(SERIALIZED_NAME_EVENTS) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventTypesResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventTypesResponse.java index fd648378ee7..342820ab323 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventTypesResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetMetricsEventTypesResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Response of the getMetricsEventTypes endpoint */ @ApiModel(description = "Response of the getMetricsEventTypes endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetMetricsEventTypesResponse { public static final String SERIALIZED_NAME_EVENTS = "events"; @SerializedName(SERIALIZED_NAME_EVENTS) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetOrganizationResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetOrganizationResponse.java index ffef7eaeae0..f49aadbd9d1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetOrganizationResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetOrganizationResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * GetOrganizationResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetOrganizationResponse { public static final String SERIALIZED_NAME_ORGANIZATION = "organization"; @SerializedName(SERIALIZED_NAME_ORGANIZATION) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsBody.java b/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsBody.java index 88ef3f52d00..981ba2e8701 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * Body of the getProjectEvents endpoint */ @ApiModel(description = "Body of the getProjectEvents endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetProjectEventsBody { public static final String SERIALIZED_NAME_EVENT_NAME = "event_name"; @SerializedName(SERIALIZED_NAME_EVENT_NAME) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsResponse.java index dbc63bf6310..b5e6e405fbd 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetProjectEventsResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Response of the getProjectEvents endpoint */ @ApiModel(description = "Response of the getProjectEvents endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetProjectEventsResponse { public static final String SERIALIZED_NAME_EVENTS = "events"; @SerializedName(SERIALIZED_NAME_EVENTS) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetProjectMetricsResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetProjectMetricsResponse.java index a568a38d031..16fec66bc84 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetProjectMetricsResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetProjectMetricsResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Response of the getMetrics endpoint */ @ApiModel(description = "Response of the getMetrics endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetProjectMetricsResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetSessionActivityResponse.java b/clients/client/java/src/main/java/sh/ory/model/GetSessionActivityResponse.java index ec5468f6eb2..0e3eda143fe 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetSessionActivityResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetSessionActivityResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Response of the getSessionActivity endpoint */ @ApiModel(description = "Response of the getSessionActivity endpoint") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetSessionActivityResponse { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/clients/client/java/src/main/java/sh/ory/model/GetVersion200Response.java b/clients/client/java/src/main/java/sh/ory/model/GetVersion200Response.java index aafa337ec5c..c90e2e26349 100644 --- a/clients/client/java/src/main/java/sh/ory/model/GetVersion200Response.java +++ b/clients/client/java/src/main/java/sh/ory/model/GetVersion200Response.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * GetVersion200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class GetVersion200Response { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/clients/client/java/src/main/java/sh/ory/model/HealthNotReadyStatus.java b/clients/client/java/src/main/java/sh/ory/model/HealthNotReadyStatus.java index 215ce48d71b..a90dbe4cc47 100644 --- a/clients/client/java/src/main/java/sh/ory/model/HealthNotReadyStatus.java +++ b/clients/client/java/src/main/java/sh/ory/model/HealthNotReadyStatus.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * HealthNotReadyStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class HealthNotReadyStatus { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) diff --git a/clients/client/java/src/main/java/sh/ory/model/HealthStatus.java b/clients/client/java/src/main/java/sh/ory/model/HealthStatus.java index 411b082ecef..ac13b295191 100644 --- a/clients/client/java/src/main/java/sh/ory/model/HealthStatus.java +++ b/clients/client/java/src/main/java/sh/ory/model/HealthStatus.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * HealthStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class HealthStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/clients/client/java/src/main/java/sh/ory/model/Identity.java b/clients/client/java/src/main/java/sh/ory/model/Identity.java index 1e50d93ca67..45769aa9e8c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Identity.java +++ b/clients/client/java/src/main/java/sh/ory/model/Identity.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -30,7 +30,6 @@ import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.model.IdentityCredentials; -import sh.ory.model.IdentityState; import sh.ory.model.RecoveryIdentityAddress; import sh.ory.model.VerifiableIdentityAddress; @@ -59,7 +58,7 @@ * An [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) represents a (human) user in Ory. */ @ApiModel(description = "An [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) represents a (human) user in Ory.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Identity { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -97,9 +96,56 @@ public class Identity { @SerializedName(SERIALIZED_NAME_SCHEMA_URL) private String schemaUrl; + /** + * State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + */ + @JsonAdapter(StateEnum.Adapter.class) + public enum StateEnum { + ACTIVE("active"), + + INACTIVE("inactive"); + + private String value; + + StateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StateEnum fromValue(String value) { + for (StateEnum b : StateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StateEnum.fromValue(value); + } + } + } + public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) - private IdentityState state; + private StateEnum state; public static final String SERIALIZED_NAME_STATE_CHANGED_AT = "state_changed_at"; @SerializedName(SERIALIZED_NAME_STATE_CHANGED_AT) @@ -343,25 +389,25 @@ public void setSchemaUrl(String schemaUrl) { } - public Identity state(IdentityState state) { + public Identity state(StateEnum state) { this.state = state; return this; } /** - * Get state + * State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive * @return state **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive") - public IdentityState getState() { + public StateEnum getState() { return state; } - public void setState(IdentityState state) { + public void setState(StateEnum state) { this.state = state; } @@ -662,6 +708,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("schema_url").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `schema_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("schema_url").toString())); } + if ((jsonObj.get("state") != null && !jsonObj.get("state").isJsonNull()) && !jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + } if (jsonObj.get("verifiable_addresses") != null && !jsonObj.get("verifiable_addresses").isJsonNull()) { JsonArray jsonArrayverifiableAddresses = jsonObj.getAsJsonArray("verifiable_addresses"); if (jsonArrayverifiableAddresses != null) { diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentials.java b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentials.java index 56248510a51..7626036cceb 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentials.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentials.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,7 +26,6 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; -import sh.ory.model.IdentityCredentialsType; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -53,7 +52,7 @@ * Credentials represents a specific credential type */ @ApiModel(description = "Credentials represents a specific credential type") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityCredentials { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) @@ -67,9 +66,68 @@ public class IdentityCredentials { @SerializedName(SERIALIZED_NAME_IDENTIFIERS) private List identifiers = null; + /** + * Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + */ + @JsonAdapter(TypeEnum.Adapter.class) + public enum TypeEnum { + PASSWORD("password"), + + OIDC("oidc"), + + TOTP("totp"), + + LOOKUP_SECRET("lookup_secret"), + + WEBAUTHN("webauthn"), + + CODE("code"), + + LINK_RECOVERY("link_recovery"), + + CODE_RECOVERY("code_recovery"); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final TypeEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public TypeEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return TypeEnum.fromValue(value); + } + } + } + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) - private IdentityCredentialsType type; + private TypeEnum type; public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; @SerializedName(SERIALIZED_NAME_UPDATED_AT) @@ -159,25 +217,25 @@ public void setIdentifiers(List identifiers) { } - public IdentityCredentials type(IdentityCredentialsType type) { + public IdentityCredentials type(TypeEnum type) { this.type = type; return this; } /** - * Get type + * Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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") - public IdentityCredentialsType getType() { + public TypeEnum getType() { return type; } - public void setType(IdentityCredentialsType type) { + public void setType(TypeEnum type) { this.type = type; } @@ -356,6 +414,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj.get("identifiers") != null && !jsonObj.get("identifiers").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `identifiers` to be an array in the JSON string but got `%s`", jsonObj.get("identifiers").toString())); } + if ((jsonObj.get("type") != null && !jsonObj.get("type").isJsonNull()) && !jsonObj.get("type").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `type` to be a primitive type in the JSON string but got `%s`", jsonObj.get("type").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsCode.java b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsCode.java index 3761dc5f2fc..95523624115 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsCode.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsCode.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * CredentialsCode represents a one time login/registration code */ @ApiModel(description = "CredentialsCode represents a one time login/registration code") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityCredentialsCode { public static final String SERIALIZED_NAME_ADDRESS_TYPE = "address_type"; @SerializedName(SERIALIZED_NAME_ADDRESS_TYPE) @@ -71,11 +71,11 @@ public IdentityCredentialsCode addressType(String addressType) { } /** - * Get addressType + * The type of the address for this code * @return addressType **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The type of the address for this code") public String getAddressType() { return addressType; diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidc.java b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidc.java index 6f7b70b6b25..c7a5708aec0 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidc.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidc.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * IdentityCredentialsOidc */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityCredentialsOidc { public static final String SERIALIZED_NAME_PROVIDERS = "providers"; @SerializedName(SERIALIZED_NAME_PROVIDERS) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidcProvider.java b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidcProvider.java index 2869aadd0ff..8f0d761c855 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidcProvider.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsOidcProvider.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * IdentityCredentialsOidcProvider */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityCredentialsOidcProvider { public static final String SERIALIZED_NAME_INITIAL_ACCESS_TOKEN = "initial_access_token"; @SerializedName(SERIALIZED_NAME_INITIAL_ACCESS_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsPassword.java b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsPassword.java index 28471476a9d..051a99c2a41 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsPassword.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsPassword.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * IdentityCredentialsPassword */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityCredentialsPassword { public static final String SERIALIZED_NAME_HASHED_PASSWORD = "hashed_password"; @SerializedName(SERIALIZED_NAME_HASHED_PASSWORD) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsType.java b/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsType.java deleted file mode 100644 index 35fea3fd54b..00000000000 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityCredentialsType.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Ory APIs - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package sh.ory.model; - -import java.util.Objects; -import java.util.Arrays; -import io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * and so on. - */ -@JsonAdapter(IdentityCredentialsType.Adapter.class) -public enum IdentityCredentialsType { - - PASSWORD("password"), - - TOTP("totp"), - - OIDC("oidc"), - - WEBAUTHN("webauthn"), - - LOOKUP_SECRET("lookup_secret"), - - CODE("code"); - - private String value; - - IdentityCredentialsType(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static IdentityCredentialsType fromValue(String value) { - for (IdentityCredentialsType b : IdentityCredentialsType.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final IdentityCredentialsType enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public IdentityCredentialsType read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return IdentityCredentialsType.fromValue(value); - } - } -} - diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityPatch.java b/clients/client/java/src/main/java/sh/ory/model/IdentityPatch.java index 4bc99c2761a..b0c28409040 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityPatch.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityPatch.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Payload for patching an identity */ @ApiModel(description = "Payload for patching an identity") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityPatch { public static final String SERIALIZED_NAME_CREATE = "create"; @SerializedName(SERIALIZED_NAME_CREATE) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityPatchResponse.java b/clients/client/java/src/main/java/sh/ory/model/IdentityPatchResponse.java index 3bf9cdf2f78..676f97f41ce 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityPatchResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityPatchResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Response for a single identity patch */ @ApiModel(description = "Response for a single identity patch") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityPatchResponse { /** * The action for this specific patch create ActionCreate Create this identity. diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaContainer.java b/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaContainer.java index c17f6552561..cb4b6f3da7d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaContainer.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaContainer.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * An Identity JSON Schema Container */ @ApiModel(description = "An Identity JSON Schema Container") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentitySchemaContainer { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaPreset.java b/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaPreset.java index 9f82ec4fd79..fc51d83b99b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaPreset.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentitySchemaPreset.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * IdentitySchemaPreset */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentitySchemaPreset { public static final String SERIALIZED_NAME_SCHEMA = "schema"; @SerializedName(SERIALIZED_NAME_SCHEMA) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityState.java b/clients/client/java/src/main/java/sh/ory/model/IdentityState.java deleted file mode 100644 index 68cad6efb6b..00000000000 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityState.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Ory APIs - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package sh.ory.model; - -import java.util.Objects; -import java.util.Arrays; -import io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; -import com.google.gson.TypeAdapter; -import com.google.gson.annotations.JsonAdapter; -import com.google.gson.stream.JsonReader; -import com.google.gson.stream.JsonWriter; - -/** - * The state can either be `active` or `inactive`. - */ -@JsonAdapter(IdentityState.Adapter.class) -public enum IdentityState { - - ACTIVE("active"), - - INACTIVE("inactive"); - - private String value; - - IdentityState(String value) { - this.value = value; - } - - public String getValue() { - return value; - } - - @Override - public String toString() { - return String.valueOf(value); - } - - public static IdentityState fromValue(String value) { - for (IdentityState b : IdentityState.values()) { - if (b.value.equals(value)) { - return b; - } - } - throw new IllegalArgumentException("Unexpected value '" + value + "'"); - } - - public static class Adapter extends TypeAdapter { - @Override - public void write(final JsonWriter jsonWriter, final IdentityState enumeration) throws IOException { - jsonWriter.value(enumeration.getValue()); - } - - @Override - public IdentityState read(final JsonReader jsonReader) throws IOException { - String value = jsonReader.nextString(); - return IdentityState.fromValue(value); - } - } -} - diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentials.java b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentials.java index 476adff6ed6..cac671e8a4a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentials.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentials.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Create Identity and Import Credentials */ @ApiModel(description = "Create Identity and Import Credentials") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityWithCredentials { public static final String SERIALIZED_NAME_OIDC = "oidc"; @SerializedName(SERIALIZED_NAME_OIDC) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidc.java b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidc.java index b2ed6787c6a..797fc8be87b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidc.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidc.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Create Identity and Import Social Sign In Credentials */ @ApiModel(description = "Create Identity and Import Social Sign In Credentials") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityWithCredentialsOidc { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfig.java b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfig.java index 59b8bfc5964..8a98e8ae013 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfig.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfig.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * IdentityWithCredentialsOidcConfig */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityWithCredentialsOidcConfig { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfigProvider.java b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfigProvider.java index 9e3c961500f..1126e3bca3e 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfigProvider.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsOidcConfigProvider.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Identity and Import Social Sign In Credentials Configuration */ @ApiModel(description = "Create Identity and Import Social Sign In Credentials Configuration") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityWithCredentialsOidcConfigProvider { public static final String SERIALIZED_NAME_PROVIDER = "provider"; @SerializedName(SERIALIZED_NAME_PROVIDER) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPassword.java b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPassword.java index a3f2ad2c922..727f557e784 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPassword.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPassword.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Create Identity and Import Password Credentials */ @ApiModel(description = "Create Identity and Import Password Credentials") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityWithCredentialsPassword { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPasswordConfig.java b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPasswordConfig.java index 9511dea1c2c..41c9fc12e38 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPasswordConfig.java +++ b/clients/client/java/src/main/java/sh/ory/model/IdentityWithCredentialsPasswordConfig.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create Identity and Import Password Credentials Configuration */ @ApiModel(description = "Create Identity and Import Password Credentials Configuration") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IdentityWithCredentialsPasswordConfig { public static final String SERIALIZED_NAME_HASHED_PASSWORD = "hashed_password"; @SerializedName(SERIALIZED_NAME_HASHED_PASSWORD) diff --git a/clients/client/java/src/main/java/sh/ory/model/InternalGetProjectBrandingBody.java b/clients/client/java/src/main/java/sh/ory/model/InternalGetProjectBrandingBody.java index 071ff750463..b09b485099d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/InternalGetProjectBrandingBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/InternalGetProjectBrandingBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Get Project Branding Request Body */ @ApiModel(description = "Get Project Branding Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class InternalGetProjectBrandingBody { public static final String SERIALIZED_NAME_HOSTNAME = "hostname"; @SerializedName(SERIALIZED_NAME_HOSTNAME) diff --git a/clients/client/java/src/main/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBody.java b/clients/client/java/src/main/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBody.java index 49a75aadf94..2d23b781cb0 100644 --- a/clients/client/java/src/main/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Is Account Experience Enabled For Project Request Body */ @ApiModel(description = "Is Account Experience Enabled For Project Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class InternalIsAXWelcomeScreenEnabledForProjectBody { public static final String SERIALIZED_NAME_PATH = "path"; @SerializedName(SERIALIZED_NAME_PATH) diff --git a/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugBody.java b/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugBody.java index ffdb5216570..a79429c7ffc 100644 --- a/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Is Owner For Project By Slug Request Body */ @ApiModel(description = "Is Owner For Project By Slug Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class InternalIsOwnerForProjectBySlugBody { /** * Namespace is the namespace of the subject. diff --git a/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponse.java b/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponse.java index 6e57a901adc..c2ab012cd95 100644 --- a/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * InternalIsOwnerForProjectBySlugResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class InternalIsOwnerForProjectBySlugResponse { public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/IntrospectedOAuth2Token.java b/clients/client/java/src/main/java/sh/ory/model/IntrospectedOAuth2Token.java index d2f58b6dfe2..5b66329393f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IntrospectedOAuth2Token.java +++ b/clients/client/java/src/main/java/sh/ory/model/IntrospectedOAuth2Token.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * Introspection contains an access token's session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) */ @ApiModel(description = "Introspection contains an access token's session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IntrospectedOAuth2Token { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/clients/client/java/src/main/java/sh/ory/model/IsOwnerForProjectBySlug.java b/clients/client/java/src/main/java/sh/ory/model/IsOwnerForProjectBySlug.java index d47442e69e2..b0d80c0c350 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IsOwnerForProjectBySlug.java +++ b/clients/client/java/src/main/java/sh/ory/model/IsOwnerForProjectBySlug.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * IsOwnerForProjectBySlug */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IsOwnerForProjectBySlug { public static final String SERIALIZED_NAME_PROJECT_SLUG = "ProjectSlug"; @SerializedName(SERIALIZED_NAME_PROJECT_SLUG) diff --git a/clients/client/java/src/main/java/sh/ory/model/IsReady200Response.java b/clients/client/java/src/main/java/sh/ory/model/IsReady200Response.java index 643e72b0801..d039ec4fc5b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IsReady200Response.java +++ b/clients/client/java/src/main/java/sh/ory/model/IsReady200Response.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * IsReady200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IsReady200Response { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/clients/client/java/src/main/java/sh/ory/model/IsReady503Response.java b/clients/client/java/src/main/java/sh/ory/model/IsReady503Response.java index 32be52a8885..d78cfd767eb 100644 --- a/clients/client/java/src/main/java/sh/ory/model/IsReady503Response.java +++ b/clients/client/java/src/main/java/sh/ory/model/IsReady503Response.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * IsReady503Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class IsReady503Response { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) diff --git a/clients/client/java/src/main/java/sh/ory/model/JsonPatch.java b/clients/client/java/src/main/java/sh/ory/model/JsonPatch.java index d6b707f72fb..aba89c189f9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/JsonPatch.java +++ b/clients/client/java/src/main/java/sh/ory/model/JsonPatch.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * A JSONPatch document as defined by RFC 6902 */ @ApiModel(description = "A JSONPatch document as defined by RFC 6902") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class JsonPatch { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) diff --git a/clients/client/java/src/main/java/sh/ory/model/JsonWebKey.java b/clients/client/java/src/main/java/sh/ory/model/JsonWebKey.java index 51433d6bfc9..20aabbfc379 100644 --- a/clients/client/java/src/main/java/sh/ory/model/JsonWebKey.java +++ b/clients/client/java/src/main/java/sh/ory/model/JsonWebKey.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * JsonWebKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class JsonWebKey { public static final String SERIALIZED_NAME_ALG = "alg"; @SerializedName(SERIALIZED_NAME_ALG) diff --git a/clients/client/java/src/main/java/sh/ory/model/JsonWebKeySet.java b/clients/client/java/src/main/java/sh/ory/model/JsonWebKeySet.java index d1a95d029d4..a93a91d4a3a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/JsonWebKeySet.java +++ b/clients/client/java/src/main/java/sh/ory/model/JsonWebKeySet.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * JSON Web Key Set */ @ApiModel(description = "JSON Web Key Set") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class JsonWebKeySet { public static final String SERIALIZED_NAME_KEYS = "keys"; @SerializedName(SERIALIZED_NAME_KEYS) diff --git a/clients/client/java/src/main/java/sh/ory/model/KetoNamespace.java b/clients/client/java/src/main/java/sh/ory/model/KetoNamespace.java index 577b1e73dde..1a1b24892c8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/KetoNamespace.java +++ b/clients/client/java/src/main/java/sh/ory/model/KetoNamespace.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * KetoNamespace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class KetoNamespace { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/ListEventStreams.java b/clients/client/java/src/main/java/sh/ory/model/ListEventStreams.java index 51b23456604..41b07b4b980 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ListEventStreams.java +++ b/clients/client/java/src/main/java/sh/ory/model/ListEventStreams.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Event Stream List */ @ApiModel(description = "Event Stream List") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ListEventStreams { public static final String SERIALIZED_NAME_EVENT_STREAMS = "event_streams"; @SerializedName(SERIALIZED_NAME_EVENT_STREAMS) diff --git a/clients/client/java/src/main/java/sh/ory/model/ListMyWorkspacesResponse.java b/clients/client/java/src/main/java/sh/ory/model/ListMyWorkspacesResponse.java index 574434051fa..868eb4433cc 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ListMyWorkspacesResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/ListMyWorkspacesResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,7 +25,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import sh.ory.model.Workspace; +import sh.ory.model.WorkspaceMeta; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -51,7 +51,7 @@ /** * ListMyWorkspacesResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ListMyWorkspacesResponse { public static final String SERIALIZED_NAME_HAS_NEXT_PAGE = "has_next_page"; @SerializedName(SERIALIZED_NAME_HAS_NEXT_PAGE) @@ -63,7 +63,7 @@ public class ListMyWorkspacesResponse { public static final String SERIALIZED_NAME_WORKSPACES = "workspaces"; @SerializedName(SERIALIZED_NAME_WORKSPACES) - private List workspaces = new ArrayList<>(); + private List workspaces = new ArrayList<>(); public ListMyWorkspacesResponse() { } @@ -114,13 +114,13 @@ public void setNextPageToken(String nextPageToken) { } - public ListMyWorkspacesResponse workspaces(List workspaces) { + public ListMyWorkspacesResponse workspaces(List workspaces) { this.workspaces = workspaces; return this; } - public ListMyWorkspacesResponse addWorkspacesItem(Workspace workspacesItem) { + public ListMyWorkspacesResponse addWorkspacesItem(WorkspaceMeta workspacesItem) { this.workspaces.add(workspacesItem); return this; } @@ -132,12 +132,12 @@ public ListMyWorkspacesResponse addWorkspacesItem(Workspace workspacesItem) { @javax.annotation.Nonnull @ApiModelProperty(required = true, value = "") - public List getWorkspaces() { + public List getWorkspaces() { return workspaces; } - public void setWorkspaces(List workspaces) { + public void setWorkspaces(List workspaces) { this.workspaces = workspaces; } @@ -278,7 +278,7 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { JsonArray jsonArrayworkspaces = jsonObj.getAsJsonArray("workspaces"); // validate the required field `workspaces` (array) for (int i = 0; i < jsonArrayworkspaces.size(); i++) { - Workspace.validateJsonObject(jsonArrayworkspaces.get(i).getAsJsonObject()); + WorkspaceMeta.validateJsonObject(jsonArrayworkspaces.get(i).getAsJsonObject()); }; } diff --git a/clients/client/java/src/main/java/sh/ory/model/ListOrganizationsResponse.java b/clients/client/java/src/main/java/sh/ory/model/ListOrganizationsResponse.java index 97a0682abce..94a43f54092 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ListOrganizationsResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/ListOrganizationsResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * B2B SSO Organization List */ @ApiModel(description = "B2B SSO Organization List") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ListOrganizationsResponse { public static final String SERIALIZED_NAME_ORGANIZATIONS = "organizations"; @SerializedName(SERIALIZED_NAME_ORGANIZATIONS) diff --git a/clients/client/java/src/main/java/sh/ory/model/ListWorkspaceProjectsResponse.java b/clients/client/java/src/main/java/sh/ory/model/ListWorkspaceProjectsResponse.java new file mode 100644 index 00000000000..4235a9d5807 --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/ListWorkspaceProjectsResponse.java @@ -0,0 +1,371 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import sh.ory.model.ProjectMetadata; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * ListWorkspaceProjectsResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class ListWorkspaceProjectsResponse { + public static final String SERIALIZED_NAME_HAS_NEXT_PAGE = "has_next_page"; + @SerializedName(SERIALIZED_NAME_HAS_NEXT_PAGE) + private Boolean hasNextPage; + + public static final String SERIALIZED_NAME_NEXT_PAGE = "next_page"; + @SerializedName(SERIALIZED_NAME_NEXT_PAGE) + private String nextPage; + + public static final String SERIALIZED_NAME_PROJECTS = "projects"; + @SerializedName(SERIALIZED_NAME_PROJECTS) + private List projects = new ArrayList<>(); + + public ListWorkspaceProjectsResponse() { + } + + public ListWorkspaceProjectsResponse hasNextPage(Boolean hasNextPage) { + + this.hasNextPage = hasNextPage; + return this; + } + + /** + * Get hasNextPage + * @return hasNextPage + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Boolean getHasNextPage() { + return hasNextPage; + } + + + public void setHasNextPage(Boolean hasNextPage) { + this.hasNextPage = hasNextPage; + } + + + public ListWorkspaceProjectsResponse nextPage(String nextPage) { + + this.nextPage = nextPage; + return this; + } + + /** + * Get nextPage + * @return nextPage + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getNextPage() { + return nextPage; + } + + + public void setNextPage(String nextPage) { + this.nextPage = nextPage; + } + + + public ListWorkspaceProjectsResponse projects(List projects) { + + this.projects = projects; + return this; + } + + public ListWorkspaceProjectsResponse addProjectsItem(ProjectMetadata projectsItem) { + this.projects.add(projectsItem); + return this; + } + + /** + * Get projects + * @return projects + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public List getProjects() { + return projects; + } + + + public void setProjects(List projects) { + this.projects = projects; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ListWorkspaceProjectsResponse instance itself + */ + public ListWorkspaceProjectsResponse putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListWorkspaceProjectsResponse listWorkspaceProjectsResponse = (ListWorkspaceProjectsResponse) o; + return Objects.equals(this.hasNextPage, listWorkspaceProjectsResponse.hasNextPage) && + Objects.equals(this.nextPage, listWorkspaceProjectsResponse.nextPage) && + Objects.equals(this.projects, listWorkspaceProjectsResponse.projects)&& + Objects.equals(this.additionalProperties, listWorkspaceProjectsResponse.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(hasNextPage, nextPage, projects, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListWorkspaceProjectsResponse {\n"); + sb.append(" hasNextPage: ").append(toIndentedString(hasNextPage)).append("\n"); + sb.append(" nextPage: ").append(toIndentedString(nextPage)).append("\n"); + sb.append(" projects: ").append(toIndentedString(projects)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("has_next_page"); + openapiFields.add("next_page"); + openapiFields.add("projects"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("has_next_page"); + openapiRequiredFields.add("next_page"); + openapiRequiredFields.add("projects"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ListWorkspaceProjectsResponse + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ListWorkspaceProjectsResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ListWorkspaceProjectsResponse is not found in the empty JSON string", ListWorkspaceProjectsResponse.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ListWorkspaceProjectsResponse.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("next_page").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `next_page` to be a primitive type in the JSON string but got `%s`", jsonObj.get("next_page").toString())); + } + // ensure the json data is an array + if (!jsonObj.get("projects").isJsonArray()) { + throw new IllegalArgumentException(String.format("Expected the field `projects` to be an array in the JSON string but got `%s`", jsonObj.get("projects").toString())); + } + + JsonArray jsonArrayprojects = jsonObj.getAsJsonArray("projects"); + // validate the required field `projects` (array) + for (int i = 0; i < jsonArrayprojects.size(); i++) { + ProjectMetadata.validateJsonObject(jsonArrayprojects.get(i).getAsJsonObject()); + }; + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ListWorkspaceProjectsResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ListWorkspaceProjectsResponse' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ListWorkspaceProjectsResponse.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ListWorkspaceProjectsResponse value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ListWorkspaceProjectsResponse read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ListWorkspaceProjectsResponse instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ListWorkspaceProjectsResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ListWorkspaceProjectsResponse + * @throws IOException if the JSON string is invalid with respect to ListWorkspaceProjectsResponse + */ + public static ListWorkspaceProjectsResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ListWorkspaceProjectsResponse.class); + } + + /** + * Convert an instance of ListWorkspaceProjectsResponse to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/main/java/sh/ory/model/LoginFlow.java b/clients/client/java/src/main/java/sh/ory/model/LoginFlow.java index ec11c52372c..233fada837f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/LoginFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/LoginFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,7 +26,6 @@ import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.model.AuthenticatorAssuranceLevel; -import sh.ory.model.IdentityCredentialsType; import sh.ory.model.OAuth2LoginRequest; import sh.ory.model.UiContainer; @@ -55,11 +54,70 @@ * This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. */ @ApiModel(description = "This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class LoginFlow { + /** + * The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + */ + @JsonAdapter(ActiveEnum.Adapter.class) + public enum ActiveEnum { + PASSWORD("password"), + + OIDC("oidc"), + + TOTP("totp"), + + LOOKUP_SECRET("lookup_secret"), + + WEBAUTHN("webauthn"), + + CODE("code"), + + LINK_RECOVERY("link_recovery"), + + CODE_RECOVERY("code_recovery"); + + private String value; + + ActiveEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ActiveEnum fromValue(String value) { + for (ActiveEnum b : ActiveEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ActiveEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ActiveEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ActiveEnum.fromValue(value); + } + } + } + public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) - private IdentityCredentialsType active; + private ActiveEnum active; public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -113,6 +171,10 @@ public class LoginFlow { @SerializedName(SERIALIZED_NAME_STATE) private Object state = null; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; @@ -128,25 +190,25 @@ public class LoginFlow { public LoginFlow() { } - public LoginFlow active(IdentityCredentialsType active) { + public LoginFlow active(ActiveEnum active) { this.active = active; return this; } /** - * Get active + * The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 active **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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") - public IdentityCredentialsType getActive() { + public ActiveEnum getActive() { return active; } - public void setActive(IdentityCredentialsType active) { + public void setActive(ActiveEnum active) { this.active = active; } @@ -450,6 +512,29 @@ public void setState(Object state) { } + public LoginFlow transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * TransientPayload is used to pass data from the login to hooks and email templates + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "TransientPayload is used to pass data from the login to hooks and email templates") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public LoginFlow type(String type) { this.type = type; @@ -587,6 +672,7 @@ public boolean equals(Object o) { Objects.equals(this.returnTo, loginFlow.returnTo) && Objects.equals(this.sessionTokenExchangeCode, loginFlow.sessionTokenExchangeCode) && Objects.equals(this.state, loginFlow.state) && + Objects.equals(this.transientPayload, loginFlow.transientPayload) && Objects.equals(this.type, loginFlow.type) && Objects.equals(this.ui, loginFlow.ui) && Objects.equals(this.updatedAt, loginFlow.updatedAt)&& @@ -599,7 +685,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(active, createdAt, expiresAt, id, issuedAt, oauth2LoginChallenge, oauth2LoginRequest, organizationId, refresh, requestUrl, requestedAal, returnTo, sessionTokenExchangeCode, state, type, ui, updatedAt, additionalProperties); + return Objects.hash(active, createdAt, expiresAt, id, issuedAt, oauth2LoginChallenge, oauth2LoginRequest, organizationId, refresh, requestUrl, requestedAal, returnTo, sessionTokenExchangeCode, state, transientPayload, type, ui, updatedAt, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -627,6 +713,7 @@ public String toString() { sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); sb.append(" sessionTokenExchangeCode: ").append(toIndentedString(sessionTokenExchangeCode)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" ui: ").append(toIndentedString(ui)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); @@ -667,6 +754,7 @@ private String toIndentedString(Object o) { openapiFields.add("return_to"); openapiFields.add("session_token_exchange_code"); openapiFields.add("state"); + openapiFields.add("transient_payload"); openapiFields.add("type"); openapiFields.add("ui"); openapiFields.add("updated_at"); @@ -701,6 +789,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } + if ((jsonObj.get("active") != null && !jsonObj.get("active").isJsonNull()) && !jsonObj.get("active").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `active` to be a primitive type in the JSON string but got `%s`", jsonObj.get("active").toString())); + } if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/LoginFlowState.java b/clients/client/java/src/main/java/sh/ory/model/LoginFlowState.java index 6715c356e0a..bee22164a49 100644 --- a/clients/client/java/src/main/java/sh/ory/model/LoginFlowState.java +++ b/clients/client/java/src/main/java/sh/ory/model/LoginFlowState.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/LogoutFlow.java b/clients/client/java/src/main/java/sh/ory/model/LogoutFlow.java index b9f27a35909..a55eec18680 100644 --- a/clients/client/java/src/main/java/sh/ory/model/LogoutFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/LogoutFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Logout Flow */ @ApiModel(description = "Logout Flow") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class LogoutFlow { public static final String SERIALIZED_NAME_LOGOUT_TOKEN = "logout_token"; @SerializedName(SERIALIZED_NAME_LOGOUT_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchema.java b/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchema.java index 8ee35c3a813..ec01c86f9cb 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchema.java +++ b/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchema.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system. */ @ApiModel(description = "Together the name and identity uuid are a unique index constraint. This prevents a user from having schemas with the same name. This also allows schemas to have the same name across the system.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ManagedIdentitySchema { public static final String SERIALIZED_NAME_BLOB_NAME = "blob_name"; @SerializedName(SERIALIZED_NAME_BLOB_NAME) diff --git a/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchemaValidationResult.java b/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchemaValidationResult.java index ddc1f0bb045..483693329b5 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchemaValidationResult.java +++ b/clients/client/java/src/main/java/sh/ory/model/ManagedIdentitySchemaValidationResult.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Ory Identity Schema Validation Result */ @ApiModel(description = "Ory Identity Schema Validation Result") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ManagedIdentitySchemaValidationResult { public static final String SERIALIZED_NAME_MESSAGE = "message"; @SerializedName(SERIALIZED_NAME_MESSAGE) diff --git a/clients/client/java/src/main/java/sh/ory/model/MemberInvite.java b/clients/client/java/src/main/java/sh/ory/model/MemberInvite.java index ec86b10fc14..d7cfd2811e7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/MemberInvite.java +++ b/clients/client/java/src/main/java/sh/ory/model/MemberInvite.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * MemberInvite */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class MemberInvite { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/Message.java b/clients/client/java/src/main/java/sh/ory/model/Message.java index 9be8f7756c5..deefced2bd1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Message.java +++ b/clients/client/java/src/main/java/sh/ory/model/Message.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,7 +54,7 @@ /** * Message */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Message { public static final String SERIALIZED_NAME_BODY = "body"; @SerializedName(SERIALIZED_NAME_BODY) diff --git a/clients/client/java/src/main/java/sh/ory/model/MessageDispatch.java b/clients/client/java/src/main/java/sh/ory/model/MessageDispatch.java index 4020ff2b5bf..55038256ca5 100644 --- a/clients/client/java/src/main/java/sh/ory/model/MessageDispatch.java +++ b/clients/client/java/src/main/java/sh/ory/model/MessageDispatch.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * MessageDispatch represents an attempt of sending a courier message It contains the status of the attempt (failed or successful) and the error if any occured */ @ApiModel(description = "MessageDispatch represents an attempt of sending a courier message It contains the status of the attempt (failed or successful) and the error if any occured") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class MessageDispatch { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/MetricsDatapoint.java b/clients/client/java/src/main/java/sh/ory/model/MetricsDatapoint.java index c1f4e860f08..6f342a2824d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/MetricsDatapoint.java +++ b/clients/client/java/src/main/java/sh/ory/model/MetricsDatapoint.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Represents a single datapoint/bucket of a time series */ @ApiModel(description = "Represents a single datapoint/bucket of a time series") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class MetricsDatapoint { public static final String SERIALIZED_NAME_COUNT = "count"; @SerializedName(SERIALIZED_NAME_COUNT) diff --git a/clients/client/java/src/main/java/sh/ory/model/MigrationOptions.java b/clients/client/java/src/main/java/sh/ory/model/MigrationOptions.java new file mode 100644 index 00000000000..4320fee0052 --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/MigrationOptions.java @@ -0,0 +1,419 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * MigrationOptions + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class MigrationOptions { + /** + * The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + */ + @JsonAdapter(EnvironmentEnum.Adapter.class) + public enum EnvironmentEnum { + PROD("prod"), + + DEV("dev"); + + private String value; + + EnvironmentEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EnvironmentEnum fromValue(String value) { + for (EnvironmentEnum b : EnvironmentEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EnvironmentEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EnvironmentEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EnvironmentEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; + @SerializedName(SERIALIZED_NAME_ENVIRONMENT) + private EnvironmentEnum environment; + + /** + * The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + */ + @JsonAdapter(ProjectSubscriptionEnum.Adapter.class) + public enum ProjectSubscriptionEnum { + MIGRATE("migrate"), + + IGNORE("ignore"); + + private String value; + + ProjectSubscriptionEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ProjectSubscriptionEnum fromValue(String value) { + for (ProjectSubscriptionEnum b : ProjectSubscriptionEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ProjectSubscriptionEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ProjectSubscriptionEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ProjectSubscriptionEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_PROJECT_SUBSCRIPTION = "project_subscription"; + @SerializedName(SERIALIZED_NAME_PROJECT_SUBSCRIPTION) + private ProjectSubscriptionEnum projectSubscription; + + public MigrationOptions() { + } + + public MigrationOptions environment(EnvironmentEnum environment) { + + this.environment = environment; + return this; + } + + /** + * The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + * @return environment + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development") + + public EnvironmentEnum getEnvironment() { + return environment; + } + + + public void setEnvironment(EnvironmentEnum environment) { + this.environment = environment; + } + + + public MigrationOptions projectSubscription(ProjectSubscriptionEnum projectSubscription) { + + this.projectSubscription = projectSubscription; + return this; + } + + /** + * The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + * @return projectSubscription + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription.") + + public ProjectSubscriptionEnum getProjectSubscription() { + return projectSubscription; + } + + + public void setProjectSubscription(ProjectSubscriptionEnum projectSubscription) { + this.projectSubscription = projectSubscription; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the MigrationOptions instance itself + */ + public MigrationOptions putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MigrationOptions migrationOptions = (MigrationOptions) o; + return Objects.equals(this.environment, migrationOptions.environment) && + Objects.equals(this.projectSubscription, migrationOptions.projectSubscription)&& + Objects.equals(this.additionalProperties, migrationOptions.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(environment, projectSubscription, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MigrationOptions {\n"); + sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); + sb.append(" projectSubscription: ").append(toIndentedString(projectSubscription)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("environment"); + openapiFields.add("project_subscription"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("environment"); + openapiRequiredFields.add("project_subscription"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to MigrationOptions + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!MigrationOptions.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in MigrationOptions is not found in the empty JSON string", MigrationOptions.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : MigrationOptions.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("environment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `environment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("environment").toString())); + } + if (!jsonObj.get("project_subscription").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `project_subscription` to be a primitive type in the JSON string but got `%s`", jsonObj.get("project_subscription").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!MigrationOptions.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'MigrationOptions' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(MigrationOptions.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, MigrationOptions value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public MigrationOptions read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + MigrationOptions instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of MigrationOptions given an JSON string + * + * @param jsonString JSON string + * @return An instance of MigrationOptions + * @throws IOException if the JSON string is invalid with respect to MigrationOptions + */ + public static MigrationOptions fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, MigrationOptions.class); + } + + /** + * Convert an instance of MigrationOptions to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/main/java/sh/ory/model/Namespace.java b/clients/client/java/src/main/java/sh/ory/model/Namespace.java index 7bf4454b709..007a12f46dd 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Namespace.java +++ b/clients/client/java/src/main/java/sh/ory/model/Namespace.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Namespace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Namespace { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/clients/client/java/src/main/java/sh/ory/model/NeedsPrivilegedSessionError.java b/clients/client/java/src/main/java/sh/ory/model/NeedsPrivilegedSessionError.java index 511c5ab4b3f..72c720b067c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NeedsPrivilegedSessionError.java +++ b/clients/client/java/src/main/java/sh/ory/model/NeedsPrivilegedSessionError.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * NeedsPrivilegedSessionError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NeedsPrivilegedSessionError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProject.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProject.java index 5d3b8e52a82..3403684a319 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProject.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProject.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ /** * NormalizedProject */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProject { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevision.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevision.java index 4595013b9ed..eb247e11743 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevision.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevision.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -58,7 +58,7 @@ /** * NormalizedProjectRevision */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProjectRevision { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -68,6 +68,10 @@ public class NormalizedProjectRevision { @SerializedName(SERIALIZED_NAME_DISABLE_ACCOUNT_EXPERIENCE_WELCOME_SCREEN) private Boolean disableAccountExperienceWelcomeScreen; + public static final String SERIALIZED_NAME_ENABLE_AX_V2 = "enable_ax_v2"; + @SerializedName(SERIALIZED_NAME_ENABLE_AX_V2) + private Boolean enableAxV2; + public static final String SERIALIZED_NAME_HYDRA_OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS = "hydra_oauth2_allowed_top_level_claims"; @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_ALLOWED_TOP_LEVEL_CLAIMS) private List hydraOauth2AllowedTopLevelClaims = null; @@ -92,6 +96,10 @@ public class NormalizedProjectRevision { @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_GRANT_JWT_MAX_TTL) private String hydraOauth2GrantJwtMaxTtl = "720h"; + public static final String SERIALIZED_NAME_HYDRA_OAUTH2_MIRROR_TOP_LEVEL_CLAIMS = "hydra_oauth2_mirror_top_level_claims"; + @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_MIRROR_TOP_LEVEL_CLAIMS) + private Boolean hydraOauth2MirrorTopLevelClaims; + public static final String SERIALIZED_NAME_HYDRA_OAUTH2_PKCE_ENFORCED = "hydra_oauth2_pkce_enforced"; @SerializedName(SERIALIZED_NAME_HYDRA_OAUTH2_PKCE_ENFORCED) private Boolean hydraOauth2PkceEnforced; @@ -418,6 +426,10 @@ public HydraStrategiesScopeEnum read(final JsonReader jsonReader) throws IOExcep @SerializedName(SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_LOGIN_CODE_VALID_EMAIL_SUBJECT) private String kratosCourierTemplatesLoginCodeValidEmailSubject; + public static final String SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_LOGIN_CODE_VALID_SMS_BODY_PLAINTEXT = "kratos_courier_templates_login_code_valid_sms_body_plaintext"; + @SerializedName(SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_LOGIN_CODE_VALID_SMS_BODY_PLAINTEXT) + private String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + public static final String SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_RECOVERY_CODE_INVALID_EMAIL_BODY_HTML = "kratos_courier_templates_recovery_code_invalid_email_body_html"; @SerializedName(SERIALIZED_NAME_KRATOS_COURIER_TEMPLATES_RECOVERY_CODE_INVALID_EMAIL_BODY_HTML) private String kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @@ -852,6 +864,10 @@ public KratosSelfserviceFlowsVerificationUseEnum read(final JsonReader jsonReade @SerializedName(SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_ENABLED) private Boolean kratosSelfserviceMethodsCodeEnabled; + public static final String SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_MFA_ENABLED = "kratos_selfservice_methods_code_mfa_enabled"; + @SerializedName(SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_MFA_ENABLED) + private Boolean kratosSelfserviceMethodsCodeMfaEnabled; + public static final String SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_PASSWORDLESS_ENABLED = "kratos_selfservice_methods_code_passwordless_enabled"; @SerializedName(SERIALIZED_NAME_KRATOS_SELFSERVICE_METHODS_CODE_PASSWORDLESS_ENABLED) private Boolean kratosSelfserviceMethodsCodePasswordlessEnabled; @@ -1052,6 +1068,29 @@ public void setDisableAccountExperienceWelcomeScreen(Boolean disableAccountExper } + public NormalizedProjectRevision enableAxV2(Boolean enableAxV2) { + + this.enableAxV2 = enableAxV2; + return this; + } + + /** + * Whether the new account experience is enabled and reachable. + * @return enableAxV2 + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Whether the new account experience is enabled and reachable.") + + public Boolean getEnableAxV2() { + return enableAxV2; + } + + + public void setEnableAxV2(Boolean enableAxV2) { + this.enableAxV2 = enableAxV2; + } + + public NormalizedProjectRevision hydraOauth2AllowedTopLevelClaims(List hydraOauth2AllowedTopLevelClaims) { this.hydraOauth2AllowedTopLevelClaims = hydraOauth2AllowedTopLevelClaims; @@ -1198,6 +1237,29 @@ public void setHydraOauth2GrantJwtMaxTtl(String hydraOauth2GrantJwtMaxTtl) { } + public NormalizedProjectRevision hydraOauth2MirrorTopLevelClaims(Boolean hydraOauth2MirrorTopLevelClaims) { + + this.hydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; + return this; + } + + /** + * Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + * @return hydraOauth2MirrorTopLevelClaims + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.") + + public Boolean getHydraOauth2MirrorTopLevelClaims() { + return hydraOauth2MirrorTopLevelClaims; + } + + + public void setHydraOauth2MirrorTopLevelClaims(Boolean hydraOauth2MirrorTopLevelClaims) { + this.hydraOauth2MirrorTopLevelClaims = hydraOauth2MirrorTopLevelClaims; + } + + public NormalizedProjectRevision hydraOauth2PkceEnforced(Boolean hydraOauth2PkceEnforced) { this.hydraOauth2PkceEnforced = hydraOauth2PkceEnforced; @@ -2595,6 +2657,29 @@ public void setKratosCourierTemplatesLoginCodeValidEmailSubject(String kratosCou } + public NormalizedProjectRevision kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + + this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + return this; + } + + /** + * Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + * @return kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.") + + public String getKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() { + return kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + } + + + public void setKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext(String kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) { + this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext = kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + } + + public NormalizedProjectRevision kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml(String kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) { this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml = kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml; @@ -4590,6 +4675,29 @@ public void setKratosSelfserviceMethodsCodeEnabled(Boolean kratosSelfserviceMeth } + public NormalizedProjectRevision kratosSelfserviceMethodsCodeMfaEnabled(Boolean kratosSelfserviceMethodsCodeMfaEnabled) { + + this.kratosSelfserviceMethodsCodeMfaEnabled = kratosSelfserviceMethodsCodeMfaEnabled; + return this; + } + + /** + * Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + * @return kratosSelfserviceMethodsCodeMfaEnabled + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.") + + public Boolean getKratosSelfserviceMethodsCodeMfaEnabled() { + return kratosSelfserviceMethodsCodeMfaEnabled; + } + + + public void setKratosSelfserviceMethodsCodeMfaEnabled(Boolean kratosSelfserviceMethodsCodeMfaEnabled) { + this.kratosSelfserviceMethodsCodeMfaEnabled = kratosSelfserviceMethodsCodeMfaEnabled; + } + + public NormalizedProjectRevision kratosSelfserviceMethodsCodePasswordlessEnabled(Boolean kratosSelfserviceMethodsCodePasswordlessEnabled) { this.kratosSelfserviceMethodsCodePasswordlessEnabled = kratosSelfserviceMethodsCodePasswordlessEnabled; @@ -5536,12 +5644,14 @@ public boolean equals(Object o) { NormalizedProjectRevision normalizedProjectRevision = (NormalizedProjectRevision) o; return Objects.equals(this.createdAt, normalizedProjectRevision.createdAt) && Objects.equals(this.disableAccountExperienceWelcomeScreen, normalizedProjectRevision.disableAccountExperienceWelcomeScreen) && + Objects.equals(this.enableAxV2, normalizedProjectRevision.enableAxV2) && Objects.equals(this.hydraOauth2AllowedTopLevelClaims, normalizedProjectRevision.hydraOauth2AllowedTopLevelClaims) && Objects.equals(this.hydraOauth2ClientCredentialsDefaultGrantAllowedScope, normalizedProjectRevision.hydraOauth2ClientCredentialsDefaultGrantAllowedScope) && Objects.equals(this.hydraOauth2ExcludeNotBeforeClaim, normalizedProjectRevision.hydraOauth2ExcludeNotBeforeClaim) && Objects.equals(this.hydraOauth2GrantJwtIatOptional, normalizedProjectRevision.hydraOauth2GrantJwtIatOptional) && Objects.equals(this.hydraOauth2GrantJwtJtiOptional, normalizedProjectRevision.hydraOauth2GrantJwtJtiOptional) && Objects.equals(this.hydraOauth2GrantJwtMaxTtl, normalizedProjectRevision.hydraOauth2GrantJwtMaxTtl) && + Objects.equals(this.hydraOauth2MirrorTopLevelClaims, normalizedProjectRevision.hydraOauth2MirrorTopLevelClaims) && Objects.equals(this.hydraOauth2PkceEnforced, normalizedProjectRevision.hydraOauth2PkceEnforced) && Objects.equals(this.hydraOauth2PkceEnforcedForPublicClients, normalizedProjectRevision.hydraOauth2PkceEnforcedForPublicClients) && Objects.equals(this.hydraOauth2RefreshTokenHook, normalizedProjectRevision.hydraOauth2RefreshTokenHook) && @@ -5600,6 +5710,7 @@ public boolean equals(Object o) { Objects.equals(this.kratosCourierTemplatesLoginCodeValidEmailBodyHtml, normalizedProjectRevision.kratosCourierTemplatesLoginCodeValidEmailBodyHtml) && Objects.equals(this.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, normalizedProjectRevision.kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext) && Objects.equals(this.kratosCourierTemplatesLoginCodeValidEmailSubject, normalizedProjectRevision.kratosCourierTemplatesLoginCodeValidEmailSubject) && + Objects.equals(this.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, normalizedProjectRevision.kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) && Objects.equals(this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, normalizedProjectRevision.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml) && Objects.equals(this.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, normalizedProjectRevision.kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext) && Objects.equals(this.kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, normalizedProjectRevision.kratosCourierTemplatesRecoveryCodeInvalidEmailSubject) && @@ -5685,6 +5796,7 @@ public boolean equals(Object o) { Objects.equals(this.kratosSelfserviceFlowsVerificationUse, normalizedProjectRevision.kratosSelfserviceFlowsVerificationUse) && Objects.equals(this.kratosSelfserviceMethodsCodeConfigLifespan, normalizedProjectRevision.kratosSelfserviceMethodsCodeConfigLifespan) && Objects.equals(this.kratosSelfserviceMethodsCodeEnabled, normalizedProjectRevision.kratosSelfserviceMethodsCodeEnabled) && + Objects.equals(this.kratosSelfserviceMethodsCodeMfaEnabled, normalizedProjectRevision.kratosSelfserviceMethodsCodeMfaEnabled) && Objects.equals(this.kratosSelfserviceMethodsCodePasswordlessEnabled, normalizedProjectRevision.kratosSelfserviceMethodsCodePasswordlessEnabled) && Objects.equals(this.kratosSelfserviceMethodsLinkConfigBaseUrl, normalizedProjectRevision.kratosSelfserviceMethodsLinkConfigBaseUrl) && Objects.equals(this.kratosSelfserviceMethodsLinkConfigLifespan, normalizedProjectRevision.kratosSelfserviceMethodsLinkConfigLifespan) && @@ -5731,7 +5843,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(createdAt, disableAccountExperienceWelcomeScreen, hydraOauth2AllowedTopLevelClaims, hydraOauth2ClientCredentialsDefaultGrantAllowedScope, hydraOauth2ExcludeNotBeforeClaim, hydraOauth2GrantJwtIatOptional, hydraOauth2GrantJwtJtiOptional, hydraOauth2GrantJwtMaxTtl, hydraOauth2PkceEnforced, hydraOauth2PkceEnforcedForPublicClients, hydraOauth2RefreshTokenHook, hydraOauth2TokenHook, hydraOidcDynamicClientRegistrationDefaultScope, hydraOidcDynamicClientRegistrationEnabled, hydraOidcSubjectIdentifiersPairwiseSalt, hydraOidcSubjectIdentifiersSupportedTypes, hydraSecretsCookie, hydraSecretsSystem, hydraServeCookiesSameSiteLegacyWorkaround, hydraServeCookiesSameSiteMode, hydraStrategiesAccessToken, hydraStrategiesScope, hydraTtlAccessToken, hydraTtlAuthCode, hydraTtlIdToken, hydraTtlLoginConsentRequest, hydraTtlRefreshToken, hydraUrlsConsent, hydraUrlsError, hydraUrlsLogin, hydraUrlsLogout, hydraUrlsPostLogoutRedirect, hydraUrlsRegistration, hydraUrlsSelfIssuer, hydraWebfingerJwksBroadcastKeys, hydraWebfingerOidcDiscoveryAuthUrl, hydraWebfingerOidcDiscoveryClientRegistrationUrl, hydraWebfingerOidcDiscoveryJwksUrl, hydraWebfingerOidcDiscoverySupportedClaims, hydraWebfingerOidcDiscoverySupportedScope, hydraWebfingerOidcDiscoveryTokenUrl, hydraWebfingerOidcDiscoveryUserinfoUrl, id, ketoNamespaceConfiguration, ketoNamespaces, kratosCookiesSameSite, kratosCourierChannels, kratosCourierDeliveryStrategy, kratosCourierHttpRequestConfigAuthApiKeyIn, kratosCourierHttpRequestConfigAuthApiKeyName, kratosCourierHttpRequestConfigAuthApiKeyValue, kratosCourierHttpRequestConfigAuthBasicAuthPassword, kratosCourierHttpRequestConfigAuthBasicAuthUser, kratosCourierHttpRequestConfigAuthType, kratosCourierHttpRequestConfigBody, kratosCourierHttpRequestConfigHeaders, kratosCourierHttpRequestConfigMethod, kratosCourierHttpRequestConfigUrl, kratosCourierSmtpConnectionUri, kratosCourierSmtpFromAddress, kratosCourierSmtpFromName, kratosCourierSmtpHeaders, kratosCourierSmtpLocalName, kratosCourierTemplatesLoginCodeValidEmailBodyHtml, kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, kratosCourierTemplatesLoginCodeValidEmailSubject, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeValidEmailSubject, kratosCourierTemplatesRecoveryInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryInvalidEmailSubject, kratosCourierTemplatesRecoveryValidEmailBodyHtml, kratosCourierTemplatesRecoveryValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryValidEmailSubject, kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml, kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext, kratosCourierTemplatesRegistrationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml, kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeInvalidEmailSubject, kratosCourierTemplatesVerificationCodeValidEmailBodyHtml, kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailBodyHtml, kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailSubject, kratosCourierTemplatesVerificationValidEmailBodyHtml, kratosCourierTemplatesVerificationValidEmailBodyPlaintext, kratosCourierTemplatesVerificationValidEmailSubject, kratosFeatureFlagsCacheableSessions, kratosFeatureFlagsUseContinueWithTransitions, kratosIdentitySchemas, kratosOauth2ProviderHeaders, kratosOauth2ProviderOverrideReturnTo, kratosOauth2ProviderUrl, kratosPreviewDefaultReadConsistencyLevel, kratosSecretsCipher, kratosSecretsCookie, kratosSecretsDefault, kratosSelfserviceAllowedReturnUrls, kratosSelfserviceDefaultBrowserReturnUrl, kratosSelfserviceFlowsErrorUiUrl, kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginLifespan, kratosSelfserviceFlowsLoginUiUrl, kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryEnabled, kratosSelfserviceFlowsRecoveryLifespan, kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients, kratosSelfserviceFlowsRecoveryUiUrl, kratosSelfserviceFlowsRecoveryUse, kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationEnabled, kratosSelfserviceFlowsRegistrationLifespan, kratosSelfserviceFlowsRegistrationLoginHints, kratosSelfserviceFlowsRegistrationUiUrl, kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsLifespan, kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge, kratosSelfserviceFlowsSettingsRequiredAal, kratosSelfserviceFlowsSettingsUiUrl, kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsVerificationEnabled, kratosSelfserviceFlowsVerificationLifespan, kratosSelfserviceFlowsVerificationNotifyUnknownRecipients, kratosSelfserviceFlowsVerificationUiUrl, kratosSelfserviceFlowsVerificationUse, kratosSelfserviceMethodsCodeConfigLifespan, kratosSelfserviceMethodsCodeEnabled, kratosSelfserviceMethodsCodePasswordlessEnabled, kratosSelfserviceMethodsLinkConfigBaseUrl, kratosSelfserviceMethodsLinkConfigLifespan, kratosSelfserviceMethodsLinkEnabled, kratosSelfserviceMethodsLookupSecretEnabled, kratosSelfserviceMethodsOidcConfigBaseRedirectUri, kratosSelfserviceMethodsOidcConfigProviders, kratosSelfserviceMethodsOidcEnabled, kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled, kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled, kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors, kratosSelfserviceMethodsPasswordConfigMaxBreaches, kratosSelfserviceMethodsPasswordConfigMinPasswordLength, kratosSelfserviceMethodsPasswordEnabled, kratosSelfserviceMethodsProfileEnabled, kratosSelfserviceMethodsTotpConfigIssuer, kratosSelfserviceMethodsTotpEnabled, kratosSelfserviceMethodsWebauthnConfigPasswordless, kratosSelfserviceMethodsWebauthnConfigRpDisplayName, kratosSelfserviceMethodsWebauthnConfigRpIcon, kratosSelfserviceMethodsWebauthnConfigRpId, kratosSelfserviceMethodsWebauthnConfigRpOrigins, kratosSelfserviceMethodsWebauthnEnabled, kratosSessionCookiePersistent, kratosSessionCookieSameSite, kratosSessionLifespan, kratosSessionWhoamiRequiredAal, kratosSessionWhoamiTokenizerTemplates, name, projectId, projectRevisionHooks, serveAdminCorsAllowedOrigins, serveAdminCorsEnabled, servePublicCorsAllowedOrigins, servePublicCorsEnabled, strictSecurity, updatedAt, additionalProperties); + return Objects.hash(createdAt, disableAccountExperienceWelcomeScreen, enableAxV2, hydraOauth2AllowedTopLevelClaims, hydraOauth2ClientCredentialsDefaultGrantAllowedScope, hydraOauth2ExcludeNotBeforeClaim, hydraOauth2GrantJwtIatOptional, hydraOauth2GrantJwtJtiOptional, hydraOauth2GrantJwtMaxTtl, hydraOauth2MirrorTopLevelClaims, hydraOauth2PkceEnforced, hydraOauth2PkceEnforcedForPublicClients, hydraOauth2RefreshTokenHook, hydraOauth2TokenHook, hydraOidcDynamicClientRegistrationDefaultScope, hydraOidcDynamicClientRegistrationEnabled, hydraOidcSubjectIdentifiersPairwiseSalt, hydraOidcSubjectIdentifiersSupportedTypes, hydraSecretsCookie, hydraSecretsSystem, hydraServeCookiesSameSiteLegacyWorkaround, hydraServeCookiesSameSiteMode, hydraStrategiesAccessToken, hydraStrategiesScope, hydraTtlAccessToken, hydraTtlAuthCode, hydraTtlIdToken, hydraTtlLoginConsentRequest, hydraTtlRefreshToken, hydraUrlsConsent, hydraUrlsError, hydraUrlsLogin, hydraUrlsLogout, hydraUrlsPostLogoutRedirect, hydraUrlsRegistration, hydraUrlsSelfIssuer, hydraWebfingerJwksBroadcastKeys, hydraWebfingerOidcDiscoveryAuthUrl, hydraWebfingerOidcDiscoveryClientRegistrationUrl, hydraWebfingerOidcDiscoveryJwksUrl, hydraWebfingerOidcDiscoverySupportedClaims, hydraWebfingerOidcDiscoverySupportedScope, hydraWebfingerOidcDiscoveryTokenUrl, hydraWebfingerOidcDiscoveryUserinfoUrl, id, ketoNamespaceConfiguration, ketoNamespaces, kratosCookiesSameSite, kratosCourierChannels, kratosCourierDeliveryStrategy, kratosCourierHttpRequestConfigAuthApiKeyIn, kratosCourierHttpRequestConfigAuthApiKeyName, kratosCourierHttpRequestConfigAuthApiKeyValue, kratosCourierHttpRequestConfigAuthBasicAuthPassword, kratosCourierHttpRequestConfigAuthBasicAuthUser, kratosCourierHttpRequestConfigAuthType, kratosCourierHttpRequestConfigBody, kratosCourierHttpRequestConfigHeaders, kratosCourierHttpRequestConfigMethod, kratosCourierHttpRequestConfigUrl, kratosCourierSmtpConnectionUri, kratosCourierSmtpFromAddress, kratosCourierSmtpFromName, kratosCourierSmtpHeaders, kratosCourierSmtpLocalName, kratosCourierTemplatesLoginCodeValidEmailBodyHtml, kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext, kratosCourierTemplatesLoginCodeValidEmailSubject, kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeInvalidEmailSubject, kratosCourierTemplatesRecoveryCodeValidEmailBodyHtml, kratosCourierTemplatesRecoveryCodeValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryCodeValidEmailSubject, kratosCourierTemplatesRecoveryInvalidEmailBodyHtml, kratosCourierTemplatesRecoveryInvalidEmailBodyPlaintext, kratosCourierTemplatesRecoveryInvalidEmailSubject, kratosCourierTemplatesRecoveryValidEmailBodyHtml, kratosCourierTemplatesRecoveryValidEmailBodyPlaintext, kratosCourierTemplatesRecoveryValidEmailSubject, kratosCourierTemplatesRegistrationCodeValidEmailBodyHtml, kratosCourierTemplatesRegistrationCodeValidEmailBodyPlaintext, kratosCourierTemplatesRegistrationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeInvalidEmailBodyHtml, kratosCourierTemplatesVerificationCodeInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeInvalidEmailSubject, kratosCourierTemplatesVerificationCodeValidEmailBodyHtml, kratosCourierTemplatesVerificationCodeValidEmailBodyPlaintext, kratosCourierTemplatesVerificationCodeValidEmailSubject, kratosCourierTemplatesVerificationCodeValidSmsBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailBodyHtml, kratosCourierTemplatesVerificationInvalidEmailBodyPlaintext, kratosCourierTemplatesVerificationInvalidEmailSubject, kratosCourierTemplatesVerificationValidEmailBodyHtml, kratosCourierTemplatesVerificationValidEmailBodyPlaintext, kratosCourierTemplatesVerificationValidEmailSubject, kratosFeatureFlagsCacheableSessions, kratosFeatureFlagsUseContinueWithTransitions, kratosIdentitySchemas, kratosOauth2ProviderHeaders, kratosOauth2ProviderOverrideReturnTo, kratosOauth2ProviderUrl, kratosPreviewDefaultReadConsistencyLevel, kratosSecretsCipher, kratosSecretsCookie, kratosSecretsDefault, kratosSelfserviceAllowedReturnUrls, kratosSelfserviceDefaultBrowserReturnUrl, kratosSelfserviceFlowsErrorUiUrl, kratosSelfserviceFlowsLoginAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsLoginLifespan, kratosSelfserviceFlowsLoginUiUrl, kratosSelfserviceFlowsLogoutAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRecoveryEnabled, kratosSelfserviceFlowsRecoveryLifespan, kratosSelfserviceFlowsRecoveryNotifyUnknownRecipients, kratosSelfserviceFlowsRecoveryUiUrl, kratosSelfserviceFlowsRecoveryUse, kratosSelfserviceFlowsRegistrationAfterCodeDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsRegistrationEnabled, kratosSelfserviceFlowsRegistrationLifespan, kratosSelfserviceFlowsRegistrationLoginHints, kratosSelfserviceFlowsRegistrationUiUrl, kratosSelfserviceFlowsSettingsAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterLookupSecretDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterOidcDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterPasswordDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterProfileDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterTotpDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsAfterWebauthnDefaultBrowserReturnUrl, kratosSelfserviceFlowsSettingsLifespan, kratosSelfserviceFlowsSettingsPrivilegedSessionMaxAge, kratosSelfserviceFlowsSettingsRequiredAal, kratosSelfserviceFlowsSettingsUiUrl, kratosSelfserviceFlowsVerificationAfterDefaultBrowserReturnUrl, kratosSelfserviceFlowsVerificationEnabled, kratosSelfserviceFlowsVerificationLifespan, kratosSelfserviceFlowsVerificationNotifyUnknownRecipients, kratosSelfserviceFlowsVerificationUiUrl, kratosSelfserviceFlowsVerificationUse, kratosSelfserviceMethodsCodeConfigLifespan, kratosSelfserviceMethodsCodeEnabled, kratosSelfserviceMethodsCodeMfaEnabled, kratosSelfserviceMethodsCodePasswordlessEnabled, kratosSelfserviceMethodsLinkConfigBaseUrl, kratosSelfserviceMethodsLinkConfigLifespan, kratosSelfserviceMethodsLinkEnabled, kratosSelfserviceMethodsLookupSecretEnabled, kratosSelfserviceMethodsOidcConfigBaseRedirectUri, kratosSelfserviceMethodsOidcConfigProviders, kratosSelfserviceMethodsOidcEnabled, kratosSelfserviceMethodsPasswordConfigHaveibeenpwnedEnabled, kratosSelfserviceMethodsPasswordConfigIdentifierSimilarityCheckEnabled, kratosSelfserviceMethodsPasswordConfigIgnoreNetworkErrors, kratosSelfserviceMethodsPasswordConfigMaxBreaches, kratosSelfserviceMethodsPasswordConfigMinPasswordLength, kratosSelfserviceMethodsPasswordEnabled, kratosSelfserviceMethodsProfileEnabled, kratosSelfserviceMethodsTotpConfigIssuer, kratosSelfserviceMethodsTotpEnabled, kratosSelfserviceMethodsWebauthnConfigPasswordless, kratosSelfserviceMethodsWebauthnConfigRpDisplayName, kratosSelfserviceMethodsWebauthnConfigRpIcon, kratosSelfserviceMethodsWebauthnConfigRpId, kratosSelfserviceMethodsWebauthnConfigRpOrigins, kratosSelfserviceMethodsWebauthnEnabled, kratosSessionCookiePersistent, kratosSessionCookieSameSite, kratosSessionLifespan, kratosSessionWhoamiRequiredAal, kratosSessionWhoamiTokenizerTemplates, name, projectId, projectRevisionHooks, serveAdminCorsAllowedOrigins, serveAdminCorsEnabled, servePublicCorsAllowedOrigins, servePublicCorsEnabled, strictSecurity, updatedAt, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -5747,12 +5859,14 @@ public String toString() { sb.append("class NormalizedProjectRevision {\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" disableAccountExperienceWelcomeScreen: ").append(toIndentedString(disableAccountExperienceWelcomeScreen)).append("\n"); + sb.append(" enableAxV2: ").append(toIndentedString(enableAxV2)).append("\n"); sb.append(" hydraOauth2AllowedTopLevelClaims: ").append(toIndentedString(hydraOauth2AllowedTopLevelClaims)).append("\n"); sb.append(" hydraOauth2ClientCredentialsDefaultGrantAllowedScope: ").append(toIndentedString(hydraOauth2ClientCredentialsDefaultGrantAllowedScope)).append("\n"); sb.append(" hydraOauth2ExcludeNotBeforeClaim: ").append(toIndentedString(hydraOauth2ExcludeNotBeforeClaim)).append("\n"); sb.append(" hydraOauth2GrantJwtIatOptional: ").append(toIndentedString(hydraOauth2GrantJwtIatOptional)).append("\n"); sb.append(" hydraOauth2GrantJwtJtiOptional: ").append(toIndentedString(hydraOauth2GrantJwtJtiOptional)).append("\n"); sb.append(" hydraOauth2GrantJwtMaxTtl: ").append(toIndentedString(hydraOauth2GrantJwtMaxTtl)).append("\n"); + sb.append(" hydraOauth2MirrorTopLevelClaims: ").append(toIndentedString(hydraOauth2MirrorTopLevelClaims)).append("\n"); sb.append(" hydraOauth2PkceEnforced: ").append(toIndentedString(hydraOauth2PkceEnforced)).append("\n"); sb.append(" hydraOauth2PkceEnforcedForPublicClients: ").append(toIndentedString(hydraOauth2PkceEnforcedForPublicClients)).append("\n"); sb.append(" hydraOauth2RefreshTokenHook: ").append(toIndentedString(hydraOauth2RefreshTokenHook)).append("\n"); @@ -5811,6 +5925,7 @@ public String toString() { sb.append(" kratosCourierTemplatesLoginCodeValidEmailBodyHtml: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidEmailBodyHtml)).append("\n"); sb.append(" kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext)).append("\n"); sb.append(" kratosCourierTemplatesLoginCodeValidEmailSubject: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidEmailSubject)).append("\n"); + sb.append(" kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext: ").append(toIndentedString(kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext)).append("\n"); sb.append(" kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml: ").append(toIndentedString(kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml)).append("\n"); sb.append(" kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext: ").append(toIndentedString(kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext)).append("\n"); sb.append(" kratosCourierTemplatesRecoveryCodeInvalidEmailSubject: ").append(toIndentedString(kratosCourierTemplatesRecoveryCodeInvalidEmailSubject)).append("\n"); @@ -5896,6 +6011,7 @@ public String toString() { sb.append(" kratosSelfserviceFlowsVerificationUse: ").append(toIndentedString(kratosSelfserviceFlowsVerificationUse)).append("\n"); sb.append(" kratosSelfserviceMethodsCodeConfigLifespan: ").append(toIndentedString(kratosSelfserviceMethodsCodeConfigLifespan)).append("\n"); sb.append(" kratosSelfserviceMethodsCodeEnabled: ").append(toIndentedString(kratosSelfserviceMethodsCodeEnabled)).append("\n"); + sb.append(" kratosSelfserviceMethodsCodeMfaEnabled: ").append(toIndentedString(kratosSelfserviceMethodsCodeMfaEnabled)).append("\n"); sb.append(" kratosSelfserviceMethodsCodePasswordlessEnabled: ").append(toIndentedString(kratosSelfserviceMethodsCodePasswordlessEnabled)).append("\n"); sb.append(" kratosSelfserviceMethodsLinkConfigBaseUrl: ").append(toIndentedString(kratosSelfserviceMethodsLinkConfigBaseUrl)).append("\n"); sb.append(" kratosSelfserviceMethodsLinkConfigLifespan: ").append(toIndentedString(kratosSelfserviceMethodsLinkConfigLifespan)).append("\n"); @@ -5958,12 +6074,14 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("created_at"); openapiFields.add("disable_account_experience_welcome_screen"); + openapiFields.add("enable_ax_v2"); openapiFields.add("hydra_oauth2_allowed_top_level_claims"); openapiFields.add("hydra_oauth2_client_credentials_default_grant_allowed_scope"); openapiFields.add("hydra_oauth2_exclude_not_before_claim"); openapiFields.add("hydra_oauth2_grant_jwt_iat_optional"); openapiFields.add("hydra_oauth2_grant_jwt_jti_optional"); openapiFields.add("hydra_oauth2_grant_jwt_max_ttl"); + openapiFields.add("hydra_oauth2_mirror_top_level_claims"); openapiFields.add("hydra_oauth2_pkce_enforced"); openapiFields.add("hydra_oauth2_pkce_enforced_for_public_clients"); openapiFields.add("hydra_oauth2_refresh_token_hook"); @@ -6022,6 +6140,7 @@ private String toIndentedString(Object o) { openapiFields.add("kratos_courier_templates_login_code_valid_email_body_html"); openapiFields.add("kratos_courier_templates_login_code_valid_email_body_plaintext"); openapiFields.add("kratos_courier_templates_login_code_valid_email_subject"); + openapiFields.add("kratos_courier_templates_login_code_valid_sms_body_plaintext"); openapiFields.add("kratos_courier_templates_recovery_code_invalid_email_body_html"); openapiFields.add("kratos_courier_templates_recovery_code_invalid_email_body_plaintext"); openapiFields.add("kratos_courier_templates_recovery_code_invalid_email_subject"); @@ -6107,6 +6226,7 @@ private String toIndentedString(Object o) { openapiFields.add("kratos_selfservice_flows_verification_use"); openapiFields.add("kratos_selfservice_methods_code_config_lifespan"); openapiFields.add("kratos_selfservice_methods_code_enabled"); + openapiFields.add("kratos_selfservice_methods_code_mfa_enabled"); openapiFields.add("kratos_selfservice_methods_code_passwordless_enabled"); openapiFields.add("kratos_selfservice_methods_link_config_base_url"); openapiFields.add("kratos_selfservice_methods_link_config_lifespan"); @@ -6361,6 +6481,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("kratos_courier_templates_login_code_valid_email_subject") != null && !jsonObj.get("kratos_courier_templates_login_code_valid_email_subject").isJsonNull()) && !jsonObj.get("kratos_courier_templates_login_code_valid_email_subject").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kratos_courier_templates_login_code_valid_email_subject` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kratos_courier_templates_login_code_valid_email_subject").toString())); } + if ((jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext") != null && !jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext").isJsonNull()) && !jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `kratos_courier_templates_login_code_valid_sms_body_plaintext` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kratos_courier_templates_login_code_valid_sms_body_plaintext").toString())); + } if ((jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html") != null && !jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html").isJsonNull()) && !jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `kratos_courier_templates_recovery_code_invalid_email_body_html` to be a primitive type in the JSON string but got `%s`", jsonObj.get("kratos_courier_templates_recovery_code_invalid_email_body_html").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionCourierChannel.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionCourierChannel.java index 2a1bdff66c0..c47a6bfac9c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionCourierChannel.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionCourierChannel.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * NormalizedProjectRevisionCourierChannel */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProjectRevisionCourierChannel { public static final String SERIALIZED_NAME_CHANNEL_ID = "channel_id"; @SerializedName(SERIALIZED_NAME_CHANNEL_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionHook.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionHook.java index 0c061350462..72eded9111b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionHook.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionHook.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * NormalizedProjectRevisionHook */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProjectRevisionHook { public static final String SERIALIZED_NAME_CONFIG_KEY = "config_key"; @SerializedName(SERIALIZED_NAME_CONFIG_KEY) diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionIdentitySchema.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionIdentitySchema.java index 2cd1480b7a5..e33fffc2bab 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionIdentitySchema.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionIdentitySchema.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * NormalizedProjectRevisionIdentitySchema */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProjectRevisionIdentitySchema { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProvider.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProvider.java index 1e9f4618bae..2868428e613 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProvider.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProvider.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * NormalizedProjectRevisionThirdPartyProvider */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProjectRevisionThirdPartyProvider { public static final String SERIALIZED_NAME_ADDITIONAL_ID_TOKEN_AUDIENCES = "additional_id_token_audiences"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_ID_TOKEN_AUDIENCES) @@ -78,6 +78,10 @@ public class NormalizedProjectRevisionThirdPartyProvider { @SerializedName(SERIALIZED_NAME_AZURE_TENANT) private String azureTenant; + public static final String SERIALIZED_NAME_CLAIMS_SOURCE = "claims_source"; + @SerializedName(SERIALIZED_NAME_CLAIMS_SOURCE) + private String claimsSource; + public static final String SERIALIZED_NAME_CLIENT_ID = "client_id"; @SerializedName(SERIALIZED_NAME_CLIENT_ID) private String clientId; @@ -352,6 +356,29 @@ public void setAzureTenant(String azureTenant) { } + public NormalizedProjectRevisionThirdPartyProvider claimsSource(String claimsSource) { + + this.claimsSource = claimsSource; + return this; + } + + /** + * Get claimsSource + * @return claimsSource + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getClaimsSource() { + return claimsSource; + } + + + public void setClaimsSource(String claimsSource) { + this.claimsSource = claimsSource; + } + + public NormalizedProjectRevisionThirdPartyProvider clientId(String clientId) { this.clientId = clientId; @@ -793,6 +820,7 @@ public boolean equals(Object o) { Objects.equals(this.appleTeamId, normalizedProjectRevisionThirdPartyProvider.appleTeamId) && Objects.equals(this.authUrl, normalizedProjectRevisionThirdPartyProvider.authUrl) && Objects.equals(this.azureTenant, normalizedProjectRevisionThirdPartyProvider.azureTenant) && + Objects.equals(this.claimsSource, normalizedProjectRevisionThirdPartyProvider.claimsSource) && Objects.equals(this.clientId, normalizedProjectRevisionThirdPartyProvider.clientId) && Objects.equals(this.clientSecret, normalizedProjectRevisionThirdPartyProvider.clientSecret) && Objects.equals(this.createdAt, normalizedProjectRevisionThirdPartyProvider.createdAt) && @@ -819,7 +847,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(additionalIdTokenAudiences, applePrivateKey, applePrivateKeyId, appleTeamId, authUrl, azureTenant, clientId, clientSecret, createdAt, id, issuerUrl, label, mapperUrl, organizationId, projectRevisionId, provider, providerId, requestedClaims, scope, state, subjectSource, tokenUrl, updatedAt, additionalProperties); + return Objects.hash(additionalIdTokenAudiences, applePrivateKey, applePrivateKeyId, appleTeamId, authUrl, azureTenant, claimsSource, clientId, clientSecret, createdAt, id, issuerUrl, label, mapperUrl, organizationId, projectRevisionId, provider, providerId, requestedClaims, scope, state, subjectSource, tokenUrl, updatedAt, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -839,6 +867,7 @@ public String toString() { sb.append(" appleTeamId: ").append(toIndentedString(appleTeamId)).append("\n"); sb.append(" authUrl: ").append(toIndentedString(authUrl)).append("\n"); sb.append(" azureTenant: ").append(toIndentedString(azureTenant)).append("\n"); + sb.append(" claimsSource: ").append(toIndentedString(claimsSource)).append("\n"); sb.append(" clientId: ").append(toIndentedString(clientId)).append("\n"); sb.append(" clientSecret: ").append(toIndentedString(clientSecret)).append("\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); @@ -885,6 +914,7 @@ private String toIndentedString(Object o) { openapiFields.add("apple_team_id"); openapiFields.add("auth_url"); openapiFields.add("azure_tenant"); + openapiFields.add("claims_source"); openapiFields.add("client_id"); openapiFields.add("client_secret"); openapiFields.add("created_at"); @@ -938,6 +968,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("azure_tenant") != null && !jsonObj.get("azure_tenant").isJsonNull()) && !jsonObj.get("azure_tenant").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `azure_tenant` to be a primitive type in the JSON string but got `%s`", jsonObj.get("azure_tenant").toString())); } + if ((jsonObj.get("claims_source") != null && !jsonObj.get("claims_source").isJsonNull()) && !jsonObj.get("claims_source").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `claims_source` to be a primitive type in the JSON string but got `%s`", jsonObj.get("claims_source").toString())); + } if ((jsonObj.get("client_id") != null && !jsonObj.get("client_id").isJsonNull()) && !jsonObj.get("client_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `client_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("client_id").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplate.java b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplate.java index 0630578a855..9095ee178d1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplate.java +++ b/clients/client/java/src/main/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplate.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * NormalizedProjectRevisionTokenizerTemplate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class NormalizedProjectRevisionTokenizerTemplate { public static final String SERIALIZED_NAME_CLAIMS_MAPPER_URL = "claims_mapper_url"; @SerializedName(SERIALIZED_NAME_CLAIMS_MAPPER_URL) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2Client.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2Client.java index 391e532ee06..ee6aae22529 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2Client.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2Client.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. */ @ApiModel(description = "OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2Client { public static final String SERIALIZED_NAME_ACCESS_TOKEN_STRATEGY = "access_token_strategy"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN_STRATEGY) @@ -219,6 +219,10 @@ public class OAuth2Client { @SerializedName(SERIALIZED_NAME_SKIP_CONSENT) private Boolean skipConsent; + public static final String SERIALIZED_NAME_SKIP_LOGOUT_CONSENT = "skip_logout_consent"; + @SerializedName(SERIALIZED_NAME_SKIP_LOGOUT_CONSENT) + private Boolean skipLogoutConsent; + public static final String SERIALIZED_NAME_SUBJECT_TYPE = "subject_type"; @SerializedName(SERIALIZED_NAME_SUBJECT_TYPE) private String subjectType; @@ -1253,6 +1257,29 @@ public void setSkipConsent(Boolean skipConsent) { } + public OAuth2Client skipLogoutConsent(Boolean skipLogoutConsent) { + + this.skipLogoutConsent = skipLogoutConsent; + return this; + } + + /** + * SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + * @return skipLogoutConsent + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.") + + public Boolean getSkipLogoutConsent() { + return skipLogoutConsent; + } + + + public void setSkipLogoutConsent(Boolean skipLogoutConsent) { + this.skipLogoutConsent = skipLogoutConsent; + } + + public OAuth2Client subjectType(String subjectType) { this.subjectType = subjectType; @@ -1486,6 +1513,7 @@ public boolean equals(Object o) { Objects.equals(this.scope, oAuth2Client.scope) && Objects.equals(this.sectorIdentifierUri, oAuth2Client.sectorIdentifierUri) && Objects.equals(this.skipConsent, oAuth2Client.skipConsent) && + Objects.equals(this.skipLogoutConsent, oAuth2Client.skipLogoutConsent) && Objects.equals(this.subjectType, oAuth2Client.subjectType) && Objects.equals(this.tokenEndpointAuthMethod, oAuth2Client.tokenEndpointAuthMethod) && Objects.equals(this.tokenEndpointAuthSigningAlg, oAuth2Client.tokenEndpointAuthSigningAlg) && @@ -1501,7 +1529,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accessTokenStrategy, allowedCorsOrigins, audience, authorizationCodeGrantAccessTokenLifespan, authorizationCodeGrantIdTokenLifespan, authorizationCodeGrantRefreshTokenLifespan, backchannelLogoutSessionRequired, backchannelLogoutUri, clientCredentialsGrantAccessTokenLifespan, clientId, clientName, clientSecret, clientSecretExpiresAt, clientUri, contacts, createdAt, frontchannelLogoutSessionRequired, frontchannelLogoutUri, grantTypes, implicitGrantAccessTokenLifespan, implicitGrantIdTokenLifespan, jwks, jwksUri, jwtBearerGrantAccessTokenLifespan, logoUri, metadata, owner, policyUri, postLogoutRedirectUris, redirectUris, refreshTokenGrantAccessTokenLifespan, refreshTokenGrantIdTokenLifespan, refreshTokenGrantRefreshTokenLifespan, registrationAccessToken, registrationClientUri, requestObjectSigningAlg, requestUris, responseTypes, scope, sectorIdentifierUri, skipConsent, subjectType, tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tosUri, updatedAt, userinfoSignedResponseAlg, additionalProperties); + return Objects.hash(accessTokenStrategy, allowedCorsOrigins, audience, authorizationCodeGrantAccessTokenLifespan, authorizationCodeGrantIdTokenLifespan, authorizationCodeGrantRefreshTokenLifespan, backchannelLogoutSessionRequired, backchannelLogoutUri, clientCredentialsGrantAccessTokenLifespan, clientId, clientName, clientSecret, clientSecretExpiresAt, clientUri, contacts, createdAt, frontchannelLogoutSessionRequired, frontchannelLogoutUri, grantTypes, implicitGrantAccessTokenLifespan, implicitGrantIdTokenLifespan, jwks, jwksUri, jwtBearerGrantAccessTokenLifespan, logoUri, metadata, owner, policyUri, postLogoutRedirectUris, redirectUris, refreshTokenGrantAccessTokenLifespan, refreshTokenGrantIdTokenLifespan, refreshTokenGrantRefreshTokenLifespan, registrationAccessToken, registrationClientUri, requestObjectSigningAlg, requestUris, responseTypes, scope, sectorIdentifierUri, skipConsent, skipLogoutConsent, subjectType, tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tosUri, updatedAt, userinfoSignedResponseAlg, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1556,6 +1584,7 @@ public String toString() { sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" sectorIdentifierUri: ").append(toIndentedString(sectorIdentifierUri)).append("\n"); sb.append(" skipConsent: ").append(toIndentedString(skipConsent)).append("\n"); + sb.append(" skipLogoutConsent: ").append(toIndentedString(skipLogoutConsent)).append("\n"); sb.append(" subjectType: ").append(toIndentedString(subjectType)).append("\n"); sb.append(" tokenEndpointAuthMethod: ").append(toIndentedString(tokenEndpointAuthMethod)).append("\n"); sb.append(" tokenEndpointAuthSigningAlg: ").append(toIndentedString(tokenEndpointAuthSigningAlg)).append("\n"); @@ -1626,6 +1655,7 @@ private String toIndentedString(Object o) { openapiFields.add("scope"); openapiFields.add("sector_identifier_uri"); openapiFields.add("skip_consent"); + openapiFields.add("skip_logout_consent"); openapiFields.add("subject_type"); openapiFields.add("token_endpoint_auth_method"); openapiFields.add("token_endpoint_auth_signing_alg"); diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2ClientTokenLifespans.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2ClientTokenLifespans.java index 3e89e8bdbf4..cd91552c807 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2ClientTokenLifespans.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2ClientTokenLifespans.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Lifespans of different token types issued for this OAuth 2.0 Client. */ @ApiModel(description = "Lifespans of different token types issued for this OAuth 2.0 Client.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2ClientTokenLifespans { public static final String SERIALIZED_NAME_AUTHORIZATION_CODE_GRANT_ACCESS_TOKEN_LIFESPAN = "authorization_code_grant_access_token_lifespan"; @SerializedName(SERIALIZED_NAME_AUTHORIZATION_CODE_GRANT_ACCESS_TOKEN_LIFESPAN) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequest.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequest.java index cd4d8164b12..11ac00cf046 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequest.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * OAuth2ConsentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2ConsentRequest { public static final String SERIALIZED_NAME_ACR = "acr"; @SerializedName(SERIALIZED_NAME_ACR) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContext.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContext.java index 4f9d4a5c0b1..4b2809e1084 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContext.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContext.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * OAuth2ConsentRequestOpenIDConnectContext */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2ConsentRequestOpenIDConnectContext { public static final String SERIALIZED_NAME_ACR_VALUES = "acr_values"; @SerializedName(SERIALIZED_NAME_ACR_VALUES) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSession.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSession.java index 7fe730391f2..77a028d4cab 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSession.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSession.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -55,12 +55,16 @@ * A completed OAuth 2.0 Consent Session. */ @ApiModel(description = "A completed OAuth 2.0 Consent Session.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2ConsentSession { public static final String SERIALIZED_NAME_CONSENT_REQUEST = "consent_request"; @SerializedName(SERIALIZED_NAME_CONSENT_REQUEST) private OAuth2ConsentRequest consentRequest; + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private Object context; + public static final String SERIALIZED_NAME_EXPIRES_AT = "expires_at"; @SerializedName(SERIALIZED_NAME_EXPIRES_AT) private OAuth2ConsentSessionExpiresAt expiresAt; @@ -115,6 +119,29 @@ public void setConsentRequest(OAuth2ConsentRequest consentRequest) { } + public OAuth2ConsentSession context(Object context) { + + this.context = context; + return this; + } + + /** + * Get context + * @return context + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getContext() { + return context; + } + + + public void setContext(Object context) { + this.context = context; + } + + public OAuth2ConsentSession expiresAt(OAuth2ConsentSessionExpiresAt expiresAt) { this.expiresAt = expiresAt; @@ -347,6 +374,7 @@ public boolean equals(Object o) { } OAuth2ConsentSession oAuth2ConsentSession = (OAuth2ConsentSession) o; return Objects.equals(this.consentRequest, oAuth2ConsentSession.consentRequest) && + Objects.equals(this.context, oAuth2ConsentSession.context) && Objects.equals(this.expiresAt, oAuth2ConsentSession.expiresAt) && Objects.equals(this.grantAccessTokenAudience, oAuth2ConsentSession.grantAccessTokenAudience) && Objects.equals(this.grantScope, oAuth2ConsentSession.grantScope) && @@ -359,7 +387,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(consentRequest, expiresAt, grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); + return Objects.hash(consentRequest, context, expiresAt, grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); } @Override @@ -367,6 +395,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OAuth2ConsentSession {\n"); sb.append(" consentRequest: ").append(toIndentedString(consentRequest)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" grantAccessTokenAudience: ").append(toIndentedString(grantAccessTokenAudience)).append("\n"); sb.append(" grantScope: ").append(toIndentedString(grantScope)).append("\n"); @@ -398,6 +427,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("consent_request"); + openapiFields.add("context"); openapiFields.add("expires_at"); openapiFields.add("grant_access_token_audience"); openapiFields.add("grant_scope"); diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSessionExpiresAt.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSessionExpiresAt.java index b8688b70797..692d78e92d2 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSessionExpiresAt.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2ConsentSessionExpiresAt.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * OAuth2ConsentSessionExpiresAt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2ConsentSessionExpiresAt { public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2LoginRequest.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2LoginRequest.java index 64101b50ea1..cfe6e2a9b01 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2LoginRequest.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2LoginRequest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * OAuth2LoginRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2LoginRequest { public static final String SERIALIZED_NAME_CHALLENGE = "challenge"; @SerializedName(SERIALIZED_NAME_CHALLENGE) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2LogoutRequest.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2LogoutRequest.java index cf59c60be8a..848a790fef2 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2LogoutRequest.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2LogoutRequest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * OAuth2LogoutRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2LogoutRequest { public static final String SERIALIZED_NAME_CHALLENGE = "challenge"; @SerializedName(SERIALIZED_NAME_CHALLENGE) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2RedirectTo.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2RedirectTo.java index c1dcb682595..5fe118e19d2 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2RedirectTo.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2RedirectTo.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Contains a redirect URL used to complete a login, consent, or logout request. */ @ApiModel(description = "Contains a redirect URL used to complete a login, consent, or logout request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2RedirectTo { public static final String SERIALIZED_NAME_REDIRECT_TO = "redirect_to"; @SerializedName(SERIALIZED_NAME_REDIRECT_TO) diff --git a/clients/client/java/src/main/java/sh/ory/model/OAuth2TokenExchange.java b/clients/client/java/src/main/java/sh/ory/model/OAuth2TokenExchange.java index a8ed2616962..bc7c80e6478 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OAuth2TokenExchange.java +++ b/clients/client/java/src/main/java/sh/ory/model/OAuth2TokenExchange.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * OAuth2 Token Exchange Result */ @ApiModel(description = "OAuth2 Token Exchange Result") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OAuth2TokenExchange { public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/OidcConfiguration.java b/clients/client/java/src/main/java/sh/ory/model/OidcConfiguration.java index fe4afefc5ad..4e4ec91aae3 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OidcConfiguration.java +++ b/clients/client/java/src/main/java/sh/ory/model/OidcConfiguration.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others. */ @ApiModel(description = "Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OidcConfiguration { public static final String SERIALIZED_NAME_AUTHORIZATION_ENDPOINT = "authorization_endpoint"; @SerializedName(SERIALIZED_NAME_AUTHORIZATION_ENDPOINT) diff --git a/clients/client/java/src/main/java/sh/ory/model/OidcUserInfo.java b/clients/client/java/src/main/java/sh/ory/model/OidcUserInfo.java index 3cedd579753..73f61dd75fb 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OidcUserInfo.java +++ b/clients/client/java/src/main/java/sh/ory/model/OidcUserInfo.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * OpenID Connect Userinfo */ @ApiModel(description = "OpenID Connect Userinfo") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OidcUserInfo { public static final String SERIALIZED_NAME_BIRTHDATE = "birthdate"; @SerializedName(SERIALIZED_NAME_BIRTHDATE) diff --git a/clients/client/java/src/main/java/sh/ory/model/Organization.java b/clients/client/java/src/main/java/sh/ory/model/Organization.java index 70c49cb2e6a..94a2268a9b5 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Organization.java +++ b/clients/client/java/src/main/java/sh/ory/model/Organization.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * B2B SSO Organization */ @ApiModel(description = "B2B SSO Organization") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Organization { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/OrganizationBody.java b/clients/client/java/src/main/java/sh/ory/model/OrganizationBody.java index 1b842102ce6..f29c4d89f36 100644 --- a/clients/client/java/src/main/java/sh/ory/model/OrganizationBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/OrganizationBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Create B2B SSO Organization Request Body */ @ApiModel(description = "Create B2B SSO Organization Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class OrganizationBody { public static final String SERIALIZED_NAME_DOMAINS = "domains"; @SerializedName(SERIALIZED_NAME_DOMAINS) diff --git a/clients/client/java/src/main/java/sh/ory/model/Pagination.java b/clients/client/java/src/main/java/sh/ory/model/Pagination.java index 2d36d6ed5df..1acea61e62d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Pagination.java +++ b/clients/client/java/src/main/java/sh/ory/model/Pagination.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Pagination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Pagination { public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/clients/client/java/src/main/java/sh/ory/model/PaginationHeaders.java b/clients/client/java/src/main/java/sh/ory/model/PaginationHeaders.java index 7472c72adba..d29794d25d6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/PaginationHeaders.java +++ b/clients/client/java/src/main/java/sh/ory/model/PaginationHeaders.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * PaginationHeaders */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class PaginationHeaders { public static final String SERIALIZED_NAME_LINK = "link"; @SerializedName(SERIALIZED_NAME_LINK) diff --git a/clients/client/java/src/main/java/sh/ory/model/ParseError.java b/clients/client/java/src/main/java/sh/ory/model/ParseError.java index 95c02a714dd..de29d5f85aa 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ParseError.java +++ b/clients/client/java/src/main/java/sh/ory/model/ParseError.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * ParseError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ParseError { public static final String SERIALIZED_NAME_END = "end"; @SerializedName(SERIALIZED_NAME_END) diff --git a/clients/client/java/src/main/java/sh/ory/model/PatchIdentitiesBody.java b/clients/client/java/src/main/java/sh/ory/model/PatchIdentitiesBody.java index cffe6e1fe2d..556d0c1757d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/PatchIdentitiesBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/PatchIdentitiesBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Patch Identities Body */ @ApiModel(description = "Patch Identities Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class PatchIdentitiesBody { public static final String SERIALIZED_NAME_IDENTITIES = "identities"; @SerializedName(SERIALIZED_NAME_IDENTITIES) diff --git a/clients/client/java/src/main/java/sh/ory/model/PerformNativeLogoutBody.java b/clients/client/java/src/main/java/sh/ory/model/PerformNativeLogoutBody.java index f832e0e1672..70a0d8b0643 100644 --- a/clients/client/java/src/main/java/sh/ory/model/PerformNativeLogoutBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/PerformNativeLogoutBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Perform Native Logout Request Body */ @ApiModel(description = "Perform Native Logout Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class PerformNativeLogoutBody { public static final String SERIALIZED_NAME_SESSION_TOKEN = "session_token"; @SerializedName(SERIALIZED_NAME_SESSION_TOKEN) diff --git a/clients/kratos/java/src/main/java/sh/ory/kratos/model/Pagination.java b/clients/client/java/src/main/java/sh/ory/model/PermissionsOnWorkpaceResponse.java similarity index 65% rename from clients/kratos/java/src/main/java/sh/ory/kratos/model/Pagination.java rename to clients/client/java/src/main/java/sh/ory/model/PermissionsOnWorkpaceResponse.java index c3f3a486655..8f7e3b73097 100644 --- a/clients/kratos/java/src/main/java/sh/ory/kratos/model/Pagination.java +++ b/clients/client/java/src/main/java/sh/ory/model/PermissionsOnWorkpaceResponse.java @@ -1,9 +1,9 @@ /* - * Ory Identities API - * 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. + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.0.0 - * Contact: office@ory.sh + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -11,7 +11,7 @@ */ -package sh.ory.kratos.model; +package sh.ory.model; import java.util.Objects; import java.util.Arrays; @@ -23,6 +23,8 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; +import java.util.HashMap; +import java.util.Map; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -43,70 +45,49 @@ import java.util.Map.Entry; import java.util.Set; -import sh.ory.kratos.JSON; +import sh.ory.JSON; /** - * Pagination + * Get Permissions on Project Request Parameters */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-31T08:34:19.158658725Z[Etc/UTC]") -public class Pagination { - public static final String SERIALIZED_NAME_PAGE = "page"; - @SerializedName(SERIALIZED_NAME_PAGE) - private Long page = 1l; - - public static final String SERIALIZED_NAME_PER_PAGE = "per_page"; - @SerializedName(SERIALIZED_NAME_PER_PAGE) - private Long perPage = 250l; - - public Pagination() { +@ApiModel(description = "Get Permissions on Project Request Parameters") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class PermissionsOnWorkpaceResponse { + public static final String SERIALIZED_NAME_PERMISSIONS = "permissions"; + @SerializedName(SERIALIZED_NAME_PERMISSIONS) + private Map permissions = null; + + public PermissionsOnWorkpaceResponse() { } - public Pagination page(Long page) { + public PermissionsOnWorkpaceResponse permissions(Map permissions) { - this.page = page; + this.permissions = permissions; return this; } - /** - * Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. - * minimum: 1 - * @return page - **/ - @javax.annotation.Nullable - @ApiModelProperty(value = "Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist.") - - public Long getPage() { - return page; - } - - - public void setPage(Long page) { - this.page = page; - } - - - public Pagination perPage(Long perPage) { - - this.perPage = perPage; + public PermissionsOnWorkpaceResponse putPermissionsItem(String key, Boolean permissionsItem) { + if (this.permissions == null) { + this.permissions = new HashMap<>(); + } + this.permissions.put(key, permissionsItem); return this; } /** - * Items per Page This is the number of items per page. - * minimum: 1 - * maximum: 1000 - * @return perPage + * Get permissions + * @return permissions **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Items per Page This is the number of items per page.") + @ApiModelProperty(value = "") - public Long getPerPage() { - return perPage; + public Map getPermissions() { + return permissions; } - public void setPerPage(Long perPage) { - this.perPage = perPage; + public void setPermissions(Map permissions) { + this.permissions = permissions; } /** @@ -122,9 +103,9 @@ public void setPerPage(Long perPage) { * * @param key name of the property * @param value value of the property - * @return the Pagination instance itself + * @return the PermissionsOnWorkpaceResponse instance itself */ - public Pagination putAdditionalProperty(String key, Object value) { + public PermissionsOnWorkpaceResponse putAdditionalProperty(String key, Object value) { if (this.additionalProperties == null) { this.additionalProperties = new HashMap(); } @@ -163,23 +144,21 @@ public boolean equals(Object o) { if (o == null || getClass() != o.getClass()) { return false; } - Pagination pagination = (Pagination) o; - return Objects.equals(this.page, pagination.page) && - Objects.equals(this.perPage, pagination.perPage)&& - Objects.equals(this.additionalProperties, pagination.additionalProperties); + PermissionsOnWorkpaceResponse permissionsOnWorkpaceResponse = (PermissionsOnWorkpaceResponse) o; + return Objects.equals(this.permissions, permissionsOnWorkpaceResponse.permissions)&& + Objects.equals(this.additionalProperties, permissionsOnWorkpaceResponse.additionalProperties); } @Override public int hashCode() { - return Objects.hash(page, perPage, additionalProperties); + return Objects.hash(permissions, additionalProperties); } @Override public String toString() { StringBuilder sb = new StringBuilder(); - sb.append("class Pagination {\n"); - sb.append(" page: ").append(toIndentedString(page)).append("\n"); - sb.append(" perPage: ").append(toIndentedString(perPage)).append("\n"); + sb.append("class PermissionsOnWorkpaceResponse {\n"); + sb.append(" permissions: ").append(toIndentedString(permissions)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -203,8 +182,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); - openapiFields.add("page"); - openapiFields.add("per_page"); + openapiFields.add("permissions"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); @@ -214,12 +192,12 @@ private String toIndentedString(Object o) { * Validates the JSON Object and throws an exception if issues found * * @param jsonObj JSON Object - * @throws IOException if the JSON Object is invalid with respect to Pagination + * @throws IOException if the JSON Object is invalid with respect to PermissionsOnWorkpaceResponse */ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (jsonObj == null) { - if (!Pagination.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null - throw new IllegalArgumentException(String.format("The required field(s) %s in Pagination is not found in the empty JSON string", Pagination.openapiRequiredFields.toString())); + if (!PermissionsOnWorkpaceResponse.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in PermissionsOnWorkpaceResponse is not found in the empty JSON string", PermissionsOnWorkpaceResponse.openapiRequiredFields.toString())); } } } @@ -228,16 +206,16 @@ public static class CustomTypeAdapterFactory implements TypeAdapterFactory { @SuppressWarnings("unchecked") @Override public TypeAdapter create(Gson gson, TypeToken type) { - if (!Pagination.class.isAssignableFrom(type.getRawType())) { - return null; // this class only serializes 'Pagination' and its subtypes + if (!PermissionsOnWorkpaceResponse.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'PermissionsOnWorkpaceResponse' and its subtypes } final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); - final TypeAdapter thisAdapter - = gson.getDelegateAdapter(this, TypeToken.get(Pagination.class)); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(PermissionsOnWorkpaceResponse.class)); - return (TypeAdapter) new TypeAdapter() { + return (TypeAdapter) new TypeAdapter() { @Override - public void write(JsonWriter out, Pagination value) throws IOException { + public void write(JsonWriter out, PermissionsOnWorkpaceResponse value) throws IOException { JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); obj.remove("additionalProperties"); // serialize additonal properties @@ -260,11 +238,11 @@ else if (entry.getValue() instanceof Character) } @Override - public Pagination read(JsonReader in) throws IOException { + public PermissionsOnWorkpaceResponse read(JsonReader in) throws IOException { JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); validateJsonObject(jsonObj); // store additional fields in the deserialized instance - Pagination instance = thisAdapter.fromJsonTree(jsonObj); + PermissionsOnWorkpaceResponse instance = thisAdapter.fromJsonTree(jsonObj); for (Map.Entry entry : jsonObj.entrySet()) { if (!openapiFields.contains(entry.getKey())) { if (entry.getValue().isJsonPrimitive()) { // primitive type @@ -291,18 +269,18 @@ else if (entry.getValue().getAsJsonPrimitive().isBoolean()) } /** - * Create an instance of Pagination given an JSON string + * Create an instance of PermissionsOnWorkpaceResponse given an JSON string * * @param jsonString JSON string - * @return An instance of Pagination - * @throws IOException if the JSON string is invalid with respect to Pagination + * @return An instance of PermissionsOnWorkpaceResponse + * @throws IOException if the JSON string is invalid with respect to PermissionsOnWorkpaceResponse */ - public static Pagination fromJson(String jsonString) throws IOException { - return JSON.getGson().fromJson(jsonString, Pagination.class); + public static PermissionsOnWorkpaceResponse fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, PermissionsOnWorkpaceResponse.class); } /** - * Convert an instance of Pagination to an JSON string + * Convert an instance of PermissionsOnWorkpaceResponse to an JSON string * * @return JSON string */ diff --git a/clients/client/java/src/main/java/sh/ory/model/Plan.java b/clients/client/java/src/main/java/sh/ory/model/Plan.java index 14f625c0ab6..805039ac8f1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Plan.java +++ b/clients/client/java/src/main/java/sh/ory/model/Plan.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Plan */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Plan { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/clients/client/java/src/main/java/sh/ory/model/PlanDetails.java b/clients/client/java/src/main/java/sh/ory/model/PlanDetails.java index ce6fd913562..6426634a59f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/PlanDetails.java +++ b/clients/client/java/src/main/java/sh/ory/model/PlanDetails.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * PlanDetails */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class PlanDetails { public static final String SERIALIZED_NAME_BASE_FEE_MONTHLY = "base_fee_monthly"; @SerializedName(SERIALIZED_NAME_BASE_FEE_MONTHLY) @@ -188,11 +188,11 @@ public PlanDetails putFeaturesItem(String key, GenericUsage featuresItem) { } /** - * Features are the feature definitions included in the plan. + * Get features * @return features **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "Features are the feature definitions included in the plan.") + @ApiModelProperty(required = true, value = "") public Map getFeatures() { return features; diff --git a/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionBody.java b/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionBody.java index 56b56d346a1..ae1540a2898 100644 --- a/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Check Permission using Post Request Body */ @ApiModel(description = "Check Permission using Post Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class PostCheckPermissionBody { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionOrErrorBody.java b/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionOrErrorBody.java index 60e0b836c7b..f97502c017a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionOrErrorBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/PostCheckPermissionOrErrorBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Post Check Permission Or Error Body */ @ApiModel(description = "Post Check Permission Or Error Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class PostCheckPermissionOrErrorBody { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/clients/client/java/src/main/java/sh/ory/model/Project.java b/clients/client/java/src/main/java/sh/ory/model/Project.java index b1c2751f80a..8c3cf70628a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Project.java +++ b/clients/client/java/src/main/java/sh/ory/model/Project.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * Project */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Project { public static final String SERIALIZED_NAME_CORS_ADMIN = "cors_admin"; @SerializedName(SERIALIZED_NAME_CORS_ADMIN) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectApiKey.java b/clients/client/java/src/main/java/sh/ory/model/ProjectApiKey.java index 07fe444ecd9..e1aa1315f2b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectApiKey.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectApiKey.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * ProjectApiKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectApiKey { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectBranding.java b/clients/client/java/src/main/java/sh/ory/model/ProjectBranding.java index b9206642a5a..9520e2be91a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectBranding.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectBranding.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * ProjectBranding */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectBranding { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingColors.java b/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingColors.java index c6f30c37b23..0d8ae270353 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingColors.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingColors.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ProjectBrandingColors */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectBrandingColors { public static final String SERIALIZED_NAME_ACCENT_DEFAULT_COLOR = "accent_default_color"; @SerializedName(SERIALIZED_NAME_ACCENT_DEFAULT_COLOR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingTheme.java b/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingTheme.java index c0e7e347d77..4f8ece8d313 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingTheme.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectBrandingTheme.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * ProjectBrandingTheme */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectBrandingTheme { public static final String SERIALIZED_NAME_ACCENT_DEFAULT_COLOR = "accent_default_color"; @SerializedName(SERIALIZED_NAME_ACCENT_DEFAULT_COLOR) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectCors.java b/clients/client/java/src/main/java/sh/ory/model/ProjectCors.java index 8298f475658..018eb045319 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectCors.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectCors.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * ProjectCors */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectCors { public static final String SERIALIZED_NAME_ENABLED = "enabled"; @SerializedName(SERIALIZED_NAME_ENABLED) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectEventsDatapoint.java b/clients/client/java/src/main/java/sh/ory/model/ProjectEventsDatapoint.java index d1fe626db7d..b02e1a653e8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectEventsDatapoint.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectEventsDatapoint.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * ProjectEventsDatapoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectEventsDatapoint { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectHost.java b/clients/client/java/src/main/java/sh/ory/model/ProjectHost.java index 8c06087c137..328cb5766c8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectHost.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectHost.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ProjectHost */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectHost { public static final String SERIALIZED_NAME_HOST = "host"; @SerializedName(SERIALIZED_NAME_HOST) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectMember.java b/clients/client/java/src/main/java/sh/ory/model/ProjectMember.java new file mode 100644 index 00000000000..4ea2d6c2dd3 --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectMember.java @@ -0,0 +1,393 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * ProjectMember + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class ProjectMember { + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + private String email; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_ROLE = "role"; + @SerializedName(SERIALIZED_NAME_ROLE) + private String role; + + public ProjectMember() { + } + + public ProjectMember email(String email) { + + this.email = email; + return this; + } + + /** + * Get email + * @return email + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getEmail() { + return email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + public ProjectMember id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public ProjectMember name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public ProjectMember role(String role) { + + this.role = role; + return this; + } + + /** + * Get role + * @return role + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getRole() { + return role; + } + + + public void setRole(String role) { + this.role = role; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the ProjectMember instance itself + */ + public ProjectMember putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProjectMember projectMember = (ProjectMember) o; + return Objects.equals(this.email, projectMember.email) && + Objects.equals(this.id, projectMember.id) && + Objects.equals(this.name, projectMember.name) && + Objects.equals(this.role, projectMember.role)&& + Objects.equals(this.additionalProperties, projectMember.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(email, id, name, role, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProjectMember {\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" role: ").append(toIndentedString(role)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("email"); + openapiFields.add("id"); + openapiFields.add("name"); + openapiFields.add("role"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("email"); + openapiRequiredFields.add("id"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("role"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to ProjectMember + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!ProjectMember.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in ProjectMember is not found in the empty JSON string", ProjectMember.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : ProjectMember.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("email").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `email` to be a primitive type in the JSON string but got `%s`", jsonObj.get("email").toString())); + } + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if (!jsonObj.get("role").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `role` to be a primitive type in the JSON string but got `%s`", jsonObj.get("role").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!ProjectMember.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'ProjectMember' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(ProjectMember.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, ProjectMember value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public ProjectMember read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + ProjectMember instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of ProjectMember given an JSON string + * + * @param jsonString JSON string + * @return An instance of ProjectMember + * @throws IOException if the JSON string is invalid with respect to ProjectMember + */ + public static ProjectMember fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, ProjectMember.class); + } + + /** + * Convert an instance of ProjectMember to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectMetadata.java b/clients/client/java/src/main/java/sh/ory/model/ProjectMetadata.java index 664c1003c7e..76fb098af03 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectMetadata.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectMetadata.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,12 +52,63 @@ /** * ProjectMetadata */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectMetadata { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) private OffsetDateTime createdAt; + /** + * The environment of the project. prod Production dev Development + */ + @JsonAdapter(EnvironmentEnum.Adapter.class) + public enum EnvironmentEnum { + PROD("prod"), + + DEV("dev"); + + private String value; + + EnvironmentEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static EnvironmentEnum fromValue(String value) { + for (EnvironmentEnum b : EnvironmentEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final EnvironmentEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public EnvironmentEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return EnvironmentEnum.fromValue(value); + } + } + } + + public static final String SERIALIZED_NAME_ENVIRONMENT = "environment"; + @SerializedName(SERIALIZED_NAME_ENVIRONMENT) + private EnvironmentEnum environment; + public static final String SERIALIZED_NAME_HOSTS = "hosts"; @SerializedName(SERIALIZED_NAME_HOSTS) private List hosts = new ArrayList<>(); @@ -179,6 +230,29 @@ public void setCreatedAt(OffsetDateTime createdAt) { } + public ProjectMetadata environment(EnvironmentEnum environment) { + + this.environment = environment; + return this; + } + + /** + * The environment of the project. prod Production dev Development + * @return environment + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The environment of the project. prod Production dev Development") + + public EnvironmentEnum getEnvironment() { + return environment; + } + + + public void setEnvironment(EnvironmentEnum environment) { + this.environment = environment; + } + + public ProjectMetadata hosts(List hosts) { this.hosts = hosts; @@ -428,6 +502,7 @@ public boolean equals(Object o) { } ProjectMetadata projectMetadata = (ProjectMetadata) o; return Objects.equals(this.createdAt, projectMetadata.createdAt) && + Objects.equals(this.environment, projectMetadata.environment) && Objects.equals(this.hosts, projectMetadata.hosts) && Objects.equals(this.id, projectMetadata.id) && Objects.equals(this.name, projectMetadata.name) && @@ -446,7 +521,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(createdAt, hosts, id, name, slug, state, subscriptionId, subscriptionPlan, updatedAt, workspaceId, additionalProperties); + return Objects.hash(createdAt, environment, hosts, id, name, slug, state, subscriptionId, subscriptionPlan, updatedAt, workspaceId, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -461,6 +536,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class ProjectMetadata {\n"); sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" environment: ").append(toIndentedString(environment)).append("\n"); sb.append(" hosts: ").append(toIndentedString(hosts)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); @@ -494,6 +570,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("created_at"); + openapiFields.add("environment"); openapiFields.add("hosts"); openapiFields.add("id"); openapiFields.add("name"); @@ -507,6 +584,7 @@ private String toIndentedString(Object o) { // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); openapiRequiredFields.add("created_at"); + openapiRequiredFields.add("environment"); openapiRequiredFields.add("hosts"); openapiRequiredFields.add("id"); openapiRequiredFields.add("name"); @@ -533,6 +611,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } + if (!jsonObj.get("environment").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `environment` to be a primitive type in the JSON string but got `%s`", jsonObj.get("environment").toString())); + } // ensure the required json array is present if (jsonObj.get("hosts") == null) { throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectServiceIdentity.java b/clients/client/java/src/main/java/sh/ory/model/ProjectServiceIdentity.java index 83bc46e220a..c0038a68094 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectServiceIdentity.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectServiceIdentity.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ProjectServiceIdentity */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectServiceIdentity { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectServiceOAuth2.java b/clients/client/java/src/main/java/sh/ory/model/ProjectServiceOAuth2.java index 127070e8552..bd22f905315 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectServiceOAuth2.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectServiceOAuth2.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ProjectServiceOAuth2 */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectServiceOAuth2 { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectServicePermission.java b/clients/client/java/src/main/java/sh/ory/model/ProjectServicePermission.java index f5f265877fa..90519782e84 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectServicePermission.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectServicePermission.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * ProjectServicePermission */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectServicePermission { public static final String SERIALIZED_NAME_CONFIG = "config"; @SerializedName(SERIALIZED_NAME_CONFIG) diff --git a/clients/client/java/src/main/java/sh/ory/model/ProjectServices.java b/clients/client/java/src/main/java/sh/ory/model/ProjectServices.java index d9626c50cec..0c1d27ef645 100644 --- a/clients/client/java/src/main/java/sh/ory/model/ProjectServices.java +++ b/clients/client/java/src/main/java/sh/ory/model/ProjectServices.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * ProjectServices */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class ProjectServices { public static final String SERIALIZED_NAME_IDENTITY = "identity"; @SerializedName(SERIALIZED_NAME_IDENTITY) diff --git a/clients/client/java/src/main/java/sh/ory/model/QuotaUsage.java b/clients/client/java/src/main/java/sh/ory/model/QuotaUsage.java index b747f98cb1c..8b93278ac81 100644 --- a/clients/client/java/src/main/java/sh/ory/model/QuotaUsage.java +++ b/clients/client/java/src/main/java/sh/ory/model/QuotaUsage.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * QuotaUsage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class QuotaUsage { public static final String SERIALIZED_NAME_ADDITIONAL_PRICE = "additional_price"; @SerializedName(SERIALIZED_NAME_ADDITIONAL_PRICE) @@ -59,7 +59,7 @@ public class QuotaUsage { private Boolean canUseMore; /** - * region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + * region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect */ @JsonAdapter(FeatureEnum.Adapter.class) public enum FeatureEnum { @@ -99,11 +99,17 @@ public enum FeatureEnum { ROP_GRANT("rop_grant"), + CONCIERGE_ONBOARDING("concierge_onboarding"), + RATE_LIMIT_TIER("rate_limit_tier"), SESSION_RATE_LIMIT_TIER("session_rate_limit_tier"), - IDENTITIES_LIST_RATE_LIMIT_TIER("identities_list_rate_limit_tier"); + IDENTITIES_LIST_RATE_LIMIT_TIER("identities_list_rate_limit_tier"), + + PERMISSION_CHECKS_RATE_LIMIT_TIER("permission_checks_rate_limit_tier"), + + OAUTH2_INTROSPECT_RATE_LIMIT_TIER("oauth2_introspect_rate_limit_tier"); private String value; @@ -215,11 +221,11 @@ public QuotaUsage feature(FeatureEnum feature) { } /** - * region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + * region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect * @return feature **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = " region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList") + @ApiModelProperty(required = true, value = " region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect") public FeatureEnum getFeature() { return feature; diff --git a/clients/client/java/src/main/java/sh/ory/model/RFC6749ErrorJson.java b/clients/client/java/src/main/java/sh/ory/model/RFC6749ErrorJson.java index ce5b0168ec4..c6a8d479be8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RFC6749ErrorJson.java +++ b/clients/client/java/src/main/java/sh/ory/model/RFC6749ErrorJson.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * RFC6749ErrorJson */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RFC6749ErrorJson { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/RecoveryCodeForIdentity.java b/clients/client/java/src/main/java/sh/ory/model/RecoveryCodeForIdentity.java index b6463ca531e..131ddab2653 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RecoveryCodeForIdentity.java +++ b/clients/client/java/src/main/java/sh/ory/model/RecoveryCodeForIdentity.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Used when an administrator creates a recovery code for an identity. */ @ApiModel(description = "Used when an administrator creates a recovery code for an identity.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RecoveryCodeForIdentity { public static final String SERIALIZED_NAME_EXPIRES_AT = "expires_at"; @SerializedName(SERIALIZED_NAME_EXPIRES_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/RecoveryFlow.java b/clients/client/java/src/main/java/sh/ory/model/RecoveryFlow.java index 2f6f845bed0..158d7f114dc 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RecoveryFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/RecoveryFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,7 +54,7 @@ * This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery) */ @ApiModel(description = "This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RecoveryFlow { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -88,6 +88,10 @@ public class RecoveryFlow { @SerializedName(SERIALIZED_NAME_STATE) private Object state = null; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; @@ -291,6 +295,29 @@ public void setState(Object state) { } + public RecoveryFlow transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * TransientPayload is used to pass data from the recovery flow to hooks and email templates + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "TransientPayload is used to pass data from the recovery flow to hooks and email templates") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public RecoveryFlow type(String type) { this.type = type; @@ -399,6 +426,7 @@ public boolean equals(Object o) { Objects.equals(this.requestUrl, recoveryFlow.requestUrl) && Objects.equals(this.returnTo, recoveryFlow.returnTo) && Objects.equals(this.state, recoveryFlow.state) && + Objects.equals(this.transientPayload, recoveryFlow.transientPayload) && Objects.equals(this.type, recoveryFlow.type) && Objects.equals(this.ui, recoveryFlow.ui)&& Objects.equals(this.additionalProperties, recoveryFlow.additionalProperties); @@ -406,7 +434,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(active, continueWith, expiresAt, id, issuedAt, requestUrl, returnTo, state, type, ui, additionalProperties); + return Objects.hash(active, continueWith, expiresAt, id, issuedAt, requestUrl, returnTo, state, transientPayload, type, ui, additionalProperties); } @Override @@ -421,6 +449,7 @@ public String toString() { sb.append(" requestUrl: ").append(toIndentedString(requestUrl)).append("\n"); sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" ui: ").append(toIndentedString(ui)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -454,6 +483,7 @@ private String toIndentedString(Object o) { openapiFields.add("request_url"); openapiFields.add("return_to"); openapiFields.add("state"); + openapiFields.add("transient_payload"); openapiFields.add("type"); openapiFields.add("ui"); diff --git a/clients/client/java/src/main/java/sh/ory/model/RecoveryFlowState.java b/clients/client/java/src/main/java/sh/ory/model/RecoveryFlowState.java index c03cd904509..468958372e7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RecoveryFlowState.java +++ b/clients/client/java/src/main/java/sh/ory/model/RecoveryFlowState.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/RecoveryIdentityAddress.java b/clients/client/java/src/main/java/sh/ory/model/RecoveryIdentityAddress.java index 84686ec6a82..6de5e34bdf6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RecoveryIdentityAddress.java +++ b/clients/client/java/src/main/java/sh/ory/model/RecoveryIdentityAddress.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * RecoveryIdentityAddress */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RecoveryIdentityAddress { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/RecoveryLinkForIdentity.java b/clients/client/java/src/main/java/sh/ory/model/RecoveryLinkForIdentity.java index f4c85778c32..1046ed18ce1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RecoveryLinkForIdentity.java +++ b/clients/client/java/src/main/java/sh/ory/model/RecoveryLinkForIdentity.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Used when an administrator creates a recovery link for an identity. */ @ApiModel(description = "Used when an administrator creates a recovery link for an identity.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RecoveryLinkForIdentity { public static final String SERIALIZED_NAME_EXPIRES_AT = "expires_at"; @SerializedName(SERIALIZED_NAME_EXPIRES_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/RegistrationFlow.java b/clients/client/java/src/main/java/sh/ory/model/RegistrationFlow.java index 66a4673c271..3aaa5e537a3 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RegistrationFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/RegistrationFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,7 +25,6 @@ import java.io.IOException; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; -import sh.ory.model.IdentityCredentialsType; import sh.ory.model.OAuth2LoginRequest; import sh.ory.model.UiContainer; @@ -53,11 +52,70 @@ /** * RegistrationFlow */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RegistrationFlow { + /** + * Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + */ + @JsonAdapter(ActiveEnum.Adapter.class) + public enum ActiveEnum { + PASSWORD("password"), + + OIDC("oidc"), + + TOTP("totp"), + + LOOKUP_SECRET("lookup_secret"), + + WEBAUTHN("webauthn"), + + CODE("code"), + + LINK_RECOVERY("link_recovery"), + + CODE_RECOVERY("code_recovery"); + + private String value; + + ActiveEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static ActiveEnum fromValue(String value) { + for (ActiveEnum b : ActiveEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final ActiveEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public ActiveEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return ActiveEnum.fromValue(value); + } + } + } + public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) - private IdentityCredentialsType active; + private ActiveEnum active; public static final String SERIALIZED_NAME_EXPIRES_AT = "expires_at"; @SerializedName(SERIALIZED_NAME_EXPIRES_AT) @@ -114,25 +172,25 @@ public class RegistrationFlow { public RegistrationFlow() { } - public RegistrationFlow active(IdentityCredentialsType active) { + public RegistrationFlow active(ActiveEnum active) { this.active = active; return this; } /** - * Get active + * Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 active **/ @javax.annotation.Nullable - @ApiModelProperty(value = "") + @ApiModelProperty(value = "Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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") - public IdentityCredentialsType getActive() { + public ActiveEnum getActive() { return active; } - public void setActive(IdentityCredentialsType active) { + public void setActive(ActiveEnum active) { this.active = active; } @@ -609,6 +667,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); } } + if ((jsonObj.get("active") != null && !jsonObj.get("active").isJsonNull()) && !jsonObj.get("active").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `active` to be a primitive type in the JSON string but got `%s`", jsonObj.get("active").toString())); + } if (!jsonObj.get("id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/RegistrationFlowState.java b/clients/client/java/src/main/java/sh/ory/model/RegistrationFlowState.java index 27fa7f0c730..756645d0fdd 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RegistrationFlowState.java +++ b/clients/client/java/src/main/java/sh/ory/model/RegistrationFlowState.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/RejectOAuth2Request.java b/clients/client/java/src/main/java/sh/ory/model/RejectOAuth2Request.java index 98ae44559a7..549d3596d26 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RejectOAuth2Request.java +++ b/clients/client/java/src/main/java/sh/ory/model/RejectOAuth2Request.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * RejectOAuth2Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RejectOAuth2Request { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/RelationQuery.java b/clients/client/java/src/main/java/sh/ory/model/RelationQuery.java index 9ba1e6fdbb0..c11aa1cd552 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RelationQuery.java +++ b/clients/client/java/src/main/java/sh/ory/model/RelationQuery.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Relation Query */ @ApiModel(description = "Relation Query") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RelationQuery { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/clients/client/java/src/main/java/sh/ory/model/Relationship.java b/clients/client/java/src/main/java/sh/ory/model/Relationship.java index 2e61e19dfe1..217ee925178 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Relationship.java +++ b/clients/client/java/src/main/java/sh/ory/model/Relationship.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Relationship */ @ApiModel(description = "Relationship") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Relationship { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/clients/client/java/src/main/java/sh/ory/model/RelationshipNamespaces.java b/clients/client/java/src/main/java/sh/ory/model/RelationshipNamespaces.java index 17357c3d668..7305daddc93 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RelationshipNamespaces.java +++ b/clients/client/java/src/main/java/sh/ory/model/RelationshipNamespaces.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Relationship Namespace List */ @ApiModel(description = "Relationship Namespace List") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RelationshipNamespaces { public static final String SERIALIZED_NAME_NAMESPACES = "namespaces"; @SerializedName(SERIALIZED_NAME_NAMESPACES) diff --git a/clients/client/java/src/main/java/sh/ory/model/RelationshipPatch.java b/clients/client/java/src/main/java/sh/ory/model/RelationshipPatch.java index e2e8f245510..b3e72edea72 100644 --- a/clients/client/java/src/main/java/sh/ory/model/RelationshipPatch.java +++ b/clients/client/java/src/main/java/sh/ory/model/RelationshipPatch.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * Payload for patching a relationship */ @ApiModel(description = "Payload for patching a relationship") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class RelationshipPatch { /** * Gets or Sets action diff --git a/clients/client/java/src/main/java/sh/ory/model/Relationships.java b/clients/client/java/src/main/java/sh/ory/model/Relationships.java index 1b37b55583e..7b3d8c32ec7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Relationships.java +++ b/clients/client/java/src/main/java/sh/ory/model/Relationships.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Paginated Relationship List */ @ApiModel(description = "Paginated Relationship List") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Relationships { public static final String SERIALIZED_NAME_NEXT_PAGE_TOKEN = "next_page_token"; @SerializedName(SERIALIZED_NAME_NEXT_PAGE_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/SchemaPatch.java b/clients/client/java/src/main/java/sh/ory/model/SchemaPatch.java index 8549bc2c159..51802ea8bd6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SchemaPatch.java +++ b/clients/client/java/src/main/java/sh/ory/model/SchemaPatch.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * SchemaPatch */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SchemaPatch { public static final String SERIALIZED_NAME_DATA = "data"; @SerializedName(SERIALIZED_NAME_DATA) diff --git a/clients/client/java/src/main/java/sh/ory/model/SelfServiceFlowExpiredError.java b/clients/client/java/src/main/java/sh/ory/model/SelfServiceFlowExpiredError.java index 2976d0ed690..38216e9539d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SelfServiceFlowExpiredError.java +++ b/clients/client/java/src/main/java/sh/ory/model/SelfServiceFlowExpiredError.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Is sent when a flow is expired */ @ApiModel(description = "Is sent when a flow is expired") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SelfServiceFlowExpiredError { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/client/java/src/main/java/sh/ory/model/Session.java b/clients/client/java/src/main/java/sh/ory/model/Session.java index 69815b16cc9..db381805e6f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Session.java +++ b/clients/client/java/src/main/java/sh/ory/model/Session.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -56,7 +56,7 @@ * A Session */ @ApiModel(description = "A Session") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Session { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/clients/client/java/src/main/java/sh/ory/model/SessionActivityDatapoint.java b/clients/client/java/src/main/java/sh/ory/model/SessionActivityDatapoint.java index 5e25e3dfd17..ec7f91cd837 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SessionActivityDatapoint.java +++ b/clients/client/java/src/main/java/sh/ory/model/SessionActivityDatapoint.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * SessionActivityDatapoint */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SessionActivityDatapoint { public static final String SERIALIZED_NAME_COUNTRY = "country"; @SerializedName(SERIALIZED_NAME_COUNTRY) diff --git a/clients/client/java/src/main/java/sh/ory/model/SessionAuthenticationMethod.java b/clients/client/java/src/main/java/sh/ory/model/SessionAuthenticationMethod.java index cf25386ec3a..f1c3b724aa4 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SessionAuthenticationMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/SessionAuthenticationMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * A singular authenticator used during authentication / login. */ @ApiModel(description = "A singular authenticator used during authentication / login.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SessionAuthenticationMethod { public static final String SERIALIZED_NAME_AAL = "aal"; @SerializedName(SERIALIZED_NAME_AAL) diff --git a/clients/client/java/src/main/java/sh/ory/model/SessionDevice.java b/clients/client/java/src/main/java/sh/ory/model/SessionDevice.java index 3261a95e728..35c6dc5866c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SessionDevice.java +++ b/clients/client/java/src/main/java/sh/ory/model/SessionDevice.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Device corresponding to a Session */ @ApiModel(description = "Device corresponding to a Session") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SessionDevice { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/SetActiveProjectInConsoleBody.java b/clients/client/java/src/main/java/sh/ory/model/SetActiveProjectInConsoleBody.java index 1ca07d28563..8185948c0b5 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SetActiveProjectInConsoleBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/SetActiveProjectInConsoleBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Set active project in the Ory Network Console Request Body */ @ApiModel(description = "Set active project in the Ory Network Console Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SetActiveProjectInConsoleBody { public static final String SERIALIZED_NAME_PROJECT_ID = "project_id"; @SerializedName(SERIALIZED_NAME_PROJECT_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/SetCustomDomainBody.java b/clients/client/java/src/main/java/sh/ory/model/SetCustomDomainBody.java index 8a69a8b9fb3..1a86344d170 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SetCustomDomainBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/SetCustomDomainBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Update Custom Hostname Body */ @ApiModel(description = "Update Custom Hostname Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SetCustomDomainBody { public static final String SERIALIZED_NAME_COOKIE_DOMAIN = "cookie_domain"; @SerializedName(SERIALIZED_NAME_COOKIE_DOMAIN) diff --git a/clients/client/java/src/main/java/sh/ory/model/SetEventStreamBody.java b/clients/client/java/src/main/java/sh/ory/model/SetEventStreamBody.java index 6d36315a3f2..99c04c0e36a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SetEventStreamBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/SetEventStreamBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Event Stream Body */ @ApiModel(description = "Update Event Stream Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SetEventStreamBody { public static final String SERIALIZED_NAME_ROLE_ARN = "role_arn"; @SerializedName(SERIALIZED_NAME_ROLE_ARN) diff --git a/clients/client/java/src/main/java/sh/ory/model/SetProject.java b/clients/client/java/src/main/java/sh/ory/model/SetProject.java index ce2e4bd6fa9..463b1fde1d3 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SetProject.java +++ b/clients/client/java/src/main/java/sh/ory/model/SetProject.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * SetProject */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SetProject { public static final String SERIALIZED_NAME_CORS_ADMIN = "cors_admin"; @SerializedName(SERIALIZED_NAME_CORS_ADMIN) diff --git a/clients/client/java/src/main/java/sh/ory/model/SetProjectBrandingThemeBody.java b/clients/client/java/src/main/java/sh/ory/model/SetProjectBrandingThemeBody.java index 9afd1f1ac8c..e8b7c76c6a8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SetProjectBrandingThemeBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/SetProjectBrandingThemeBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * SetProjectBrandingThemeBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SetProjectBrandingThemeBody { public static final String SERIALIZED_NAME_FAVICON_TYPE = "favicon_type"; @SerializedName(SERIALIZED_NAME_FAVICON_TYPE) diff --git a/clients/client/java/src/main/java/sh/ory/model/SettingsFlow.java b/clients/client/java/src/main/java/sh/ory/model/SettingsFlow.java index 2195fe03d2a..ac9768f48a9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SettingsFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/SettingsFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -55,7 +55,7 @@ * This flow is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner. We recommend reading the [User Settings Documentation](../self-service/flows/user-settings) */ @ApiModel(description = "This flow is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner. We recommend reading the [User Settings Documentation](../self-service/flows/user-settings)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SettingsFlow { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -93,6 +93,10 @@ public class SettingsFlow { @SerializedName(SERIALIZED_NAME_STATE) private Object state = null; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; @@ -319,6 +323,29 @@ public void setState(Object state) { } + public SettingsFlow transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * TransientPayload is used to pass data from the settings flow to hooks and email templates + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "TransientPayload is used to pass data from the settings flow to hooks and email templates") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public SettingsFlow type(String type) { this.type = type; @@ -428,6 +455,7 @@ public boolean equals(Object o) { Objects.equals(this.requestUrl, settingsFlow.requestUrl) && Objects.equals(this.returnTo, settingsFlow.returnTo) && Objects.equals(this.state, settingsFlow.state) && + Objects.equals(this.transientPayload, settingsFlow.transientPayload) && Objects.equals(this.type, settingsFlow.type) && Objects.equals(this.ui, settingsFlow.ui)&& Objects.equals(this.additionalProperties, settingsFlow.additionalProperties); @@ -435,7 +463,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(active, continueWith, expiresAt, id, identity, issuedAt, requestUrl, returnTo, state, type, ui, additionalProperties); + return Objects.hash(active, continueWith, expiresAt, id, identity, issuedAt, requestUrl, returnTo, state, transientPayload, type, ui, additionalProperties); } @Override @@ -451,6 +479,7 @@ public String toString() { sb.append(" requestUrl: ").append(toIndentedString(requestUrl)).append("\n"); sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" ui: ").append(toIndentedString(ui)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -485,6 +514,7 @@ private String toIndentedString(Object o) { openapiFields.add("request_url"); openapiFields.add("return_to"); openapiFields.add("state"); + openapiFields.add("transient_payload"); openapiFields.add("type"); openapiFields.add("ui"); diff --git a/clients/client/java/src/main/java/sh/ory/model/SettingsFlowState.java b/clients/client/java/src/main/java/sh/ory/model/SettingsFlowState.java index fcd6e5557eb..88f760753f1 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SettingsFlowState.java +++ b/clients/client/java/src/main/java/sh/ory/model/SettingsFlowState.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/SourcePosition.java b/clients/client/java/src/main/java/sh/ory/model/SourcePosition.java index ca36eff3311..de5e671191a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SourcePosition.java +++ b/clients/client/java/src/main/java/sh/ory/model/SourcePosition.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * SourcePosition */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SourcePosition { public static final String SERIALIZED_NAME_LINE = "Line"; @SerializedName(SERIALIZED_NAME_LINE) diff --git a/clients/client/java/src/main/java/sh/ory/model/SubjectSet.java b/clients/client/java/src/main/java/sh/ory/model/SubjectSet.java index 8e8b39bc924..b53ba4b0eb9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SubjectSet.java +++ b/clients/client/java/src/main/java/sh/ory/model/SubjectSet.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * SubjectSet */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SubjectSet { public static final String SERIALIZED_NAME_NAMESPACE = "namespace"; @SerializedName(SERIALIZED_NAME_NAMESPACE) diff --git a/clients/client/java/src/main/java/sh/ory/model/Subscription.java b/clients/client/java/src/main/java/sh/ory/model/Subscription.java index 7494bcc7e86..3000e1164ae 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Subscription.java +++ b/clients/client/java/src/main/java/sh/ory/model/Subscription.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -25,6 +25,7 @@ import java.io.IOException; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import sh.ory.model.PlanDetails; import com.google.gson.Gson; import com.google.gson.GsonBuilder; @@ -50,7 +51,7 @@ /** * Subscription */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Subscription { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) @@ -162,6 +163,10 @@ public CurrentIntervalEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_CURRENT_PLAN) private String currentPlan; + public static final String SERIALIZED_NAME_CURRENT_PLAN_DETAILS = "current_plan_details"; + @SerializedName(SERIALIZED_NAME_CURRENT_PLAN_DETAILS) + private PlanDetails currentPlanDetails; + public static final String SERIALIZED_NAME_CUSTOMER_ID = "customer_id"; @SerializedName(SERIALIZED_NAME_CUSTOMER_ID) private String customerId; @@ -194,6 +199,10 @@ public CurrentIntervalEnum read(final JsonReader jsonReader) throws IOException @SerializedName(SERIALIZED_NAME_STATUS) private String status; + public static final String SERIALIZED_NAME_STRIPE_CHECKOUT_EXPIRES_AT = "stripe_checkout_expires_at"; + @SerializedName(SERIALIZED_NAME_STRIPE_CHECKOUT_EXPIRES_AT) + private OffsetDateTime stripeCheckoutExpiresAt; + public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; @SerializedName(SERIALIZED_NAME_UPDATED_AT) private OffsetDateTime updatedAt; @@ -279,6 +288,29 @@ public String getCurrentPlan() { + public Subscription currentPlanDetails(PlanDetails currentPlanDetails) { + + this.currentPlanDetails = currentPlanDetails; + return this; + } + + /** + * Get currentPlanDetails + * @return currentPlanDetails + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public PlanDetails getCurrentPlanDetails() { + return currentPlanDetails; + } + + + public void setCurrentPlanDetails(PlanDetails currentPlanDetails) { + this.currentPlanDetails = currentPlanDetails; + } + + /** * The ID of the stripe customer * @return customerId @@ -436,6 +468,29 @@ public void setStatus(String status) { } + public Subscription stripeCheckoutExpiresAt(OffsetDateTime stripeCheckoutExpiresAt) { + + this.stripeCheckoutExpiresAt = stripeCheckoutExpiresAt; + return this; + } + + /** + * Get stripeCheckoutExpiresAt + * @return stripeCheckoutExpiresAt + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public OffsetDateTime getStripeCheckoutExpiresAt() { + return stripeCheckoutExpiresAt; + } + + + public void setStripeCheckoutExpiresAt(OffsetDateTime stripeCheckoutExpiresAt) { + this.stripeCheckoutExpiresAt = stripeCheckoutExpiresAt; + } + + /** * Get updatedAt * @return updatedAt @@ -508,6 +563,7 @@ public boolean equals(Object o) { Objects.equals(this.currency, subscription.currency) && Objects.equals(this.currentInterval, subscription.currentInterval) && Objects.equals(this.currentPlan, subscription.currentPlan) && + Objects.equals(this.currentPlanDetails, subscription.currentPlanDetails) && Objects.equals(this.customerId, subscription.customerId) && Objects.equals(this.id, subscription.id) && Objects.equals(this.intervalChangesTo, subscription.intervalChangesTo) && @@ -516,6 +572,7 @@ public boolean equals(Object o) { Objects.equals(this.planChangesAt, subscription.planChangesAt) && Objects.equals(this.planChangesTo, subscription.planChangesTo) && Objects.equals(this.status, subscription.status) && + Objects.equals(this.stripeCheckoutExpiresAt, subscription.stripeCheckoutExpiresAt) && Objects.equals(this.updatedAt, subscription.updatedAt)&& Objects.equals(this.additionalProperties, subscription.additionalProperties); } @@ -526,7 +583,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(createdAt, currency, currentInterval, currentPlan, customerId, id, intervalChangesTo, ongoingStripeCheckoutId, payedUntil, planChangesAt, planChangesTo, status, updatedAt, additionalProperties); + return Objects.hash(createdAt, currency, currentInterval, currentPlan, currentPlanDetails, customerId, id, intervalChangesTo, ongoingStripeCheckoutId, payedUntil, planChangesAt, planChangesTo, status, stripeCheckoutExpiresAt, updatedAt, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -544,6 +601,7 @@ public String toString() { sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); sb.append(" currentInterval: ").append(toIndentedString(currentInterval)).append("\n"); sb.append(" currentPlan: ").append(toIndentedString(currentPlan)).append("\n"); + sb.append(" currentPlanDetails: ").append(toIndentedString(currentPlanDetails)).append("\n"); sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" intervalChangesTo: ").append(toIndentedString(intervalChangesTo)).append("\n"); @@ -552,6 +610,7 @@ public String toString() { sb.append(" planChangesAt: ").append(toIndentedString(planChangesAt)).append("\n"); sb.append(" planChangesTo: ").append(toIndentedString(planChangesTo)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" stripeCheckoutExpiresAt: ").append(toIndentedString(stripeCheckoutExpiresAt)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -580,6 +639,7 @@ private String toIndentedString(Object o) { openapiFields.add("currency"); openapiFields.add("current_interval"); openapiFields.add("current_plan"); + openapiFields.add("current_plan_details"); openapiFields.add("customer_id"); openapiFields.add("id"); openapiFields.add("interval_changes_to"); @@ -588,6 +648,7 @@ private String toIndentedString(Object o) { openapiFields.add("plan_changes_at"); openapiFields.add("plan_changes_to"); openapiFields.add("status"); + openapiFields.add("stripe_checkout_expires_at"); openapiFields.add("updated_at"); // a set of required properties/fields (JSON key names) @@ -633,6 +694,10 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("current_plan").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `current_plan` to be a primitive type in the JSON string but got `%s`", jsonObj.get("current_plan").toString())); } + // validate the optional field `current_plan_details` + if (jsonObj.get("current_plan_details") != null && !jsonObj.get("current_plan_details").isJsonNull()) { + PlanDetails.validateJsonObject(jsonObj.getAsJsonObject("current_plan_details")); + } if (!jsonObj.get("customer_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `customer_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("customer_id").toString())); } diff --git a/clients/client/java/src/main/java/sh/ory/model/SuccessfulCodeExchangeResponse.java b/clients/client/java/src/main/java/sh/ory/model/SuccessfulCodeExchangeResponse.java index 4b7ef5ed347..abc12886fa6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SuccessfulCodeExchangeResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/SuccessfulCodeExchangeResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * The Response for Registration Flows via API */ @ApiModel(description = "The Response for Registration Flows via API") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SuccessfulCodeExchangeResponse { public static final String SERIALIZED_NAME_SESSION = "session"; @SerializedName(SERIALIZED_NAME_SESSION) diff --git a/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeLogin.java b/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeLogin.java index 1fa9ad1239e..e34059f9ba3 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeLogin.java +++ b/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeLogin.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * The Response for Login Flows via API */ @ApiModel(description = "The Response for Login Flows via API") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SuccessfulNativeLogin { public static final String SERIALIZED_NAME_SESSION = "session"; @SerializedName(SERIALIZED_NAME_SESSION) diff --git a/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeRegistration.java b/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeRegistration.java index 16f230d91f9..af6ff89565c 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeRegistration.java +++ b/clients/client/java/src/main/java/sh/ory/model/SuccessfulNativeRegistration.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,7 +54,7 @@ * The Response for Registration Flows via API */ @ApiModel(description = "The Response for Registration Flows via API") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SuccessfulNativeRegistration { public static final String SERIALIZED_NAME_CONTINUE_WITH = "continue_with"; @SerializedName(SERIALIZED_NAME_CONTINUE_WITH) diff --git a/clients/client/java/src/main/java/sh/ory/model/SuccessfulProjectUpdate.java b/clients/client/java/src/main/java/sh/ory/model/SuccessfulProjectUpdate.java index 65f9ede81d9..c2219c00db7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/SuccessfulProjectUpdate.java +++ b/clients/client/java/src/main/java/sh/ory/model/SuccessfulProjectUpdate.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * SuccessfulProjectUpdate */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class SuccessfulProjectUpdate { public static final String SERIALIZED_NAME_PROJECT = "project"; @SerializedName(SERIALIZED_NAME_PROJECT) diff --git a/clients/client/java/src/main/java/sh/ory/model/TokenPagination.java b/clients/client/java/src/main/java/sh/ory/model/TokenPagination.java index e0e63cc9064..4b00981b14d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TokenPagination.java +++ b/clients/client/java/src/main/java/sh/ory/model/TokenPagination.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * TokenPagination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TokenPagination { public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/clients/client/java/src/main/java/sh/ory/model/TokenPaginationHeaders.java b/clients/client/java/src/main/java/sh/ory/model/TokenPaginationHeaders.java index 1a3f036cdae..f49527ab29f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TokenPaginationHeaders.java +++ b/clients/client/java/src/main/java/sh/ory/model/TokenPaginationHeaders.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * TokenPaginationHeaders */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TokenPaginationHeaders { public static final String SERIALIZED_NAME_LINK = "link"; @SerializedName(SERIALIZED_NAME_LINK) diff --git a/clients/client/java/src/main/java/sh/ory/model/TokenPaginationRequestParameters.java b/clients/client/java/src/main/java/sh/ory/model/TokenPaginationRequestParameters.java index 7e89f5e09e0..10ed8bff9c7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TokenPaginationRequestParameters.java +++ b/clients/client/java/src/main/java/sh/ory/model/TokenPaginationRequestParameters.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `<https://{project-slug}.projects.oryapis.com/admin/clients?page_size={limit}&page_token={offset}>; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). */ @ApiModel(description = "The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TokenPaginationRequestParameters { public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/clients/client/java/src/main/java/sh/ory/model/TokenPaginationResponseHeaders.java b/clients/client/java/src/main/java/sh/ory/model/TokenPaginationResponseHeaders.java index aac1a301a93..35af8035b23 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TokenPaginationResponseHeaders.java +++ b/clients/client/java/src/main/java/sh/ory/model/TokenPaginationResponseHeaders.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `<https://{project-slug}.projects.oryapis.com/admin/clients?page_size={limit}&page_token={offset}>; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). */ @ApiModel(description = "The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TokenPaginationResponseHeaders { public static final String SERIALIZED_NAME_LINK = "link"; @SerializedName(SERIALIZED_NAME_LINK) diff --git a/clients/client/java/src/main/java/sh/ory/model/TrustOAuth2JwtGrantIssuer.java b/clients/client/java/src/main/java/sh/ory/model/TrustOAuth2JwtGrantIssuer.java index 57a0ece9ad1..9b6712b9f1e 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TrustOAuth2JwtGrantIssuer.java +++ b/clients/client/java/src/main/java/sh/ory/model/TrustOAuth2JwtGrantIssuer.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * Trust OAuth2 JWT Bearer Grant Type Issuer Request Body */ @ApiModel(description = "Trust OAuth2 JWT Bearer Grant Type Issuer Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TrustOAuth2JwtGrantIssuer { public static final String SERIALIZED_NAME_ALLOW_ANY_SUBJECT = "allow_any_subject"; @SerializedName(SERIALIZED_NAME_ALLOW_ANY_SUBJECT) diff --git a/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantIssuer.java b/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantIssuer.java index b6447b08121..63b1f837ffe 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantIssuer.java +++ b/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantIssuer.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * OAuth2 JWT Bearer Grant Type Issuer Trust Relationship */ @ApiModel(description = "OAuth2 JWT Bearer Grant Type Issuer Trust Relationship") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TrustedOAuth2JwtGrantIssuer { public static final String SERIALIZED_NAME_ALLOW_ANY_SUBJECT = "allow_any_subject"; @SerializedName(SERIALIZED_NAME_ALLOW_ANY_SUBJECT) diff --git a/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKey.java b/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKey.java index 2d0f89b0b45..6f2d4f61ad9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKey.java +++ b/clients/client/java/src/main/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKey.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key */ @ApiModel(description = "OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class TrustedOAuth2JwtGrantJsonWebKey { public static final String SERIALIZED_NAME_KID = "kid"; @SerializedName(SERIALIZED_NAME_KID) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiContainer.java b/clients/client/java/src/main/java/sh/ory/model/UiContainer.java index e7b9a3a8092..36d9d6fcd78 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiContainer.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiContainer.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * Container represents a HTML Form. The container can work with both HTTP Form and JSON requests */ @ApiModel(description = "Container represents a HTML Form. The container can work with both HTTP Form and JSON requests") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiContainer { public static final String SERIALIZED_NAME_ACTION = "action"; @SerializedName(SERIALIZED_NAME_ACTION) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNode.java b/clients/client/java/src/main/java/sh/ory/model/UiNode.java index b4d2644fb7b..1b538a0feaa 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNode.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNode.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -54,7 +54,7 @@ * Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `<img>` tag, or an `<input element>` but also `some plain text`. */ @ApiModel(description = "Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `` tag, or an `` but also `some plain text`.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNode { public static final String SERIALIZED_NAME_ATTRIBUTES = "attributes"; @SerializedName(SERIALIZED_NAME_ATTRIBUTES) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeAnchorAttributes.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeAnchorAttributes.java index c55f60db60d..d225bec5c13 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeAnchorAttributes.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeAnchorAttributes.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * UiNodeAnchorAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeAnchorAttributes { public static final String SERIALIZED_NAME_HREF = "href"; @SerializedName(SERIALIZED_NAME_HREF) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeAttributes.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeAttributes.java index 33885d53736..4c8c5fd0221 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeAttributes.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeAttributes.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -64,7 +64,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeAttributes extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(UiNodeAttributes.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeImageAttributes.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeImageAttributes.java index 6da0a556730..fddbcabe8b8 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeImageAttributes.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeImageAttributes.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * UiNodeImageAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeImageAttributes { public static final String SERIALIZED_NAME_HEIGHT = "height"; @SerializedName(SERIALIZED_NAME_HEIGHT) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeInputAttributes.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeInputAttributes.java index 824f388bff9..268d358a4e3 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeInputAttributes.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeInputAttributes.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * InputAttributes represents the attributes of an input node */ @ApiModel(description = "InputAttributes represents the attributes of an input node") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeInputAttributes { /** * The autocomplete attribute for the input. email InputAttributeAutocompleteEmail tel InputAttributeAutocompleteTel url InputAttributeAutocompleteUrl current-password InputAttributeAutocompleteCurrentPassword new-password InputAttributeAutocompleteNewPassword one-time-code InputAttributeAutocompleteOneTimeCode diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeMeta.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeMeta.java index f737d24a37d..8ecafc1c507 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeMeta.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeMeta.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * This might include a label and other information that can optionally be used to render UIs. */ @ApiModel(description = "This might include a label and other information that can optionally be used to render UIs.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeMeta { public static final String SERIALIZED_NAME_LABEL = "label"; @SerializedName(SERIALIZED_NAME_LABEL) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeScriptAttributes.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeScriptAttributes.java index 18242c04481..028e9dbba4e 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeScriptAttributes.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeScriptAttributes.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * UiNodeScriptAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeScriptAttributes { public static final String SERIALIZED_NAME_ASYNC = "async"; @SerializedName(SERIALIZED_NAME_ASYNC) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiNodeTextAttributes.java b/clients/client/java/src/main/java/sh/ory/model/UiNodeTextAttributes.java index b161f986303..9492e90a219 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiNodeTextAttributes.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiNodeTextAttributes.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * UiNodeTextAttributes */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiNodeTextAttributes { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/clients/client/java/src/main/java/sh/ory/model/UiText.java b/clients/client/java/src/main/java/sh/ory/model/UiText.java index 9f54f52ce53..8597cef950e 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UiText.java +++ b/clients/client/java/src/main/java/sh/ory/model/UiText.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * UiText */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UiText { public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateIdentityBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateIdentityBody.java index 064d0bb0bb3..5d90138508f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateIdentityBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateIdentityBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,6 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import org.openapitools.jackson.nullable.JsonNullable; -import sh.ory.model.IdentityState; import sh.ory.model.IdentityWithCredentials; import com.google.gson.Gson; @@ -52,7 +51,7 @@ * Update Identity Body */ @ApiModel(description = "Update Identity Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateIdentityBody { public static final String SERIALIZED_NAME_CREDENTIALS = "credentials"; @SerializedName(SERIALIZED_NAME_CREDENTIALS) @@ -70,9 +69,56 @@ public class UpdateIdentityBody { @SerializedName(SERIALIZED_NAME_SCHEMA_ID) private String schemaId; + /** + * State is the identity's state. active StateActive inactive StateInactive + */ + @JsonAdapter(StateEnum.Adapter.class) + public enum StateEnum { + ACTIVE("active"), + + INACTIVE("inactive"); + + private String value; + + StateEnum(String value) { + this.value = value; + } + + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + public static StateEnum fromValue(String value) { + for (StateEnum b : StateEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + + public static class Adapter extends TypeAdapter { + @Override + public void write(final JsonWriter jsonWriter, final StateEnum enumeration) throws IOException { + jsonWriter.value(enumeration.getValue()); + } + + @Override + public StateEnum read(final JsonReader jsonReader) throws IOException { + String value = jsonReader.nextString(); + return StateEnum.fromValue(value); + } + } + } + public static final String SERIALIZED_NAME_STATE = "state"; @SerializedName(SERIALIZED_NAME_STATE) - private IdentityState state; + private StateEnum state; public static final String SERIALIZED_NAME_TRAITS = "traits"; @SerializedName(SERIALIZED_NAME_TRAITS) @@ -173,25 +219,25 @@ public void setSchemaId(String schemaId) { } - public UpdateIdentityBody state(IdentityState state) { + public UpdateIdentityBody state(StateEnum state) { this.state = state; return this; } /** - * Get state + * State is the identity's state. active StateActive inactive StateInactive * @return state **/ @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @ApiModelProperty(required = true, value = "State is the identity's state. active StateActive inactive StateInactive") - public IdentityState getState() { + public StateEnum getState() { return state; } - public void setState(IdentityState state) { + public void setState(StateEnum state) { this.state = state; } @@ -371,6 +417,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("schema_id").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `schema_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("schema_id").toString())); } + if (!jsonObj.get("state").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `state` to be a primitive type in the JSON string but got `%s`", jsonObj.get("state").toString())); + } } public static class CustomTypeAdapterFactory implements TypeAdapterFactory { diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowBody.java index b04c8800366..491e35f2945 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,7 +63,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowBody extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(UpdateLoginFlowBody.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithCodeMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithCodeMethod.java index f674ca831a3..560c6767c6d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithCodeMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithCodeMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Login flow using the code method */ @ApiModel(description = "Update Login flow using the code method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowWithCodeMethod { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -71,6 +71,10 @@ public class UpdateLoginFlowWithCodeMethod { @SerializedName(SERIALIZED_NAME_RESEND) private String resend; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateLoginFlowWithCodeMethod() { } @@ -188,6 +192,29 @@ public void setResend(String resend) { this.resend = resend; } + + public UpdateLoginFlowWithCodeMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -247,13 +274,14 @@ public boolean equals(Object o) { Objects.equals(this.csrfToken, updateLoginFlowWithCodeMethod.csrfToken) && Objects.equals(this.identifier, updateLoginFlowWithCodeMethod.identifier) && Objects.equals(this.method, updateLoginFlowWithCodeMethod.method) && - Objects.equals(this.resend, updateLoginFlowWithCodeMethod.resend)&& + Objects.equals(this.resend, updateLoginFlowWithCodeMethod.resend) && + Objects.equals(this.transientPayload, updateLoginFlowWithCodeMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateLoginFlowWithCodeMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, csrfToken, identifier, method, resend, additionalProperties); + return Objects.hash(code, csrfToken, identifier, method, resend, transientPayload, additionalProperties); } @Override @@ -265,6 +293,7 @@ public String toString() { sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" resend: ").append(toIndentedString(resend)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -293,6 +322,7 @@ private String toIndentedString(Object o) { openapiFields.add("identifier"); openapiFields.add("method"); openapiFields.add("resend"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethod.java index 956fd8d22bd..54fa940645b 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Login Flow with Lookup Secret Method */ @ApiModel(description = "Update Login Flow with Lookup Secret Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowWithLookupSecretMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithOidcMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithOidcMethod.java index 55d0800d883..0029f718bcd 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithOidcMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithOidcMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Login Flow with OpenID Connect Method */ @ApiModel(description = "Update Login Flow with OpenID Connect Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowWithOidcMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -75,6 +75,10 @@ public class UpdateLoginFlowWithOidcMethod { @SerializedName(SERIALIZED_NAME_TRAITS) private Object traits; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_UPSTREAM_PARAMETERS = "upstream_parameters"; @SerializedName(SERIALIZED_NAME_UPSTREAM_PARAMETERS) private Object upstreamParameters; @@ -220,6 +224,29 @@ public void setTraits(Object traits) { } + public UpdateLoginFlowWithOidcMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public UpdateLoginFlowWithOidcMethod upstreamParameters(Object upstreamParameters) { this.upstreamParameters = upstreamParameters; @@ -303,13 +330,14 @@ public boolean equals(Object o) { Objects.equals(this.method, updateLoginFlowWithOidcMethod.method) && Objects.equals(this.provider, updateLoginFlowWithOidcMethod.provider) && Objects.equals(this.traits, updateLoginFlowWithOidcMethod.traits) && + Objects.equals(this.transientPayload, updateLoginFlowWithOidcMethod.transientPayload) && Objects.equals(this.upstreamParameters, updateLoginFlowWithOidcMethod.upstreamParameters)&& Objects.equals(this.additionalProperties, updateLoginFlowWithOidcMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, idToken, idTokenNonce, method, provider, traits, upstreamParameters, additionalProperties); + return Objects.hash(csrfToken, idToken, idTokenNonce, method, provider, traits, transientPayload, upstreamParameters, additionalProperties); } @Override @@ -322,6 +350,7 @@ public String toString() { sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); sb.append(" traits: ").append(toIndentedString(traits)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" upstreamParameters: ").append(toIndentedString(upstreamParameters)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -352,6 +381,7 @@ private String toIndentedString(Object o) { openapiFields.add("method"); openapiFields.add("provider"); openapiFields.add("traits"); + openapiFields.add("transient_payload"); openapiFields.add("upstream_parameters"); // a set of required properties/fields (JSON key names) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithPasswordMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithPasswordMethod.java index 71218aaa076..8298036bb34 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithPasswordMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithPasswordMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Login Flow with Password Method */ @ApiModel(description = "Update Login Flow with Password Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowWithPasswordMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -71,6 +71,10 @@ public class UpdateLoginFlowWithPasswordMethod { @SerializedName(SERIALIZED_NAME_PASSWORD_IDENTIFIER) private String passwordIdentifier; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateLoginFlowWithPasswordMethod() { } @@ -188,6 +192,29 @@ public void setPasswordIdentifier(String passwordIdentifier) { this.passwordIdentifier = passwordIdentifier; } + + public UpdateLoginFlowWithPasswordMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -247,13 +274,14 @@ public boolean equals(Object o) { Objects.equals(this.identifier, updateLoginFlowWithPasswordMethod.identifier) && Objects.equals(this.method, updateLoginFlowWithPasswordMethod.method) && Objects.equals(this.password, updateLoginFlowWithPasswordMethod.password) && - Objects.equals(this.passwordIdentifier, updateLoginFlowWithPasswordMethod.passwordIdentifier)&& + Objects.equals(this.passwordIdentifier, updateLoginFlowWithPasswordMethod.passwordIdentifier) && + Objects.equals(this.transientPayload, updateLoginFlowWithPasswordMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateLoginFlowWithPasswordMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, identifier, method, password, passwordIdentifier, additionalProperties); + return Objects.hash(csrfToken, identifier, method, password, passwordIdentifier, transientPayload, additionalProperties); } @Override @@ -265,6 +293,7 @@ public String toString() { sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); sb.append(" passwordIdentifier: ").append(toIndentedString(passwordIdentifier)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -293,6 +322,7 @@ private String toIndentedString(Object o) { openapiFields.add("method"); openapiFields.add("password"); openapiFields.add("password_identifier"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithTotpMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithTotpMethod.java index eb459251f4a..270967cb73a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithTotpMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithTotpMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Login Flow with TOTP Method */ @ApiModel(description = "Update Login Flow with TOTP Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowWithTotpMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -63,6 +63,10 @@ public class UpdateLoginFlowWithTotpMethod { @SerializedName(SERIALIZED_NAME_TOTP_CODE) private String totpCode; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateLoginFlowWithTotpMethod() { } @@ -134,6 +138,29 @@ public void setTotpCode(String totpCode) { this.totpCode = totpCode; } + + public UpdateLoginFlowWithTotpMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,13 +218,14 @@ public boolean equals(Object o) { UpdateLoginFlowWithTotpMethod updateLoginFlowWithTotpMethod = (UpdateLoginFlowWithTotpMethod) o; return Objects.equals(this.csrfToken, updateLoginFlowWithTotpMethod.csrfToken) && Objects.equals(this.method, updateLoginFlowWithTotpMethod.method) && - Objects.equals(this.totpCode, updateLoginFlowWithTotpMethod.totpCode)&& + Objects.equals(this.totpCode, updateLoginFlowWithTotpMethod.totpCode) && + Objects.equals(this.transientPayload, updateLoginFlowWithTotpMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateLoginFlowWithTotpMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, method, totpCode, additionalProperties); + return Objects.hash(csrfToken, method, totpCode, transientPayload, additionalProperties); } @Override @@ -207,6 +235,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" totpCode: ").append(toIndentedString(totpCode)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -233,6 +262,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("method"); openapiFields.add("totp_code"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethod.java index 53ba2e34e98..180c0fe9efd 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Login Flow with WebAuthn Method */ @ApiModel(description = "Update Login Flow with WebAuthn Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateLoginFlowWithWebAuthnMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -63,6 +63,10 @@ public class UpdateLoginFlowWithWebAuthnMethod { @SerializedName(SERIALIZED_NAME_METHOD) private String method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_WEBAUTHN_LOGIN = "webauthn_login"; @SerializedName(SERIALIZED_NAME_WEBAUTHN_LOGIN) private String webauthnLogin; @@ -139,6 +143,29 @@ public void setMethod(String method) { } + public UpdateLoginFlowWithWebAuthnMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public UpdateLoginFlowWithWebAuthnMethod webauthnLogin(String webauthnLogin) { this.webauthnLogin = webauthnLogin; @@ -219,13 +246,14 @@ public boolean equals(Object o) { return Objects.equals(this.csrfToken, updateLoginFlowWithWebAuthnMethod.csrfToken) && Objects.equals(this.identifier, updateLoginFlowWithWebAuthnMethod.identifier) && Objects.equals(this.method, updateLoginFlowWithWebAuthnMethod.method) && + Objects.equals(this.transientPayload, updateLoginFlowWithWebAuthnMethod.transientPayload) && Objects.equals(this.webauthnLogin, updateLoginFlowWithWebAuthnMethod.webauthnLogin)&& Objects.equals(this.additionalProperties, updateLoginFlowWithWebAuthnMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, identifier, method, webauthnLogin, additionalProperties); + return Objects.hash(csrfToken, identifier, method, transientPayload, webauthnLogin, additionalProperties); } @Override @@ -235,6 +263,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" identifier: ").append(toIndentedString(identifier)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" webauthnLogin: ").append(toIndentedString(webauthnLogin)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); @@ -262,6 +291,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("identifier"); openapiFields.add("method"); + openapiFields.add("transient_payload"); openapiFields.add("webauthn_login"); // a set of required properties/fields (JSON key names) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowBody.java index 00d8a76463d..0abf68b55ee 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -59,7 +59,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRecoveryFlowBody extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(UpdateRecoveryFlowBody.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethod.java index c1719caeece..664857e02d9 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Recovery Flow with Code Method */ @ApiModel(description = "Update Recovery Flow with Code Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRecoveryFlowWithCodeMethod { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -114,6 +114,10 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_METHOD) private MethodEnum method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateRecoveryFlowWithCodeMethod() { } @@ -208,6 +212,29 @@ public void setMethod(MethodEnum method) { this.method = method; } + + public UpdateRecoveryFlowWithCodeMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -266,13 +293,14 @@ public boolean equals(Object o) { return Objects.equals(this.code, updateRecoveryFlowWithCodeMethod.code) && Objects.equals(this.csrfToken, updateRecoveryFlowWithCodeMethod.csrfToken) && Objects.equals(this.email, updateRecoveryFlowWithCodeMethod.email) && - Objects.equals(this.method, updateRecoveryFlowWithCodeMethod.method)&& + Objects.equals(this.method, updateRecoveryFlowWithCodeMethod.method) && + Objects.equals(this.transientPayload, updateRecoveryFlowWithCodeMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateRecoveryFlowWithCodeMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, csrfToken, email, method, additionalProperties); + return Objects.hash(code, csrfToken, email, method, transientPayload, additionalProperties); } @Override @@ -283,6 +311,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -310,6 +339,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("email"); openapiFields.add("method"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethod.java index 2450d1dc408..b1f4b277872 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Recovery Flow with Link Method */ @ApiModel(description = "Update Recovery Flow with Link Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRecoveryFlowWithLinkMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -110,6 +110,10 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_METHOD) private MethodEnum method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateRecoveryFlowWithLinkMethod() { } @@ -181,6 +185,29 @@ public void setMethod(MethodEnum method) { this.method = method; } + + public UpdateRecoveryFlowWithLinkMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -238,13 +265,14 @@ public boolean equals(Object o) { UpdateRecoveryFlowWithLinkMethod updateRecoveryFlowWithLinkMethod = (UpdateRecoveryFlowWithLinkMethod) o; return Objects.equals(this.csrfToken, updateRecoveryFlowWithLinkMethod.csrfToken) && Objects.equals(this.email, updateRecoveryFlowWithLinkMethod.email) && - Objects.equals(this.method, updateRecoveryFlowWithLinkMethod.method)&& + Objects.equals(this.method, updateRecoveryFlowWithLinkMethod.method) && + Objects.equals(this.transientPayload, updateRecoveryFlowWithLinkMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateRecoveryFlowWithLinkMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, email, method, additionalProperties); + return Objects.hash(csrfToken, email, method, transientPayload, additionalProperties); } @Override @@ -254,6 +282,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -280,6 +309,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("email"); openapiFields.add("method"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowBody.java index fb8a762c820..b1cd04eca16 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -61,7 +61,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRegistrationFlowBody extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(UpdateRegistrationFlowBody.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethod.java index 0be9e5b4bbd..2363c99bb2e 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Registration Flow with Code Method */ @ApiModel(description = "Update Registration Flow with Code Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRegistrationFlowWithCodeMethod { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethod.java index bdb8dc3b4e6..a481aa84b32 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Registration Flow with OpenID Connect Method */ @ApiModel(description = "Update Registration Flow with OpenID Connect Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRegistrationFlowWithOidcMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethod.java index f4d1ec738ec..48f89b5a799 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Registration Flow with Password Method */ @ApiModel(description = "Update Registration Flow with Password Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRegistrationFlowWithPasswordMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethod.java index 0f0433839bf..3d5bd11119a 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Registration Flow with WebAuthn Method */ @ApiModel(description = "Update Registration Flow with WebAuthn Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateRegistrationFlowWithWebAuthnMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowBody.java index 563bc3f2b81..f312d822a2e 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,7 +63,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowBody extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(UpdateSettingsFlowBody.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithLookupMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithLookupMethod.java index a8d49839230..db3475b19df 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithLookupMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithLookupMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Settings Flow with Lookup Method */ @ApiModel(description = "Update Settings Flow with Lookup Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowWithLookupMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -75,6 +75,10 @@ public class UpdateSettingsFlowWithLookupMethod { @SerializedName(SERIALIZED_NAME_METHOD) private String method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateSettingsFlowWithLookupMethod() { } @@ -215,6 +219,29 @@ public void setMethod(String method) { this.method = method; } + + public UpdateSettingsFlowWithLookupMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -275,13 +302,14 @@ public boolean equals(Object o) { Objects.equals(this.lookupSecretDisable, updateSettingsFlowWithLookupMethod.lookupSecretDisable) && Objects.equals(this.lookupSecretRegenerate, updateSettingsFlowWithLookupMethod.lookupSecretRegenerate) && Objects.equals(this.lookupSecretReveal, updateSettingsFlowWithLookupMethod.lookupSecretReveal) && - Objects.equals(this.method, updateSettingsFlowWithLookupMethod.method)&& + Objects.equals(this.method, updateSettingsFlowWithLookupMethod.method) && + Objects.equals(this.transientPayload, updateSettingsFlowWithLookupMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateSettingsFlowWithLookupMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, lookupSecretConfirm, lookupSecretDisable, lookupSecretRegenerate, lookupSecretReveal, method, additionalProperties); + return Objects.hash(csrfToken, lookupSecretConfirm, lookupSecretDisable, lookupSecretRegenerate, lookupSecretReveal, method, transientPayload, additionalProperties); } @Override @@ -294,6 +322,7 @@ public String toString() { sb.append(" lookupSecretRegenerate: ").append(toIndentedString(lookupSecretRegenerate)).append("\n"); sb.append(" lookupSecretReveal: ").append(toIndentedString(lookupSecretReveal)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -323,6 +352,7 @@ private String toIndentedString(Object o) { openapiFields.add("lookup_secret_regenerate"); openapiFields.add("lookup_secret_reveal"); openapiFields.add("method"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithOidcMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithOidcMethod.java index 2f6ec62502d..3b702f4d77d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithOidcMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithOidcMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Settings Flow with OpenID Connect Method */ @ApiModel(description = "Update Settings Flow with OpenID Connect Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowWithOidcMethod { public static final String SERIALIZED_NAME_FLOW = "flow"; @SerializedName(SERIALIZED_NAME_FLOW) @@ -67,6 +67,10 @@ public class UpdateSettingsFlowWithOidcMethod { @SerializedName(SERIALIZED_NAME_TRAITS) private Object traits; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_UNLINK = "unlink"; @SerializedName(SERIALIZED_NAME_UNLINK) private String unlink; @@ -170,6 +174,29 @@ public void setTraits(Object traits) { } + public UpdateSettingsFlowWithOidcMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public UpdateSettingsFlowWithOidcMethod unlink(String unlink) { this.unlink = unlink; @@ -274,6 +301,7 @@ public boolean equals(Object o) { Objects.equals(this.link, updateSettingsFlowWithOidcMethod.link) && Objects.equals(this.method, updateSettingsFlowWithOidcMethod.method) && Objects.equals(this.traits, updateSettingsFlowWithOidcMethod.traits) && + Objects.equals(this.transientPayload, updateSettingsFlowWithOidcMethod.transientPayload) && Objects.equals(this.unlink, updateSettingsFlowWithOidcMethod.unlink) && Objects.equals(this.upstreamParameters, updateSettingsFlowWithOidcMethod.upstreamParameters)&& Objects.equals(this.additionalProperties, updateSettingsFlowWithOidcMethod.additionalProperties); @@ -281,7 +309,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(flow, link, method, traits, unlink, upstreamParameters, additionalProperties); + return Objects.hash(flow, link, method, traits, transientPayload, unlink, upstreamParameters, additionalProperties); } @Override @@ -292,6 +320,7 @@ public String toString() { sb.append(" link: ").append(toIndentedString(link)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" traits: ").append(toIndentedString(traits)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" unlink: ").append(toIndentedString(unlink)).append("\n"); sb.append(" upstreamParameters: ").append(toIndentedString(upstreamParameters)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -321,6 +350,7 @@ private String toIndentedString(Object o) { openapiFields.add("link"); openapiFields.add("method"); openapiFields.add("traits"); + openapiFields.add("transient_payload"); openapiFields.add("unlink"); openapiFields.add("upstream_parameters"); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethod.java index 71c465d9211..a4a074b26a7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Settings Flow with Password Method */ @ApiModel(description = "Update Settings Flow with Password Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowWithPasswordMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -63,6 +63,10 @@ public class UpdateSettingsFlowWithPasswordMethod { @SerializedName(SERIALIZED_NAME_PASSWORD) private String password; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateSettingsFlowWithPasswordMethod() { } @@ -134,6 +138,29 @@ public void setPassword(String password) { this.password = password; } + + public UpdateSettingsFlowWithPasswordMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,13 +218,14 @@ public boolean equals(Object o) { UpdateSettingsFlowWithPasswordMethod updateSettingsFlowWithPasswordMethod = (UpdateSettingsFlowWithPasswordMethod) o; return Objects.equals(this.csrfToken, updateSettingsFlowWithPasswordMethod.csrfToken) && Objects.equals(this.method, updateSettingsFlowWithPasswordMethod.method) && - Objects.equals(this.password, updateSettingsFlowWithPasswordMethod.password)&& + Objects.equals(this.password, updateSettingsFlowWithPasswordMethod.password) && + Objects.equals(this.transientPayload, updateSettingsFlowWithPasswordMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateSettingsFlowWithPasswordMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, method, password, additionalProperties); + return Objects.hash(csrfToken, method, password, transientPayload, additionalProperties); } @Override @@ -207,6 +235,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -233,6 +262,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("method"); openapiFields.add("password"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithProfileMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithProfileMethod.java index ea566c4a219..549b556a5a2 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithProfileMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithProfileMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Settings Flow with Profile Method */ @ApiModel(description = "Update Settings Flow with Profile Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowWithProfileMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -63,6 +63,10 @@ public class UpdateSettingsFlowWithProfileMethod { @SerializedName(SERIALIZED_NAME_TRAITS) private Object traits; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateSettingsFlowWithProfileMethod() { } @@ -134,6 +138,29 @@ public void setTraits(Object traits) { this.traits = traits; } + + public UpdateSettingsFlowWithProfileMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -191,13 +218,14 @@ public boolean equals(Object o) { UpdateSettingsFlowWithProfileMethod updateSettingsFlowWithProfileMethod = (UpdateSettingsFlowWithProfileMethod) o; return Objects.equals(this.csrfToken, updateSettingsFlowWithProfileMethod.csrfToken) && Objects.equals(this.method, updateSettingsFlowWithProfileMethod.method) && - Objects.equals(this.traits, updateSettingsFlowWithProfileMethod.traits)&& + Objects.equals(this.traits, updateSettingsFlowWithProfileMethod.traits) && + Objects.equals(this.transientPayload, updateSettingsFlowWithProfileMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateSettingsFlowWithProfileMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, method, traits, additionalProperties); + return Objects.hash(csrfToken, method, traits, transientPayload, additionalProperties); } @Override @@ -207,6 +235,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" traits: ").append(toIndentedString(traits)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -233,6 +262,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("method"); openapiFields.add("traits"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithTotpMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithTotpMethod.java index b9de6015297..83700d63e4d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithTotpMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithTotpMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Settings Flow with TOTP Method */ @ApiModel(description = "Update Settings Flow with TOTP Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowWithTotpMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -67,6 +67,10 @@ public class UpdateSettingsFlowWithTotpMethod { @SerializedName(SERIALIZED_NAME_TOTP_UNLINK) private Boolean totpUnlink; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateSettingsFlowWithTotpMethod() { } @@ -161,6 +165,29 @@ public void setTotpUnlink(Boolean totpUnlink) { this.totpUnlink = totpUnlink; } + + public UpdateSettingsFlowWithTotpMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -219,13 +246,14 @@ public boolean equals(Object o) { return Objects.equals(this.csrfToken, updateSettingsFlowWithTotpMethod.csrfToken) && Objects.equals(this.method, updateSettingsFlowWithTotpMethod.method) && Objects.equals(this.totpCode, updateSettingsFlowWithTotpMethod.totpCode) && - Objects.equals(this.totpUnlink, updateSettingsFlowWithTotpMethod.totpUnlink)&& + Objects.equals(this.totpUnlink, updateSettingsFlowWithTotpMethod.totpUnlink) && + Objects.equals(this.transientPayload, updateSettingsFlowWithTotpMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateSettingsFlowWithTotpMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, method, totpCode, totpUnlink, additionalProperties); + return Objects.hash(csrfToken, method, totpCode, totpUnlink, transientPayload, additionalProperties); } @Override @@ -236,6 +264,7 @@ public String toString() { sb.append(" method: ").append(toIndentedString(method)).append("\n"); sb.append(" totpCode: ").append(toIndentedString(totpCode)).append("\n"); sb.append(" totpUnlink: ").append(toIndentedString(totpUnlink)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -263,6 +292,7 @@ private String toIndentedString(Object o) { openapiFields.add("method"); openapiFields.add("totp_code"); openapiFields.add("totp_unlink"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethod.java index a373832461e..0a053f88381 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Settings Flow with WebAuthn Method */ @ApiModel(description = "Update Settings Flow with WebAuthn Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSettingsFlowWithWebAuthnMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -59,6 +59,10 @@ public class UpdateSettingsFlowWithWebAuthnMethod { @SerializedName(SERIALIZED_NAME_METHOD) private String method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_WEBAUTHN_REGISTER = "webauthn_register"; @SerializedName(SERIALIZED_NAME_WEBAUTHN_REGISTER) private String webauthnRegister; @@ -120,6 +124,29 @@ public void setMethod(String method) { } + public UpdateSettingsFlowWithWebAuthnMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public UpdateSettingsFlowWithWebAuthnMethod webauthnRegister(String webauthnRegister) { this.webauthnRegister = webauthnRegister; @@ -245,6 +272,7 @@ public boolean equals(Object o) { UpdateSettingsFlowWithWebAuthnMethod updateSettingsFlowWithWebAuthnMethod = (UpdateSettingsFlowWithWebAuthnMethod) o; return Objects.equals(this.csrfToken, updateSettingsFlowWithWebAuthnMethod.csrfToken) && Objects.equals(this.method, updateSettingsFlowWithWebAuthnMethod.method) && + Objects.equals(this.transientPayload, updateSettingsFlowWithWebAuthnMethod.transientPayload) && Objects.equals(this.webauthnRegister, updateSettingsFlowWithWebAuthnMethod.webauthnRegister) && Objects.equals(this.webauthnRegisterDisplayname, updateSettingsFlowWithWebAuthnMethod.webauthnRegisterDisplayname) && Objects.equals(this.webauthnRemove, updateSettingsFlowWithWebAuthnMethod.webauthnRemove)&& @@ -253,7 +281,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(csrfToken, method, webauthnRegister, webauthnRegisterDisplayname, webauthnRemove, additionalProperties); + return Objects.hash(csrfToken, method, transientPayload, webauthnRegister, webauthnRegisterDisplayname, webauthnRemove, additionalProperties); } @Override @@ -262,6 +290,7 @@ public String toString() { sb.append("class UpdateSettingsFlowWithWebAuthnMethod {\n"); sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" webauthnRegister: ").append(toIndentedString(webauthnRegister)).append("\n"); sb.append(" webauthnRegisterDisplayname: ").append(toIndentedString(webauthnRegisterDisplayname)).append("\n"); sb.append(" webauthnRemove: ").append(toIndentedString(webauthnRemove)).append("\n"); @@ -290,6 +319,7 @@ private String toIndentedString(Object o) { openapiFields = new HashSet(); openapiFields.add("csrf_token"); openapiFields.add("method"); + openapiFields.add("transient_payload"); openapiFields.add("webauthn_register"); openapiFields.add("webauthn_register_displayname"); openapiFields.add("webauthn_remove"); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateSubscriptionBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateSubscriptionBody.java index 550428d2070..48388be2311 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateSubscriptionBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateSubscriptionBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -46,10 +46,9 @@ import sh.ory.JSON; /** - * Update Subscription Request Body + * UpdateSubscriptionBody */ -@ApiModel(description = "Update Subscription Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateSubscriptionBody { /** * monthly Monthly yearly Yearly diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowBody.java b/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowBody.java index 74866395a5c..9cde0a94f9f 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowBody.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowBody.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -59,7 +59,7 @@ import sh.ory.JSON; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateVerificationFlowBody extends AbstractOpenApiSchema { private static final Logger log = Logger.getLogger(UpdateVerificationFlowBody.class.getName()); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithCodeMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithCodeMethod.java index 32cdc913358..6c1956860c7 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithCodeMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithCodeMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * UpdateVerificationFlowWithCodeMethod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateVerificationFlowWithCodeMethod { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) @@ -113,6 +113,10 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_METHOD) private MethodEnum method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateVerificationFlowWithCodeMethod() { } @@ -207,6 +211,29 @@ public void setMethod(MethodEnum method) { this.method = method; } + + public UpdateVerificationFlowWithCodeMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -265,13 +292,14 @@ public boolean equals(Object o) { return Objects.equals(this.code, updateVerificationFlowWithCodeMethod.code) && Objects.equals(this.csrfToken, updateVerificationFlowWithCodeMethod.csrfToken) && Objects.equals(this.email, updateVerificationFlowWithCodeMethod.email) && - Objects.equals(this.method, updateVerificationFlowWithCodeMethod.method)&& + Objects.equals(this.method, updateVerificationFlowWithCodeMethod.method) && + Objects.equals(this.transientPayload, updateVerificationFlowWithCodeMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateVerificationFlowWithCodeMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(code, csrfToken, email, method, additionalProperties); + return Objects.hash(code, csrfToken, email, method, transientPayload, additionalProperties); } @Override @@ -282,6 +310,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -309,6 +338,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("email"); openapiFields.add("method"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithLinkMethod.java b/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithLinkMethod.java index 47ff616aea7..4786148ee55 100644 --- a/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithLinkMethod.java +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateVerificationFlowWithLinkMethod.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Update Verification Flow with Link Method */ @ApiModel(description = "Update Verification Flow with Link Method") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class UpdateVerificationFlowWithLinkMethod { public static final String SERIALIZED_NAME_CSRF_TOKEN = "csrf_token"; @SerializedName(SERIALIZED_NAME_CSRF_TOKEN) @@ -110,6 +110,10 @@ public MethodEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_METHOD) private MethodEnum method; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public UpdateVerificationFlowWithLinkMethod() { } @@ -181,6 +185,29 @@ public void setMethod(MethodEnum method) { this.method = method; } + + public UpdateVerificationFlowWithLinkMethod transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * Transient data to pass along to any webhooks + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "Transient data to pass along to any webhooks") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + /** * A container for additional, undeclared properties. * This is a holder for any undeclared properties as specified with @@ -238,13 +265,14 @@ public boolean equals(Object o) { UpdateVerificationFlowWithLinkMethod updateVerificationFlowWithLinkMethod = (UpdateVerificationFlowWithLinkMethod) o; return Objects.equals(this.csrfToken, updateVerificationFlowWithLinkMethod.csrfToken) && Objects.equals(this.email, updateVerificationFlowWithLinkMethod.email) && - Objects.equals(this.method, updateVerificationFlowWithLinkMethod.method)&& + Objects.equals(this.method, updateVerificationFlowWithLinkMethod.method) && + Objects.equals(this.transientPayload, updateVerificationFlowWithLinkMethod.transientPayload)&& Objects.equals(this.additionalProperties, updateVerificationFlowWithLinkMethod.additionalProperties); } @Override public int hashCode() { - return Objects.hash(csrfToken, email, method, additionalProperties); + return Objects.hash(csrfToken, email, method, transientPayload, additionalProperties); } @Override @@ -254,6 +282,7 @@ public String toString() { sb.append(" csrfToken: ").append(toIndentedString(csrfToken)).append("\n"); sb.append(" email: ").append(toIndentedString(email)).append("\n"); sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); sb.append("}"); return sb.toString(); @@ -280,6 +309,7 @@ private String toIndentedString(Object o) { openapiFields.add("csrf_token"); openapiFields.add("email"); openapiFields.add("method"); + openapiFields.add("transient_payload"); // a set of required properties/fields (JSON key names) openapiRequiredFields = new HashSet(); diff --git a/clients/client/java/src/main/java/sh/ory/model/UpdateWorkspacePayload.java b/clients/client/java/src/main/java/sh/ory/model/UpdateWorkspacePayload.java new file mode 100644 index 00000000000..0ff0cc198ed --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/UpdateWorkspacePayload.java @@ -0,0 +1,291 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * UpdateWorkspacePayload + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class UpdateWorkspacePayload { + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public UpdateWorkspacePayload() { + } + + public UpdateWorkspacePayload name(String name) { + + this.name = name; + return this; + } + + /** + * The name of the workspace. + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "The name of the workspace.") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the UpdateWorkspacePayload instance itself + */ + public UpdateWorkspacePayload putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWorkspacePayload updateWorkspacePayload = (UpdateWorkspacePayload) o; + return Objects.equals(this.name, updateWorkspacePayload.name)&& + Objects.equals(this.additionalProperties, updateWorkspacePayload.additionalProperties); + } + + @Override + public int hashCode() { + return Objects.hash(name, additionalProperties); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWorkspacePayload {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("name"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("name"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to UpdateWorkspacePayload + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!UpdateWorkspacePayload.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in UpdateWorkspacePayload is not found in the empty JSON string", UpdateWorkspacePayload.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : UpdateWorkspacePayload.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!UpdateWorkspacePayload.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'UpdateWorkspacePayload' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(UpdateWorkspacePayload.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, UpdateWorkspacePayload value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public UpdateWorkspacePayload read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + UpdateWorkspacePayload instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of UpdateWorkspacePayload given an JSON string + * + * @param jsonString JSON string + * @return An instance of UpdateWorkspacePayload + * @throws IOException if the JSON string is invalid with respect to UpdateWorkspacePayload + */ + public static UpdateWorkspacePayload fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, UpdateWorkspacePayload.class); + } + + /** + * Convert an instance of UpdateWorkspacePayload to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/main/java/sh/ory/model/Usage.java b/clients/client/java/src/main/java/sh/ory/model/Usage.java index 68687ccac7f..db36950e7b3 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Usage.java +++ b/clients/client/java/src/main/java/sh/ory/model/Usage.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * Usage */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Usage { public static final String SERIALIZED_NAME_GENERIC_USAGE = "GenericUsage"; @SerializedName(SERIALIZED_NAME_GENERIC_USAGE) diff --git a/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialPrimingResponse.java b/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialPrimingResponse.java index 793e32969e5..05c35090636 100644 --- a/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialPrimingResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialPrimingResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * VerifiableCredentialPrimingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class VerifiableCredentialPrimingResponse { public static final String SERIALIZED_NAME_C_NONCE = "c_nonce"; @SerializedName(SERIALIZED_NAME_C_NONCE) diff --git a/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialProof.java b/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialProof.java index 58cfa379278..552b4d0cf0d 100644 --- a/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialProof.java +++ b/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialProof.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * VerifiableCredentialProof */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class VerifiableCredentialProof { public static final String SERIALIZED_NAME_JWT = "jwt"; @SerializedName(SERIALIZED_NAME_JWT) diff --git a/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialResponse.java b/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialResponse.java index 6beb4929d06..44963559fe0 100644 --- a/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialResponse.java +++ b/clients/client/java/src/main/java/sh/ory/model/VerifiableCredentialResponse.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * VerifiableCredentialResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class VerifiableCredentialResponse { public static final String SERIALIZED_NAME_CREDENTIAL_DRAFT00 = "credential_draft_00"; @SerializedName(SERIALIZED_NAME_CREDENTIAL_DRAFT00) diff --git a/clients/client/java/src/main/java/sh/ory/model/VerifiableIdentityAddress.java b/clients/client/java/src/main/java/sh/ory/model/VerifiableIdentityAddress.java index 534291c76de..9feaa5432a6 100644 --- a/clients/client/java/src/main/java/sh/ory/model/VerifiableIdentityAddress.java +++ b/clients/client/java/src/main/java/sh/ory/model/VerifiableIdentityAddress.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * VerifiableAddress is an identity's verifiable address */ @ApiModel(description = "VerifiableAddress is an identity's verifiable address") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class VerifiableIdentityAddress { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/VerificationFlow.java b/clients/client/java/src/main/java/sh/ory/model/VerificationFlow.java index f040415fa47..dbff52a1001 100644 --- a/clients/client/java/src/main/java/sh/ory/model/VerificationFlow.java +++ b/clients/client/java/src/main/java/sh/ory/model/VerificationFlow.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Used to verify an out-of-band communication channel such as an email address or a phone number. For more information head over to: https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation */ @ApiModel(description = "Used to verify an out-of-band communication channel such as an email address or a phone number. For more information head over to: https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class VerificationFlow { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) @@ -81,6 +81,10 @@ public class VerificationFlow { @SerializedName(SERIALIZED_NAME_STATE) private Object state = null; + public static final String SERIALIZED_NAME_TRANSIENT_PAYLOAD = "transient_payload"; + @SerializedName(SERIALIZED_NAME_TRANSIENT_PAYLOAD) + private Object transientPayload; + public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) private String type; @@ -253,6 +257,29 @@ public void setState(Object state) { } + public VerificationFlow transientPayload(Object transientPayload) { + + this.transientPayload = transientPayload; + return this; + } + + /** + * TransientPayload is used to pass data from the verification flow to hooks and email templates + * @return transientPayload + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "TransientPayload is used to pass data from the verification flow to hooks and email templates") + + public Object getTransientPayload() { + return transientPayload; + } + + + public void setTransientPayload(Object transientPayload) { + this.transientPayload = transientPayload; + } + + public VerificationFlow type(String type) { this.type = type; @@ -360,6 +387,7 @@ public boolean equals(Object o) { Objects.equals(this.requestUrl, verificationFlow.requestUrl) && Objects.equals(this.returnTo, verificationFlow.returnTo) && Objects.equals(this.state, verificationFlow.state) && + Objects.equals(this.transientPayload, verificationFlow.transientPayload) && Objects.equals(this.type, verificationFlow.type) && Objects.equals(this.ui, verificationFlow.ui)&& Objects.equals(this.additionalProperties, verificationFlow.additionalProperties); @@ -367,7 +395,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(active, expiresAt, id, issuedAt, requestUrl, returnTo, state, type, ui, additionalProperties); + return Objects.hash(active, expiresAt, id, issuedAt, requestUrl, returnTo, state, transientPayload, type, ui, additionalProperties); } @Override @@ -381,6 +409,7 @@ public String toString() { sb.append(" requestUrl: ").append(toIndentedString(requestUrl)).append("\n"); sb.append(" returnTo: ").append(toIndentedString(returnTo)).append("\n"); sb.append(" state: ").append(toIndentedString(state)).append("\n"); + sb.append(" transientPayload: ").append(toIndentedString(transientPayload)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" ui: ").append(toIndentedString(ui)).append("\n"); sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); @@ -413,6 +442,7 @@ private String toIndentedString(Object o) { openapiFields.add("request_url"); openapiFields.add("return_to"); openapiFields.add("state"); + openapiFields.add("transient_payload"); openapiFields.add("type"); openapiFields.add("ui"); diff --git a/clients/client/java/src/main/java/sh/ory/model/VerificationFlowState.java b/clients/client/java/src/main/java/sh/ory/model/VerificationFlowState.java index cd960d7375a..395a7c0d3a4 100644 --- a/clients/client/java/src/main/java/sh/ory/model/VerificationFlowState.java +++ b/clients/client/java/src/main/java/sh/ory/model/VerificationFlowState.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/main/java/sh/ory/model/Version.java b/clients/client/java/src/main/java/sh/ory/model/Version.java index 581c98571fb..3b237b03969 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Version.java +++ b/clients/client/java/src/main/java/sh/ory/model/Version.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Version */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Version { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/clients/client/java/src/main/java/sh/ory/model/Warning.java b/clients/client/java/src/main/java/sh/ory/model/Warning.java index 18fd513e0fd..f9e1479bb68 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Warning.java +++ b/clients/client/java/src/main/java/sh/ory/model/Warning.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Warning */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Warning { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/clients/client/java/src/main/java/sh/ory/model/Workspace.java b/clients/client/java/src/main/java/sh/ory/model/Workspace.java index 551f01d747b..5537a0a3d47 100644 --- a/clients/client/java/src/main/java/sh/ory/model/Workspace.java +++ b/clients/client/java/src/main/java/sh/ory/model/Workspace.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * Workspace */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-01-11T16:56:26.893672652Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") public class Workspace { public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; @SerializedName(SERIALIZED_NAME_CREATED_AT) diff --git a/clients/client/java/src/main/java/sh/ory/model/WorkspaceMeta.java b/clients/client/java/src/main/java/sh/ory/model/WorkspaceMeta.java new file mode 100644 index 00000000000..ee458b94e25 --- /dev/null +++ b/clients/client/java/src/main/java/sh/ory/model/WorkspaceMeta.java @@ -0,0 +1,466 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import java.util.Objects; +import java.util.Arrays; +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; + +import com.google.gson.Gson; +import com.google.gson.GsonBuilder; +import com.google.gson.JsonArray; +import com.google.gson.JsonDeserializationContext; +import com.google.gson.JsonDeserializer; +import com.google.gson.JsonElement; +import com.google.gson.JsonObject; +import com.google.gson.JsonParseException; +import com.google.gson.TypeAdapterFactory; +import com.google.gson.reflect.TypeToken; + +import java.lang.reflect.Type; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Map.Entry; +import java.util.Set; + +import sh.ory.JSON; + +/** + * WorkspaceMeta + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-03-08T12:29:59.344544236Z[Etc/UTC]") +public class WorkspaceMeta { + public static final String SERIALIZED_NAME_CREATED_AT = "created_at"; + @SerializedName(SERIALIZED_NAME_CREATED_AT) + private OffsetDateTime createdAt; + + public static final String SERIALIZED_NAME_ID = "id"; + @SerializedName(SERIALIZED_NAME_ID) + private String id; + + public static final String SERIALIZED_NAME_NAME = "name"; + @SerializedName(SERIALIZED_NAME_NAME) + private String name; + + public static final String SERIALIZED_NAME_SUBSCRIPTION_ID = "subscription_id"; + @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_ID) + private String subscriptionId; + + public static final String SERIALIZED_NAME_SUBSCRIPTION_PLAN = "subscription_plan"; + @SerializedName(SERIALIZED_NAME_SUBSCRIPTION_PLAN) + private String subscriptionPlan; + + public static final String SERIALIZED_NAME_UPDATED_AT = "updated_at"; + @SerializedName(SERIALIZED_NAME_UPDATED_AT) + private OffsetDateTime updatedAt; + + public WorkspaceMeta() { + } + + public WorkspaceMeta createdAt(OffsetDateTime createdAt) { + + this.createdAt = createdAt; + return this; + } + + /** + * Get createdAt + * @return createdAt + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + + + public WorkspaceMeta id(String id) { + + this.id = id; + return this; + } + + /** + * Get id + * @return id + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getId() { + return id; + } + + + public void setId(String id) { + this.id = id; + } + + + public WorkspaceMeta name(String name) { + + this.name = name; + return this; + } + + /** + * Get name + * @return name + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public String getName() { + return name; + } + + + public void setName(String name) { + this.name = name; + } + + + public WorkspaceMeta subscriptionId(String subscriptionId) { + + this.subscriptionId = subscriptionId; + return this; + } + + /** + * Get subscriptionId + * @return subscriptionId + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getSubscriptionId() { + return subscriptionId; + } + + + public void setSubscriptionId(String subscriptionId) { + this.subscriptionId = subscriptionId; + } + + + public WorkspaceMeta subscriptionPlan(String subscriptionPlan) { + + this.subscriptionPlan = subscriptionPlan; + return this; + } + + /** + * Get subscriptionPlan + * @return subscriptionPlan + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public String getSubscriptionPlan() { + return subscriptionPlan; + } + + + public void setSubscriptionPlan(String subscriptionPlan) { + this.subscriptionPlan = subscriptionPlan; + } + + + public WorkspaceMeta updatedAt(OffsetDateTime updatedAt) { + + this.updatedAt = updatedAt; + return this; + } + + /** + * Get updatedAt + * @return updatedAt + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public OffsetDateTime getUpdatedAt() { + return updatedAt; + } + + + public void setUpdatedAt(OffsetDateTime updatedAt) { + this.updatedAt = updatedAt; + } + + /** + * A container for additional, undeclared properties. + * This is a holder for any undeclared properties as specified with + * the 'additionalProperties' keyword in the OAS document. + */ + private Map additionalProperties; + + /** + * Set the additional (undeclared) property with the specified name and value. + * If the property does not already exist, create it otherwise replace it. + * + * @param key name of the property + * @param value value of the property + * @return the WorkspaceMeta instance itself + */ + public WorkspaceMeta putAdditionalProperty(String key, Object value) { + if (this.additionalProperties == null) { + this.additionalProperties = new HashMap(); + } + this.additionalProperties.put(key, value); + return this; + } + + /** + * Return the additional (undeclared) property. + * + * @return a map of objects + */ + public Map getAdditionalProperties() { + return additionalProperties; + } + + /** + * Return the additional (undeclared) property with the specified name. + * + * @param key name of the property + * @return an object + */ + public Object getAdditionalProperty(String key) { + if (this.additionalProperties == null) { + return null; + } + return this.additionalProperties.get(key); + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WorkspaceMeta workspaceMeta = (WorkspaceMeta) o; + return Objects.equals(this.createdAt, workspaceMeta.createdAt) && + Objects.equals(this.id, workspaceMeta.id) && + Objects.equals(this.name, workspaceMeta.name) && + Objects.equals(this.subscriptionId, workspaceMeta.subscriptionId) && + Objects.equals(this.subscriptionPlan, workspaceMeta.subscriptionPlan) && + Objects.equals(this.updatedAt, workspaceMeta.updatedAt)&& + Objects.equals(this.additionalProperties, workspaceMeta.additionalProperties); + } + + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + + @Override + public int hashCode() { + return Objects.hash(createdAt, id, name, subscriptionId, subscriptionPlan, updatedAt, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WorkspaceMeta {\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" subscriptionId: ").append(toIndentedString(subscriptionId)).append("\n"); + sb.append(" subscriptionPlan: ").append(toIndentedString(subscriptionPlan)).append("\n"); + sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); + sb.append(" additionalProperties: ").append(toIndentedString(additionalProperties)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + + + public static HashSet openapiFields; + public static HashSet openapiRequiredFields; + + static { + // a set of all properties/fields (JSON key names) + openapiFields = new HashSet(); + openapiFields.add("created_at"); + openapiFields.add("id"); + openapiFields.add("name"); + openapiFields.add("subscription_id"); + openapiFields.add("subscription_plan"); + openapiFields.add("updated_at"); + + // a set of required properties/fields (JSON key names) + openapiRequiredFields = new HashSet(); + openapiRequiredFields.add("created_at"); + openapiRequiredFields.add("id"); + openapiRequiredFields.add("name"); + openapiRequiredFields.add("updated_at"); + } + + /** + * Validates the JSON Object and throws an exception if issues found + * + * @param jsonObj JSON Object + * @throws IOException if the JSON Object is invalid with respect to WorkspaceMeta + */ + public static void validateJsonObject(JsonObject jsonObj) throws IOException { + if (jsonObj == null) { + if (!WorkspaceMeta.openapiRequiredFields.isEmpty()) { // has required fields but JSON object is null + throw new IllegalArgumentException(String.format("The required field(s) %s in WorkspaceMeta is not found in the empty JSON string", WorkspaceMeta.openapiRequiredFields.toString())); + } + } + + // check to make sure all required properties/fields are present in the JSON string + for (String requiredField : WorkspaceMeta.openapiRequiredFields) { + if (jsonObj.get(requiredField) == null) { + throw new IllegalArgumentException(String.format("The required field `%s` is not found in the JSON string: %s", requiredField, jsonObj.toString())); + } + } + if (!jsonObj.get("id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id").toString())); + } + if (!jsonObj.get("name").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `name` to be a primitive type in the JSON string but got `%s`", jsonObj.get("name").toString())); + } + if ((jsonObj.get("subscription_id") != null && !jsonObj.get("subscription_id").isJsonNull()) && !jsonObj.get("subscription_id").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subscription_id` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subscription_id").toString())); + } + if ((jsonObj.get("subscription_plan") != null && !jsonObj.get("subscription_plan").isJsonNull()) && !jsonObj.get("subscription_plan").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `subscription_plan` to be a primitive type in the JSON string but got `%s`", jsonObj.get("subscription_plan").toString())); + } + } + + public static class CustomTypeAdapterFactory implements TypeAdapterFactory { + @SuppressWarnings("unchecked") + @Override + public TypeAdapter create(Gson gson, TypeToken type) { + if (!WorkspaceMeta.class.isAssignableFrom(type.getRawType())) { + return null; // this class only serializes 'WorkspaceMeta' and its subtypes + } + final TypeAdapter elementAdapter = gson.getAdapter(JsonElement.class); + final TypeAdapter thisAdapter + = gson.getDelegateAdapter(this, TypeToken.get(WorkspaceMeta.class)); + + return (TypeAdapter) new TypeAdapter() { + @Override + public void write(JsonWriter out, WorkspaceMeta value) throws IOException { + JsonObject obj = thisAdapter.toJsonTree(value).getAsJsonObject(); + obj.remove("additionalProperties"); + // serialize additonal properties + if (value.getAdditionalProperties() != null) { + for (Map.Entry entry : value.getAdditionalProperties().entrySet()) { + if (entry.getValue() instanceof String) + obj.addProperty(entry.getKey(), (String) entry.getValue()); + else if (entry.getValue() instanceof Number) + obj.addProperty(entry.getKey(), (Number) entry.getValue()); + else if (entry.getValue() instanceof Boolean) + obj.addProperty(entry.getKey(), (Boolean) entry.getValue()); + else if (entry.getValue() instanceof Character) + obj.addProperty(entry.getKey(), (Character) entry.getValue()); + else { + obj.add(entry.getKey(), gson.toJsonTree(entry.getValue()).getAsJsonObject()); + } + } + } + elementAdapter.write(out, obj); + } + + @Override + public WorkspaceMeta read(JsonReader in) throws IOException { + JsonObject jsonObj = elementAdapter.read(in).getAsJsonObject(); + validateJsonObject(jsonObj); + // store additional fields in the deserialized instance + WorkspaceMeta instance = thisAdapter.fromJsonTree(jsonObj); + for (Map.Entry entry : jsonObj.entrySet()) { + if (!openapiFields.contains(entry.getKey())) { + if (entry.getValue().isJsonPrimitive()) { // primitive type + if (entry.getValue().getAsJsonPrimitive().isString()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsString()); + else if (entry.getValue().getAsJsonPrimitive().isNumber()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsNumber()); + else if (entry.getValue().getAsJsonPrimitive().isBoolean()) + instance.putAdditionalProperty(entry.getKey(), entry.getValue().getAsBoolean()); + else + throw new IllegalArgumentException(String.format("The field `%s` has unknown primitive type. Value: %s", entry.getKey(), entry.getValue().toString())); + } else if (entry.getValue().isJsonArray()) { + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), List.class)); + } else { // JSON object + instance.putAdditionalProperty(entry.getKey(), gson.fromJson(entry.getValue(), HashMap.class)); + } + } + } + return instance; + } + + }.nullSafe(); + } + } + + /** + * Create an instance of WorkspaceMeta given an JSON string + * + * @param jsonString JSON string + * @return An instance of WorkspaceMeta + * @throws IOException if the JSON string is invalid with respect to WorkspaceMeta + */ + public static WorkspaceMeta fromJson(String jsonString) throws IOException { + return JSON.getGson().fromJson(jsonString, WorkspaceMeta.class); + } + + /** + * Convert an instance of WorkspaceMeta to an JSON string + * + * @return JSON string + */ + public String toJson() { + return JSON.getGson().toJson(this); + } +} + diff --git a/clients/client/java/src/test/java/sh/ory/api/CourierApiTest.java b/clients/client/java/src/test/java/sh/ory/api/CourierApiTest.java index faef2382d67..f981fd43061 100644 --- a/clients/client/java/src/test/java/sh/ory/api/CourierApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/CourierApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/EventsApiTest.java b/clients/client/java/src/test/java/sh/ory/api/EventsApiTest.java index e64e3a673ab..a343a21fb41 100644 --- a/clients/client/java/src/test/java/sh/ory/api/EventsApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/EventsApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/FrontendApiTest.java b/clients/client/java/src/test/java/sh/ory/api/FrontendApiTest.java index 4e1c857263d..9383c2904cd 100644 --- a/clients/client/java/src/test/java/sh/ory/api/FrontendApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/FrontendApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -64,7 +64,8 @@ public void createBrowserLoginFlowTest() throws ApiException { String cookie = null; String loginChallenge = null; String organization = null; - LoginFlow response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); + String via = null; + LoginFlow response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via); // TODO: test validations } @@ -157,7 +158,8 @@ public void createNativeLoginFlowTest() throws ApiException { String xSessionToken = null; Boolean returnSessionTokenExchangeCode = null; String returnTo = null; - LoginFlow response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + String via = null; + LoginFlow response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); // TODO: test validations } diff --git a/clients/client/java/src/test/java/sh/ory/api/IdentityApiTest.java b/clients/client/java/src/test/java/sh/ory/api/IdentityApiTest.java index 3ef51ce53d8..6f169759f27 100644 --- a/clients/client/java/src/test/java/sh/ory/api/IdentityApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/IdentityApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -94,8 +94,9 @@ public void createRecoveryCodeForIdentityTest() throws ApiException { */ @Test public void createRecoveryLinkForIdentityTest() throws ApiException { + String returnTo = null; CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody = null; - RecoveryLinkForIdentity response = api.createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody); + RecoveryLinkForIdentity response = api.createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody); // TODO: test validations } @@ -228,10 +229,11 @@ public void listIdentitiesTest() throws ApiException { Long pageSize = null; String pageToken = null; String consistency = null; - List idsFilter = null; + List ids = null; String credentialsIdentifier = null; String previewCredentialsIdentifierSimilar = null; - List response = api.listIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar); + List includeCredential = null; + List response = api.listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential); // TODO: test validations } diff --git a/clients/client/java/src/test/java/sh/ory/api/JwkApiTest.java b/clients/client/java/src/test/java/sh/ory/api/JwkApiTest.java index 784e556b1c7..7a6a354b150 100644 --- a/clients/client/java/src/test/java/sh/ory/api/JwkApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/JwkApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/MetadataApiTest.java b/clients/client/java/src/test/java/sh/ory/api/MetadataApiTest.java index f2200908338..a36206dd1d0 100644 --- a/clients/client/java/src/test/java/sh/ory/api/MetadataApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/MetadataApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/OAuth2ApiTest.java b/clients/client/java/src/test/java/sh/ory/api/OAuth2ApiTest.java index 85db54d94f3..fa0e2010354 100644 --- a/clients/client/java/src/test/java/sh/ory/api/OAuth2ApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/OAuth2ApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/OidcApiTest.java b/clients/client/java/src/test/java/sh/ory/api/OidcApiTest.java index 308670b7f0b..aeccca1e8c3 100644 --- a/clients/client/java/src/test/java/sh/ory/api/OidcApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/OidcApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/PermissionApiTest.java b/clients/client/java/src/test/java/sh/ory/api/PermissionApiTest.java index edfeb9caa11..027fbd3906f 100644 --- a/clients/client/java/src/test/java/sh/ory/api/PermissionApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/PermissionApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/ProjectApiTest.java b/clients/client/java/src/test/java/sh/ory/api/ProjectApiTest.java index 4ca17b1b5bd..47b76e12a44 100644 --- a/clients/client/java/src/test/java/sh/ory/api/ProjectApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/ProjectApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -15,7 +15,6 @@ import sh.ory.ApiException; import sh.ory.model.ActiveProjectInConsole; -import sh.ory.model.CloudAccount; import sh.ory.model.CreateProjectApiKeyRequest; import sh.ory.model.CreateProjectBody; import sh.ory.model.ErrorGeneric; @@ -29,6 +28,7 @@ import sh.ory.model.OrganizationBody; import sh.ory.model.Project; import sh.ory.model.ProjectApiKey; +import sh.ory.model.ProjectMember; import sh.ory.model.ProjectMetadata; import sh.ory.model.SetActiveProjectInConsoleBody; import sh.ory.model.SetProject; @@ -169,7 +169,7 @@ public void getProjectTest() throws ApiException { @Test public void getProjectMembersTest() throws ApiException { String project = null; - List response = api.getProjectMembers(project); + List response = api.getProjectMembers(project); // TODO: test validations } diff --git a/clients/client/java/src/test/java/sh/ory/api/RelationshipApiTest.java b/clients/client/java/src/test/java/sh/ory/api/RelationshipApiTest.java index 56152c9a3f1..af01def2d31 100644 --- a/clients/client/java/src/test/java/sh/ory/api/RelationshipApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/RelationshipApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/api/WellknownApiTest.java b/clients/client/java/src/test/java/sh/ory/api/WellknownApiTest.java index 657af4f2768..231ff3ae91e 100644 --- a/clients/client/java/src/test/java/sh/ory/api/WellknownApiTest.java +++ b/clients/client/java/src/test/java/sh/ory/api/WellknownApiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestSessionTest.java b/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestSessionTest.java index fa2811aef7f..5b3a43c58af 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestSessionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestSessionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestTest.java b/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestTest.java index 4b73c7cbf93..4b86da0d321 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2ConsentRequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -43,6 +43,14 @@ public void testAcceptOAuth2ConsentRequest() { // TODO: test AcceptOAuth2ConsentRequest } + /** + * Test the property 'context' + */ + @Test + public void contextTest() { + // TODO: test context + } + /** * Test the property 'grantAccessTokenAudience' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2LoginRequestTest.java b/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2LoginRequestTest.java index a16653eecd9..1654d99e91c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2LoginRequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AcceptOAuth2LoginRequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ActiveProjectInConsoleTest.java b/clients/client/java/src/test/java/sh/ory/model/ActiveProjectInConsoleTest.java index 9f4e2d29b67..d3a429898c0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ActiveProjectInConsoleTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ActiveProjectInConsoleTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/AttributeFilterTest.java b/clients/client/java/src/test/java/sh/ory/model/AttributeFilterTest.java index fcedfb60118..a7737353cf9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AttributeFilterTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AttributeFilterTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/AttributeTest.java b/clients/client/java/src/test/java/sh/ory/model/AttributeTest.java index 07518828dd9..f87b63658c8 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AttributeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AttributeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/AttributesCountDatapointTest.java b/clients/client/java/src/test/java/sh/ory/model/AttributesCountDatapointTest.java index 28ca63f0001..7123282ac6c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AttributesCountDatapointTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AttributesCountDatapointTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/AuthenticatorAssuranceLevelTest.java b/clients/client/java/src/test/java/sh/ory/model/AuthenticatorAssuranceLevelTest.java index 04995f1311c..f488128ac58 100644 --- a/clients/client/java/src/test/java/sh/ory/model/AuthenticatorAssuranceLevelTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/AuthenticatorAssuranceLevelTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/BatchPatchIdentitiesResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/BatchPatchIdentitiesResponseTest.java index 14bd8173999..a1b8be11cc2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/BatchPatchIdentitiesResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/BatchPatchIdentitiesResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CheckOplSyntaxResultTest.java b/clients/client/java/src/test/java/sh/ory/model/CheckOplSyntaxResultTest.java index 8d5c5fe78cd..f853093545a 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CheckOplSyntaxResultTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CheckOplSyntaxResultTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CheckPermissionResultTest.java b/clients/client/java/src/test/java/sh/ory/model/CheckPermissionResultTest.java index 5459660d998..0edd34725f5 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CheckPermissionResultTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CheckPermissionResultTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CloudAccountTest.java b/clients/client/java/src/test/java/sh/ory/model/CloudAccountTest.java index b7017b9ba70..ac719f54db9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CloudAccountTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CloudAccountTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ConsistencyRequestParametersTest.java b/clients/client/java/src/test/java/sh/ory/model/ConsistencyRequestParametersTest.java index ffe135c5f81..fd795e2452d 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ConsistencyRequestParametersTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ConsistencyRequestParametersTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiFlowTest.java index 2214e8fb109..43b53defc5c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiTest.java index eae6aca5d07..cde21c69535 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithRecoveryUiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithSetOrySessionTokenTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithSetOrySessionTokenTest.java index 721bae9e74c..1198bf58a88 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithSetOrySessionTokenTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithSetOrySessionTokenTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiFlowTest.java index 24ffef8231a..60f8f7a8a8e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiTest.java index 6e5eaa5b891..639480d80b9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithSettingsUiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithTest.java index d236c548125..befc7afd516 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiFlowTest.java index 4014294002b..4b4d837fc7d 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiTest.java b/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiTest.java index b604c70a74a..4e4531a3fff 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ContinueWithVerificationUiTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CourierMessageStatusTest.java b/clients/client/java/src/test/java/sh/ory/model/CourierMessageStatusTest.java index b8c41630e12..95a175238d1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CourierMessageStatusTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CourierMessageStatusTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CourierMessageTypeTest.java b/clients/client/java/src/test/java/sh/ory/model/CourierMessageTypeTest.java index 8aed58b1b1c..d70c71d5dc6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CourierMessageTypeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CourierMessageTypeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateCustomDomainBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateCustomDomainBodyTest.java index 6c5fecd2cbd..e24e6eab7a2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateCustomDomainBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateCustomDomainBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateEventStreamBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateEventStreamBodyTest.java index c3ec53a9b77..bf97e94513c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateEventStreamBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateEventStreamBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateIdentityBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateIdentityBodyTest.java index 8e1fa6fa5a3..0fe4098f926 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateIdentityBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateIdentityBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,6 @@ import java.util.ArrayList; import java.util.List; import org.openapitools.jackson.nullable.JsonNullable; -import sh.ory.model.IdentityState; import sh.ory.model.IdentityWithCredentials; import sh.ory.model.RecoveryIdentityAddress; import sh.ory.model.VerifiableIdentityAddress; diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateInviteResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateInviteResponseTest.java index dc95c1a3a0f..e4e29311aaa 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateInviteResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateInviteResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateJsonWebKeySetTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateJsonWebKeySetTest.java index 9822521d47d..8058dee3708 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateJsonWebKeySetTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateJsonWebKeySetTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateProjectApiKeyRequestTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateProjectApiKeyRequestTest.java index 2e709cf979f..f6662a9ec1c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateProjectApiKeyRequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateProjectApiKeyRequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateProjectBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateProjectBodyTest.java index 3e394d92c25..4adcd66331c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateProjectBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateProjectBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -40,6 +40,14 @@ public void testCreateProjectBody() { // TODO: test CreateProjectBody } + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + /** * Test the property 'name' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateProjectBrandingTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateProjectBrandingTest.java index 95e81d1d0fe..8eacd964a8b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateProjectBrandingTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateProjectBrandingTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateProjectMemberInviteBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateProjectMemberInviteBodyTest.java index 762b26c14cf..188bf5d09e2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateProjectMemberInviteBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateProjectMemberInviteBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateProjectNormalizedPayloadTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateProjectNormalizedPayloadTest.java index 30ba9160ca3..bff983be7f2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateProjectNormalizedPayloadTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateProjectNormalizedPayloadTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -65,6 +65,22 @@ public void disableAccountExperienceWelcomeScreenTest() { // TODO: test disableAccountExperienceWelcomeScreen } + /** + * Test the property 'enableAxV2' + */ + @Test + public void enableAxV2Test() { + // TODO: test enableAxV2 + } + + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + /** * Test the property 'hydraOauth2AllowedTopLevelClaims' */ @@ -113,6 +129,14 @@ public void hydraOauth2GrantJwtMaxTtlTest() { // TODO: test hydraOauth2GrantJwtMaxTtl } + /** + * Test the property 'hydraOauth2MirrorTopLevelClaims' + */ + @Test + public void hydraOauth2MirrorTopLevelClaimsTest() { + // TODO: test hydraOauth2MirrorTopLevelClaims + } + /** * Test the property 'hydraOauth2PkceEnforced' */ @@ -577,6 +601,14 @@ public void kratosCourierTemplatesLoginCodeValidEmailSubjectTest() { // TODO: test kratosCourierTemplatesLoginCodeValidEmailSubject } + /** + * Test the property 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' + */ + @Test + public void kratosCourierTemplatesLoginCodeValidSmsBodyPlaintextTest() { + // TODO: test kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + } + /** * Test the property 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' */ @@ -1257,6 +1289,14 @@ public void kratosSelfserviceMethodsCodeEnabledTest() { // TODO: test kratosSelfserviceMethodsCodeEnabled } + /** + * Test the property 'kratosSelfserviceMethodsCodeMfaEnabled' + */ + @Test + public void kratosSelfserviceMethodsCodeMfaEnabledTest() { + // TODO: test kratosSelfserviceMethodsCodeMfaEnabled + } + /** * Test the property 'kratosSelfserviceMethodsCodePasswordlessEnabled' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryCodeForIdentityBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryCodeForIdentityBodyTest.java index 7c648ff41a5..c52de212527 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryCodeForIdentityBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryCodeForIdentityBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryLinkForIdentityBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryLinkForIdentityBodyTest.java index 627768798e7..6edf6ff668e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryLinkForIdentityBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateRecoveryLinkForIdentityBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateRelationshipBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateRelationshipBodyTest.java index 253978efd28..be8822b68fa 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateRelationshipBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateRelationshipBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionBodyTest.java index d6dfbba89db..54c3bba675e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -21,7 +21,6 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; import java.io.IOException; -import org.openapitools.jackson.nullable.JsonNullable; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -80,12 +79,4 @@ public void returnToTest() { // TODO: test returnTo } - /** - * Test the property 'workspace' - */ - @Test - public void workspaceTest() { - // TODO: test workspace - } - } diff --git a/clients/client/java/src/test/java/sh/ory/model/InternalProvisionMockSubscriptionTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionCommonTest.java similarity index 70% rename from clients/client/java/src/test/java/sh/ory/model/InternalProvisionMockSubscriptionTest.java rename to clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionCommonTest.java index b89003276fd..c6fc52a0604 100644 --- a/clients/client/java/src/test/java/sh/ory/model/InternalProvisionMockSubscriptionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateSubscriptionCommonTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,17 +26,17 @@ /** - * Model tests for InternalProvisionMockSubscription + * Model tests for CreateSubscriptionCommon */ -public class InternalProvisionMockSubscriptionTest { - private final InternalProvisionMockSubscription model = new InternalProvisionMockSubscription(); +public class CreateSubscriptionCommonTest { + private final CreateSubscriptionCommon model = new CreateSubscriptionCommon(); /** - * Model tests for InternalProvisionMockSubscription + * Model tests for CreateSubscriptionCommon */ @Test - public void testInternalProvisionMockSubscription() { - // TODO: test InternalProvisionMockSubscription + public void testCreateSubscriptionCommon() { + // TODO: test CreateSubscriptionCommon } /** @@ -47,14 +47,6 @@ public void currencyTest() { // TODO: test currency } - /** - * Test the property 'identityId' - */ - @Test - public void identityIdTest() { - // TODO: test identityId - } - /** * Test the property 'interval' */ @@ -71,4 +63,12 @@ public void planTest() { // TODO: test plan } + /** + * Test the property 'returnTo' + */ + @Test + public void returnToTest() { + // TODO: test returnTo + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateVerifiableCredentialRequestBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateVerifiableCredentialRequestBodyTest.java index bd8ef27ab3f..003de8626d6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateVerifiableCredentialRequestBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateVerifiableCredentialRequestBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceMemberInviteBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceMemberInviteBodyTest.java index 736cb60a5ec..6edd2e4293e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceMemberInviteBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceMemberInviteBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/StripeCustomerTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateWorkspacePayloadTest.java similarity index 67% rename from clients/client/java/src/test/java/sh/ory/model/StripeCustomerTest.java rename to clients/client/java/src/test/java/sh/ory/model/CreateWorkspacePayloadTest.java index cb1c0eea92d..63cafdc5739 100644 --- a/clients/client/java/src/test/java/sh/ory/model/StripeCustomerTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CreateWorkspacePayloadTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,25 +26,25 @@ /** - * Model tests for StripeCustomer + * Model tests for CreateWorkspacePayload */ -public class StripeCustomerTest { - private final StripeCustomer model = new StripeCustomer(); +public class CreateWorkspacePayloadTest { + private final CreateWorkspacePayload model = new CreateWorkspacePayload(); /** - * Model tests for StripeCustomer + * Model tests for CreateWorkspacePayload */ @Test - public void testStripeCustomer() { - // TODO: test StripeCustomer + public void testCreateWorkspacePayload() { + // TODO: test CreateWorkspacePayload } /** - * Test the property 'id' + * Test the property 'name' */ @Test - public void idTest() { - // TODO: test id + public void nameTest() { + // TODO: test name } } diff --git a/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceSubscriptionBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceSubscriptionBodyTest.java new file mode 100644 index 00000000000..699a5370b39 --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/CreateWorkspaceSubscriptionBodyTest.java @@ -0,0 +1,74 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for CreateWorkspaceSubscriptionBody + */ +public class CreateWorkspaceSubscriptionBodyTest { + private final CreateWorkspaceSubscriptionBody model = new CreateWorkspaceSubscriptionBody(); + + /** + * Model tests for CreateWorkspaceSubscriptionBody + */ + @Test + public void testCreateWorkspaceSubscriptionBody() { + // TODO: test CreateWorkspaceSubscriptionBody + } + + /** + * Test the property 'currency' + */ + @Test + public void currencyTest() { + // TODO: test currency + } + + /** + * Test the property 'interval' + */ + @Test + public void intervalTest() { + // TODO: test interval + } + + /** + * Test the property 'plan' + */ + @Test + public void planTest() { + // TODO: test plan + } + + /** + * Test the property 'returnTo' + */ + @Test + public void returnToTest() { + // TODO: test returnTo + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/CredentialSupportedDraft00Test.java b/clients/client/java/src/test/java/sh/ory/model/CredentialSupportedDraft00Test.java index 1657470d39d..d17f3e2f5f0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CredentialSupportedDraft00Test.java +++ b/clients/client/java/src/test/java/sh/ory/model/CredentialSupportedDraft00Test.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/CustomDomainTest.java b/clients/client/java/src/test/java/sh/ory/model/CustomDomainTest.java index 12b8efa9a20..9e20feed004 100644 --- a/clients/client/java/src/test/java/sh/ory/model/CustomDomainTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/CustomDomainTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/DeleteMySessionsCountTest.java b/clients/client/java/src/test/java/sh/ory/model/DeleteMySessionsCountTest.java index 11065d31a9b..f2e5f28642b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/DeleteMySessionsCountTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/DeleteMySessionsCountTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataBodyTest.java index f757f0c9d69..a66c6749b90 100644 --- a/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataTest.java b/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataTest.java index 1d21980a202..d7154ebe0bb 100644 --- a/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/EmailTemplateDataTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.java b/clients/client/java/src/test/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.java index 1a000db8ef5..6fcfe2fccea 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ErrorBrowserLocationChangeRequiredTest.java b/clients/client/java/src/test/java/sh/ory/model/ErrorBrowserLocationChangeRequiredTest.java index 64a32748b0e..48dea122ec6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ErrorBrowserLocationChangeRequiredTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ErrorBrowserLocationChangeRequiredTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ErrorFlowReplacedTest.java b/clients/client/java/src/test/java/sh/ory/model/ErrorFlowReplacedTest.java index 12936596285..66e13464a4e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ErrorFlowReplacedTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ErrorFlowReplacedTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ErrorGenericTest.java b/clients/client/java/src/test/java/sh/ory/model/ErrorGenericTest.java index d2abf47f617..ecab4313234 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ErrorGenericTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ErrorGenericTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ErrorOAuth2Test.java b/clients/client/java/src/test/java/sh/ory/model/ErrorOAuth2Test.java index 3b0052e8dbc..ca217e65530 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ErrorOAuth2Test.java +++ b/clients/client/java/src/test/java/sh/ory/model/ErrorOAuth2Test.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/EventStreamTest.java b/clients/client/java/src/test/java/sh/ory/model/EventStreamTest.java index 785d0021cdb..723ab89307d 100644 --- a/clients/client/java/src/test/java/sh/ory/model/EventStreamTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/EventStreamTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ExpandedPermissionTreeTest.java b/clients/client/java/src/test/java/sh/ory/model/ExpandedPermissionTreeTest.java index 08b8cedc3cd..918a225a8e1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ExpandedPermissionTreeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ExpandedPermissionTreeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/FlowErrorTest.java b/clients/client/java/src/test/java/sh/ory/model/FlowErrorTest.java index fbd37f200b1..421fac9beb2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/FlowErrorTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/FlowErrorTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GenericErrorContentTest.java b/clients/client/java/src/test/java/sh/ory/model/GenericErrorContentTest.java index 76f32efe4a0..a3fa99d6d28 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GenericErrorContentTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GenericErrorContentTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GenericErrorTest.java b/clients/client/java/src/test/java/sh/ory/model/GenericErrorTest.java index 62836c73e18..c00eec40497 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GenericErrorTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GenericErrorTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GenericUsageTest.java b/clients/client/java/src/test/java/sh/ory/model/GenericUsageTest.java index 652d60ae32a..8ee44ff5e2e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GenericUsageTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GenericUsageTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetAttributesCountResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetAttributesCountResponseTest.java index 8f52c9dca99..c86e54d571c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetAttributesCountResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetAttributesCountResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetManagedIdentitySchemaLocationTest.java b/clients/client/java/src/test/java/sh/ory/model/GetManagedIdentitySchemaLocationTest.java index 8d559c9f60b..f6c223f5e0c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetManagedIdentitySchemaLocationTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetManagedIdentitySchemaLocationTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventAttributesResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventAttributesResponseTest.java index 4fdae55a8e8..2a56236361e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventAttributesResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventAttributesResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventTypesResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventTypesResponseTest.java index 082c370e78f..13a6297959b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventTypesResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetMetricsEventTypesResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetOrganizationResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetOrganizationResponseTest.java index 209a5fdb56f..5986b8cb014 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetOrganizationResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetOrganizationResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsBodyTest.java index 9e56336d785..be587a38c10 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsResponseTest.java index 1a320f65f97..1f22d3f9c14 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetProjectEventsResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetProjectMetricsResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetProjectMetricsResponseTest.java index 7f291ac12b9..b5532a5abe6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetProjectMetricsResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetProjectMetricsResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetSessionActivityResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetSessionActivityResponseTest.java index ae430496a50..c77985f403c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetSessionActivityResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetSessionActivityResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/GetVersion200ResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/GetVersion200ResponseTest.java index f416b1765f7..446ac27f5ce 100644 --- a/clients/client/java/src/test/java/sh/ory/model/GetVersion200ResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/GetVersion200ResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/HealthNotReadyStatusTest.java b/clients/client/java/src/test/java/sh/ory/model/HealthNotReadyStatusTest.java index c4486a7c26f..2da6982bd64 100644 --- a/clients/client/java/src/test/java/sh/ory/model/HealthNotReadyStatusTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/HealthNotReadyStatusTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/HealthStatusTest.java b/clients/client/java/src/test/java/sh/ory/model/HealthStatusTest.java index 756f65f6d4d..312d7c0b3a6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/HealthStatusTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/HealthStatusTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsCodeTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsCodeTest.java index ce80ca8cb7b..b4f874631db 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsCodeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsCodeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcProviderTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcProviderTest.java index f1b339f76ad..269da97697c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcProviderTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcProviderTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcTest.java index 2a78c16ddf5..e7ea003cd6a 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsOidcTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsPasswordTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsPasswordTest.java index 20acc0ff89c..62c846503da 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsPasswordTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsPasswordTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTest.java index bbfb78b81ef..d8a1dfca4f1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,6 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; -import sh.ory.model.IdentityCredentialsType; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTypeTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTypeTest.java deleted file mode 100644 index a1983d7705e..00000000000 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityCredentialsTypeTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Ory APIs - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package sh.ory.model; - -import io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for IdentityCredentialsType - */ -public class IdentityCredentialsTypeTest { - /** - * Model tests for IdentityCredentialsType - */ - @Test - public void testIdentityCredentialsType() { - // TODO: test IdentityCredentialsType - } - -} diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityPatchResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityPatchResponseTest.java index cc92ed8e9b8..509527535f8 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityPatchResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityPatchResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityPatchTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityPatchTest.java index 378d0192745..2ae28efd498 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityPatchTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityPatchTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaContainerTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaContainerTest.java index 3d280d4646a..9d915d002af 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaContainerTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaContainerTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaPresetTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaPresetTest.java index 5350458ffb0..cbefccac813 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaPresetTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentitySchemaPresetTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityStateTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityStateTest.java deleted file mode 100644 index 0b823321d47..00000000000 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityStateTest.java +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Ory APIs - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * - * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). - * https://openapi-generator.tech - * Do not edit the class manually. - */ - - -package sh.ory.model; - -import io.swagger.annotations.ApiModel; -import com.google.gson.annotations.SerializedName; -import org.junit.jupiter.api.Disabled; -import org.junit.jupiter.api.Test; - - -/** - * Model tests for IdentityState - */ -public class IdentityStateTest { - /** - * Model tests for IdentityState - */ - @Test - public void testIdentityState() { - // TODO: test IdentityState - } - -} diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityTest.java index 53548edef1d..cfa518ac71b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -28,7 +28,6 @@ import java.util.Map; import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.model.IdentityCredentials; -import sh.ory.model.IdentityState; import sh.ory.model.RecoveryIdentityAddress; import sh.ory.model.VerifiableIdentityAddress; import org.junit.jupiter.api.Disabled; diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigProviderTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigProviderTest.java index f676907f129..0db957f523c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigProviderTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigProviderTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigTest.java index 23b8e8336a1..5d28073d824 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcConfigTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcTest.java index e566c9a920b..849c2043789 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsOidcTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordConfigTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordConfigTest.java index 73a6ec66b07..76efd589d59 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordConfigTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordConfigTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordTest.java index 62c9715c87d..31e6101a22d 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsPasswordTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsTest.java b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsTest.java index 38d8480c823..137d63f2845 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IdentityWithCredentialsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/InternalGetProjectBrandingBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/InternalGetProjectBrandingBodyTest.java index 9aeb0432643..48219cc884e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/InternalGetProjectBrandingBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/InternalGetProjectBrandingBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.java index c62a90c69d6..b6566db9333 100644 --- a/clients/client/java/src/test/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugBodyTest.java index f2a498cc565..ed71137f1eb 100644 --- a/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponseTest.java index f2ffea21814..cd43c42147b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/InternalIsOwnerForProjectBySlugResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IntrospectedOAuth2TokenTest.java b/clients/client/java/src/test/java/sh/ory/model/IntrospectedOAuth2TokenTest.java index 2aa1ea1313b..e961ab072b1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IntrospectedOAuth2TokenTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IntrospectedOAuth2TokenTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IsOwnerForProjectBySlugTest.java b/clients/client/java/src/test/java/sh/ory/model/IsOwnerForProjectBySlugTest.java index 95e9221020a..a632d337815 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IsOwnerForProjectBySlugTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IsOwnerForProjectBySlugTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IsReady200ResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/IsReady200ResponseTest.java index 689aaa754ea..9d18a2f86d1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IsReady200ResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IsReady200ResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/IsReady503ResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/IsReady503ResponseTest.java index 373fc52c0c3..40b730011cd 100644 --- a/clients/client/java/src/test/java/sh/ory/model/IsReady503ResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/IsReady503ResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/JsonPatchTest.java b/clients/client/java/src/test/java/sh/ory/model/JsonPatchTest.java index e0a055c7283..bf2aad88fe5 100644 --- a/clients/client/java/src/test/java/sh/ory/model/JsonPatchTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/JsonPatchTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/JsonWebKeySetTest.java b/clients/client/java/src/test/java/sh/ory/model/JsonWebKeySetTest.java index 641de6f340b..57fc758e083 100644 --- a/clients/client/java/src/test/java/sh/ory/model/JsonWebKeySetTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/JsonWebKeySetTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/JsonWebKeyTest.java b/clients/client/java/src/test/java/sh/ory/model/JsonWebKeyTest.java index ad995ef59d4..fd761a66f93 100644 --- a/clients/client/java/src/test/java/sh/ory/model/JsonWebKeyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/JsonWebKeyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/KetoNamespaceTest.java b/clients/client/java/src/test/java/sh/ory/model/KetoNamespaceTest.java index 6e94fde0acd..5ce821a3f7c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/KetoNamespaceTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/KetoNamespaceTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ListEventStreamsTest.java b/clients/client/java/src/test/java/sh/ory/model/ListEventStreamsTest.java index 39cd6aa178a..c7ebdb95992 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ListEventStreamsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ListEventStreamsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ListMyWorkspacesResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/ListMyWorkspacesResponseTest.java index 280434b8042..489f31d8879 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ListMyWorkspacesResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ListMyWorkspacesResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,7 @@ import java.io.IOException; import java.util.ArrayList; import java.util.List; -import sh.ory.model.Workspace; +import sh.ory.model.WorkspaceMeta; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/clients/client/java/src/test/java/sh/ory/model/ListOrganizationsResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/ListOrganizationsResponseTest.java index ed98dd0aec7..5abc43a3383 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ListOrganizationsResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ListOrganizationsResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ListWorkspaceProjectsResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/ListWorkspaceProjectsResponseTest.java new file mode 100644 index 00000000000..38167d010ba --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/ListWorkspaceProjectsResponseTest.java @@ -0,0 +1,69 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import sh.ory.model.ProjectMetadata; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for ListWorkspaceProjectsResponse + */ +public class ListWorkspaceProjectsResponseTest { + private final ListWorkspaceProjectsResponse model = new ListWorkspaceProjectsResponse(); + + /** + * Model tests for ListWorkspaceProjectsResponse + */ + @Test + public void testListWorkspaceProjectsResponse() { + // TODO: test ListWorkspaceProjectsResponse + } + + /** + * Test the property 'hasNextPage' + */ + @Test + public void hasNextPageTest() { + // TODO: test hasNextPage + } + + /** + * Test the property 'nextPage' + */ + @Test + public void nextPageTest() { + // TODO: test nextPage + } + + /** + * Test the property 'projects' + */ + @Test + public void projectsTest() { + // TODO: test projects + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/LoginFlowStateTest.java b/clients/client/java/src/test/java/sh/ory/model/LoginFlowStateTest.java index b3dae9a8dca..c92e321aee0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/LoginFlowStateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/LoginFlowStateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/LoginFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/LoginFlowTest.java index 46d60c23611..e8f7bdc4e86 100644 --- a/clients/client/java/src/test/java/sh/ory/model/LoginFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/LoginFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,6 @@ import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.model.AuthenticatorAssuranceLevel; -import sh.ory.model.IdentityCredentialsType; import sh.ory.model.OAuth2LoginRequest; import sh.ory.model.UiContainer; import org.junit.jupiter.api.Disabled; @@ -157,6 +156,14 @@ public void stateTest() { // TODO: test state } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'type' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/LogoutFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/LogoutFlowTest.java index 5250ca4b933..22284f5de0e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/LogoutFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/LogoutFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaTest.java b/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaTest.java index 370c3d4a4d3..55afab375ba 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaValidationResultTest.java b/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaValidationResultTest.java index 0bb3fdbf379..16552ab9d30 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaValidationResultTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ManagedIdentitySchemaValidationResultTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/MemberInviteTest.java b/clients/client/java/src/test/java/sh/ory/model/MemberInviteTest.java index 9bc727b77a6..dc286069cbe 100644 --- a/clients/client/java/src/test/java/sh/ory/model/MemberInviteTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/MemberInviteTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/MessageDispatchTest.java b/clients/client/java/src/test/java/sh/ory/model/MessageDispatchTest.java index d682b88181e..b177c284857 100644 --- a/clients/client/java/src/test/java/sh/ory/model/MessageDispatchTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/MessageDispatchTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/MessageTest.java b/clients/client/java/src/test/java/sh/ory/model/MessageTest.java index 31b35d70535..6ec8ad67a27 100644 --- a/clients/client/java/src/test/java/sh/ory/model/MessageTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/MessageTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/MetricsDatapointTest.java b/clients/client/java/src/test/java/sh/ory/model/MetricsDatapointTest.java index 93eb88500d8..ff5c7979cff 100644 --- a/clients/client/java/src/test/java/sh/ory/model/MetricsDatapointTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/MetricsDatapointTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/MigrationOptionsTest.java b/clients/client/java/src/test/java/sh/ory/model/MigrationOptionsTest.java new file mode 100644 index 00000000000..a113874177c --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/MigrationOptionsTest.java @@ -0,0 +1,58 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for MigrationOptions + */ +public class MigrationOptionsTest { + private final MigrationOptions model = new MigrationOptions(); + + /** + * Model tests for MigrationOptions + */ + @Test + public void testMigrationOptions() { + // TODO: test MigrationOptions + } + + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + + /** + * Test the property 'projectSubscription' + */ + @Test + public void projectSubscriptionTest() { + // TODO: test projectSubscription + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/NamespaceTest.java b/clients/client/java/src/test/java/sh/ory/model/NamespaceTest.java index e37bef1f120..c699c9c090e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NamespaceTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NamespaceTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/NeedsPrivilegedSessionErrorTest.java b/clients/client/java/src/test/java/sh/ory/model/NeedsPrivilegedSessionErrorTest.java index 1387238af0c..58c7e065a56 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NeedsPrivilegedSessionErrorTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NeedsPrivilegedSessionErrorTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionCourierChannelTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionCourierChannelTest.java index 66a67dfb971..946625070de 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionCourierChannelTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionCourierChannelTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionHookTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionHookTest.java index c4c03faedf9..e19ab1f11dd 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionHookTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionHookTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionIdentitySchemaTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionIdentitySchemaTest.java index 881f93a8a7a..9527d1bc9b8 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionIdentitySchemaTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionIdentitySchemaTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTest.java index 797c36b257c..7e84a42eaa0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -65,6 +65,14 @@ public void disableAccountExperienceWelcomeScreenTest() { // TODO: test disableAccountExperienceWelcomeScreen } + /** + * Test the property 'enableAxV2' + */ + @Test + public void enableAxV2Test() { + // TODO: test enableAxV2 + } + /** * Test the property 'hydraOauth2AllowedTopLevelClaims' */ @@ -113,6 +121,14 @@ public void hydraOauth2GrantJwtMaxTtlTest() { // TODO: test hydraOauth2GrantJwtMaxTtl } + /** + * Test the property 'hydraOauth2MirrorTopLevelClaims' + */ + @Test + public void hydraOauth2MirrorTopLevelClaimsTest() { + // TODO: test hydraOauth2MirrorTopLevelClaims + } + /** * Test the property 'hydraOauth2PkceEnforced' */ @@ -577,6 +593,14 @@ public void kratosCourierTemplatesLoginCodeValidEmailSubjectTest() { // TODO: test kratosCourierTemplatesLoginCodeValidEmailSubject } + /** + * Test the property 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' + */ + @Test + public void kratosCourierTemplatesLoginCodeValidSmsBodyPlaintextTest() { + // TODO: test kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + } + /** * Test the property 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' */ @@ -1257,6 +1281,14 @@ public void kratosSelfserviceMethodsCodeEnabledTest() { // TODO: test kratosSelfserviceMethodsCodeEnabled } + /** + * Test the property 'kratosSelfserviceMethodsCodeMfaEnabled' + */ + @Test + public void kratosSelfserviceMethodsCodeMfaEnabledTest() { + // TODO: test kratosSelfserviceMethodsCodeMfaEnabled + } + /** * Test the property 'kratosSelfserviceMethodsCodePasswordlessEnabled' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProviderTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProviderTest.java index 5b738beb2ca..c0bb2dbb9ca 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProviderTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionThirdPartyProviderTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -91,6 +91,14 @@ public void azureTenantTest() { // TODO: test azureTenant } + /** + * Test the property 'claimsSource' + */ + @Test + public void claimsSourceTest() { + // TODO: test claimsSource + } + /** * Test the property 'clientId' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplateTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplateTest.java index 6eb0b472c14..ffee3026d9b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectRevisionTokenizerTemplateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectTest.java b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectTest.java index 0850f1217a9..194b7b7241b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/NormalizedProjectTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTest.java index 582f1a2d91a..b098af8b5aa 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -371,6 +371,14 @@ public void skipConsentTest() { // TODO: test skipConsent } + /** + * Test the property 'skipLogoutConsent' + */ + @Test + public void skipLogoutConsentTest() { + // TODO: test skipLogoutConsent + } + /** * Test the property 'subjectType' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTokenLifespansTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTokenLifespansTest.java index 6f3d354e548..3058555356c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTokenLifespansTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2ClientTokenLifespansTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContextTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContextTest.java index c8b609f5700..4e294df831c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContextTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestOpenIDConnectContextTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestTest.java index ff23ee08754..411db44de9e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentRequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionExpiresAtTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionExpiresAtTest.java index f707cb4c0c8..d890dae23e4 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionExpiresAtTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionExpiresAtTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionTest.java index 0cd23f26860..e819eb99d4f 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2ConsentSessionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,6 +53,14 @@ public void consentRequestTest() { // TODO: test consentRequest } + /** + * Test the property 'context' + */ + @Test + public void contextTest() { + // TODO: test context + } + /** * Test the property 'expiresAt' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2LoginRequestTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2LoginRequestTest.java index e82590ac917..29c250b3558 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2LoginRequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2LoginRequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2LogoutRequestTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2LogoutRequestTest.java index 9cc7edbb218..eeb0514e57c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2LogoutRequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2LogoutRequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2RedirectToTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2RedirectToTest.java index 334c00cd913..defe337b36c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2RedirectToTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2RedirectToTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OAuth2TokenExchangeTest.java b/clients/client/java/src/test/java/sh/ory/model/OAuth2TokenExchangeTest.java index a665f9ac9d9..80d0a7ca97e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OAuth2TokenExchangeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OAuth2TokenExchangeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OidcConfigurationTest.java b/clients/client/java/src/test/java/sh/ory/model/OidcConfigurationTest.java index 342994bfd94..47c635ed109 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OidcConfigurationTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OidcConfigurationTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OidcUserInfoTest.java b/clients/client/java/src/test/java/sh/ory/model/OidcUserInfoTest.java index f8f2129ec43..b41c6122597 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OidcUserInfoTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OidcUserInfoTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OrganizationBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/OrganizationBodyTest.java index 6a57d446b7c..927e5d69f8e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OrganizationBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OrganizationBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/OrganizationTest.java b/clients/client/java/src/test/java/sh/ory/model/OrganizationTest.java index ba0e8cfe86c..c2d61c9faff 100644 --- a/clients/client/java/src/test/java/sh/ory/model/OrganizationTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/OrganizationTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PaginationHeadersTest.java b/clients/client/java/src/test/java/sh/ory/model/PaginationHeadersTest.java index 715cb9108e4..d86b9dfcffd 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PaginationHeadersTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PaginationHeadersTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PaginationTest.java b/clients/client/java/src/test/java/sh/ory/model/PaginationTest.java index 3d54d2bb414..ec6a3c8ea1c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PaginationTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PaginationTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ParseErrorTest.java b/clients/client/java/src/test/java/sh/ory/model/ParseErrorTest.java index 893bdd3f2ee..f916752e36b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ParseErrorTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ParseErrorTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PatchIdentitiesBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/PatchIdentitiesBodyTest.java index d00f972854f..2610446f581 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PatchIdentitiesBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PatchIdentitiesBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PerformNativeLogoutBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/PerformNativeLogoutBodyTest.java index 1feb40aca06..2a1949baee7 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PerformNativeLogoutBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PerformNativeLogoutBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PermissionsOnWorkpaceResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/PermissionsOnWorkpaceResponseTest.java new file mode 100644 index 00000000000..fe40e9b78c7 --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/PermissionsOnWorkpaceResponseTest.java @@ -0,0 +1,52 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for PermissionsOnWorkpaceResponse + */ +public class PermissionsOnWorkpaceResponseTest { + private final PermissionsOnWorkpaceResponse model = new PermissionsOnWorkpaceResponse(); + + /** + * Model tests for PermissionsOnWorkpaceResponse + */ + @Test + public void testPermissionsOnWorkpaceResponse() { + // TODO: test PermissionsOnWorkpaceResponse + } + + /** + * Test the property 'permissions' + */ + @Test + public void permissionsTest() { + // TODO: test permissions + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/PlanDetailsTest.java b/clients/client/java/src/test/java/sh/ory/model/PlanDetailsTest.java index 256a068dfb5..66892c83ed9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PlanDetailsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PlanDetailsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PlanTest.java b/clients/client/java/src/test/java/sh/ory/model/PlanTest.java index 137f89196a4..cb6b41f8c39 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PlanTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PlanTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionBodyTest.java index 47d93a1d797..a6422930321 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionOrErrorBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionOrErrorBodyTest.java index f195732ac0c..c4000e4109a 100644 --- a/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionOrErrorBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/PostCheckPermissionOrErrorBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectApiKeyTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectApiKeyTest.java index 8e122164d3d..fbf2c6ab6e6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectApiKeyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectApiKeyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingColorsTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingColorsTest.java index 3cc1c16b5dd..0f008379177 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingColorsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingColorsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingTest.java index 32689db2b6a..886d886cf28 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingThemeTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingThemeTest.java index 338d4b90b78..d3a754700e6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingThemeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectBrandingThemeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectCorsTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectCorsTest.java index b0c3679fec2..460bb1ec050 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectCorsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectCorsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectEventsDatapointTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectEventsDatapointTest.java index df09180395b..e24ed6a8b2d 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectEventsDatapointTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectEventsDatapointTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectHostTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectHostTest.java index 2d5249d016e..b33e70cd86f 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectHostTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectHostTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectMemberTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectMemberTest.java new file mode 100644 index 00000000000..25a40b51def --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectMemberTest.java @@ -0,0 +1,74 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for ProjectMember + */ +public class ProjectMemberTest { + private final ProjectMember model = new ProjectMember(); + + /** + * Model tests for ProjectMember + */ + @Test + public void testProjectMember() { + // TODO: test ProjectMember + } + + /** + * Test the property 'email' + */ + @Test + public void emailTest() { + // TODO: test email + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'role' + */ + @Test + public void roleTest() { + // TODO: test role + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectMetadataTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectMetadataTest.java index 8945e34cb58..561b4a3a204 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectMetadataTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectMetadataTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,6 +51,14 @@ public void createdAtTest() { // TODO: test createdAt } + /** + * Test the property 'environment' + */ + @Test + public void environmentTest() { + // TODO: test environment + } + /** * Test the property 'hosts' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectServiceIdentityTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectServiceIdentityTest.java index 4d0e4ef0712..a9a21d0cd85 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectServiceIdentityTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectServiceIdentityTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectServiceOAuth2Test.java b/clients/client/java/src/test/java/sh/ory/model/ProjectServiceOAuth2Test.java index 730ccbf516e..f6c410fb4f9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectServiceOAuth2Test.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectServiceOAuth2Test.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectServicePermissionTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectServicePermissionTest.java index 65180ba2553..c107877bdcc 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectServicePermissionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectServicePermissionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectServicesTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectServicesTest.java index 7df7551ce3f..f41e44f88b2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectServicesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectServicesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/ProjectTest.java b/clients/client/java/src/test/java/sh/ory/model/ProjectTest.java index aaa76df3516..0785031de11 100644 --- a/clients/client/java/src/test/java/sh/ory/model/ProjectTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/ProjectTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/QuotaUsageTest.java b/clients/client/java/src/test/java/sh/ory/model/QuotaUsageTest.java index 350fc07c356..edb898f9aba 100644 --- a/clients/client/java/src/test/java/sh/ory/model/QuotaUsageTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/QuotaUsageTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RFC6749ErrorJsonTest.java b/clients/client/java/src/test/java/sh/ory/model/RFC6749ErrorJsonTest.java index 524db89e989..0f92071b1dc 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RFC6749ErrorJsonTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RFC6749ErrorJsonTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RecoveryCodeForIdentityTest.java b/clients/client/java/src/test/java/sh/ory/model/RecoveryCodeForIdentityTest.java index e5a28e4608c..fc77a3761a9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RecoveryCodeForIdentityTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RecoveryCodeForIdentityTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowStateTest.java b/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowStateTest.java index c3c6984b849..b71265c44ff 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowStateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowStateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowTest.java index 90bd41ead36..24675a8fef4 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RecoveryFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -108,6 +108,14 @@ public void stateTest() { // TODO: test state } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'type' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/RecoveryIdentityAddressTest.java b/clients/client/java/src/test/java/sh/ory/model/RecoveryIdentityAddressTest.java index 73e860f328e..fae37b22de7 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RecoveryIdentityAddressTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RecoveryIdentityAddressTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RecoveryLinkForIdentityTest.java b/clients/client/java/src/test/java/sh/ory/model/RecoveryLinkForIdentityTest.java index 4180cc20607..c680f706a49 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RecoveryLinkForIdentityTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RecoveryLinkForIdentityTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowStateTest.java b/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowStateTest.java index 2a32bd04259..17350c3ae32 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowStateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowStateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowTest.java index 873dc7e24f2..985939a5714 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RegistrationFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,7 +23,6 @@ import java.io.IOException; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; -import sh.ory.model.IdentityCredentialsType; import sh.ory.model.OAuth2LoginRequest; import sh.ory.model.UiContainer; import org.junit.jupiter.api.Disabled; diff --git a/clients/client/java/src/test/java/sh/ory/model/RejectOAuth2RequestTest.java b/clients/client/java/src/test/java/sh/ory/model/RejectOAuth2RequestTest.java index aa1fcb1265e..7110543bac5 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RejectOAuth2RequestTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RejectOAuth2RequestTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RelationQueryTest.java b/clients/client/java/src/test/java/sh/ory/model/RelationQueryTest.java index 559b812d633..8f2235671b0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RelationQueryTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RelationQueryTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RelationshipNamespacesTest.java b/clients/client/java/src/test/java/sh/ory/model/RelationshipNamespacesTest.java index 116735335e1..450c3eba5c6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RelationshipNamespacesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RelationshipNamespacesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RelationshipPatchTest.java b/clients/client/java/src/test/java/sh/ory/model/RelationshipPatchTest.java index 2bf8458c5c6..d5e5e92550c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RelationshipPatchTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RelationshipPatchTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RelationshipTest.java b/clients/client/java/src/test/java/sh/ory/model/RelationshipTest.java index 65fd429003f..d9058cbd944 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RelationshipTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RelationshipTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/RelationshipsTest.java b/clients/client/java/src/test/java/sh/ory/model/RelationshipsTest.java index ee2895b7b45..64f01a6a811 100644 --- a/clients/client/java/src/test/java/sh/ory/model/RelationshipsTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/RelationshipsTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SchemaPatchTest.java b/clients/client/java/src/test/java/sh/ory/model/SchemaPatchTest.java index b811a3a63f1..f24cf822149 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SchemaPatchTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SchemaPatchTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SelfServiceFlowExpiredErrorTest.java b/clients/client/java/src/test/java/sh/ory/model/SelfServiceFlowExpiredErrorTest.java index 658df365b28..11992d7529e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SelfServiceFlowExpiredErrorTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SelfServiceFlowExpiredErrorTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SessionActivityDatapointTest.java b/clients/client/java/src/test/java/sh/ory/model/SessionActivityDatapointTest.java index a69ecd39888..d7c934f50cc 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SessionActivityDatapointTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SessionActivityDatapointTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SessionAuthenticationMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/SessionAuthenticationMethodTest.java index 9591201e42c..c5aa647699c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SessionAuthenticationMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SessionAuthenticationMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SessionDeviceTest.java b/clients/client/java/src/test/java/sh/ory/model/SessionDeviceTest.java index 72387cb3cf9..de877754147 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SessionDeviceTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SessionDeviceTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SessionTest.java b/clients/client/java/src/test/java/sh/ory/model/SessionTest.java index 12555c676ed..bc4df994833 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SessionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SessionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SetActiveProjectInConsoleBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/SetActiveProjectInConsoleBodyTest.java index fa67b504832..6262e710e42 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SetActiveProjectInConsoleBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SetActiveProjectInConsoleBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SetCustomDomainBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/SetCustomDomainBodyTest.java index 367576da43c..af2682a3f55 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SetCustomDomainBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SetCustomDomainBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SetEventStreamBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/SetEventStreamBodyTest.java index 0a0725d7bb7..99521ddbebe 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SetEventStreamBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SetEventStreamBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SetProjectBrandingThemeBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/SetProjectBrandingThemeBodyTest.java index da563ceaddf..0ddc4234873 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SetProjectBrandingThemeBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SetProjectBrandingThemeBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SetProjectTest.java b/clients/client/java/src/test/java/sh/ory/model/SetProjectTest.java index 71687371b40..c070d4e3c4a 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SetProjectTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SetProjectTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SettingsFlowStateTest.java b/clients/client/java/src/test/java/sh/ory/model/SettingsFlowStateTest.java index 14f00b78b34..2396a43c542 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SettingsFlowStateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SettingsFlowStateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SettingsFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/SettingsFlowTest.java index 86a1df83a5d..1c84c3a6e59 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SettingsFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SettingsFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -117,6 +117,14 @@ public void stateTest() { // TODO: test state } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'type' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/SourcePositionTest.java b/clients/client/java/src/test/java/sh/ory/model/SourcePositionTest.java index 118de3de42b..759075211c1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SourcePositionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SourcePositionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SubjectSetTest.java b/clients/client/java/src/test/java/sh/ory/model/SubjectSetTest.java index ced162c0f85..2d188f5b177 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SubjectSetTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SubjectSetTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SubscriptionTest.java b/clients/client/java/src/test/java/sh/ory/model/SubscriptionTest.java index a475f3dfd5f..192c267d5fb 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SubscriptionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SubscriptionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -23,6 +23,7 @@ import java.io.IOException; import java.time.OffsetDateTime; import org.openapitools.jackson.nullable.JsonNullable; +import sh.ory.model.PlanDetails; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -73,6 +74,14 @@ public void currentPlanTest() { // TODO: test currentPlan } + /** + * Test the property 'currentPlanDetails' + */ + @Test + public void currentPlanDetailsTest() { + // TODO: test currentPlanDetails + } + /** * Test the property 'customerId' */ @@ -137,6 +146,14 @@ public void statusTest() { // TODO: test status } + /** + * Test the property 'stripeCheckoutExpiresAt' + */ + @Test + public void stripeCheckoutExpiresAtTest() { + // TODO: test stripeCheckoutExpiresAt + } + /** * Test the property 'updatedAt' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/SuccessfulCodeExchangeResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/SuccessfulCodeExchangeResponseTest.java index 04a57061200..e4dcd20d48a 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SuccessfulCodeExchangeResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SuccessfulCodeExchangeResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeLoginTest.java b/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeLoginTest.java index ca36d5c751d..fe16a860616 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeLoginTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeLoginTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeRegistrationTest.java b/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeRegistrationTest.java index 726a875a10b..345d65a60f0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeRegistrationTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SuccessfulNativeRegistrationTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/SuccessfulProjectUpdateTest.java b/clients/client/java/src/test/java/sh/ory/model/SuccessfulProjectUpdateTest.java index 8f5c36f3f7a..14a5d0c67d1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/SuccessfulProjectUpdateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/SuccessfulProjectUpdateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationHeadersTest.java b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationHeadersTest.java index 307ef5bdb62..d4b6a6a0060 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationHeadersTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationHeadersTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationRequestParametersTest.java b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationRequestParametersTest.java index 1fdc839132b..fe2b0bcd3a0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationRequestParametersTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationRequestParametersTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationResponseHeadersTest.java b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationResponseHeadersTest.java index f238fa4a07b..c7b78313415 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationResponseHeadersTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationResponseHeadersTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationTest.java b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationTest.java index b7c94521994..49f7408167c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TokenPaginationTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TokenPaginationTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TrustOAuth2JwtGrantIssuerTest.java b/clients/client/java/src/test/java/sh/ory/model/TrustOAuth2JwtGrantIssuerTest.java index a246dba24b9..ab82250f555 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TrustOAuth2JwtGrantIssuerTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TrustOAuth2JwtGrantIssuerTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantIssuerTest.java b/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantIssuerTest.java index 034b8dbc384..ecd6341ae51 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantIssuerTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantIssuerTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java b/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java index 7e11fe0580f..7b8e9be6617 100644 --- a/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiContainerTest.java b/clients/client/java/src/test/java/sh/ory/model/UiContainerTest.java index 9df99369a00..ee1eab09ad5 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiContainerTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiContainerTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeAnchorAttributesTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeAnchorAttributesTest.java index 2204689b455..0b532d84757 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeAnchorAttributesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeAnchorAttributesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeAttributesTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeAttributesTest.java index 8f9f5d5e10f..51831cb24b1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeAttributesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeAttributesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeImageAttributesTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeImageAttributesTest.java index 79a35ceb3fa..e1e57b383a5 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeImageAttributesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeImageAttributesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeInputAttributesTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeInputAttributesTest.java index 167dca13d85..908838296e9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeInputAttributesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeInputAttributesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeMetaTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeMetaTest.java index 87d416fd1ae..9471c14294c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeMetaTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeMetaTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeScriptAttributesTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeScriptAttributesTest.java index 2628f269921..8b66b70d57f 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeScriptAttributesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeScriptAttributesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeTest.java index c285bb15b16..a33031d6202 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiNodeTextAttributesTest.java b/clients/client/java/src/test/java/sh/ory/model/UiNodeTextAttributesTest.java index 56e8d6a19b6..6b306b92db6 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiNodeTextAttributesTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiNodeTextAttributesTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UiTextTest.java b/clients/client/java/src/test/java/sh/ory/model/UiTextTest.java index da51c310480..79abdf6eba5 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UiTextTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UiTextTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateIdentityBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateIdentityBodyTest.java index 01b0a5695fc..56efd32c59c 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateIdentityBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateIdentityBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,6 @@ import io.swagger.annotations.ApiModelProperty; import java.io.IOException; import org.openapitools.jackson.nullable.JsonNullable; -import sh.ory.model.IdentityState; import sh.ory.model.IdentityWithCredentials; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowBodyTest.java index af935834183..51e708895b2 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -85,6 +85,14 @@ public void passwordIdentifierTest() { // TODO: test passwordIdentifier } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'idToken' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithCodeMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithCodeMethodTest.java index d82f332eeb1..63a97c05f61 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithCodeMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithCodeMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -79,4 +79,12 @@ public void resendTest() { // TODO: test resend } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethodTest.java index c718f15ef5f..1f64ab5158e 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithLookupSecretMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithOidcMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithOidcMethodTest.java index 8f2880739c1..113eea9ae52 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithOidcMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithOidcMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -87,6 +87,14 @@ public void traitsTest() { // TODO: test traits } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'upstreamParameters' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithPasswordMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithPasswordMethodTest.java index 63c50213be3..54d1607ef75 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithPasswordMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithPasswordMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -79,4 +79,12 @@ public void passwordIdentifierTest() { // TODO: test passwordIdentifier } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithTotpMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithTotpMethodTest.java index 52ef3a2d3f2..9388b90cb71 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithTotpMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithTotpMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,4 +63,12 @@ public void totpCodeTest() { // TODO: test totpCode } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethodTest.java index 2d5f5ade491..9d8e918d663 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateLoginFlowWithWebAuthnMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,6 +63,14 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'webauthnLogin' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowBodyTest.java index 0d85dff53a4..b77923ddd9f 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -65,6 +65,14 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'code' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethodTest.java index e3ca8fd33a5..b1b6b048d4b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithCodeMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -71,4 +71,12 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethodTest.java index 4356861f007..99ea1f4eb53 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRecoveryFlowWithLinkMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,4 +63,12 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowBodyTest.java index e0ae2857273..271c5c3d5aa 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethodTest.java index 72f9c0a03c9..608c9c2a853 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithCodeMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethodTest.java index fba203b61e8..eb8795ebefd 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithOidcMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethodTest.java index f258084867c..1255a8a028b 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithPasswordMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethodTest.java index 59fe4541661..85580cbd546 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateRegistrationFlowWithWebAuthnMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowBodyTest.java index f1f9aada182..76db0d65b65 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -69,6 +69,14 @@ public void passwordTest() { // TODO: test password } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'traits' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithLookupMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithLookupMethodTest.java index 93aea7a00a0..57f942d14cb 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithLookupMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithLookupMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -87,4 +87,12 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithOidcMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithOidcMethodTest.java index be273905083..182ff84fa2d 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithOidcMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithOidcMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -71,6 +71,14 @@ public void traitsTest() { // TODO: test traits } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'unlink' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethodTest.java index 30c9c3cbad5..52725f065d1 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithPasswordMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,4 +63,12 @@ public void passwordTest() { // TODO: test password } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithProfileMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithProfileMethodTest.java index 2dfd25e9359..e3fb231d3b7 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithProfileMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithProfileMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,4 +63,12 @@ public void traitsTest() { // TODO: test traits } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithTotpMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithTotpMethodTest.java index e67554fc8af..c69492727d8 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithTotpMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithTotpMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -71,4 +71,12 @@ public void totpUnlinkTest() { // TODO: test totpUnlink } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethodTest.java index 2347e889d78..9ddf44edb77 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSettingsFlowWithWebAuthnMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -55,6 +55,14 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'webauthnRegister' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateSubscriptionBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateSubscriptionBodyTest.java index 2d6054ce33d..7785635d1bb 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateSubscriptionBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateSubscriptionBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowBodyTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowBodyTest.java index 64dd51bfad8..d77aa4e0282 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowBodyTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowBodyTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -65,6 +65,14 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'code' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithCodeMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithCodeMethodTest.java index 69bde179cc4..d41bbd37fc0 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithCodeMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithCodeMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -71,4 +71,12 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithLinkMethodTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithLinkMethodTest.java index ef9246eb6ef..9a2bbbaa568 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithLinkMethodTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateVerificationFlowWithLinkMethodTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -63,4 +63,12 @@ public void methodTest() { // TODO: test method } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + } diff --git a/clients/client/java/src/test/java/sh/ory/model/UpdateWorkspacePayloadTest.java b/clients/client/java/src/test/java/sh/ory/model/UpdateWorkspacePayloadTest.java new file mode 100644 index 00000000000..92debea3d0d --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/UpdateWorkspacePayloadTest.java @@ -0,0 +1,50 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for UpdateWorkspacePayload + */ +public class UpdateWorkspacePayloadTest { + private final UpdateWorkspacePayload model = new UpdateWorkspacePayload(); + + /** + * Model tests for UpdateWorkspacePayload + */ + @Test + public void testUpdateWorkspacePayload() { + // TODO: test UpdateWorkspacePayload + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/UsageTest.java b/clients/client/java/src/test/java/sh/ory/model/UsageTest.java index af965149ef6..bb634ec4fda 100644 --- a/clients/client/java/src/test/java/sh/ory/model/UsageTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/UsageTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialPrimingResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialPrimingResponseTest.java index 01e783e35f4..4650760d572 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialPrimingResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialPrimingResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialProofTest.java b/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialProofTest.java index bb28994b1d8..33810166a45 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialProofTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialProofTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialResponseTest.java b/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialResponseTest.java index 25a6886a0c1..01f975c3fa9 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialResponseTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VerifiableCredentialResponseTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/VerifiableIdentityAddressTest.java b/clients/client/java/src/test/java/sh/ory/model/VerifiableIdentityAddressTest.java index a1dcbded31b..b412f4018ce 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VerifiableIdentityAddressTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VerifiableIdentityAddressTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/VerificationFlowStateTest.java b/clients/client/java/src/test/java/sh/ory/model/VerificationFlowStateTest.java index d0fd6ce659a..e4fbfb72933 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VerificationFlowStateTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VerificationFlowStateTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/VerificationFlowTest.java b/clients/client/java/src/test/java/sh/ory/model/VerificationFlowTest.java index d27a6cd8dfc..8e36aed7898 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VerificationFlowTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VerificationFlowTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -97,6 +97,14 @@ public void stateTest() { // TODO: test state } + /** + * Test the property 'transientPayload' + */ + @Test + public void transientPayloadTest() { + // TODO: test transientPayload + } + /** * Test the property 'type' */ diff --git a/clients/client/java/src/test/java/sh/ory/model/VersionTest.java b/clients/client/java/src/test/java/sh/ory/model/VersionTest.java index 087305b8488..4ca58270d4f 100644 --- a/clients/client/java/src/test/java/sh/ory/model/VersionTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/VersionTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/WarningTest.java b/clients/client/java/src/test/java/sh/ory/model/WarningTest.java index 5216cc93123..6b3e11f4fcb 100644 --- a/clients/client/java/src/test/java/sh/ory/model/WarningTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/WarningTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/java/src/test/java/sh/ory/model/WorkspaceMetaTest.java b/clients/client/java/src/test/java/sh/ory/model/WorkspaceMetaTest.java new file mode 100644 index 00000000000..46d7576aeaa --- /dev/null +++ b/clients/client/java/src/test/java/sh/ory/model/WorkspaceMetaTest.java @@ -0,0 +1,92 @@ +/* + * Ory APIs + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package sh.ory.model; + +import com.google.gson.TypeAdapter; +import com.google.gson.annotations.JsonAdapter; +import com.google.gson.annotations.SerializedName; +import com.google.gson.stream.JsonReader; +import com.google.gson.stream.JsonWriter; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import java.io.IOException; +import java.time.OffsetDateTime; +import org.openapitools.jackson.nullable.JsonNullable; +import org.junit.jupiter.api.Disabled; +import org.junit.jupiter.api.Test; + + +/** + * Model tests for WorkspaceMeta + */ +public class WorkspaceMetaTest { + private final WorkspaceMeta model = new WorkspaceMeta(); + + /** + * Model tests for WorkspaceMeta + */ + @Test + public void testWorkspaceMeta() { + // TODO: test WorkspaceMeta + } + + /** + * Test the property 'createdAt' + */ + @Test + public void createdAtTest() { + // TODO: test createdAt + } + + /** + * Test the property 'id' + */ + @Test + public void idTest() { + // TODO: test id + } + + /** + * Test the property 'name' + */ + @Test + public void nameTest() { + // TODO: test name + } + + /** + * Test the property 'subscriptionId' + */ + @Test + public void subscriptionIdTest() { + // TODO: test subscriptionId + } + + /** + * Test the property 'subscriptionPlan' + */ + @Test + public void subscriptionPlanTest() { + // TODO: test subscriptionPlan + } + + /** + * Test the property 'updatedAt' + */ + @Test + public void updatedAtTest() { + // TODO: test updatedAt + } + +} diff --git a/clients/client/java/src/test/java/sh/ory/model/WorkspaceTest.java b/clients/client/java/src/test/java/sh/ory/model/WorkspaceTest.java index 5eb25eba044..0f547527012 100644 --- a/clients/client/java/src/test/java/sh/ory/model/WorkspaceTest.java +++ b/clients/client/java/src/test/java/sh/ory/model/WorkspaceTest.java @@ -2,7 +2,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/php/.openapi-generator/FILES b/clients/client/php/.openapi-generator/FILES index c66c68062dc..cca848978c6 100644 --- a/clients/client/php/.openapi-generator/FILES +++ b/clients/client/php/.openapi-generator/FILES @@ -52,8 +52,11 @@ docs/Model/CreateRecoveryCodeForIdentityBody.md docs/Model/CreateRecoveryLinkForIdentityBody.md docs/Model/CreateRelationshipBody.md docs/Model/CreateSubscriptionBody.md +docs/Model/CreateSubscriptionCommon.md docs/Model/CreateVerifiableCredentialRequestBody.md docs/Model/CreateWorkspaceMemberInviteBody.md +docs/Model/CreateWorkspacePayload.md +docs/Model/CreateWorkspaceSubscriptionBody.md docs/Model/CredentialSupportedDraft00.md docs/Model/CustomDomain.md docs/Model/DeleteMySessionsCount.md @@ -87,12 +90,10 @@ docs/Model/IdentityCredentialsCode.md docs/Model/IdentityCredentialsOidc.md docs/Model/IdentityCredentialsOidcProvider.md docs/Model/IdentityCredentialsPassword.md -docs/Model/IdentityCredentialsType.md docs/Model/IdentityPatch.md docs/Model/IdentityPatchResponse.md docs/Model/IdentitySchemaContainer.md docs/Model/IdentitySchemaPreset.md -docs/Model/IdentityState.md docs/Model/IdentityWithCredentials.md docs/Model/IdentityWithCredentialsOidc.md docs/Model/IdentityWithCredentialsOidcConfig.md @@ -107,7 +108,6 @@ docs/Model/InternalGetProjectBrandingBody.md docs/Model/InternalIsAXWelcomeScreenEnabledForProjectBody.md docs/Model/InternalIsOwnerForProjectBySlugBody.md docs/Model/InternalIsOwnerForProjectBySlugResponse.md -docs/Model/InternalProvisionMockSubscription.md docs/Model/IntrospectedOAuth2Token.md docs/Model/IsOwnerForProjectBySlug.md docs/Model/JsonPatch.md @@ -117,6 +117,7 @@ docs/Model/KetoNamespace.md docs/Model/ListEventStreams.md docs/Model/ListMyWorkspacesResponse.md docs/Model/ListOrganizationsResponse.md +docs/Model/ListWorkspaceProjectsResponse.md docs/Model/LoginFlow.md docs/Model/LoginFlowState.md docs/Model/LogoutFlow.md @@ -126,6 +127,7 @@ docs/Model/MemberInvite.md docs/Model/Message.md docs/Model/MessageDispatch.md docs/Model/MetricsDatapoint.md +docs/Model/MigrationOptions.md docs/Model/ModelNamespace.md docs/Model/NeedsPrivilegedSessionError.md docs/Model/NormalizedProject.md @@ -154,6 +156,7 @@ docs/Model/PaginationHeaders.md docs/Model/ParseError.md docs/Model/PatchIdentitiesBody.md docs/Model/PerformNativeLogoutBody.md +docs/Model/PermissionsOnWorkpaceResponse.md docs/Model/Plan.md docs/Model/PlanDetails.md docs/Model/PostCheckPermissionBody.md @@ -166,6 +169,7 @@ docs/Model/ProjectBrandingTheme.md docs/Model/ProjectCors.md docs/Model/ProjectEventsDatapoint.md docs/Model/ProjectHost.md +docs/Model/ProjectMember.md docs/Model/ProjectMetadata.md docs/Model/ProjectServiceIdentity.md docs/Model/ProjectServiceOAuth2.md @@ -200,7 +204,6 @@ docs/Model/SetProjectBrandingThemeBody.md docs/Model/SettingsFlow.md docs/Model/SettingsFlowState.md docs/Model/SourcePosition.md -docs/Model/StripeCustomer.md docs/Model/SubjectSet.md docs/Model/Subscription.md docs/Model/SuccessfulCodeExchangeResponse.md @@ -251,6 +254,7 @@ docs/Model/UpdateSubscriptionBody.md docs/Model/UpdateVerificationFlowBody.md docs/Model/UpdateVerificationFlowWithCodeMethod.md docs/Model/UpdateVerificationFlowWithLinkMethod.md +docs/Model/UpdateWorkspacePayload.md docs/Model/Usage.md docs/Model/VerifiableCredentialPrimingResponse.md docs/Model/VerifiableCredentialProof.md @@ -261,6 +265,7 @@ docs/Model/VerificationFlowState.md docs/Model/Version.md docs/Model/Warning.md docs/Model/Workspace.md +docs/Model/WorkspaceMeta.md git_push.sh lib/Api/CourierApi.php lib/Api/EventsApi.php @@ -313,8 +318,11 @@ lib/Model/CreateRecoveryCodeForIdentityBody.php lib/Model/CreateRecoveryLinkForIdentityBody.php lib/Model/CreateRelationshipBody.php lib/Model/CreateSubscriptionBody.php +lib/Model/CreateSubscriptionCommon.php lib/Model/CreateVerifiableCredentialRequestBody.php lib/Model/CreateWorkspaceMemberInviteBody.php +lib/Model/CreateWorkspacePayload.php +lib/Model/CreateWorkspaceSubscriptionBody.php lib/Model/CredentialSupportedDraft00.php lib/Model/CustomDomain.php lib/Model/DeleteMySessionsCount.php @@ -348,12 +356,10 @@ lib/Model/IdentityCredentialsCode.php lib/Model/IdentityCredentialsOidc.php lib/Model/IdentityCredentialsOidcProvider.php lib/Model/IdentityCredentialsPassword.php -lib/Model/IdentityCredentialsType.php lib/Model/IdentityPatch.php lib/Model/IdentityPatchResponse.php lib/Model/IdentitySchemaContainer.php lib/Model/IdentitySchemaPreset.php -lib/Model/IdentityState.php lib/Model/IdentityWithCredentials.php lib/Model/IdentityWithCredentialsOidc.php lib/Model/IdentityWithCredentialsOidcConfig.php @@ -368,7 +374,6 @@ lib/Model/InternalGetProjectBrandingBody.php lib/Model/InternalIsAXWelcomeScreenEnabledForProjectBody.php lib/Model/InternalIsOwnerForProjectBySlugBody.php lib/Model/InternalIsOwnerForProjectBySlugResponse.php -lib/Model/InternalProvisionMockSubscription.php lib/Model/IntrospectedOAuth2Token.php lib/Model/IsOwnerForProjectBySlug.php lib/Model/JsonPatch.php @@ -378,6 +383,7 @@ lib/Model/KetoNamespace.php lib/Model/ListEventStreams.php lib/Model/ListMyWorkspacesResponse.php lib/Model/ListOrganizationsResponse.php +lib/Model/ListWorkspaceProjectsResponse.php lib/Model/LoginFlow.php lib/Model/LoginFlowState.php lib/Model/LogoutFlow.php @@ -387,6 +393,7 @@ lib/Model/MemberInvite.php lib/Model/Message.php lib/Model/MessageDispatch.php lib/Model/MetricsDatapoint.php +lib/Model/MigrationOptions.php lib/Model/ModelInterface.php lib/Model/ModelNamespace.php lib/Model/NeedsPrivilegedSessionError.php @@ -416,6 +423,7 @@ lib/Model/PaginationHeaders.php lib/Model/ParseError.php lib/Model/PatchIdentitiesBody.php lib/Model/PerformNativeLogoutBody.php +lib/Model/PermissionsOnWorkpaceResponse.php lib/Model/Plan.php lib/Model/PlanDetails.php lib/Model/PostCheckPermissionBody.php @@ -428,6 +436,7 @@ lib/Model/ProjectBrandingTheme.php lib/Model/ProjectCors.php lib/Model/ProjectEventsDatapoint.php lib/Model/ProjectHost.php +lib/Model/ProjectMember.php lib/Model/ProjectMetadata.php lib/Model/ProjectServiceIdentity.php lib/Model/ProjectServiceOAuth2.php @@ -462,7 +471,6 @@ lib/Model/SetProjectBrandingThemeBody.php lib/Model/SettingsFlow.php lib/Model/SettingsFlowState.php lib/Model/SourcePosition.php -lib/Model/StripeCustomer.php lib/Model/SubjectSet.php lib/Model/Subscription.php lib/Model/SuccessfulCodeExchangeResponse.php @@ -513,6 +521,7 @@ lib/Model/UpdateSubscriptionBody.php lib/Model/UpdateVerificationFlowBody.php lib/Model/UpdateVerificationFlowWithCodeMethod.php lib/Model/UpdateVerificationFlowWithLinkMethod.php +lib/Model/UpdateWorkspacePayload.php lib/Model/Usage.php lib/Model/VerifiableCredentialPrimingResponse.php lib/Model/VerifiableCredentialProof.php @@ -523,6 +532,7 @@ lib/Model/VerificationFlowState.php lib/Model/Version.php lib/Model/Warning.php lib/Model/Workspace.php +lib/Model/WorkspaceMeta.php lib/ObjectSerializer.php phpunit.xml.dist test/Api/CourierApiTest.php @@ -573,8 +583,11 @@ test/Model/CreateRecoveryCodeForIdentityBodyTest.php test/Model/CreateRecoveryLinkForIdentityBodyTest.php test/Model/CreateRelationshipBodyTest.php test/Model/CreateSubscriptionBodyTest.php +test/Model/CreateSubscriptionCommonTest.php test/Model/CreateVerifiableCredentialRequestBodyTest.php test/Model/CreateWorkspaceMemberInviteBodyTest.php +test/Model/CreateWorkspacePayloadTest.php +test/Model/CreateWorkspaceSubscriptionBodyTest.php test/Model/CredentialSupportedDraft00Test.php test/Model/CustomDomainTest.php test/Model/DeleteMySessionsCountTest.php @@ -607,12 +620,10 @@ test/Model/IdentityCredentialsOidcProviderTest.php test/Model/IdentityCredentialsOidcTest.php test/Model/IdentityCredentialsPasswordTest.php test/Model/IdentityCredentialsTest.php -test/Model/IdentityCredentialsTypeTest.php test/Model/IdentityPatchResponseTest.php test/Model/IdentityPatchTest.php test/Model/IdentitySchemaContainerTest.php test/Model/IdentitySchemaPresetTest.php -test/Model/IdentityStateTest.php test/Model/IdentityTest.php test/Model/IdentityWithCredentialsOidcConfigProviderTest.php test/Model/IdentityWithCredentialsOidcConfigTest.php @@ -628,7 +639,6 @@ test/Model/InternalGetProjectBrandingBodyTest.php test/Model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.php test/Model/InternalIsOwnerForProjectBySlugBodyTest.php test/Model/InternalIsOwnerForProjectBySlugResponseTest.php -test/Model/InternalProvisionMockSubscriptionTest.php test/Model/IntrospectedOAuth2TokenTest.php test/Model/IsOwnerForProjectBySlugTest.php test/Model/JsonPatchTest.php @@ -638,6 +648,7 @@ test/Model/KetoNamespaceTest.php test/Model/ListEventStreamsTest.php test/Model/ListMyWorkspacesResponseTest.php test/Model/ListOrganizationsResponseTest.php +test/Model/ListWorkspaceProjectsResponseTest.php test/Model/LoginFlowStateTest.php test/Model/LoginFlowTest.php test/Model/LogoutFlowTest.php @@ -647,6 +658,7 @@ test/Model/MemberInviteTest.php test/Model/MessageDispatchTest.php test/Model/MessageTest.php test/Model/MetricsDatapointTest.php +test/Model/MigrationOptionsTest.php test/Model/ModelNamespaceTest.php test/Model/NeedsPrivilegedSessionErrorTest.php test/Model/NormalizedProjectRevisionCourierChannelTest.php @@ -675,6 +687,7 @@ test/Model/PaginationTest.php test/Model/ParseErrorTest.php test/Model/PatchIdentitiesBodyTest.php test/Model/PerformNativeLogoutBodyTest.php +test/Model/PermissionsOnWorkpaceResponseTest.php test/Model/PlanDetailsTest.php test/Model/PlanTest.php test/Model/PostCheckPermissionBodyTest.php @@ -686,6 +699,7 @@ test/Model/ProjectBrandingThemeTest.php test/Model/ProjectCorsTest.php test/Model/ProjectEventsDatapointTest.php test/Model/ProjectHostTest.php +test/Model/ProjectMemberTest.php test/Model/ProjectMetadataTest.php test/Model/ProjectServiceIdentityTest.php test/Model/ProjectServiceOAuth2Test.php @@ -721,7 +735,6 @@ test/Model/SetProjectTest.php test/Model/SettingsFlowStateTest.php test/Model/SettingsFlowTest.php test/Model/SourcePositionTest.php -test/Model/StripeCustomerTest.php test/Model/SubjectSetTest.php test/Model/SubscriptionTest.php test/Model/SuccessfulCodeExchangeResponseTest.php @@ -772,6 +785,7 @@ test/Model/UpdateSubscriptionBodyTest.php test/Model/UpdateVerificationFlowBodyTest.php test/Model/UpdateVerificationFlowWithCodeMethodTest.php test/Model/UpdateVerificationFlowWithLinkMethodTest.php +test/Model/UpdateWorkspacePayloadTest.php test/Model/UsageTest.php test/Model/VerifiableCredentialPrimingResponseTest.php test/Model/VerifiableCredentialProofTest.php @@ -781,4 +795,5 @@ test/Model/VerificationFlowStateTest.php test/Model/VerificationFlowTest.php test/Model/VersionTest.php test/Model/WarningTest.php +test/Model/WorkspaceMetaTest.php test/Model/WorkspaceTest.php diff --git a/clients/client/php/README.md b/clients/client/php/README.md index 2982ff87c94..ec3bd1422e8 100644 --- a/clients/client/php/README.md +++ b/clients/client/php/README.md @@ -248,8 +248,11 @@ Class | Method | HTTP request | Description - [CreateRecoveryLinkForIdentityBody](docs/Model/CreateRecoveryLinkForIdentityBody.md) - [CreateRelationshipBody](docs/Model/CreateRelationshipBody.md) - [CreateSubscriptionBody](docs/Model/CreateSubscriptionBody.md) +- [CreateSubscriptionCommon](docs/Model/CreateSubscriptionCommon.md) - [CreateVerifiableCredentialRequestBody](docs/Model/CreateVerifiableCredentialRequestBody.md) - [CreateWorkspaceMemberInviteBody](docs/Model/CreateWorkspaceMemberInviteBody.md) +- [CreateWorkspacePayload](docs/Model/CreateWorkspacePayload.md) +- [CreateWorkspaceSubscriptionBody](docs/Model/CreateWorkspaceSubscriptionBody.md) - [CredentialSupportedDraft00](docs/Model/CredentialSupportedDraft00.md) - [CustomDomain](docs/Model/CustomDomain.md) - [DeleteMySessionsCount](docs/Model/DeleteMySessionsCount.md) @@ -283,12 +286,10 @@ Class | Method | HTTP request | Description - [IdentityCredentialsOidc](docs/Model/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](docs/Model/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](docs/Model/IdentityCredentialsPassword.md) -- [IdentityCredentialsType](docs/Model/IdentityCredentialsType.md) - [IdentityPatch](docs/Model/IdentityPatch.md) - [IdentityPatchResponse](docs/Model/IdentityPatchResponse.md) - [IdentitySchemaContainer](docs/Model/IdentitySchemaContainer.md) - [IdentitySchemaPreset](docs/Model/IdentitySchemaPreset.md) -- [IdentityState](docs/Model/IdentityState.md) - [IdentityWithCredentials](docs/Model/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](docs/Model/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](docs/Model/IdentityWithCredentialsOidcConfig.md) @@ -303,7 +304,6 @@ Class | Method | HTTP request | Description - [InternalIsAXWelcomeScreenEnabledForProjectBody](docs/Model/InternalIsAXWelcomeScreenEnabledForProjectBody.md) - [InternalIsOwnerForProjectBySlugBody](docs/Model/InternalIsOwnerForProjectBySlugBody.md) - [InternalIsOwnerForProjectBySlugResponse](docs/Model/InternalIsOwnerForProjectBySlugResponse.md) -- [InternalProvisionMockSubscription](docs/Model/InternalProvisionMockSubscription.md) - [IntrospectedOAuth2Token](docs/Model/IntrospectedOAuth2Token.md) - [IsOwnerForProjectBySlug](docs/Model/IsOwnerForProjectBySlug.md) - [JsonPatch](docs/Model/JsonPatch.md) @@ -313,6 +313,7 @@ Class | Method | HTTP request | Description - [ListEventStreams](docs/Model/ListEventStreams.md) - [ListMyWorkspacesResponse](docs/Model/ListMyWorkspacesResponse.md) - [ListOrganizationsResponse](docs/Model/ListOrganizationsResponse.md) +- [ListWorkspaceProjectsResponse](docs/Model/ListWorkspaceProjectsResponse.md) - [LoginFlow](docs/Model/LoginFlow.md) - [LoginFlowState](docs/Model/LoginFlowState.md) - [LogoutFlow](docs/Model/LogoutFlow.md) @@ -322,6 +323,7 @@ Class | Method | HTTP request | Description - [Message](docs/Model/Message.md) - [MessageDispatch](docs/Model/MessageDispatch.md) - [MetricsDatapoint](docs/Model/MetricsDatapoint.md) +- [MigrationOptions](docs/Model/MigrationOptions.md) - [ModelNamespace](docs/Model/ModelNamespace.md) - [NeedsPrivilegedSessionError](docs/Model/NeedsPrivilegedSessionError.md) - [NormalizedProject](docs/Model/NormalizedProject.md) @@ -350,6 +352,7 @@ Class | Method | HTTP request | Description - [ParseError](docs/Model/ParseError.md) - [PatchIdentitiesBody](docs/Model/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](docs/Model/PerformNativeLogoutBody.md) +- [PermissionsOnWorkpaceResponse](docs/Model/PermissionsOnWorkpaceResponse.md) - [Plan](docs/Model/Plan.md) - [PlanDetails](docs/Model/PlanDetails.md) - [PostCheckPermissionBody](docs/Model/PostCheckPermissionBody.md) @@ -362,6 +365,7 @@ Class | Method | HTTP request | Description - [ProjectCors](docs/Model/ProjectCors.md) - [ProjectEventsDatapoint](docs/Model/ProjectEventsDatapoint.md) - [ProjectHost](docs/Model/ProjectHost.md) +- [ProjectMember](docs/Model/ProjectMember.md) - [ProjectMetadata](docs/Model/ProjectMetadata.md) - [ProjectServiceIdentity](docs/Model/ProjectServiceIdentity.md) - [ProjectServiceOAuth2](docs/Model/ProjectServiceOAuth2.md) @@ -396,7 +400,6 @@ Class | Method | HTTP request | Description - [SettingsFlow](docs/Model/SettingsFlow.md) - [SettingsFlowState](docs/Model/SettingsFlowState.md) - [SourcePosition](docs/Model/SourcePosition.md) -- [StripeCustomer](docs/Model/StripeCustomer.md) - [SubjectSet](docs/Model/SubjectSet.md) - [Subscription](docs/Model/Subscription.md) - [SuccessfulCodeExchangeResponse](docs/Model/SuccessfulCodeExchangeResponse.md) @@ -447,6 +450,7 @@ Class | Method | HTTP request | Description - [UpdateVerificationFlowBody](docs/Model/UpdateVerificationFlowBody.md) - [UpdateVerificationFlowWithCodeMethod](docs/Model/UpdateVerificationFlowWithCodeMethod.md) - [UpdateVerificationFlowWithLinkMethod](docs/Model/UpdateVerificationFlowWithLinkMethod.md) +- [UpdateWorkspacePayload](docs/Model/UpdateWorkspacePayload.md) - [Usage](docs/Model/Usage.md) - [VerifiableCredentialPrimingResponse](docs/Model/VerifiableCredentialPrimingResponse.md) - [VerifiableCredentialProof](docs/Model/VerifiableCredentialProof.md) @@ -457,6 +461,7 @@ Class | Method | HTTP request | Description - [Version](docs/Model/Version.md) - [Warning](docs/Model/Warning.md) - [Workspace](docs/Model/Workspace.md) +- [WorkspaceMeta](docs/Model/WorkspaceMeta.md) ## Authorization @@ -502,5 +507,5 @@ support@ory.sh This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: `v1.5.1` +- API version: `v1.8.1` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/clients/client/php/composer.lock b/clients/client/php/composer.lock index 74f71871379..b507280a802 100644 --- a/clients/client/php/composer.lock +++ b/clients/client/php/composer.lock @@ -112,6 +112,24 @@ "rest", "web service" ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.8.1" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], "time": "2023-12-03T20:35:24+00:00" }, { @@ -177,6 +195,24 @@ "keywords": [ "promise" ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.0.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], "time": "2023-12-03T20:19:20+00:00" }, { @@ -275,6 +311,24 @@ "uri", "url" ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.6.2" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], "time": "2023-12-03T20:05:35+00:00" }, { @@ -324,6 +378,9 @@ "psr", "psr-18" ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, "time": "2023-09-23T14:17:50+00:00" }, { @@ -376,6 +433,9 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-factory/tree/1.0.2" + }, "time": "2023-04-10T20:10:41+00:00" }, { @@ -426,6 +486,9 @@ "request", "response" ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, "time": "2023-04-04T09:54:51+00:00" }, { @@ -466,6 +529,10 @@ } ], "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, "time": "2019-03-08T08:55:37+00:00" }, { @@ -516,6 +583,23 @@ ], "description": "A generic function and convention to trigger deprecation notices", "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v2.5.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2022-01-02T09:53:40+00:00" } ], @@ -571,6 +655,24 @@ "regex", "regular expression" ], + "support": { + "issues": "https://github.com/composer/pcre/issues", + "source": "https://github.com/composer/pcre/tree/1.0.1" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], "time": "2022-01-21T20:24:37+00:00" }, { @@ -633,6 +735,25 @@ "validation", "versioning" ], + "support": { + "irc": "ircs://irc.libera.chat:6697/composer", + "issues": "https://github.com/composer/semver/issues", + "source": "https://github.com/composer/semver/tree/3.4.0" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], "time": "2023-08-31T09:50:34+00:00" }, { @@ -680,6 +801,25 @@ "Xdebug", "performance" ], + "support": { + "irc": "irc://irc.freenode.org/composer", + "issues": "https://github.com/composer/xdebug-handler/issues", + "source": "https://github.com/composer/xdebug-handler/tree/2.0.5" + }, + "funding": [ + { + "url": "https://packagist.com", + "type": "custom" + }, + { + "url": "https://github.com/composer", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/composer/composer", + "type": "tidelift" + } + ], "time": "2022-02-24T20:20:32+00:00" }, { @@ -752,20 +892,24 @@ "docblock", "parser" ], + "support": { + "issues": "https://github.com/doctrine/annotations/issues", + "source": "https://github.com/doctrine/annotations/tree/1.14.3" + }, "time": "2023-02-01T09:20:38+00:00" }, { "name": "doctrine/deprecations", - "version": "1.1.2", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931" + "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/4f2d4f2836e7ec4e7a8625e75c6aa916004db931", - "reference": "4f2d4f2836e7ec4e7a8625e75c6aa916004db931", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", + "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", "shasum": "" }, "require": { @@ -795,7 +939,11 @@ ], "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", "homepage": "https://www.doctrine-project.org/", - "time": "2023-09-27T20:04:15+00:00" + "support": { + "issues": "https://github.com/doctrine/deprecations/issues", + "source": "https://github.com/doctrine/deprecations/tree/1.1.3" + }, + "time": "2024-01-30T19:34:25+00:00" }, { "name": "doctrine/instantiator", @@ -847,20 +995,38 @@ "constructor", "instantiate" ], + "support": { + "issues": "https://github.com/doctrine/instantiator/issues", + "source": "https://github.com/doctrine/instantiator/tree/1.5.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finstantiator", + "type": "tidelift" + } + ], "time": "2022-12-30T00:15:36+00:00" }, { "name": "doctrine/lexer", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" + "reference": "861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6", + "reference": "861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6", "shasum": "" }, "require": { @@ -868,11 +1034,11 @@ "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^10", + "doctrine/coding-standard": "^9 || ^12", "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6", "psalm/plugin-phpunit": "^0.18.3", - "vimeo/psalm": "^4.11 || ^5.0" + "vimeo/psalm": "^4.11 || ^5.21" }, "type": "library", "autoload": { @@ -907,7 +1073,25 @@ "parser", "php" ], - "time": "2022-12-14T08:49:07+00:00" + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/2.1.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:35:39+00:00" }, { "name": "friendsofphp/php-cs-fixer", @@ -1006,6 +1190,16 @@ } ], "description": "A tool to automatically fix PHP code style", + "support": { + "issues": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/issues", + "source": "https://github.com/FriendsOfPHP/PHP-CS-Fixer/tree/v2.19.3" + }, + "funding": [ + { + "url": "https://github.com/keradus", + "type": "github" + } + ], "time": "2021-11-15T17:17:55+00:00" }, { @@ -1055,29 +1249,41 @@ "object", "object graph" ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.11.1" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], "time": "2023-03-08T13:26:56+00:00" }, { "name": "nikic/php-parser", - "version": "v4.18.0", + "version": "v5.0.2", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/139676794dc1e9231bf7bcd123cfc0c99182cb13", + "reference": "139676794dc1e9231bf7bcd123cfc0c99182cb13", "shasum": "" }, "require": { + "ext-ctype": "*", + "ext-json": "*", "ext-tokenizer": "*", - "php": ">=7.0" + "php": ">=7.4" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", - "phpunit/phpunit": "^6.5 || ^7.0 || ^8.0 || ^9.0" + "phpunit/phpunit": "^7.0 || ^8.0 || ^9.0" }, "bin": [ "bin/php-parse" @@ -1085,7 +1291,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "4.9-dev" + "dev-master": "5.0-dev" } }, "autoload": { @@ -1107,24 +1313,29 @@ "parser", "php" ], - "time": "2023-12-10T21:03:43+00:00" + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.0.2" + }, + "time": "2024-03-05T20:51:40+00:00" }, { "name": "phar-io/manifest", - "version": "2.0.3", + "version": "2.0.4", "source": { "type": "git", "url": "https://github.com/phar-io/manifest.git", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53" + "reference": "54750ef60c58e43759730615a392c31c80e23176" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/phar-io/manifest/zipball/97803eca37d319dfa7826cc2437fc020857acb53", - "reference": "97803eca37d319dfa7826cc2437fc020857acb53", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", "shasum": "" }, "require": { "ext-dom": "*", + "ext-libxml": "*", "ext-phar": "*", "ext-xmlwriter": "*", "phar-io/version": "^3.0.1", @@ -1163,7 +1374,17 @@ } ], "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", - "time": "2021-07-20T11:28:43+00:00" + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" }, { "name": "phar-io/version", @@ -1210,6 +1431,10 @@ } ], "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, "time": "2022-02-21T01:04:05+00:00" }, { @@ -1261,21 +1486,25 @@ "keywords": [ "diff" ], + "support": { + "issues": "https://github.com/PHP-CS-Fixer/diff/issues", + "source": "https://github.com/PHP-CS-Fixer/diff/tree/v1.3.1" + }, "abandoned": true, "time": "2020-10-14T08:39:05+00:00" }, { "name": "phpunit/php-code-coverage", - "version": "9.2.30", + "version": "9.2.31", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089" + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ca2bd87d2f9215904682a9cb9bb37dda98e76089", - "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/48c34b5d8d983006bd2adc2d0de92963b9155965", + "reference": "48c34b5d8d983006bd2adc2d0de92963b9155965", "shasum": "" }, "require": { @@ -1329,7 +1558,18 @@ "testing", "xunit" ], - "time": "2023-12-22T06:47:57+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/9.2.31" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:37:42+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1379,6 +1619,16 @@ "filesystem", "iterator" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/3.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2021-12-02T12:48:52+00:00" }, { @@ -1432,6 +1682,16 @@ "keywords": [ "process" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/3.1.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-09-28T05:58:55+00:00" }, { @@ -1481,6 +1741,16 @@ "keywords": [ "template" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-10-26T05:33:50+00:00" }, { @@ -1530,20 +1800,30 @@ "keywords": [ "timer" ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "source": "https://github.com/sebastianbergmann/php-timer/tree/5.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-10-26T13:16:10+00:00" }, { "name": "phpunit/phpunit", - "version": "9.6.15", + "version": "9.6.17", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "05017b80304e0eb3f31d90194a563fd53a6021f1" + "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/05017b80304e0eb3f31d90194a563fd53a6021f1", - "reference": "05017b80304e0eb3f31d90194a563fd53a6021f1", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/1a156980d78a6666721b7e8e8502fe210b587fcd", + "reference": "1a156980d78a6666721b7e8e8502fe210b587fcd", "shasum": "" }, "require": { @@ -1614,7 +1894,26 @@ "testing", "xunit" ], - "time": "2023-12-01T16:55:19+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/9.6.17" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsors.html", + "type": "custom" + }, + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/phpunit", + "type": "tidelift" + } + ], + "time": "2024-02-23T13:14:51+00:00" }, { "name": "psr/cache", @@ -1660,24 +1959,27 @@ "psr", "psr-6" ], + "support": { + "source": "https://github.com/php-fig/cache/tree/master" + }, "time": "2016-08-06T20:24:11+00:00" }, { "name": "psr/container", - "version": "1.1.1", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/container.git", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf" + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/container/zipball/8622567409010282b7aeebe4bb841fe98b58dcaf", - "reference": "8622567409010282b7aeebe4bb841fe98b58dcaf", + "url": "https://api.github.com/repos/php-fig/container/zipball/513e0666f7216c7459170d56df27dfcefe1689ea", + "reference": "513e0666f7216c7459170d56df27dfcefe1689ea", "shasum": "" }, "require": { - "php": ">=7.2.0" + "php": ">=7.4.0" }, "type": "library", "autoload": { @@ -1704,7 +2006,11 @@ "container-interop", "psr" ], - "time": "2021-03-05T17:36:06+00:00" + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/1.1.2" + }, + "time": "2021-11-05T16:50:12+00:00" }, { "name": "psr/event-dispatcher", @@ -1750,6 +2056,10 @@ "psr", "psr-14" ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, "time": "2019-01-08T18:20:26+00:00" }, { @@ -1797,20 +2107,23 @@ "psr", "psr-3" ], + "support": { + "source": "https://github.com/php-fig/log/tree/1.1.4" + }, "time": "2021-05-03T11:20:27+00:00" }, { "name": "sebastian/cli-parser", - "version": "1.0.1", + "version": "1.0.2", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/cli-parser.git", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2" + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/442e7c7e687e42adc03470c7b668bc4b2402c0b2", - "reference": "442e7c7e687e42adc03470c7b668bc4b2402c0b2", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/2b56bea83a09de3ac06bb18b92f068e60cc6f50b", + "reference": "2b56bea83a09de3ac06bb18b92f068e60cc6f50b", "shasum": "" }, "require": { @@ -1843,7 +2156,17 @@ ], "description": "Library for parsing CLI options", "homepage": "https://github.com/sebastianbergmann/cli-parser", - "time": "2020-09-28T06:08:49+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/1.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:27:43+00:00" }, { "name": "sebastian/code-unit", @@ -1889,6 +2212,16 @@ ], "description": "Collection of value objects that represent the PHP code units", "homepage": "https://github.com/sebastianbergmann/code-unit", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit/issues", + "source": "https://github.com/sebastianbergmann/code-unit/tree/1.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-10-26T13:08:54+00:00" }, { @@ -1934,6 +2267,16 @@ ], "description": "Looks up which function or method a line of code belongs to", "homepage": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/", + "support": { + "issues": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/issues", + "source": "https://github.com/sebastianbergmann/code-unit-reverse-lookup/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-09-28T05:30:19+00:00" }, { @@ -1998,6 +2341,16 @@ "compare", "equality" ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "source": "https://github.com/sebastianbergmann/comparator/tree/4.0.8" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2022-09-14T12:41:17+00:00" }, { @@ -2045,20 +2398,30 @@ ], "description": "Library for calculating the complexity of PHP code units", "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "source": "https://github.com/sebastianbergmann/complexity/tree/2.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2023-12-22T06:19:30+00:00" }, { "name": "sebastian/diff", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/diff.git", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131" + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/74be17022044ebaaecfdf0c5cd504fc9cd5a7131", - "reference": "74be17022044ebaaecfdf0c5cd504fc9cd5a7131", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/ba01945089c3a293b01ba9badc29ad55b106b0bc", + "reference": "ba01945089c3a293b01ba9badc29ad55b106b0bc", "shasum": "" }, "require": { @@ -2101,7 +2464,17 @@ "unidiff", "unified diff" ], - "time": "2023-05-07T05:35:17+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "source": "https://github.com/sebastianbergmann/diff/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:30:58+00:00" }, { "name": "sebastian/environment", @@ -2154,20 +2527,30 @@ "environment", "hhvm" ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "source": "https://github.com/sebastianbergmann/environment/tree/5.1.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2023-02-03T06:03:51+00:00" }, { "name": "sebastian/exporter", - "version": "4.0.5", + "version": "4.0.6", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/exporter.git", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d" + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", - "reference": "ac230ed27f0f98f597c8a2b6eb7ac563af5e5b9d", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/78c00df8f170e02473b682df15bfcdacc3d32d72", + "reference": "78c00df8f170e02473b682df15bfcdacc3d32d72", "shasum": "" }, "require": { @@ -2221,20 +2604,30 @@ "export", "exporter" ], - "time": "2022-09-14T06:03:37+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "source": "https://github.com/sebastianbergmann/exporter/tree/4.0.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:33:00+00:00" }, { "name": "sebastian/global-state", - "version": "5.0.6", + "version": "5.0.7", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/global-state.git", - "reference": "bde739e7565280bda77be70044ac1047bc007e34" + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bde739e7565280bda77be70044ac1047bc007e34", - "reference": "bde739e7565280bda77be70044ac1047bc007e34", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", + "reference": "bca7df1f32ee6fe93b4d4a9abbf69e13a4ada2c9", "shasum": "" }, "require": { @@ -2275,7 +2668,17 @@ "keywords": [ "global state" ], - "time": "2023-08-02T09:26:13+00:00" + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "source": "https://github.com/sebastianbergmann/global-state/tree/5.0.7" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2024-03-02T06:35:11+00:00" }, { "name": "sebastian/lines-of-code", @@ -2322,6 +2725,16 @@ ], "description": "Library for counting the lines of code in PHP source code", "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/1.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2023-12-22T06:20:34+00:00" }, { @@ -2369,6 +2782,16 @@ ], "description": "Traverses array structures and object graphs to enumerate all referenced objects", "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-10-26T13:12:34+00:00" }, { @@ -2414,6 +2837,16 @@ ], "description": "Allows reflection of object attributes, including inherited and non-public ones", "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-10-26T13:14:26+00:00" }, { @@ -2467,6 +2900,16 @@ ], "description": "Provides functionality to recursively process PHP variables", "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/4.0.5" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2023-02-03T06:07:39+00:00" }, { @@ -2512,6 +2955,16 @@ ], "description": "Provides a list of PHP built-in functions that operate on resources", "homepage": "https://www.github.com/sebastianbergmann/resource-operations", + "support": { + "issues": "https://github.com/sebastianbergmann/resource-operations/issues", + "source": "https://github.com/sebastianbergmann/resource-operations/tree/3.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-09-28T06:45:17+00:00" }, { @@ -2558,6 +3011,16 @@ ], "description": "Collection of value objects that represent the types of the PHP type system", "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "source": "https://github.com/sebastianbergmann/type/tree/3.2.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2023-02-03T06:13:03+00:00" }, { @@ -2601,20 +3064,30 @@ ], "description": "Library that helps with managing the version number of Git-hosted PHP projects", "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "source": "https://github.com/sebastianbergmann/version/tree/3.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], "time": "2020-09-28T06:39:44+00:00" }, { "name": "symfony/console", - "version": "v5.4.34", + "version": "v5.4.36", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "4b4d8cd118484aa604ec519062113dd87abde18c" + "reference": "39f75d9d73d0c11952fdcecf4877b4d0f62a8f6e" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/4b4d8cd118484aa604ec519062113dd87abde18c", - "reference": "4b4d8cd118484aa604ec519062113dd87abde18c", + "url": "https://api.github.com/repos/symfony/console/zipball/39f75d9d73d0c11952fdcecf4877b4d0f62a8f6e", + "reference": "39f75d9d73d0c11952fdcecf4877b4d0f62a8f6e", "shasum": "" }, "require": { @@ -2683,20 +3156,37 @@ "console", "terminal" ], - "time": "2023-12-08T13:33:03+00:00" + "support": { + "source": "https://github.com/symfony/console/tree/v5.4.36" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-20T16:33:57+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.4.34", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "e3bca343efeb613f843c254e7718ef17c9bdf7a3" + "reference": "7a69a85c7ea5bdd1e875806a99c51a87d3a74b38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/e3bca343efeb613f843c254e7718ef17c9bdf7a3", - "reference": "e3bca343efeb613f843c254e7718ef17c9bdf7a3", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7a69a85c7ea5bdd1e875806a99c51a87d3a74b38", + "reference": "7a69a85c7ea5bdd1e875806a99c51a87d3a74b38", "shasum": "" }, "require": { @@ -2751,7 +3241,24 @@ ], "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", - "time": "2023-12-27T21:12:56+00:00" + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v5.4.35" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -2813,20 +3320,37 @@ "interoperability", "standards" ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v2.5.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2022-01-02T09:53:40+00:00" }, { "name": "symfony/filesystem", - "version": "v5.4.25", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364" + "reference": "5a553607d4ffbfa9c0ab62facadea296c9db7086" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/5a553607d4ffbfa9c0ab62facadea296c9db7086", + "reference": "5a553607d4ffbfa9c0ab62facadea296c9db7086", "shasum": "" }, "require": { @@ -2860,20 +3384,37 @@ ], "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", - "time": "2023-05-31T13:04:02+00:00" + "support": { + "source": "https://github.com/symfony/filesystem/tree/v5.4.35" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/finder", - "version": "v5.4.27", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d" + "reference": "abe6d6f77d9465fed3cd2d029b29d03b56b56435" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ff4bce3c33451e7ec778070e45bd23f74214cd5d", - "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d", + "url": "https://api.github.com/repos/symfony/finder/zipball/abe6d6f77d9465fed3cd2d029b29d03b56b56435", + "reference": "abe6d6f77d9465fed3cd2d029b29d03b56b56435", "shasum": "" }, "require": { @@ -2906,7 +3447,24 @@ ], "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", - "time": "2023-07-31T08:02:31+00:00" + "support": { + "source": "https://github.com/symfony/finder/tree/v5.4.35" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/options-resolver", @@ -2958,20 +3516,37 @@ "configuration", "options" ], + "support": { + "source": "https://github.com/symfony/options-resolver/tree/v5.4.21" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2023-02-14T08:03:56+00:00" }, { "name": "symfony/polyfill-ctype", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb" + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", - "reference": "ea208ce43cbb04af6867b4fdddb1bdbf84cc28cb", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", "shasum": "" }, "require": { @@ -2985,9 +3560,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3023,20 +3595,37 @@ "polyfill", "portable" ], - "time": "2023-01-26T09:26:14+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "875e90aeea2777b6f135677f618529449334a612" + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/875e90aeea2777b6f135677f618529449334a612", - "reference": "875e90aeea2777b6f135677f618529449334a612", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", "shasum": "" }, "require": { @@ -3047,9 +3636,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3087,20 +3673,37 @@ "portable", "shim" ], - "time": "2023-01-26T09:26:14+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92" + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", - "reference": "8c4ad05dd0120b6a53c1ca374dca2ad0a1c4ed92", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", "shasum": "" }, "require": { @@ -3111,9 +3714,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3154,20 +3754,37 @@ "portable", "shim" ], - "time": "2023-01-26T09:26:14+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "42292d99c55abe617799667f454222c54c60e229" + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/42292d99c55abe617799667f454222c54c60e229", - "reference": "42292d99c55abe617799667f454222c54c60e229", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", "shasum": "" }, "require": { @@ -3181,9 +3798,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3220,7 +3834,24 @@ "portable", "shim" ], - "time": "2023-07-28T09:04:16+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-php70", @@ -3271,20 +3902,37 @@ "portable", "shim" ], + "support": { + "source": "https://github.com/symfony/polyfill-php70/tree/v1.20.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2020-10-23T14:02:19+00:00" }, { "name": "symfony/polyfill-php72", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "70f4aebd92afca2f865444d30a4d2151c13c3179" + "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/70f4aebd92afca2f865444d30a4d2151c13c3179", - "reference": "70f4aebd92afca2f865444d30a4d2151c13c3179", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/861391a8da9a04cbad2d232ddd9e4893220d6e25", + "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25", "shasum": "" }, "require": { @@ -3292,9 +3940,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3330,20 +3975,37 @@ "portable", "shim" ], - "time": "2023-01-26T09:26:14+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-php72/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "fe2f306d1d9d346a7fee353d0d5012e401e984b5" + "reference": "21bd091060673a1177ae842c0ef8fe30893114d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/fe2f306d1d9d346a7fee353d0d5012e401e984b5", - "reference": "fe2f306d1d9d346a7fee353d0d5012e401e984b5", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/21bd091060673a1177ae842c0ef8fe30893114d2", + "reference": "21bd091060673a1177ae842c0ef8fe30893114d2", "shasum": "" }, "require": { @@ -3351,9 +4013,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3392,20 +4051,37 @@ "portable", "shim" ], - "time": "2023-01-26T09:26:14+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-php73/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.28.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5" + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/6caa57379c4aec19c0a12a38b59b26487dcfe4b5", - "reference": "6caa57379c4aec19c0a12a38b59b26487dcfe4b5", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", "shasum": "" }, "require": { @@ -3413,9 +4089,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.28-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3458,20 +4131,37 @@ "portable", "shim" ], - "time": "2023-01-26T09:26:14+00:00" + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.29.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/process", - "version": "v5.4.34", + "version": "v5.4.36", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "8fa22178dfc368911dbd513b431cd9b06f9afe7a" + "reference": "4fdf34004f149cc20b2f51d7d119aa500caad975" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/8fa22178dfc368911dbd513b431cd9b06f9afe7a", - "reference": "8fa22178dfc368911dbd513b431cd9b06f9afe7a", + "url": "https://api.github.com/repos/symfony/process/zipball/4fdf34004f149cc20b2f51d7d119aa500caad975", + "reference": "4fdf34004f149cc20b2f51d7d119aa500caad975", "shasum": "" }, "require": { @@ -3503,7 +4193,24 @@ ], "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", - "time": "2023-12-02T08:41:43+00:00" + "support": { + "source": "https://github.com/symfony/process/tree/v5.4.36" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-12T15:49:53+00:00" }, { "name": "symfony/service-contracts", @@ -3569,20 +4276,37 @@ "interoperability", "standards" ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v2.5.2" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], "time": "2022-05-30T19:17:29+00:00" }, { "name": "symfony/stopwatch", - "version": "v5.4.21", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" + "reference": "887762aa99ff16f65dc8b48aafead415f942d407" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/887762aa99ff16f65dc8b48aafead415f942d407", + "reference": "887762aa99ff16f65dc8b48aafead415f942d407", "shasum": "" }, "require": { @@ -3614,20 +4338,37 @@ ], "description": "Provides a way to profile code", "homepage": "https://symfony.com", - "time": "2023-02-14T08:03:56+00:00" + "support": { + "source": "https://github.com/symfony/stopwatch/tree/v5.4.35" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/string", - "version": "v5.4.34", + "version": "v5.4.36", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "e3f98bfc7885c957488f443df82d97814a3ce061" + "reference": "4e232c83622bd8cd32b794216aa29d0d266d353b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/e3f98bfc7885c957488f443df82d97814a3ce061", - "reference": "e3f98bfc7885c957488f443df82d97814a3ce061", + "url": "https://api.github.com/repos/symfony/string/zipball/4e232c83622bd8cd32b794216aa29d0d266d353b", + "reference": "4e232c83622bd8cd32b794216aa29d0d266d353b", "shasum": "" }, "require": { @@ -3683,20 +4424,37 @@ "utf-8", "utf8" ], - "time": "2023-12-09T13:20:28+00:00" + "support": { + "source": "https://github.com/symfony/string/tree/v5.4.36" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-02-01T08:49:30+00:00" }, { "name": "theseer/tokenizer", - "version": "1.2.2", + "version": "1.2.3", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", - "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", + "reference": "737eda637ed5e28c3413cb1ebe8bb52cbf1ca7a2", "shasum": "" }, "require": { @@ -3723,7 +4481,17 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "time": "2023-11-20T00:12:19+00:00" + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/1.2.3" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:36:25+00:00" } ], "aliases": [], @@ -3737,5 +4505,6 @@ "ext-json": "*", "ext-mbstring": "*" }, - "platform-dev": [] + "platform-dev": [], + "plugin-api-version": "2.0.0" } diff --git a/clients/client/php/docs/Api/FrontendApi.md b/clients/client/php/docs/Api/FrontendApi.md index db2ee2d33af..48ceb8ccb89 100644 --- a/clients/client/php/docs/Api/FrontendApi.md +++ b/clients/client/php/docs/Api/FrontendApi.md @@ -39,7 +39,7 @@ Method | HTTP request | Description ## `createBrowserLoginFlow()` ```php -createBrowserLoginFlow($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization): \Ory\Client\Model\LoginFlow +createBrowserLoginFlow($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization, $via): \Ory\Client\Model\LoginFlow ``` Create Login Flow for Browsers @@ -65,9 +65,10 @@ $returnTo = 'returnTo_example'; // string | The URL to return the browser to aft $cookie = 'cookie_example'; // string | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. $loginChallenge = 'loginChallenge_example'; // string | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). $organization = 'organization_example'; // string | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. +$via = 'via_example'; // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - $result = $apiInstance->createBrowserLoginFlow($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization); + $result = $apiInstance->createBrowserLoginFlow($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization, $via); print_r($result); } catch (Exception $e) { echo 'Exception when calling FrontendApi->createBrowserLoginFlow: ', $e->getMessage(), PHP_EOL; @@ -84,6 +85,7 @@ Name | Type | Description | Notes **cookie** | **string**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] **loginChallenge** | **string**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] **organization** | **string**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] + **via** | **string**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type @@ -395,7 +397,7 @@ No authorization required ## `createNativeLoginFlow()` ```php -createNativeLoginFlow($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo): \Ory\Client\Model\LoginFlow +createNativeLoginFlow($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo, $via): \Ory\Client\Model\LoginFlow ``` Create Login Flow for Native Apps @@ -420,9 +422,10 @@ $aal = 'aal_example'; // string | Request a Specific AuthenticationMethod Assura $xSessionToken = 'xSessionToken_example'; // string | The Session Token of the Identity performing the settings flow. $returnSessionTokenExchangeCode = True; // bool | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. $returnTo = 'returnTo_example'; // string | The URL to return the browser to after the flow was completed. +$via = 'via_example'; // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - $result = $apiInstance->createNativeLoginFlow($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo); + $result = $apiInstance->createNativeLoginFlow($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo, $via); print_r($result); } catch (Exception $e) { echo 'Exception when calling FrontendApi->createNativeLoginFlow: ', $e->getMessage(), PHP_EOL; @@ -438,6 +441,7 @@ Name | Type | Description | Notes **xSessionToken** | **string**| The Session Token of the Identity performing the settings flow. | [optional] **returnSessionTokenExchangeCode** | **bool**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] **returnTo** | **string**| The URL to return the browser to after the flow was completed. | [optional] + **via** | **string**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type diff --git a/clients/client/php/docs/Api/IdentityApi.md b/clients/client/php/docs/Api/IdentityApi.md index 15784efec02..f81ea1c19a0 100644 --- a/clients/client/php/docs/Api/IdentityApi.md +++ b/clients/client/php/docs/Api/IdentityApi.md @@ -207,7 +207,7 @@ Name | Type | Description | Notes ## `createRecoveryLinkForIdentity()` ```php -createRecoveryLinkForIdentity($createRecoveryLinkForIdentityBody): \Ory\Client\Model\RecoveryLinkForIdentity +createRecoveryLinkForIdentity($returnTo, $createRecoveryLinkForIdentityBody): \Ory\Client\Model\RecoveryLinkForIdentity ``` Create a Recovery Link @@ -231,10 +231,11 @@ $apiInstance = new Ory\Client\Api\IdentityApi( new GuzzleHttp\Client(), $config ); +$returnTo = 'returnTo_example'; // string $createRecoveryLinkForIdentityBody = new \Ory\Client\Model\CreateRecoveryLinkForIdentityBody(); // \Ory\Client\Model\CreateRecoveryLinkForIdentityBody try { - $result = $apiInstance->createRecoveryLinkForIdentity($createRecoveryLinkForIdentityBody); + $result = $apiInstance->createRecoveryLinkForIdentity($returnTo, $createRecoveryLinkForIdentityBody); print_r($result); } catch (Exception $e) { echo 'Exception when calling IdentityApi->createRecoveryLinkForIdentity: ', $e->getMessage(), PHP_EOL; @@ -245,6 +246,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **returnTo** | **string**| | [optional] **createRecoveryLinkForIdentityBody** | [**\Ory\Client\Model\CreateRecoveryLinkForIdentityBody**](../Model/CreateRecoveryLinkForIdentityBody.md)| | [optional] ### Return type @@ -351,7 +353,7 @@ $apiInstance = new Ory\Client\Api\IdentityApi( $config ); $id = 'id_example'; // string | ID is the identity's ID. -$type = 'type_example'; // string | Type is the credential's Type. One of totp, webauthn, lookup +$type = 'type_example'; // string | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 try { $apiInstance->deleteIdentityCredentials($id, $type); @@ -365,7 +367,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| ID is the identity's ID. | - **type** | **string**| Type is the credential's Type. One of totp, webauthn, lookup | + **type** | **string**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -745,7 +747,7 @@ Name | Type | Description | Notes ## `listIdentities()` ```php -listIdentities($perPage, $page, $pageSize, $pageToken, $consistency, $idsFilter, $credentialsIdentifier, $previewCredentialsIdentifierSimilar): \Ory\Client\Model\Identity[] +listIdentities($perPage, $page, $pageSize, $pageToken, $consistency, $ids, $credentialsIdentifier, $previewCredentialsIdentifierSimilar, $includeCredential): \Ory\Client\Model\Identity[] ``` List Identities @@ -774,12 +776,13 @@ $page = 56; // int | Deprecated Pagination Page DEPRECATED: Please use `page_to $pageSize = 250; // int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). $pageToken = '1'; // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). $consistency = 'consistency_example'; // string | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. -$idsFilter = array('idsFilter_example'); // string[] | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. +$ids = array('ids_example'); // string[] | List of ids used to filter identities. If this list is empty, then no filter will be applied. $credentialsIdentifier = 'credentialsIdentifier_example'; // string | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. $previewCredentialsIdentifierSimilar = 'previewCredentialsIdentifierSimilar_example'; // string | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. +$includeCredential = array('includeCredential_example'); // string[] | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. try { - $result = $apiInstance->listIdentities($perPage, $page, $pageSize, $pageToken, $consistency, $idsFilter, $credentialsIdentifier, $previewCredentialsIdentifierSimilar); + $result = $apiInstance->listIdentities($perPage, $page, $pageSize, $pageToken, $consistency, $ids, $credentialsIdentifier, $previewCredentialsIdentifierSimilar, $includeCredential); print_r($result); } catch (Exception $e) { echo 'Exception when calling IdentityApi->listIdentities: ', $e->getMessage(), PHP_EOL; @@ -795,9 +798,10 @@ Name | Type | Description | Notes **pageSize** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] **pageToken** | **string**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to '1'] **consistency** | **string**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] - **idsFilter** | [**string[]**](../Model/string.md)| IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] + **ids** | [**string[]**](../Model/string.md)| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] **credentialsIdentifier** | **string**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] **previewCredentialsIdentifierSimilar** | **string**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] + **includeCredential** | [**string[]**](../Model/string.md)| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] ### Return type diff --git a/clients/client/php/docs/Api/PermissionApi.md b/clients/client/php/docs/Api/PermissionApi.md index a62ef2a4e63..1a5b1f11e07 100644 --- a/clients/client/php/docs/Api/PermissionApi.md +++ b/clients/client/php/docs/Api/PermissionApi.md @@ -314,7 +314,7 @@ $apiInstance = new Ory\Client\Api\PermissionApi( new GuzzleHttp\Client(), $config ); -$maxDepth = 56; // int | nolint:deadcode,unused +$maxDepth = 56; // int $postCheckPermissionOrErrorBody = new \Ory\Client\Model\PostCheckPermissionOrErrorBody(); // \Ory\Client\Model\PostCheckPermissionOrErrorBody try { @@ -329,7 +329,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **maxDepth** | **int**| nolint:deadcode,unused | [optional] + **maxDepth** | **int**| | [optional] **postCheckPermissionOrErrorBody** | [**\Ory\Client\Model\PostCheckPermissionOrErrorBody**](../Model/PostCheckPermissionOrErrorBody.md)| | [optional] ### Return type diff --git a/clients/client/php/docs/Api/ProjectApi.md b/clients/client/php/docs/Api/ProjectApi.md index d505dd60643..97c77da43bc 100644 --- a/clients/client/php/docs/Api/ProjectApi.md +++ b/clients/client/php/docs/Api/ProjectApi.md @@ -509,7 +509,7 @@ Name | Type | Description | Notes ## `getProjectMembers()` ```php -getProjectMembers($project): \Ory\Client\Model\CloudAccount[] +getProjectMembers($project): \Ory\Client\Model\ProjectMember[] ``` Get all members associated with this project @@ -551,7 +551,7 @@ Name | Type | Description | Notes ### Return type -[**\Ory\Client\Model\CloudAccount[]**](../Model/CloudAccount.md) +[**\Ory\Client\Model\ProjectMember[]**](../Model/ProjectMember.md) ### Authorization @@ -595,7 +595,7 @@ $apiInstance = new Ory\Client\Api\ProjectApi( ); $projectId = 'projectId_example'; // string | Project ID $eventType = 'eventType_example'; // string | The event type to query for -$resolution = 'resolution_example'; // string | The resolution of the buckets The minimum resolution is 1 hour. +$resolution = 'resolution_example'; // string | The resolution of the buckets The minimum resolution is 1 minute. $from = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The start RFC3339 date of the time window $to = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime | The end RFC3339 date of the time window @@ -613,7 +613,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **projectId** | **string**| Project ID | **eventType** | **string**| The event type to query for | - **resolution** | **string**| The resolution of the buckets The minimum resolution is 1 hour. | + **resolution** | **string**| The resolution of the buckets The minimum resolution is 1 minute. | **from** | **\DateTime**| The start RFC3339 date of the time window | **to** | **\DateTime**| The end RFC3339 date of the time window | diff --git a/clients/client/php/docs/Model/AcceptOAuth2ConsentRequest.md b/clients/client/php/docs/Model/AcceptOAuth2ConsentRequest.md index 96c612248b6..b268644a706 100644 --- a/clients/client/php/docs/Model/AcceptOAuth2ConsentRequest.md +++ b/clients/client/php/docs/Model/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | **object** | | [optional] **grantAccessTokenAudience** | **string[]** | | [optional] **grantScope** | **string[]** | | [optional] **handledAt** | **\DateTime** | | [optional] diff --git a/clients/client/php/docs/Model/CloudAccount.md b/clients/client/php/docs/Model/CloudAccount.md index 313ae306137..0b59abba98c 100644 --- a/clients/client/php/docs/Model/CloudAccount.md +++ b/clients/client/php/docs/Model/CloudAccount.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **string** | | [optional] -**id** | **string** | | [optional] -**name** | **string** | | [optional] +**email** | **string** | | +**id** | **string** | | +**name** | **string** | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/CreateIdentityBody.md b/clients/client/php/docs/Model/CreateIdentityBody.md index da7d8af3382..06ba23951d6 100644 --- a/clients/client/php/docs/Model/CreateIdentityBody.md +++ b/clients/client/php/docs/Model/CreateIdentityBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **metadataPublic** | **mixed** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **recoveryAddresses** | [**\Ory\Client\Model\RecoveryIdentityAddress[]**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **schemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**state** | [**\Ory\Client\Model\IdentityState**](IdentityState.md) | | [optional] +**state** | **string** | State is the identity's state. active StateActive inactive StateInactive | [optional] **traits** | **object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **verifiableAddresses** | [**\Ory\Client\Model\VerifiableIdentityAddress[]**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] diff --git a/clients/client/php/docs/Model/CreateProjectBody.md b/clients/client/php/docs/Model/CreateProjectBody.md index 9c0058e23f7..55cee1bc776 100644 --- a/clients/client/php/docs/Model/CreateProjectBody.md +++ b/clients/client/php/docs/Model/CreateProjectBody.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**environment** | **string** | The environment of the project. prod Production dev Development | **name** | **string** | The name of the project to be created | **workspaceId** | **string** | | [optional] diff --git a/clients/client/php/docs/Model/CreateProjectNormalizedPayload.md b/clients/client/php/docs/Model/CreateProjectNormalizedPayload.md index c0110de6c3a..cadd9d79b88 100644 --- a/clients/client/php/docs/Model/CreateProjectNormalizedPayload.md +++ b/clients/client/php/docs/Model/CreateProjectNormalizedPayload.md @@ -6,12 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | **\DateTime** | The Project's Revision Creation Date | [optional] [readonly] **disableAccountExperienceWelcomeScreen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enableAxV2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] +**environment** | **string** | prod Production dev Development | **hydraOauth2AllowedTopLevelClaims** | **string[]** | | [optional] **hydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydraOauth2ExcludeNotBeforeClaim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydraOauth2GrantJwtIatOptional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydraOauth2GrantJwtJtiOptional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydraOauth2GrantJwtMaxTtl** | **string** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to '720h'] +**hydraOauth2MirrorTopLevelClaims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydraOauth2PkceEnforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydraOauth2PkceEnforcedForPublicClients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydraOauth2RefreshTokenHook** | **string** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +73,7 @@ Name | Type | Description | Notes **kratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **string** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailSubject** | **string** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +159,7 @@ Name | Type | Description | Notes **kratosSelfserviceFlowsVerificationUse** | **string** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratosSelfserviceMethodsCodeConfigLifespan** | **string** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratosSelfserviceMethodsCodeEnabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratosSelfserviceMethodsCodeMfaEnabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratosSelfserviceMethodsCodePasswordlessEnabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigBaseUrl** | **string** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigLifespan** | **string** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/php/docs/Model/CreateSubscriptionBody.md b/clients/client/php/docs/Model/CreateSubscriptionBody.md index becd173dd95..b26f6dddfc5 100644 --- a/clients/client/php/docs/Model/CreateSubscriptionBody.md +++ b/clients/client/php/docs/Model/CreateSubscriptionBody.md @@ -7,8 +7,7 @@ Name | Type | Description | Notes **currency** | **string** | usd USD eur Euro | [optional] **interval** | **string** | monthly Monthly yearly Yearly | **plan** | **string** | | -**provisionFirstProject** | **string** | | [optional] +**provisionFirstProject** | **string** | | **returnTo** | **string** | | [optional] -**workspace** | **string** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/CreateSubscriptionCommon.md b/clients/client/php/docs/Model/CreateSubscriptionCommon.md new file mode 100644 index 00000000000..f5e86135c6a --- /dev/null +++ b/clients/client/php/docs/Model/CreateSubscriptionCommon.md @@ -0,0 +1,12 @@ +# # CreateSubscriptionCommon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | **string** | usd USD eur Euro | [optional] +**interval** | **string** | monthly Monthly yearly Yearly | +**plan** | **string** | | +**returnTo** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/kratos/php/docs/Model/IdentityCredentialsType.md b/clients/client/php/docs/Model/CreateWorkspacePayload.md similarity index 75% rename from clients/kratos/php/docs/Model/IdentityCredentialsType.md rename to clients/client/php/docs/Model/CreateWorkspacePayload.md index de6cb6ea2c9..ac8dddc53d0 100644 --- a/clients/kratos/php/docs/Model/IdentityCredentialsType.md +++ b/clients/client/php/docs/Model/CreateWorkspacePayload.md @@ -1,8 +1,9 @@ -# # IdentityCredentialsType +# # CreateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **string** | The name of the workspace | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/CreateWorkspaceSubscriptionBody.md b/clients/client/php/docs/Model/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..15dae3a77d1 --- /dev/null +++ b/clients/client/php/docs/Model/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,12 @@ +# # CreateWorkspaceSubscriptionBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | **string** | usd USD eur Euro | [optional] +**interval** | **string** | monthly Monthly yearly Yearly | +**plan** | **string** | | +**returnTo** | **string** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/Identity.md b/clients/client/php/docs/Model/Identity.md index b10211b680c..ab9c59061a3 100644 --- a/clients/client/php/docs/Model/Identity.md +++ b/clients/client/php/docs/Model/Identity.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **recoveryAddresses** | [**\Ory\Client\Model\RecoveryIdentityAddress[]**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **schemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **schemaUrl** | **string** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**state** | [**\Ory\Client\Model\IdentityState**](IdentityState.md) | | [optional] +**state** | **string** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **stateChangedAt** | **\DateTime** | | [optional] **traits** | **mixed** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **updatedAt** | **\DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/php/docs/Model/IdentityCredentials.md b/clients/client/php/docs/Model/IdentityCredentials.md index abeca42abbb..f2f7eb4ed6d 100644 --- a/clients/client/php/docs/Model/IdentityCredentials.md +++ b/clients/client/php/docs/Model/IdentityCredentials.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **config** | **object** | | [optional] **createdAt** | **\DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **identifiers** | **string[]** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**type** | [**\Ory\Client\Model\IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**type** | **string** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **updatedAt** | **\DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **version** | **int** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] diff --git a/clients/client/php/docs/Model/IdentityCredentialsCode.md b/clients/client/php/docs/Model/IdentityCredentialsCode.md index 1155b06de9a..9c06cac23a0 100644 --- a/clients/client/php/docs/Model/IdentityCredentialsCode.md +++ b/clients/client/php/docs/Model/IdentityCredentialsCode.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**addressType** | **string** | | [optional] +**addressType** | **string** | The type of the address for this code | [optional] **usedAt** | **\DateTime** | | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/InternalProvisionMockSubscription.md b/clients/client/php/docs/Model/InternalProvisionMockSubscription.md deleted file mode 100644 index 255ca325946..00000000000 --- a/clients/client/php/docs/Model/InternalProvisionMockSubscription.md +++ /dev/null @@ -1,12 +0,0 @@ -# # InternalProvisionMockSubscription - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency** | **string** | Currency usd USD eur Euro | -**identityId** | **string** | Identity ID | -**interval** | **string** | Billing Interval monthly Monthly yearly Yearly | -**plan** | **string** | Plan ID | - -[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/ListMyWorkspacesResponse.md b/clients/client/php/docs/Model/ListMyWorkspacesResponse.md index 17b0060da51..c7b58f4aa71 100644 --- a/clients/client/php/docs/Model/ListMyWorkspacesResponse.md +++ b/clients/client/php/docs/Model/ListMyWorkspacesResponse.md @@ -6,6 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **hasNextPage** | **bool** | | **nextPageToken** | **string** | | -**workspaces** | [**\Ory\Client\Model\Workspace[]**](Workspace.md) | | +**workspaces** | [**\Ory\Client\Model\WorkspaceMeta[]**](WorkspaceMeta.md) | | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/ListWorkspaceProjectsResponse.md b/clients/client/php/docs/Model/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..39f1c34ca82 --- /dev/null +++ b/clients/client/php/docs/Model/ListWorkspaceProjectsResponse.md @@ -0,0 +1,11 @@ +# # ListWorkspaceProjectsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**hasNextPage** | **bool** | | +**nextPage** | **string** | | +**projects** | [**\Ory\Client\Model\ProjectMetadata[]**](ProjectMetadata.md) | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/LoginFlow.md b/clients/client/php/docs/Model/LoginFlow.md index 16cb8851138..6f2d81795a7 100644 --- a/clients/client/php/docs/Model/LoginFlow.md +++ b/clients/client/php/docs/Model/LoginFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**\Ory\Client\Model\IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **string** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **createdAt** | **\DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **expiresAt** | **\DateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **string** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> | @@ -18,6 +18,7 @@ Name | Type | Description | Notes **returnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **sessionTokenExchangeCode** | **string** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] **state** | **mixed** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | +**transientPayload** | **object** | TransientPayload is used to pass data from the login to hooks and email templates | [optional] **type** | **string** | The flow type can either be `api` or `browser`. | **ui** | [**\Ory\Client\Model\UiContainer**](UiContainer.md) | | **updatedAt** | **\DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/php/docs/Model/MigrationOptions.md b/clients/client/php/docs/Model/MigrationOptions.md new file mode 100644 index 00000000000..a5e1014d269 --- /dev/null +++ b/clients/client/php/docs/Model/MigrationOptions.md @@ -0,0 +1,10 @@ +# # MigrationOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**environment** | **string** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | +**projectSubscription** | **string** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/NormalizedProjectRevision.md b/clients/client/php/docs/Model/NormalizedProjectRevision.md index d1ac85748c1..c6a2cae2433 100644 --- a/clients/client/php/docs/Model/NormalizedProjectRevision.md +++ b/clients/client/php/docs/Model/NormalizedProjectRevision.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | **\DateTime** | The Project's Revision Creation Date | [optional] [readonly] **disableAccountExperienceWelcomeScreen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enableAxV2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] **hydraOauth2AllowedTopLevelClaims** | **string[]** | | [optional] **hydraOauth2ClientCredentialsDefaultGrantAllowedScope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydraOauth2ExcludeNotBeforeClaim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydraOauth2GrantJwtIatOptional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydraOauth2GrantJwtJtiOptional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydraOauth2GrantJwtMaxTtl** | **string** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] [default to '720h'] +**hydraOauth2MirrorTopLevelClaims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydraOauth2PkceEnforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydraOauth2PkceEnforcedForPublicClients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydraOauth2RefreshTokenHook** | **string** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +72,7 @@ Name | Type | Description | Notes **kratosCourierTemplatesLoginCodeValidEmailBodyHtml** | **string** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesLoginCodeValidEmailSubject** | **string** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext** | **string** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratosCourierTemplatesRecoveryCodeInvalidEmailSubject** | **string** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +158,7 @@ Name | Type | Description | Notes **kratosSelfserviceFlowsVerificationUse** | **string** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratosSelfserviceMethodsCodeConfigLifespan** | **string** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratosSelfserviceMethodsCodeEnabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratosSelfserviceMethodsCodeMfaEnabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratosSelfserviceMethodsCodePasswordlessEnabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigBaseUrl** | **string** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratosSelfserviceMethodsLinkConfigLifespan** | **string** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/php/docs/Model/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/php/docs/Model/NormalizedProjectRevisionThirdPartyProvider.md index 30e8ca11e3b..05de7981591 100644 --- a/clients/client/php/docs/Model/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/php/docs/Model/NormalizedProjectRevisionThirdPartyProvider.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **appleTeamId** | **string** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] **authUrl** | **string** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] **azureTenant** | **string** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] +**claimsSource** | **string** | | [optional] **clientId** | **string** | ClientID is the application's Client ID. | [optional] **clientSecret** | **string** | | [optional] **createdAt** | **\DateTime** | The Project's Revision Creation Date | [optional] [readonly] diff --git a/clients/client/php/docs/Model/OAuth2Client.md b/clients/client/php/docs/Model/OAuth2Client.md index 0e17a48494d..9aebba33b56 100644 --- a/clients/client/php/docs/Model/OAuth2Client.md +++ b/clients/client/php/docs/Model/OAuth2Client.md @@ -45,6 +45,7 @@ Name | Type | Description | Notes **scope** | **string** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sectorIdentifierUri** | **string** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subjectType** | **string** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **tokenEndpointAuthMethod** | **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to 'client_secret_basic'] **tokenEndpointAuthSigningAlg** | **string** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/client/php/docs/Model/OAuth2ConsentSession.md b/clients/client/php/docs/Model/OAuth2ConsentSession.md index fda55986921..22dcd1e8000 100644 --- a/clients/client/php/docs/Model/OAuth2ConsentSession.md +++ b/clients/client/php/docs/Model/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consentRequest** | [**\Ory\Client\Model\OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**context** | **object** | | [optional] **expiresAt** | [**\Ory\Client\Model\OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **grantAccessTokenAudience** | **string[]** | | [optional] **grantScope** | **string[]** | | [optional] diff --git a/clients/client/php/docs/Model/PermissionsOnWorkpaceResponse.md b/clients/client/php/docs/Model/PermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..2099975df8e --- /dev/null +++ b/clients/client/php/docs/Model/PermissionsOnWorkpaceResponse.md @@ -0,0 +1,9 @@ +# # PermissionsOnWorkpaceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permissions** | **array** | | [optional] + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/PlanDetails.md b/clients/client/php/docs/Model/PlanDetails.md index a0006c7fb86..a3ae3869bfe 100644 --- a/clients/client/php/docs/Model/PlanDetails.md +++ b/clients/client/php/docs/Model/PlanDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **baseFeeYearly** | **int** | BaseFeeYearly is the yearly base fee for the plan. | **custom** | **bool** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | **description** | **string** | Description is the description of the plan. | -**features** | [**array**](GenericUsage.md) | Features are the feature definitions included in the plan. | +**features** | [**array**](GenericUsage.md) | | **name** | **string** | Name is the name of the plan. | **version** | **int** | Version is the version of the plan. The combination of `name@version` must be unique. | diff --git a/clients/client/php/docs/Model/ProjectMember.md b/clients/client/php/docs/Model/ProjectMember.md new file mode 100644 index 00000000000..1b7c6545274 --- /dev/null +++ b/clients/client/php/docs/Model/ProjectMember.md @@ -0,0 +1,12 @@ +# # ProjectMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **string** | | +**id** | **string** | | +**name** | **string** | | +**role** | **string** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/ProjectMetadata.md b/clients/client/php/docs/Model/ProjectMetadata.md index 255ec4f5ce9..416b081e96b 100644 --- a/clients/client/php/docs/Model/ProjectMetadata.md +++ b/clients/client/php/docs/Model/ProjectMetadata.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **createdAt** | **\DateTime** | The Project's Creation Date | +**environment** | **string** | The environment of the project. prod Production dev Development | **hosts** | **string[]** | | **id** | **string** | The project's ID. | [readonly] **name** | **string** | The project's name if set | diff --git a/clients/client/php/docs/Model/QuotaUsage.md b/clients/client/php/docs/Model/QuotaUsage.md index 5e0d4ad2e08..193fbea77e8 100644 --- a/clients/client/php/docs/Model/QuotaUsage.md +++ b/clients/client/php/docs/Model/QuotaUsage.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additionalPrice** | **int** | The additional price per unit in cents. | **canUseMore** | **bool** | | -**feature** | **string** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | +**feature** | **string** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | **featureAvailable** | **bool** | | **included** | **int** | | **used** | **int** | | diff --git a/clients/client/php/docs/Model/RecoveryFlow.md b/clients/client/php/docs/Model/RecoveryFlow.md index 7c1a43533d7..b2a00c565ac 100644 --- a/clients/client/php/docs/Model/RecoveryFlow.md +++ b/clients/client/php/docs/Model/RecoveryFlow.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **requestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **state** | **mixed** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | +**transientPayload** | **object** | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] **type** | **string** | The flow type can either be `api` or `browser`. | **ui** | [**\Ory\Client\Model\UiContainer**](UiContainer.md) | | diff --git a/clients/client/php/docs/Model/RegistrationFlow.md b/clients/client/php/docs/Model/RegistrationFlow.md index 571950710a4..5a2ee50a1ff 100644 --- a/clients/client/php/docs/Model/RegistrationFlow.md +++ b/clients/client/php/docs/Model/RegistrationFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**\Ory\Client\Model\IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **string** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **expiresAt** | **\DateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **string** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> | **issuedAt** | **\DateTime** | IssuedAt is the time (UTC) when the flow occurred. | diff --git a/clients/client/php/docs/Model/SettingsFlow.md b/clients/client/php/docs/Model/SettingsFlow.md index 315abdc71bf..c22534635bc 100644 --- a/clients/client/php/docs/Model/SettingsFlow.md +++ b/clients/client/php/docs/Model/SettingsFlow.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **requestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **state** | **mixed** | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | +**transientPayload** | **object** | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] **type** | **string** | The flow type can either be `api` or `browser`. | **ui** | [**\Ory\Client\Model\UiContainer**](UiContainer.md) | | diff --git a/clients/client/php/docs/Model/Subscription.md b/clients/client/php/docs/Model/Subscription.md index b681f61cd78..041334e69de 100644 --- a/clients/client/php/docs/Model/Subscription.md +++ b/clients/client/php/docs/Model/Subscription.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **currency** | **string** | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | [readonly] **currentInterval** | **string** | The currently active interval of the subscription monthly Monthly yearly Yearly | [readonly] **currentPlan** | **string** | The currently active plan of the subscription | [readonly] +**currentPlanDetails** | [**\Ory\Client\Model\PlanDetails**](PlanDetails.md) | | [optional] **customerId** | **string** | The ID of the stripe customer | [readonly] **id** | **string** | The ID of the subscription | [readonly] **intervalChangesTo** | **string** | | @@ -16,6 +17,7 @@ Name | Type | Description | Notes **planChangesAt** | **\DateTime** | | [optional] **planChangesTo** | **string** | | **status** | **string** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | +**stripeCheckoutExpiresAt** | **\DateTime** | | [optional] **updatedAt** | **\DateTime** | | [readonly] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateIdentityBody.md b/clients/client/php/docs/Model/UpdateIdentityBody.md index d5b6a466aa8..8e2024d6b2a 100644 --- a/clients/client/php/docs/Model/UpdateIdentityBody.md +++ b/clients/client/php/docs/Model/UpdateIdentityBody.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **metadataAdmin** | **mixed** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] **metadataPublic** | **mixed** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **schemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**state** | [**\Ory\Client\Model\IdentityState**](IdentityState.md) | | +**state** | **string** | State is the identity's state. active StateActive inactive StateInactive | **traits** | **object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateLoginFlowBody.md b/clients/client/php/docs/Model/UpdateLoginFlowBody.md index 8e1a638ab73..c18b9d30ca0 100644 --- a/clients/client/php/docs/Model/UpdateLoginFlowBody.md +++ b/clients/client/php/docs/Model/UpdateLoginFlowBody.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **password** | **string** | The user's password. | **passwordIdentifier** | **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **idToken** | **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **idTokenNonce** | **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **provider** | **string** | The provider to register with | diff --git a/clients/client/php/docs/Model/UpdateLoginFlowWithCodeMethod.md b/clients/client/php/docs/Model/UpdateLoginFlowWithCodeMethod.md index 55653b89f07..36469a46416 100644 --- a/clients/client/php/docs/Model/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/php/docs/Model/UpdateLoginFlowWithCodeMethod.md @@ -9,5 +9,6 @@ Name | Type | Description | Notes **identifier** | **string** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] **method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **resend** | **string** | Resend is set when the user wants to resend the code | [optional] +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateLoginFlowWithOidcMethod.md b/clients/client/php/docs/Model/UpdateLoginFlowWithOidcMethod.md index 85380d53cf5..2b1584aeae2 100644 --- a/clients/client/php/docs/Model/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/php/docs/Model/UpdateLoginFlowWithOidcMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **method** | **string** | Method to use This field must be set to `oidc` when using the oidc method. | **provider** | **string** | The provider to register with | **traits** | **object** | The identity traits. This is a placeholder for the registration flow. | [optional] +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **upstreamParameters** | **object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateLoginFlowWithPasswordMethod.md b/clients/client/php/docs/Model/UpdateLoginFlowWithPasswordMethod.md index c2771859f1c..aa8530ad5fc 100644 --- a/clients/client/php/docs/Model/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/php/docs/Model/UpdateLoginFlowWithPasswordMethod.md @@ -9,5 +9,6 @@ Name | Type | Description | Notes **method** | **string** | Method should be set to \"password\" when logging in using the identifier and password strategy. | **password** | **string** | The user's password. | **passwordIdentifier** | **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateLoginFlowWithTotpMethod.md b/clients/client/php/docs/Model/UpdateLoginFlowWithTotpMethod.md index 9640d28bff8..7eaecab76d7 100644 --- a/clients/client/php/docs/Model/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/php/docs/Model/UpdateLoginFlowWithTotpMethod.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **method** | **string** | Method should be set to \"totp\" when logging in using the TOTP strategy. | **totpCode** | **string** | The TOTP code. | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/php/docs/Model/UpdateLoginFlowWithWebAuthnMethod.md index 3ab77b808f5..42311a4fa0b 100644 --- a/clients/client/php/docs/Model/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/php/docs/Model/UpdateLoginFlowWithWebAuthnMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **identifier** | **string** | Identifier is the email or username of the user trying to log in. | **method** | **string** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **webauthnLogin** | **string** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateRecoveryFlowBody.md b/clients/client/php/docs/Model/UpdateRecoveryFlowBody.md index c7bf8ceb940..84707fbec0d 100644 --- a/clients/client/php/docs/Model/UpdateRecoveryFlowBody.md +++ b/clients/client/php/docs/Model/UpdateRecoveryFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **string** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **code** | **string** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/php/docs/Model/UpdateRecoveryFlowWithCodeMethod.md index 4f1cd2476ce..a314264892e 100644 --- a/clients/client/php/docs/Model/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/php/docs/Model/UpdateRecoveryFlowWithCodeMethod.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **string** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/php/docs/Model/UpdateRecoveryFlowWithLinkMethod.md index b4ea2e1fb40..b6fea70c744 100644 --- a/clients/client/php/docs/Model/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/php/docs/Model/UpdateRecoveryFlowWithLinkMethod.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **string** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **string** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowBody.md b/clients/client/php/docs/Model/UpdateSettingsFlowBody.md index ffdd7e18547..71b561a2ecf 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowBody.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] **method** | **string** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | **password** | **string** | Password is the updated password | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **traits** | **object** | The identity's traits in: body | **flow** | **string** | Flow ID is the flow's ID. in: query | [optional] **link** | **string** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowWithLookupMethod.md b/clients/client/php/docs/Model/UpdateSettingsFlowWithLookupMethod.md index ea2977fb79e..205dfa9d878 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowWithLookupMethod.md @@ -10,5 +10,6 @@ Name | Type | Description | Notes **lookupSecretRegenerate** | **bool** | If set to true will regenerate the lookup secrets | [optional] **lookupSecretReveal** | **bool** | If set to true will reveal the lookup secrets | [optional] **method** | **string** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowWithOidcMethod.md b/clients/client/php/docs/Model/UpdateSettingsFlowWithOidcMethod.md index 0cc2262081c..5b90ca732c1 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowWithOidcMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **link** | **string** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **method** | **string** | Method Should be set to profile when trying to update a profile. | **traits** | **object** | The identity's traits in: body | [optional] +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **unlink** | **string** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] **upstreamParameters** | **object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/php/docs/Model/UpdateSettingsFlowWithPasswordMethod.md index 89b72adb548..775bcbc7e98 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowWithPasswordMethod.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] **method** | **string** | Method Should be set to password when trying to update a password. | **password** | **string** | Password is the updated password | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowWithProfileMethod.md b/clients/client/php/docs/Model/UpdateSettingsFlowWithProfileMethod.md index 3e3d42dd244..20dd8c11214 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowWithProfileMethod.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] **method** | **string** | Method Should be set to profile when trying to update a profile. | **traits** | **object** | Traits The identity's traits. | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowWithTotpMethod.md b/clients/client/php/docs/Model/UpdateSettingsFlowWithTotpMethod.md index 43fb391f3e9..e3a42b16bdc 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowWithTotpMethod.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes **method** | **string** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | **totpCode** | **string** | ValidationTOTP must contain a valid TOTP based on the | [optional] **totpUnlink** | **bool** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/php/docs/Model/UpdateSettingsFlowWithWebAuthnMethod.md index 8a187ff469e..7943e943927 100644 --- a/clients/client/php/docs/Model/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/php/docs/Model/UpdateSettingsFlowWithWebAuthnMethod.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **csrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] **method** | **string** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **webauthnRegister** | **string** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **webauthnRegisterDisplayname** | **string** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] **webauthnRemove** | **string** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] diff --git a/clients/client/php/docs/Model/UpdateVerificationFlowBody.md b/clients/client/php/docs/Model/UpdateVerificationFlowBody.md index 9ff06010c50..b56aba73a55 100644 --- a/clients/client/php/docs/Model/UpdateVerificationFlowBody.md +++ b/clients/client/php/docs/Model/UpdateVerificationFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **string** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] **code** | **string** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateVerificationFlowWithCodeMethod.md b/clients/client/php/docs/Model/UpdateVerificationFlowWithCodeMethod.md index e6d26e733fe..26acc816f91 100644 --- a/clients/client/php/docs/Model/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/php/docs/Model/UpdateVerificationFlowWithCodeMethod.md @@ -8,5 +8,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **string** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/UpdateVerificationFlowWithLinkMethod.md b/clients/client/php/docs/Model/UpdateVerificationFlowWithLinkMethod.md index 301757d207c..b3461620106 100644 --- a/clients/client/php/docs/Model/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/php/docs/Model/UpdateVerificationFlowWithLinkMethod.md @@ -7,5 +7,6 @@ Name | Type | Description | Notes **csrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **string** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **string** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | +**transientPayload** | **object** | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/IdentityCredentialsType.md b/clients/client/php/docs/Model/UpdateWorkspacePayload.md similarity index 75% rename from clients/client/php/docs/Model/IdentityCredentialsType.md rename to clients/client/php/docs/Model/UpdateWorkspacePayload.md index de6cb6ea2c9..d9c26886210 100644 --- a/clients/client/php/docs/Model/IdentityCredentialsType.md +++ b/clients/client/php/docs/Model/UpdateWorkspacePayload.md @@ -1,8 +1,9 @@ -# # IdentityCredentialsType +# # UpdateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **string** | The name of the workspace. | [[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/docs/Model/VerificationFlow.md b/clients/client/php/docs/Model/VerificationFlow.md index 84f7e1d29ee..079eedbd633 100644 --- a/clients/client/php/docs/Model/VerificationFlow.md +++ b/clients/client/php/docs/Model/VerificationFlow.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **requestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **returnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **state** | **mixed** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | +**transientPayload** | **object** | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] **type** | **string** | The flow type can either be `api` or `browser`. | **ui** | [**\Ory\Client\Model\UiContainer**](UiContainer.md) | | diff --git a/clients/client/php/docs/Model/WorkspaceMeta.md b/clients/client/php/docs/Model/WorkspaceMeta.md new file mode 100644 index 00000000000..8edb9814c59 --- /dev/null +++ b/clients/client/php/docs/Model/WorkspaceMeta.md @@ -0,0 +1,14 @@ +# # WorkspaceMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**createdAt** | **\DateTime** | | +**id** | **string** | | +**name** | **string** | | +**subscriptionId** | **string** | | [optional] +**subscriptionPlan** | **string** | | [optional] +**updatedAt** | **\DateTime** | | + +[[Back to Model list]](../../README.md#models) [[Back to API list]](../../README.md#endpoints) [[Back to README]](../../README.md) diff --git a/clients/client/php/lib/Api/CourierApi.php b/clients/client/php/lib/Api/CourierApi.php index 20f22d5d120..f8a07cc0d02 100644 --- a/clients/client/php/lib/Api/CourierApi.php +++ b/clients/client/php/lib/Api/CourierApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/EventsApi.php b/clients/client/php/lib/Api/EventsApi.php index ddb1022a778..6e01e76a5d8 100644 --- a/clients/client/php/lib/Api/EventsApi.php +++ b/clients/client/php/lib/Api/EventsApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/FrontendApi.php b/clients/client/php/lib/Api/FrontendApi.php index 48459a75184..94dfc8ccfa3 100644 --- a/clients/client/php/lib/Api/FrontendApi.php +++ b/clients/client/php/lib/Api/FrontendApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -127,14 +127,15 @@ public function getConfig() * @param string $cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param string $loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param string $organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Ory\Client\Model\LoginFlow|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric */ - public function createBrowserLoginFlow($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null) + public function createBrowserLoginFlow($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null, $via = null) { - list($response) = $this->createBrowserLoginFlowWithHttpInfo($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization); + list($response) = $this->createBrowserLoginFlowWithHttpInfo($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization, $via); return $response; } @@ -149,14 +150,15 @@ public function createBrowserLoginFlow($refresh = null, $aal = null, $returnTo = * @param string $cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param string $loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param string $organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Ory\Client\Model\LoginFlow|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric, HTTP status code, HTTP response headers (array of strings) */ - public function createBrowserLoginFlowWithHttpInfo($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null) + public function createBrowserLoginFlowWithHttpInfo($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null, $via = null) { - $request = $this->createBrowserLoginFlowRequest($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization); + $request = $this->createBrowserLoginFlowRequest($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization, $via); try { $options = $this->createHttpClientOption(); @@ -287,13 +289,14 @@ public function createBrowserLoginFlowWithHttpInfo($refresh = null, $aal = null, * @param string $cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param string $loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param string $organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createBrowserLoginFlowAsync($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null) + public function createBrowserLoginFlowAsync($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null, $via = null) { - return $this->createBrowserLoginFlowAsyncWithHttpInfo($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization) + return $this->createBrowserLoginFlowAsyncWithHttpInfo($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization, $via) ->then( function ($response) { return $response[0]; @@ -312,14 +315,15 @@ function ($response) { * @param string $cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param string $loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param string $organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createBrowserLoginFlowAsyncWithHttpInfo($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null) + public function createBrowserLoginFlowAsyncWithHttpInfo($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null, $via = null) { $returnType = '\Ory\Client\Model\LoginFlow'; - $request = $this->createBrowserLoginFlowRequest($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization); + $request = $this->createBrowserLoginFlowRequest($refresh, $aal, $returnTo, $cookie, $loginChallenge, $organization, $via); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -363,11 +367,12 @@ function ($exception) { * @param string $cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) * @param string $loginChallenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) * @param string $organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function createBrowserLoginFlowRequest($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null) + public function createBrowserLoginFlowRequest($refresh = null, $aal = null, $returnTo = null, $cookie = null, $loginChallenge = null, $organization = null, $via = null) { $resourcePath = '/self-service/login/browser'; @@ -432,6 +437,17 @@ public function createBrowserLoginFlowRequest($refresh = null, $aal = null, $ret $queryParams['organization'] = $organization; } } + // query params + if ($via !== null) { + if('form' === 'form' && is_array($via)) { + foreach($via as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['via'] = $via; + } + } // header params if ($cookie !== null) { @@ -2133,14 +2149,15 @@ public function createBrowserVerificationFlowRequest($returnTo = null) * @param string $xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param bool $returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param string $returnTo The URL to return the browser to after the flow was completed. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Ory\Client\Model\LoginFlow|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric */ - public function createNativeLoginFlow($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null) + public function createNativeLoginFlow($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null, $via = null) { - list($response) = $this->createNativeLoginFlowWithHttpInfo($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo); + list($response) = $this->createNativeLoginFlowWithHttpInfo($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo, $via); return $response; } @@ -2154,14 +2171,15 @@ public function createNativeLoginFlow($refresh = null, $aal = null, $xSessionTok * @param string $xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param bool $returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param string $returnTo The URL to return the browser to after the flow was completed. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Ory\Client\Model\LoginFlow|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric, HTTP status code, HTTP response headers (array of strings) */ - public function createNativeLoginFlowWithHttpInfo($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null) + public function createNativeLoginFlowWithHttpInfo($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null, $via = null) { - $request = $this->createNativeLoginFlowRequest($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo); + $request = $this->createNativeLoginFlowRequest($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo, $via); try { $options = $this->createHttpClientOption(); @@ -2291,13 +2309,14 @@ public function createNativeLoginFlowWithHttpInfo($refresh = null, $aal = null, * @param string $xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param bool $returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param string $returnTo The URL to return the browser to after the flow was completed. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createNativeLoginFlowAsync($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null) + public function createNativeLoginFlowAsync($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null, $via = null) { - return $this->createNativeLoginFlowAsyncWithHttpInfo($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo) + return $this->createNativeLoginFlowAsyncWithHttpInfo($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo, $via) ->then( function ($response) { return $response[0]; @@ -2315,14 +2334,15 @@ function ($response) { * @param string $xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param bool $returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param string $returnTo The URL to return the browser to after the flow was completed. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createNativeLoginFlowAsyncWithHttpInfo($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null) + public function createNativeLoginFlowAsyncWithHttpInfo($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null, $via = null) { $returnType = '\Ory\Client\Model\LoginFlow'; - $request = $this->createNativeLoginFlowRequest($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo); + $request = $this->createNativeLoginFlowRequest($refresh, $aal, $xSessionToken, $returnSessionTokenExchangeCode, $returnTo, $via); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -2365,11 +2385,12 @@ function ($exception) { * @param string $xSessionToken The Session Token of the Identity performing the settings flow. (optional) * @param bool $returnSessionTokenExchangeCode EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) * @param string $returnTo The URL to return the browser to after the flow was completed. (optional) + * @param string $via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function createNativeLoginFlowRequest($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null) + public function createNativeLoginFlowRequest($refresh = null, $aal = null, $xSessionToken = null, $returnSessionTokenExchangeCode = null, $returnTo = null, $via = null) { $resourcePath = '/self-service/login/api'; @@ -2423,6 +2444,17 @@ public function createNativeLoginFlowRequest($refresh = null, $aal = null, $xSes $queryParams['return_to'] = $returnTo; } } + // query params + if ($via !== null) { + if('form' === 'form' && is_array($via)) { + foreach($via as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['via'] = $via; + } + } // header params if ($xSessionToken !== null) { diff --git a/clients/client/php/lib/Api/IdentityApi.php b/clients/client/php/lib/Api/IdentityApi.php index 255b11956cb..88085f02193 100644 --- a/clients/client/php/lib/Api/IdentityApi.php +++ b/clients/client/php/lib/Api/IdentityApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -1102,15 +1102,16 @@ public function createRecoveryCodeForIdentityRequest($createRecoveryCodeForIdent * * Create a Recovery Link * + * @param string $returnTo returnTo (optional) * @param \Ory\Client\Model\CreateRecoveryLinkForIdentityBody $createRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Ory\Client\Model\RecoveryLinkForIdentity|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric */ - public function createRecoveryLinkForIdentity($createRecoveryLinkForIdentityBody = null) + public function createRecoveryLinkForIdentity($returnTo = null, $createRecoveryLinkForIdentityBody = null) { - list($response) = $this->createRecoveryLinkForIdentityWithHttpInfo($createRecoveryLinkForIdentityBody); + list($response) = $this->createRecoveryLinkForIdentityWithHttpInfo($returnTo, $createRecoveryLinkForIdentityBody); return $response; } @@ -1119,15 +1120,16 @@ public function createRecoveryLinkForIdentity($createRecoveryLinkForIdentityBody * * Create a Recovery Link * + * @param string $returnTo (optional) * @param \Ory\Client\Model\CreateRecoveryLinkForIdentityBody $createRecoveryLinkForIdentityBody (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Ory\Client\Model\RecoveryLinkForIdentity|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric|\Ory\Client\Model\ErrorGeneric, HTTP status code, HTTP response headers (array of strings) */ - public function createRecoveryLinkForIdentityWithHttpInfo($createRecoveryLinkForIdentityBody = null) + public function createRecoveryLinkForIdentityWithHttpInfo($returnTo = null, $createRecoveryLinkForIdentityBody = null) { - $request = $this->createRecoveryLinkForIdentityRequest($createRecoveryLinkForIdentityBody); + $request = $this->createRecoveryLinkForIdentityRequest($returnTo, $createRecoveryLinkForIdentityBody); try { $options = $this->createHttpClientOption(); @@ -1272,14 +1274,15 @@ public function createRecoveryLinkForIdentityWithHttpInfo($createRecoveryLinkFor * * Create a Recovery Link * + * @param string $returnTo (optional) * @param \Ory\Client\Model\CreateRecoveryLinkForIdentityBody $createRecoveryLinkForIdentityBody (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createRecoveryLinkForIdentityAsync($createRecoveryLinkForIdentityBody = null) + public function createRecoveryLinkForIdentityAsync($returnTo = null, $createRecoveryLinkForIdentityBody = null) { - return $this->createRecoveryLinkForIdentityAsyncWithHttpInfo($createRecoveryLinkForIdentityBody) + return $this->createRecoveryLinkForIdentityAsyncWithHttpInfo($returnTo, $createRecoveryLinkForIdentityBody) ->then( function ($response) { return $response[0]; @@ -1292,15 +1295,16 @@ function ($response) { * * Create a Recovery Link * + * @param string $returnTo (optional) * @param \Ory\Client\Model\CreateRecoveryLinkForIdentityBody $createRecoveryLinkForIdentityBody (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function createRecoveryLinkForIdentityAsyncWithHttpInfo($createRecoveryLinkForIdentityBody = null) + public function createRecoveryLinkForIdentityAsyncWithHttpInfo($returnTo = null, $createRecoveryLinkForIdentityBody = null) { $returnType = '\Ory\Client\Model\RecoveryLinkForIdentity'; - $request = $this->createRecoveryLinkForIdentityRequest($createRecoveryLinkForIdentityBody); + $request = $this->createRecoveryLinkForIdentityRequest($returnTo, $createRecoveryLinkForIdentityBody); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -1338,12 +1342,13 @@ function ($exception) { /** * Create request for operation 'createRecoveryLinkForIdentity' * + * @param string $returnTo (optional) * @param \Ory\Client\Model\CreateRecoveryLinkForIdentityBody $createRecoveryLinkForIdentityBody (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function createRecoveryLinkForIdentityRequest($createRecoveryLinkForIdentityBody = null) + public function createRecoveryLinkForIdentityRequest($returnTo = null, $createRecoveryLinkForIdentityBody = null) { $resourcePath = '/admin/recovery/link'; @@ -1353,6 +1358,17 @@ public function createRecoveryLinkForIdentityRequest($createRecoveryLinkForIdent $httpBody = ''; $multipart = false; + // query params + if ($returnTo !== null) { + if('form' === 'form' && is_array($returnTo)) { + foreach($returnTo as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['return_to'] = $returnTo; + } + } @@ -1676,7 +1692,7 @@ public function deleteIdentityRequest($id) * Delete a credential for a specific identity * * @param string $id ID is the identity's ID. (required) - * @param string $type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param string $type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1693,7 +1709,7 @@ public function deleteIdentityCredentials($id, $type) * Delete a credential for a specific identity * * @param string $id ID is the identity's ID. (required) - * @param string $type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param string $type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException @@ -1769,7 +1785,7 @@ public function deleteIdentityCredentialsWithHttpInfo($id, $type) * Delete a credential for a specific identity * * @param string $id ID is the identity's ID. (required) - * @param string $type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param string $type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1790,7 +1806,7 @@ function ($response) { * Delete a credential for a specific identity * * @param string $id ID is the identity's ID. (required) - * @param string $type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param string $type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface @@ -1827,7 +1843,7 @@ function ($exception) { * Create request for operation 'deleteIdentityCredentials' * * @param string $id ID is the identity's ID. (required) - * @param string $type Type is the credential's Type. One of totp, webauthn, lookup (required) + * @param string $type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 (required) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request @@ -3769,17 +3785,18 @@ public function getSessionRequest($id, $expand = null) * @param int $pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param string $pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to '1') * @param string $consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param string[] $idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param string[] $ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param string $credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param string $previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param string[] $includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return \Ory\Client\Model\Identity[]|\Ory\Client\Model\ErrorGeneric */ - public function listIdentities($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $idsFilter = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null) + public function listIdentities($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $ids = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null, $includeCredential = null) { - list($response) = $this->listIdentitiesWithHttpInfo($perPage, $page, $pageSize, $pageToken, $consistency, $idsFilter, $credentialsIdentifier, $previewCredentialsIdentifierSimilar); + list($response) = $this->listIdentitiesWithHttpInfo($perPage, $page, $pageSize, $pageToken, $consistency, $ids, $credentialsIdentifier, $previewCredentialsIdentifierSimilar, $includeCredential); return $response; } @@ -3793,17 +3810,18 @@ public function listIdentities($perPage = 250, $page = null, $pageSize = 250, $p * @param int $pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param string $pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to '1') * @param string $consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param string[] $idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param string[] $ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param string $credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param string $previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param string[] $includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException * @return array of \Ory\Client\Model\Identity[]|\Ory\Client\Model\ErrorGeneric, HTTP status code, HTTP response headers (array of strings) */ - public function listIdentitiesWithHttpInfo($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $idsFilter = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null) + public function listIdentitiesWithHttpInfo($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $ids = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null, $includeCredential = null) { - $request = $this->listIdentitiesRequest($perPage, $page, $pageSize, $pageToken, $consistency, $idsFilter, $credentialsIdentifier, $previewCredentialsIdentifierSimilar); + $request = $this->listIdentitiesRequest($perPage, $page, $pageSize, $pageToken, $consistency, $ids, $credentialsIdentifier, $previewCredentialsIdentifierSimilar, $includeCredential); try { $options = $this->createHttpClientOption(); @@ -3913,16 +3931,17 @@ public function listIdentitiesWithHttpInfo($perPage = 250, $page = null, $pageSi * @param int $pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param string $pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to '1') * @param string $consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param string[] $idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param string[] $ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param string $credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param string $previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param string[] $includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listIdentitiesAsync($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $idsFilter = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null) + public function listIdentitiesAsync($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $ids = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null, $includeCredential = null) { - return $this->listIdentitiesAsyncWithHttpInfo($perPage, $page, $pageSize, $pageToken, $consistency, $idsFilter, $credentialsIdentifier, $previewCredentialsIdentifierSimilar) + return $this->listIdentitiesAsyncWithHttpInfo($perPage, $page, $pageSize, $pageToken, $consistency, $ids, $credentialsIdentifier, $previewCredentialsIdentifierSimilar, $includeCredential) ->then( function ($response) { return $response[0]; @@ -3940,17 +3959,18 @@ function ($response) { * @param int $pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param string $pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to '1') * @param string $consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param string[] $idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param string[] $ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param string $credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param string $previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param string[] $includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Promise\PromiseInterface */ - public function listIdentitiesAsyncWithHttpInfo($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $idsFilter = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null) + public function listIdentitiesAsyncWithHttpInfo($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $ids = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null, $includeCredential = null) { $returnType = '\Ory\Client\Model\Identity[]'; - $request = $this->listIdentitiesRequest($perPage, $page, $pageSize, $pageToken, $consistency, $idsFilter, $credentialsIdentifier, $previewCredentialsIdentifierSimilar); + $request = $this->listIdentitiesRequest($perPage, $page, $pageSize, $pageToken, $consistency, $ids, $credentialsIdentifier, $previewCredentialsIdentifierSimilar, $includeCredential); return $this->client ->sendAsync($request, $this->createHttpClientOption()) @@ -3993,14 +4013,15 @@ function ($exception) { * @param int $pageSize Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) * @param string $pageToken Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to '1') * @param string $consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - * @param string[] $idsFilter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + * @param string[] $ids List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) * @param string $credentialsIdentifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) * @param string $previewCredentialsIdentifierSimilar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + * @param string[] $includeCredential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) * * @throws \InvalidArgumentException * @return \GuzzleHttp\Psr7\Request */ - public function listIdentitiesRequest($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $idsFilter = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null) + public function listIdentitiesRequest($perPage = 250, $page = null, $pageSize = 250, $pageToken = '1', $consistency = null, $ids = null, $credentialsIdentifier = null, $previewCredentialsIdentifierSimilar = null, $includeCredential = null) { if ($perPage !== null && $perPage > 1000) { throw new \InvalidArgumentException('invalid value for "$perPage" when calling IdentityApi.listIdentities, must be smaller than or equal to 1000.'); @@ -4081,14 +4102,14 @@ public function listIdentitiesRequest($perPage = 250, $page = null, $pageSize = } } // query params - if ($idsFilter !== null) { - if('form' === 'form' && is_array($idsFilter)) { - foreach($idsFilter as $key => $value) { + if ($ids !== null) { + if('form' === 'form' && is_array($ids)) { + foreach($ids as $key => $value) { $queryParams[$key] = $value; } } else { - $queryParams['ids_filter'] = $idsFilter; + $queryParams['ids'] = $ids; } } // query params @@ -4113,6 +4134,17 @@ public function listIdentitiesRequest($perPage = 250, $page = null, $pageSize = $queryParams['preview_credentials_identifier_similar'] = $previewCredentialsIdentifierSimilar; } } + // query params + if ($includeCredential !== null) { + if('form' === 'form' && is_array($includeCredential)) { + foreach($includeCredential as $key => $value) { + $queryParams[$key] = $value; + } + } + else { + $queryParams['include_credential'] = $includeCredential; + } + } diff --git a/clients/client/php/lib/Api/JwkApi.php b/clients/client/php/lib/Api/JwkApi.php index 79c4b4cc866..8997062bdba 100644 --- a/clients/client/php/lib/Api/JwkApi.php +++ b/clients/client/php/lib/Api/JwkApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/MetadataApi.php b/clients/client/php/lib/Api/MetadataApi.php index 42373e6adaa..58f3364b38f 100644 --- a/clients/client/php/lib/Api/MetadataApi.php +++ b/clients/client/php/lib/Api/MetadataApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/OAuth2Api.php b/clients/client/php/lib/Api/OAuth2Api.php index 188786b5e4b..392868f3c19 100644 --- a/clients/client/php/lib/Api/OAuth2Api.php +++ b/clients/client/php/lib/Api/OAuth2Api.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/OidcApi.php b/clients/client/php/lib/Api/OidcApi.php index 98b3c70c434..ef040642f90 100644 --- a/clients/client/php/lib/Api/OidcApi.php +++ b/clients/client/php/lib/Api/OidcApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/PermissionApi.php b/clients/client/php/lib/Api/PermissionApi.php index 4c2aa083415..4307344aff7 100644 --- a/clients/client/php/lib/Api/PermissionApi.php +++ b/clients/client/php/lib/Api/PermissionApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -1710,7 +1710,7 @@ public function postCheckPermissionRequest($maxDepth = null, $postCheckPermissio * * Check a permission * - * @param int $maxDepth nolint:deadcode,unused (optional) + * @param int $maxDepth maxDepth (optional) * @param \Ory\Client\Model\PostCheckPermissionOrErrorBody $postCheckPermissionOrErrorBody postCheckPermissionOrErrorBody (optional) * * @throws \Ory\Client\ApiException on non-2xx response @@ -1728,7 +1728,7 @@ public function postCheckPermissionOrError($maxDepth = null, $postCheckPermissio * * Check a permission * - * @param int $maxDepth nolint:deadcode,unused (optional) + * @param int $maxDepth (optional) * @param \Ory\Client\Model\PostCheckPermissionOrErrorBody $postCheckPermissionOrErrorBody (optional) * * @throws \Ory\Client\ApiException on non-2xx response @@ -1882,7 +1882,7 @@ public function postCheckPermissionOrErrorWithHttpInfo($maxDepth = null, $postCh * * Check a permission * - * @param int $maxDepth nolint:deadcode,unused (optional) + * @param int $maxDepth (optional) * @param \Ory\Client\Model\PostCheckPermissionOrErrorBody $postCheckPermissionOrErrorBody (optional) * * @throws \InvalidArgumentException @@ -1903,7 +1903,7 @@ function ($response) { * * Check a permission * - * @param int $maxDepth nolint:deadcode,unused (optional) + * @param int $maxDepth (optional) * @param \Ory\Client\Model\PostCheckPermissionOrErrorBody $postCheckPermissionOrErrorBody (optional) * * @throws \InvalidArgumentException @@ -1950,7 +1950,7 @@ function ($exception) { /** * Create request for operation 'postCheckPermissionOrError' * - * @param int $maxDepth nolint:deadcode,unused (optional) + * @param int $maxDepth (optional) * @param \Ory\Client\Model\PostCheckPermissionOrErrorBody $postCheckPermissionOrErrorBody (optional) * * @throws \InvalidArgumentException diff --git a/clients/client/php/lib/Api/ProjectApi.php b/clients/client/php/lib/Api/ProjectApi.php index cfd9bd982c1..8778707c3f1 100644 --- a/clients/client/php/lib/Api/ProjectApi.php +++ b/clients/client/php/lib/Api/ProjectApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -2687,7 +2687,7 @@ public function getProjectRequest($projectId) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return \Ory\Client\Model\CloudAccount[]|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError + * @return \Ory\Client\Model\ProjectMember[]|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError */ public function getProjectMembers($project) { @@ -2704,7 +2704,7 @@ public function getProjectMembers($project) * * @throws \Ory\Client\ApiException on non-2xx response * @throws \InvalidArgumentException - * @return array of \Ory\Client\Model\CloudAccount[]|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError, HTTP status code, HTTP response headers (array of strings) + * @return array of \Ory\Client\Model\ProjectMember[]|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError|\Ory\Client\Model\GenericError, HTTP status code, HTTP response headers (array of strings) */ public function getProjectMembersWithHttpInfo($project) { @@ -2747,14 +2747,14 @@ public function getProjectMembersWithHttpInfo($project) switch($statusCode) { case 200: - if ('\Ory\Client\Model\CloudAccount[]' === '\SplFileObject') { + if ('\Ory\Client\Model\ProjectMember[]' === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { $content = (string) $response->getBody(); } return [ - ObjectSerializer::deserialize($content, '\Ory\Client\Model\CloudAccount[]', []), + ObjectSerializer::deserialize($content, '\Ory\Client\Model\ProjectMember[]', []), $response->getStatusCode(), $response->getHeaders() ]; @@ -2796,7 +2796,7 @@ public function getProjectMembersWithHttpInfo($project) ]; } - $returnType = '\Ory\Client\Model\CloudAccount[]'; + $returnType = '\Ory\Client\Model\ProjectMember[]'; if ($returnType === '\SplFileObject') { $content = $response->getBody(); //stream goes to serializer } else { @@ -2814,7 +2814,7 @@ public function getProjectMembersWithHttpInfo($project) case 200: $data = ObjectSerializer::deserialize( $e->getResponseBody(), - '\Ory\Client\Model\CloudAccount[]', + '\Ory\Client\Model\ProjectMember[]', $e->getResponseHeaders() ); $e->setResponseObject($data); @@ -2880,7 +2880,7 @@ function ($response) { */ public function getProjectMembersAsyncWithHttpInfo($project) { - $returnType = '\Ory\Client\Model\CloudAccount[]'; + $returnType = '\Ory\Client\Model\ProjectMember[]'; $request = $this->getProjectMembersRequest($project); return $this->client @@ -3018,7 +3018,7 @@ public function getProjectMembersRequest($project) * * @param string $projectId Project ID (required) * @param string $eventType The event type to query for (required) - * @param string $resolution The resolution of the buckets The minimum resolution is 1 hour. (required) + * @param string $resolution The resolution of the buckets The minimum resolution is 1 minute. (required) * @param \DateTime $from The start RFC3339 date of the time window (required) * @param \DateTime $to The end RFC3339 date of the time window (required) * @@ -3037,7 +3037,7 @@ public function getProjectMetrics($projectId, $eventType, $resolution, $from, $t * * @param string $projectId Project ID (required) * @param string $eventType The event type to query for (required) - * @param string $resolution The resolution of the buckets The minimum resolution is 1 hour. (required) + * @param string $resolution The resolution of the buckets The minimum resolution is 1 minute. (required) * @param \DateTime $from The start RFC3339 date of the time window (required) * @param \DateTime $to The end RFC3339 date of the time window (required) * @@ -3192,7 +3192,7 @@ public function getProjectMetricsWithHttpInfo($projectId, $eventType, $resolutio * * @param string $projectId Project ID (required) * @param string $eventType The event type to query for (required) - * @param string $resolution The resolution of the buckets The minimum resolution is 1 hour. (required) + * @param string $resolution The resolution of the buckets The minimum resolution is 1 minute. (required) * @param \DateTime $from The start RFC3339 date of the time window (required) * @param \DateTime $to The end RFC3339 date of the time window (required) * @@ -3214,7 +3214,7 @@ function ($response) { * * @param string $projectId Project ID (required) * @param string $eventType The event type to query for (required) - * @param string $resolution The resolution of the buckets The minimum resolution is 1 hour. (required) + * @param string $resolution The resolution of the buckets The minimum resolution is 1 minute. (required) * @param \DateTime $from The start RFC3339 date of the time window (required) * @param \DateTime $to The end RFC3339 date of the time window (required) * @@ -3264,7 +3264,7 @@ function ($exception) { * * @param string $projectId Project ID (required) * @param string $eventType The event type to query for (required) - * @param string $resolution The resolution of the buckets The minimum resolution is 1 hour. (required) + * @param string $resolution The resolution of the buckets The minimum resolution is 1 minute. (required) * @param \DateTime $from The start RFC3339 date of the time window (required) * @param \DateTime $to The end RFC3339 date of the time window (required) * @@ -3291,8 +3291,8 @@ public function getProjectMetricsRequest($projectId, $eventType, $resolution, $f 'Missing the required parameter $resolution when calling getProjectMetrics' ); } - if (!preg_match("/^[0-9]+(ns|us|ms|s|m|h)$/", $resolution)) { - throw new \InvalidArgumentException("invalid value for \"resolution\" when calling ProjectApi.getProjectMetrics, must conform to the pattern /^[0-9]+(ns|us|ms|s|m|h)$/."); + if (!preg_match("/^[0-9]+(m|h|d|M|y)$/", $resolution)) { + throw new \InvalidArgumentException("invalid value for \"resolution\" when calling ProjectApi.getProjectMetrics, must conform to the pattern /^[0-9]+(m|h|d|M|y)$/."); } // verify the required parameter 'from' is set diff --git a/clients/client/php/lib/Api/RelationshipApi.php b/clients/client/php/lib/Api/RelationshipApi.php index 0c4d733ad6e..8d6e657f667 100644 --- a/clients/client/php/lib/Api/RelationshipApi.php +++ b/clients/client/php/lib/Api/RelationshipApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Api/WellknownApi.php b/clients/client/php/lib/Api/WellknownApi.php index 2869b94a4df..0618b800da5 100644 --- a/clients/client/php/lib/Api/WellknownApi.php +++ b/clients/client/php/lib/Api/WellknownApi.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/ApiException.php b/clients/client/php/lib/ApiException.php index d6eb445ea83..1068dc727b4 100644 --- a/clients/client/php/lib/ApiException.php +++ b/clients/client/php/lib/ApiException.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Configuration.php b/clients/client/php/lib/Configuration.php index 71f25f176f5..567ec5df094 100644 --- a/clients/client/php/lib/Configuration.php +++ b/clients/client/php/lib/Configuration.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -399,7 +399,7 @@ public static function toDebugReport() $report = 'PHP SDK (Ory\Client) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: v1.5.1' . PHP_EOL; + $report .= ' The version of the OpenAPI document: v1.8.1' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/clients/client/php/lib/HeaderSelector.php b/clients/client/php/lib/HeaderSelector.php index 683e4afa930..7c5514d10cc 100644 --- a/clients/client/php/lib/HeaderSelector.php +++ b/clients/client/php/lib/HeaderSelector.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/AcceptOAuth2ConsentRequest.php b/clients/client/php/lib/Model/AcceptOAuth2ConsentRequest.php index dfa63a852a7..b82af770f7e 100644 --- a/clients/client/php/lib/Model/AcceptOAuth2ConsentRequest.php +++ b/clients/client/php/lib/Model/AcceptOAuth2ConsentRequest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -60,6 +60,7 @@ class AcceptOAuth2ConsentRequest implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ + 'context' => 'object', 'grantAccessTokenAudience' => 'string[]', 'grantScope' => 'string[]', 'handledAt' => '\DateTime', @@ -76,6 +77,7 @@ class AcceptOAuth2ConsentRequest implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ + 'context' => null, 'grantAccessTokenAudience' => null, 'grantScope' => null, 'handledAt' => 'date-time', @@ -111,6 +113,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'context' => 'context', 'grantAccessTokenAudience' => 'grant_access_token_audience', 'grantScope' => 'grant_scope', 'handledAt' => 'handled_at', @@ -125,6 +128,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'context' => 'setContext', 'grantAccessTokenAudience' => 'setGrantAccessTokenAudience', 'grantScope' => 'setGrantScope', 'handledAt' => 'setHandledAt', @@ -139,6 +143,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'context' => 'getContext', 'grantAccessTokenAudience' => 'getGrantAccessTokenAudience', 'grantScope' => 'getGrantScope', 'handledAt' => 'getHandledAt', @@ -204,6 +209,7 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['context'] = $data['context'] ?? null; $this->container['grantAccessTokenAudience'] = $data['grantAccessTokenAudience'] ?? null; $this->container['grantScope'] = $data['grantScope'] ?? null; $this->container['handledAt'] = $data['handledAt'] ?? null; @@ -236,6 +242,30 @@ public function valid() } + /** + * Gets context + * + * @return object|null + */ + public function getContext() + { + return $this->container['context']; + } + + /** + * Sets context + * + * @param object|null $context context + * + * @return self + */ + public function setContext($context) + { + $this->container['context'] = $context; + + return $this; + } + /** * Gets grantAccessTokenAudience * diff --git a/clients/client/php/lib/Model/AcceptOAuth2ConsentRequestSession.php b/clients/client/php/lib/Model/AcceptOAuth2ConsentRequestSession.php index 07ce05e24e9..bf1b1bf503d 100644 --- a/clients/client/php/lib/Model/AcceptOAuth2ConsentRequestSession.php +++ b/clients/client/php/lib/Model/AcceptOAuth2ConsentRequestSession.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/AcceptOAuth2LoginRequest.php b/clients/client/php/lib/Model/AcceptOAuth2LoginRequest.php index 2f502a09473..1ff3e32f5d1 100644 --- a/clients/client/php/lib/Model/AcceptOAuth2LoginRequest.php +++ b/clients/client/php/lib/Model/AcceptOAuth2LoginRequest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ActiveProjectInConsole.php b/clients/client/php/lib/Model/ActiveProjectInConsole.php index 2485c5d3f80..0f145962475 100644 --- a/clients/client/php/lib/Model/ActiveProjectInConsole.php +++ b/clients/client/php/lib/Model/ActiveProjectInConsole.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Attribute.php b/clients/client/php/lib/Model/Attribute.php index ec4744cef1e..c65d056e8b5 100644 --- a/clients/client/php/lib/Model/Attribute.php +++ b/clients/client/php/lib/Model/Attribute.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/AttributeFilter.php b/clients/client/php/lib/Model/AttributeFilter.php index 48b6421d3fd..01caef2b99e 100644 --- a/clients/client/php/lib/Model/AttributeFilter.php +++ b/clients/client/php/lib/Model/AttributeFilter.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/AttributesCountDatapoint.php b/clients/client/php/lib/Model/AttributesCountDatapoint.php index 067473222f5..4ccfb66ed60 100644 --- a/clients/client/php/lib/Model/AttributesCountDatapoint.php +++ b/clients/client/php/lib/Model/AttributesCountDatapoint.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/AuthenticatorAssuranceLevel.php b/clients/client/php/lib/Model/AuthenticatorAssuranceLevel.php index 34904e28301..e093c43f58e 100644 --- a/clients/client/php/lib/Model/AuthenticatorAssuranceLevel.php +++ b/clients/client/php/lib/Model/AuthenticatorAssuranceLevel.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/BatchPatchIdentitiesResponse.php b/clients/client/php/lib/Model/BatchPatchIdentitiesResponse.php index d7b6b6d4b87..aa42e644948 100644 --- a/clients/client/php/lib/Model/BatchPatchIdentitiesResponse.php +++ b/clients/client/php/lib/Model/BatchPatchIdentitiesResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CheckOplSyntaxResult.php b/clients/client/php/lib/Model/CheckOplSyntaxResult.php index 844be101a32..a7996e6eeb3 100644 --- a/clients/client/php/lib/Model/CheckOplSyntaxResult.php +++ b/clients/client/php/lib/Model/CheckOplSyntaxResult.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CheckPermissionResult.php b/clients/client/php/lib/Model/CheckPermissionResult.php index 86578075c34..7a3d2d94eee 100644 --- a/clients/client/php/lib/Model/CheckPermissionResult.php +++ b/clients/client/php/lib/Model/CheckPermissionResult.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CloudAccount.php b/clients/client/php/lib/Model/CloudAccount.php index 2b0899317af..59dfc58df86 100644 --- a/clients/client/php/lib/Model/CloudAccount.php +++ b/clients/client/php/lib/Model/CloudAccount.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -203,6 +203,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['email'] === null) { + $invalidProperties[] = "'email' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } return $invalidProperties; } @@ -221,7 +230,7 @@ public function valid() /** * Gets email * - * @return string|null + * @return string */ public function getEmail() { @@ -231,7 +240,7 @@ public function getEmail() /** * Sets email * - * @param string|null $email email + * @param string $email email * * @return self */ @@ -245,7 +254,7 @@ public function setEmail($email) /** * Gets id * - * @return string|null + * @return string */ public function getId() { @@ -255,7 +264,7 @@ public function getId() /** * Sets id * - * @param string|null $id id + * @param string $id id * * @return self */ @@ -269,7 +278,7 @@ public function setId($id) /** * Gets name * - * @return string|null + * @return string */ public function getName() { @@ -279,7 +288,7 @@ public function getName() /** * Sets name * - * @param string|null $name name + * @param string $name name * * @return self */ diff --git a/clients/client/php/lib/Model/ConsistencyRequestParameters.php b/clients/client/php/lib/Model/ConsistencyRequestParameters.php index e472f149af8..39c592e8bcb 100644 --- a/clients/client/php/lib/Model/ConsistencyRequestParameters.php +++ b/clients/client/php/lib/Model/ConsistencyRequestParameters.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWith.php b/clients/client/php/lib/Model/ContinueWith.php index 25cfe7b443b..da8b206a42c 100644 --- a/clients/client/php/lib/Model/ContinueWith.php +++ b/clients/client/php/lib/Model/ContinueWith.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithRecoveryUi.php b/clients/client/php/lib/Model/ContinueWithRecoveryUi.php index c7862906ed7..2ccf1996417 100644 --- a/clients/client/php/lib/Model/ContinueWithRecoveryUi.php +++ b/clients/client/php/lib/Model/ContinueWithRecoveryUi.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithRecoveryUiFlow.php b/clients/client/php/lib/Model/ContinueWithRecoveryUiFlow.php index 7670259072f..28ab00089fc 100644 --- a/clients/client/php/lib/Model/ContinueWithRecoveryUiFlow.php +++ b/clients/client/php/lib/Model/ContinueWithRecoveryUiFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithSetOrySessionToken.php b/clients/client/php/lib/Model/ContinueWithSetOrySessionToken.php index d2364722eec..9e417efde17 100644 --- a/clients/client/php/lib/Model/ContinueWithSetOrySessionToken.php +++ b/clients/client/php/lib/Model/ContinueWithSetOrySessionToken.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithSettingsUi.php b/clients/client/php/lib/Model/ContinueWithSettingsUi.php index 96064709ab0..65a2e603fee 100644 --- a/clients/client/php/lib/Model/ContinueWithSettingsUi.php +++ b/clients/client/php/lib/Model/ContinueWithSettingsUi.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithSettingsUiFlow.php b/clients/client/php/lib/Model/ContinueWithSettingsUiFlow.php index 7c75cf87358..ee68f4653af 100644 --- a/clients/client/php/lib/Model/ContinueWithSettingsUiFlow.php +++ b/clients/client/php/lib/Model/ContinueWithSettingsUiFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithVerificationUi.php b/clients/client/php/lib/Model/ContinueWithVerificationUi.php index bcf288cbc7c..7b66e38e9a9 100644 --- a/clients/client/php/lib/Model/ContinueWithVerificationUi.php +++ b/clients/client/php/lib/Model/ContinueWithVerificationUi.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ContinueWithVerificationUiFlow.php b/clients/client/php/lib/Model/ContinueWithVerificationUiFlow.php index a81a5e5e1b8..c117e1e7543 100644 --- a/clients/client/php/lib/Model/ContinueWithVerificationUiFlow.php +++ b/clients/client/php/lib/Model/ContinueWithVerificationUiFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CourierMessageStatus.php b/clients/client/php/lib/Model/CourierMessageStatus.php index ff2e42dbdac..19570987423 100644 --- a/clients/client/php/lib/Model/CourierMessageStatus.php +++ b/clients/client/php/lib/Model/CourierMessageStatus.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CourierMessageType.php b/clients/client/php/lib/Model/CourierMessageType.php index b9f1c716442..49931061849 100644 --- a/clients/client/php/lib/Model/CourierMessageType.php +++ b/clients/client/php/lib/Model/CourierMessageType.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateCustomDomainBody.php b/clients/client/php/lib/Model/CreateCustomDomainBody.php index d56e0312902..2465a8c194a 100644 --- a/clients/client/php/lib/Model/CreateCustomDomainBody.php +++ b/clients/client/php/lib/Model/CreateCustomDomainBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateEventStreamBody.php b/clients/client/php/lib/Model/CreateEventStreamBody.php index fc56fc41910..441256a197d 100644 --- a/clients/client/php/lib/Model/CreateEventStreamBody.php +++ b/clients/client/php/lib/Model/CreateEventStreamBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateIdentityBody.php b/clients/client/php/lib/Model/CreateIdentityBody.php index 8d5a0b855f7..4dab5d2fd0d 100644 --- a/clients/client/php/lib/Model/CreateIdentityBody.php +++ b/clients/client/php/lib/Model/CreateIdentityBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -66,7 +66,7 @@ class CreateIdentityBody implements ModelInterface, ArrayAccess, \JsonSerializab 'metadataPublic' => 'mixed', 'recoveryAddresses' => '\Ory\Client\Model\RecoveryIdentityAddress[]', 'schemaId' => 'string', - 'state' => '\Ory\Client\Model\IdentityState', + 'state' => 'string', 'traits' => 'object', 'verifiableAddresses' => '\Ory\Client\Model\VerifiableIdentityAddress[]' ]; @@ -199,6 +199,21 @@ public function getModelName() return self::$openAPIModelName; } + const STATE_ACTIVE = 'active'; + const STATE_INACTIVE = 'inactive'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_ACTIVE, + self::STATE_INACTIVE, + ]; + } /** * Associative array for storing property values @@ -237,6 +252,15 @@ public function listInvalidProperties() if ($this->container['schemaId'] === null) { $invalidProperties[] = "'schemaId' can't be null"; } + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($this->container['state']) && !in_array($this->container['state'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'state', must be one of '%s'", + $this->container['state'], + implode("', '", $allowedValues) + ); + } + if ($this->container['traits'] === null) { $invalidProperties[] = "'traits' can't be null"; } @@ -378,7 +402,7 @@ public function setSchemaId($schemaId) /** * Gets state * - * @return \Ory\Client\Model\IdentityState|null + * @return string|null */ public function getState() { @@ -388,12 +412,22 @@ public function getState() /** * Sets state * - * @param \Ory\Client\Model\IdentityState|null $state state + * @param string|null $state State is the identity's state. active StateActive inactive StateInactive * * @return self */ public function setState($state) { + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($state) && !in_array($state, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'state', must be one of '%s'", + $state, + implode("', '", $allowedValues) + ) + ); + } $this->container['state'] = $state; return $this; diff --git a/clients/client/php/lib/Model/CreateInviteResponse.php b/clients/client/php/lib/Model/CreateInviteResponse.php index d90c16477c0..0f82e6b61d6 100644 --- a/clients/client/php/lib/Model/CreateInviteResponse.php +++ b/clients/client/php/lib/Model/CreateInviteResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateJsonWebKeySet.php b/clients/client/php/lib/Model/CreateJsonWebKeySet.php index 268fb3f2fe9..30832e1cb90 100644 --- a/clients/client/php/lib/Model/CreateJsonWebKeySet.php +++ b/clients/client/php/lib/Model/CreateJsonWebKeySet.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateProjectBody.php b/clients/client/php/lib/Model/CreateProjectBody.php index 67bb5e95584..8ff9e1e02a6 100644 --- a/clients/client/php/lib/Model/CreateProjectBody.php +++ b/clients/client/php/lib/Model/CreateProjectBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -61,6 +61,7 @@ class CreateProjectBody implements ModelInterface, ArrayAccess, \JsonSerializabl * @var string[] */ protected static $openAPITypes = [ + 'environment' => 'string', 'name' => 'string', 'workspaceId' => 'string' ]; @@ -73,6 +74,7 @@ class CreateProjectBody implements ModelInterface, ArrayAccess, \JsonSerializabl * @psalm-var array */ protected static $openAPIFormats = [ + 'environment' => null, 'name' => null, 'workspaceId' => 'uuid4' ]; @@ -104,6 +106,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'environment' => 'environment', 'name' => 'name', 'workspaceId' => 'workspace_id' ]; @@ -114,6 +117,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'environment' => 'setEnvironment', 'name' => 'setName', 'workspaceId' => 'setWorkspaceId' ]; @@ -124,6 +128,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'environment' => 'getEnvironment', 'name' => 'getName', 'workspaceId' => 'getWorkspaceId' ]; @@ -169,6 +174,21 @@ public function getModelName() return self::$openAPIModelName; } + const ENVIRONMENT_PROD = 'prod'; + const ENVIRONMENT_DEV = 'dev'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEnvironmentAllowableValues() + { + return [ + self::ENVIRONMENT_PROD, + self::ENVIRONMENT_DEV, + ]; + } /** * Associative array for storing property values @@ -185,6 +205,7 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['environment'] = $data['environment'] ?? null; $this->container['name'] = $data['name'] ?? null; $this->container['workspaceId'] = $data['workspaceId'] ?? null; } @@ -198,6 +219,18 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['environment'] === null) { + $invalidProperties[] = "'environment' can't be null"; + } + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!is_null($this->container['environment']) && !in_array($this->container['environment'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'environment', must be one of '%s'", + $this->container['environment'], + implode("', '", $allowedValues) + ); + } + if ($this->container['name'] === null) { $invalidProperties[] = "'name' can't be null"; } @@ -216,6 +249,40 @@ public function valid() } + /** + * Gets environment + * + * @return string + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param string $environment The environment of the project. prod Production dev Development + * + * @return self + */ + public function setEnvironment($environment) + { + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!in_array($environment, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'environment', must be one of '%s'", + $environment, + implode("', '", $allowedValues) + ) + ); + } + $this->container['environment'] = $environment; + + return $this; + } + /** * Gets name * diff --git a/clients/client/php/lib/Model/CreateProjectBranding.php b/clients/client/php/lib/Model/CreateProjectBranding.php index b9fce16da0f..72a54001f87 100644 --- a/clients/client/php/lib/Model/CreateProjectBranding.php +++ b/clients/client/php/lib/Model/CreateProjectBranding.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateProjectMemberInviteBody.php b/clients/client/php/lib/Model/CreateProjectMemberInviteBody.php index 893ad2cd890..22783133bf2 100644 --- a/clients/client/php/lib/Model/CreateProjectMemberInviteBody.php +++ b/clients/client/php/lib/Model/CreateProjectMemberInviteBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateProjectNormalizedPayload.php b/clients/client/php/lib/Model/CreateProjectNormalizedPayload.php index 6ea0d0b8b7d..06eb5b1f47f 100644 --- a/clients/client/php/lib/Model/CreateProjectNormalizedPayload.php +++ b/clients/client/php/lib/Model/CreateProjectNormalizedPayload.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -53,7 +53,7 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js * * @var string */ - protected static $openAPIModelName = 'createProjectNormalizedPayload'; + protected static $openAPIModelName = 'CreateProjectNormalizedPayload'; /** * Array of property to type mappings. Used for (de)serialization @@ -63,12 +63,15 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js protected static $openAPITypes = [ 'createdAt' => '\DateTime', 'disableAccountExperienceWelcomeScreen' => 'bool', + 'enableAxV2' => 'bool', + 'environment' => 'string', 'hydraOauth2AllowedTopLevelClaims' => 'string[]', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'bool', 'hydraOauth2ExcludeNotBeforeClaim' => 'bool', 'hydraOauth2GrantJwtIatOptional' => 'bool', 'hydraOauth2GrantJwtJtiOptional' => 'bool', 'hydraOauth2GrantJwtMaxTtl' => 'string', + 'hydraOauth2MirrorTopLevelClaims' => 'bool', 'hydraOauth2PkceEnforced' => 'bool', 'hydraOauth2PkceEnforcedForPublicClients' => 'bool', 'hydraOauth2RefreshTokenHook' => 'string', @@ -127,6 +130,7 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'string', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'string', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'string', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'string', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'string', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'string', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'string', @@ -212,6 +216,7 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js 'kratosSelfserviceFlowsVerificationUse' => 'string', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'string', 'kratosSelfserviceMethodsCodeEnabled' => 'bool', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'bool', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'bool', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'string', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'string', @@ -262,12 +267,15 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js protected static $openAPIFormats = [ 'createdAt' => 'date-time', 'disableAccountExperienceWelcomeScreen' => null, + 'enableAxV2' => null, + 'environment' => null, 'hydraOauth2AllowedTopLevelClaims' => null, 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => null, 'hydraOauth2ExcludeNotBeforeClaim' => null, 'hydraOauth2GrantJwtIatOptional' => null, 'hydraOauth2GrantJwtJtiOptional' => null, 'hydraOauth2GrantJwtMaxTtl' => null, + 'hydraOauth2MirrorTopLevelClaims' => null, 'hydraOauth2PkceEnforced' => null, 'hydraOauth2PkceEnforcedForPublicClients' => null, 'hydraOauth2RefreshTokenHook' => null, @@ -326,6 +334,7 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => null, 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => null, 'kratosCourierTemplatesLoginCodeValidEmailSubject' => null, + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => null, 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => null, 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => null, 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => null, @@ -411,6 +420,7 @@ class CreateProjectNormalizedPayload implements ModelInterface, ArrayAccess, \Js 'kratosSelfserviceFlowsVerificationUse' => null, 'kratosSelfserviceMethodsCodeConfigLifespan' => null, 'kratosSelfserviceMethodsCodeEnabled' => null, + 'kratosSelfserviceMethodsCodeMfaEnabled' => null, 'kratosSelfserviceMethodsCodePasswordlessEnabled' => null, 'kratosSelfserviceMethodsLinkConfigBaseUrl' => null, 'kratosSelfserviceMethodsLinkConfigLifespan' => null, @@ -480,12 +490,15 @@ public static function openAPIFormats() protected static $attributeMap = [ 'createdAt' => 'created_at', 'disableAccountExperienceWelcomeScreen' => 'disable_account_experience_welcome_screen', + 'enableAxV2' => 'enable_ax_v2', + 'environment' => 'environment', 'hydraOauth2AllowedTopLevelClaims' => 'hydra_oauth2_allowed_top_level_claims', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'hydra_oauth2_client_credentials_default_grant_allowed_scope', 'hydraOauth2ExcludeNotBeforeClaim' => 'hydra_oauth2_exclude_not_before_claim', 'hydraOauth2GrantJwtIatOptional' => 'hydra_oauth2_grant_jwt_iat_optional', 'hydraOauth2GrantJwtJtiOptional' => 'hydra_oauth2_grant_jwt_jti_optional', 'hydraOauth2GrantJwtMaxTtl' => 'hydra_oauth2_grant_jwt_max_ttl', + 'hydraOauth2MirrorTopLevelClaims' => 'hydra_oauth2_mirror_top_level_claims', 'hydraOauth2PkceEnforced' => 'hydra_oauth2_pkce_enforced', 'hydraOauth2PkceEnforcedForPublicClients' => 'hydra_oauth2_pkce_enforced_for_public_clients', 'hydraOauth2RefreshTokenHook' => 'hydra_oauth2_refresh_token_hook', @@ -544,6 +557,7 @@ public static function openAPIFormats() 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'kratos_courier_templates_login_code_valid_email_body_html', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'kratos_courier_templates_login_code_valid_email_body_plaintext', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'kratos_courier_templates_login_code_valid_email_subject', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'kratos_courier_templates_login_code_valid_sms_body_plaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'kratos_courier_templates_recovery_code_invalid_email_body_html', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'kratos_courier_templates_recovery_code_invalid_email_subject', @@ -629,6 +643,7 @@ public static function openAPIFormats() 'kratosSelfserviceFlowsVerificationUse' => 'kratos_selfservice_flows_verification_use', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'kratos_selfservice_methods_code_config_lifespan', 'kratosSelfserviceMethodsCodeEnabled' => 'kratos_selfservice_methods_code_enabled', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'kratos_selfservice_methods_code_mfa_enabled', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'kratos_selfservice_methods_code_passwordless_enabled', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'kratos_selfservice_methods_link_config_base_url', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'kratos_selfservice_methods_link_config_lifespan', @@ -677,12 +692,15 @@ public static function openAPIFormats() protected static $setters = [ 'createdAt' => 'setCreatedAt', 'disableAccountExperienceWelcomeScreen' => 'setDisableAccountExperienceWelcomeScreen', + 'enableAxV2' => 'setEnableAxV2', + 'environment' => 'setEnvironment', 'hydraOauth2AllowedTopLevelClaims' => 'setHydraOauth2AllowedTopLevelClaims', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'setHydraOauth2ClientCredentialsDefaultGrantAllowedScope', 'hydraOauth2ExcludeNotBeforeClaim' => 'setHydraOauth2ExcludeNotBeforeClaim', 'hydraOauth2GrantJwtIatOptional' => 'setHydraOauth2GrantJwtIatOptional', 'hydraOauth2GrantJwtJtiOptional' => 'setHydraOauth2GrantJwtJtiOptional', 'hydraOauth2GrantJwtMaxTtl' => 'setHydraOauth2GrantJwtMaxTtl', + 'hydraOauth2MirrorTopLevelClaims' => 'setHydraOauth2MirrorTopLevelClaims', 'hydraOauth2PkceEnforced' => 'setHydraOauth2PkceEnforced', 'hydraOauth2PkceEnforcedForPublicClients' => 'setHydraOauth2PkceEnforcedForPublicClients', 'hydraOauth2RefreshTokenHook' => 'setHydraOauth2RefreshTokenHook', @@ -741,6 +759,7 @@ public static function openAPIFormats() 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'setKratosCourierTemplatesLoginCodeValidEmailBodyHtml', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'setKratosCourierTemplatesLoginCodeValidEmailBodyPlaintext', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'setKratosCourierTemplatesLoginCodeValidEmailSubject', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'setKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'setKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'setKratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'setKratosCourierTemplatesRecoveryCodeInvalidEmailSubject', @@ -826,6 +845,7 @@ public static function openAPIFormats() 'kratosSelfserviceFlowsVerificationUse' => 'setKratosSelfserviceFlowsVerificationUse', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'setKratosSelfserviceMethodsCodeConfigLifespan', 'kratosSelfserviceMethodsCodeEnabled' => 'setKratosSelfserviceMethodsCodeEnabled', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'setKratosSelfserviceMethodsCodeMfaEnabled', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'setKratosSelfserviceMethodsCodePasswordlessEnabled', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'setKratosSelfserviceMethodsLinkConfigBaseUrl', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'setKratosSelfserviceMethodsLinkConfigLifespan', @@ -874,12 +894,15 @@ public static function openAPIFormats() protected static $getters = [ 'createdAt' => 'getCreatedAt', 'disableAccountExperienceWelcomeScreen' => 'getDisableAccountExperienceWelcomeScreen', + 'enableAxV2' => 'getEnableAxV2', + 'environment' => 'getEnvironment', 'hydraOauth2AllowedTopLevelClaims' => 'getHydraOauth2AllowedTopLevelClaims', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'getHydraOauth2ClientCredentialsDefaultGrantAllowedScope', 'hydraOauth2ExcludeNotBeforeClaim' => 'getHydraOauth2ExcludeNotBeforeClaim', 'hydraOauth2GrantJwtIatOptional' => 'getHydraOauth2GrantJwtIatOptional', 'hydraOauth2GrantJwtJtiOptional' => 'getHydraOauth2GrantJwtJtiOptional', 'hydraOauth2GrantJwtMaxTtl' => 'getHydraOauth2GrantJwtMaxTtl', + 'hydraOauth2MirrorTopLevelClaims' => 'getHydraOauth2MirrorTopLevelClaims', 'hydraOauth2PkceEnforced' => 'getHydraOauth2PkceEnforced', 'hydraOauth2PkceEnforcedForPublicClients' => 'getHydraOauth2PkceEnforcedForPublicClients', 'hydraOauth2RefreshTokenHook' => 'getHydraOauth2RefreshTokenHook', @@ -938,6 +961,7 @@ public static function openAPIFormats() 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'getKratosCourierTemplatesLoginCodeValidEmailBodyHtml', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'getKratosCourierTemplatesLoginCodeValidEmailBodyPlaintext', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'getKratosCourierTemplatesLoginCodeValidEmailSubject', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'getKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'getKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'getKratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'getKratosCourierTemplatesRecoveryCodeInvalidEmailSubject', @@ -1023,6 +1047,7 @@ public static function openAPIFormats() 'kratosSelfserviceFlowsVerificationUse' => 'getKratosSelfserviceFlowsVerificationUse', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'getKratosSelfserviceMethodsCodeConfigLifespan', 'kratosSelfserviceMethodsCodeEnabled' => 'getKratosSelfserviceMethodsCodeEnabled', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'getKratosSelfserviceMethodsCodeMfaEnabled', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'getKratosSelfserviceMethodsCodePasswordlessEnabled', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'getKratosSelfserviceMethodsLinkConfigBaseUrl', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'getKratosSelfserviceMethodsLinkConfigLifespan', @@ -1104,6 +1129,8 @@ public function getModelName() return self::$openAPIModelName; } + const ENVIRONMENT_PROD = 'prod'; + const ENVIRONMENT_DEV = 'dev'; const HYDRA_STRATEGIES_ACCESS_TOKEN_OPAQUE = 'opaque'; const HYDRA_STRATEGIES_ACCESS_TOKEN_JWT = 'jwt'; const HYDRA_STRATEGIES_SCOPE_EXACT = 'exact'; @@ -1113,6 +1140,19 @@ public function getModelName() const KRATOS_SELFSERVICE_FLOWS_VERIFICATION_USE_LINK = 'link'; const KRATOS_SELFSERVICE_FLOWS_VERIFICATION_USE_CODE = 'code'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEnvironmentAllowableValues() + { + return [ + self::ENVIRONMENT_PROD, + self::ENVIRONMENT_DEV, + ]; + } + /** * Gets allowable values of the enum * @@ -1182,12 +1222,15 @@ public function __construct(array $data = null) { $this->container['createdAt'] = $data['createdAt'] ?? null; $this->container['disableAccountExperienceWelcomeScreen'] = $data['disableAccountExperienceWelcomeScreen'] ?? null; + $this->container['enableAxV2'] = $data['enableAxV2'] ?? null; + $this->container['environment'] = $data['environment'] ?? null; $this->container['hydraOauth2AllowedTopLevelClaims'] = $data['hydraOauth2AllowedTopLevelClaims'] ?? null; $this->container['hydraOauth2ClientCredentialsDefaultGrantAllowedScope'] = $data['hydraOauth2ClientCredentialsDefaultGrantAllowedScope'] ?? null; $this->container['hydraOauth2ExcludeNotBeforeClaim'] = $data['hydraOauth2ExcludeNotBeforeClaim'] ?? null; $this->container['hydraOauth2GrantJwtIatOptional'] = $data['hydraOauth2GrantJwtIatOptional'] ?? null; $this->container['hydraOauth2GrantJwtJtiOptional'] = $data['hydraOauth2GrantJwtJtiOptional'] ?? null; $this->container['hydraOauth2GrantJwtMaxTtl'] = $data['hydraOauth2GrantJwtMaxTtl'] ?? '720h'; + $this->container['hydraOauth2MirrorTopLevelClaims'] = $data['hydraOauth2MirrorTopLevelClaims'] ?? null; $this->container['hydraOauth2PkceEnforced'] = $data['hydraOauth2PkceEnforced'] ?? null; $this->container['hydraOauth2PkceEnforcedForPublicClients'] = $data['hydraOauth2PkceEnforcedForPublicClients'] ?? null; $this->container['hydraOauth2RefreshTokenHook'] = $data['hydraOauth2RefreshTokenHook'] ?? null; @@ -1246,6 +1289,7 @@ public function __construct(array $data = null) $this->container['kratosCourierTemplatesLoginCodeValidEmailBodyHtml'] = $data['kratosCourierTemplatesLoginCodeValidEmailBodyHtml'] ?? null; $this->container['kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext'] = $data['kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext'] ?? null; $this->container['kratosCourierTemplatesLoginCodeValidEmailSubject'] = $data['kratosCourierTemplatesLoginCodeValidEmailSubject'] ?? null; + $this->container['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext'] = $data['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext'] ?? null; $this->container['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml'] = $data['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml'] ?? null; $this->container['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext'] = $data['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext'] ?? null; $this->container['kratosCourierTemplatesRecoveryCodeInvalidEmailSubject'] = $data['kratosCourierTemplatesRecoveryCodeInvalidEmailSubject'] ?? null; @@ -1331,6 +1375,7 @@ public function __construct(array $data = null) $this->container['kratosSelfserviceFlowsVerificationUse'] = $data['kratosSelfserviceFlowsVerificationUse'] ?? null; $this->container['kratosSelfserviceMethodsCodeConfigLifespan'] = $data['kratosSelfserviceMethodsCodeConfigLifespan'] ?? null; $this->container['kratosSelfserviceMethodsCodeEnabled'] = $data['kratosSelfserviceMethodsCodeEnabled'] ?? null; + $this->container['kratosSelfserviceMethodsCodeMfaEnabled'] = $data['kratosSelfserviceMethodsCodeMfaEnabled'] ?? null; $this->container['kratosSelfserviceMethodsCodePasswordlessEnabled'] = $data['kratosSelfserviceMethodsCodePasswordlessEnabled'] ?? null; $this->container['kratosSelfserviceMethodsLinkConfigBaseUrl'] = $data['kratosSelfserviceMethodsLinkConfigBaseUrl'] ?? null; $this->container['kratosSelfserviceMethodsLinkConfigLifespan'] = $data['kratosSelfserviceMethodsLinkConfigLifespan'] ?? null; @@ -1380,6 +1425,18 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['environment'] === null) { + $invalidProperties[] = "'environment' can't be null"; + } + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!is_null($this->container['environment']) && !in_array($this->container['environment'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'environment', must be one of '%s'", + $this->container['environment'], + implode("', '", $allowedValues) + ); + } + if (!is_null($this->container['hydraOauth2GrantJwtMaxTtl']) && !preg_match("/^[0-9]+(ns|us|ms|s|m|h)$/", $this->container['hydraOauth2GrantJwtMaxTtl'])) { $invalidProperties[] = "invalid value for 'hydraOauth2GrantJwtMaxTtl', must be conform to the pattern /^[0-9]+(ns|us|ms|s|m|h)$/."; } @@ -1506,6 +1563,64 @@ public function setDisableAccountExperienceWelcomeScreen($disableAccountExperien return $this; } + /** + * Gets enableAxV2 + * + * @return bool|null + */ + public function getEnableAxV2() + { + return $this->container['enableAxV2']; + } + + /** + * Sets enableAxV2 + * + * @param bool|null $enableAxV2 Whether the new account experience is enabled and reachable. + * + * @return self + */ + public function setEnableAxV2($enableAxV2) + { + $this->container['enableAxV2'] = $enableAxV2; + + return $this; + } + + /** + * Gets environment + * + * @return string + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param string $environment prod Production dev Development + * + * @return self + */ + public function setEnvironment($environment) + { + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!in_array($environment, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'environment', must be one of '%s'", + $environment, + implode("', '", $allowedValues) + ) + ); + } + $this->container['environment'] = $environment; + + return $this; + } + /** * Gets hydraOauth2AllowedTopLevelClaims * @@ -1655,6 +1770,30 @@ public function setHydraOauth2GrantJwtMaxTtl($hydraOauth2GrantJwtMaxTtl) return $this; } + /** + * Gets hydraOauth2MirrorTopLevelClaims + * + * @return bool|null + */ + public function getHydraOauth2MirrorTopLevelClaims() + { + return $this->container['hydraOauth2MirrorTopLevelClaims']; + } + + /** + * Sets hydraOauth2MirrorTopLevelClaims + * + * @param bool|null $hydraOauth2MirrorTopLevelClaims Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + * + * @return self + */ + public function setHydraOauth2MirrorTopLevelClaims($hydraOauth2MirrorTopLevelClaims) + { + $this->container['hydraOauth2MirrorTopLevelClaims'] = $hydraOauth2MirrorTopLevelClaims; + + return $this; + } + /** * Gets hydraOauth2PkceEnforced * @@ -3092,6 +3231,30 @@ public function setKratosCourierTemplatesLoginCodeValidEmailSubject($kratosCouri return $this; } + /** + * Gets kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + * + * @return string|null + */ + public function getKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() + { + return $this->container['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext']; + } + + /** + * Sets kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + * + * @param string|null $kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + * + * @return self + */ + public function setKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext($kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) + { + $this->container['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext'] = $kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + + return $this; + } + /** * Gets kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml * @@ -5152,6 +5315,30 @@ public function setKratosSelfserviceMethodsCodeEnabled($kratosSelfserviceMethods return $this; } + /** + * Gets kratosSelfserviceMethodsCodeMfaEnabled + * + * @return bool|null + */ + public function getKratosSelfserviceMethodsCodeMfaEnabled() + { + return $this->container['kratosSelfserviceMethodsCodeMfaEnabled']; + } + + /** + * Sets kratosSelfserviceMethodsCodeMfaEnabled + * + * @param bool|null $kratosSelfserviceMethodsCodeMfaEnabled Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + * + * @return self + */ + public function setKratosSelfserviceMethodsCodeMfaEnabled($kratosSelfserviceMethodsCodeMfaEnabled) + { + $this->container['kratosSelfserviceMethodsCodeMfaEnabled'] = $kratosSelfserviceMethodsCodeMfaEnabled; + + return $this; + } + /** * Gets kratosSelfserviceMethodsCodePasswordlessEnabled * diff --git a/clients/client/php/lib/Model/CreateRecoveryCodeForIdentityBody.php b/clients/client/php/lib/Model/CreateRecoveryCodeForIdentityBody.php index 9befb446b0f..527d74c39cb 100644 --- a/clients/client/php/lib/Model/CreateRecoveryCodeForIdentityBody.php +++ b/clients/client/php/lib/Model/CreateRecoveryCodeForIdentityBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateRecoveryLinkForIdentityBody.php b/clients/client/php/lib/Model/CreateRecoveryLinkForIdentityBody.php index 2f9aebfa1de..b6aeb0f0bf6 100644 --- a/clients/client/php/lib/Model/CreateRecoveryLinkForIdentityBody.php +++ b/clients/client/php/lib/Model/CreateRecoveryLinkForIdentityBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateRelationshipBody.php b/clients/client/php/lib/Model/CreateRelationshipBody.php index 3d35530ea9f..6557d0f4731 100644 --- a/clients/client/php/lib/Model/CreateRelationshipBody.php +++ b/clients/client/php/lib/Model/CreateRelationshipBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateSubscriptionBody.php b/clients/client/php/lib/Model/CreateSubscriptionBody.php index af612ed3b61..262e4514b43 100644 --- a/clients/client/php/lib/Model/CreateSubscriptionBody.php +++ b/clients/client/php/lib/Model/CreateSubscriptionBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -36,7 +36,6 @@ * CreateSubscriptionBody Class Doc Comment * * @category Class - * @description Create Subscription Request Body * @package Ory\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -65,8 +64,7 @@ class CreateSubscriptionBody implements ModelInterface, ArrayAccess, \JsonSerial 'interval' => 'string', 'plan' => 'string', 'provisionFirstProject' => 'string', - 'returnTo' => 'string', - 'workspace' => 'string' + 'returnTo' => 'string' ]; /** @@ -80,9 +78,8 @@ class CreateSubscriptionBody implements ModelInterface, ArrayAccess, \JsonSerial 'currency' => null, 'interval' => null, 'plan' => null, - 'provisionFirstProject' => 'uuid4', - 'returnTo' => null, - 'workspace' => 'uuid4' + 'provisionFirstProject' => 'uuid', + 'returnTo' => null ]; /** @@ -116,8 +113,7 @@ public static function openAPIFormats() 'interval' => 'interval', 'plan' => 'plan', 'provisionFirstProject' => 'provision_first_project', - 'returnTo' => 'return_to', - 'workspace' => 'workspace' + 'returnTo' => 'return_to' ]; /** @@ -130,8 +126,7 @@ public static function openAPIFormats() 'interval' => 'setInterval', 'plan' => 'setPlan', 'provisionFirstProject' => 'setProvisionFirstProject', - 'returnTo' => 'setReturnTo', - 'workspace' => 'setWorkspace' + 'returnTo' => 'setReturnTo' ]; /** @@ -144,8 +139,7 @@ public static function openAPIFormats() 'interval' => 'getInterval', 'plan' => 'getPlan', 'provisionFirstProject' => 'getProvisionFirstProject', - 'returnTo' => 'getReturnTo', - 'workspace' => 'getWorkspace' + 'returnTo' => 'getReturnTo' ]; /** @@ -240,7 +234,6 @@ public function __construct(array $data = null) $this->container['plan'] = $data['plan'] ?? null; $this->container['provisionFirstProject'] = $data['provisionFirstProject'] ?? null; $this->container['returnTo'] = $data['returnTo'] ?? null; - $this->container['workspace'] = $data['workspace'] ?? null; } /** @@ -276,6 +269,9 @@ public function listInvalidProperties() if ($this->container['plan'] === null) { $invalidProperties[] = "'plan' can't be null"; } + if ($this->container['provisionFirstProject'] === null) { + $invalidProperties[] = "'provisionFirstProject' can't be null"; + } return $invalidProperties; } @@ -386,7 +382,7 @@ public function setPlan($plan) /** * Gets provisionFirstProject * - * @return string|null + * @return string */ public function getProvisionFirstProject() { @@ -396,7 +392,7 @@ public function getProvisionFirstProject() /** * Sets provisionFirstProject * - * @param string|null $provisionFirstProject provisionFirstProject + * @param string $provisionFirstProject provisionFirstProject * * @return self */ @@ -430,30 +426,6 @@ public function setReturnTo($returnTo) return $this; } - - /** - * Gets workspace - * - * @return string|null - */ - public function getWorkspace() - { - return $this->container['workspace']; - } - - /** - * Sets workspace - * - * @param string|null $workspace workspace - * - * @return self - */ - public function setWorkspace($workspace) - { - $this->container['workspace'] = $workspace; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/InternalProvisionMockSubscription.php b/clients/client/php/lib/Model/CreateSubscriptionCommon.php similarity index 86% rename from clients/client/php/lib/Model/InternalProvisionMockSubscription.php rename to clients/client/php/lib/Model/CreateSubscriptionCommon.php index c0450777e63..549635df490 100644 --- a/clients/client/php/lib/Model/InternalProvisionMockSubscription.php +++ b/clients/client/php/lib/Model/CreateSubscriptionCommon.php @@ -1,6 +1,6 @@ 'string', - 'identityId' => 'string', 'interval' => 'string', - 'plan' => 'string' + 'plan' => 'string', + 'returnTo' => 'string' ]; /** @@ -76,9 +75,9 @@ class InternalProvisionMockSubscription implements ModelInterface, ArrayAccess, */ protected static $openAPIFormats = [ 'currency' => null, - 'identityId' => 'uuid', 'interval' => null, - 'plan' => null + 'plan' => null, + 'returnTo' => null ]; /** @@ -109,9 +108,9 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'currency' => 'currency', - 'identityId' => 'identity_id', 'interval' => 'interval', - 'plan' => 'plan' + 'plan' => 'plan', + 'returnTo' => 'return_to' ]; /** @@ -121,9 +120,9 @@ public static function openAPIFormats() */ protected static $setters = [ 'currency' => 'setCurrency', - 'identityId' => 'setIdentityId', 'interval' => 'setInterval', - 'plan' => 'setPlan' + 'plan' => 'setPlan', + 'returnTo' => 'setReturnTo' ]; /** @@ -133,9 +132,9 @@ public static function openAPIFormats() */ protected static $getters = [ 'currency' => 'getCurrency', - 'identityId' => 'getIdentityId', 'interval' => 'getInterval', - 'plan' => 'getPlan' + 'plan' => 'getPlan', + 'returnTo' => 'getReturnTo' ]; /** @@ -226,9 +225,9 @@ public function getIntervalAllowableValues() public function __construct(array $data = null) { $this->container['currency'] = $data['currency'] ?? null; - $this->container['identityId'] = $data['identityId'] ?? null; $this->container['interval'] = $data['interval'] ?? null; $this->container['plan'] = $data['plan'] ?? null; + $this->container['returnTo'] = $data['returnTo'] ?? null; } /** @@ -240,9 +239,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['currency'] === null) { - $invalidProperties[] = "'currency' can't be null"; - } $allowedValues = $this->getCurrencyAllowableValues(); if (!is_null($this->container['currency']) && !in_array($this->container['currency'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -252,9 +248,6 @@ public function listInvalidProperties() ); } - if ($this->container['identityId'] === null) { - $invalidProperties[] = "'identityId' can't be null"; - } if ($this->container['interval'] === null) { $invalidProperties[] = "'interval' can't be null"; } @@ -288,7 +281,7 @@ public function valid() /** * Gets currency * - * @return string + * @return string|null */ public function getCurrency() { @@ -298,14 +291,14 @@ public function getCurrency() /** * Sets currency * - * @param string $currency Currency usd USD eur Euro + * @param string|null $currency usd USD eur Euro * * @return self */ public function setCurrency($currency) { $allowedValues = $this->getCurrencyAllowableValues(); - if (!in_array($currency, $allowedValues, true)) { + if (!is_null($currency) && !in_array($currency, $allowedValues, true)) { throw new \InvalidArgumentException( sprintf( "Invalid value '%s' for 'currency', must be one of '%s'", @@ -319,30 +312,6 @@ public function setCurrency($currency) return $this; } - /** - * Gets identityId - * - * @return string - */ - public function getIdentityId() - { - return $this->container['identityId']; - } - - /** - * Sets identityId - * - * @param string $identityId Identity ID - * - * @return self - */ - public function setIdentityId($identityId) - { - $this->container['identityId'] = $identityId; - - return $this; - } - /** * Gets interval * @@ -356,7 +325,7 @@ public function getInterval() /** * Sets interval * - * @param string $interval Billing Interval monthly Monthly yearly Yearly + * @param string $interval monthly Monthly yearly Yearly * * @return self */ @@ -390,7 +359,7 @@ public function getPlan() /** * Sets plan * - * @param string $plan Plan ID + * @param string $plan plan * * @return self */ @@ -400,6 +369,30 @@ public function setPlan($plan) return $this; } + + /** + * Gets returnTo + * + * @return string|null + */ + public function getReturnTo() + { + return $this->container['returnTo']; + } + + /** + * Sets returnTo + * + * @param string|null $returnTo returnTo + * + * @return self + */ + public function setReturnTo($returnTo) + { + $this->container['returnTo'] = $returnTo; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/CreateVerifiableCredentialRequestBody.php b/clients/client/php/lib/Model/CreateVerifiableCredentialRequestBody.php index f813a6a1cbc..9ab2966d134 100644 --- a/clients/client/php/lib/Model/CreateVerifiableCredentialRequestBody.php +++ b/clients/client/php/lib/Model/CreateVerifiableCredentialRequestBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CreateWorkspaceMemberInviteBody.php b/clients/client/php/lib/Model/CreateWorkspaceMemberInviteBody.php index 7a9cfdf0564..60cdb0d4099 100644 --- a/clients/client/php/lib/Model/CreateWorkspaceMemberInviteBody.php +++ b/clients/client/php/lib/Model/CreateWorkspaceMemberInviteBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/StripeCustomer.php b/clients/client/php/lib/Model/CreateWorkspacePayload.php similarity index 88% rename from clients/client/php/lib/Model/StripeCustomer.php rename to clients/client/php/lib/Model/CreateWorkspacePayload.php index 3c2ed05f3f5..b0cb28af03c 100644 --- a/clients/client/php/lib/Model/StripeCustomer.php +++ b/clients/client/php/lib/Model/CreateWorkspacePayload.php @@ -1,6 +1,6 @@ 'string' + 'name' => 'string' ]; /** @@ -71,7 +71,7 @@ class StripeCustomer implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'id' => null + 'name' => null ]; /** @@ -101,7 +101,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ - 'id' => 'id' + 'name' => 'name' ]; /** @@ -110,7 +110,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ - 'id' => 'setId' + 'name' => 'setName' ]; /** @@ -119,7 +119,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ - 'id' => 'getId' + 'name' => 'getName' ]; /** @@ -179,7 +179,7 @@ public function getModelName() */ public function __construct(array $data = null) { - $this->container['id'] = $data['id'] ?? null; + $this->container['name'] = $data['name'] ?? null; } /** @@ -191,6 +191,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } return $invalidProperties; } @@ -207,25 +210,25 @@ public function valid() /** - * Gets id + * Gets name * - * @return string|null + * @return string */ - public function getId() + public function getName() { - return $this->container['id']; + return $this->container['name']; } /** - * Sets id + * Sets name * - * @param string|null $id id + * @param string $name The name of the workspace * * @return self */ - public function setId($id) + public function setName($name) { - $this->container['id'] = $id; + $this->container['name'] = $name; return $this; } diff --git a/clients/client/php/lib/Model/CreateWorkspaceSubscriptionBody.php b/clients/client/php/lib/Model/CreateWorkspaceSubscriptionBody.php new file mode 100644 index 00000000000..60e97f24132 --- /dev/null +++ b/clients/client/php/lib/Model/CreateWorkspaceSubscriptionBody.php @@ -0,0 +1,485 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class CreateWorkspaceSubscriptionBody implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'createWorkspaceSubscriptionBody'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'currency' => 'string', + 'interval' => 'string', + 'plan' => 'string', + 'returnTo' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'currency' => null, + 'interval' => null, + 'plan' => null, + 'returnTo' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'currency' => 'currency', + 'interval' => 'interval', + 'plan' => 'plan', + 'returnTo' => 'return_to' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'currency' => 'setCurrency', + 'interval' => 'setInterval', + 'plan' => 'setPlan', + 'returnTo' => 'setReturnTo' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'currency' => 'getCurrency', + 'interval' => 'getInterval', + 'plan' => 'getPlan', + 'returnTo' => 'getReturnTo' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const CURRENCY_USD = 'usd'; + const CURRENCY_EUR = 'eur'; + const INTERVAL_MONTHLY = 'monthly'; + const INTERVAL_YEARLY = 'yearly'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getCurrencyAllowableValues() + { + return [ + self::CURRENCY_USD, + self::CURRENCY_EUR, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getIntervalAllowableValues() + { + return [ + self::INTERVAL_MONTHLY, + self::INTERVAL_YEARLY, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['currency'] = $data['currency'] ?? null; + $this->container['interval'] = $data['interval'] ?? null; + $this->container['plan'] = $data['plan'] ?? null; + $this->container['returnTo'] = $data['returnTo'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getCurrencyAllowableValues(); + if (!is_null($this->container['currency']) && !in_array($this->container['currency'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'currency', must be one of '%s'", + $this->container['currency'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['interval'] === null) { + $invalidProperties[] = "'interval' can't be null"; + } + $allowedValues = $this->getIntervalAllowableValues(); + if (!is_null($this->container['interval']) && !in_array($this->container['interval'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'interval', must be one of '%s'", + $this->container['interval'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['plan'] === null) { + $invalidProperties[] = "'plan' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets currency + * + * @return string|null + */ + public function getCurrency() + { + return $this->container['currency']; + } + + /** + * Sets currency + * + * @param string|null $currency usd USD eur Euro + * + * @return self + */ + public function setCurrency($currency) + { + $allowedValues = $this->getCurrencyAllowableValues(); + if (!is_null($currency) && !in_array($currency, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'currency', must be one of '%s'", + $currency, + implode("', '", $allowedValues) + ) + ); + } + $this->container['currency'] = $currency; + + return $this; + } + + /** + * Gets interval + * + * @return string + */ + public function getInterval() + { + return $this->container['interval']; + } + + /** + * Sets interval + * + * @param string $interval monthly Monthly yearly Yearly + * + * @return self + */ + public function setInterval($interval) + { + $allowedValues = $this->getIntervalAllowableValues(); + if (!in_array($interval, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'interval', must be one of '%s'", + $interval, + implode("', '", $allowedValues) + ) + ); + } + $this->container['interval'] = $interval; + + return $this; + } + + /** + * Gets plan + * + * @return string + */ + public function getPlan() + { + return $this->container['plan']; + } + + /** + * Sets plan + * + * @param string $plan plan + * + * @return self + */ + public function setPlan($plan) + { + $this->container['plan'] = $plan; + + return $this; + } + + /** + * Gets returnTo + * + * @return string|null + */ + public function getReturnTo() + { + return $this->container['returnTo']; + } + + /** + * Sets returnTo + * + * @param string|null $returnTo returnTo + * + * @return self + */ + public function setReturnTo($returnTo) + { + $this->container['returnTo'] = $returnTo; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/Model/CredentialSupportedDraft00.php b/clients/client/php/lib/Model/CredentialSupportedDraft00.php index d55fab9d22a..0b6c5c28637 100644 --- a/clients/client/php/lib/Model/CredentialSupportedDraft00.php +++ b/clients/client/php/lib/Model/CredentialSupportedDraft00.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/CustomDomain.php b/clients/client/php/lib/Model/CustomDomain.php index 54c4b2dcac2..97a01b5dcda 100644 --- a/clients/client/php/lib/Model/CustomDomain.php +++ b/clients/client/php/lib/Model/CustomDomain.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/DeleteMySessionsCount.php b/clients/client/php/lib/Model/DeleteMySessionsCount.php index 96741e508b0..d7bb3838aba 100644 --- a/clients/client/php/lib/Model/DeleteMySessionsCount.php +++ b/clients/client/php/lib/Model/DeleteMySessionsCount.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/EmailTemplateData.php b/clients/client/php/lib/Model/EmailTemplateData.php index ee52786fdcc..bf37a23410f 100644 --- a/clients/client/php/lib/Model/EmailTemplateData.php +++ b/clients/client/php/lib/Model/EmailTemplateData.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/EmailTemplateDataBody.php b/clients/client/php/lib/Model/EmailTemplateDataBody.php index 8b18e3a9939..35ae9657758 100644 --- a/clients/client/php/lib/Model/EmailTemplateDataBody.php +++ b/clients/client/php/lib/Model/EmailTemplateDataBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ErrorAuthenticatorAssuranceLevelNotSatisfied.php b/clients/client/php/lib/Model/ErrorAuthenticatorAssuranceLevelNotSatisfied.php index ba0b44959ab..1ff2b17b02f 100644 --- a/clients/client/php/lib/Model/ErrorAuthenticatorAssuranceLevelNotSatisfied.php +++ b/clients/client/php/lib/Model/ErrorAuthenticatorAssuranceLevelNotSatisfied.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ErrorBrowserLocationChangeRequired.php b/clients/client/php/lib/Model/ErrorBrowserLocationChangeRequired.php index 1b35566453d..b19d5d3faaf 100644 --- a/clients/client/php/lib/Model/ErrorBrowserLocationChangeRequired.php +++ b/clients/client/php/lib/Model/ErrorBrowserLocationChangeRequired.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ErrorFlowReplaced.php b/clients/client/php/lib/Model/ErrorFlowReplaced.php index bee7d752b7d..34a0ec5b6c3 100644 --- a/clients/client/php/lib/Model/ErrorFlowReplaced.php +++ b/clients/client/php/lib/Model/ErrorFlowReplaced.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ErrorGeneric.php b/clients/client/php/lib/Model/ErrorGeneric.php index 75aa3b94146..5fbacbb9ff0 100644 --- a/clients/client/php/lib/Model/ErrorGeneric.php +++ b/clients/client/php/lib/Model/ErrorGeneric.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ErrorOAuth2.php b/clients/client/php/lib/Model/ErrorOAuth2.php index 3aa27d14f6d..d4a373b7ebd 100644 --- a/clients/client/php/lib/Model/ErrorOAuth2.php +++ b/clients/client/php/lib/Model/ErrorOAuth2.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/EventStream.php b/clients/client/php/lib/Model/EventStream.php index 36d0e31f28b..b5ee9a791a3 100644 --- a/clients/client/php/lib/Model/EventStream.php +++ b/clients/client/php/lib/Model/EventStream.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ExpandedPermissionTree.php b/clients/client/php/lib/Model/ExpandedPermissionTree.php index 82996cbfcda..05cd5200ad7 100644 --- a/clients/client/php/lib/Model/ExpandedPermissionTree.php +++ b/clients/client/php/lib/Model/ExpandedPermissionTree.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/FlowError.php b/clients/client/php/lib/Model/FlowError.php index 6690c11d429..051bc383a45 100644 --- a/clients/client/php/lib/Model/FlowError.php +++ b/clients/client/php/lib/Model/FlowError.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GenericError.php b/clients/client/php/lib/Model/GenericError.php index 2821967b608..f8df934a6d7 100644 --- a/clients/client/php/lib/Model/GenericError.php +++ b/clients/client/php/lib/Model/GenericError.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GenericErrorContent.php b/clients/client/php/lib/Model/GenericErrorContent.php index 69f0f1e6773..35a4423f0e3 100644 --- a/clients/client/php/lib/Model/GenericErrorContent.php +++ b/clients/client/php/lib/Model/GenericErrorContent.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GenericUsage.php b/clients/client/php/lib/Model/GenericUsage.php index a8ef040e96c..3d4f51ba758 100644 --- a/clients/client/php/lib/Model/GenericUsage.php +++ b/clients/client/php/lib/Model/GenericUsage.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetAttributesCountResponse.php b/clients/client/php/lib/Model/GetAttributesCountResponse.php index 36bec162eb0..48a3e092e3a 100644 --- a/clients/client/php/lib/Model/GetAttributesCountResponse.php +++ b/clients/client/php/lib/Model/GetAttributesCountResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetManagedIdentitySchemaLocation.php b/clients/client/php/lib/Model/GetManagedIdentitySchemaLocation.php index ad153f390d3..da867a8621e 100644 --- a/clients/client/php/lib/Model/GetManagedIdentitySchemaLocation.php +++ b/clients/client/php/lib/Model/GetManagedIdentitySchemaLocation.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetMetricsEventAttributesResponse.php b/clients/client/php/lib/Model/GetMetricsEventAttributesResponse.php index 1d995a39b5a..79730cdbd04 100644 --- a/clients/client/php/lib/Model/GetMetricsEventAttributesResponse.php +++ b/clients/client/php/lib/Model/GetMetricsEventAttributesResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetMetricsEventTypesResponse.php b/clients/client/php/lib/Model/GetMetricsEventTypesResponse.php index 26af6beeed3..b92e72ab4da 100644 --- a/clients/client/php/lib/Model/GetMetricsEventTypesResponse.php +++ b/clients/client/php/lib/Model/GetMetricsEventTypesResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetOrganizationResponse.php b/clients/client/php/lib/Model/GetOrganizationResponse.php index 210bef0a044..b6fa7c9c564 100644 --- a/clients/client/php/lib/Model/GetOrganizationResponse.php +++ b/clients/client/php/lib/Model/GetOrganizationResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetProjectEventsBody.php b/clients/client/php/lib/Model/GetProjectEventsBody.php index 8166caf93a2..56002863304 100644 --- a/clients/client/php/lib/Model/GetProjectEventsBody.php +++ b/clients/client/php/lib/Model/GetProjectEventsBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetProjectEventsResponse.php b/clients/client/php/lib/Model/GetProjectEventsResponse.php index eb1199b72fe..809e08d44b1 100644 --- a/clients/client/php/lib/Model/GetProjectEventsResponse.php +++ b/clients/client/php/lib/Model/GetProjectEventsResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetProjectMetricsResponse.php b/clients/client/php/lib/Model/GetProjectMetricsResponse.php index af978062cfd..17ef23cbaf0 100644 --- a/clients/client/php/lib/Model/GetProjectMetricsResponse.php +++ b/clients/client/php/lib/Model/GetProjectMetricsResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/GetSessionActivityResponse.php b/clients/client/php/lib/Model/GetSessionActivityResponse.php index af98f1902de..dbd0b8a5267 100644 --- a/clients/client/php/lib/Model/GetSessionActivityResponse.php +++ b/clients/client/php/lib/Model/GetSessionActivityResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/HealthNotReadyStatus.php b/clients/client/php/lib/Model/HealthNotReadyStatus.php index 935016dcaac..646ab378080 100644 --- a/clients/client/php/lib/Model/HealthNotReadyStatus.php +++ b/clients/client/php/lib/Model/HealthNotReadyStatus.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/HealthStatus.php b/clients/client/php/lib/Model/HealthStatus.php index e3446011fad..0e800220add 100644 --- a/clients/client/php/lib/Model/HealthStatus.php +++ b/clients/client/php/lib/Model/HealthStatus.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Identity.php b/clients/client/php/lib/Model/Identity.php index ccbd110f26b..163e522c863 100644 --- a/clients/client/php/lib/Model/Identity.php +++ b/clients/client/php/lib/Model/Identity.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -70,7 +70,7 @@ class Identity implements ModelInterface, ArrayAccess, \JsonSerializable 'recoveryAddresses' => '\Ory\Client\Model\RecoveryIdentityAddress[]', 'schemaId' => 'string', 'schemaUrl' => 'string', - 'state' => '\Ory\Client\Model\IdentityState', + 'state' => 'string', 'stateChangedAt' => '\DateTime', 'traits' => 'mixed', 'updatedAt' => '\DateTime', @@ -229,6 +229,21 @@ public function getModelName() return self::$openAPIModelName; } + const STATE_ACTIVE = 'active'; + const STATE_INACTIVE = 'inactive'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_ACTIVE, + self::STATE_INACTIVE, + ]; + } /** * Associative array for storing property values @@ -279,6 +294,15 @@ public function listInvalidProperties() if ($this->container['schemaUrl'] === null) { $invalidProperties[] = "'schemaUrl' can't be null"; } + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($this->container['state']) && !in_array($this->container['state'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'state', must be one of '%s'", + $this->container['state'], + implode("', '", $allowedValues) + ); + } + if ($this->container['traits'] === null) { $invalidProperties[] = "'traits' can't be null"; } @@ -516,7 +540,7 @@ public function setSchemaUrl($schemaUrl) /** * Gets state * - * @return \Ory\Client\Model\IdentityState|null + * @return string|null */ public function getState() { @@ -526,12 +550,22 @@ public function getState() /** * Sets state * - * @param \Ory\Client\Model\IdentityState|null $state state + * @param string|null $state State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive * * @return self */ public function setState($state) { + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($state) && !in_array($state, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'state', must be one of '%s'", + $state, + implode("', '", $allowedValues) + ) + ); + } $this->container['state'] = $state; return $this; diff --git a/clients/client/php/lib/Model/IdentityCredentials.php b/clients/client/php/lib/Model/IdentityCredentials.php index 77615e83e50..b0cd6bea835 100644 --- a/clients/client/php/lib/Model/IdentityCredentials.php +++ b/clients/client/php/lib/Model/IdentityCredentials.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,7 +64,7 @@ class IdentityCredentials implements ModelInterface, ArrayAccess, \JsonSerializa 'config' => 'object', 'createdAt' => '\DateTime', 'identifiers' => 'string[]', - 'type' => '\Ory\Client\Model\IdentityCredentialsType', + 'type' => 'string', 'updatedAt' => '\DateTime', 'version' => 'int' ]; @@ -189,6 +189,33 @@ public function getModelName() return self::$openAPIModelName; } + const TYPE_PASSWORD = 'password'; + const TYPE_OIDC = 'oidc'; + const TYPE_TOTP = 'totp'; + const TYPE_LOOKUP_SECRET = 'lookup_secret'; + const TYPE_WEBAUTHN = 'webauthn'; + const TYPE_CODE = 'code'; + const TYPE_LINK_RECOVERY = 'link_recovery'; + const TYPE_CODE_RECOVERY = 'code_recovery'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_PASSWORD, + self::TYPE_OIDC, + self::TYPE_TOTP, + self::TYPE_LOOKUP_SECRET, + self::TYPE_WEBAUTHN, + self::TYPE_CODE, + self::TYPE_LINK_RECOVERY, + self::TYPE_CODE_RECOVERY, + ]; + } /** * Associative array for storing property values @@ -222,6 +249,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + return $invalidProperties; } @@ -312,7 +348,7 @@ public function setIdentifiers($identifiers) /** * Gets type * - * @return \Ory\Client\Model\IdentityCredentialsType|null + * @return string|null */ public function getType() { @@ -322,12 +358,22 @@ public function getType() /** * Sets type * - * @param \Ory\Client\Model\IdentityCredentialsType|null $type type + * @param string|null $type Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 self */ public function setType($type) { + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($type) && !in_array($type, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'type', must be one of '%s'", + $type, + implode("', '", $allowedValues) + ) + ); + } $this->container['type'] = $type; return $this; diff --git a/clients/client/php/lib/Model/IdentityCredentialsCode.php b/clients/client/php/lib/Model/IdentityCredentialsCode.php index ece3186a230..653ddd87fa5 100644 --- a/clients/client/php/lib/Model/IdentityCredentialsCode.php +++ b/clients/client/php/lib/Model/IdentityCredentialsCode.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -226,7 +226,7 @@ public function getAddressType() /** * Sets addressType * - * @param string|null $addressType addressType + * @param string|null $addressType The type of the address for this code * * @return self */ diff --git a/clients/client/php/lib/Model/IdentityCredentialsOidc.php b/clients/client/php/lib/Model/IdentityCredentialsOidc.php index 222ce35f13a..4bcd861fc86 100644 --- a/clients/client/php/lib/Model/IdentityCredentialsOidc.php +++ b/clients/client/php/lib/Model/IdentityCredentialsOidc.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/IdentityCredentialsOidcProvider.php b/clients/client/php/lib/Model/IdentityCredentialsOidcProvider.php index 13e04a2db50..d16621fd9eb 100644 --- a/clients/client/php/lib/Model/IdentityCredentialsOidcProvider.php +++ b/clients/client/php/lib/Model/IdentityCredentialsOidcProvider.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/IdentityCredentialsPassword.php b/clients/client/php/lib/Model/IdentityCredentialsPassword.php index 4a51218bf17..4b154fa8205 100644 --- a/clients/client/php/lib/Model/IdentityCredentialsPassword.php +++ b/clients/client/php/lib/Model/IdentityCredentialsPassword.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/IdentityCredentialsType.php b/clients/client/php/lib/Model/IdentityCredentialsType.php deleted file mode 100644 index 58f2a1d4530..00000000000 --- a/clients/client/php/lib/Model/IdentityCredentialsType.php +++ /dev/null @@ -1,76 +0,0 @@ - 'bool', 'nextPageToken' => 'string', - 'workspaces' => '\Ory\Client\Model\Workspace[]' + 'workspaces' => '\Ory\Client\Model\WorkspaceMeta[]' ]; /** @@ -278,7 +278,7 @@ public function setNextPageToken($nextPageToken) /** * Gets workspaces * - * @return \Ory\Client\Model\Workspace[] + * @return \Ory\Client\Model\WorkspaceMeta[] */ public function getWorkspaces() { @@ -288,7 +288,7 @@ public function getWorkspaces() /** * Sets workspaces * - * @param \Ory\Client\Model\Workspace[] $workspaces workspaces + * @param \Ory\Client\Model\WorkspaceMeta[] $workspaces workspaces * * @return self */ diff --git a/clients/client/php/lib/Model/ListOrganizationsResponse.php b/clients/client/php/lib/Model/ListOrganizationsResponse.php index e045221e9a0..c92ecfd96f1 100644 --- a/clients/client/php/lib/Model/ListOrganizationsResponse.php +++ b/clients/client/php/lib/Model/ListOrganizationsResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ListWorkspaceProjectsResponse.php b/clients/client/php/lib/Model/ListWorkspaceProjectsResponse.php new file mode 100644 index 00000000000..da297756391 --- /dev/null +++ b/clients/client/php/lib/Model/ListWorkspaceProjectsResponse.php @@ -0,0 +1,390 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class ListWorkspaceProjectsResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'listWorkspaceProjectsResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'hasNextPage' => 'bool', + 'nextPage' => 'string', + 'projects' => '\Ory\Client\Model\ProjectMetadata[]' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'hasNextPage' => null, + 'nextPage' => null, + 'projects' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'hasNextPage' => 'has_next_page', + 'nextPage' => 'next_page', + 'projects' => 'projects' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'hasNextPage' => 'setHasNextPage', + 'nextPage' => 'setNextPage', + 'projects' => 'setProjects' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'hasNextPage' => 'getHasNextPage', + 'nextPage' => 'getNextPage', + 'projects' => 'getProjects' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['hasNextPage'] = $data['hasNextPage'] ?? null; + $this->container['nextPage'] = $data['nextPage'] ?? null; + $this->container['projects'] = $data['projects'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['hasNextPage'] === null) { + $invalidProperties[] = "'hasNextPage' can't be null"; + } + if ($this->container['nextPage'] === null) { + $invalidProperties[] = "'nextPage' can't be null"; + } + if ($this->container['projects'] === null) { + $invalidProperties[] = "'projects' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets hasNextPage + * + * @return bool + */ + public function getHasNextPage() + { + return $this->container['hasNextPage']; + } + + /** + * Sets hasNextPage + * + * @param bool $hasNextPage hasNextPage + * + * @return self + */ + public function setHasNextPage($hasNextPage) + { + $this->container['hasNextPage'] = $hasNextPage; + + return $this; + } + + /** + * Gets nextPage + * + * @return string + */ + public function getNextPage() + { + return $this->container['nextPage']; + } + + /** + * Sets nextPage + * + * @param string $nextPage nextPage + * + * @return self + */ + public function setNextPage($nextPage) + { + $this->container['nextPage'] = $nextPage; + + return $this; + } + + /** + * Gets projects + * + * @return \Ory\Client\Model\ProjectMetadata[] + */ + public function getProjects() + { + return $this->container['projects']; + } + + /** + * Sets projects + * + * @param \Ory\Client\Model\ProjectMetadata[] $projects projects + * + * @return self + */ + public function setProjects($projects) + { + $this->container['projects'] = $projects; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/Model/LoginFlow.php b/clients/client/php/lib/Model/LoginFlow.php index 3758c635959..bc12594fbeb 100644 --- a/clients/client/php/lib/Model/LoginFlow.php +++ b/clients/client/php/lib/Model/LoginFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -61,7 +61,7 @@ class LoginFlow implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'active' => '\Ory\Client\Model\IdentityCredentialsType', + 'active' => 'string', 'createdAt' => '\DateTime', 'expiresAt' => '\DateTime', 'id' => 'string', @@ -75,6 +75,7 @@ class LoginFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'returnTo' => 'string', 'sessionTokenExchangeCode' => 'string', 'state' => 'mixed', + 'transientPayload' => 'object', 'type' => 'string', 'ui' => '\Ory\Client\Model\UiContainer', 'updatedAt' => '\DateTime' @@ -102,6 +103,7 @@ class LoginFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'returnTo' => null, 'sessionTokenExchangeCode' => null, 'state' => null, + 'transientPayload' => null, 'type' => null, 'ui' => null, 'updatedAt' => 'date-time' @@ -148,6 +150,7 @@ public static function openAPIFormats() 'returnTo' => 'return_to', 'sessionTokenExchangeCode' => 'session_token_exchange_code', 'state' => 'state', + 'transientPayload' => 'transient_payload', 'type' => 'type', 'ui' => 'ui', 'updatedAt' => 'updated_at' @@ -173,6 +176,7 @@ public static function openAPIFormats() 'returnTo' => 'setReturnTo', 'sessionTokenExchangeCode' => 'setSessionTokenExchangeCode', 'state' => 'setState', + 'transientPayload' => 'setTransientPayload', 'type' => 'setType', 'ui' => 'setUi', 'updatedAt' => 'setUpdatedAt' @@ -198,6 +202,7 @@ public static function openAPIFormats() 'returnTo' => 'getReturnTo', 'sessionTokenExchangeCode' => 'getSessionTokenExchangeCode', 'state' => 'getState', + 'transientPayload' => 'getTransientPayload', 'type' => 'getType', 'ui' => 'getUi', 'updatedAt' => 'getUpdatedAt' @@ -244,6 +249,33 @@ public function getModelName() return self::$openAPIModelName; } + const ACTIVE_PASSWORD = 'password'; + const ACTIVE_OIDC = 'oidc'; + const ACTIVE_TOTP = 'totp'; + const ACTIVE_LOOKUP_SECRET = 'lookup_secret'; + const ACTIVE_WEBAUTHN = 'webauthn'; + const ACTIVE_CODE = 'code'; + const ACTIVE_LINK_RECOVERY = 'link_recovery'; + const ACTIVE_CODE_RECOVERY = 'code_recovery'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getActiveAllowableValues() + { + return [ + self::ACTIVE_PASSWORD, + self::ACTIVE_OIDC, + self::ACTIVE_TOTP, + self::ACTIVE_LOOKUP_SECRET, + self::ACTIVE_WEBAUTHN, + self::ACTIVE_CODE, + self::ACTIVE_LINK_RECOVERY, + self::ACTIVE_CODE_RECOVERY, + ]; + } /** * Associative array for storing property values @@ -274,6 +306,7 @@ public function __construct(array $data = null) $this->container['returnTo'] = $data['returnTo'] ?? null; $this->container['sessionTokenExchangeCode'] = $data['sessionTokenExchangeCode'] ?? null; $this->container['state'] = $data['state'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['ui'] = $data['ui'] ?? null; $this->container['updatedAt'] = $data['updatedAt'] ?? null; @@ -288,6 +321,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getActiveAllowableValues(); + if (!is_null($this->container['active']) && !in_array($this->container['active'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'active', must be one of '%s'", + $this->container['active'], + implode("', '", $allowedValues) + ); + } + if ($this->container['expiresAt'] === null) { $invalidProperties[] = "'expiresAt' can't be null"; } @@ -327,7 +369,7 @@ public function valid() /** * Gets active * - * @return \Ory\Client\Model\IdentityCredentialsType|null + * @return string|null */ public function getActive() { @@ -337,12 +379,22 @@ public function getActive() /** * Sets active * - * @param \Ory\Client\Model\IdentityCredentialsType|null $active active + * @param string|null $active The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 self */ public function setActive($active) { + $allowedValues = $this->getActiveAllowableValues(); + if (!is_null($active) && !in_array($active, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'active', must be one of '%s'", + $active, + implode("', '", $allowedValues) + ) + ); + } $this->container['active'] = $active; return $this; @@ -660,6 +712,30 @@ public function setState($state) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload TransientPayload is used to pass data from the login to hooks and email templates + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets type * diff --git a/clients/client/php/lib/Model/LoginFlowState.php b/clients/client/php/lib/Model/LoginFlowState.php index 80734dd000d..7fec95ee48c 100644 --- a/clients/client/php/lib/Model/LoginFlowState.php +++ b/clients/client/php/lib/Model/LoginFlowState.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/LogoutFlow.php b/clients/client/php/lib/Model/LogoutFlow.php index 3ddef237dd6..dd551c2412e 100644 --- a/clients/client/php/lib/Model/LogoutFlow.php +++ b/clients/client/php/lib/Model/LogoutFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ManagedIdentitySchema.php b/clients/client/php/lib/Model/ManagedIdentitySchema.php index c0d00d4801d..34b26f4daaf 100644 --- a/clients/client/php/lib/Model/ManagedIdentitySchema.php +++ b/clients/client/php/lib/Model/ManagedIdentitySchema.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ManagedIdentitySchemaValidationResult.php b/clients/client/php/lib/Model/ManagedIdentitySchemaValidationResult.php index b173586a2f2..58631a09843 100644 --- a/clients/client/php/lib/Model/ManagedIdentitySchemaValidationResult.php +++ b/clients/client/php/lib/Model/ManagedIdentitySchemaValidationResult.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/MemberInvite.php b/clients/client/php/lib/Model/MemberInvite.php index 9e1eab0e8b1..e0dffa444af 100644 --- a/clients/client/php/lib/Model/MemberInvite.php +++ b/clients/client/php/lib/Model/MemberInvite.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Message.php b/clients/client/php/lib/Model/Message.php index b8c9c3ae1fb..9fb55588d91 100644 --- a/clients/client/php/lib/Model/Message.php +++ b/clients/client/php/lib/Model/Message.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/MessageDispatch.php b/clients/client/php/lib/Model/MessageDispatch.php index 2f23d3b64fd..37a3543f936 100644 --- a/clients/client/php/lib/Model/MessageDispatch.php +++ b/clients/client/php/lib/Model/MessageDispatch.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/MetricsDatapoint.php b/clients/client/php/lib/Model/MetricsDatapoint.php index 407eb29e434..1c72cbd2b40 100644 --- a/clients/client/php/lib/Model/MetricsDatapoint.php +++ b/clients/client/php/lib/Model/MetricsDatapoint.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/MigrationOptions.php b/clients/client/php/lib/Model/MigrationOptions.php new file mode 100644 index 00000000000..9e1c6c93f1f --- /dev/null +++ b/clients/client/php/lib/Model/MigrationOptions.php @@ -0,0 +1,425 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class MigrationOptions implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'migrationOptions'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'environment' => 'string', + 'projectSubscription' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'environment' => null, + 'projectSubscription' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'environment' => 'environment', + 'projectSubscription' => 'project_subscription' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'environment' => 'setEnvironment', + 'projectSubscription' => 'setProjectSubscription' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'environment' => 'getEnvironment', + 'projectSubscription' => 'getProjectSubscription' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + const ENVIRONMENT_PROD = 'prod'; + const ENVIRONMENT_DEV = 'dev'; + const PROJECT_SUBSCRIPTION_MIGRATE = 'migrate'; + const PROJECT_SUBSCRIPTION_IGNORE = 'ignore'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEnvironmentAllowableValues() + { + return [ + self::ENVIRONMENT_PROD, + self::ENVIRONMENT_DEV, + ]; + } + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getProjectSubscriptionAllowableValues() + { + return [ + self::PROJECT_SUBSCRIPTION_MIGRATE, + self::PROJECT_SUBSCRIPTION_IGNORE, + ]; + } + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['environment'] = $data['environment'] ?? null; + $this->container['projectSubscription'] = $data['projectSubscription'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['environment'] === null) { + $invalidProperties[] = "'environment' can't be null"; + } + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!is_null($this->container['environment']) && !in_array($this->container['environment'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'environment', must be one of '%s'", + $this->container['environment'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['projectSubscription'] === null) { + $invalidProperties[] = "'projectSubscription' can't be null"; + } + $allowedValues = $this->getProjectSubscriptionAllowableValues(); + if (!is_null($this->container['projectSubscription']) && !in_array($this->container['projectSubscription'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'projectSubscription', must be one of '%s'", + $this->container['projectSubscription'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets environment + * + * @return string + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param string $environment The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + * + * @return self + */ + public function setEnvironment($environment) + { + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!in_array($environment, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'environment', must be one of '%s'", + $environment, + implode("', '", $allowedValues) + ) + ); + } + $this->container['environment'] = $environment; + + return $this; + } + + /** + * Gets projectSubscription + * + * @return string + */ + public function getProjectSubscription() + { + return $this->container['projectSubscription']; + } + + /** + * Sets projectSubscription + * + * @param string $projectSubscription The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + * + * @return self + */ + public function setProjectSubscription($projectSubscription) + { + $allowedValues = $this->getProjectSubscriptionAllowableValues(); + if (!in_array($projectSubscription, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'projectSubscription', must be one of '%s'", + $projectSubscription, + implode("', '", $allowedValues) + ) + ); + } + $this->container['projectSubscription'] = $projectSubscription; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/Model/ModelInterface.php b/clients/client/php/lib/Model/ModelInterface.php index 3a3b6e1427a..3b5551fb368 100644 --- a/clients/client/php/lib/Model/ModelInterface.php +++ b/clients/client/php/lib/Model/ModelInterface.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ModelNamespace.php b/clients/client/php/lib/Model/ModelNamespace.php index 6295bdafb62..b4d80cf6a48 100644 --- a/clients/client/php/lib/Model/ModelNamespace.php +++ b/clients/client/php/lib/Model/ModelNamespace.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/NeedsPrivilegedSessionError.php b/clients/client/php/lib/Model/NeedsPrivilegedSessionError.php index e83620ebcec..3cf44d1daa1 100644 --- a/clients/client/php/lib/Model/NeedsPrivilegedSessionError.php +++ b/clients/client/php/lib/Model/NeedsPrivilegedSessionError.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/NormalizedProject.php b/clients/client/php/lib/Model/NormalizedProject.php index 0edec026768..99d53118d3c 100644 --- a/clients/client/php/lib/Model/NormalizedProject.php +++ b/clients/client/php/lib/Model/NormalizedProject.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/NormalizedProjectRevision.php b/clients/client/php/lib/Model/NormalizedProjectRevision.php index 86fcda5d393..85c4f272d30 100644 --- a/clients/client/php/lib/Model/NormalizedProjectRevision.php +++ b/clients/client/php/lib/Model/NormalizedProjectRevision.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -62,12 +62,14 @@ class NormalizedProjectRevision implements ModelInterface, ArrayAccess, \JsonSer protected static $openAPITypes = [ 'createdAt' => '\DateTime', 'disableAccountExperienceWelcomeScreen' => 'bool', + 'enableAxV2' => 'bool', 'hydraOauth2AllowedTopLevelClaims' => 'string[]', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'bool', 'hydraOauth2ExcludeNotBeforeClaim' => 'bool', 'hydraOauth2GrantJwtIatOptional' => 'bool', 'hydraOauth2GrantJwtJtiOptional' => 'bool', 'hydraOauth2GrantJwtMaxTtl' => 'string', + 'hydraOauth2MirrorTopLevelClaims' => 'bool', 'hydraOauth2PkceEnforced' => 'bool', 'hydraOauth2PkceEnforcedForPublicClients' => 'bool', 'hydraOauth2RefreshTokenHook' => 'string', @@ -126,6 +128,7 @@ class NormalizedProjectRevision implements ModelInterface, ArrayAccess, \JsonSer 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'string', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'string', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'string', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'string', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'string', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'string', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'string', @@ -211,6 +214,7 @@ class NormalizedProjectRevision implements ModelInterface, ArrayAccess, \JsonSer 'kratosSelfserviceFlowsVerificationUse' => 'string', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'string', 'kratosSelfserviceMethodsCodeEnabled' => 'bool', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'bool', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'bool', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'string', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'string', @@ -260,12 +264,14 @@ class NormalizedProjectRevision implements ModelInterface, ArrayAccess, \JsonSer protected static $openAPIFormats = [ 'createdAt' => 'date-time', 'disableAccountExperienceWelcomeScreen' => null, + 'enableAxV2' => null, 'hydraOauth2AllowedTopLevelClaims' => null, 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => null, 'hydraOauth2ExcludeNotBeforeClaim' => null, 'hydraOauth2GrantJwtIatOptional' => null, 'hydraOauth2GrantJwtJtiOptional' => null, 'hydraOauth2GrantJwtMaxTtl' => null, + 'hydraOauth2MirrorTopLevelClaims' => null, 'hydraOauth2PkceEnforced' => null, 'hydraOauth2PkceEnforcedForPublicClients' => null, 'hydraOauth2RefreshTokenHook' => null, @@ -324,6 +330,7 @@ class NormalizedProjectRevision implements ModelInterface, ArrayAccess, \JsonSer 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => null, 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => null, 'kratosCourierTemplatesLoginCodeValidEmailSubject' => null, + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => null, 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => null, 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => null, 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => null, @@ -409,6 +416,7 @@ class NormalizedProjectRevision implements ModelInterface, ArrayAccess, \JsonSer 'kratosSelfserviceFlowsVerificationUse' => null, 'kratosSelfserviceMethodsCodeConfigLifespan' => null, 'kratosSelfserviceMethodsCodeEnabled' => null, + 'kratosSelfserviceMethodsCodeMfaEnabled' => null, 'kratosSelfserviceMethodsCodePasswordlessEnabled' => null, 'kratosSelfserviceMethodsLinkConfigBaseUrl' => null, 'kratosSelfserviceMethodsLinkConfigLifespan' => null, @@ -477,12 +485,14 @@ public static function openAPIFormats() protected static $attributeMap = [ 'createdAt' => 'created_at', 'disableAccountExperienceWelcomeScreen' => 'disable_account_experience_welcome_screen', + 'enableAxV2' => 'enable_ax_v2', 'hydraOauth2AllowedTopLevelClaims' => 'hydra_oauth2_allowed_top_level_claims', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'hydra_oauth2_client_credentials_default_grant_allowed_scope', 'hydraOauth2ExcludeNotBeforeClaim' => 'hydra_oauth2_exclude_not_before_claim', 'hydraOauth2GrantJwtIatOptional' => 'hydra_oauth2_grant_jwt_iat_optional', 'hydraOauth2GrantJwtJtiOptional' => 'hydra_oauth2_grant_jwt_jti_optional', 'hydraOauth2GrantJwtMaxTtl' => 'hydra_oauth2_grant_jwt_max_ttl', + 'hydraOauth2MirrorTopLevelClaims' => 'hydra_oauth2_mirror_top_level_claims', 'hydraOauth2PkceEnforced' => 'hydra_oauth2_pkce_enforced', 'hydraOauth2PkceEnforcedForPublicClients' => 'hydra_oauth2_pkce_enforced_for_public_clients', 'hydraOauth2RefreshTokenHook' => 'hydra_oauth2_refresh_token_hook', @@ -541,6 +551,7 @@ public static function openAPIFormats() 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'kratos_courier_templates_login_code_valid_email_body_html', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'kratos_courier_templates_login_code_valid_email_body_plaintext', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'kratos_courier_templates_login_code_valid_email_subject', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'kratos_courier_templates_login_code_valid_sms_body_plaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'kratos_courier_templates_recovery_code_invalid_email_body_html', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'kratos_courier_templates_recovery_code_invalid_email_subject', @@ -626,6 +637,7 @@ public static function openAPIFormats() 'kratosSelfserviceFlowsVerificationUse' => 'kratos_selfservice_flows_verification_use', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'kratos_selfservice_methods_code_config_lifespan', 'kratosSelfserviceMethodsCodeEnabled' => 'kratos_selfservice_methods_code_enabled', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'kratos_selfservice_methods_code_mfa_enabled', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'kratos_selfservice_methods_code_passwordless_enabled', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'kratos_selfservice_methods_link_config_base_url', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'kratos_selfservice_methods_link_config_lifespan', @@ -673,12 +685,14 @@ public static function openAPIFormats() protected static $setters = [ 'createdAt' => 'setCreatedAt', 'disableAccountExperienceWelcomeScreen' => 'setDisableAccountExperienceWelcomeScreen', + 'enableAxV2' => 'setEnableAxV2', 'hydraOauth2AllowedTopLevelClaims' => 'setHydraOauth2AllowedTopLevelClaims', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'setHydraOauth2ClientCredentialsDefaultGrantAllowedScope', 'hydraOauth2ExcludeNotBeforeClaim' => 'setHydraOauth2ExcludeNotBeforeClaim', 'hydraOauth2GrantJwtIatOptional' => 'setHydraOauth2GrantJwtIatOptional', 'hydraOauth2GrantJwtJtiOptional' => 'setHydraOauth2GrantJwtJtiOptional', 'hydraOauth2GrantJwtMaxTtl' => 'setHydraOauth2GrantJwtMaxTtl', + 'hydraOauth2MirrorTopLevelClaims' => 'setHydraOauth2MirrorTopLevelClaims', 'hydraOauth2PkceEnforced' => 'setHydraOauth2PkceEnforced', 'hydraOauth2PkceEnforcedForPublicClients' => 'setHydraOauth2PkceEnforcedForPublicClients', 'hydraOauth2RefreshTokenHook' => 'setHydraOauth2RefreshTokenHook', @@ -737,6 +751,7 @@ public static function openAPIFormats() 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'setKratosCourierTemplatesLoginCodeValidEmailBodyHtml', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'setKratosCourierTemplatesLoginCodeValidEmailBodyPlaintext', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'setKratosCourierTemplatesLoginCodeValidEmailSubject', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'setKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'setKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'setKratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'setKratosCourierTemplatesRecoveryCodeInvalidEmailSubject', @@ -822,6 +837,7 @@ public static function openAPIFormats() 'kratosSelfserviceFlowsVerificationUse' => 'setKratosSelfserviceFlowsVerificationUse', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'setKratosSelfserviceMethodsCodeConfigLifespan', 'kratosSelfserviceMethodsCodeEnabled' => 'setKratosSelfserviceMethodsCodeEnabled', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'setKratosSelfserviceMethodsCodeMfaEnabled', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'setKratosSelfserviceMethodsCodePasswordlessEnabled', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'setKratosSelfserviceMethodsLinkConfigBaseUrl', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'setKratosSelfserviceMethodsLinkConfigLifespan', @@ -869,12 +885,14 @@ public static function openAPIFormats() protected static $getters = [ 'createdAt' => 'getCreatedAt', 'disableAccountExperienceWelcomeScreen' => 'getDisableAccountExperienceWelcomeScreen', + 'enableAxV2' => 'getEnableAxV2', 'hydraOauth2AllowedTopLevelClaims' => 'getHydraOauth2AllowedTopLevelClaims', 'hydraOauth2ClientCredentialsDefaultGrantAllowedScope' => 'getHydraOauth2ClientCredentialsDefaultGrantAllowedScope', 'hydraOauth2ExcludeNotBeforeClaim' => 'getHydraOauth2ExcludeNotBeforeClaim', 'hydraOauth2GrantJwtIatOptional' => 'getHydraOauth2GrantJwtIatOptional', 'hydraOauth2GrantJwtJtiOptional' => 'getHydraOauth2GrantJwtJtiOptional', 'hydraOauth2GrantJwtMaxTtl' => 'getHydraOauth2GrantJwtMaxTtl', + 'hydraOauth2MirrorTopLevelClaims' => 'getHydraOauth2MirrorTopLevelClaims', 'hydraOauth2PkceEnforced' => 'getHydraOauth2PkceEnforced', 'hydraOauth2PkceEnforcedForPublicClients' => 'getHydraOauth2PkceEnforcedForPublicClients', 'hydraOauth2RefreshTokenHook' => 'getHydraOauth2RefreshTokenHook', @@ -933,6 +951,7 @@ public static function openAPIFormats() 'kratosCourierTemplatesLoginCodeValidEmailBodyHtml' => 'getKratosCourierTemplatesLoginCodeValidEmailBodyHtml', 'kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext' => 'getKratosCourierTemplatesLoginCodeValidEmailBodyPlaintext', 'kratosCourierTemplatesLoginCodeValidEmailSubject' => 'getKratosCourierTemplatesLoginCodeValidEmailSubject', + 'kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext' => 'getKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml' => 'getKratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml', 'kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext' => 'getKratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext', 'kratosCourierTemplatesRecoveryCodeInvalidEmailSubject' => 'getKratosCourierTemplatesRecoveryCodeInvalidEmailSubject', @@ -1018,6 +1037,7 @@ public static function openAPIFormats() 'kratosSelfserviceFlowsVerificationUse' => 'getKratosSelfserviceFlowsVerificationUse', 'kratosSelfserviceMethodsCodeConfigLifespan' => 'getKratosSelfserviceMethodsCodeConfigLifespan', 'kratosSelfserviceMethodsCodeEnabled' => 'getKratosSelfserviceMethodsCodeEnabled', + 'kratosSelfserviceMethodsCodeMfaEnabled' => 'getKratosSelfserviceMethodsCodeMfaEnabled', 'kratosSelfserviceMethodsCodePasswordlessEnabled' => 'getKratosSelfserviceMethodsCodePasswordlessEnabled', 'kratosSelfserviceMethodsLinkConfigBaseUrl' => 'getKratosSelfserviceMethodsLinkConfigBaseUrl', 'kratosSelfserviceMethodsLinkConfigLifespan' => 'getKratosSelfserviceMethodsLinkConfigLifespan', @@ -1176,12 +1196,14 @@ public function __construct(array $data = null) { $this->container['createdAt'] = $data['createdAt'] ?? null; $this->container['disableAccountExperienceWelcomeScreen'] = $data['disableAccountExperienceWelcomeScreen'] ?? null; + $this->container['enableAxV2'] = $data['enableAxV2'] ?? null; $this->container['hydraOauth2AllowedTopLevelClaims'] = $data['hydraOauth2AllowedTopLevelClaims'] ?? null; $this->container['hydraOauth2ClientCredentialsDefaultGrantAllowedScope'] = $data['hydraOauth2ClientCredentialsDefaultGrantAllowedScope'] ?? null; $this->container['hydraOauth2ExcludeNotBeforeClaim'] = $data['hydraOauth2ExcludeNotBeforeClaim'] ?? null; $this->container['hydraOauth2GrantJwtIatOptional'] = $data['hydraOauth2GrantJwtIatOptional'] ?? null; $this->container['hydraOauth2GrantJwtJtiOptional'] = $data['hydraOauth2GrantJwtJtiOptional'] ?? null; $this->container['hydraOauth2GrantJwtMaxTtl'] = $data['hydraOauth2GrantJwtMaxTtl'] ?? '720h'; + $this->container['hydraOauth2MirrorTopLevelClaims'] = $data['hydraOauth2MirrorTopLevelClaims'] ?? null; $this->container['hydraOauth2PkceEnforced'] = $data['hydraOauth2PkceEnforced'] ?? null; $this->container['hydraOauth2PkceEnforcedForPublicClients'] = $data['hydraOauth2PkceEnforcedForPublicClients'] ?? null; $this->container['hydraOauth2RefreshTokenHook'] = $data['hydraOauth2RefreshTokenHook'] ?? null; @@ -1240,6 +1262,7 @@ public function __construct(array $data = null) $this->container['kratosCourierTemplatesLoginCodeValidEmailBodyHtml'] = $data['kratosCourierTemplatesLoginCodeValidEmailBodyHtml'] ?? null; $this->container['kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext'] = $data['kratosCourierTemplatesLoginCodeValidEmailBodyPlaintext'] ?? null; $this->container['kratosCourierTemplatesLoginCodeValidEmailSubject'] = $data['kratosCourierTemplatesLoginCodeValidEmailSubject'] ?? null; + $this->container['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext'] = $data['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext'] ?? null; $this->container['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml'] = $data['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml'] ?? null; $this->container['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext'] = $data['kratosCourierTemplatesRecoveryCodeInvalidEmailBodyPlaintext'] ?? null; $this->container['kratosCourierTemplatesRecoveryCodeInvalidEmailSubject'] = $data['kratosCourierTemplatesRecoveryCodeInvalidEmailSubject'] ?? null; @@ -1325,6 +1348,7 @@ public function __construct(array $data = null) $this->container['kratosSelfserviceFlowsVerificationUse'] = $data['kratosSelfserviceFlowsVerificationUse'] ?? null; $this->container['kratosSelfserviceMethodsCodeConfigLifespan'] = $data['kratosSelfserviceMethodsCodeConfigLifespan'] ?? null; $this->container['kratosSelfserviceMethodsCodeEnabled'] = $data['kratosSelfserviceMethodsCodeEnabled'] ?? null; + $this->container['kratosSelfserviceMethodsCodeMfaEnabled'] = $data['kratosSelfserviceMethodsCodeMfaEnabled'] ?? null; $this->container['kratosSelfserviceMethodsCodePasswordlessEnabled'] = $data['kratosSelfserviceMethodsCodePasswordlessEnabled'] ?? null; $this->container['kratosSelfserviceMethodsLinkConfigBaseUrl'] = $data['kratosSelfserviceMethodsLinkConfigBaseUrl'] ?? null; $this->container['kratosSelfserviceMethodsLinkConfigLifespan'] = $data['kratosSelfserviceMethodsLinkConfigLifespan'] ?? null; @@ -1499,6 +1523,30 @@ public function setDisableAccountExperienceWelcomeScreen($disableAccountExperien return $this; } + /** + * Gets enableAxV2 + * + * @return bool|null + */ + public function getEnableAxV2() + { + return $this->container['enableAxV2']; + } + + /** + * Sets enableAxV2 + * + * @param bool|null $enableAxV2 Whether the new account experience is enabled and reachable. + * + * @return self + */ + public function setEnableAxV2($enableAxV2) + { + $this->container['enableAxV2'] = $enableAxV2; + + return $this; + } + /** * Gets hydraOauth2AllowedTopLevelClaims * @@ -1648,6 +1696,30 @@ public function setHydraOauth2GrantJwtMaxTtl($hydraOauth2GrantJwtMaxTtl) return $this; } + /** + * Gets hydraOauth2MirrorTopLevelClaims + * + * @return bool|null + */ + public function getHydraOauth2MirrorTopLevelClaims() + { + return $this->container['hydraOauth2MirrorTopLevelClaims']; + } + + /** + * Sets hydraOauth2MirrorTopLevelClaims + * + * @param bool|null $hydraOauth2MirrorTopLevelClaims Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + * + * @return self + */ + public function setHydraOauth2MirrorTopLevelClaims($hydraOauth2MirrorTopLevelClaims) + { + $this->container['hydraOauth2MirrorTopLevelClaims'] = $hydraOauth2MirrorTopLevelClaims; + + return $this; + } + /** * Gets hydraOauth2PkceEnforced * @@ -3085,6 +3157,30 @@ public function setKratosCourierTemplatesLoginCodeValidEmailSubject($kratosCouri return $this; } + /** + * Gets kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + * + * @return string|null + */ + public function getKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() + { + return $this->container['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext']; + } + + /** + * Sets kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext + * + * @param string|null $kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + * + * @return self + */ + public function setKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext($kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext) + { + $this->container['kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext'] = $kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext; + + return $this; + } + /** * Gets kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml * @@ -5145,6 +5241,30 @@ public function setKratosSelfserviceMethodsCodeEnabled($kratosSelfserviceMethods return $this; } + /** + * Gets kratosSelfserviceMethodsCodeMfaEnabled + * + * @return bool|null + */ + public function getKratosSelfserviceMethodsCodeMfaEnabled() + { + return $this->container['kratosSelfserviceMethodsCodeMfaEnabled']; + } + + /** + * Sets kratosSelfserviceMethodsCodeMfaEnabled + * + * @param bool|null $kratosSelfserviceMethodsCodeMfaEnabled Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + * + * @return self + */ + public function setKratosSelfserviceMethodsCodeMfaEnabled($kratosSelfserviceMethodsCodeMfaEnabled) + { + $this->container['kratosSelfserviceMethodsCodeMfaEnabled'] = $kratosSelfserviceMethodsCodeMfaEnabled; + + return $this; + } + /** * Gets kratosSelfserviceMethodsCodePasswordlessEnabled * diff --git a/clients/client/php/lib/Model/NormalizedProjectRevisionCourierChannel.php b/clients/client/php/lib/Model/NormalizedProjectRevisionCourierChannel.php index bafa6685469..359adc9be6a 100644 --- a/clients/client/php/lib/Model/NormalizedProjectRevisionCourierChannel.php +++ b/clients/client/php/lib/Model/NormalizedProjectRevisionCourierChannel.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/NormalizedProjectRevisionHook.php b/clients/client/php/lib/Model/NormalizedProjectRevisionHook.php index ebf0e3f057c..6dba953d676 100644 --- a/clients/client/php/lib/Model/NormalizedProjectRevisionHook.php +++ b/clients/client/php/lib/Model/NormalizedProjectRevisionHook.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/NormalizedProjectRevisionIdentitySchema.php b/clients/client/php/lib/Model/NormalizedProjectRevisionIdentitySchema.php index 76cdee572e4..cf1c3fc610a 100644 --- a/clients/client/php/lib/Model/NormalizedProjectRevisionIdentitySchema.php +++ b/clients/client/php/lib/Model/NormalizedProjectRevisionIdentitySchema.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/NormalizedProjectRevisionThirdPartyProvider.php b/clients/client/php/lib/Model/NormalizedProjectRevisionThirdPartyProvider.php index 95ee817d838..cf6974b6047 100644 --- a/clients/client/php/lib/Model/NormalizedProjectRevisionThirdPartyProvider.php +++ b/clients/client/php/lib/Model/NormalizedProjectRevisionThirdPartyProvider.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -66,6 +66,7 @@ class NormalizedProjectRevisionThirdPartyProvider implements ModelInterface, Arr 'appleTeamId' => 'string', 'authUrl' => 'string', 'azureTenant' => 'string', + 'claimsSource' => 'string', 'clientId' => 'string', 'clientSecret' => 'string', 'createdAt' => '\DateTime', @@ -99,6 +100,7 @@ class NormalizedProjectRevisionThirdPartyProvider implements ModelInterface, Arr 'appleTeamId' => null, 'authUrl' => null, 'azureTenant' => null, + 'claimsSource' => null, 'clientId' => null, 'clientSecret' => null, 'createdAt' => 'date-time', @@ -151,6 +153,7 @@ public static function openAPIFormats() 'appleTeamId' => 'apple_team_id', 'authUrl' => 'auth_url', 'azureTenant' => 'azure_tenant', + 'claimsSource' => 'claims_source', 'clientId' => 'client_id', 'clientSecret' => 'client_secret', 'createdAt' => 'created_at', @@ -182,6 +185,7 @@ public static function openAPIFormats() 'appleTeamId' => 'setAppleTeamId', 'authUrl' => 'setAuthUrl', 'azureTenant' => 'setAzureTenant', + 'claimsSource' => 'setClaimsSource', 'clientId' => 'setClientId', 'clientSecret' => 'setClientSecret', 'createdAt' => 'setCreatedAt', @@ -213,6 +217,7 @@ public static function openAPIFormats() 'appleTeamId' => 'getAppleTeamId', 'authUrl' => 'getAuthUrl', 'azureTenant' => 'getAzureTenant', + 'claimsSource' => 'getClaimsSource', 'clientId' => 'getClientId', 'clientSecret' => 'getClientSecret', 'createdAt' => 'getCreatedAt', @@ -310,6 +315,7 @@ public function __construct(array $data = null) $this->container['appleTeamId'] = $data['appleTeamId'] ?? null; $this->container['authUrl'] = $data['authUrl'] ?? null; $this->container['azureTenant'] = $data['azureTenant'] ?? null; + $this->container['claimsSource'] = $data['claimsSource'] ?? null; $this->container['clientId'] = $data['clientId'] ?? null; $this->container['clientSecret'] = $data['clientSecret'] ?? null; $this->container['createdAt'] = $data['createdAt'] ?? null; @@ -506,6 +512,30 @@ public function setAzureTenant($azureTenant) return $this; } + /** + * Gets claimsSource + * + * @return string|null + */ + public function getClaimsSource() + { + return $this->container['claimsSource']; + } + + /** + * Sets claimsSource + * + * @param string|null $claimsSource claimsSource + * + * @return self + */ + public function setClaimsSource($claimsSource) + { + $this->container['claimsSource'] = $claimsSource; + + return $this; + } + /** * Gets clientId * diff --git a/clients/client/php/lib/Model/NormalizedProjectRevisionTokenizerTemplate.php b/clients/client/php/lib/Model/NormalizedProjectRevisionTokenizerTemplate.php index fa328bd66d6..59250a27da5 100644 --- a/clients/client/php/lib/Model/NormalizedProjectRevisionTokenizerTemplate.php +++ b/clients/client/php/lib/Model/NormalizedProjectRevisionTokenizerTemplate.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2Client.php b/clients/client/php/lib/Model/OAuth2Client.php index 22bdec3e8cb..ac4da4f1061 100644 --- a/clients/client/php/lib/Model/OAuth2Client.php +++ b/clients/client/php/lib/Model/OAuth2Client.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -102,6 +102,7 @@ class OAuth2Client implements ModelInterface, ArrayAccess, \JsonSerializable 'scope' => 'string', 'sectorIdentifierUri' => 'string', 'skipConsent' => 'bool', + 'skipLogoutConsent' => 'bool', 'subjectType' => 'string', 'tokenEndpointAuthMethod' => 'string', 'tokenEndpointAuthSigningAlg' => 'string', @@ -159,6 +160,7 @@ class OAuth2Client implements ModelInterface, ArrayAccess, \JsonSerializable 'scope' => null, 'sectorIdentifierUri' => null, 'skipConsent' => null, + 'skipLogoutConsent' => null, 'subjectType' => null, 'tokenEndpointAuthMethod' => null, 'tokenEndpointAuthSigningAlg' => null, @@ -235,6 +237,7 @@ public static function openAPIFormats() 'scope' => 'scope', 'sectorIdentifierUri' => 'sector_identifier_uri', 'skipConsent' => 'skip_consent', + 'skipLogoutConsent' => 'skip_logout_consent', 'subjectType' => 'subject_type', 'tokenEndpointAuthMethod' => 'token_endpoint_auth_method', 'tokenEndpointAuthSigningAlg' => 'token_endpoint_auth_signing_alg', @@ -290,6 +293,7 @@ public static function openAPIFormats() 'scope' => 'setScope', 'sectorIdentifierUri' => 'setSectorIdentifierUri', 'skipConsent' => 'setSkipConsent', + 'skipLogoutConsent' => 'setSkipLogoutConsent', 'subjectType' => 'setSubjectType', 'tokenEndpointAuthMethod' => 'setTokenEndpointAuthMethod', 'tokenEndpointAuthSigningAlg' => 'setTokenEndpointAuthSigningAlg', @@ -345,6 +349,7 @@ public static function openAPIFormats() 'scope' => 'getScope', 'sectorIdentifierUri' => 'getSectorIdentifierUri', 'skipConsent' => 'getSkipConsent', + 'skipLogoutConsent' => 'getSkipLogoutConsent', 'subjectType' => 'getSubjectType', 'tokenEndpointAuthMethod' => 'getTokenEndpointAuthMethod', 'tokenEndpointAuthSigningAlg' => 'getTokenEndpointAuthSigningAlg', @@ -451,6 +456,7 @@ public function __construct(array $data = null) $this->container['scope'] = $data['scope'] ?? null; $this->container['sectorIdentifierUri'] = $data['sectorIdentifierUri'] ?? null; $this->container['skipConsent'] = $data['skipConsent'] ?? null; + $this->container['skipLogoutConsent'] = $data['skipLogoutConsent'] ?? null; $this->container['subjectType'] = $data['subjectType'] ?? null; $this->container['tokenEndpointAuthMethod'] = $data['tokenEndpointAuthMethod'] ?? 'client_secret_basic'; $this->container['tokenEndpointAuthSigningAlg'] = $data['tokenEndpointAuthSigningAlg'] ?? null; @@ -1557,6 +1563,30 @@ public function setSkipConsent($skipConsent) return $this; } + /** + * Gets skipLogoutConsent + * + * @return bool|null + */ + public function getSkipLogoutConsent() + { + return $this->container['skipLogoutConsent']; + } + + /** + * Sets skipLogoutConsent + * + * @param bool|null $skipLogoutConsent SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + * + * @return self + */ + public function setSkipLogoutConsent($skipLogoutConsent) + { + $this->container['skipLogoutConsent'] = $skipLogoutConsent; + + return $this; + } + /** * Gets subjectType * diff --git a/clients/client/php/lib/Model/OAuth2ClientTokenLifespans.php b/clients/client/php/lib/Model/OAuth2ClientTokenLifespans.php index 811852d65b0..e663b236291 100644 --- a/clients/client/php/lib/Model/OAuth2ClientTokenLifespans.php +++ b/clients/client/php/lib/Model/OAuth2ClientTokenLifespans.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2ConsentRequest.php b/clients/client/php/lib/Model/OAuth2ConsentRequest.php index 0fd352be9a0..10b5f3da7b0 100644 --- a/clients/client/php/lib/Model/OAuth2ConsentRequest.php +++ b/clients/client/php/lib/Model/OAuth2ConsentRequest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php b/clients/client/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php index 4bc18d14c0e..a8d112d3031 100644 --- a/clients/client/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php +++ b/clients/client/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2ConsentSession.php b/clients/client/php/lib/Model/OAuth2ConsentSession.php index a894d3449d8..9655b9f8e2f 100644 --- a/clients/client/php/lib/Model/OAuth2ConsentSession.php +++ b/clients/client/php/lib/Model/OAuth2ConsentSession.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -62,6 +62,7 @@ class OAuth2ConsentSession implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPITypes = [ 'consentRequest' => '\Ory\Client\Model\OAuth2ConsentRequest', + 'context' => 'object', 'expiresAt' => '\Ory\Client\Model\OAuth2ConsentSessionExpiresAt', 'grantAccessTokenAudience' => 'string[]', 'grantScope' => 'string[]', @@ -80,6 +81,7 @@ class OAuth2ConsentSession implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPIFormats = [ 'consentRequest' => null, + 'context' => null, 'expiresAt' => null, 'grantAccessTokenAudience' => null, 'grantScope' => null, @@ -117,6 +119,7 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'consentRequest' => 'consent_request', + 'context' => 'context', 'expiresAt' => 'expires_at', 'grantAccessTokenAudience' => 'grant_access_token_audience', 'grantScope' => 'grant_scope', @@ -133,6 +136,7 @@ public static function openAPIFormats() */ protected static $setters = [ 'consentRequest' => 'setConsentRequest', + 'context' => 'setContext', 'expiresAt' => 'setExpiresAt', 'grantAccessTokenAudience' => 'setGrantAccessTokenAudience', 'grantScope' => 'setGrantScope', @@ -149,6 +153,7 @@ public static function openAPIFormats() */ protected static $getters = [ 'consentRequest' => 'getConsentRequest', + 'context' => 'getContext', 'expiresAt' => 'getExpiresAt', 'grantAccessTokenAudience' => 'getGrantAccessTokenAudience', 'grantScope' => 'getGrantScope', @@ -216,6 +221,7 @@ public function getModelName() public function __construct(array $data = null) { $this->container['consentRequest'] = $data['consentRequest'] ?? null; + $this->container['context'] = $data['context'] ?? null; $this->container['expiresAt'] = $data['expiresAt'] ?? null; $this->container['grantAccessTokenAudience'] = $data['grantAccessTokenAudience'] ?? null; $this->container['grantScope'] = $data['grantScope'] ?? null; @@ -273,6 +279,30 @@ public function setConsentRequest($consentRequest) return $this; } + /** + * Gets context + * + * @return object|null + */ + public function getContext() + { + return $this->container['context']; + } + + /** + * Sets context + * + * @param object|null $context context + * + * @return self + */ + public function setContext($context) + { + $this->container['context'] = $context; + + return $this; + } + /** * Gets expiresAt * diff --git a/clients/client/php/lib/Model/OAuth2ConsentSessionExpiresAt.php b/clients/client/php/lib/Model/OAuth2ConsentSessionExpiresAt.php index 751b5e4f688..dc2e8e0dbe9 100644 --- a/clients/client/php/lib/Model/OAuth2ConsentSessionExpiresAt.php +++ b/clients/client/php/lib/Model/OAuth2ConsentSessionExpiresAt.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2LoginRequest.php b/clients/client/php/lib/Model/OAuth2LoginRequest.php index 54e58aba155..af6dacfa568 100644 --- a/clients/client/php/lib/Model/OAuth2LoginRequest.php +++ b/clients/client/php/lib/Model/OAuth2LoginRequest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2LogoutRequest.php b/clients/client/php/lib/Model/OAuth2LogoutRequest.php index a5bf922f7b7..d41976cee33 100644 --- a/clients/client/php/lib/Model/OAuth2LogoutRequest.php +++ b/clients/client/php/lib/Model/OAuth2LogoutRequest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2RedirectTo.php b/clients/client/php/lib/Model/OAuth2RedirectTo.php index 8757735cd21..6468792f254 100644 --- a/clients/client/php/lib/Model/OAuth2RedirectTo.php +++ b/clients/client/php/lib/Model/OAuth2RedirectTo.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OAuth2TokenExchange.php b/clients/client/php/lib/Model/OAuth2TokenExchange.php index fe88b1b3c81..502f270c8fa 100644 --- a/clients/client/php/lib/Model/OAuth2TokenExchange.php +++ b/clients/client/php/lib/Model/OAuth2TokenExchange.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OidcConfiguration.php b/clients/client/php/lib/Model/OidcConfiguration.php index bea0f3d6f58..8cfdc8f28cd 100644 --- a/clients/client/php/lib/Model/OidcConfiguration.php +++ b/clients/client/php/lib/Model/OidcConfiguration.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OidcUserInfo.php b/clients/client/php/lib/Model/OidcUserInfo.php index b55313aabea..47040c450cb 100644 --- a/clients/client/php/lib/Model/OidcUserInfo.php +++ b/clients/client/php/lib/Model/OidcUserInfo.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Organization.php b/clients/client/php/lib/Model/Organization.php index 980c9f05d66..7096fc77dc1 100644 --- a/clients/client/php/lib/Model/Organization.php +++ b/clients/client/php/lib/Model/Organization.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/OrganizationBody.php b/clients/client/php/lib/Model/OrganizationBody.php index cdc7b69b0fc..14642976b93 100644 --- a/clients/client/php/lib/Model/OrganizationBody.php +++ b/clients/client/php/lib/Model/OrganizationBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Pagination.php b/clients/client/php/lib/Model/Pagination.php index e715e9e22ba..d4297fd1d0e 100644 --- a/clients/client/php/lib/Model/Pagination.php +++ b/clients/client/php/lib/Model/Pagination.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/PaginationHeaders.php b/clients/client/php/lib/Model/PaginationHeaders.php index 37abcee6a53..8127adbd7e3 100644 --- a/clients/client/php/lib/Model/PaginationHeaders.php +++ b/clients/client/php/lib/Model/PaginationHeaders.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ParseError.php b/clients/client/php/lib/Model/ParseError.php index 836c217e850..02104268e81 100644 --- a/clients/client/php/lib/Model/ParseError.php +++ b/clients/client/php/lib/Model/ParseError.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/PatchIdentitiesBody.php b/clients/client/php/lib/Model/PatchIdentitiesBody.php index 07856010e80..0686845aff4 100644 --- a/clients/client/php/lib/Model/PatchIdentitiesBody.php +++ b/clients/client/php/lib/Model/PatchIdentitiesBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/PerformNativeLogoutBody.php b/clients/client/php/lib/Model/PerformNativeLogoutBody.php index 5d1b555f8d5..a544d6924d4 100644 --- a/clients/client/php/lib/Model/PerformNativeLogoutBody.php +++ b/clients/client/php/lib/Model/PerformNativeLogoutBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/PermissionsOnWorkpaceResponse.php b/clients/client/php/lib/Model/PermissionsOnWorkpaceResponse.php new file mode 100644 index 00000000000..b424d352215 --- /dev/null +++ b/clients/client/php/lib/Model/PermissionsOnWorkpaceResponse.php @@ -0,0 +1,322 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class PermissionsOnWorkpaceResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'permissionsOnWorkpaceResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'permissions' => 'array' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'permissions' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'permissions' => 'permissions' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'permissions' => 'setPermissions' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'permissions' => 'getPermissions' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['permissions'] = $data['permissions'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets permissions + * + * @return array|null + */ + public function getPermissions() + { + return $this->container['permissions']; + } + + /** + * Sets permissions + * + * @param array|null $permissions permissions + * + * @return self + */ + public function setPermissions($permissions) + { + $this->container['permissions'] = $permissions; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/Model/Plan.php b/clients/client/php/lib/Model/Plan.php index d7ad48e7758..af21bc39abf 100644 --- a/clients/client/php/lib/Model/Plan.php +++ b/clients/client/php/lib/Model/Plan.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/PlanDetails.php b/clients/client/php/lib/Model/PlanDetails.php index 1d9027212a5..e583d1d8025 100644 --- a/clients/client/php/lib/Model/PlanDetails.php +++ b/clients/client/php/lib/Model/PlanDetails.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -372,7 +372,7 @@ public function getFeatures() /** * Sets features * - * @param array $features Features are the feature definitions included in the plan. + * @param array $features features * * @return self */ diff --git a/clients/client/php/lib/Model/PostCheckPermissionBody.php b/clients/client/php/lib/Model/PostCheckPermissionBody.php index b4583eaab28..68addf02725 100644 --- a/clients/client/php/lib/Model/PostCheckPermissionBody.php +++ b/clients/client/php/lib/Model/PostCheckPermissionBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/PostCheckPermissionOrErrorBody.php b/clients/client/php/lib/Model/PostCheckPermissionOrErrorBody.php index c9ad42dda87..8afa270a830 100644 --- a/clients/client/php/lib/Model/PostCheckPermissionOrErrorBody.php +++ b/clients/client/php/lib/Model/PostCheckPermissionOrErrorBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Project.php b/clients/client/php/lib/Model/Project.php index aad13b3386a..2f71bafacf2 100644 --- a/clients/client/php/lib/Model/Project.php +++ b/clients/client/php/lib/Model/Project.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectApiKey.php b/clients/client/php/lib/Model/ProjectApiKey.php index 3179b36cbfc..0956d5ced73 100644 --- a/clients/client/php/lib/Model/ProjectApiKey.php +++ b/clients/client/php/lib/Model/ProjectApiKey.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectBranding.php b/clients/client/php/lib/Model/ProjectBranding.php index 6320ba5078a..f8f1726d853 100644 --- a/clients/client/php/lib/Model/ProjectBranding.php +++ b/clients/client/php/lib/Model/ProjectBranding.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectBrandingColors.php b/clients/client/php/lib/Model/ProjectBrandingColors.php index 381903ccb02..ab0c315d9d8 100644 --- a/clients/client/php/lib/Model/ProjectBrandingColors.php +++ b/clients/client/php/lib/Model/ProjectBrandingColors.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectBrandingTheme.php b/clients/client/php/lib/Model/ProjectBrandingTheme.php index ca3c9d52c5e..11c3dc92855 100644 --- a/clients/client/php/lib/Model/ProjectBrandingTheme.php +++ b/clients/client/php/lib/Model/ProjectBrandingTheme.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectCors.php b/clients/client/php/lib/Model/ProjectCors.php index 86d3272a976..3f791a57e01 100644 --- a/clients/client/php/lib/Model/ProjectCors.php +++ b/clients/client/php/lib/Model/ProjectCors.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectEventsDatapoint.php b/clients/client/php/lib/Model/ProjectEventsDatapoint.php index 282cb22ebda..f05a41b37b8 100644 --- a/clients/client/php/lib/Model/ProjectEventsDatapoint.php +++ b/clients/client/php/lib/Model/ProjectEventsDatapoint.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectHost.php b/clients/client/php/lib/Model/ProjectHost.php index f956d8e7b21..ffbcf7dcc2b 100644 --- a/clients/client/php/lib/Model/ProjectHost.php +++ b/clients/client/php/lib/Model/ProjectHost.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectMember.php b/clients/client/php/lib/Model/ProjectMember.php new file mode 100644 index 00000000000..bd031e0842b --- /dev/null +++ b/clients/client/php/lib/Model/ProjectMember.php @@ -0,0 +1,423 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class ProjectMember implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'projectMember'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'email' => 'string', + 'id' => 'string', + 'name' => 'string', + 'role' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'email' => null, + 'id' => 'uuid', + 'name' => null, + 'role' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'email' => 'email', + 'id' => 'id', + 'name' => 'name', + 'role' => 'role' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'email' => 'setEmail', + 'id' => 'setId', + 'name' => 'setName', + 'role' => 'setRole' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'email' => 'getEmail', + 'id' => 'getId', + 'name' => 'getName', + 'role' => 'getRole' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['email'] = $data['email'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['role'] = $data['role'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['email'] === null) { + $invalidProperties[] = "'email' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['role'] === null) { + $invalidProperties[] = "'role' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets email + * + * @return string + */ + public function getEmail() + { + return $this->container['email']; + } + + /** + * Sets email + * + * @param string $email email + * + * @return self + */ + public function setEmail($email) + { + $this->container['email'] = $email; + + return $this; + } + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets role + * + * @return string + */ + public function getRole() + { + return $this->container['role']; + } + + /** + * Sets role + * + * @param string $role role + * + * @return self + */ + public function setRole($role) + { + $this->container['role'] = $role; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/Model/ProjectMetadata.php b/clients/client/php/lib/Model/ProjectMetadata.php index 5896188d0ca..bafbfcc2fb0 100644 --- a/clients/client/php/lib/Model/ProjectMetadata.php +++ b/clients/client/php/lib/Model/ProjectMetadata.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -61,6 +61,7 @@ class ProjectMetadata implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'createdAt' => '\DateTime', + 'environment' => 'string', 'hosts' => 'string[]', 'id' => 'string', 'name' => 'string', @@ -81,6 +82,7 @@ class ProjectMetadata implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'createdAt' => 'date-time', + 'environment' => null, 'hosts' => null, 'id' => 'uuid', 'name' => null, @@ -120,6 +122,7 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'createdAt' => 'created_at', + 'environment' => 'environment', 'hosts' => 'hosts', 'id' => 'id', 'name' => 'name', @@ -138,6 +141,7 @@ public static function openAPIFormats() */ protected static $setters = [ 'createdAt' => 'setCreatedAt', + 'environment' => 'setEnvironment', 'hosts' => 'setHosts', 'id' => 'setId', 'name' => 'setName', @@ -156,6 +160,7 @@ public static function openAPIFormats() */ protected static $getters = [ 'createdAt' => 'getCreatedAt', + 'environment' => 'getEnvironment', 'hosts' => 'getHosts', 'id' => 'getId', 'name' => 'getName', @@ -208,10 +213,25 @@ public function getModelName() return self::$openAPIModelName; } + const ENVIRONMENT_PROD = 'prod'; + const ENVIRONMENT_DEV = 'dev'; const STATE_RUNNING = 'running'; const STATE_HALTED = 'halted'; const STATE_DELETED = 'deleted'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getEnvironmentAllowableValues() + { + return [ + self::ENVIRONMENT_PROD, + self::ENVIRONMENT_DEV, + ]; + } + /** * Gets allowable values of the enum * @@ -242,6 +262,7 @@ public function getStateAllowableValues() public function __construct(array $data = null) { $this->container['createdAt'] = $data['createdAt'] ?? null; + $this->container['environment'] = $data['environment'] ?? null; $this->container['hosts'] = $data['hosts'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['name'] = $data['name'] ?? null; @@ -265,6 +286,18 @@ public function listInvalidProperties() if ($this->container['createdAt'] === null) { $invalidProperties[] = "'createdAt' can't be null"; } + if ($this->container['environment'] === null) { + $invalidProperties[] = "'environment' can't be null"; + } + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!is_null($this->container['environment']) && !in_array($this->container['environment'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'environment', must be one of '%s'", + $this->container['environment'], + implode("', '", $allowedValues) + ); + } + if ($this->container['hosts'] === null) { $invalidProperties[] = "'hosts' can't be null"; } @@ -328,6 +361,40 @@ public function setCreatedAt($createdAt) return $this; } + /** + * Gets environment + * + * @return string + */ + public function getEnvironment() + { + return $this->container['environment']; + } + + /** + * Sets environment + * + * @param string $environment The environment of the project. prod Production dev Development + * + * @return self + */ + public function setEnvironment($environment) + { + $allowedValues = $this->getEnvironmentAllowableValues(); + if (!in_array($environment, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'environment', must be one of '%s'", + $environment, + implode("', '", $allowedValues) + ) + ); + } + $this->container['environment'] = $environment; + + return $this; + } + /** * Gets hosts * diff --git a/clients/client/php/lib/Model/ProjectServiceIdentity.php b/clients/client/php/lib/Model/ProjectServiceIdentity.php index 5ae8c8f8050..65bbad8afff 100644 --- a/clients/client/php/lib/Model/ProjectServiceIdentity.php +++ b/clients/client/php/lib/Model/ProjectServiceIdentity.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectServiceOAuth2.php b/clients/client/php/lib/Model/ProjectServiceOAuth2.php index c19b5dfb674..e5f62843c59 100644 --- a/clients/client/php/lib/Model/ProjectServiceOAuth2.php +++ b/clients/client/php/lib/Model/ProjectServiceOAuth2.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectServicePermission.php b/clients/client/php/lib/Model/ProjectServicePermission.php index c076aef045f..d411f7c5d95 100644 --- a/clients/client/php/lib/Model/ProjectServicePermission.php +++ b/clients/client/php/lib/Model/ProjectServicePermission.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/ProjectServices.php b/clients/client/php/lib/Model/ProjectServices.php index 101b9b8829b..aa4a14fa478 100644 --- a/clients/client/php/lib/Model/ProjectServices.php +++ b/clients/client/php/lib/Model/ProjectServices.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/QuotaUsage.php b/clients/client/php/lib/Model/QuotaUsage.php index 1cba0d11f1a..0d94db0118c 100644 --- a/clients/client/php/lib/Model/QuotaUsage.php +++ b/clients/client/php/lib/Model/QuotaUsage.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -206,9 +206,12 @@ public function getModelName() const FEATURE_PROJECT_METRICS_EVENTS_HISTORY = 'project_metrics_events_history'; const FEATURE_ORGANIZATIONS = 'organizations'; const FEATURE_ROP_GRANT = 'rop_grant'; + const FEATURE_CONCIERGE_ONBOARDING = 'concierge_onboarding'; const FEATURE_RATE_LIMIT_TIER = 'rate_limit_tier'; const FEATURE_SESSION_RATE_LIMIT_TIER = 'session_rate_limit_tier'; const FEATURE_IDENTITIES_LIST_RATE_LIMIT_TIER = 'identities_list_rate_limit_tier'; + const FEATURE_PERMISSION_CHECKS_RATE_LIMIT_TIER = 'permission_checks_rate_limit_tier'; + const FEATURE_OAUTH2_INTROSPECT_RATE_LIMIT_TIER = 'oauth2_introspect_rate_limit_tier'; /** * Gets allowable values of the enum @@ -236,9 +239,12 @@ public function getFeatureAllowableValues() self::FEATURE_PROJECT_METRICS_EVENTS_HISTORY, self::FEATURE_ORGANIZATIONS, self::FEATURE_ROP_GRANT, + self::FEATURE_CONCIERGE_ONBOARDING, self::FEATURE_RATE_LIMIT_TIER, self::FEATURE_SESSION_RATE_LIMIT_TIER, self::FEATURE_IDENTITIES_LIST_RATE_LIMIT_TIER, + self::FEATURE_PERMISSION_CHECKS_RATE_LIMIT_TIER, + self::FEATURE_OAUTH2_INTROSPECT_RATE_LIMIT_TIER, ]; } @@ -377,7 +383,7 @@ public function getFeature() /** * Sets feature * - * @param string $feature region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + * @param string $feature region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect * * @return self */ diff --git a/clients/client/php/lib/Model/RFC6749ErrorJson.php b/clients/client/php/lib/Model/RFC6749ErrorJson.php index 7cf9cd9bf6b..aeddff7c92e 100644 --- a/clients/client/php/lib/Model/RFC6749ErrorJson.php +++ b/clients/client/php/lib/Model/RFC6749ErrorJson.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RecoveryCodeForIdentity.php b/clients/client/php/lib/Model/RecoveryCodeForIdentity.php index ea8b9d39173..db9ae3d5062 100644 --- a/clients/client/php/lib/Model/RecoveryCodeForIdentity.php +++ b/clients/client/php/lib/Model/RecoveryCodeForIdentity.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RecoveryFlow.php b/clients/client/php/lib/Model/RecoveryFlow.php index 0e2d8a825be..4193d3926d5 100644 --- a/clients/client/php/lib/Model/RecoveryFlow.php +++ b/clients/client/php/lib/Model/RecoveryFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -69,6 +69,7 @@ class RecoveryFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'requestUrl' => 'string', 'returnTo' => 'string', 'state' => 'mixed', + 'transientPayload' => 'object', 'type' => 'string', 'ui' => '\Ory\Client\Model\UiContainer' ]; @@ -89,6 +90,7 @@ class RecoveryFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'requestUrl' => null, 'returnTo' => null, 'state' => null, + 'transientPayload' => null, 'type' => null, 'ui' => null ]; @@ -128,6 +130,7 @@ public static function openAPIFormats() 'requestUrl' => 'request_url', 'returnTo' => 'return_to', 'state' => 'state', + 'transientPayload' => 'transient_payload', 'type' => 'type', 'ui' => 'ui' ]; @@ -146,6 +149,7 @@ public static function openAPIFormats() 'requestUrl' => 'setRequestUrl', 'returnTo' => 'setReturnTo', 'state' => 'setState', + 'transientPayload' => 'setTransientPayload', 'type' => 'setType', 'ui' => 'setUi' ]; @@ -164,6 +168,7 @@ public static function openAPIFormats() 'requestUrl' => 'getRequestUrl', 'returnTo' => 'getReturnTo', 'state' => 'getState', + 'transientPayload' => 'getTransientPayload', 'type' => 'getType', 'ui' => 'getUi' ]; @@ -233,6 +238,7 @@ public function __construct(array $data = null) $this->container['requestUrl'] = $data['requestUrl'] ?? null; $this->container['returnTo'] = $data['returnTo'] ?? null; $this->container['state'] = $data['state'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['ui'] = $data['ui'] ?? null; } @@ -474,6 +480,30 @@ public function setState($state) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload TransientPayload is used to pass data from the recovery flow to hooks and email templates + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets type * diff --git a/clients/client/php/lib/Model/RecoveryFlowState.php b/clients/client/php/lib/Model/RecoveryFlowState.php index db6a577e739..87f4262aaff 100644 --- a/clients/client/php/lib/Model/RecoveryFlowState.php +++ b/clients/client/php/lib/Model/RecoveryFlowState.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RecoveryIdentityAddress.php b/clients/client/php/lib/Model/RecoveryIdentityAddress.php index 8a9707a400d..c0cfce140da 100644 --- a/clients/client/php/lib/Model/RecoveryIdentityAddress.php +++ b/clients/client/php/lib/Model/RecoveryIdentityAddress.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RecoveryLinkForIdentity.php b/clients/client/php/lib/Model/RecoveryLinkForIdentity.php index fe0c0958857..4244bba522a 100644 --- a/clients/client/php/lib/Model/RecoveryLinkForIdentity.php +++ b/clients/client/php/lib/Model/RecoveryLinkForIdentity.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RegistrationFlow.php b/clients/client/php/lib/Model/RegistrationFlow.php index 2bc8692fbea..49565a479c0 100644 --- a/clients/client/php/lib/Model/RegistrationFlow.php +++ b/clients/client/php/lib/Model/RegistrationFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -60,7 +60,7 @@ class RegistrationFlow implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'active' => '\Ory\Client\Model\IdentityCredentialsType', + 'active' => 'string', 'expiresAt' => '\DateTime', 'id' => 'string', 'issuedAt' => '\DateTime', @@ -228,6 +228,33 @@ public function getModelName() return self::$openAPIModelName; } + const ACTIVE_PASSWORD = 'password'; + const ACTIVE_OIDC = 'oidc'; + const ACTIVE_TOTP = 'totp'; + const ACTIVE_LOOKUP_SECRET = 'lookup_secret'; + const ACTIVE_WEBAUTHN = 'webauthn'; + const ACTIVE_CODE = 'code'; + const ACTIVE_LINK_RECOVERY = 'link_recovery'; + const ACTIVE_CODE_RECOVERY = 'code_recovery'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getActiveAllowableValues() + { + return [ + self::ACTIVE_PASSWORD, + self::ACTIVE_OIDC, + self::ACTIVE_TOTP, + self::ACTIVE_LOOKUP_SECRET, + self::ACTIVE_WEBAUTHN, + self::ACTIVE_CODE, + self::ACTIVE_LINK_RECOVERY, + self::ACTIVE_CODE_RECOVERY, + ]; + } /** * Associative array for storing property values @@ -269,6 +296,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getActiveAllowableValues(); + if (!is_null($this->container['active']) && !in_array($this->container['active'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'active', must be one of '%s'", + $this->container['active'], + implode("', '", $allowedValues) + ); + } + if ($this->container['expiresAt'] === null) { $invalidProperties[] = "'expiresAt' can't be null"; } @@ -308,7 +344,7 @@ public function valid() /** * Gets active * - * @return \Ory\Client\Model\IdentityCredentialsType|null + * @return string|null */ public function getActive() { @@ -318,12 +354,22 @@ public function getActive() /** * Sets active * - * @param \Ory\Client\Model\IdentityCredentialsType|null $active active + * @param string|null $active Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 self */ public function setActive($active) { + $allowedValues = $this->getActiveAllowableValues(); + if (!is_null($active) && !in_array($active, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'active', must be one of '%s'", + $active, + implode("', '", $allowedValues) + ) + ); + } $this->container['active'] = $active; return $this; diff --git a/clients/client/php/lib/Model/RegistrationFlowState.php b/clients/client/php/lib/Model/RegistrationFlowState.php index b6d9885c53a..57fd663c379 100644 --- a/clients/client/php/lib/Model/RegistrationFlowState.php +++ b/clients/client/php/lib/Model/RegistrationFlowState.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RejectOAuth2Request.php b/clients/client/php/lib/Model/RejectOAuth2Request.php index e98030f4e7f..b0ddb2bf81f 100644 --- a/clients/client/php/lib/Model/RejectOAuth2Request.php +++ b/clients/client/php/lib/Model/RejectOAuth2Request.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RelationQuery.php b/clients/client/php/lib/Model/RelationQuery.php index bbda016412c..ebca1922120 100644 --- a/clients/client/php/lib/Model/RelationQuery.php +++ b/clients/client/php/lib/Model/RelationQuery.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Relationship.php b/clients/client/php/lib/Model/Relationship.php index eb14450472a..0836a572ca6 100644 --- a/clients/client/php/lib/Model/Relationship.php +++ b/clients/client/php/lib/Model/Relationship.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RelationshipNamespaces.php b/clients/client/php/lib/Model/RelationshipNamespaces.php index 7d36c6d1e80..61807e66458 100644 --- a/clients/client/php/lib/Model/RelationshipNamespaces.php +++ b/clients/client/php/lib/Model/RelationshipNamespaces.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/RelationshipPatch.php b/clients/client/php/lib/Model/RelationshipPatch.php index 6c1bac1ab3d..ebc00ec6c6e 100644 --- a/clients/client/php/lib/Model/RelationshipPatch.php +++ b/clients/client/php/lib/Model/RelationshipPatch.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Relationships.php b/clients/client/php/lib/Model/Relationships.php index 00e829f0e9b..39a99fc4d36 100644 --- a/clients/client/php/lib/Model/Relationships.php +++ b/clients/client/php/lib/Model/Relationships.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SchemaPatch.php b/clients/client/php/lib/Model/SchemaPatch.php index 62cf3a9e224..9f9d5515112 100644 --- a/clients/client/php/lib/Model/SchemaPatch.php +++ b/clients/client/php/lib/Model/SchemaPatch.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SelfServiceFlowExpiredError.php b/clients/client/php/lib/Model/SelfServiceFlowExpiredError.php index 61e38e02716..928b6708e52 100644 --- a/clients/client/php/lib/Model/SelfServiceFlowExpiredError.php +++ b/clients/client/php/lib/Model/SelfServiceFlowExpiredError.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Session.php b/clients/client/php/lib/Model/Session.php index 3493e22bdfa..4d4a6756375 100644 --- a/clients/client/php/lib/Model/Session.php +++ b/clients/client/php/lib/Model/Session.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SessionActivityDatapoint.php b/clients/client/php/lib/Model/SessionActivityDatapoint.php index 81b249afa9b..16b6eee5c0a 100644 --- a/clients/client/php/lib/Model/SessionActivityDatapoint.php +++ b/clients/client/php/lib/Model/SessionActivityDatapoint.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SessionAuthenticationMethod.php b/clients/client/php/lib/Model/SessionAuthenticationMethod.php index 51cd76236b1..d0bc6346de2 100644 --- a/clients/client/php/lib/Model/SessionAuthenticationMethod.php +++ b/clients/client/php/lib/Model/SessionAuthenticationMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SessionDevice.php b/clients/client/php/lib/Model/SessionDevice.php index b92c7f02c83..8070d1dc1a6 100644 --- a/clients/client/php/lib/Model/SessionDevice.php +++ b/clients/client/php/lib/Model/SessionDevice.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SetActiveProjectInConsoleBody.php b/clients/client/php/lib/Model/SetActiveProjectInConsoleBody.php index 860cad8637b..dd82c96413c 100644 --- a/clients/client/php/lib/Model/SetActiveProjectInConsoleBody.php +++ b/clients/client/php/lib/Model/SetActiveProjectInConsoleBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SetCustomDomainBody.php b/clients/client/php/lib/Model/SetCustomDomainBody.php index 933686f41d4..abb48143f45 100644 --- a/clients/client/php/lib/Model/SetCustomDomainBody.php +++ b/clients/client/php/lib/Model/SetCustomDomainBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SetEventStreamBody.php b/clients/client/php/lib/Model/SetEventStreamBody.php index 2a0513673f1..4be1c3bc252 100644 --- a/clients/client/php/lib/Model/SetEventStreamBody.php +++ b/clients/client/php/lib/Model/SetEventStreamBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SetProject.php b/clients/client/php/lib/Model/SetProject.php index 1ab6c9db54b..133b3af934c 100644 --- a/clients/client/php/lib/Model/SetProject.php +++ b/clients/client/php/lib/Model/SetProject.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SetProjectBrandingThemeBody.php b/clients/client/php/lib/Model/SetProjectBrandingThemeBody.php index ed05e6dc88d..ec2cd70871a 100644 --- a/clients/client/php/lib/Model/SetProjectBrandingThemeBody.php +++ b/clients/client/php/lib/Model/SetProjectBrandingThemeBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SettingsFlow.php b/clients/client/php/lib/Model/SettingsFlow.php index 3a385cf14c9..7be65d8dea9 100644 --- a/clients/client/php/lib/Model/SettingsFlow.php +++ b/clients/client/php/lib/Model/SettingsFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -70,6 +70,7 @@ class SettingsFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'requestUrl' => 'string', 'returnTo' => 'string', 'state' => 'mixed', + 'transientPayload' => 'object', 'type' => 'string', 'ui' => '\Ory\Client\Model\UiContainer' ]; @@ -91,6 +92,7 @@ class SettingsFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'requestUrl' => null, 'returnTo' => null, 'state' => null, + 'transientPayload' => null, 'type' => null, 'ui' => null ]; @@ -131,6 +133,7 @@ public static function openAPIFormats() 'requestUrl' => 'request_url', 'returnTo' => 'return_to', 'state' => 'state', + 'transientPayload' => 'transient_payload', 'type' => 'type', 'ui' => 'ui' ]; @@ -150,6 +153,7 @@ public static function openAPIFormats() 'requestUrl' => 'setRequestUrl', 'returnTo' => 'setReturnTo', 'state' => 'setState', + 'transientPayload' => 'setTransientPayload', 'type' => 'setType', 'ui' => 'setUi' ]; @@ -169,6 +173,7 @@ public static function openAPIFormats() 'requestUrl' => 'getRequestUrl', 'returnTo' => 'getReturnTo', 'state' => 'getState', + 'transientPayload' => 'getTransientPayload', 'type' => 'getType', 'ui' => 'getUi' ]; @@ -239,6 +244,7 @@ public function __construct(array $data = null) $this->container['requestUrl'] = $data['requestUrl'] ?? null; $this->container['returnTo'] = $data['returnTo'] ?? null; $this->container['state'] = $data['state'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['ui'] = $data['ui'] ?? null; } @@ -507,6 +513,30 @@ public function setState($state) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload TransientPayload is used to pass data from the settings flow to hooks and email templates + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets type * diff --git a/clients/client/php/lib/Model/SettingsFlowState.php b/clients/client/php/lib/Model/SettingsFlowState.php index 6d60619e457..5412240e769 100644 --- a/clients/client/php/lib/Model/SettingsFlowState.php +++ b/clients/client/php/lib/Model/SettingsFlowState.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SourcePosition.php b/clients/client/php/lib/Model/SourcePosition.php index 8ab9b2cf305..f420b927aec 100644 --- a/clients/client/php/lib/Model/SourcePosition.php +++ b/clients/client/php/lib/Model/SourcePosition.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SubjectSet.php b/clients/client/php/lib/Model/SubjectSet.php index 4e1dd3760df..50a7400990c 100644 --- a/clients/client/php/lib/Model/SubjectSet.php +++ b/clients/client/php/lib/Model/SubjectSet.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Subscription.php b/clients/client/php/lib/Model/Subscription.php index e5faab6dae0..acae99ce27c 100644 --- a/clients/client/php/lib/Model/Subscription.php +++ b/clients/client/php/lib/Model/Subscription.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,6 +64,7 @@ class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable 'currency' => 'string', 'currentInterval' => 'string', 'currentPlan' => 'string', + 'currentPlanDetails' => '\Ory\Client\Model\PlanDetails', 'customerId' => 'string', 'id' => 'string', 'intervalChangesTo' => 'string', @@ -72,6 +73,7 @@ class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable 'planChangesAt' => '\DateTime', 'planChangesTo' => 'string', 'status' => 'string', + 'stripeCheckoutExpiresAt' => '\DateTime', 'updatedAt' => '\DateTime' ]; @@ -87,6 +89,7 @@ class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable 'currency' => null, 'currentInterval' => null, 'currentPlan' => null, + 'currentPlanDetails' => null, 'customerId' => null, 'id' => 'uuid', 'intervalChangesTo' => null, @@ -95,6 +98,7 @@ class Subscription implements ModelInterface, ArrayAccess, \JsonSerializable 'planChangesAt' => 'date-time', 'planChangesTo' => null, 'status' => null, + 'stripeCheckoutExpiresAt' => 'date-time', 'updatedAt' => 'date-time' ]; @@ -129,6 +133,7 @@ public static function openAPIFormats() 'currency' => 'currency', 'currentInterval' => 'current_interval', 'currentPlan' => 'current_plan', + 'currentPlanDetails' => 'current_plan_details', 'customerId' => 'customer_id', 'id' => 'id', 'intervalChangesTo' => 'interval_changes_to', @@ -137,6 +142,7 @@ public static function openAPIFormats() 'planChangesAt' => 'plan_changes_at', 'planChangesTo' => 'plan_changes_to', 'status' => 'status', + 'stripeCheckoutExpiresAt' => 'stripe_checkout_expires_at', 'updatedAt' => 'updated_at' ]; @@ -150,6 +156,7 @@ public static function openAPIFormats() 'currency' => 'setCurrency', 'currentInterval' => 'setCurrentInterval', 'currentPlan' => 'setCurrentPlan', + 'currentPlanDetails' => 'setCurrentPlanDetails', 'customerId' => 'setCustomerId', 'id' => 'setId', 'intervalChangesTo' => 'setIntervalChangesTo', @@ -158,6 +165,7 @@ public static function openAPIFormats() 'planChangesAt' => 'setPlanChangesAt', 'planChangesTo' => 'setPlanChangesTo', 'status' => 'setStatus', + 'stripeCheckoutExpiresAt' => 'setStripeCheckoutExpiresAt', 'updatedAt' => 'setUpdatedAt' ]; @@ -171,6 +179,7 @@ public static function openAPIFormats() 'currency' => 'getCurrency', 'currentInterval' => 'getCurrentInterval', 'currentPlan' => 'getCurrentPlan', + 'currentPlanDetails' => 'getCurrentPlanDetails', 'customerId' => 'getCustomerId', 'id' => 'getId', 'intervalChangesTo' => 'getIntervalChangesTo', @@ -179,6 +188,7 @@ public static function openAPIFormats() 'planChangesAt' => 'getPlanChangesAt', 'planChangesTo' => 'getPlanChangesTo', 'status' => 'getStatus', + 'stripeCheckoutExpiresAt' => 'getStripeCheckoutExpiresAt', 'updatedAt' => 'getUpdatedAt' ]; @@ -273,6 +283,7 @@ public function __construct(array $data = null) $this->container['currency'] = $data['currency'] ?? null; $this->container['currentInterval'] = $data['currentInterval'] ?? null; $this->container['currentPlan'] = $data['currentPlan'] ?? null; + $this->container['currentPlanDetails'] = $data['currentPlanDetails'] ?? null; $this->container['customerId'] = $data['customerId'] ?? null; $this->container['id'] = $data['id'] ?? null; $this->container['intervalChangesTo'] = $data['intervalChangesTo'] ?? null; @@ -281,6 +292,7 @@ public function __construct(array $data = null) $this->container['planChangesAt'] = $data['planChangesAt'] ?? null; $this->container['planChangesTo'] = $data['planChangesTo'] ?? null; $this->container['status'] = $data['status'] ?? null; + $this->container['stripeCheckoutExpiresAt'] = $data['stripeCheckoutExpiresAt'] ?? null; $this->container['updatedAt'] = $data['updatedAt'] ?? null; } @@ -475,6 +487,30 @@ public function setCurrentPlan($currentPlan) return $this; } + /** + * Gets currentPlanDetails + * + * @return \Ory\Client\Model\PlanDetails|null + */ + public function getCurrentPlanDetails() + { + return $this->container['currentPlanDetails']; + } + + /** + * Sets currentPlanDetails + * + * @param \Ory\Client\Model\PlanDetails|null $currentPlanDetails currentPlanDetails + * + * @return self + */ + public function setCurrentPlanDetails($currentPlanDetails) + { + $this->container['currentPlanDetails'] = $currentPlanDetails; + + return $this; + } + /** * Gets customerId * @@ -667,6 +703,30 @@ public function setStatus($status) return $this; } + /** + * Gets stripeCheckoutExpiresAt + * + * @return \DateTime|null + */ + public function getStripeCheckoutExpiresAt() + { + return $this->container['stripeCheckoutExpiresAt']; + } + + /** + * Sets stripeCheckoutExpiresAt + * + * @param \DateTime|null $stripeCheckoutExpiresAt stripeCheckoutExpiresAt + * + * @return self + */ + public function setStripeCheckoutExpiresAt($stripeCheckoutExpiresAt) + { + $this->container['stripeCheckoutExpiresAt'] = $stripeCheckoutExpiresAt; + + return $this; + } + /** * Gets updatedAt * diff --git a/clients/client/php/lib/Model/SuccessfulCodeExchangeResponse.php b/clients/client/php/lib/Model/SuccessfulCodeExchangeResponse.php index 292b00c14d7..246284ae459 100644 --- a/clients/client/php/lib/Model/SuccessfulCodeExchangeResponse.php +++ b/clients/client/php/lib/Model/SuccessfulCodeExchangeResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SuccessfulNativeLogin.php b/clients/client/php/lib/Model/SuccessfulNativeLogin.php index f11d7711236..6b71c6e0582 100644 --- a/clients/client/php/lib/Model/SuccessfulNativeLogin.php +++ b/clients/client/php/lib/Model/SuccessfulNativeLogin.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SuccessfulNativeRegistration.php b/clients/client/php/lib/Model/SuccessfulNativeRegistration.php index 5691f3d8087..91c0bafae5c 100644 --- a/clients/client/php/lib/Model/SuccessfulNativeRegistration.php +++ b/clients/client/php/lib/Model/SuccessfulNativeRegistration.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/SuccessfulProjectUpdate.php b/clients/client/php/lib/Model/SuccessfulProjectUpdate.php index f5ab3f172dd..d3ba2c627ca 100644 --- a/clients/client/php/lib/Model/SuccessfulProjectUpdate.php +++ b/clients/client/php/lib/Model/SuccessfulProjectUpdate.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TokenPagination.php b/clients/client/php/lib/Model/TokenPagination.php index b1f6835172e..56e23131421 100644 --- a/clients/client/php/lib/Model/TokenPagination.php +++ b/clients/client/php/lib/Model/TokenPagination.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TokenPaginationHeaders.php b/clients/client/php/lib/Model/TokenPaginationHeaders.php index 5cfb5e64042..4b1cac3084a 100644 --- a/clients/client/php/lib/Model/TokenPaginationHeaders.php +++ b/clients/client/php/lib/Model/TokenPaginationHeaders.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TokenPaginationRequestParameters.php b/clients/client/php/lib/Model/TokenPaginationRequestParameters.php index f6077ad3874..387ac8aba35 100644 --- a/clients/client/php/lib/Model/TokenPaginationRequestParameters.php +++ b/clients/client/php/lib/Model/TokenPaginationRequestParameters.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TokenPaginationResponseHeaders.php b/clients/client/php/lib/Model/TokenPaginationResponseHeaders.php index 30ab11c05f4..649bb343d4d 100644 --- a/clients/client/php/lib/Model/TokenPaginationResponseHeaders.php +++ b/clients/client/php/lib/Model/TokenPaginationResponseHeaders.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TrustOAuth2JwtGrantIssuer.php b/clients/client/php/lib/Model/TrustOAuth2JwtGrantIssuer.php index 4bc7f2a9fef..68944f4428b 100644 --- a/clients/client/php/lib/Model/TrustOAuth2JwtGrantIssuer.php +++ b/clients/client/php/lib/Model/TrustOAuth2JwtGrantIssuer.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php b/clients/client/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php index 4727e1f84b9..00b92effea2 100644 --- a/clients/client/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php +++ b/clients/client/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php b/clients/client/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php index 654a5c4236d..6a64b7fff00 100644 --- a/clients/client/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php +++ b/clients/client/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiContainer.php b/clients/client/php/lib/Model/UiContainer.php index 2dd7a7f54c4..9082922a2b3 100644 --- a/clients/client/php/lib/Model/UiContainer.php +++ b/clients/client/php/lib/Model/UiContainer.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNode.php b/clients/client/php/lib/Model/UiNode.php index 84896bc40ec..83b42ea5361 100644 --- a/clients/client/php/lib/Model/UiNode.php +++ b/clients/client/php/lib/Model/UiNode.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeAnchorAttributes.php b/clients/client/php/lib/Model/UiNodeAnchorAttributes.php index 8f81f670d45..ec1bd60b1aa 100644 --- a/clients/client/php/lib/Model/UiNodeAnchorAttributes.php +++ b/clients/client/php/lib/Model/UiNodeAnchorAttributes.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeAttributes.php b/clients/client/php/lib/Model/UiNodeAttributes.php index 17784bc90b4..dcc6e3ff12e 100644 --- a/clients/client/php/lib/Model/UiNodeAttributes.php +++ b/clients/client/php/lib/Model/UiNodeAttributes.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeImageAttributes.php b/clients/client/php/lib/Model/UiNodeImageAttributes.php index 736ff781577..6ae47c6d232 100644 --- a/clients/client/php/lib/Model/UiNodeImageAttributes.php +++ b/clients/client/php/lib/Model/UiNodeImageAttributes.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeInputAttributes.php b/clients/client/php/lib/Model/UiNodeInputAttributes.php index 0eb834571eb..353e4198e01 100644 --- a/clients/client/php/lib/Model/UiNodeInputAttributes.php +++ b/clients/client/php/lib/Model/UiNodeInputAttributes.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeMeta.php b/clients/client/php/lib/Model/UiNodeMeta.php index 8116b86f734..7857acd0c13 100644 --- a/clients/client/php/lib/Model/UiNodeMeta.php +++ b/clients/client/php/lib/Model/UiNodeMeta.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeScriptAttributes.php b/clients/client/php/lib/Model/UiNodeScriptAttributes.php index 7ab3bad791a..c82065a0193 100644 --- a/clients/client/php/lib/Model/UiNodeScriptAttributes.php +++ b/clients/client/php/lib/Model/UiNodeScriptAttributes.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiNodeTextAttributes.php b/clients/client/php/lib/Model/UiNodeTextAttributes.php index 0506f695103..c386bda989e 100644 --- a/clients/client/php/lib/Model/UiNodeTextAttributes.php +++ b/clients/client/php/lib/Model/UiNodeTextAttributes.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UiText.php b/clients/client/php/lib/Model/UiText.php index 6a685a00dea..f7a0d697244 100644 --- a/clients/client/php/lib/Model/UiText.php +++ b/clients/client/php/lib/Model/UiText.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateIdentityBody.php b/clients/client/php/lib/Model/UpdateIdentityBody.php index 8e5e7acd9c8..c49501a3456 100644 --- a/clients/client/php/lib/Model/UpdateIdentityBody.php +++ b/clients/client/php/lib/Model/UpdateIdentityBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -65,7 +65,7 @@ class UpdateIdentityBody implements ModelInterface, ArrayAccess, \JsonSerializab 'metadataAdmin' => 'mixed', 'metadataPublic' => 'mixed', 'schemaId' => 'string', - 'state' => '\Ory\Client\Model\IdentityState', + 'state' => 'string', 'traits' => 'object' ]; @@ -189,6 +189,21 @@ public function getModelName() return self::$openAPIModelName; } + const STATE_ACTIVE = 'active'; + const STATE_INACTIVE = 'inactive'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getStateAllowableValues() + { + return [ + self::STATE_ACTIVE, + self::STATE_INACTIVE, + ]; + } /** * Associative array for storing property values @@ -228,6 +243,15 @@ public function listInvalidProperties() if ($this->container['state'] === null) { $invalidProperties[] = "'state' can't be null"; } + $allowedValues = $this->getStateAllowableValues(); + if (!is_null($this->container['state']) && !in_array($this->container['state'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'state', must be one of '%s'", + $this->container['state'], + implode("', '", $allowedValues) + ); + } + if ($this->container['traits'] === null) { $invalidProperties[] = "'traits' can't be null"; } @@ -345,7 +369,7 @@ public function setSchemaId($schemaId) /** * Gets state * - * @return \Ory\Client\Model\IdentityState + * @return string */ public function getState() { @@ -355,12 +379,22 @@ public function getState() /** * Sets state * - * @param \Ory\Client\Model\IdentityState $state state + * @param string $state State is the identity's state. active StateActive inactive StateInactive * * @return self */ public function setState($state) { + $allowedValues = $this->getStateAllowableValues(); + if (!in_array($state, $allowedValues, true)) { + throw new \InvalidArgumentException( + sprintf( + "Invalid value '%s' for 'state', must be one of '%s'", + $state, + implode("', '", $allowedValues) + ) + ); + } $this->container['state'] = $state; return $this; diff --git a/clients/client/php/lib/Model/UpdateLoginFlowBody.php b/clients/client/php/lib/Model/UpdateLoginFlowBody.php index bbbde47bae7..09a293f2a95 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowBody.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -65,6 +65,7 @@ class UpdateLoginFlowBody implements ModelInterface, ArrayAccess, \JsonSerializa 'method' => 'string', 'password' => 'string', 'passwordIdentifier' => 'string', + 'transientPayload' => 'object', 'idToken' => 'string', 'idTokenNonce' => 'string', 'provider' => 'string', @@ -90,6 +91,7 @@ class UpdateLoginFlowBody implements ModelInterface, ArrayAccess, \JsonSerializa 'method' => null, 'password' => null, 'passwordIdentifier' => null, + 'transientPayload' => null, 'idToken' => null, 'idTokenNonce' => null, 'provider' => null, @@ -134,6 +136,7 @@ public static function openAPIFormats() 'method' => 'method', 'password' => 'password', 'passwordIdentifier' => 'password_identifier', + 'transientPayload' => 'transient_payload', 'idToken' => 'id_token', 'idTokenNonce' => 'id_token_nonce', 'provider' => 'provider', @@ -157,6 +160,7 @@ public static function openAPIFormats() 'method' => 'setMethod', 'password' => 'setPassword', 'passwordIdentifier' => 'setPasswordIdentifier', + 'transientPayload' => 'setTransientPayload', 'idToken' => 'setIdToken', 'idTokenNonce' => 'setIdTokenNonce', 'provider' => 'setProvider', @@ -180,6 +184,7 @@ public static function openAPIFormats() 'method' => 'getMethod', 'password' => 'getPassword', 'passwordIdentifier' => 'getPasswordIdentifier', + 'transientPayload' => 'getTransientPayload', 'idToken' => 'getIdToken', 'idTokenNonce' => 'getIdTokenNonce', 'provider' => 'getProvider', @@ -254,6 +259,7 @@ public function __construct(array $data = null) $this->container['method'] = $data['method'] ?? null; $this->container['password'] = $data['password'] ?? null; $this->container['passwordIdentifier'] = $data['passwordIdentifier'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['idToken'] = $data['idToken'] ?? null; $this->container['idTokenNonce'] = $data['idTokenNonce'] ?? null; $this->container['provider'] = $data['provider'] ?? null; @@ -434,6 +440,30 @@ public function setPasswordIdentifier($passwordIdentifier) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets idToken * diff --git a/clients/client/php/lib/Model/UpdateLoginFlowWithCodeMethod.php b/clients/client/php/lib/Model/UpdateLoginFlowWithCodeMethod.php index ce7e9b2cd63..ffd690d77bc 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowWithCodeMethod.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowWithCodeMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -65,7 +65,8 @@ class UpdateLoginFlowWithCodeMethod implements ModelInterface, ArrayAccess, \Jso 'csrfToken' => 'string', 'identifier' => 'string', 'method' => 'string', - 'resend' => 'string' + 'resend' => 'string', + 'transientPayload' => 'object' ]; /** @@ -80,7 +81,8 @@ class UpdateLoginFlowWithCodeMethod implements ModelInterface, ArrayAccess, \Jso 'csrfToken' => null, 'identifier' => null, 'method' => null, - 'resend' => null + 'resend' => null, + 'transientPayload' => null ]; /** @@ -114,7 +116,8 @@ public static function openAPIFormats() 'csrfToken' => 'csrf_token', 'identifier' => 'identifier', 'method' => 'method', - 'resend' => 'resend' + 'resend' => 'resend', + 'transientPayload' => 'transient_payload' ]; /** @@ -127,7 +130,8 @@ public static function openAPIFormats() 'csrfToken' => 'setCsrfToken', 'identifier' => 'setIdentifier', 'method' => 'setMethod', - 'resend' => 'setResend' + 'resend' => 'setResend', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -140,7 +144,8 @@ public static function openAPIFormats() 'csrfToken' => 'getCsrfToken', 'identifier' => 'getIdentifier', 'method' => 'getMethod', - 'resend' => 'getResend' + 'resend' => 'getResend', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -205,6 +210,7 @@ public function __construct(array $data = null) $this->container['identifier'] = $data['identifier'] ?? null; $this->container['method'] = $data['method'] ?? null; $this->container['resend'] = $data['resend'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -356,6 +362,30 @@ public function setResend($resend) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateLoginFlowWithLookupSecretMethod.php b/clients/client/php/lib/Model/UpdateLoginFlowWithLookupSecretMethod.php index ed1460ebb0f..3762f15ed7d 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowWithLookupSecretMethod.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowWithLookupSecretMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateLoginFlowWithOidcMethod.php b/clients/client/php/lib/Model/UpdateLoginFlowWithOidcMethod.php index 945b6dc0ba9..ef40c41a02c 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowWithOidcMethod.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowWithOidcMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -67,6 +67,7 @@ class UpdateLoginFlowWithOidcMethod implements ModelInterface, ArrayAccess, \Jso 'method' => 'string', 'provider' => 'string', 'traits' => 'object', + 'transientPayload' => 'object', 'upstreamParameters' => 'object' ]; @@ -84,6 +85,7 @@ class UpdateLoginFlowWithOidcMethod implements ModelInterface, ArrayAccess, \Jso 'method' => null, 'provider' => null, 'traits' => null, + 'transientPayload' => null, 'upstreamParameters' => null ]; @@ -120,6 +122,7 @@ public static function openAPIFormats() 'method' => 'method', 'provider' => 'provider', 'traits' => 'traits', + 'transientPayload' => 'transient_payload', 'upstreamParameters' => 'upstream_parameters' ]; @@ -135,6 +138,7 @@ public static function openAPIFormats() 'method' => 'setMethod', 'provider' => 'setProvider', 'traits' => 'setTraits', + 'transientPayload' => 'setTransientPayload', 'upstreamParameters' => 'setUpstreamParameters' ]; @@ -150,6 +154,7 @@ public static function openAPIFormats() 'method' => 'getMethod', 'provider' => 'getProvider', 'traits' => 'getTraits', + 'transientPayload' => 'getTransientPayload', 'upstreamParameters' => 'getUpstreamParameters' ]; @@ -216,6 +221,7 @@ public function __construct(array $data = null) $this->container['method'] = $data['method'] ?? null; $this->container['provider'] = $data['provider'] ?? null; $this->container['traits'] = $data['traits'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['upstreamParameters'] = $data['upstreamParameters'] ?? null; } @@ -393,6 +399,30 @@ public function setTraits($traits) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets upstreamParameters * diff --git a/clients/client/php/lib/Model/UpdateLoginFlowWithPasswordMethod.php b/clients/client/php/lib/Model/UpdateLoginFlowWithPasswordMethod.php index 374dce825a9..705d82a81ef 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowWithPasswordMethod.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowWithPasswordMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -65,7 +65,8 @@ class UpdateLoginFlowWithPasswordMethod implements ModelInterface, ArrayAccess, 'identifier' => 'string', 'method' => 'string', 'password' => 'string', - 'passwordIdentifier' => 'string' + 'passwordIdentifier' => 'string', + 'transientPayload' => 'object' ]; /** @@ -80,7 +81,8 @@ class UpdateLoginFlowWithPasswordMethod implements ModelInterface, ArrayAccess, 'identifier' => null, 'method' => null, 'password' => null, - 'passwordIdentifier' => null + 'passwordIdentifier' => null, + 'transientPayload' => null ]; /** @@ -114,7 +116,8 @@ public static function openAPIFormats() 'identifier' => 'identifier', 'method' => 'method', 'password' => 'password', - 'passwordIdentifier' => 'password_identifier' + 'passwordIdentifier' => 'password_identifier', + 'transientPayload' => 'transient_payload' ]; /** @@ -127,7 +130,8 @@ public static function openAPIFormats() 'identifier' => 'setIdentifier', 'method' => 'setMethod', 'password' => 'setPassword', - 'passwordIdentifier' => 'setPasswordIdentifier' + 'passwordIdentifier' => 'setPasswordIdentifier', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -140,7 +144,8 @@ public static function openAPIFormats() 'identifier' => 'getIdentifier', 'method' => 'getMethod', 'password' => 'getPassword', - 'passwordIdentifier' => 'getPasswordIdentifier' + 'passwordIdentifier' => 'getPasswordIdentifier', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -205,6 +210,7 @@ public function __construct(array $data = null) $this->container['method'] = $data['method'] ?? null; $this->container['password'] = $data['password'] ?? null; $this->container['passwordIdentifier'] = $data['passwordIdentifier'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -359,6 +365,30 @@ public function setPasswordIdentifier($passwordIdentifier) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateLoginFlowWithTotpMethod.php b/clients/client/php/lib/Model/UpdateLoginFlowWithTotpMethod.php index 183be3e01ba..4a7f893d373 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowWithTotpMethod.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowWithTotpMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,8 @@ class UpdateLoginFlowWithTotpMethod implements ModelInterface, ArrayAccess, \Jso protected static $openAPITypes = [ 'csrfToken' => 'string', 'method' => 'string', - 'totpCode' => 'string' + 'totpCode' => 'string', + 'transientPayload' => 'object' ]; /** @@ -76,7 +77,8 @@ class UpdateLoginFlowWithTotpMethod implements ModelInterface, ArrayAccess, \Jso protected static $openAPIFormats = [ 'csrfToken' => null, 'method' => null, - 'totpCode' => null + 'totpCode' => null, + 'transientPayload' => null ]; /** @@ -108,7 +110,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'csrfToken' => 'csrf_token', 'method' => 'method', - 'totpCode' => 'totp_code' + 'totpCode' => 'totp_code', + 'transientPayload' => 'transient_payload' ]; /** @@ -119,7 +122,8 @@ public static function openAPIFormats() protected static $setters = [ 'csrfToken' => 'setCsrfToken', 'method' => 'setMethod', - 'totpCode' => 'setTotpCode' + 'totpCode' => 'setTotpCode', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -130,7 +134,8 @@ public static function openAPIFormats() protected static $getters = [ 'csrfToken' => 'getCsrfToken', 'method' => 'getMethod', - 'totpCode' => 'getTotpCode' + 'totpCode' => 'getTotpCode', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -193,6 +198,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['method'] = $data['method'] ?? null; $this->container['totpCode'] = $data['totpCode'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -296,6 +302,30 @@ public function setTotpCode($totpCode) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateLoginFlowWithWebAuthnMethod.php b/clients/client/php/lib/Model/UpdateLoginFlowWithWebAuthnMethod.php index 6eec364329a..96d443dc81c 100644 --- a/clients/client/php/lib/Model/UpdateLoginFlowWithWebAuthnMethod.php +++ b/clients/client/php/lib/Model/UpdateLoginFlowWithWebAuthnMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,6 +64,7 @@ class UpdateLoginFlowWithWebAuthnMethod implements ModelInterface, ArrayAccess, 'csrfToken' => 'string', 'identifier' => 'string', 'method' => 'string', + 'transientPayload' => 'object', 'webauthnLogin' => 'string' ]; @@ -78,6 +79,7 @@ class UpdateLoginFlowWithWebAuthnMethod implements ModelInterface, ArrayAccess, 'csrfToken' => null, 'identifier' => null, 'method' => null, + 'transientPayload' => null, 'webauthnLogin' => null ]; @@ -111,6 +113,7 @@ public static function openAPIFormats() 'csrfToken' => 'csrf_token', 'identifier' => 'identifier', 'method' => 'method', + 'transientPayload' => 'transient_payload', 'webauthnLogin' => 'webauthn_login' ]; @@ -123,6 +126,7 @@ public static function openAPIFormats() 'csrfToken' => 'setCsrfToken', 'identifier' => 'setIdentifier', 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload', 'webauthnLogin' => 'setWebauthnLogin' ]; @@ -135,6 +139,7 @@ public static function openAPIFormats() 'csrfToken' => 'getCsrfToken', 'identifier' => 'getIdentifier', 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload', 'webauthnLogin' => 'getWebauthnLogin' ]; @@ -198,6 +203,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['identifier'] = $data['identifier'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['webauthnLogin'] = $data['webauthnLogin'] ?? null; } @@ -303,6 +309,30 @@ public function setMethod($method) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets webauthnLogin * diff --git a/clients/client/php/lib/Model/UpdateRecoveryFlowBody.php b/clients/client/php/lib/Model/UpdateRecoveryFlowBody.php index 86580cbb7a3..9aaa5ccd5e7 100644 --- a/clients/client/php/lib/Model/UpdateRecoveryFlowBody.php +++ b/clients/client/php/lib/Model/UpdateRecoveryFlowBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,6 +64,7 @@ class UpdateRecoveryFlowBody implements ModelInterface, ArrayAccess, \JsonSerial 'csrfToken' => 'string', 'email' => 'string', 'method' => 'string', + 'transientPayload' => 'object', 'code' => 'string' ]; @@ -78,6 +79,7 @@ class UpdateRecoveryFlowBody implements ModelInterface, ArrayAccess, \JsonSerial 'csrfToken' => null, 'email' => null, 'method' => null, + 'transientPayload' => null, 'code' => null ]; @@ -111,6 +113,7 @@ public static function openAPIFormats() 'csrfToken' => 'csrf_token', 'email' => 'email', 'method' => 'method', + 'transientPayload' => 'transient_payload', 'code' => 'code' ]; @@ -123,6 +126,7 @@ public static function openAPIFormats() 'csrfToken' => 'setCsrfToken', 'email' => 'setEmail', 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload', 'code' => 'setCode' ]; @@ -135,6 +139,7 @@ public static function openAPIFormats() 'csrfToken' => 'getCsrfToken', 'email' => 'getEmail', 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload', 'code' => 'getCode' ]; @@ -213,6 +218,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['code'] = $data['code'] ?? null; // Initialize discriminator property with the model name. @@ -340,6 +346,30 @@ public function setMethod($method) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets code * diff --git a/clients/client/php/lib/Model/UpdateRecoveryFlowWithCodeMethod.php b/clients/client/php/lib/Model/UpdateRecoveryFlowWithCodeMethod.php index 6a4be7624fc..2d38c588b70 100644 --- a/clients/client/php/lib/Model/UpdateRecoveryFlowWithCodeMethod.php +++ b/clients/client/php/lib/Model/UpdateRecoveryFlowWithCodeMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,7 +64,8 @@ class UpdateRecoveryFlowWithCodeMethod implements ModelInterface, ArrayAccess, \ 'code' => 'string', 'csrfToken' => 'string', 'email' => 'string', - 'method' => 'string' + 'method' => 'string', + 'transientPayload' => 'object' ]; /** @@ -78,7 +79,8 @@ class UpdateRecoveryFlowWithCodeMethod implements ModelInterface, ArrayAccess, \ 'code' => null, 'csrfToken' => null, 'email' => null, - 'method' => null + 'method' => null, + 'transientPayload' => null ]; /** @@ -111,7 +113,8 @@ public static function openAPIFormats() 'code' => 'code', 'csrfToken' => 'csrf_token', 'email' => 'email', - 'method' => 'method' + 'method' => 'method', + 'transientPayload' => 'transient_payload' ]; /** @@ -123,7 +126,8 @@ public static function openAPIFormats() 'code' => 'setCode', 'csrfToken' => 'setCsrfToken', 'email' => 'setEmail', - 'method' => 'setMethod' + 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -135,7 +139,8 @@ public static function openAPIFormats() 'code' => 'getCode', 'csrfToken' => 'getCsrfToken', 'email' => 'getEmail', - 'method' => 'getMethod' + 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -214,6 +219,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -357,6 +363,30 @@ public function setMethod($method) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateRecoveryFlowWithLinkMethod.php b/clients/client/php/lib/Model/UpdateRecoveryFlowWithLinkMethod.php index 5ecfd43144d..91959995e98 100644 --- a/clients/client/php/lib/Model/UpdateRecoveryFlowWithLinkMethod.php +++ b/clients/client/php/lib/Model/UpdateRecoveryFlowWithLinkMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,8 @@ class UpdateRecoveryFlowWithLinkMethod implements ModelInterface, ArrayAccess, \ protected static $openAPITypes = [ 'csrfToken' => 'string', 'email' => 'string', - 'method' => 'string' + 'method' => 'string', + 'transientPayload' => 'object' ]; /** @@ -76,7 +77,8 @@ class UpdateRecoveryFlowWithLinkMethod implements ModelInterface, ArrayAccess, \ protected static $openAPIFormats = [ 'csrfToken' => null, 'email' => null, - 'method' => null + 'method' => null, + 'transientPayload' => null ]; /** @@ -108,7 +110,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'csrfToken' => 'csrf_token', 'email' => 'email', - 'method' => 'method' + 'method' => 'method', + 'transientPayload' => 'transient_payload' ]; /** @@ -119,7 +122,8 @@ public static function openAPIFormats() protected static $setters = [ 'csrfToken' => 'setCsrfToken', 'email' => 'setEmail', - 'method' => 'setMethod' + 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -130,7 +134,8 @@ public static function openAPIFormats() protected static $getters = [ 'csrfToken' => 'getCsrfToken', 'email' => 'getEmail', - 'method' => 'getMethod' + 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -208,6 +213,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -330,6 +336,30 @@ public function setMethod($method) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateRegistrationFlowBody.php b/clients/client/php/lib/Model/UpdateRegistrationFlowBody.php index 20b9b0b3fe4..b706d281410 100644 --- a/clients/client/php/lib/Model/UpdateRegistrationFlowBody.php +++ b/clients/client/php/lib/Model/UpdateRegistrationFlowBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateRegistrationFlowWithCodeMethod.php b/clients/client/php/lib/Model/UpdateRegistrationFlowWithCodeMethod.php index 13fb2ad0ad8..66adaa874d5 100644 --- a/clients/client/php/lib/Model/UpdateRegistrationFlowWithCodeMethod.php +++ b/clients/client/php/lib/Model/UpdateRegistrationFlowWithCodeMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateRegistrationFlowWithOidcMethod.php b/clients/client/php/lib/Model/UpdateRegistrationFlowWithOidcMethod.php index 878b108afe3..e1ec0326860 100644 --- a/clients/client/php/lib/Model/UpdateRegistrationFlowWithOidcMethod.php +++ b/clients/client/php/lib/Model/UpdateRegistrationFlowWithOidcMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateRegistrationFlowWithPasswordMethod.php b/clients/client/php/lib/Model/UpdateRegistrationFlowWithPasswordMethod.php index eb2e69c6a7b..846d71771b9 100644 --- a/clients/client/php/lib/Model/UpdateRegistrationFlowWithPasswordMethod.php +++ b/clients/client/php/lib/Model/UpdateRegistrationFlowWithPasswordMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateRegistrationFlowWithWebAuthnMethod.php b/clients/client/php/lib/Model/UpdateRegistrationFlowWithWebAuthnMethod.php index 00f4083c76e..24d63a8ae13 100644 --- a/clients/client/php/lib/Model/UpdateRegistrationFlowWithWebAuthnMethod.php +++ b/clients/client/php/lib/Model/UpdateRegistrationFlowWithWebAuthnMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowBody.php b/clients/client/php/lib/Model/UpdateSettingsFlowBody.php index b076eec0c5f..2b7421238cd 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowBody.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,6 +64,7 @@ class UpdateSettingsFlowBody implements ModelInterface, ArrayAccess, \JsonSerial 'csrfToken' => 'string', 'method' => 'string', 'password' => 'string', + 'transientPayload' => 'object', 'traits' => 'object', 'flow' => 'string', 'link' => 'string', @@ -91,6 +92,7 @@ class UpdateSettingsFlowBody implements ModelInterface, ArrayAccess, \JsonSerial 'csrfToken' => null, 'method' => null, 'password' => null, + 'transientPayload' => null, 'traits' => null, 'flow' => null, 'link' => null, @@ -137,6 +139,7 @@ public static function openAPIFormats() 'csrfToken' => 'csrf_token', 'method' => 'method', 'password' => 'password', + 'transientPayload' => 'transient_payload', 'traits' => 'traits', 'flow' => 'flow', 'link' => 'link', @@ -162,6 +165,7 @@ public static function openAPIFormats() 'csrfToken' => 'setCsrfToken', 'method' => 'setMethod', 'password' => 'setPassword', + 'transientPayload' => 'setTransientPayload', 'traits' => 'setTraits', 'flow' => 'setFlow', 'link' => 'setLink', @@ -187,6 +191,7 @@ public static function openAPIFormats() 'csrfToken' => 'getCsrfToken', 'method' => 'getMethod', 'password' => 'getPassword', + 'transientPayload' => 'getTransientPayload', 'traits' => 'getTraits', 'flow' => 'getFlow', 'link' => 'getLink', @@ -263,6 +268,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['method'] = $data['method'] ?? null; $this->container['password'] = $data['password'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['traits'] = $data['traits'] ?? null; $this->container['flow'] = $data['flow'] ?? null; $this->container['link'] = $data['link'] ?? null; @@ -387,6 +393,30 @@ public function setPassword($password) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets traits * diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowWithLookupMethod.php b/clients/client/php/lib/Model/UpdateSettingsFlowWithLookupMethod.php index 812e2120051..f07aef55df2 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowWithLookupMethod.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowWithLookupMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -66,7 +66,8 @@ class UpdateSettingsFlowWithLookupMethod implements ModelInterface, ArrayAccess, 'lookupSecretDisable' => 'bool', 'lookupSecretRegenerate' => 'bool', 'lookupSecretReveal' => 'bool', - 'method' => 'string' + 'method' => 'string', + 'transientPayload' => 'object' ]; /** @@ -82,7 +83,8 @@ class UpdateSettingsFlowWithLookupMethod implements ModelInterface, ArrayAccess, 'lookupSecretDisable' => null, 'lookupSecretRegenerate' => null, 'lookupSecretReveal' => null, - 'method' => null + 'method' => null, + 'transientPayload' => null ]; /** @@ -117,7 +119,8 @@ public static function openAPIFormats() 'lookupSecretDisable' => 'lookup_secret_disable', 'lookupSecretRegenerate' => 'lookup_secret_regenerate', 'lookupSecretReveal' => 'lookup_secret_reveal', - 'method' => 'method' + 'method' => 'method', + 'transientPayload' => 'transient_payload' ]; /** @@ -131,7 +134,8 @@ public static function openAPIFormats() 'lookupSecretDisable' => 'setLookupSecretDisable', 'lookupSecretRegenerate' => 'setLookupSecretRegenerate', 'lookupSecretReveal' => 'setLookupSecretReveal', - 'method' => 'setMethod' + 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -145,7 +149,8 @@ public static function openAPIFormats() 'lookupSecretDisable' => 'getLookupSecretDisable', 'lookupSecretRegenerate' => 'getLookupSecretRegenerate', 'lookupSecretReveal' => 'getLookupSecretReveal', - 'method' => 'getMethod' + 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -211,6 +216,7 @@ public function __construct(array $data = null) $this->container['lookupSecretRegenerate'] = $data['lookupSecretRegenerate'] ?? null; $this->container['lookupSecretReveal'] = $data['lookupSecretReveal'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -383,6 +389,30 @@ public function setMethod($method) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowWithOidcMethod.php b/clients/client/php/lib/Model/UpdateSettingsFlowWithOidcMethod.php index 831438e67d9..e66bb2b3477 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowWithOidcMethod.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowWithOidcMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -65,6 +65,7 @@ class UpdateSettingsFlowWithOidcMethod implements ModelInterface, ArrayAccess, \ 'link' => 'string', 'method' => 'string', 'traits' => 'object', + 'transientPayload' => 'object', 'unlink' => 'string', 'upstreamParameters' => 'object' ]; @@ -81,6 +82,7 @@ class UpdateSettingsFlowWithOidcMethod implements ModelInterface, ArrayAccess, \ 'link' => null, 'method' => null, 'traits' => null, + 'transientPayload' => null, 'unlink' => null, 'upstreamParameters' => null ]; @@ -116,6 +118,7 @@ public static function openAPIFormats() 'link' => 'link', 'method' => 'method', 'traits' => 'traits', + 'transientPayload' => 'transient_payload', 'unlink' => 'unlink', 'upstreamParameters' => 'upstream_parameters' ]; @@ -130,6 +133,7 @@ public static function openAPIFormats() 'link' => 'setLink', 'method' => 'setMethod', 'traits' => 'setTraits', + 'transientPayload' => 'setTransientPayload', 'unlink' => 'setUnlink', 'upstreamParameters' => 'setUpstreamParameters' ]; @@ -144,6 +148,7 @@ public static function openAPIFormats() 'link' => 'getLink', 'method' => 'getMethod', 'traits' => 'getTraits', + 'transientPayload' => 'getTransientPayload', 'unlink' => 'getUnlink', 'upstreamParameters' => 'getUpstreamParameters' ]; @@ -209,6 +214,7 @@ public function __construct(array $data = null) $this->container['link'] = $data['link'] ?? null; $this->container['method'] = $data['method'] ?? null; $this->container['traits'] = $data['traits'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['unlink'] = $data['unlink'] ?? null; $this->container['upstreamParameters'] = $data['upstreamParameters'] ?? null; } @@ -336,6 +342,30 @@ public function setTraits($traits) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets unlink * diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowWithPasswordMethod.php b/clients/client/php/lib/Model/UpdateSettingsFlowWithPasswordMethod.php index c706c7d4dd5..8559f8bc6be 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowWithPasswordMethod.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowWithPasswordMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,8 @@ class UpdateSettingsFlowWithPasswordMethod implements ModelInterface, ArrayAcces protected static $openAPITypes = [ 'csrfToken' => 'string', 'method' => 'string', - 'password' => 'string' + 'password' => 'string', + 'transientPayload' => 'object' ]; /** @@ -76,7 +77,8 @@ class UpdateSettingsFlowWithPasswordMethod implements ModelInterface, ArrayAcces protected static $openAPIFormats = [ 'csrfToken' => null, 'method' => null, - 'password' => null + 'password' => null, + 'transientPayload' => null ]; /** @@ -108,7 +110,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'csrfToken' => 'csrf_token', 'method' => 'method', - 'password' => 'password' + 'password' => 'password', + 'transientPayload' => 'transient_payload' ]; /** @@ -119,7 +122,8 @@ public static function openAPIFormats() protected static $setters = [ 'csrfToken' => 'setCsrfToken', 'method' => 'setMethod', - 'password' => 'setPassword' + 'password' => 'setPassword', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -130,7 +134,8 @@ public static function openAPIFormats() protected static $getters = [ 'csrfToken' => 'getCsrfToken', 'method' => 'getMethod', - 'password' => 'getPassword' + 'password' => 'getPassword', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -193,6 +198,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['method'] = $data['method'] ?? null; $this->container['password'] = $data['password'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -296,6 +302,30 @@ public function setPassword($password) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowWithProfileMethod.php b/clients/client/php/lib/Model/UpdateSettingsFlowWithProfileMethod.php index a52ffbad08f..0307b20e6b1 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowWithProfileMethod.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowWithProfileMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,8 @@ class UpdateSettingsFlowWithProfileMethod implements ModelInterface, ArrayAccess protected static $openAPITypes = [ 'csrfToken' => 'string', 'method' => 'string', - 'traits' => 'object' + 'traits' => 'object', + 'transientPayload' => 'object' ]; /** @@ -76,7 +77,8 @@ class UpdateSettingsFlowWithProfileMethod implements ModelInterface, ArrayAccess protected static $openAPIFormats = [ 'csrfToken' => null, 'method' => null, - 'traits' => null + 'traits' => null, + 'transientPayload' => null ]; /** @@ -108,7 +110,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'csrfToken' => 'csrf_token', 'method' => 'method', - 'traits' => 'traits' + 'traits' => 'traits', + 'transientPayload' => 'transient_payload' ]; /** @@ -119,7 +122,8 @@ public static function openAPIFormats() protected static $setters = [ 'csrfToken' => 'setCsrfToken', 'method' => 'setMethod', - 'traits' => 'setTraits' + 'traits' => 'setTraits', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -130,7 +134,8 @@ public static function openAPIFormats() protected static $getters = [ 'csrfToken' => 'getCsrfToken', 'method' => 'getMethod', - 'traits' => 'getTraits' + 'traits' => 'getTraits', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -193,6 +198,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['method'] = $data['method'] ?? null; $this->container['traits'] = $data['traits'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -296,6 +302,30 @@ public function setTraits($traits) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowWithTotpMethod.php b/clients/client/php/lib/Model/UpdateSettingsFlowWithTotpMethod.php index 391a9616429..22ffea56d8e 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowWithTotpMethod.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowWithTotpMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,7 +64,8 @@ class UpdateSettingsFlowWithTotpMethod implements ModelInterface, ArrayAccess, \ 'csrfToken' => 'string', 'method' => 'string', 'totpCode' => 'string', - 'totpUnlink' => 'bool' + 'totpUnlink' => 'bool', + 'transientPayload' => 'object' ]; /** @@ -78,7 +79,8 @@ class UpdateSettingsFlowWithTotpMethod implements ModelInterface, ArrayAccess, \ 'csrfToken' => null, 'method' => null, 'totpCode' => null, - 'totpUnlink' => null + 'totpUnlink' => null, + 'transientPayload' => null ]; /** @@ -111,7 +113,8 @@ public static function openAPIFormats() 'csrfToken' => 'csrf_token', 'method' => 'method', 'totpCode' => 'totp_code', - 'totpUnlink' => 'totp_unlink' + 'totpUnlink' => 'totp_unlink', + 'transientPayload' => 'transient_payload' ]; /** @@ -123,7 +126,8 @@ public static function openAPIFormats() 'csrfToken' => 'setCsrfToken', 'method' => 'setMethod', 'totpCode' => 'setTotpCode', - 'totpUnlink' => 'setTotpUnlink' + 'totpUnlink' => 'setTotpUnlink', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -135,7 +139,8 @@ public static function openAPIFormats() 'csrfToken' => 'getCsrfToken', 'method' => 'getMethod', 'totpCode' => 'getTotpCode', - 'totpUnlink' => 'getTotpUnlink' + 'totpUnlink' => 'getTotpUnlink', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -199,6 +204,7 @@ public function __construct(array $data = null) $this->container['method'] = $data['method'] ?? null; $this->container['totpCode'] = $data['totpCode'] ?? null; $this->container['totpUnlink'] = $data['totpUnlink'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -323,6 +329,30 @@ public function setTotpUnlink($totpUnlink) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateSettingsFlowWithWebAuthnMethod.php b/clients/client/php/lib/Model/UpdateSettingsFlowWithWebAuthnMethod.php index 3e739d6bfb1..ca9f8feda93 100644 --- a/clients/client/php/lib/Model/UpdateSettingsFlowWithWebAuthnMethod.php +++ b/clients/client/php/lib/Model/UpdateSettingsFlowWithWebAuthnMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,6 +63,7 @@ class UpdateSettingsFlowWithWebAuthnMethod implements ModelInterface, ArrayAcces protected static $openAPITypes = [ 'csrfToken' => 'string', 'method' => 'string', + 'transientPayload' => 'object', 'webauthnRegister' => 'string', 'webauthnRegisterDisplayname' => 'string', 'webauthnRemove' => 'string' @@ -78,6 +79,7 @@ class UpdateSettingsFlowWithWebAuthnMethod implements ModelInterface, ArrayAcces protected static $openAPIFormats = [ 'csrfToken' => null, 'method' => null, + 'transientPayload' => null, 'webauthnRegister' => null, 'webauthnRegisterDisplayname' => null, 'webauthnRemove' => null @@ -112,6 +114,7 @@ public static function openAPIFormats() protected static $attributeMap = [ 'csrfToken' => 'csrf_token', 'method' => 'method', + 'transientPayload' => 'transient_payload', 'webauthnRegister' => 'webauthn_register', 'webauthnRegisterDisplayname' => 'webauthn_register_displayname', 'webauthnRemove' => 'webauthn_remove' @@ -125,6 +128,7 @@ public static function openAPIFormats() protected static $setters = [ 'csrfToken' => 'setCsrfToken', 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload', 'webauthnRegister' => 'setWebauthnRegister', 'webauthnRegisterDisplayname' => 'setWebauthnRegisterDisplayname', 'webauthnRemove' => 'setWebauthnRemove' @@ -138,6 +142,7 @@ public static function openAPIFormats() protected static $getters = [ 'csrfToken' => 'getCsrfToken', 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload', 'webauthnRegister' => 'getWebauthnRegister', 'webauthnRegisterDisplayname' => 'getWebauthnRegisterDisplayname', 'webauthnRemove' => 'getWebauthnRemove' @@ -202,6 +207,7 @@ public function __construct(array $data = null) { $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['webauthnRegister'] = $data['webauthnRegister'] ?? null; $this->container['webauthnRegisterDisplayname'] = $data['webauthnRegisterDisplayname'] ?? null; $this->container['webauthnRemove'] = $data['webauthnRemove'] ?? null; @@ -282,6 +288,30 @@ public function setMethod($method) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets webauthnRegister * diff --git a/clients/client/php/lib/Model/UpdateSubscriptionBody.php b/clients/client/php/lib/Model/UpdateSubscriptionBody.php index 893ea7b2c33..029e0fc9d6a 100644 --- a/clients/client/php/lib/Model/UpdateSubscriptionBody.php +++ b/clients/client/php/lib/Model/UpdateSubscriptionBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -36,7 +36,6 @@ * UpdateSubscriptionBody Class Doc Comment * * @category Class - * @description Update Subscription Request Body * @package Ory\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech diff --git a/clients/client/php/lib/Model/UpdateVerificationFlowBody.php b/clients/client/php/lib/Model/UpdateVerificationFlowBody.php index a5702685a3a..16896927cd2 100644 --- a/clients/client/php/lib/Model/UpdateVerificationFlowBody.php +++ b/clients/client/php/lib/Model/UpdateVerificationFlowBody.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -64,6 +64,7 @@ class UpdateVerificationFlowBody implements ModelInterface, ArrayAccess, \JsonSe 'csrfToken' => 'string', 'email' => 'string', 'method' => 'string', + 'transientPayload' => 'object', 'code' => 'string' ]; @@ -78,6 +79,7 @@ class UpdateVerificationFlowBody implements ModelInterface, ArrayAccess, \JsonSe 'csrfToken' => null, 'email' => null, 'method' => null, + 'transientPayload' => null, 'code' => null ]; @@ -111,6 +113,7 @@ public static function openAPIFormats() 'csrfToken' => 'csrf_token', 'email' => 'email', 'method' => 'method', + 'transientPayload' => 'transient_payload', 'code' => 'code' ]; @@ -123,6 +126,7 @@ public static function openAPIFormats() 'csrfToken' => 'setCsrfToken', 'email' => 'setEmail', 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload', 'code' => 'setCode' ]; @@ -135,6 +139,7 @@ public static function openAPIFormats() 'csrfToken' => 'getCsrfToken', 'email' => 'getEmail', 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload', 'code' => 'getCode' ]; @@ -213,6 +218,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['code'] = $data['code'] ?? null; // Initialize discriminator property with the model name. @@ -340,6 +346,30 @@ public function setMethod($method) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets code * diff --git a/clients/client/php/lib/Model/UpdateVerificationFlowWithCodeMethod.php b/clients/client/php/lib/Model/UpdateVerificationFlowWithCodeMethod.php index dccf7a9366a..a76b349eb07 100644 --- a/clients/client/php/lib/Model/UpdateVerificationFlowWithCodeMethod.php +++ b/clients/client/php/lib/Model/UpdateVerificationFlowWithCodeMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,8 @@ class UpdateVerificationFlowWithCodeMethod implements ModelInterface, ArrayAcces 'code' => 'string', 'csrfToken' => 'string', 'email' => 'string', - 'method' => 'string' + 'method' => 'string', + 'transientPayload' => 'object' ]; /** @@ -77,7 +78,8 @@ class UpdateVerificationFlowWithCodeMethod implements ModelInterface, ArrayAcces 'code' => null, 'csrfToken' => null, 'email' => null, - 'method' => null + 'method' => null, + 'transientPayload' => null ]; /** @@ -110,7 +112,8 @@ public static function openAPIFormats() 'code' => 'code', 'csrfToken' => 'csrf_token', 'email' => 'email', - 'method' => 'method' + 'method' => 'method', + 'transientPayload' => 'transient_payload' ]; /** @@ -122,7 +125,8 @@ public static function openAPIFormats() 'code' => 'setCode', 'csrfToken' => 'setCsrfToken', 'email' => 'setEmail', - 'method' => 'setMethod' + 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -134,7 +138,8 @@ public static function openAPIFormats() 'code' => 'getCode', 'csrfToken' => 'getCsrfToken', 'email' => 'getEmail', - 'method' => 'getMethod' + 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -213,6 +218,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -356,6 +362,30 @@ public function setMethod($method) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateVerificationFlowWithLinkMethod.php b/clients/client/php/lib/Model/UpdateVerificationFlowWithLinkMethod.php index bbf7556a533..771773ac365 100644 --- a/clients/client/php/lib/Model/UpdateVerificationFlowWithLinkMethod.php +++ b/clients/client/php/lib/Model/UpdateVerificationFlowWithLinkMethod.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,8 @@ class UpdateVerificationFlowWithLinkMethod implements ModelInterface, ArrayAcces protected static $openAPITypes = [ 'csrfToken' => 'string', 'email' => 'string', - 'method' => 'string' + 'method' => 'string', + 'transientPayload' => 'object' ]; /** @@ -76,7 +77,8 @@ class UpdateVerificationFlowWithLinkMethod implements ModelInterface, ArrayAcces protected static $openAPIFormats = [ 'csrfToken' => null, 'email' => null, - 'method' => null + 'method' => null, + 'transientPayload' => null ]; /** @@ -108,7 +110,8 @@ public static function openAPIFormats() protected static $attributeMap = [ 'csrfToken' => 'csrf_token', 'email' => 'email', - 'method' => 'method' + 'method' => 'method', + 'transientPayload' => 'transient_payload' ]; /** @@ -119,7 +122,8 @@ public static function openAPIFormats() protected static $setters = [ 'csrfToken' => 'setCsrfToken', 'email' => 'setEmail', - 'method' => 'setMethod' + 'method' => 'setMethod', + 'transientPayload' => 'setTransientPayload' ]; /** @@ -130,7 +134,8 @@ public static function openAPIFormats() protected static $getters = [ 'csrfToken' => 'getCsrfToken', 'email' => 'getEmail', - 'method' => 'getMethod' + 'method' => 'getMethod', + 'transientPayload' => 'getTransientPayload' ]; /** @@ -208,6 +213,7 @@ public function __construct(array $data = null) $this->container['csrfToken'] = $data['csrfToken'] ?? null; $this->container['email'] = $data['email'] ?? null; $this->container['method'] = $data['method'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; } /** @@ -330,6 +336,30 @@ public function setMethod($method) return $this; } + + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload Transient data to pass along to any webhooks + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/clients/client/php/lib/Model/UpdateWorkspacePayload.php b/clients/client/php/lib/Model/UpdateWorkspacePayload.php new file mode 100644 index 00000000000..3e773956763 --- /dev/null +++ b/clients/client/php/lib/Model/UpdateWorkspacePayload.php @@ -0,0 +1,324 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class UpdateWorkspacePayload implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'updateWorkspacePayload'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'name' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'name' => null + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'name' => 'name' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'name' => 'setName' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'name' => 'getName' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['name'] = $data['name'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name The name of the workspace. + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/Model/Usage.php b/clients/client/php/lib/Model/Usage.php index 0e1f05af9c2..8a08fbae23e 100644 --- a/clients/client/php/lib/Model/Usage.php +++ b/clients/client/php/lib/Model/Usage.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/VerifiableCredentialPrimingResponse.php b/clients/client/php/lib/Model/VerifiableCredentialPrimingResponse.php index 4dc7ca59b7d..fc377e0c5fd 100644 --- a/clients/client/php/lib/Model/VerifiableCredentialPrimingResponse.php +++ b/clients/client/php/lib/Model/VerifiableCredentialPrimingResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/VerifiableCredentialProof.php b/clients/client/php/lib/Model/VerifiableCredentialProof.php index 6949e668aea..dd4bf6acb61 100644 --- a/clients/client/php/lib/Model/VerifiableCredentialProof.php +++ b/clients/client/php/lib/Model/VerifiableCredentialProof.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/VerifiableCredentialResponse.php b/clients/client/php/lib/Model/VerifiableCredentialResponse.php index 07909c9bcdb..6327efb325a 100644 --- a/clients/client/php/lib/Model/VerifiableCredentialResponse.php +++ b/clients/client/php/lib/Model/VerifiableCredentialResponse.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/VerifiableIdentityAddress.php b/clients/client/php/lib/Model/VerifiableIdentityAddress.php index 4d8983c20d1..1f848dbc539 100644 --- a/clients/client/php/lib/Model/VerifiableIdentityAddress.php +++ b/clients/client/php/lib/Model/VerifiableIdentityAddress.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/VerificationFlow.php b/clients/client/php/lib/Model/VerificationFlow.php index d2ca522271c..0cef3895301 100644 --- a/clients/client/php/lib/Model/VerificationFlow.php +++ b/clients/client/php/lib/Model/VerificationFlow.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -68,6 +68,7 @@ class VerificationFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'requestUrl' => 'string', 'returnTo' => 'string', 'state' => 'mixed', + 'transientPayload' => 'object', 'type' => 'string', 'ui' => '\Ory\Client\Model\UiContainer' ]; @@ -87,6 +88,7 @@ class VerificationFlow implements ModelInterface, ArrayAccess, \JsonSerializable 'requestUrl' => null, 'returnTo' => null, 'state' => null, + 'transientPayload' => null, 'type' => null, 'ui' => null ]; @@ -125,6 +127,7 @@ public static function openAPIFormats() 'requestUrl' => 'request_url', 'returnTo' => 'return_to', 'state' => 'state', + 'transientPayload' => 'transient_payload', 'type' => 'type', 'ui' => 'ui' ]; @@ -142,6 +145,7 @@ public static function openAPIFormats() 'requestUrl' => 'setRequestUrl', 'returnTo' => 'setReturnTo', 'state' => 'setState', + 'transientPayload' => 'setTransientPayload', 'type' => 'setType', 'ui' => 'setUi' ]; @@ -159,6 +163,7 @@ public static function openAPIFormats() 'requestUrl' => 'getRequestUrl', 'returnTo' => 'getReturnTo', 'state' => 'getState', + 'transientPayload' => 'getTransientPayload', 'type' => 'getType', 'ui' => 'getUi' ]; @@ -227,6 +232,7 @@ public function __construct(array $data = null) $this->container['requestUrl'] = $data['requestUrl'] ?? null; $this->container['returnTo'] = $data['returnTo'] ?? null; $this->container['state'] = $data['state'] ?? null; + $this->container['transientPayload'] = $data['transientPayload'] ?? null; $this->container['type'] = $data['type'] ?? null; $this->container['ui'] = $data['ui'] ?? null; } @@ -435,6 +441,30 @@ public function setState($state) return $this; } + /** + * Gets transientPayload + * + * @return object|null + */ + public function getTransientPayload() + { + return $this->container['transientPayload']; + } + + /** + * Sets transientPayload + * + * @param object|null $transientPayload TransientPayload is used to pass data from the verification flow to hooks and email templates + * + * @return self + */ + public function setTransientPayload($transientPayload) + { + $this->container['transientPayload'] = $transientPayload; + + return $this; + } + /** * Gets type * diff --git a/clients/client/php/lib/Model/VerificationFlowState.php b/clients/client/php/lib/Model/VerificationFlowState.php index d7100900887..0fa0feb3f23 100644 --- a/clients/client/php/lib/Model/VerificationFlowState.php +++ b/clients/client/php/lib/Model/VerificationFlowState.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Version.php b/clients/client/php/lib/Model/Version.php index aa9c2b44e12..2d95c75a1d3 100644 --- a/clients/client/php/lib/Model/Version.php +++ b/clients/client/php/lib/Model/Version.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Warning.php b/clients/client/php/lib/Model/Warning.php index 4fa7774d6f6..8acea6dcf01 100644 --- a/clients/client/php/lib/Model/Warning.php +++ b/clients/client/php/lib/Model/Warning.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/Workspace.php b/clients/client/php/lib/Model/Workspace.php index 645a31f0abe..01204c8fc3b 100644 --- a/clients/client/php/lib/Model/Workspace.php +++ b/clients/client/php/lib/Model/Workspace.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/lib/Model/WorkspaceMeta.php b/clients/client/php/lib/Model/WorkspaceMeta.php new file mode 100644 index 00000000000..ccdff59479c --- /dev/null +++ b/clients/client/php/lib/Model/WorkspaceMeta.php @@ -0,0 +1,483 @@ + + * @template TKey int|null + * @template TValue mixed|null + */ +class WorkspaceMeta implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'workspaceMeta'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'createdAt' => '\DateTime', + 'id' => 'string', + 'name' => 'string', + 'subscriptionId' => 'string', + 'subscriptionPlan' => 'string', + 'updatedAt' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'createdAt' => 'date-time', + 'id' => 'uuid', + 'name' => null, + 'subscriptionId' => 'uuid4', + 'subscriptionPlan' => null, + 'updatedAt' => 'date-time' + ]; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'createdAt' => 'created_at', + 'id' => 'id', + 'name' => 'name', + 'subscriptionId' => 'subscription_id', + 'subscriptionPlan' => 'subscription_plan', + 'updatedAt' => 'updated_at' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'createdAt' => 'setCreatedAt', + 'id' => 'setId', + 'name' => 'setName', + 'subscriptionId' => 'setSubscriptionId', + 'subscriptionPlan' => 'setSubscriptionPlan', + 'updatedAt' => 'setUpdatedAt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'createdAt' => 'getCreatedAt', + 'id' => 'getId', + 'name' => 'getName', + 'subscriptionId' => 'getSubscriptionId', + 'subscriptionPlan' => 'getSubscriptionPlan', + 'updatedAt' => 'getUpdatedAt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(array $data = null) + { + $this->container['createdAt'] = $data['createdAt'] ?? null; + $this->container['id'] = $data['id'] ?? null; + $this->container['name'] = $data['name'] ?? null; + $this->container['subscriptionId'] = $data['subscriptionId'] ?? null; + $this->container['subscriptionPlan'] = $data['subscriptionPlan'] ?? null; + $this->container['updatedAt'] = $data['updatedAt'] ?? null; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['createdAt'] === null) { + $invalidProperties[] = "'createdAt' can't be null"; + } + if ($this->container['id'] === null) { + $invalidProperties[] = "'id' can't be null"; + } + if ($this->container['name'] === null) { + $invalidProperties[] = "'name' can't be null"; + } + if ($this->container['updatedAt'] === null) { + $invalidProperties[] = "'updatedAt' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets createdAt + * + * @return \DateTime + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime $createdAt createdAt + * + * @return self + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + + return $this; + } + + /** + * Gets id + * + * @return string + */ + public function getId() + { + return $this->container['id']; + } + + /** + * Sets id + * + * @param string $id id + * + * @return self + */ + public function setId($id) + { + $this->container['id'] = $id; + + return $this; + } + + /** + * Gets name + * + * @return string + */ + public function getName() + { + return $this->container['name']; + } + + /** + * Sets name + * + * @param string $name name + * + * @return self + */ + public function setName($name) + { + $this->container['name'] = $name; + + return $this; + } + + /** + * Gets subscriptionId + * + * @return string|null + */ + public function getSubscriptionId() + { + return $this->container['subscriptionId']; + } + + /** + * Sets subscriptionId + * + * @param string|null $subscriptionId subscriptionId + * + * @return self + */ + public function setSubscriptionId($subscriptionId) + { + $this->container['subscriptionId'] = $subscriptionId; + + return $this; + } + + /** + * Gets subscriptionPlan + * + * @return string|null + */ + public function getSubscriptionPlan() + { + return $this->container['subscriptionPlan']; + } + + /** + * Sets subscriptionPlan + * + * @param string|null $subscriptionPlan subscriptionPlan + * + * @return self + */ + public function setSubscriptionPlan($subscriptionPlan) + { + $this->container['subscriptionPlan'] = $subscriptionPlan; + + return $this; + } + + /** + * Gets updatedAt + * + * @return \DateTime + */ + public function getUpdatedAt() + { + return $this->container['updatedAt']; + } + + /** + * Sets updatedAt + * + * @param \DateTime $updatedAt updatedAt + * + * @return self + */ + public function setUpdatedAt($updatedAt) + { + $this->container['updatedAt'] = $updatedAt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset) + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value) + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset) + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } + + /** + * Gets a header-safe presentation of the object + * + * @return string + */ + public function toHeaderValue() + { + return json_encode(ObjectSerializer::sanitizeForSerialization($this)); + } +} + + diff --git a/clients/client/php/lib/ObjectSerializer.php b/clients/client/php/lib/ObjectSerializer.php index 439b8ca28d3..59f799906b2 100644 --- a/clients/client/php/lib/ObjectSerializer.php +++ b/clients/client/php/lib/ObjectSerializer.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/CourierApiTest.php b/clients/client/php/test/Api/CourierApiTest.php index 21bce5eecb2..d20edb02082 100644 --- a/clients/client/php/test/Api/CourierApiTest.php +++ b/clients/client/php/test/Api/CourierApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/EventsApiTest.php b/clients/client/php/test/Api/EventsApiTest.php index 4e6ce2455a2..8950ce2929b 100644 --- a/clients/client/php/test/Api/EventsApiTest.php +++ b/clients/client/php/test/Api/EventsApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/FrontendApiTest.php b/clients/client/php/test/Api/FrontendApiTest.php index 7e8064ac297..2955e9e5938 100644 --- a/clients/client/php/test/Api/FrontendApiTest.php +++ b/clients/client/php/test/Api/FrontendApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/IdentityApiTest.php b/clients/client/php/test/Api/IdentityApiTest.php index 7ec814ff53b..acc61c3cf0b 100644 --- a/clients/client/php/test/Api/IdentityApiTest.php +++ b/clients/client/php/test/Api/IdentityApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/JwkApiTest.php b/clients/client/php/test/Api/JwkApiTest.php index 6aecf897d29..ef60955fdae 100644 --- a/clients/client/php/test/Api/JwkApiTest.php +++ b/clients/client/php/test/Api/JwkApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/MetadataApiTest.php b/clients/client/php/test/Api/MetadataApiTest.php index 17022f26919..2788d42d26d 100644 --- a/clients/client/php/test/Api/MetadataApiTest.php +++ b/clients/client/php/test/Api/MetadataApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/OAuth2ApiTest.php b/clients/client/php/test/Api/OAuth2ApiTest.php index 257d3848876..124fe274f22 100644 --- a/clients/client/php/test/Api/OAuth2ApiTest.php +++ b/clients/client/php/test/Api/OAuth2ApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/OidcApiTest.php b/clients/client/php/test/Api/OidcApiTest.php index 100e4a97500..fba3292779a 100644 --- a/clients/client/php/test/Api/OidcApiTest.php +++ b/clients/client/php/test/Api/OidcApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/PermissionApiTest.php b/clients/client/php/test/Api/PermissionApiTest.php index bfc95e286fb..04eb15c02c2 100644 --- a/clients/client/php/test/Api/PermissionApiTest.php +++ b/clients/client/php/test/Api/PermissionApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/ProjectApiTest.php b/clients/client/php/test/Api/ProjectApiTest.php index 775d5a6bde7..5f5a676fe7e 100644 --- a/clients/client/php/test/Api/ProjectApiTest.php +++ b/clients/client/php/test/Api/ProjectApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/RelationshipApiTest.php b/clients/client/php/test/Api/RelationshipApiTest.php index 2c7bbd9d1e7..8d3844a827b 100644 --- a/clients/client/php/test/Api/RelationshipApiTest.php +++ b/clients/client/php/test/Api/RelationshipApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Api/WellknownApiTest.php b/clients/client/php/test/Api/WellknownApiTest.php index 4bcd30be709..47e4ae7f3d4 100644 --- a/clients/client/php/test/Api/WellknownApiTest.php +++ b/clients/client/php/test/Api/WellknownApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php b/clients/client/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php index e1e2a8206b7..0a32cc91a50 100644 --- a/clients/client/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php +++ b/clients/client/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/AcceptOAuth2ConsentRequestTest.php b/clients/client/php/test/Model/AcceptOAuth2ConsentRequestTest.php index 96b63fde4ca..3b16a8cc5e6 100644 --- a/clients/client/php/test/Model/AcceptOAuth2ConsentRequestTest.php +++ b/clients/client/php/test/Model/AcceptOAuth2ConsentRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -80,6 +80,15 @@ public function testAcceptOAuth2ConsentRequest() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "context" + */ + public function testPropertyContext() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "grantAccessTokenAudience" */ diff --git a/clients/client/php/test/Model/AcceptOAuth2LoginRequestTest.php b/clients/client/php/test/Model/AcceptOAuth2LoginRequestTest.php index eae4c37a797..2d757f1a512 100644 --- a/clients/client/php/test/Model/AcceptOAuth2LoginRequestTest.php +++ b/clients/client/php/test/Model/AcceptOAuth2LoginRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ActiveProjectInConsoleTest.php b/clients/client/php/test/Model/ActiveProjectInConsoleTest.php index 17a11e367ae..cde1caa2fed 100644 --- a/clients/client/php/test/Model/ActiveProjectInConsoleTest.php +++ b/clients/client/php/test/Model/ActiveProjectInConsoleTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/AttributeFilterTest.php b/clients/client/php/test/Model/AttributeFilterTest.php index a8f025313ec..d6a06489295 100644 --- a/clients/client/php/test/Model/AttributeFilterTest.php +++ b/clients/client/php/test/Model/AttributeFilterTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/AttributeTest.php b/clients/client/php/test/Model/AttributeTest.php index 69088b8dc2a..13b4c17ec37 100644 --- a/clients/client/php/test/Model/AttributeTest.php +++ b/clients/client/php/test/Model/AttributeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/AttributesCountDatapointTest.php b/clients/client/php/test/Model/AttributesCountDatapointTest.php index 67bcb78ef60..2d0bbc64168 100644 --- a/clients/client/php/test/Model/AttributesCountDatapointTest.php +++ b/clients/client/php/test/Model/AttributesCountDatapointTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/AuthenticatorAssuranceLevelTest.php b/clients/client/php/test/Model/AuthenticatorAssuranceLevelTest.php index 84290dee669..7061736d7fe 100644 --- a/clients/client/php/test/Model/AuthenticatorAssuranceLevelTest.php +++ b/clients/client/php/test/Model/AuthenticatorAssuranceLevelTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/BatchPatchIdentitiesResponseTest.php b/clients/client/php/test/Model/BatchPatchIdentitiesResponseTest.php index 2f9bdf39241..9bdde2bba25 100644 --- a/clients/client/php/test/Model/BatchPatchIdentitiesResponseTest.php +++ b/clients/client/php/test/Model/BatchPatchIdentitiesResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CheckOplSyntaxResultTest.php b/clients/client/php/test/Model/CheckOplSyntaxResultTest.php index 579578f1ddd..7b8e9b1acd2 100644 --- a/clients/client/php/test/Model/CheckOplSyntaxResultTest.php +++ b/clients/client/php/test/Model/CheckOplSyntaxResultTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CheckPermissionResultTest.php b/clients/client/php/test/Model/CheckPermissionResultTest.php index 13c1da7de5d..70c3b27db3b 100644 --- a/clients/client/php/test/Model/CheckPermissionResultTest.php +++ b/clients/client/php/test/Model/CheckPermissionResultTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CloudAccountTest.php b/clients/client/php/test/Model/CloudAccountTest.php index 9f3627ea012..9e72e5ead85 100644 --- a/clients/client/php/test/Model/CloudAccountTest.php +++ b/clients/client/php/test/Model/CloudAccountTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ConsistencyRequestParametersTest.php b/clients/client/php/test/Model/ConsistencyRequestParametersTest.php index 28c5045925e..f481911efe7 100644 --- a/clients/client/php/test/Model/ConsistencyRequestParametersTest.php +++ b/clients/client/php/test/Model/ConsistencyRequestParametersTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithRecoveryUiFlowTest.php b/clients/client/php/test/Model/ContinueWithRecoveryUiFlowTest.php index 866ab7e2284..4e6cd3d4a60 100644 --- a/clients/client/php/test/Model/ContinueWithRecoveryUiFlowTest.php +++ b/clients/client/php/test/Model/ContinueWithRecoveryUiFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithRecoveryUiTest.php b/clients/client/php/test/Model/ContinueWithRecoveryUiTest.php index c389b8773de..ac5ca61d1f3 100644 --- a/clients/client/php/test/Model/ContinueWithRecoveryUiTest.php +++ b/clients/client/php/test/Model/ContinueWithRecoveryUiTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithSetOrySessionTokenTest.php b/clients/client/php/test/Model/ContinueWithSetOrySessionTokenTest.php index 83c6aeaf6c4..1dc041d94e9 100644 --- a/clients/client/php/test/Model/ContinueWithSetOrySessionTokenTest.php +++ b/clients/client/php/test/Model/ContinueWithSetOrySessionTokenTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithSettingsUiFlowTest.php b/clients/client/php/test/Model/ContinueWithSettingsUiFlowTest.php index e22df147413..eee1a5c6f0f 100644 --- a/clients/client/php/test/Model/ContinueWithSettingsUiFlowTest.php +++ b/clients/client/php/test/Model/ContinueWithSettingsUiFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithSettingsUiTest.php b/clients/client/php/test/Model/ContinueWithSettingsUiTest.php index 8ef7a7fd84c..869c501b93b 100644 --- a/clients/client/php/test/Model/ContinueWithSettingsUiTest.php +++ b/clients/client/php/test/Model/ContinueWithSettingsUiTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithTest.php b/clients/client/php/test/Model/ContinueWithTest.php index 4096080aeef..f78fd75f5de 100644 --- a/clients/client/php/test/Model/ContinueWithTest.php +++ b/clients/client/php/test/Model/ContinueWithTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithVerificationUiFlowTest.php b/clients/client/php/test/Model/ContinueWithVerificationUiFlowTest.php index c12cc7f5236..fe2ceb084af 100644 --- a/clients/client/php/test/Model/ContinueWithVerificationUiFlowTest.php +++ b/clients/client/php/test/Model/ContinueWithVerificationUiFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ContinueWithVerificationUiTest.php b/clients/client/php/test/Model/ContinueWithVerificationUiTest.php index 0cc33d8490e..2657702506f 100644 --- a/clients/client/php/test/Model/ContinueWithVerificationUiTest.php +++ b/clients/client/php/test/Model/ContinueWithVerificationUiTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CourierMessageStatusTest.php b/clients/client/php/test/Model/CourierMessageStatusTest.php index ccf151b56c1..ab646077b4b 100644 --- a/clients/client/php/test/Model/CourierMessageStatusTest.php +++ b/clients/client/php/test/Model/CourierMessageStatusTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CourierMessageTypeTest.php b/clients/client/php/test/Model/CourierMessageTypeTest.php index 31629c6a8d3..e974a8d49e6 100644 --- a/clients/client/php/test/Model/CourierMessageTypeTest.php +++ b/clients/client/php/test/Model/CourierMessageTypeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateCustomDomainBodyTest.php b/clients/client/php/test/Model/CreateCustomDomainBodyTest.php index 621ba7af8b6..38f7b5a0d72 100644 --- a/clients/client/php/test/Model/CreateCustomDomainBodyTest.php +++ b/clients/client/php/test/Model/CreateCustomDomainBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateEventStreamBodyTest.php b/clients/client/php/test/Model/CreateEventStreamBodyTest.php index f5069f22aa1..f617a32ce80 100644 --- a/clients/client/php/test/Model/CreateEventStreamBodyTest.php +++ b/clients/client/php/test/Model/CreateEventStreamBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateIdentityBodyTest.php b/clients/client/php/test/Model/CreateIdentityBodyTest.php index 7b4f2c304e6..ec0a64e0d55 100644 --- a/clients/client/php/test/Model/CreateIdentityBodyTest.php +++ b/clients/client/php/test/Model/CreateIdentityBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateInviteResponseTest.php b/clients/client/php/test/Model/CreateInviteResponseTest.php index 376f505f9b3..2c9cedac57f 100644 --- a/clients/client/php/test/Model/CreateInviteResponseTest.php +++ b/clients/client/php/test/Model/CreateInviteResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateJsonWebKeySetTest.php b/clients/client/php/test/Model/CreateJsonWebKeySetTest.php index 738d89002b9..f1e64389899 100644 --- a/clients/client/php/test/Model/CreateJsonWebKeySetTest.php +++ b/clients/client/php/test/Model/CreateJsonWebKeySetTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateProjectBodyTest.php b/clients/client/php/test/Model/CreateProjectBodyTest.php index ecbfb29ce6b..b880e105de9 100644 --- a/clients/client/php/test/Model/CreateProjectBodyTest.php +++ b/clients/client/php/test/Model/CreateProjectBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -80,6 +80,15 @@ public function testCreateProjectBody() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "environment" + */ + public function testPropertyEnvironment() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "name" */ diff --git a/clients/client/php/test/Model/CreateProjectBrandingTest.php b/clients/client/php/test/Model/CreateProjectBrandingTest.php index 88970a5860e..3fa99001bc6 100644 --- a/clients/client/php/test/Model/CreateProjectBrandingTest.php +++ b/clients/client/php/test/Model/CreateProjectBrandingTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateProjectMemberInviteBodyTest.php b/clients/client/php/test/Model/CreateProjectMemberInviteBodyTest.php index d8569ddefea..e227639eb0c 100644 --- a/clients/client/php/test/Model/CreateProjectMemberInviteBodyTest.php +++ b/clients/client/php/test/Model/CreateProjectMemberInviteBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateProjectNormalizedPayloadTest.php b/clients/client/php/test/Model/CreateProjectNormalizedPayloadTest.php index a434a9df1bc..26d494b1eb9 100644 --- a/clients/client/php/test/Model/CreateProjectNormalizedPayloadTest.php +++ b/clients/client/php/test/Model/CreateProjectNormalizedPayloadTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -98,6 +98,24 @@ public function testPropertyDisableAccountExperienceWelcomeScreen() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "enableAxV2" + */ + public function testPropertyEnableAxV2() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "environment" + */ + public function testPropertyEnvironment() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "hydraOauth2AllowedTopLevelClaims" */ @@ -152,6 +170,15 @@ public function testPropertyHydraOauth2GrantJwtMaxTtl() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "hydraOauth2MirrorTopLevelClaims" + */ + public function testPropertyHydraOauth2MirrorTopLevelClaims() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "hydraOauth2PkceEnforced" */ @@ -674,6 +701,15 @@ public function testPropertyKratosCourierTemplatesLoginCodeValidEmailSubject() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext" + */ + public function testPropertyKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml" */ @@ -1439,6 +1475,15 @@ public function testPropertyKratosSelfserviceMethodsCodeEnabled() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "kratosSelfserviceMethodsCodeMfaEnabled" + */ + public function testPropertyKratosSelfserviceMethodsCodeMfaEnabled() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "kratosSelfserviceMethodsCodePasswordlessEnabled" */ diff --git a/clients/client/php/test/Model/CreateRecoveryCodeForIdentityBodyTest.php b/clients/client/php/test/Model/CreateRecoveryCodeForIdentityBodyTest.php index adb03d02771..b38a39dbf49 100644 --- a/clients/client/php/test/Model/CreateRecoveryCodeForIdentityBodyTest.php +++ b/clients/client/php/test/Model/CreateRecoveryCodeForIdentityBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateRecoveryLinkForIdentityBodyTest.php b/clients/client/php/test/Model/CreateRecoveryLinkForIdentityBodyTest.php index da877ab3bf5..adea22b2d14 100644 --- a/clients/client/php/test/Model/CreateRecoveryLinkForIdentityBodyTest.php +++ b/clients/client/php/test/Model/CreateRecoveryLinkForIdentityBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateRelationshipBodyTest.php b/clients/client/php/test/Model/CreateRelationshipBodyTest.php index 8be073a37dd..8f5ec699b73 100644 --- a/clients/client/php/test/Model/CreateRelationshipBodyTest.php +++ b/clients/client/php/test/Model/CreateRelationshipBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateSubscriptionBodyTest.php b/clients/client/php/test/Model/CreateSubscriptionBodyTest.php index 486272f64d3..b491a2626cc 100644 --- a/clients/client/php/test/Model/CreateSubscriptionBodyTest.php +++ b/clients/client/php/test/Model/CreateSubscriptionBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -35,7 +35,7 @@ * CreateSubscriptionBodyTest Class Doc Comment * * @category Class - * @description Create Subscription Request Body + * @description CreateSubscriptionBody * @package Ory\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech @@ -124,13 +124,4 @@ public function testPropertyReturnTo() // TODO: implement $this->markTestIncomplete('Not implemented'); } - - /** - * Test attribute "workspace" - */ - public function testPropertyWorkspace() - { - // TODO: implement - $this->markTestIncomplete('Not implemented'); - } } diff --git a/clients/client/php/test/Model/InternalProvisionMockSubscriptionTest.php b/clients/client/php/test/Model/CreateSubscriptionCommonTest.php similarity index 82% rename from clients/client/php/test/Model/InternalProvisionMockSubscriptionTest.php rename to clients/client/php/test/Model/CreateSubscriptionCommonTest.php index c44222bb3f9..156759e7d58 100644 --- a/clients/client/php/test/Model/InternalProvisionMockSubscriptionTest.php +++ b/clients/client/php/test/Model/CreateSubscriptionCommonTest.php @@ -1,6 +1,6 @@ markTestIncomplete('Not implemented'); @@ -90,27 +90,27 @@ public function testPropertyCurrency() } /** - * Test attribute "identityId" + * Test attribute "interval" */ - public function testPropertyIdentityId() + public function testPropertyInterval() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "interval" + * Test attribute "plan" */ - public function testPropertyInterval() + public function testPropertyPlan() { // TODO: implement $this->markTestIncomplete('Not implemented'); } /** - * Test attribute "plan" + * Test attribute "returnTo" */ - public function testPropertyPlan() + public function testPropertyReturnTo() { // TODO: implement $this->markTestIncomplete('Not implemented'); diff --git a/clients/client/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php b/clients/client/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php index 42cb665de4d..94810f5468d 100644 --- a/clients/client/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php +++ b/clients/client/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CreateWorkspaceMemberInviteBodyTest.php b/clients/client/php/test/Model/CreateWorkspaceMemberInviteBodyTest.php index 1f597c7b73c..2d380ab7932 100644 --- a/clients/client/php/test/Model/CreateWorkspaceMemberInviteBodyTest.php +++ b/clients/client/php/test/Model/CreateWorkspaceMemberInviteBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/StripeCustomerTest.php b/clients/client/php/test/Model/CreateWorkspacePayloadTest.php similarity index 81% rename from clients/client/php/test/Model/StripeCustomerTest.php rename to clients/client/php/test/Model/CreateWorkspacePayloadTest.php index 84464f8c7ad..c167682f879 100644 --- a/clients/client/php/test/Model/StripeCustomerTest.php +++ b/clients/client/php/test/Model/CreateWorkspacePayloadTest.php @@ -1,6 +1,6 @@ markTestIncomplete('Not implemented'); } /** - * Test attribute "id" + * Test attribute "name" */ - public function testPropertyId() + public function testPropertyName() { // TODO: implement $this->markTestIncomplete('Not implemented'); diff --git a/clients/client/php/test/Model/CreateWorkspaceSubscriptionBodyTest.php b/clients/client/php/test/Model/CreateWorkspaceSubscriptionBodyTest.php new file mode 100644 index 00000000000..83fb9ab0faa --- /dev/null +++ b/clients/client/php/test/Model/CreateWorkspaceSubscriptionBodyTest.php @@ -0,0 +1,118 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "currency" + */ + public function testPropertyCurrency() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "interval" + */ + public function testPropertyInterval() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "plan" + */ + public function testPropertyPlan() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "returnTo" + */ + public function testPropertyReturnTo() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/clients/client/php/test/Model/CredentialSupportedDraft00Test.php b/clients/client/php/test/Model/CredentialSupportedDraft00Test.php index cd8eefc023e..1d5731759a4 100644 --- a/clients/client/php/test/Model/CredentialSupportedDraft00Test.php +++ b/clients/client/php/test/Model/CredentialSupportedDraft00Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/CustomDomainTest.php b/clients/client/php/test/Model/CustomDomainTest.php index 17ca27487ea..36c14df215b 100644 --- a/clients/client/php/test/Model/CustomDomainTest.php +++ b/clients/client/php/test/Model/CustomDomainTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/DeleteMySessionsCountTest.php b/clients/client/php/test/Model/DeleteMySessionsCountTest.php index dd3a5433cab..3365fa13867 100644 --- a/clients/client/php/test/Model/DeleteMySessionsCountTest.php +++ b/clients/client/php/test/Model/DeleteMySessionsCountTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/EmailTemplateDataBodyTest.php b/clients/client/php/test/Model/EmailTemplateDataBodyTest.php index 5897b4e152c..a44a5be4a3f 100644 --- a/clients/client/php/test/Model/EmailTemplateDataBodyTest.php +++ b/clients/client/php/test/Model/EmailTemplateDataBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/EmailTemplateDataTest.php b/clients/client/php/test/Model/EmailTemplateDataTest.php index 7758ef561c1..1b7a5694213 100644 --- a/clients/client/php/test/Model/EmailTemplateDataTest.php +++ b/clients/client/php/test/Model/EmailTemplateDataTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.php b/clients/client/php/test/Model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.php index 0484153d7b0..4638af68789 100644 --- a/clients/client/php/test/Model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.php +++ b/clients/client/php/test/Model/ErrorAuthenticatorAssuranceLevelNotSatisfiedTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ErrorBrowserLocationChangeRequiredTest.php b/clients/client/php/test/Model/ErrorBrowserLocationChangeRequiredTest.php index 53e46f943b0..b3a71ba046f 100644 --- a/clients/client/php/test/Model/ErrorBrowserLocationChangeRequiredTest.php +++ b/clients/client/php/test/Model/ErrorBrowserLocationChangeRequiredTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ErrorFlowReplacedTest.php b/clients/client/php/test/Model/ErrorFlowReplacedTest.php index 874752a378c..4bffadf6dbf 100644 --- a/clients/client/php/test/Model/ErrorFlowReplacedTest.php +++ b/clients/client/php/test/Model/ErrorFlowReplacedTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ErrorGenericTest.php b/clients/client/php/test/Model/ErrorGenericTest.php index 032fe6e8da0..9a0eec3ccee 100644 --- a/clients/client/php/test/Model/ErrorGenericTest.php +++ b/clients/client/php/test/Model/ErrorGenericTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ErrorOAuth2Test.php b/clients/client/php/test/Model/ErrorOAuth2Test.php index 2f2d3a772ed..04fd22a42eb 100644 --- a/clients/client/php/test/Model/ErrorOAuth2Test.php +++ b/clients/client/php/test/Model/ErrorOAuth2Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/EventStreamTest.php b/clients/client/php/test/Model/EventStreamTest.php index b0a35be8d9d..85ca4ea975a 100644 --- a/clients/client/php/test/Model/EventStreamTest.php +++ b/clients/client/php/test/Model/EventStreamTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ExpandedPermissionTreeTest.php b/clients/client/php/test/Model/ExpandedPermissionTreeTest.php index 5b3fd5263de..13becb56bc6 100644 --- a/clients/client/php/test/Model/ExpandedPermissionTreeTest.php +++ b/clients/client/php/test/Model/ExpandedPermissionTreeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/FlowErrorTest.php b/clients/client/php/test/Model/FlowErrorTest.php index 3cb8e0a1895..bb27d6f9d6e 100644 --- a/clients/client/php/test/Model/FlowErrorTest.php +++ b/clients/client/php/test/Model/FlowErrorTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GenericErrorContentTest.php b/clients/client/php/test/Model/GenericErrorContentTest.php index e283f01d752..b16bf221b3a 100644 --- a/clients/client/php/test/Model/GenericErrorContentTest.php +++ b/clients/client/php/test/Model/GenericErrorContentTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GenericErrorTest.php b/clients/client/php/test/Model/GenericErrorTest.php index 0eebbe28da7..ceaf820ff6b 100644 --- a/clients/client/php/test/Model/GenericErrorTest.php +++ b/clients/client/php/test/Model/GenericErrorTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GenericUsageTest.php b/clients/client/php/test/Model/GenericUsageTest.php index 5f3dd0df284..471fd47083b 100644 --- a/clients/client/php/test/Model/GenericUsageTest.php +++ b/clients/client/php/test/Model/GenericUsageTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetAttributesCountResponseTest.php b/clients/client/php/test/Model/GetAttributesCountResponseTest.php index 28fef2a5917..d08c75c1401 100644 --- a/clients/client/php/test/Model/GetAttributesCountResponseTest.php +++ b/clients/client/php/test/Model/GetAttributesCountResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetManagedIdentitySchemaLocationTest.php b/clients/client/php/test/Model/GetManagedIdentitySchemaLocationTest.php index fdcb806d79b..d73a5061f91 100644 --- a/clients/client/php/test/Model/GetManagedIdentitySchemaLocationTest.php +++ b/clients/client/php/test/Model/GetManagedIdentitySchemaLocationTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetMetricsEventAttributesResponseTest.php b/clients/client/php/test/Model/GetMetricsEventAttributesResponseTest.php index 379526e0501..de7c837ebd3 100644 --- a/clients/client/php/test/Model/GetMetricsEventAttributesResponseTest.php +++ b/clients/client/php/test/Model/GetMetricsEventAttributesResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetMetricsEventTypesResponseTest.php b/clients/client/php/test/Model/GetMetricsEventTypesResponseTest.php index 472800d6d8b..7548a5f7aa4 100644 --- a/clients/client/php/test/Model/GetMetricsEventTypesResponseTest.php +++ b/clients/client/php/test/Model/GetMetricsEventTypesResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetOrganizationResponseTest.php b/clients/client/php/test/Model/GetOrganizationResponseTest.php index 48a992db1b8..8f93fc5ebec 100644 --- a/clients/client/php/test/Model/GetOrganizationResponseTest.php +++ b/clients/client/php/test/Model/GetOrganizationResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetProjectEventsBodyTest.php b/clients/client/php/test/Model/GetProjectEventsBodyTest.php index c9a01c326a4..159a5dcd14b 100644 --- a/clients/client/php/test/Model/GetProjectEventsBodyTest.php +++ b/clients/client/php/test/Model/GetProjectEventsBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetProjectEventsResponseTest.php b/clients/client/php/test/Model/GetProjectEventsResponseTest.php index d7b7c732734..48d08d9658b 100644 --- a/clients/client/php/test/Model/GetProjectEventsResponseTest.php +++ b/clients/client/php/test/Model/GetProjectEventsResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetProjectMetricsResponseTest.php b/clients/client/php/test/Model/GetProjectMetricsResponseTest.php index 85f61308b59..dd6369e3411 100644 --- a/clients/client/php/test/Model/GetProjectMetricsResponseTest.php +++ b/clients/client/php/test/Model/GetProjectMetricsResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/GetSessionActivityResponseTest.php b/clients/client/php/test/Model/GetSessionActivityResponseTest.php index c36d8ffaac9..b3363871cb8 100644 --- a/clients/client/php/test/Model/GetSessionActivityResponseTest.php +++ b/clients/client/php/test/Model/GetSessionActivityResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/HealthNotReadyStatusTest.php b/clients/client/php/test/Model/HealthNotReadyStatusTest.php index cfee5dba3af..928d1af38c7 100644 --- a/clients/client/php/test/Model/HealthNotReadyStatusTest.php +++ b/clients/client/php/test/Model/HealthNotReadyStatusTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/HealthStatusTest.php b/clients/client/php/test/Model/HealthStatusTest.php index 1bc7d5959d4..c4d50061459 100644 --- a/clients/client/php/test/Model/HealthStatusTest.php +++ b/clients/client/php/test/Model/HealthStatusTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityCredentialsCodeTest.php b/clients/client/php/test/Model/IdentityCredentialsCodeTest.php index 64c8b4ab192..40e65a073f2 100644 --- a/clients/client/php/test/Model/IdentityCredentialsCodeTest.php +++ b/clients/client/php/test/Model/IdentityCredentialsCodeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityCredentialsOidcProviderTest.php b/clients/client/php/test/Model/IdentityCredentialsOidcProviderTest.php index f9c4e55f872..d8b29b5d0d7 100644 --- a/clients/client/php/test/Model/IdentityCredentialsOidcProviderTest.php +++ b/clients/client/php/test/Model/IdentityCredentialsOidcProviderTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityCredentialsOidcTest.php b/clients/client/php/test/Model/IdentityCredentialsOidcTest.php index 053125fb3a4..2033c8f700c 100644 --- a/clients/client/php/test/Model/IdentityCredentialsOidcTest.php +++ b/clients/client/php/test/Model/IdentityCredentialsOidcTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityCredentialsPasswordTest.php b/clients/client/php/test/Model/IdentityCredentialsPasswordTest.php index bde6868a49b..def8c0579f1 100644 --- a/clients/client/php/test/Model/IdentityCredentialsPasswordTest.php +++ b/clients/client/php/test/Model/IdentityCredentialsPasswordTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityCredentialsTest.php b/clients/client/php/test/Model/IdentityCredentialsTest.php index eb9ead0a1d2..f8b3d577ce4 100644 --- a/clients/client/php/test/Model/IdentityCredentialsTest.php +++ b/clients/client/php/test/Model/IdentityCredentialsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityPatchResponseTest.php b/clients/client/php/test/Model/IdentityPatchResponseTest.php index 7604627f8af..bbc83e37106 100644 --- a/clients/client/php/test/Model/IdentityPatchResponseTest.php +++ b/clients/client/php/test/Model/IdentityPatchResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityPatchTest.php b/clients/client/php/test/Model/IdentityPatchTest.php index ab2f1ee9918..0e1fec58b52 100644 --- a/clients/client/php/test/Model/IdentityPatchTest.php +++ b/clients/client/php/test/Model/IdentityPatchTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentitySchemaContainerTest.php b/clients/client/php/test/Model/IdentitySchemaContainerTest.php index ca85afccd4c..a3c7228f0f1 100644 --- a/clients/client/php/test/Model/IdentitySchemaContainerTest.php +++ b/clients/client/php/test/Model/IdentitySchemaContainerTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentitySchemaPresetTest.php b/clients/client/php/test/Model/IdentitySchemaPresetTest.php index c739d461644..89fb666cd8a 100644 --- a/clients/client/php/test/Model/IdentitySchemaPresetTest.php +++ b/clients/client/php/test/Model/IdentitySchemaPresetTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityTest.php b/clients/client/php/test/Model/IdentityTest.php index 443e72c42da..af5791ae5a7 100644 --- a/clients/client/php/test/Model/IdentityTest.php +++ b/clients/client/php/test/Model/IdentityTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigProviderTest.php b/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigProviderTest.php index 32aef545c31..c326b6a1440 100644 --- a/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigProviderTest.php +++ b/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigProviderTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigTest.php b/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigTest.php index bc4c5242f14..651c6d24b8c 100644 --- a/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigTest.php +++ b/clients/client/php/test/Model/IdentityWithCredentialsOidcConfigTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityWithCredentialsOidcTest.php b/clients/client/php/test/Model/IdentityWithCredentialsOidcTest.php index 17b862072d9..5de56b9655a 100644 --- a/clients/client/php/test/Model/IdentityWithCredentialsOidcTest.php +++ b/clients/client/php/test/Model/IdentityWithCredentialsOidcTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityWithCredentialsPasswordConfigTest.php b/clients/client/php/test/Model/IdentityWithCredentialsPasswordConfigTest.php index 077d5633684..5aa11775fe2 100644 --- a/clients/client/php/test/Model/IdentityWithCredentialsPasswordConfigTest.php +++ b/clients/client/php/test/Model/IdentityWithCredentialsPasswordConfigTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityWithCredentialsPasswordTest.php b/clients/client/php/test/Model/IdentityWithCredentialsPasswordTest.php index 926db15980b..a59c074c682 100644 --- a/clients/client/php/test/Model/IdentityWithCredentialsPasswordTest.php +++ b/clients/client/php/test/Model/IdentityWithCredentialsPasswordTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityWithCredentialsTest.php b/clients/client/php/test/Model/IdentityWithCredentialsTest.php index 0ac193c424b..ee228a34d1b 100644 --- a/clients/client/php/test/Model/IdentityWithCredentialsTest.php +++ b/clients/client/php/test/Model/IdentityWithCredentialsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InlineObject3Test.php b/clients/client/php/test/Model/InlineObject3Test.php index b3acec7c59c..82dcf4aeb84 100644 --- a/clients/client/php/test/Model/InlineObject3Test.php +++ b/clients/client/php/test/Model/InlineObject3Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InlineResponse2001Test.php b/clients/client/php/test/Model/InlineResponse2001Test.php index 689be682f42..0459217c2a3 100644 --- a/clients/client/php/test/Model/InlineResponse2001Test.php +++ b/clients/client/php/test/Model/InlineResponse2001Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InlineResponse200Test.php b/clients/client/php/test/Model/InlineResponse200Test.php index 4fadc3b00dd..3266469125d 100644 --- a/clients/client/php/test/Model/InlineResponse200Test.php +++ b/clients/client/php/test/Model/InlineResponse200Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InlineResponse503Test.php b/clients/client/php/test/Model/InlineResponse503Test.php index 6bf49a98177..4f9555fa336 100644 --- a/clients/client/php/test/Model/InlineResponse503Test.php +++ b/clients/client/php/test/Model/InlineResponse503Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InternalGetProjectBrandingBodyTest.php b/clients/client/php/test/Model/InternalGetProjectBrandingBodyTest.php index cd25092f5f2..4b7eb9bca66 100644 --- a/clients/client/php/test/Model/InternalGetProjectBrandingBodyTest.php +++ b/clients/client/php/test/Model/InternalGetProjectBrandingBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.php b/clients/client/php/test/Model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.php index 37c41886c0a..80e286c87a1 100644 --- a/clients/client/php/test/Model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.php +++ b/clients/client/php/test/Model/InternalIsAXWelcomeScreenEnabledForProjectBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugBodyTest.php b/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugBodyTest.php index 94d9ef0155a..81a6bb12fcb 100644 --- a/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugBodyTest.php +++ b/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugResponseTest.php b/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugResponseTest.php index 6b981bc77e3..a1e1aa6d7fc 100644 --- a/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugResponseTest.php +++ b/clients/client/php/test/Model/InternalIsOwnerForProjectBySlugResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IntrospectedOAuth2TokenTest.php b/clients/client/php/test/Model/IntrospectedOAuth2TokenTest.php index 33bd4dcf9cc..94b4eb4154f 100644 --- a/clients/client/php/test/Model/IntrospectedOAuth2TokenTest.php +++ b/clients/client/php/test/Model/IntrospectedOAuth2TokenTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IsOwnerForProjectBySlugTest.php b/clients/client/php/test/Model/IsOwnerForProjectBySlugTest.php index f7441ec60c6..079c4f281e0 100644 --- a/clients/client/php/test/Model/IsOwnerForProjectBySlugTest.php +++ b/clients/client/php/test/Model/IsOwnerForProjectBySlugTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/JsonPatchTest.php b/clients/client/php/test/Model/JsonPatchTest.php index c09550b0ddd..3ae18c54eee 100644 --- a/clients/client/php/test/Model/JsonPatchTest.php +++ b/clients/client/php/test/Model/JsonPatchTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/JsonWebKeySetTest.php b/clients/client/php/test/Model/JsonWebKeySetTest.php index 2526b943c21..6f7a7dbd7e7 100644 --- a/clients/client/php/test/Model/JsonWebKeySetTest.php +++ b/clients/client/php/test/Model/JsonWebKeySetTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/JsonWebKeyTest.php b/clients/client/php/test/Model/JsonWebKeyTest.php index d9b0d673695..68d931849df 100644 --- a/clients/client/php/test/Model/JsonWebKeyTest.php +++ b/clients/client/php/test/Model/JsonWebKeyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/KetoNamespaceTest.php b/clients/client/php/test/Model/KetoNamespaceTest.php index aab76a7667a..1caac2c00dd 100644 --- a/clients/client/php/test/Model/KetoNamespaceTest.php +++ b/clients/client/php/test/Model/KetoNamespaceTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ListEventStreamsTest.php b/clients/client/php/test/Model/ListEventStreamsTest.php index 8c289e01a27..6e083998d1e 100644 --- a/clients/client/php/test/Model/ListEventStreamsTest.php +++ b/clients/client/php/test/Model/ListEventStreamsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ListMyWorkspacesResponseTest.php b/clients/client/php/test/Model/ListMyWorkspacesResponseTest.php index 0605169857a..87c41d75ccf 100644 --- a/clients/client/php/test/Model/ListMyWorkspacesResponseTest.php +++ b/clients/client/php/test/Model/ListMyWorkspacesResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ListOrganizationsResponseTest.php b/clients/client/php/test/Model/ListOrganizationsResponseTest.php index db2102b9673..06f7fdb3ce0 100644 --- a/clients/client/php/test/Model/ListOrganizationsResponseTest.php +++ b/clients/client/php/test/Model/ListOrganizationsResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ListWorkspaceProjectsResponseTest.php b/clients/client/php/test/Model/ListWorkspaceProjectsResponseTest.php new file mode 100644 index 00000000000..94ac3251f48 --- /dev/null +++ b/clients/client/php/test/Model/ListWorkspaceProjectsResponseTest.php @@ -0,0 +1,109 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "hasNextPage" + */ + public function testPropertyHasNextPage() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "nextPage" + */ + public function testPropertyNextPage() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "projects" + */ + public function testPropertyProjects() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/clients/client/php/test/Model/LoginFlowStateTest.php b/clients/client/php/test/Model/LoginFlowStateTest.php index 9a94310df57..e801ea81980 100644 --- a/clients/client/php/test/Model/LoginFlowStateTest.php +++ b/clients/client/php/test/Model/LoginFlowStateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/LoginFlowTest.php b/clients/client/php/test/Model/LoginFlowTest.php index 64a85cdb855..bef4746ef66 100644 --- a/clients/client/php/test/Model/LoginFlowTest.php +++ b/clients/client/php/test/Model/LoginFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -206,6 +206,15 @@ public function testPropertyState() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "type" */ diff --git a/clients/client/php/test/Model/LogoutFlowTest.php b/clients/client/php/test/Model/LogoutFlowTest.php index fe00279f64f..7fef71ec02e 100644 --- a/clients/client/php/test/Model/LogoutFlowTest.php +++ b/clients/client/php/test/Model/LogoutFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ManagedIdentitySchemaTest.php b/clients/client/php/test/Model/ManagedIdentitySchemaTest.php index 1f0d0b2be65..4d597aa6298 100644 --- a/clients/client/php/test/Model/ManagedIdentitySchemaTest.php +++ b/clients/client/php/test/Model/ManagedIdentitySchemaTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ManagedIdentitySchemaValidationResultTest.php b/clients/client/php/test/Model/ManagedIdentitySchemaValidationResultTest.php index 8adc2b24885..98b22a64d44 100644 --- a/clients/client/php/test/Model/ManagedIdentitySchemaValidationResultTest.php +++ b/clients/client/php/test/Model/ManagedIdentitySchemaValidationResultTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/MemberInviteTest.php b/clients/client/php/test/Model/MemberInviteTest.php index 764e82a7b68..6aff3b994a0 100644 --- a/clients/client/php/test/Model/MemberInviteTest.php +++ b/clients/client/php/test/Model/MemberInviteTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/MessageDispatchTest.php b/clients/client/php/test/Model/MessageDispatchTest.php index 5d430a9b8a6..db4aba7685f 100644 --- a/clients/client/php/test/Model/MessageDispatchTest.php +++ b/clients/client/php/test/Model/MessageDispatchTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/MessageTest.php b/clients/client/php/test/Model/MessageTest.php index 22fbc57a24d..020f31d167b 100644 --- a/clients/client/php/test/Model/MessageTest.php +++ b/clients/client/php/test/Model/MessageTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/MetricsDatapointTest.php b/clients/client/php/test/Model/MetricsDatapointTest.php index a2ec86020bc..69a4f400512 100644 --- a/clients/client/php/test/Model/MetricsDatapointTest.php +++ b/clients/client/php/test/Model/MetricsDatapointTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/MigrationOptionsTest.php b/clients/client/php/test/Model/MigrationOptionsTest.php new file mode 100644 index 00000000000..dd170e6b825 --- /dev/null +++ b/clients/client/php/test/Model/MigrationOptionsTest.php @@ -0,0 +1,100 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "environment" + */ + public function testPropertyEnvironment() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "projectSubscription" + */ + public function testPropertyProjectSubscription() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/clients/client/php/test/Model/ModelNamespaceTest.php b/clients/client/php/test/Model/ModelNamespaceTest.php index 1ec72e7fe02..a506c3e8a74 100644 --- a/clients/client/php/test/Model/ModelNamespaceTest.php +++ b/clients/client/php/test/Model/ModelNamespaceTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/NeedsPrivilegedSessionErrorTest.php b/clients/client/php/test/Model/NeedsPrivilegedSessionErrorTest.php index 33a7902120e..ef86484dbaa 100644 --- a/clients/client/php/test/Model/NeedsPrivilegedSessionErrorTest.php +++ b/clients/client/php/test/Model/NeedsPrivilegedSessionErrorTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/NormalizedProjectRevisionCourierChannelTest.php b/clients/client/php/test/Model/NormalizedProjectRevisionCourierChannelTest.php index e5273b51638..2a46eef473a 100644 --- a/clients/client/php/test/Model/NormalizedProjectRevisionCourierChannelTest.php +++ b/clients/client/php/test/Model/NormalizedProjectRevisionCourierChannelTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/NormalizedProjectRevisionHookTest.php b/clients/client/php/test/Model/NormalizedProjectRevisionHookTest.php index f422a0ea592..176cce4e2b5 100644 --- a/clients/client/php/test/Model/NormalizedProjectRevisionHookTest.php +++ b/clients/client/php/test/Model/NormalizedProjectRevisionHookTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/NormalizedProjectRevisionIdentitySchemaTest.php b/clients/client/php/test/Model/NormalizedProjectRevisionIdentitySchemaTest.php index 1f2257b1ed6..d0e4f9f9d3d 100644 --- a/clients/client/php/test/Model/NormalizedProjectRevisionIdentitySchemaTest.php +++ b/clients/client/php/test/Model/NormalizedProjectRevisionIdentitySchemaTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/NormalizedProjectRevisionTest.php b/clients/client/php/test/Model/NormalizedProjectRevisionTest.php index 6a1ff177ea1..b2f3b25239c 100644 --- a/clients/client/php/test/Model/NormalizedProjectRevisionTest.php +++ b/clients/client/php/test/Model/NormalizedProjectRevisionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -98,6 +98,15 @@ public function testPropertyDisableAccountExperienceWelcomeScreen() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "enableAxV2" + */ + public function testPropertyEnableAxV2() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "hydraOauth2AllowedTopLevelClaims" */ @@ -152,6 +161,15 @@ public function testPropertyHydraOauth2GrantJwtMaxTtl() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "hydraOauth2MirrorTopLevelClaims" + */ + public function testPropertyHydraOauth2MirrorTopLevelClaims() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "hydraOauth2PkceEnforced" */ @@ -674,6 +692,15 @@ public function testPropertyKratosCourierTemplatesLoginCodeValidEmailSubject() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "kratosCourierTemplatesLoginCodeValidSmsBodyPlaintext" + */ + public function testPropertyKratosCourierTemplatesLoginCodeValidSmsBodyPlaintext() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "kratosCourierTemplatesRecoveryCodeInvalidEmailBodyHtml" */ @@ -1439,6 +1466,15 @@ public function testPropertyKratosSelfserviceMethodsCodeEnabled() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "kratosSelfserviceMethodsCodeMfaEnabled" + */ + public function testPropertyKratosSelfserviceMethodsCodeMfaEnabled() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "kratosSelfserviceMethodsCodePasswordlessEnabled" */ diff --git a/clients/client/php/test/Model/NormalizedProjectRevisionThirdPartyProviderTest.php b/clients/client/php/test/Model/NormalizedProjectRevisionThirdPartyProviderTest.php index 63f70fe2288..7ae9c138a64 100644 --- a/clients/client/php/test/Model/NormalizedProjectRevisionThirdPartyProviderTest.php +++ b/clients/client/php/test/Model/NormalizedProjectRevisionThirdPartyProviderTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -134,6 +134,15 @@ public function testPropertyAzureTenant() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "claimsSource" + */ + public function testPropertyClaimsSource() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "clientId" */ diff --git a/clients/client/php/test/Model/NormalizedProjectRevisionTokenizerTemplateTest.php b/clients/client/php/test/Model/NormalizedProjectRevisionTokenizerTemplateTest.php index 44f95131c36..155579548b7 100644 --- a/clients/client/php/test/Model/NormalizedProjectRevisionTokenizerTemplateTest.php +++ b/clients/client/php/test/Model/NormalizedProjectRevisionTokenizerTemplateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/NormalizedProjectTest.php b/clients/client/php/test/Model/NormalizedProjectTest.php index 59f1cbc05b6..b77b30ad26e 100644 --- a/clients/client/php/test/Model/NormalizedProjectTest.php +++ b/clients/client/php/test/Model/NormalizedProjectTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2ClientTest.php b/clients/client/php/test/Model/OAuth2ClientTest.php index 028c8d5c50c..7fc62a421ce 100644 --- a/clients/client/php/test/Model/OAuth2ClientTest.php +++ b/clients/client/php/test/Model/OAuth2ClientTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -449,6 +449,15 @@ public function testPropertySkipConsent() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "skipLogoutConsent" + */ + public function testPropertySkipLogoutConsent() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "subjectType" */ diff --git a/clients/client/php/test/Model/OAuth2ClientTokenLifespansTest.php b/clients/client/php/test/Model/OAuth2ClientTokenLifespansTest.php index 4700d174246..cd244cc8436 100644 --- a/clients/client/php/test/Model/OAuth2ClientTokenLifespansTest.php +++ b/clients/client/php/test/Model/OAuth2ClientTokenLifespansTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php b/clients/client/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php index 233e873a977..0a7f6872f52 100644 --- a/clients/client/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php +++ b/clients/client/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2ConsentRequestTest.php b/clients/client/php/test/Model/OAuth2ConsentRequestTest.php index 050cd7adaa3..c7de13fe7fd 100644 --- a/clients/client/php/test/Model/OAuth2ConsentRequestTest.php +++ b/clients/client/php/test/Model/OAuth2ConsentRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php b/clients/client/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php index 7b2cedf1d7b..2ac7059a8a5 100644 --- a/clients/client/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php +++ b/clients/client/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2ConsentSessionTest.php b/clients/client/php/test/Model/OAuth2ConsentSessionTest.php index 99941e09193..9a019c84932 100644 --- a/clients/client/php/test/Model/OAuth2ConsentSessionTest.php +++ b/clients/client/php/test/Model/OAuth2ConsentSessionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -89,6 +89,15 @@ public function testPropertyConsentRequest() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "context" + */ + public function testPropertyContext() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "expiresAt" */ diff --git a/clients/client/php/test/Model/OAuth2LoginRequestTest.php b/clients/client/php/test/Model/OAuth2LoginRequestTest.php index 0e661accc90..c00b29ddad8 100644 --- a/clients/client/php/test/Model/OAuth2LoginRequestTest.php +++ b/clients/client/php/test/Model/OAuth2LoginRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2LogoutRequestTest.php b/clients/client/php/test/Model/OAuth2LogoutRequestTest.php index d9594812c2b..c2e8046587f 100644 --- a/clients/client/php/test/Model/OAuth2LogoutRequestTest.php +++ b/clients/client/php/test/Model/OAuth2LogoutRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2RedirectToTest.php b/clients/client/php/test/Model/OAuth2RedirectToTest.php index 3558a490cd0..78fb5221be3 100644 --- a/clients/client/php/test/Model/OAuth2RedirectToTest.php +++ b/clients/client/php/test/Model/OAuth2RedirectToTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OAuth2TokenExchangeTest.php b/clients/client/php/test/Model/OAuth2TokenExchangeTest.php index 3c07626b6cd..ed9ffd383ff 100644 --- a/clients/client/php/test/Model/OAuth2TokenExchangeTest.php +++ b/clients/client/php/test/Model/OAuth2TokenExchangeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OidcConfigurationTest.php b/clients/client/php/test/Model/OidcConfigurationTest.php index 2da95465025..c3becbc65c5 100644 --- a/clients/client/php/test/Model/OidcConfigurationTest.php +++ b/clients/client/php/test/Model/OidcConfigurationTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OidcUserInfoTest.php b/clients/client/php/test/Model/OidcUserInfoTest.php index 5ec05c91344..59439b3cc8c 100644 --- a/clients/client/php/test/Model/OidcUserInfoTest.php +++ b/clients/client/php/test/Model/OidcUserInfoTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OrganizationBodyTest.php b/clients/client/php/test/Model/OrganizationBodyTest.php index 58f2ef77acd..9ab85c00dfb 100644 --- a/clients/client/php/test/Model/OrganizationBodyTest.php +++ b/clients/client/php/test/Model/OrganizationBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/OrganizationTest.php b/clients/client/php/test/Model/OrganizationTest.php index df1701d29db..08a65725af6 100644 --- a/clients/client/php/test/Model/OrganizationTest.php +++ b/clients/client/php/test/Model/OrganizationTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PaginationHeadersTest.php b/clients/client/php/test/Model/PaginationHeadersTest.php index 33a3a00670f..82f87def5ee 100644 --- a/clients/client/php/test/Model/PaginationHeadersTest.php +++ b/clients/client/php/test/Model/PaginationHeadersTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PaginationTest.php b/clients/client/php/test/Model/PaginationTest.php index 1e2a3ddc3de..afbc9f8f3cd 100644 --- a/clients/client/php/test/Model/PaginationTest.php +++ b/clients/client/php/test/Model/PaginationTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ParseErrorTest.php b/clients/client/php/test/Model/ParseErrorTest.php index 3efed3edb31..fbceb1e02e7 100644 --- a/clients/client/php/test/Model/ParseErrorTest.php +++ b/clients/client/php/test/Model/ParseErrorTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PatchIdentitiesBodyTest.php b/clients/client/php/test/Model/PatchIdentitiesBodyTest.php index 69c57ba181c..afb3a908ece 100644 --- a/clients/client/php/test/Model/PatchIdentitiesBodyTest.php +++ b/clients/client/php/test/Model/PatchIdentitiesBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PerformNativeLogoutBodyTest.php b/clients/client/php/test/Model/PerformNativeLogoutBodyTest.php index d2f7829742d..5f44cd3cdac 100644 --- a/clients/client/php/test/Model/PerformNativeLogoutBodyTest.php +++ b/clients/client/php/test/Model/PerformNativeLogoutBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/IdentityCredentialsTypeTest.php b/clients/client/php/test/Model/PermissionsOnWorkpaceResponseTest.php similarity index 72% rename from clients/client/php/test/Model/IdentityCredentialsTypeTest.php rename to clients/client/php/test/Model/PermissionsOnWorkpaceResponseTest.php index 35b27c8d177..16852d02d5c 100644 --- a/clients/client/php/test/Model/IdentityCredentialsTypeTest.php +++ b/clients/client/php/test/Model/PermissionsOnWorkpaceResponseTest.php @@ -1,6 +1,6 @@ markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "permissions" + */ + public function testPropertyPermissions() { // TODO: implement $this->markTestIncomplete('Not implemented'); diff --git a/clients/client/php/test/Model/PlanDetailsTest.php b/clients/client/php/test/Model/PlanDetailsTest.php index e661b7ef4d1..87d6bedbf2c 100644 --- a/clients/client/php/test/Model/PlanDetailsTest.php +++ b/clients/client/php/test/Model/PlanDetailsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PlanTest.php b/clients/client/php/test/Model/PlanTest.php index c3b87245dca..4754e88efa3 100644 --- a/clients/client/php/test/Model/PlanTest.php +++ b/clients/client/php/test/Model/PlanTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PostCheckPermissionBodyTest.php b/clients/client/php/test/Model/PostCheckPermissionBodyTest.php index 18073d088bb..a8cba551138 100644 --- a/clients/client/php/test/Model/PostCheckPermissionBodyTest.php +++ b/clients/client/php/test/Model/PostCheckPermissionBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/PostCheckPermissionOrErrorBodyTest.php b/clients/client/php/test/Model/PostCheckPermissionOrErrorBodyTest.php index 243814e143e..720c26268cc 100644 --- a/clients/client/php/test/Model/PostCheckPermissionOrErrorBodyTest.php +++ b/clients/client/php/test/Model/PostCheckPermissionOrErrorBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectApiKeyTest.php b/clients/client/php/test/Model/ProjectApiKeyTest.php index 444879ed089..fa8ad8ad002 100644 --- a/clients/client/php/test/Model/ProjectApiKeyTest.php +++ b/clients/client/php/test/Model/ProjectApiKeyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectBrandingColorsTest.php b/clients/client/php/test/Model/ProjectBrandingColorsTest.php index 325c06e76c0..5b5ed9a4e31 100644 --- a/clients/client/php/test/Model/ProjectBrandingColorsTest.php +++ b/clients/client/php/test/Model/ProjectBrandingColorsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectBrandingTest.php b/clients/client/php/test/Model/ProjectBrandingTest.php index b575326bd78..32c651b0f1e 100644 --- a/clients/client/php/test/Model/ProjectBrandingTest.php +++ b/clients/client/php/test/Model/ProjectBrandingTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectBrandingThemeTest.php b/clients/client/php/test/Model/ProjectBrandingThemeTest.php index 29daddf6712..6800c0938ea 100644 --- a/clients/client/php/test/Model/ProjectBrandingThemeTest.php +++ b/clients/client/php/test/Model/ProjectBrandingThemeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectCorsTest.php b/clients/client/php/test/Model/ProjectCorsTest.php index 30a0bf0ac65..b0a6497de21 100644 --- a/clients/client/php/test/Model/ProjectCorsTest.php +++ b/clients/client/php/test/Model/ProjectCorsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectEventsDatapointTest.php b/clients/client/php/test/Model/ProjectEventsDatapointTest.php index 5c3586d5ece..8a04c6f13f0 100644 --- a/clients/client/php/test/Model/ProjectEventsDatapointTest.php +++ b/clients/client/php/test/Model/ProjectEventsDatapointTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectHostTest.php b/clients/client/php/test/Model/ProjectHostTest.php index 72bf093ccc9..028eda709cb 100644 --- a/clients/client/php/test/Model/ProjectHostTest.php +++ b/clients/client/php/test/Model/ProjectHostTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectMemberTest.php b/clients/client/php/test/Model/ProjectMemberTest.php new file mode 100644 index 00000000000..70367a7c4bc --- /dev/null +++ b/clients/client/php/test/Model/ProjectMemberTest.php @@ -0,0 +1,118 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "email" + */ + public function testPropertyEmail() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "name" + */ + public function testPropertyName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "role" + */ + public function testPropertyRole() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/clients/client/php/test/Model/ProjectMetadataTest.php b/clients/client/php/test/Model/ProjectMetadataTest.php index 213912fb6df..48936153607 100644 --- a/clients/client/php/test/Model/ProjectMetadataTest.php +++ b/clients/client/php/test/Model/ProjectMetadataTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -89,6 +89,15 @@ public function testPropertyCreatedAt() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "environment" + */ + public function testPropertyEnvironment() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "hosts" */ diff --git a/clients/client/php/test/Model/ProjectServiceIdentityTest.php b/clients/client/php/test/Model/ProjectServiceIdentityTest.php index eac021b856a..75eb6a2c0ba 100644 --- a/clients/client/php/test/Model/ProjectServiceIdentityTest.php +++ b/clients/client/php/test/Model/ProjectServiceIdentityTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectServiceOAuth2Test.php b/clients/client/php/test/Model/ProjectServiceOAuth2Test.php index 571e14e392c..9cbfbf8ac50 100644 --- a/clients/client/php/test/Model/ProjectServiceOAuth2Test.php +++ b/clients/client/php/test/Model/ProjectServiceOAuth2Test.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectServicePermissionTest.php b/clients/client/php/test/Model/ProjectServicePermissionTest.php index d2d3cadf6ae..967270f7383 100644 --- a/clients/client/php/test/Model/ProjectServicePermissionTest.php +++ b/clients/client/php/test/Model/ProjectServicePermissionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectServicesTest.php b/clients/client/php/test/Model/ProjectServicesTest.php index 138032050b2..5fa9162f355 100644 --- a/clients/client/php/test/Model/ProjectServicesTest.php +++ b/clients/client/php/test/Model/ProjectServicesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/ProjectTest.php b/clients/client/php/test/Model/ProjectTest.php index 3845b9cfb1f..34536581eb5 100644 --- a/clients/client/php/test/Model/ProjectTest.php +++ b/clients/client/php/test/Model/ProjectTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/QuotaUsageTest.php b/clients/client/php/test/Model/QuotaUsageTest.php index 1751b424b28..799e9a49133 100644 --- a/clients/client/php/test/Model/QuotaUsageTest.php +++ b/clients/client/php/test/Model/QuotaUsageTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RFC6749ErrorJsonTest.php b/clients/client/php/test/Model/RFC6749ErrorJsonTest.php index d9d709550fd..86ba37c6a71 100644 --- a/clients/client/php/test/Model/RFC6749ErrorJsonTest.php +++ b/clients/client/php/test/Model/RFC6749ErrorJsonTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RecoveryCodeForIdentityTest.php b/clients/client/php/test/Model/RecoveryCodeForIdentityTest.php index b852f2105fa..d53adf57441 100644 --- a/clients/client/php/test/Model/RecoveryCodeForIdentityTest.php +++ b/clients/client/php/test/Model/RecoveryCodeForIdentityTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RecoveryFlowStateTest.php b/clients/client/php/test/Model/RecoveryFlowStateTest.php index 4b9a055f08d..b8518bc2a32 100644 --- a/clients/client/php/test/Model/RecoveryFlowStateTest.php +++ b/clients/client/php/test/Model/RecoveryFlowStateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RecoveryFlowTest.php b/clients/client/php/test/Model/RecoveryFlowTest.php index 8315bfa158a..8a048187bf1 100644 --- a/clients/client/php/test/Model/RecoveryFlowTest.php +++ b/clients/client/php/test/Model/RecoveryFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -152,6 +152,15 @@ public function testPropertyState() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "type" */ diff --git a/clients/client/php/test/Model/RecoveryIdentityAddressTest.php b/clients/client/php/test/Model/RecoveryIdentityAddressTest.php index 70b95950ff9..687d0fa761d 100644 --- a/clients/client/php/test/Model/RecoveryIdentityAddressTest.php +++ b/clients/client/php/test/Model/RecoveryIdentityAddressTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RecoveryLinkForIdentityTest.php b/clients/client/php/test/Model/RecoveryLinkForIdentityTest.php index b9464ae2b05..717f0028418 100644 --- a/clients/client/php/test/Model/RecoveryLinkForIdentityTest.php +++ b/clients/client/php/test/Model/RecoveryLinkForIdentityTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RegistrationFlowStateTest.php b/clients/client/php/test/Model/RegistrationFlowStateTest.php index a84d66334b1..e5b594de1a6 100644 --- a/clients/client/php/test/Model/RegistrationFlowStateTest.php +++ b/clients/client/php/test/Model/RegistrationFlowStateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RegistrationFlowTest.php b/clients/client/php/test/Model/RegistrationFlowTest.php index e2e51263c90..1643985bde5 100644 --- a/clients/client/php/test/Model/RegistrationFlowTest.php +++ b/clients/client/php/test/Model/RegistrationFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RejectOAuth2RequestTest.php b/clients/client/php/test/Model/RejectOAuth2RequestTest.php index 67c709b6f21..ad239b96528 100644 --- a/clients/client/php/test/Model/RejectOAuth2RequestTest.php +++ b/clients/client/php/test/Model/RejectOAuth2RequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RelationQueryTest.php b/clients/client/php/test/Model/RelationQueryTest.php index c5b8c8435da..ea8715e5ae2 100644 --- a/clients/client/php/test/Model/RelationQueryTest.php +++ b/clients/client/php/test/Model/RelationQueryTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RelationshipNamespacesTest.php b/clients/client/php/test/Model/RelationshipNamespacesTest.php index 169aa9e50df..bee7a1bdbc2 100644 --- a/clients/client/php/test/Model/RelationshipNamespacesTest.php +++ b/clients/client/php/test/Model/RelationshipNamespacesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RelationshipPatchTest.php b/clients/client/php/test/Model/RelationshipPatchTest.php index c6b131af5fa..0927335a5b7 100644 --- a/clients/client/php/test/Model/RelationshipPatchTest.php +++ b/clients/client/php/test/Model/RelationshipPatchTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RelationshipTest.php b/clients/client/php/test/Model/RelationshipTest.php index 05eb0f30688..b02484bf4ca 100644 --- a/clients/client/php/test/Model/RelationshipTest.php +++ b/clients/client/php/test/Model/RelationshipTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/RelationshipsTest.php b/clients/client/php/test/Model/RelationshipsTest.php index 6c49c6e07f1..adcd22f1f55 100644 --- a/clients/client/php/test/Model/RelationshipsTest.php +++ b/clients/client/php/test/Model/RelationshipsTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SchemaPatchTest.php b/clients/client/php/test/Model/SchemaPatchTest.php index 64df3c4519d..fd41fcb8ddb 100644 --- a/clients/client/php/test/Model/SchemaPatchTest.php +++ b/clients/client/php/test/Model/SchemaPatchTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SelfServiceFlowExpiredErrorTest.php b/clients/client/php/test/Model/SelfServiceFlowExpiredErrorTest.php index 45dfb287086..f1b8fced1b3 100644 --- a/clients/client/php/test/Model/SelfServiceFlowExpiredErrorTest.php +++ b/clients/client/php/test/Model/SelfServiceFlowExpiredErrorTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SessionActivityDatapointTest.php b/clients/client/php/test/Model/SessionActivityDatapointTest.php index bb31bc795ab..0db2480396f 100644 --- a/clients/client/php/test/Model/SessionActivityDatapointTest.php +++ b/clients/client/php/test/Model/SessionActivityDatapointTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SessionAuthenticationMethodTest.php b/clients/client/php/test/Model/SessionAuthenticationMethodTest.php index 83c3d08b273..dff3270a72a 100644 --- a/clients/client/php/test/Model/SessionAuthenticationMethodTest.php +++ b/clients/client/php/test/Model/SessionAuthenticationMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SessionDeviceTest.php b/clients/client/php/test/Model/SessionDeviceTest.php index 3bfb4d51b5f..6d66612335f 100644 --- a/clients/client/php/test/Model/SessionDeviceTest.php +++ b/clients/client/php/test/Model/SessionDeviceTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SessionTest.php b/clients/client/php/test/Model/SessionTest.php index c175176d788..79f20f6f9d0 100644 --- a/clients/client/php/test/Model/SessionTest.php +++ b/clients/client/php/test/Model/SessionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SetActiveProjectInConsoleBodyTest.php b/clients/client/php/test/Model/SetActiveProjectInConsoleBodyTest.php index 9d0214c592f..0ffd443151d 100644 --- a/clients/client/php/test/Model/SetActiveProjectInConsoleBodyTest.php +++ b/clients/client/php/test/Model/SetActiveProjectInConsoleBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SetCustomDomainBodyTest.php b/clients/client/php/test/Model/SetCustomDomainBodyTest.php index 3a5a7e69856..289a5a3173f 100644 --- a/clients/client/php/test/Model/SetCustomDomainBodyTest.php +++ b/clients/client/php/test/Model/SetCustomDomainBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SetEventStreamBodyTest.php b/clients/client/php/test/Model/SetEventStreamBodyTest.php index a1ca669961a..7007717aedb 100644 --- a/clients/client/php/test/Model/SetEventStreamBodyTest.php +++ b/clients/client/php/test/Model/SetEventStreamBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SetProjectBrandingThemeBodyTest.php b/clients/client/php/test/Model/SetProjectBrandingThemeBodyTest.php index 5105c9805f4..17c3521d62e 100644 --- a/clients/client/php/test/Model/SetProjectBrandingThemeBodyTest.php +++ b/clients/client/php/test/Model/SetProjectBrandingThemeBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SetProjectTest.php b/clients/client/php/test/Model/SetProjectTest.php index 7e9171fe2ce..aab4547c497 100644 --- a/clients/client/php/test/Model/SetProjectTest.php +++ b/clients/client/php/test/Model/SetProjectTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SettingsFlowStateTest.php b/clients/client/php/test/Model/SettingsFlowStateTest.php index fa4fbbc31aa..6bbf47a4662 100644 --- a/clients/client/php/test/Model/SettingsFlowStateTest.php +++ b/clients/client/php/test/Model/SettingsFlowStateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SettingsFlowTest.php b/clients/client/php/test/Model/SettingsFlowTest.php index 20d2cbf8b3c..618263a0477 100644 --- a/clients/client/php/test/Model/SettingsFlowTest.php +++ b/clients/client/php/test/Model/SettingsFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -161,6 +161,15 @@ public function testPropertyState() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "type" */ diff --git a/clients/client/php/test/Model/SourcePositionTest.php b/clients/client/php/test/Model/SourcePositionTest.php index c20fc1e2b9a..e2018e6563e 100644 --- a/clients/client/php/test/Model/SourcePositionTest.php +++ b/clients/client/php/test/Model/SourcePositionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SubjectSetTest.php b/clients/client/php/test/Model/SubjectSetTest.php index 65d342772c4..44e20e9740f 100644 --- a/clients/client/php/test/Model/SubjectSetTest.php +++ b/clients/client/php/test/Model/SubjectSetTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SubscriptionTest.php b/clients/client/php/test/Model/SubscriptionTest.php index f6ed45b0b06..59e8ce43471 100644 --- a/clients/client/php/test/Model/SubscriptionTest.php +++ b/clients/client/php/test/Model/SubscriptionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -116,6 +116,15 @@ public function testPropertyCurrentPlan() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "currentPlanDetails" + */ + public function testPropertyCurrentPlanDetails() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "customerId" */ @@ -188,6 +197,15 @@ public function testPropertyStatus() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "stripeCheckoutExpiresAt" + */ + public function testPropertyStripeCheckoutExpiresAt() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "updatedAt" */ diff --git a/clients/client/php/test/Model/SuccessfulCodeExchangeResponseTest.php b/clients/client/php/test/Model/SuccessfulCodeExchangeResponseTest.php index 94ee6e902fe..47fa0793964 100644 --- a/clients/client/php/test/Model/SuccessfulCodeExchangeResponseTest.php +++ b/clients/client/php/test/Model/SuccessfulCodeExchangeResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SuccessfulNativeLoginTest.php b/clients/client/php/test/Model/SuccessfulNativeLoginTest.php index 6f1e536e686..b26b2a77108 100644 --- a/clients/client/php/test/Model/SuccessfulNativeLoginTest.php +++ b/clients/client/php/test/Model/SuccessfulNativeLoginTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SuccessfulNativeRegistrationTest.php b/clients/client/php/test/Model/SuccessfulNativeRegistrationTest.php index a54905f0bf5..3658e96f28c 100644 --- a/clients/client/php/test/Model/SuccessfulNativeRegistrationTest.php +++ b/clients/client/php/test/Model/SuccessfulNativeRegistrationTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/SuccessfulProjectUpdateTest.php b/clients/client/php/test/Model/SuccessfulProjectUpdateTest.php index 84921397ab2..5ec5d48b427 100644 --- a/clients/client/php/test/Model/SuccessfulProjectUpdateTest.php +++ b/clients/client/php/test/Model/SuccessfulProjectUpdateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TokenPaginationHeadersTest.php b/clients/client/php/test/Model/TokenPaginationHeadersTest.php index 636165fbb7a..0fe5e050cdf 100644 --- a/clients/client/php/test/Model/TokenPaginationHeadersTest.php +++ b/clients/client/php/test/Model/TokenPaginationHeadersTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TokenPaginationRequestParametersTest.php b/clients/client/php/test/Model/TokenPaginationRequestParametersTest.php index 783f3adf82f..c5427d10ae1 100644 --- a/clients/client/php/test/Model/TokenPaginationRequestParametersTest.php +++ b/clients/client/php/test/Model/TokenPaginationRequestParametersTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TokenPaginationResponseHeadersTest.php b/clients/client/php/test/Model/TokenPaginationResponseHeadersTest.php index f9099b3d1fc..8810336f03b 100644 --- a/clients/client/php/test/Model/TokenPaginationResponseHeadersTest.php +++ b/clients/client/php/test/Model/TokenPaginationResponseHeadersTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TokenPaginationTest.php b/clients/client/php/test/Model/TokenPaginationTest.php index 7f6ef36866b..d5bd11eacea 100644 --- a/clients/client/php/test/Model/TokenPaginationTest.php +++ b/clients/client/php/test/Model/TokenPaginationTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php b/clients/client/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php index 33cbb720d8d..f93edb593be 100644 --- a/clients/client/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php +++ b/clients/client/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php b/clients/client/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php index 2641bf0add6..1d09bb7025f 100644 --- a/clients/client/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php +++ b/clients/client/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php b/clients/client/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php index fcfa89071a1..d6480389757 100644 --- a/clients/client/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php +++ b/clients/client/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiContainerTest.php b/clients/client/php/test/Model/UiContainerTest.php index 3e2933ccf01..7c24af3fbbc 100644 --- a/clients/client/php/test/Model/UiContainerTest.php +++ b/clients/client/php/test/Model/UiContainerTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeAnchorAttributesTest.php b/clients/client/php/test/Model/UiNodeAnchorAttributesTest.php index 72b2319f755..24fa7bf4812 100644 --- a/clients/client/php/test/Model/UiNodeAnchorAttributesTest.php +++ b/clients/client/php/test/Model/UiNodeAnchorAttributesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeAttributesTest.php b/clients/client/php/test/Model/UiNodeAttributesTest.php index fd0951592a8..5f50bf78b39 100644 --- a/clients/client/php/test/Model/UiNodeAttributesTest.php +++ b/clients/client/php/test/Model/UiNodeAttributesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeImageAttributesTest.php b/clients/client/php/test/Model/UiNodeImageAttributesTest.php index 66e575677a2..cd5a881cc4f 100644 --- a/clients/client/php/test/Model/UiNodeImageAttributesTest.php +++ b/clients/client/php/test/Model/UiNodeImageAttributesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeInputAttributesTest.php b/clients/client/php/test/Model/UiNodeInputAttributesTest.php index cc420b89276..cfba0da118d 100644 --- a/clients/client/php/test/Model/UiNodeInputAttributesTest.php +++ b/clients/client/php/test/Model/UiNodeInputAttributesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeMetaTest.php b/clients/client/php/test/Model/UiNodeMetaTest.php index 26fb2667d66..cf25908e2c6 100644 --- a/clients/client/php/test/Model/UiNodeMetaTest.php +++ b/clients/client/php/test/Model/UiNodeMetaTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeScriptAttributesTest.php b/clients/client/php/test/Model/UiNodeScriptAttributesTest.php index 7a1024ce2cd..f745cb10563 100644 --- a/clients/client/php/test/Model/UiNodeScriptAttributesTest.php +++ b/clients/client/php/test/Model/UiNodeScriptAttributesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeTest.php b/clients/client/php/test/Model/UiNodeTest.php index 858ef9c70cb..4dc4fb75fd0 100644 --- a/clients/client/php/test/Model/UiNodeTest.php +++ b/clients/client/php/test/Model/UiNodeTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiNodeTextAttributesTest.php b/clients/client/php/test/Model/UiNodeTextAttributesTest.php index f9527d21352..403239aff13 100644 --- a/clients/client/php/test/Model/UiNodeTextAttributesTest.php +++ b/clients/client/php/test/Model/UiNodeTextAttributesTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UiTextTest.php b/clients/client/php/test/Model/UiTextTest.php index c4ca86e368d..a74e559a703 100644 --- a/clients/client/php/test/Model/UiTextTest.php +++ b/clients/client/php/test/Model/UiTextTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateIdentityBodyTest.php b/clients/client/php/test/Model/UpdateIdentityBodyTest.php index b969edf9454..1d77b7e9755 100644 --- a/clients/client/php/test/Model/UpdateIdentityBodyTest.php +++ b/clients/client/php/test/Model/UpdateIdentityBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateLoginFlowBodyTest.php b/clients/client/php/test/Model/UpdateLoginFlowBodyTest.php index 31827c0f131..013186a6666 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowBodyTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -125,6 +125,15 @@ public function testPropertyPasswordIdentifier() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "idToken" */ diff --git a/clients/client/php/test/Model/UpdateLoginFlowWithCodeMethodTest.php b/clients/client/php/test/Model/UpdateLoginFlowWithCodeMethodTest.php index 08e2140c120..0975d791ef9 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowWithCodeMethodTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowWithCodeMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -124,4 +124,13 @@ public function testPropertyResend() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateLoginFlowWithLookupSecretMethodTest.php b/clients/client/php/test/Model/UpdateLoginFlowWithLookupSecretMethodTest.php index 7a9c6b44614..bc8cec26282 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowWithLookupSecretMethodTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowWithLookupSecretMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateLoginFlowWithOidcMethodTest.php b/clients/client/php/test/Model/UpdateLoginFlowWithOidcMethodTest.php index 5ed421910a2..06064de7510 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowWithOidcMethodTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowWithOidcMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -134,6 +134,15 @@ public function testPropertyTraits() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "upstreamParameters" */ diff --git a/clients/client/php/test/Model/UpdateLoginFlowWithPasswordMethodTest.php b/clients/client/php/test/Model/UpdateLoginFlowWithPasswordMethodTest.php index 88ecac1af6f..fe7e7d97e13 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowWithPasswordMethodTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowWithPasswordMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -124,4 +124,13 @@ public function testPropertyPasswordIdentifier() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateLoginFlowWithTotpMethodTest.php b/clients/client/php/test/Model/UpdateLoginFlowWithTotpMethodTest.php index 13884093a58..e45eac72788 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowWithTotpMethodTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowWithTotpMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -106,4 +106,13 @@ public function testPropertyTotpCode() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateLoginFlowWithWebAuthnMethodTest.php b/clients/client/php/test/Model/UpdateLoginFlowWithWebAuthnMethodTest.php index 474ed107c55..842cd2e061c 100644 --- a/clients/client/php/test/Model/UpdateLoginFlowWithWebAuthnMethodTest.php +++ b/clients/client/php/test/Model/UpdateLoginFlowWithWebAuthnMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -107,6 +107,15 @@ public function testPropertyMethod() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "webauthnLogin" */ diff --git a/clients/client/php/test/Model/UpdateRecoveryFlowBodyTest.php b/clients/client/php/test/Model/UpdateRecoveryFlowBodyTest.php index fa2800fe33a..ff2db43faea 100644 --- a/clients/client/php/test/Model/UpdateRecoveryFlowBodyTest.php +++ b/clients/client/php/test/Model/UpdateRecoveryFlowBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -107,6 +107,15 @@ public function testPropertyMethod() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "code" */ diff --git a/clients/client/php/test/Model/UpdateRecoveryFlowWithCodeMethodTest.php b/clients/client/php/test/Model/UpdateRecoveryFlowWithCodeMethodTest.php index e60995b6ac5..292e0281ebb 100644 --- a/clients/client/php/test/Model/UpdateRecoveryFlowWithCodeMethodTest.php +++ b/clients/client/php/test/Model/UpdateRecoveryFlowWithCodeMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -115,4 +115,13 @@ public function testPropertyMethod() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateRecoveryFlowWithLinkMethodTest.php b/clients/client/php/test/Model/UpdateRecoveryFlowWithLinkMethodTest.php index b8c0f719578..47da13b05c8 100644 --- a/clients/client/php/test/Model/UpdateRecoveryFlowWithLinkMethodTest.php +++ b/clients/client/php/test/Model/UpdateRecoveryFlowWithLinkMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -106,4 +106,13 @@ public function testPropertyMethod() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateRegistrationFlowBodyTest.php b/clients/client/php/test/Model/UpdateRegistrationFlowBodyTest.php index 5087924c210..d2ef9de00b9 100644 --- a/clients/client/php/test/Model/UpdateRegistrationFlowBodyTest.php +++ b/clients/client/php/test/Model/UpdateRegistrationFlowBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateRegistrationFlowWithCodeMethodTest.php b/clients/client/php/test/Model/UpdateRegistrationFlowWithCodeMethodTest.php index 3b2448f64e5..63b7c12077c 100644 --- a/clients/client/php/test/Model/UpdateRegistrationFlowWithCodeMethodTest.php +++ b/clients/client/php/test/Model/UpdateRegistrationFlowWithCodeMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateRegistrationFlowWithOidcMethodTest.php b/clients/client/php/test/Model/UpdateRegistrationFlowWithOidcMethodTest.php index e3574dd500a..03b5bf6141e 100644 --- a/clients/client/php/test/Model/UpdateRegistrationFlowWithOidcMethodTest.php +++ b/clients/client/php/test/Model/UpdateRegistrationFlowWithOidcMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateRegistrationFlowWithPasswordMethodTest.php b/clients/client/php/test/Model/UpdateRegistrationFlowWithPasswordMethodTest.php index 08e3ee48c34..051a9fcd079 100644 --- a/clients/client/php/test/Model/UpdateRegistrationFlowWithPasswordMethodTest.php +++ b/clients/client/php/test/Model/UpdateRegistrationFlowWithPasswordMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateRegistrationFlowWithWebAuthnMethodTest.php b/clients/client/php/test/Model/UpdateRegistrationFlowWithWebAuthnMethodTest.php index e2e51b96861..a06acab1795 100644 --- a/clients/client/php/test/Model/UpdateRegistrationFlowWithWebAuthnMethodTest.php +++ b/clients/client/php/test/Model/UpdateRegistrationFlowWithWebAuthnMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/UpdateSettingsFlowBodyTest.php b/clients/client/php/test/Model/UpdateSettingsFlowBodyTest.php index 70ee727a20e..315db22fc2e 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowBodyTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -107,6 +107,15 @@ public function testPropertyPassword() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "traits" */ diff --git a/clients/client/php/test/Model/UpdateSettingsFlowWithLookupMethodTest.php b/clients/client/php/test/Model/UpdateSettingsFlowWithLookupMethodTest.php index 9ca2ad0e525..387245edba6 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowWithLookupMethodTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowWithLookupMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -133,4 +133,13 @@ public function testPropertyMethod() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateSettingsFlowWithOidcMethodTest.php b/clients/client/php/test/Model/UpdateSettingsFlowWithOidcMethodTest.php index b5f89a798a6..eeb9e167410 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowWithOidcMethodTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowWithOidcMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -116,6 +116,15 @@ public function testPropertyTraits() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "unlink" */ diff --git a/clients/client/php/test/Model/UpdateSettingsFlowWithPasswordMethodTest.php b/clients/client/php/test/Model/UpdateSettingsFlowWithPasswordMethodTest.php index bcf840c6298..ea320a95b66 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowWithPasswordMethodTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowWithPasswordMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -106,4 +106,13 @@ public function testPropertyPassword() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateSettingsFlowWithProfileMethodTest.php b/clients/client/php/test/Model/UpdateSettingsFlowWithProfileMethodTest.php index c3389bbc4ff..15029bf40a3 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowWithProfileMethodTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowWithProfileMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -106,4 +106,13 @@ public function testPropertyTraits() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateSettingsFlowWithTotpMethodTest.php b/clients/client/php/test/Model/UpdateSettingsFlowWithTotpMethodTest.php index afa4fc29c7a..4a4530990c5 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowWithTotpMethodTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowWithTotpMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -115,4 +115,13 @@ public function testPropertyTotpUnlink() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateSettingsFlowWithWebAuthnMethodTest.php b/clients/client/php/test/Model/UpdateSettingsFlowWithWebAuthnMethodTest.php index e8c4eaa25c4..40d90838471 100644 --- a/clients/client/php/test/Model/UpdateSettingsFlowWithWebAuthnMethodTest.php +++ b/clients/client/php/test/Model/UpdateSettingsFlowWithWebAuthnMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -98,6 +98,15 @@ public function testPropertyMethod() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "webauthnRegister" */ diff --git a/clients/client/php/test/Model/UpdateSubscriptionBodyTest.php b/clients/client/php/test/Model/UpdateSubscriptionBodyTest.php index ac328ac5d25..fb89d4b0db2 100644 --- a/clients/client/php/test/Model/UpdateSubscriptionBodyTest.php +++ b/clients/client/php/test/Model/UpdateSubscriptionBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -35,7 +35,7 @@ * UpdateSubscriptionBodyTest Class Doc Comment * * @category Class - * @description Update Subscription Request Body + * @description UpdateSubscriptionBody * @package Ory\Client * @author OpenAPI Generator team * @link https://openapi-generator.tech diff --git a/clients/client/php/test/Model/UpdateVerificationFlowBodyTest.php b/clients/client/php/test/Model/UpdateVerificationFlowBodyTest.php index 5e21d6de94d..f74ebdb3c1f 100644 --- a/clients/client/php/test/Model/UpdateVerificationFlowBodyTest.php +++ b/clients/client/php/test/Model/UpdateVerificationFlowBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -107,6 +107,15 @@ public function testPropertyMethod() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "code" */ diff --git a/clients/client/php/test/Model/UpdateVerificationFlowWithCodeMethodTest.php b/clients/client/php/test/Model/UpdateVerificationFlowWithCodeMethodTest.php index 6ada9b0389b..134f8fc16d0 100644 --- a/clients/client/php/test/Model/UpdateVerificationFlowWithCodeMethodTest.php +++ b/clients/client/php/test/Model/UpdateVerificationFlowWithCodeMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -115,4 +115,13 @@ public function testPropertyMethod() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/UpdateVerificationFlowWithLinkMethodTest.php b/clients/client/php/test/Model/UpdateVerificationFlowWithLinkMethodTest.php index e5d15d8f6a7..f35cf538b60 100644 --- a/clients/client/php/test/Model/UpdateVerificationFlowWithLinkMethodTest.php +++ b/clients/client/php/test/Model/UpdateVerificationFlowWithLinkMethodTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -106,4 +106,13 @@ public function testPropertyMethod() // TODO: implement $this->markTestIncomplete('Not implemented'); } + + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } } diff --git a/clients/client/php/test/Model/IdentityStateTest.php b/clients/client/php/test/Model/UpdateWorkspacePayloadTest.php similarity index 75% rename from clients/client/php/test/Model/IdentityStateTest.php rename to clients/client/php/test/Model/UpdateWorkspacePayloadTest.php index c349554c885..8157aafbe68 100644 --- a/clients/client/php/test/Model/IdentityStateTest.php +++ b/clients/client/php/test/Model/UpdateWorkspacePayloadTest.php @@ -1,6 +1,6 @@ markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "name" + */ + public function testPropertyName() { // TODO: implement $this->markTestIncomplete('Not implemented'); diff --git a/clients/client/php/test/Model/UsageTest.php b/clients/client/php/test/Model/UsageTest.php index bce4dd473bd..70c05b9175f 100644 --- a/clients/client/php/test/Model/UsageTest.php +++ b/clients/client/php/test/Model/UsageTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/VerifiableCredentialPrimingResponseTest.php b/clients/client/php/test/Model/VerifiableCredentialPrimingResponseTest.php index 449adc00d97..54a7ec55773 100644 --- a/clients/client/php/test/Model/VerifiableCredentialPrimingResponseTest.php +++ b/clients/client/php/test/Model/VerifiableCredentialPrimingResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/VerifiableCredentialProofTest.php b/clients/client/php/test/Model/VerifiableCredentialProofTest.php index 61cfcb5bdf3..0977e5dfc43 100644 --- a/clients/client/php/test/Model/VerifiableCredentialProofTest.php +++ b/clients/client/php/test/Model/VerifiableCredentialProofTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/VerifiableCredentialResponseTest.php b/clients/client/php/test/Model/VerifiableCredentialResponseTest.php index a20c6672d6c..c44ce61f36c 100644 --- a/clients/client/php/test/Model/VerifiableCredentialResponseTest.php +++ b/clients/client/php/test/Model/VerifiableCredentialResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/VerifiableIdentityAddressTest.php b/clients/client/php/test/Model/VerifiableIdentityAddressTest.php index f8d8450c805..a3fa192fbf1 100644 --- a/clients/client/php/test/Model/VerifiableIdentityAddressTest.php +++ b/clients/client/php/test/Model/VerifiableIdentityAddressTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/VerificationFlowStateTest.php b/clients/client/php/test/Model/VerificationFlowStateTest.php index 3575bd8bf5b..7ed32da4536 100644 --- a/clients/client/php/test/Model/VerificationFlowStateTest.php +++ b/clients/client/php/test/Model/VerificationFlowStateTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/VerificationFlowTest.php b/clients/client/php/test/Model/VerificationFlowTest.php index b14c26a198b..344b2ad676c 100644 --- a/clients/client/php/test/Model/VerificationFlowTest.php +++ b/clients/client/php/test/Model/VerificationFlowTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -143,6 +143,15 @@ public function testPropertyState() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "transientPayload" + */ + public function testPropertyTransientPayload() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "type" */ diff --git a/clients/client/php/test/Model/VersionTest.php b/clients/client/php/test/Model/VersionTest.php index 8e7d4a4ef90..5451c64d7ec 100644 --- a/clients/client/php/test/Model/VersionTest.php +++ b/clients/client/php/test/Model/VersionTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/WarningTest.php b/clients/client/php/test/Model/WarningTest.php index 4ab0ab0d95d..f2270ed5617 100644 --- a/clients/client/php/test/Model/WarningTest.php +++ b/clients/client/php/test/Model/WarningTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/php/test/Model/WorkspaceMetaTest.php b/clients/client/php/test/Model/WorkspaceMetaTest.php new file mode 100644 index 00000000000..088f77e76f6 --- /dev/null +++ b/clients/client/php/test/Model/WorkspaceMetaTest.php @@ -0,0 +1,136 @@ +markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "createdAt" + */ + public function testPropertyCreatedAt() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "id" + */ + public function testPropertyId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "name" + */ + public function testPropertyName() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "subscriptionId" + */ + public function testPropertySubscriptionId() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "subscriptionPlan" + */ + public function testPropertySubscriptionPlan() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + + /** + * Test attribute "updatedAt" + */ + public function testPropertyUpdatedAt() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } +} diff --git a/clients/client/php/test/Model/WorkspaceTest.php b/clients/client/php/test/Model/WorkspaceTest.php index 8883c23c23f..99b1c26b0bf 100644 --- a/clients/client/php/test/Model/WorkspaceTest.php +++ b/clients/client/php/test/Model/WorkspaceTest.php @@ -15,7 +15,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/client/python/.openapi-generator/FILES b/clients/client/python/.openapi-generator/FILES index c939774cadd..d82cab138a1 100644 --- a/clients/client/python/.openapi-generator/FILES +++ b/clients/client/python/.openapi-generator/FILES @@ -42,8 +42,11 @@ docs/CreateRecoveryCodeForIdentityBody.md docs/CreateRecoveryLinkForIdentityBody.md docs/CreateRelationshipBody.md docs/CreateSubscriptionBody.md +docs/CreateSubscriptionCommon.md docs/CreateVerifiableCredentialRequestBody.md docs/CreateWorkspaceMemberInviteBody.md +docs/CreateWorkspacePayload.md +docs/CreateWorkspaceSubscriptionBody.md docs/CredentialSupportedDraft00.md docs/CustomDomain.md docs/DeleteMySessionsCount.md @@ -81,14 +84,12 @@ 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/IdentitySchemaPreset.md docs/IdentitySchemaPresets.md docs/IdentitySchemas.md -docs/IdentityState.md docs/IdentityWithCredentials.md docs/IdentityWithCredentialsOidc.md docs/IdentityWithCredentialsOidcConfig.md @@ -99,7 +100,6 @@ docs/InternalGetProjectBrandingBody.md docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md docs/InternalIsOwnerForProjectBySlugBody.md docs/InternalIsOwnerForProjectBySlugResponse.md -docs/InternalProvisionMockSubscription.md docs/IntrospectedOAuth2Token.md docs/IsOwnerForProjectBySlug.md docs/IsReady200Response.md @@ -115,6 +115,7 @@ docs/ListCustomDomains.md docs/ListEventStreams.md docs/ListMyWorkspacesResponse.md docs/ListOrganizationsResponse.md +docs/ListWorkspaceProjectsResponse.md docs/LoginFlow.md docs/LoginFlowState.md docs/LogoutFlow.md @@ -127,6 +128,7 @@ docs/Message.md docs/MessageDispatch.md docs/MetadataApi.md docs/MetricsDatapoint.md +docs/MigrationOptions.md docs/Namespace.md docs/NeedsPrivilegedSessionError.md docs/NormalizedProject.md @@ -164,8 +166,10 @@ docs/PatchIdentitiesBody.md docs/PerformNativeLogoutBody.md docs/PermissionApi.md docs/PermissionsOnProject.md +docs/PermissionsOnWorkpaceResponse.md docs/Plan.md docs/PlanDetails.md +docs/PlanFeatures.md docs/Plans.md docs/PostCheckPermissionBody.md docs/PostCheckPermissionOrErrorBody.md @@ -227,7 +231,6 @@ docs/SettingsFlow.md docs/SettingsFlowState.md docs/SourcePosition.md docs/StringSliceJSONFormat.md -docs/StripeCustomer.md docs/SubjectSet.md docs/Subscription.md docs/SuccessfulCodeExchangeResponse.md @@ -281,6 +284,7 @@ docs/UpdateSubscriptionBody.md docs/UpdateVerificationFlowBody.md docs/UpdateVerificationFlowWithCodeMethod.md docs/UpdateVerificationFlowWithLinkMethod.md +docs/UpdateWorkspacePayload.md docs/Usage.md docs/VerifiableCredentialPrimingResponse.md docs/VerifiableCredentialProof.md @@ -292,6 +296,7 @@ docs/Version.md docs/Warning.md docs/WellknownApi.md docs/Workspace.md +docs/WorkspaceMeta.md docs/Workspaces.md git_push.sh ory_client/__init__.py @@ -351,8 +356,11 @@ ory_client/model/create_recovery_code_for_identity_body.py ory_client/model/create_recovery_link_for_identity_body.py ory_client/model/create_relationship_body.py ory_client/model/create_subscription_body.py +ory_client/model/create_subscription_common.py ory_client/model/create_verifiable_credential_request_body.py ory_client/model/create_workspace_member_invite_body.py +ory_client/model/create_workspace_payload.py +ory_client/model/create_workspace_subscription_body.py ory_client/model/credential_supported_draft00.py ory_client/model/custom_domain.py ory_client/model/delete_my_sessions_count.py @@ -387,14 +395,12 @@ ory_client/model/identity_credentials_code.py ory_client/model/identity_credentials_oidc.py ory_client/model/identity_credentials_oidc_provider.py ory_client/model/identity_credentials_password.py -ory_client/model/identity_credentials_type.py ory_client/model/identity_patch.py ory_client/model/identity_patch_response.py ory_client/model/identity_schema_container.py ory_client/model/identity_schema_preset.py ory_client/model/identity_schema_presets.py ory_client/model/identity_schemas.py -ory_client/model/identity_state.py ory_client/model/identity_with_credentials.py ory_client/model/identity_with_credentials_oidc.py ory_client/model/identity_with_credentials_oidc_config.py @@ -405,7 +411,6 @@ ory_client/model/internal_get_project_branding_body.py ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py ory_client/model/internal_is_owner_for_project_by_slug_body.py ory_client/model/internal_is_owner_for_project_by_slug_response.py -ory_client/model/internal_provision_mock_subscription.py ory_client/model/introspected_o_auth2_token.py ory_client/model/is_owner_for_project_by_slug.py ory_client/model/is_ready200_response.py @@ -420,6 +425,7 @@ ory_client/model/list_custom_domains.py ory_client/model/list_event_streams.py ory_client/model/list_my_workspaces_response.py ory_client/model/list_organizations_response.py +ory_client/model/list_workspace_projects_response.py ory_client/model/login_flow.py ory_client/model/login_flow_state.py ory_client/model/logout_flow.py @@ -431,6 +437,7 @@ ory_client/model/member_invites.py ory_client/model/message.py ory_client/model/message_dispatch.py ory_client/model/metrics_datapoint.py +ory_client/model/migration_options.py ory_client/model/namespace.py ory_client/model/needs_privileged_session_error.py ory_client/model/normalized_project.py @@ -465,8 +472,10 @@ ory_client/model/parse_error.py ory_client/model/patch_identities_body.py ory_client/model/perform_native_logout_body.py ory_client/model/permissions_on_project.py +ory_client/model/permissions_on_workpace_response.py ory_client/model/plan.py ory_client/model/plan_details.py +ory_client/model/plan_features.py ory_client/model/plans.py ory_client/model/post_check_permission_body.py ory_client/model/post_check_permission_or_error_body.py @@ -526,7 +535,6 @@ ory_client/model/settings_flow.py ory_client/model/settings_flow_state.py ory_client/model/source_position.py ory_client/model/string_slice_json_format.py -ory_client/model/stripe_customer.py ory_client/model/subject_set.py ory_client/model/subscription.py ory_client/model/successful_code_exchange_response.py @@ -580,6 +588,7 @@ ory_client/model/update_subscription_body.py ory_client/model/update_verification_flow_body.py ory_client/model/update_verification_flow_with_code_method.py ory_client/model/update_verification_flow_with_link_method.py +ory_client/model/update_workspace_payload.py ory_client/model/usage.py ory_client/model/verifiable_credential_priming_response.py ory_client/model/verifiable_credential_proof.py @@ -590,6 +599,7 @@ ory_client/model/verification_flow_state.py ory_client/model/version.py ory_client/model/warning.py ory_client/model/workspace.py +ory_client/model/workspace_meta.py ory_client/model/workspaces.py ory_client/model_utils.py ory_client/models/__init__.py @@ -638,8 +648,11 @@ test/test_create_recovery_code_for_identity_body.py test/test_create_recovery_link_for_identity_body.py test/test_create_relationship_body.py test/test_create_subscription_body.py +test/test_create_subscription_common.py test/test_create_verifiable_credential_request_body.py test/test_create_workspace_member_invite_body.py +test/test_create_workspace_payload.py +test/test_create_workspace_subscription_body.py test/test_credential_supported_draft00.py test/test_custom_domain.py test/test_delete_my_sessions_count.py @@ -677,14 +690,12 @@ test/test_identity_credentials_code.py test/test_identity_credentials_oidc.py test/test_identity_credentials_oidc_provider.py test/test_identity_credentials_password.py -test/test_identity_credentials_type.py test/test_identity_patch.py test/test_identity_patch_response.py test/test_identity_schema_container.py test/test_identity_schema_preset.py test/test_identity_schema_presets.py test/test_identity_schemas.py -test/test_identity_state.py test/test_identity_with_credentials.py test/test_identity_with_credentials_oidc.py test/test_identity_with_credentials_oidc_config.py @@ -695,7 +706,6 @@ test/test_internal_get_project_branding_body.py test/test_internal_is_ax_welcome_screen_enabled_for_project_body.py test/test_internal_is_owner_for_project_by_slug_body.py test/test_internal_is_owner_for_project_by_slug_response.py -test/test_internal_provision_mock_subscription.py test/test_introspected_o_auth2_token.py test/test_is_owner_for_project_by_slug.py test/test_is_ready200_response.py @@ -711,6 +721,7 @@ test/test_list_custom_domains.py test/test_list_event_streams.py test/test_list_my_workspaces_response.py test/test_list_organizations_response.py +test/test_list_workspace_projects_response.py test/test_login_flow.py test/test_login_flow_state.py test/test_logout_flow.py @@ -723,6 +734,7 @@ test/test_message.py test/test_message_dispatch.py test/test_metadata_api.py test/test_metrics_datapoint.py +test/test_migration_options.py test/test_namespace.py test/test_needs_privileged_session_error.py test/test_normalized_project.py @@ -760,8 +772,10 @@ test/test_patch_identities_body.py test/test_perform_native_logout_body.py test/test_permission_api.py test/test_permissions_on_project.py +test/test_permissions_on_workpace_response.py test/test_plan.py test/test_plan_details.py +test/test_plan_features.py test/test_plans.py test/test_post_check_permission_body.py test/test_post_check_permission_or_error_body.py @@ -823,7 +837,6 @@ test/test_settings_flow.py test/test_settings_flow_state.py test/test_source_position.py test/test_string_slice_json_format.py -test/test_stripe_customer.py test/test_subject_set.py test/test_subscription.py test/test_successful_code_exchange_response.py @@ -877,6 +890,7 @@ test/test_update_subscription_body.py test/test_update_verification_flow_body.py test/test_update_verification_flow_with_code_method.py test/test_update_verification_flow_with_link_method.py +test/test_update_workspace_payload.py test/test_usage.py test/test_verifiable_credential_priming_response.py test/test_verifiable_credential_proof.py @@ -888,5 +902,6 @@ test/test_version.py test/test_warning.py test/test_wellknown_api.py test/test_workspace.py +test/test_workspace_meta.py test/test_workspaces.py tox.ini diff --git a/clients/client/python/README.md b/clients/client/python/README.md index 18601c99450..87d8643f9db 100644 --- a/clients/client/python/README.md +++ b/clients/client/python/README.md @@ -5,8 +5,8 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.5.1 -- Package version: v1.5.1 +- API version: v1.8.1 +- Package version: v1.8.1 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. @@ -265,8 +265,11 @@ Class | Method | HTTP request | Description - [CreateRecoveryLinkForIdentityBody](docs/CreateRecoveryLinkForIdentityBody.md) - [CreateRelationshipBody](docs/CreateRelationshipBody.md) - [CreateSubscriptionBody](docs/CreateSubscriptionBody.md) + - [CreateSubscriptionCommon](docs/CreateSubscriptionCommon.md) - [CreateVerifiableCredentialRequestBody](docs/CreateVerifiableCredentialRequestBody.md) - [CreateWorkspaceMemberInviteBody](docs/CreateWorkspaceMemberInviteBody.md) + - [CreateWorkspacePayload](docs/CreateWorkspacePayload.md) + - [CreateWorkspaceSubscriptionBody](docs/CreateWorkspaceSubscriptionBody.md) - [CredentialSupportedDraft00](docs/CredentialSupportedDraft00.md) - [CustomDomain](docs/CustomDomain.md) - [DeleteMySessionsCount](docs/DeleteMySessionsCount.md) @@ -301,14 +304,12 @@ Class | Method | HTTP request | Description - [IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](docs/IdentityCredentialsType.md) - [IdentityPatch](docs/IdentityPatch.md) - [IdentityPatchResponse](docs/IdentityPatchResponse.md) - [IdentitySchemaContainer](docs/IdentitySchemaContainer.md) - [IdentitySchemaPreset](docs/IdentitySchemaPreset.md) - [IdentitySchemaPresets](docs/IdentitySchemaPresets.md) - [IdentitySchemas](docs/IdentitySchemas.md) - - [IdentityState](docs/IdentityState.md) - [IdentityWithCredentials](docs/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](docs/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](docs/IdentityWithCredentialsOidcConfig.md) @@ -319,7 +320,6 @@ Class | Method | HTTP request | Description - [InternalIsAXWelcomeScreenEnabledForProjectBody](docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md) - [InternalIsOwnerForProjectBySlugBody](docs/InternalIsOwnerForProjectBySlugBody.md) - [InternalIsOwnerForProjectBySlugResponse](docs/InternalIsOwnerForProjectBySlugResponse.md) - - [InternalProvisionMockSubscription](docs/InternalProvisionMockSubscription.md) - [IntrospectedOAuth2Token](docs/IntrospectedOAuth2Token.md) - [IsOwnerForProjectBySlug](docs/IsOwnerForProjectBySlug.md) - [IsReady200Response](docs/IsReady200Response.md) @@ -334,6 +334,7 @@ Class | Method | HTTP request | Description - [ListEventStreams](docs/ListEventStreams.md) - [ListMyWorkspacesResponse](docs/ListMyWorkspacesResponse.md) - [ListOrganizationsResponse](docs/ListOrganizationsResponse.md) + - [ListWorkspaceProjectsResponse](docs/ListWorkspaceProjectsResponse.md) - [LoginFlow](docs/LoginFlow.md) - [LoginFlowState](docs/LoginFlowState.md) - [LogoutFlow](docs/LogoutFlow.md) @@ -345,6 +346,7 @@ Class | Method | HTTP request | Description - [Message](docs/Message.md) - [MessageDispatch](docs/MessageDispatch.md) - [MetricsDatapoint](docs/MetricsDatapoint.md) + - [MigrationOptions](docs/MigrationOptions.md) - [Namespace](docs/Namespace.md) - [NeedsPrivilegedSessionError](docs/NeedsPrivilegedSessionError.md) - [NormalizedProject](docs/NormalizedProject.md) @@ -379,8 +381,10 @@ Class | Method | HTTP request | Description - [PatchIdentitiesBody](docs/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](docs/PerformNativeLogoutBody.md) - [PermissionsOnProject](docs/PermissionsOnProject.md) + - [PermissionsOnWorkpaceResponse](docs/PermissionsOnWorkpaceResponse.md) - [Plan](docs/Plan.md) - [PlanDetails](docs/PlanDetails.md) + - [PlanFeatures](docs/PlanFeatures.md) - [Plans](docs/Plans.md) - [PostCheckPermissionBody](docs/PostCheckPermissionBody.md) - [PostCheckPermissionOrErrorBody](docs/PostCheckPermissionOrErrorBody.md) @@ -440,7 +444,6 @@ Class | Method | HTTP request | Description - [SettingsFlowState](docs/SettingsFlowState.md) - [SourcePosition](docs/SourcePosition.md) - [StringSliceJSONFormat](docs/StringSliceJSONFormat.md) - - [StripeCustomer](docs/StripeCustomer.md) - [SubjectSet](docs/SubjectSet.md) - [Subscription](docs/Subscription.md) - [SuccessfulCodeExchangeResponse](docs/SuccessfulCodeExchangeResponse.md) @@ -494,6 +497,7 @@ Class | Method | HTTP request | Description - [UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md) - [UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md) - [UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md) + - [UpdateWorkspacePayload](docs/UpdateWorkspacePayload.md) - [Usage](docs/Usage.md) - [VerifiableCredentialPrimingResponse](docs/VerifiableCredentialPrimingResponse.md) - [VerifiableCredentialProof](docs/VerifiableCredentialProof.md) @@ -504,6 +508,7 @@ Class | Method | HTTP request | Description - [Version](docs/Version.md) - [Warning](docs/Warning.md) - [Workspace](docs/Workspace.md) + - [WorkspaceMeta](docs/WorkspaceMeta.md) - [Workspaces](docs/Workspaces.md) diff --git a/clients/client/python/docs/AcceptOAuth2ConsentRequest.md b/clients/client/python/docs/AcceptOAuth2ConsentRequest.md index d871d7f7eef..be9b64fe4b3 100644 --- a/clients/client/python/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/client/python/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] **grant_access_token_audience** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **grant_scope** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **handled_at** | **datetime** | | [optional] diff --git a/clients/client/python/docs/CloudAccount.md b/clients/client/python/docs/CloudAccount.md index c9e368ebdea..2c654bf4e3e 100644 --- a/clients/client/python/docs/CloudAccount.md +++ b/clients/client/python/docs/CloudAccount.md @@ -4,9 +4,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | **str** | | [optional] -**id** | **str** | | [optional] -**name** | **str** | | [optional] +**email** | **str** | | +**id** | **str** | | +**name** | **str** | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/CreateIdentityBody.md b/clients/client/python/docs/CreateIdentityBody.md index 083515a4f0f..ac1dc2224c2 100644 --- a/clients/client/python/docs/CreateIdentityBody.md +++ b/clients/client/python/docs/CreateIdentityBody.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **metadata_admin** | **bool, date, datetime, dict, float, int, list, str, none_type** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] **metadata_public** | **bool, date, datetime, dict, float, int, list, str, none_type** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **recovery_addresses** | [**[RecoveryIdentityAddress]**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] -**state** | [**IdentityState**](IdentityState.md) | | [optional] +**state** | **str** | State is the identity's state. active StateActive inactive StateInactive | [optional] **verifiable_addresses** | [**[VerifiableIdentityAddress]**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/CreateProjectBody.md b/clients/client/python/docs/CreateProjectBody.md index 4584fdbda6d..08c8467c86a 100644 --- a/clients/client/python/docs/CreateProjectBody.md +++ b/clients/client/python/docs/CreateProjectBody.md @@ -5,6 +5,7 @@ Create Project Request Body ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**environment** | **str** | The environment of the project. prod Production dev Development | **name** | **str** | The name of the project to be created | **workspace_id** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/CreateProjectNormalizedPayload.md b/clients/client/python/docs/CreateProjectNormalizedPayload.md index b2bb23af11f..9982ef366dd 100644 --- a/clients/client/python/docs/CreateProjectNormalizedPayload.md +++ b/clients/client/python/docs/CreateProjectNormalizedPayload.md @@ -5,15 +5,18 @@ Create project (normalized) request payload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**environment** | **str** | prod Production dev Development | **name** | **str** | The project's name. | **created_at** | **datetime** | The Project's Revision Creation Date | [optional] [readonly] **disable_account_experience_welcome_screen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enable_ax_v2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] **hydra_oauth2_allowed_top_level_claims** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **hydra_oauth2_client_credentials_default_grant_allowed_scope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydra_oauth2_exclude_not_before_claim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydra_oauth2_grant_jwt_iat_optional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_jti_optional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_max_ttl** | **str** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] if omitted the server will use the default value of "720h" +**hydra_oauth2_mirror_top_level_claims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydra_oauth2_pkce_enforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydra_oauth2_pkce_enforced_for_public_clients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydra_oauth2_refresh_token_hook** | **str** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -72,6 +75,7 @@ Name | Type | Description | Notes **kratos_courier_templates_login_code_valid_email_body_html** | **str** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_body_plaintext** | **str** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_subject** | **str** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratos_courier_templates_login_code_valid_sms_body_plaintext** | **str** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_html** | **str** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_plaintext** | **str** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_subject** | **str** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -157,6 +161,7 @@ Name | Type | Description | Notes **kratos_selfservice_flows_verification_use** | **str** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratos_selfservice_methods_code_config_lifespan** | **str** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratos_selfservice_methods_code_enabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratos_selfservice_methods_code_mfa_enabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratos_selfservice_methods_code_passwordless_enabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratos_selfservice_methods_link_config_base_url** | **str** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratos_selfservice_methods_link_config_lifespan** | **str** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/python/docs/CreateSubscriptionBody.md b/clients/client/python/docs/CreateSubscriptionBody.md index e4d6a13bd9a..6b6065900a7 100644 --- a/clients/client/python/docs/CreateSubscriptionBody.md +++ b/clients/client/python/docs/CreateSubscriptionBody.md @@ -1,16 +1,14 @@ # CreateSubscriptionBody -Create Subscription Request Body ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **interval** | **str** | monthly Monthly yearly Yearly | **plan** | **str** | | +**provision_first_project** | **str** | | **currency** | **str** | usd USD eur Euro | [optional] -**provision_first_project** | **str, none_type** | | [optional] **return_to** | **str** | | [optional] -**workspace** | **str, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/InternalProvisionMockSubscription.md b/clients/client/python/docs/CreateSubscriptionCommon.md similarity index 60% rename from clients/client/python/docs/InternalProvisionMockSubscription.md rename to clients/client/python/docs/CreateSubscriptionCommon.md index 0381ef18ed5..1d4b476ac59 100644 --- a/clients/client/python/docs/InternalProvisionMockSubscription.md +++ b/clients/client/python/docs/CreateSubscriptionCommon.md @@ -1,14 +1,13 @@ -# InternalProvisionMockSubscription +# CreateSubscriptionCommon -Internal Provision Mock Subscription Request Body ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**currency** | **str** | Currency usd USD eur Euro | -**identity_id** | **str** | Identity ID | -**interval** | **str** | Billing Interval monthly Monthly yearly Yearly | -**plan** | **str** | Plan ID | +**interval** | **str** | monthly Monthly yearly Yearly | +**plan** | **str** | | +**currency** | **str** | usd USD eur Euro | [optional] +**return_to** | **str** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/StripeCustomer.md b/clients/client/python/docs/CreateWorkspacePayload.md similarity index 85% rename from clients/client/python/docs/StripeCustomer.md rename to clients/client/python/docs/CreateWorkspacePayload.md index ee0cc12bb0c..3f2b4ff2ee2 100644 --- a/clients/client/python/docs/StripeCustomer.md +++ b/clients/client/python/docs/CreateWorkspacePayload.md @@ -1,10 +1,10 @@ -# StripeCustomer +# CreateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | **str** | | [optional] +**name** | **str** | The name of the workspace | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/CreateWorkspaceSubscriptionBody.md b/clients/client/python/docs/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..7a17e30cb7f --- /dev/null +++ b/clients/client/python/docs/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,15 @@ +# CreateWorkspaceSubscriptionBody + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**interval** | **str** | monthly Monthly yearly Yearly | +**plan** | **str** | | +**currency** | **str** | usd USD eur Euro | [optional] +**return_to** | **str** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/docs/FrontendApi.md b/clients/client/python/docs/FrontendApi.md index 5b7282fb009..7fb7e000347 100644 --- a/clients/client/python/docs/FrontendApi.md +++ b/clients/client/python/docs/FrontendApi.md @@ -70,12 +70,13 @@ with ory_client.ApiClient() as api_client: cookie = "Cookie_example" # str | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) login_challenge = "login_challenge_example" # str | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) organization = "organization_example" # str | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) + via = "via_example" # str | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) # example passing only required values which don't have defaults set # and optional values try: # Create Login Flow for Browsers - api_response = api_instance.create_browser_login_flow(refresh=refresh, aal=aal, return_to=return_to, cookie=cookie, login_challenge=login_challenge, organization=organization) + api_response = api_instance.create_browser_login_flow(refresh=refresh, aal=aal, return_to=return_to, cookie=cookie, login_challenge=login_challenge, organization=organization, via=via) pprint(api_response) except ory_client.ApiException as e: print("Exception when calling FrontendApi->create_browser_login_flow: %s\n" % e) @@ -92,6 +93,7 @@ Name | Type | Description | Notes **cookie** | **str**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] **login_challenge** | **str**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] **organization** | **str**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] + **via** | **str**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type @@ -521,12 +523,13 @@ with ory_client.ApiClient() as api_client: x_session_token = "X-Session-Token_example" # str | The Session Token of the Identity performing the settings flow. (optional) return_session_token_exchange_code = True # bool | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) return_to = "return_to_example" # str | The URL to return the browser to after the flow was completed. (optional) + via = "via_example" # str | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) # example passing only required values which don't have defaults set # and optional values try: # Create Login Flow for Native Apps - api_response = api_instance.create_native_login_flow(refresh=refresh, aal=aal, x_session_token=x_session_token, return_session_token_exchange_code=return_session_token_exchange_code, return_to=return_to) + api_response = api_instance.create_native_login_flow(refresh=refresh, aal=aal, x_session_token=x_session_token, return_session_token_exchange_code=return_session_token_exchange_code, return_to=return_to, via=via) pprint(api_response) except ory_client.ApiException as e: print("Exception when calling FrontendApi->create_native_login_flow: %s\n" % e) @@ -542,6 +545,7 @@ Name | Type | Description | Notes **x_session_token** | **str**| The Session Token of the Identity performing the settings flow. | [optional] **return_session_token_exchange_code** | **bool**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] **return_to** | **str**| The URL to return the browser to after the flow was completed. | [optional] + **via** | **str**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type diff --git a/clients/client/python/docs/Identity.md b/clients/client/python/docs/Identity.md index 61f79ef384e..dfda9dfd0eb 100644 --- a/clients/client/python/docs/Identity.md +++ b/clients/client/python/docs/Identity.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **metadata_public** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type** | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] **organization_id** | **str, none_type** | | [optional] **recovery_addresses** | [**[RecoveryIdentityAddress]**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] -**state** | [**IdentityState**](IdentityState.md) | | [optional] +**state** | **str** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **state_changed_at** | **datetime** | | [optional] **updated_at** | **datetime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **verifiable_addresses** | [**[VerifiableIdentityAddress]**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. | [optional] diff --git a/clients/client/python/docs/IdentityApi.md b/clients/client/python/docs/IdentityApi.md index 2c6975b32ac..b6ebf06702e 100644 --- a/clients/client/python/docs/IdentityApi.md +++ b/clients/client/python/docs/IdentityApi.md @@ -101,7 +101,7 @@ with ory_client.ApiClient(configuration) as api_client: ), ], schema_id="schema_id_example", - state=IdentityState("active"), + state="active", traits={}, verifiable_addresses=[ VerifiableIdentityAddress( @@ -237,7 +237,7 @@ with ory_client.ApiClient(configuration) as api_client: ), ], schema_id="schema_id_example", - state=IdentityState("active"), + state="active", traits={}, verifiable_addresses=[ VerifiableIdentityAddress( @@ -420,6 +420,7 @@ configuration = ory_client.Configuration( with ory_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = identity_api.IdentityApi(api_client) + return_to = "return_to_example" # str | (optional) create_recovery_link_for_identity_body = CreateRecoveryLinkForIdentityBody( expires_in="4ms", identity_id="identity_id_example", @@ -429,7 +430,7 @@ with ory_client.ApiClient(configuration) as api_client: # and optional values try: # Create a Recovery Link - api_response = api_instance.create_recovery_link_for_identity(create_recovery_link_for_identity_body=create_recovery_link_for_identity_body) + api_response = api_instance.create_recovery_link_for_identity(return_to=return_to, create_recovery_link_for_identity_body=create_recovery_link_for_identity_body) pprint(api_response) except ory_client.ApiException as e: print("Exception when calling IdentityApi->create_recovery_link_for_identity: %s\n" % e) @@ -440,6 +441,7 @@ with ory_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **return_to** | **str**| | [optional] **create_recovery_link_for_identity_body** | [**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md)| | [optional] ### Return type @@ -583,7 +585,7 @@ with ory_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = identity_api.IdentityApi(api_client) id = "id_example" # str | ID is the identity's ID. - type = "totp" # str | Type is the credential's Type. One of totp, webauthn, lookup + type = "password" # str | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 # example passing only required values which don't have defaults set try: @@ -599,7 +601,7 @@ with ory_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **str**| ID is the identity's ID. | - **type** | **str**| Type is the credential's Type. One of totp, webauthn, lookup | + **type** | **str**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -1163,17 +1165,20 @@ with ory_client.ApiClient(configuration) as api_client: page_size = 250 # int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) if omitted the server will use the default value of 250 page_token = "1" # str | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) if omitted the server will use the default value of "1" consistency = "" # str | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) - ids_filter = [ - "ids_filter_example", - ] # [str] | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + ids = [ + "ids_example", + ] # [str] | List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) credentials_identifier = "credentials_identifier_example" # str | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) preview_credentials_identifier_similar = "preview_credentials_identifier_similar_example" # str | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + include_credential = [ + "include_credential_example", + ] # [str] | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. (optional) # example passing only required values which don't have defaults set # and optional values try: # List Identities - api_response = api_instance.list_identities(per_page=per_page, page=page, page_size=page_size, page_token=page_token, consistency=consistency, ids_filter=ids_filter, credentials_identifier=credentials_identifier, preview_credentials_identifier_similar=preview_credentials_identifier_similar) + api_response = api_instance.list_identities(per_page=per_page, page=page, page_size=page_size, page_token=page_token, consistency=consistency, ids=ids, credentials_identifier=credentials_identifier, preview_credentials_identifier_similar=preview_credentials_identifier_similar, include_credential=include_credential) pprint(api_response) except ory_client.ApiException as e: print("Exception when calling IdentityApi->list_identities: %s\n" % e) @@ -1189,9 +1194,10 @@ Name | Type | Description | Notes **page_size** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] if omitted the server will use the default value of 250 **page_token** | **str**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] if omitted the server will use the default value of "1" **consistency** | **str**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] - **ids_filter** | **[str]**| IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] + **ids** | **[str]**| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] **credentials_identifier** | **str**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] **preview_credentials_identifier_similar** | **str**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] + **include_credential** | **[str]**| Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] ### Return type @@ -1648,7 +1654,7 @@ with ory_client.ApiClient(configuration) as api_client: metadata_admin=None, metadata_public=None, schema_id="schema_id_example", - state=IdentityState("active"), + state="active", traits={}, ) # UpdateIdentityBody | (optional) diff --git a/clients/client/python/docs/IdentityCredentials.md b/clients/client/python/docs/IdentityCredentials.md index 48184bcb726..86c09782936 100644 --- a/clients/client/python/docs/IdentityCredentials.md +++ b/clients/client/python/docs/IdentityCredentials.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **config** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] **created_at** | **datetime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **identifiers** | **[str]** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**type** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**type** | **str** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **updated_at** | **datetime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **version** | **int** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/IdentityCredentialsCode.md b/clients/client/python/docs/IdentityCredentialsCode.md index b2d04336e4c..f0f5e4c1e5b 100644 --- a/clients/client/python/docs/IdentityCredentialsCode.md +++ b/clients/client/python/docs/IdentityCredentialsCode.md @@ -5,7 +5,7 @@ CredentialsCode represents a one time login/registration code ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address_type** | **str** | | [optional] +**address_type** | **str** | The type of the address for this code | [optional] **used_at** | **datetime, none_type** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/IdentityState.md b/clients/client/python/docs/IdentityState.md deleted file mode 100644 index 33dc819f417..00000000000 --- a/clients/client/python/docs/IdentityState.md +++ /dev/null @@ -1,12 +0,0 @@ -# IdentityState - -The state can either be `active` or `inactive`. - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**value** | **str** | The state can either be `active` or `inactive`. | must be one of ["active", "inactive", ] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/clients/client/python/docs/ListMyWorkspacesResponse.md b/clients/client/python/docs/ListMyWorkspacesResponse.md index aaf27384731..d0c4e2b3f4c 100644 --- a/clients/client/python/docs/ListMyWorkspacesResponse.md +++ b/clients/client/python/docs/ListMyWorkspacesResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **has_next_page** | **bool** | | **next_page_token** | **str** | | -**workspaces** | [**[Workspace]**](Workspace.md) | | +**workspaces** | [**[WorkspaceMeta]**](WorkspaceMeta.md) | | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/ListWorkspaceProjectsResponse.md b/clients/client/python/docs/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..02fb3e8b884 --- /dev/null +++ b/clients/client/python/docs/ListWorkspaceProjectsResponse.md @@ -0,0 +1,14 @@ +# ListWorkspaceProjectsResponse + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_next_page** | **bool** | | +**next_page** | **str** | | +**projects** | [**[ProjectMetadata]**](ProjectMetadata.md) | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/docs/LoginFlow.md b/clients/client/python/docs/LoginFlow.md index b7ecf7a097f..9f28c554262 100644 --- a/clients/client/python/docs/LoginFlow.md +++ b/clients/client/python/docs/LoginFlow.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **state** | **bool, date, datetime, dict, float, int, list, str, none_type** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | **type** | **str** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | -**active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **str** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **created_at** | **datetime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **oauth2_login_challenge** | **str** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional] **oauth2_login_request** | [**OAuth2LoginRequest**](OAuth2LoginRequest.md) | | [optional] @@ -21,6 +21,7 @@ Name | Type | Description | Notes **requested_aal** | [**AuthenticatorAssuranceLevel**](AuthenticatorAssuranceLevel.md) | | [optional] **return_to** | **str** | ReturnTo contains the requested return_to URL. | [optional] **session_token_exchange_code** | **str** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | TransientPayload is used to pass data from the login to hooks and email templates | [optional] **updated_at** | **datetime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/MigrationOptions.md b/clients/client/python/docs/MigrationOptions.md new file mode 100644 index 00000000000..a936ee3768e --- /dev/null +++ b/clients/client/python/docs/MigrationOptions.md @@ -0,0 +1,13 @@ +# MigrationOptions + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**environment** | **str** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | +**project_subscription** | **str** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/docs/NormalizedProjectRevision.md b/clients/client/python/docs/NormalizedProjectRevision.md index d2a38c92e92..048d1bc1c96 100644 --- a/clients/client/python/docs/NormalizedProjectRevision.md +++ b/clients/client/python/docs/NormalizedProjectRevision.md @@ -7,12 +7,14 @@ Name | Type | Description | Notes **name** | **str** | The project's name. | **created_at** | **datetime** | The Project's Revision Creation Date | [optional] [readonly] **disable_account_experience_welcome_screen** | **bool** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enable_ax_v2** | **bool** | Whether the new account experience is enabled and reachable. | [optional] **hydra_oauth2_allowed_top_level_claims** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **hydra_oauth2_client_credentials_default_grant_allowed_scope** | **bool** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydra_oauth2_exclude_not_before_claim** | **bool** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydra_oauth2_grant_jwt_iat_optional** | **bool** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_jti_optional** | **bool** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_max_ttl** | **str** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional] if omitted the server will use the default value of "720h" +**hydra_oauth2_mirror_top_level_claims** | **bool** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydra_oauth2_pkce_enforced** | **bool** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydra_oauth2_pkce_enforced_for_public_clients** | **bool** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydra_oauth2_refresh_token_hook** | **str** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -71,6 +73,7 @@ Name | Type | Description | Notes **kratos_courier_templates_login_code_valid_email_body_html** | **str** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_body_plaintext** | **str** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_subject** | **str** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratos_courier_templates_login_code_valid_sms_body_plaintext** | **str** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_html** | **str** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_plaintext** | **str** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_subject** | **str** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -156,6 +159,7 @@ Name | Type | Description | Notes **kratos_selfservice_flows_verification_use** | **str** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratos_selfservice_methods_code_config_lifespan** | **str** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratos_selfservice_methods_code_enabled** | **bool** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratos_selfservice_methods_code_mfa_enabled** | **bool** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratos_selfservice_methods_code_passwordless_enabled** | **bool** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratos_selfservice_methods_link_config_base_url** | **str** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratos_selfservice_methods_link_config_lifespan** | **str** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/python/docs/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/python/docs/NormalizedProjectRevisionThirdPartyProvider.md index 7365efdc6ab..64326ec531e 100644 --- a/clients/client/python/docs/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/python/docs/NormalizedProjectRevisionThirdPartyProvider.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **apple_team_id** | **str** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] **auth_url** | **str** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] **azure_tenant** | **str** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] +**claims_source** | **str, none_type** | | [optional] **client_id** | **str** | ClientID is the application's Client ID. | [optional] **client_secret** | **str, none_type** | | [optional] **created_at** | **datetime** | The Project's Revision Creation Date | [optional] [readonly] diff --git a/clients/client/python/docs/OAuth2Api.md b/clients/client/python/docs/OAuth2Api.md index 9dc5e0f731a..1dfa31ab7ea 100644 --- a/clients/client/python/docs/OAuth2Api.md +++ b/clients/client/python/docs/OAuth2Api.md @@ -75,6 +75,7 @@ with ory_client.ApiClient(configuration) as api_client: api_instance = o_auth2_api.OAuth2Api(api_client) consent_challenge = "consent_challenge_example" # str | OAuth 2.0 Consent Request Challenge accept_o_auth2_consent_request = AcceptOAuth2ConsentRequest( + context={}, grant_access_token_audience=StringSliceJSONFormat([ "grant_access_token_audience_example", ]), @@ -417,6 +418,7 @@ with ory_client.ApiClient(configuration) as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", @@ -2343,6 +2345,7 @@ with ory_client.ApiClient(configuration) as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", diff --git a/clients/client/python/docs/OAuth2Client.md b/clients/client/python/docs/OAuth2Client.md index 2770bf446ba..671fef8fb71 100644 --- a/clients/client/python/docs/OAuth2Client.md +++ b/clients/client/python/docs/OAuth2Client.md @@ -46,6 +46,7 @@ Name | Type | Description | Notes **scope** | **str** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sector_identifier_uri** | **str** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skip_consent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skip_logout_consent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subject_type** | **str** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **token_endpoint_auth_method** | **str** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] if omitted the server will use the default value of "client_secret_basic" **token_endpoint_auth_signing_alg** | **str** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/client/python/docs/OAuth2ConsentSession.md b/clients/client/python/docs/OAuth2ConsentSession.md index 98fb32dcb36..bce5735365d 100644 --- a/clients/client/python/docs/OAuth2ConsentSession.md +++ b/clients/client/python/docs/OAuth2ConsentSession.md @@ -6,6 +6,7 @@ A completed OAuth 2.0 Consent Session. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consent_request** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**context** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | | [optional] **expires_at** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **grant_access_token_audience** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **grant_scope** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] diff --git a/clients/client/python/docs/OidcApi.md b/clients/client/python/docs/OidcApi.md index b59ee33c543..07f5f116d6d 100644 --- a/clients/client/python/docs/OidcApi.md +++ b/clients/client/python/docs/OidcApi.md @@ -100,6 +100,7 @@ with ory_client.ApiClient() as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", @@ -685,6 +686,7 @@ with ory_client.ApiClient(configuration) as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", diff --git a/clients/client/python/docs/PermissionApi.md b/clients/client/python/docs/PermissionApi.md index ae57ab5dd97..9cd07a97715 100644 --- a/clients/client/python/docs/PermissionApi.md +++ b/clients/client/python/docs/PermissionApi.md @@ -431,7 +431,7 @@ configuration = ory_client.Configuration( with ory_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = permission_api.PermissionApi(api_client) - max_depth = 1 # int | nolint:deadcode,unused (optional) + max_depth = 1 # int | (optional) post_check_permission_or_error_body = PostCheckPermissionOrErrorBody( namespace="namespace_example", object="object_example", @@ -459,7 +459,7 @@ with ory_client.ApiClient(configuration) as api_client: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **max_depth** | **int**| nolint:deadcode,unused | [optional] + **max_depth** | **int**| | [optional] **post_check_permission_or_error_body** | [**PostCheckPermissionOrErrorBody**](PostCheckPermissionOrErrorBody.md)| | [optional] ### Return type diff --git a/clients/client/python/docs/PermissionsOnWorkpaceResponse.md b/clients/client/python/docs/PermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..877d2298252 --- /dev/null +++ b/clients/client/python/docs/PermissionsOnWorkpaceResponse.md @@ -0,0 +1,13 @@ +# PermissionsOnWorkpaceResponse + +Get Permissions on Project Request Parameters + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permissions** | **{str: (bool,)}** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/docs/PlanDetails.md b/clients/client/python/docs/PlanDetails.md index dfac2237918..355813883ca 100644 --- a/clients/client/python/docs/PlanDetails.md +++ b/clients/client/python/docs/PlanDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **base_fee_yearly** | **int** | BaseFeeYearly is the yearly base fee for the plan. | **custom** | **bool** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | **description** | **str** | Description is the description of the plan. | -**features** | [**{str: (GenericUsage,)}**](GenericUsage.md) | Features are the feature definitions included in the plan. | +**features** | [**PlanFeatures**](PlanFeatures.md) | | **name** | **str** | Name is the name of the plan. | **version** | **int** | Version is the version of the plan. The combination of `name@version` must be unique. | **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/PlanFeatures.md b/clients/client/python/docs/PlanFeatures.md new file mode 100644 index 00000000000..cf07fe0ffe9 --- /dev/null +++ b/clients/client/python/docs/PlanFeatures.md @@ -0,0 +1,11 @@ +# PlanFeatures + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**any string name** | [**GenericUsage**](GenericUsage.md) | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/docs/ProjectApi.md b/clients/client/python/docs/ProjectApi.md index 6be53a11abd..e571e214ce4 100644 --- a/clients/client/python/docs/ProjectApi.md +++ b/clients/client/python/docs/ProjectApi.md @@ -162,6 +162,7 @@ with ory_client.ApiClient(configuration) as api_client: # Create an instance of the API class api_instance = project_api.ProjectApi(api_client) create_project_body = CreateProjectBody( + environment="prod", name="name_example", workspace_id="workspace_id_example", ) # CreateProjectBody | (optional) @@ -822,7 +823,7 @@ with ory_client.ApiClient(configuration) as api_client: api_instance = project_api.ProjectApi(api_client) project_id = "project_id_example" # str | Project ID event_type = "event_type_example" # str | The event type to query for - resolution = "4ms" # str | The resolution of the buckets The minimum resolution is 1 hour. + resolution = "4M" # str | The resolution of the buckets The minimum resolution is 1 minute. _from = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | The start RFC3339 date of the time window to = dateutil_parser('1970-01-01T00:00:00.00Z') # datetime | The end RFC3339 date of the time window @@ -841,7 +842,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **project_id** | **str**| Project ID | **event_type** | **str**| The event type to query for | - **resolution** | **str**| The resolution of the buckets The minimum resolution is 1 hour. | + **resolution** | **str**| The resolution of the buckets The minimum resolution is 1 minute. | **_from** | **datetime**| The start RFC3339 date of the time window | **to** | **datetime**| The end RFC3339 date of the time window | diff --git a/clients/client/python/docs/ProjectMember.md b/clients/client/python/docs/ProjectMember.md index 541ef7941b7..eb5acfabbf4 100644 --- a/clients/client/python/docs/ProjectMember.md +++ b/clients/client/python/docs/ProjectMember.md @@ -4,7 +4,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | **CloudAccount** | | +**email** | **str** | | +**id** | **str** | | +**name** | **str** | | +**role** | **str** | | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/ProjectMembers.md b/clients/client/python/docs/ProjectMembers.md index 474f48d2bec..3a863e4bead 100644 --- a/clients/client/python/docs/ProjectMembers.md +++ b/clients/client/python/docs/ProjectMembers.md @@ -4,7 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**value** | [**[ProjectMember]**](CloudAccount.md) | | +**value** | [**[ProjectMember]**](ProjectMember.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/ProjectMetadata.md b/clients/client/python/docs/ProjectMetadata.md index 89d27460293..40a7072a15b 100644 --- a/clients/client/python/docs/ProjectMetadata.md +++ b/clients/client/python/docs/ProjectMetadata.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **datetime** | The Project's Creation Date | +**environment** | **str** | The environment of the project. prod Production dev Development | **hosts** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | **id** | **str** | The project's ID. | [readonly] **name** | **str** | The project's name if set | diff --git a/clients/client/python/docs/QuotaUsage.md b/clients/client/python/docs/QuotaUsage.md index a255b89c7a4..47f2740d58f 100644 --- a/clients/client/python/docs/QuotaUsage.md +++ b/clients/client/python/docs/QuotaUsage.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additional_price** | **int** | The additional price per unit in cents. | **can_use_more** | **bool** | | -**feature** | **str** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | +**feature** | **str** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | **feature_available** | **bool** | | **included** | **int** | | **used** | **int** | | diff --git a/clients/client/python/docs/RecoveryFlow.md b/clients/client/python/docs/RecoveryFlow.md index eef8459fd93..3595e20060d 100644 --- a/clients/client/python/docs/RecoveryFlow.md +++ b/clients/client/python/docs/RecoveryFlow.md @@ -15,6 +15,7 @@ Name | Type | Description | Notes **active** | **str** | Active, if set, contains the recovery method that is being used. It is initially not set. | [optional] **continue_with** | [**[ContinueWith]**](ContinueWith.md) | Contains possible actions that could follow this flow | [optional] **return_to** | **str** | ReturnTo contains the requested return_to URL. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/RegistrationFlow.md b/clients/client/python/docs/RegistrationFlow.md index 83cd9dca109..8c74f928ab5 100644 --- a/clients/client/python/docs/RegistrationFlow.md +++ b/clients/client/python/docs/RegistrationFlow.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **state** | **bool, date, datetime, dict, float, int, list, str, none_type** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. | **type** | **str** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | -**active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **str** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **oauth2_login_challenge** | **str** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional] **oauth2_login_request** | [**OAuth2LoginRequest**](OAuth2LoginRequest.md) | | [optional] **organization_id** | **str, none_type** | | [optional] diff --git a/clients/client/python/docs/SettingsFlow.md b/clients/client/python/docs/SettingsFlow.md index 117054fb834..fb26440edfe 100644 --- a/clients/client/python/docs/SettingsFlow.md +++ b/clients/client/python/docs/SettingsFlow.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **active** | **str** | Active, if set, contains the registration method that is being used. It is initially not set. | [optional] **continue_with** | [**[ContinueWith]**](ContinueWith.md) | Contains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user's registration. | [optional] **return_to** | **str** | ReturnTo contains the requested return_to URL. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/Subscription.md b/clients/client/python/docs/Subscription.md index c9f981f606d..181a9bcd904 100644 --- a/clients/client/python/docs/Subscription.md +++ b/clients/client/python/docs/Subscription.md @@ -15,8 +15,10 @@ Name | Type | Description | Notes **plan_changes_to** | **str, none_type** | | **status** | **str** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | **updated_at** | **datetime** | | [readonly] +**current_plan_details** | [**PlanDetails**](PlanDetails.md) | | [optional] **ongoing_stripe_checkout_id** | **str, none_type** | | [optional] **plan_changes_at** | **datetime** | | [optional] +**stripe_checkout_expires_at** | **datetime** | | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateIdentityBody.md b/clients/client/python/docs/UpdateIdentityBody.md index 1f20e93ae6c..5e760701a5b 100644 --- a/clients/client/python/docs/UpdateIdentityBody.md +++ b/clients/client/python/docs/UpdateIdentityBody.md @@ -6,7 +6,7 @@ Update Identity Body Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **schema_id** | **str** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**state** | [**IdentityState**](IdentityState.md) | | +**state** | **str** | State is the identity's state. active StateActive inactive StateInactive | **traits** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | **credentials** | [**IdentityWithCredentials**](IdentityWithCredentials.md) | | [optional] **metadata_admin** | **bool, date, datetime, dict, float, int, list, str, none_type** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] diff --git a/clients/client/python/docs/UpdateLoginFlowBody.md b/clients/client/python/docs/UpdateLoginFlowBody.md index 58a18e72f1f..85ebc71b9c6 100644 --- a/clients/client/python/docs/UpdateLoginFlowBody.md +++ b/clients/client/python/docs/UpdateLoginFlowBody.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **method** | **str** | Method should be set to \"code\" when logging in using the code strategy. | **password_identifier** | **str** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **id_token** | **str** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **id_token_nonce** | **str** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **traits** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | The identity traits. This is a placeholder for the registration flow. | [optional] diff --git a/clients/client/python/docs/UpdateLoginFlowWithCodeMethod.md b/clients/client/python/docs/UpdateLoginFlowWithCodeMethod.md index 543853dda87..6fa2c9c6402 100644 --- a/clients/client/python/docs/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/python/docs/UpdateLoginFlowWithCodeMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **code** | **str** | Code is the 6 digits code sent to the user | [optional] **identifier** | **str** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] **resend** | **str** | Resend is set when the user wants to resend the code | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateLoginFlowWithOidcMethod.md b/clients/client/python/docs/UpdateLoginFlowWithOidcMethod.md index de484c30699..247299bf3f6 100644 --- a/clients/client/python/docs/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/python/docs/UpdateLoginFlowWithOidcMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **id_token** | **str** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **id_token_nonce** | **str** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **traits** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | The identity traits. This is a placeholder for the registration flow. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **upstream_parameters** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/UpdateLoginFlowWithPasswordMethod.md b/clients/client/python/docs/UpdateLoginFlowWithPasswordMethod.md index 7a38e6e3b1d..ef0f2a2be59 100644 --- a/clients/client/python/docs/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/python/docs/UpdateLoginFlowWithPasswordMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **password** | **str** | The user's password. | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] **password_identifier** | **str** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateLoginFlowWithTotpMethod.md b/clients/client/python/docs/UpdateLoginFlowWithTotpMethod.md index 44f0ddf2fc1..4b8b257f6a6 100644 --- a/clients/client/python/docs/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/python/docs/UpdateLoginFlowWithTotpMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **method** | **str** | Method should be set to \"totp\" when logging in using the TOTP strategy. | **totp_code** | **str** | The TOTP code. | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/python/docs/UpdateLoginFlowWithWebAuthnMethod.md index 7bc4829b6af..7cd2bacc36b 100644 --- a/clients/client/python/docs/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/python/docs/UpdateLoginFlowWithWebAuthnMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **identifier** | **str** | Identifier is the email or username of the user trying to log in. | **method** | **str** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **webauthn_login** | **str** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/UpdateRecoveryFlowBody.md b/clients/client/python/docs/UpdateRecoveryFlowBody.md index 3b635b710f0..fdae6a7be57 100644 --- a/clients/client/python/docs/UpdateRecoveryFlowBody.md +++ b/clients/client/python/docs/UpdateRecoveryFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **method** | **str** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **code** | **str** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] **email** | **str** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/python/docs/UpdateRecoveryFlowWithCodeMethod.md index 4f9a1c69e0a..71491ea0fd7 100644 --- a/clients/client/python/docs/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/python/docs/UpdateRecoveryFlowWithCodeMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **code** | **str** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **str** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/python/docs/UpdateRecoveryFlowWithLinkMethod.md index 1eb52bc2a80..0fd787faa63 100644 --- a/clients/client/python/docs/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/python/docs/UpdateRecoveryFlowWithLinkMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **email** | **str** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **str** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateSettingsFlowBody.md b/clients/client/python/docs/UpdateSettingsFlowBody.md index 399df39d8d2..8b81cd573a8 100644 --- a/clients/client/python/docs/UpdateSettingsFlowBody.md +++ b/clients/client/python/docs/UpdateSettingsFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **method** | **str** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | **csrf_token** | **str** | CSRFToken is the anti-CSRF token | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **flow** | **str** | Flow ID is the flow's ID. in: query | [optional] **link** | **str** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **unlink** | **str** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] diff --git a/clients/client/python/docs/UpdateSettingsFlowWithLookupMethod.md b/clients/client/python/docs/UpdateSettingsFlowWithLookupMethod.md index cb4eb12afb2..ae77158f3d3 100644 --- a/clients/client/python/docs/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/python/docs/UpdateSettingsFlowWithLookupMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **lookup_secret_disable** | **bool** | Disables this method if true. | [optional] **lookup_secret_regenerate** | **bool** | If set to true will regenerate the lookup secrets | [optional] **lookup_secret_reveal** | **bool** | If set to true will reveal the lookup secrets | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateSettingsFlowWithOidcMethod.md b/clients/client/python/docs/UpdateSettingsFlowWithOidcMethod.md index 7c09bcc7038..9be4591bcce 100644 --- a/clients/client/python/docs/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/python/docs/UpdateSettingsFlowWithOidcMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **flow** | **str** | Flow ID is the flow's ID. in: query | [optional] **link** | **str** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **traits** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | The identity's traits in: body | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **unlink** | **str** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] **upstream_parameters** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/python/docs/UpdateSettingsFlowWithPasswordMethod.md index 13ea1dd10ae..d2fd092b0d6 100644 --- a/clients/client/python/docs/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/python/docs/UpdateSettingsFlowWithPasswordMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **method** | **str** | Method Should be set to password when trying to update a password. | **password** | **str** | Password is the updated password | **csrf_token** | **str** | CSRFToken is the anti-CSRF token | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateSettingsFlowWithProfileMethod.md b/clients/client/python/docs/UpdateSettingsFlowWithProfileMethod.md index d0c94d0ccd6..70e10032967 100644 --- a/clients/client/python/docs/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/python/docs/UpdateSettingsFlowWithProfileMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **method** | **str** | Method Should be set to profile when trying to update a profile. | **traits** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Traits The identity's traits. | **csrf_token** | **str** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateSettingsFlowWithTotpMethod.md b/clients/client/python/docs/UpdateSettingsFlowWithTotpMethod.md index 5097c9c84af..141d9d6a3cc 100644 --- a/clients/client/python/docs/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/python/docs/UpdateSettingsFlowWithTotpMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **csrf_token** | **str** | CSRFToken is the anti-CSRF token | [optional] **totp_code** | **str** | ValidationTOTP must contain a valid TOTP based on the | [optional] **totp_unlink** | **bool** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/python/docs/UpdateSettingsFlowWithWebAuthnMethod.md index 6e5441072fd..ac54629f489 100644 --- a/clients/client/python/docs/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/python/docs/UpdateSettingsFlowWithWebAuthnMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **method** | **str** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | **csrf_token** | **str** | CSRFToken is the anti-CSRF token | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **webauthn_register** | **str** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **webauthn_register_displayname** | **str** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] **webauthn_remove** | **str** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] diff --git a/clients/client/python/docs/UpdateSubscriptionBody.md b/clients/client/python/docs/UpdateSubscriptionBody.md index cc3679c1fb6..7cffa3257f9 100644 --- a/clients/client/python/docs/UpdateSubscriptionBody.md +++ b/clients/client/python/docs/UpdateSubscriptionBody.md @@ -1,6 +1,5 @@ # UpdateSubscriptionBody -Update Subscription Request Body ## Properties Name | Type | Description | Notes diff --git a/clients/client/python/docs/UpdateVerificationFlowBody.md b/clients/client/python/docs/UpdateVerificationFlowBody.md index bc88b0479f5..b4558c7f8c1 100644 --- a/clients/client/python/docs/UpdateVerificationFlowBody.md +++ b/clients/client/python/docs/UpdateVerificationFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **method** | **str** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **code** | **str** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] **email** | **str** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/client/python/docs/UpdateVerificationFlowWithCodeMethod.md b/clients/client/python/docs/UpdateVerificationFlowWithCodeMethod.md index 6591effe7ed..be1249039a9 100644 --- a/clients/client/python/docs/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/python/docs/UpdateVerificationFlowWithCodeMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **code** | **str** | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **str** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateVerificationFlowWithLinkMethod.md b/clients/client/python/docs/UpdateVerificationFlowWithLinkMethod.md index 2862eb2d798..134612784b9 100644 --- a/clients/client/python/docs/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/python/docs/UpdateVerificationFlowWithLinkMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **email** | **str** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **str** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | **csrf_token** | **str** | Sending the anti-csrf token is only required for browser login flows. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | Transient data to pass along to any webhooks | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/UpdateWorkspacePayload.md b/clients/client/python/docs/UpdateWorkspacePayload.md new file mode 100644 index 00000000000..219fdb8e99f --- /dev/null +++ b/clients/client/python/docs/UpdateWorkspacePayload.md @@ -0,0 +1,12 @@ +# UpdateWorkspacePayload + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | The name of the workspace. | +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/docs/VerificationFlow.md b/clients/client/python/docs/VerificationFlow.md index 8a1eed38279..316f27e35bc 100644 --- a/clients/client/python/docs/VerificationFlow.md +++ b/clients/client/python/docs/VerificationFlow.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **issued_at** | **datetime** | IssuedAt is the time (UTC) when the request occurred. | [optional] **request_url** | **str** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **return_to** | **str** | ReturnTo contains the requested return_to URL. | [optional] +**transient_payload** | **{str: (bool, date, datetime, dict, float, int, list, str, none_type)}** | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/python/docs/WorkspaceMeta.md b/clients/client/python/docs/WorkspaceMeta.md new file mode 100644 index 00000000000..fd8e41e68a7 --- /dev/null +++ b/clients/client/python/docs/WorkspaceMeta.md @@ -0,0 +1,17 @@ +# WorkspaceMeta + + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **datetime** | | +**id** | **str** | | +**name** | **str** | | +**updated_at** | **datetime** | | +**subscription_id** | **str, none_type** | | [optional] +**subscription_plan** | **str, none_type** | | [optional] +**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/python/ory_client/__init__.py b/clients/client/python/ory_client/__init__.py index 1e797759ccf..2fb78436225 100644 --- a/clients/client/python/ory_client/__init__.py +++ b/clients/client/python/ory_client/__init__.py @@ -5,13 +5,13 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ -__version__ = "v1.5.1" +__version__ = "v1.8.1" # import ApiClient from ory_client.api_client import ApiClient diff --git a/clients/client/python/ory_client/api/courier_api.py b/clients/client/python/ory_client/api/courier_api.py index c9fa62783b9..2824da215b1 100644 --- a/clients/client/python/ory_client/api/courier_api.py +++ b/clients/client/python/ory_client/api/courier_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/events_api.py b/clients/client/python/ory_client/api/events_api.py index d5f4c70f402..2d7b4cbfee2 100644 --- a/clients/client/python/ory_client/api/events_api.py +++ b/clients/client/python/ory_client/api/events_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/frontend_api.py b/clients/client/python/ory_client/api/frontend_api.py index bb04a106303..b6a879cfef0 100644 --- a/clients/client/python/ory_client/api/frontend_api.py +++ b/clients/client/python/ory_client/api/frontend_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -71,6 +71,7 @@ def __init__(self, api_client=None): 'cookie', 'login_challenge', 'organization', + 'via', ], 'required': [], 'nullable': [ @@ -98,6 +99,8 @@ def __init__(self, api_client=None): (str,), 'organization': (str,), + 'via': + (str,), }, 'attribute_map': { 'refresh': 'refresh', @@ -106,6 +109,7 @@ def __init__(self, api_client=None): 'cookie': 'Cookie', 'login_challenge': 'login_challenge', 'organization': 'organization', + 'via': 'via', }, 'location_map': { 'refresh': 'query', @@ -114,6 +118,7 @@ def __init__(self, api_client=None): 'cookie': 'header', 'login_challenge': 'query', 'organization': 'query', + 'via': 'query', }, 'collection_format_map': { } @@ -402,6 +407,7 @@ def __init__(self, api_client=None): 'x_session_token', 'return_session_token_exchange_code', 'return_to', + 'via', ], 'required': [], 'nullable': [ @@ -427,6 +433,8 @@ def __init__(self, api_client=None): (bool,), 'return_to': (str,), + 'via': + (str,), }, 'attribute_map': { 'refresh': 'refresh', @@ -434,6 +442,7 @@ def __init__(self, api_client=None): 'x_session_token': 'X-Session-Token', 'return_session_token_exchange_code': 'return_session_token_exchange_code', 'return_to': 'return_to', + 'via': 'via', }, 'location_map': { 'refresh': 'query', @@ -441,6 +450,7 @@ def __init__(self, api_client=None): 'x_session_token': 'header', 'return_session_token_exchange_code': 'query', 'return_to': 'query', + 'via': 'query', }, 'collection_format_map': { } @@ -1772,6 +1782,7 @@ def create_browser_login_flow( cookie (str): HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected.. [optional] login_challenge (str): An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`).. [optional] organization (str): An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network.. [optional] + via (str): Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object @@ -2255,6 +2266,7 @@ def create_native_login_flow( x_session_token (str): The Session Token of the Identity performing the settings flow.. [optional] return_session_token_exchange_code (bool): EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed.. [optional] return_to (str): The URL to return the browser to after the flow was completed.. [optional] + via (str): Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/clients/client/python/ory_client/api/identity_api.py b/clients/client/python/ory_client/api/identity_api.py index da4a7a25f6e..c50189cee91 100644 --- a/clients/client/python/ory_client/api/identity_api.py +++ b/clients/client/python/ory_client/api/identity_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -211,6 +211,7 @@ def __init__(self, api_client=None): }, params_map={ 'all': [ + 'return_to', 'create_recovery_link_for_identity_body', ], 'required': [], @@ -227,12 +228,16 @@ def __init__(self, api_client=None): 'allowed_values': { }, 'openapi_types': { + 'return_to': + (str,), 'create_recovery_link_for_identity_body': (CreateRecoveryLinkForIdentityBody,), }, 'attribute_map': { + 'return_to': 'return_to', }, 'location_map': { + 'return_to': 'query', 'create_recovery_link_for_identity_body': 'body', }, 'collection_format_map': { @@ -333,9 +338,14 @@ def __init__(self, api_client=None): 'allowed_values': { ('type',): { + "PASSWORD": "password", + "OIDC": "oidc", "TOTP": "totp", + "LOOKUP_SECRET": "lookup_secret", "WEBAUTHN": "webauthn", - "LOOKUP": "lookup" + "CODE": "code", + "LINK_RECOVERY": "link_recovery", + "CODE_RECOVERY": "code_recovery" }, }, 'openapi_types': { @@ -550,11 +560,13 @@ def __init__(self, api_client=None): ('include_credential',): { "PASSWORD": "password", - "TOTP": "totp", "OIDC": "oidc", - "WEBAUTHN": "webauthn", + "TOTP": "totp", "LOOKUP_SECRET": "lookup_secret", - "CODE": "code" + "WEBAUTHN": "webauthn", + "CODE": "code", + "LINK_RECOVERY": "link_recovery", + "CODE_RECOVERY": "code_recovery" }, }, 'openapi_types': { @@ -711,9 +723,10 @@ def __init__(self, api_client=None): 'page_size', 'page_token', 'consistency', - 'ids_filter', + 'ids', 'credentials_identifier', 'preview_credentials_identifier_similar', + 'include_credential', ], 'required': [], 'nullable': [ @@ -762,12 +775,14 @@ def __init__(self, api_client=None): (str,), 'consistency': (str,), - 'ids_filter': + 'ids': ([str],), 'credentials_identifier': (str,), 'preview_credentials_identifier_similar': (str,), + 'include_credential': + ([str],), }, 'attribute_map': { 'per_page': 'per_page', @@ -775,9 +790,10 @@ def __init__(self, api_client=None): 'page_size': 'page_size', 'page_token': 'page_token', 'consistency': 'consistency', - 'ids_filter': 'ids_filter', + 'ids': 'ids', 'credentials_identifier': 'credentials_identifier', 'preview_credentials_identifier_similar': 'preview_credentials_identifier_similar', + 'include_credential': 'include_credential', }, 'location_map': { 'per_page': 'query', @@ -785,12 +801,14 @@ def __init__(self, api_client=None): 'page_size': 'query', 'page_token': 'query', 'consistency': 'query', - 'ids_filter': 'query', + 'ids': 'query', 'credentials_identifier': 'query', 'preview_credentials_identifier_similar': 'query', + 'include_credential': 'query', }, 'collection_format_map': { - 'ids_filter': 'multi', + 'ids': 'multi', + 'include_credential': 'multi', } }, headers_map={ @@ -1413,6 +1431,7 @@ def create_recovery_link_for_identity( Keyword Args: + return_to (str): [optional] create_recovery_link_for_identity_body (CreateRecoveryLinkForIdentityBody): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. @@ -1577,7 +1596,7 @@ def delete_identity_credentials( Args: id (str): ID is the identity's ID. - type (str): Type is the credential's Type. One of totp, webauthn, lookup + type (str): Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 Keyword Args: _return_http_data_only (bool): response data without head status @@ -2167,9 +2186,10 @@ def list_identities( page_size (int): Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).. [optional] if omitted the server will use the default value of 250 page_token (str): Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).. [optional] if omitted the server will use the default value of "1" consistency (str): Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.. [optional] - ids_filter ([str]): IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied.. [optional] + ids ([str]): List of ids used to filter identities. If this list is empty, then no filter will be applied.. [optional] credentials_identifier (str): CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.. [optional] preview_credentials_identifier_similar (str): This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used.. [optional] + include_credential ([str]): Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available.. [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. _preload_content (bool): if False, the urllib3.HTTPResponse object diff --git a/clients/client/python/ory_client/api/jwk_api.py b/clients/client/python/ory_client/api/jwk_api.py index 09a77537a9e..e0e615ec422 100644 --- a/clients/client/python/ory_client/api/jwk_api.py +++ b/clients/client/python/ory_client/api/jwk_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/metadata_api.py b/clients/client/python/ory_client/api/metadata_api.py index 8388e5c79fe..ee93e9796e5 100644 --- a/clients/client/python/ory_client/api/metadata_api.py +++ b/clients/client/python/ory_client/api/metadata_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/o_auth2_api.py b/clients/client/python/ory_client/api/o_auth2_api.py index 9acdb0dcbcb..5234d977dcd 100644 --- a/clients/client/python/ory_client/api/o_auth2_api.py +++ b/clients/client/python/ory_client/api/o_auth2_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/oidc_api.py b/clients/client/python/ory_client/api/oidc_api.py index 10a9242844a..66ed2621932 100644 --- a/clients/client/python/ory_client/api/oidc_api.py +++ b/clients/client/python/ory_client/api/oidc_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/permission_api.py b/clients/client/python/ory_client/api/permission_api.py index fff4767d239..e89a7b63ba4 100644 --- a/clients/client/python/ory_client/api/permission_api.py +++ b/clients/client/python/ory_client/api/permission_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -746,7 +746,7 @@ def post_check_permission_or_error( Keyword Args: - max_depth (int): nolint:deadcode,unused. [optional] + max_depth (int): [optional] post_check_permission_or_error_body (PostCheckPermissionOrErrorBody): [optional] _return_http_data_only (bool): response data without head status code and headers. Default is True. diff --git a/clients/client/python/ory_client/api/project_api.py b/clients/client/python/ory_client/api/project_api.py index 8374a3530fe..9be165a5979 100644 --- a/clients/client/python/ory_client/api/project_api.py +++ b/clients/client/python/ory_client/api/project_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -574,7 +574,7 @@ def __init__(self, api_client=None): ('resolution',): { 'regex': { - 'pattern': r'^[0-9]+(ns|us|ms|s|m|h)$', # noqa: E501 + 'pattern': r'^[0-9]+(m|h|d|M|y)$', # noqa: E501 }, }, }, @@ -1870,7 +1870,7 @@ def get_project_metrics( Args: project_id (str): Project ID event_type (str): The event type to query for - resolution (str): The resolution of the buckets The minimum resolution is 1 hour. + resolution (str): The resolution of the buckets The minimum resolution is 1 minute. _from (datetime): The start RFC3339 date of the time window to (datetime): The end RFC3339 date of the time window diff --git a/clients/client/python/ory_client/api/relationship_api.py b/clients/client/python/ory_client/api/relationship_api.py index 94df76921aa..63d9dfd06dd 100644 --- a/clients/client/python/ory_client/api/relationship_api.py +++ b/clients/client/python/ory_client/api/relationship_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api/wellknown_api.py b/clients/client/python/ory_client/api/wellknown_api.py index cd163707d75..cf7e8cd6372 100644 --- a/clients/client/python/ory_client/api/wellknown_api.py +++ b/clients/client/python/ory_client/api/wellknown_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/api_client.py b/clients/client/python/ory_client/api_client.py index 0870fbce2e1..2adbe28359a 100644 --- a/clients/client/python/ory_client/api_client.py +++ b/clients/client/python/ory_client/api_client.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v1.5.1/python' + self.user_agent = 'OpenAPI-Generator/v1.8.1/python' def __enter__(self): return self diff --git a/clients/client/python/ory_client/configuration.py b/clients/client/python/ory_client/configuration.py index da05fb84589..8f3978ab70f 100644 --- a/clients/client/python/ory_client/configuration.py +++ b/clients/client/python/ory_client/configuration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -425,8 +425,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v1.5.1\n"\ - "SDK Package Version: v1.5.1".\ + "Version of the API: v1.8.1\n"\ + "SDK Package Version: v1.8.1".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/clients/client/python/ory_client/exceptions.py b/clients/client/python/ory_client/exceptions.py index 5185855b47e..90c73d8fe10 100644 --- a/clients/client/python/ory_client/exceptions.py +++ b/clients/client/python/ory_client/exceptions.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/accept_o_auth2_consent_request.py b/clients/client/python/ory_client/model/accept_o_auth2_consent_request.py index a9826b6b03f..ae698cdf9be 100644 --- a/clients/client/python/ory_client/model/accept_o_auth2_consent_request.py +++ b/clients/client/python/ory_client/model/accept_o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -90,6 +90,7 @@ def openapi_types(): """ lazy_import() return { + 'context': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'grant_access_token_audience': (StringSliceJSONFormat,), # noqa: E501 'grant_scope': (StringSliceJSONFormat,), # noqa: E501 'handled_at': (datetime,), # noqa: E501 @@ -104,6 +105,7 @@ def discriminator(): attribute_map = { + 'context': 'context', # noqa: E501 'grant_access_token_audience': 'grant_access_token_audience', # noqa: E501 'grant_scope': 'grant_scope', # noqa: E501 'handled_at': 'handled_at', # noqa: E501 @@ -153,6 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + context ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 handled_at (datetime): [optional] # noqa: E501 @@ -244,6 +247,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + context ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 handled_at (datetime): [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/accept_o_auth2_consent_request_session.py b/clients/client/python/ory_client/model/accept_o_auth2_consent_request_session.py index d37407b9878..60bb29f2c90 100644 --- a/clients/client/python/ory_client/model/accept_o_auth2_consent_request_session.py +++ b/clients/client/python/ory_client/model/accept_o_auth2_consent_request_session.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/accept_o_auth2_login_request.py b/clients/client/python/ory_client/model/accept_o_auth2_login_request.py index 215b7707fe9..0ca4c516074 100644 --- a/clients/client/python/ory_client/model/accept_o_auth2_login_request.py +++ b/clients/client/python/ory_client/model/accept_o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/active_project_in_console.py b/clients/client/python/ory_client/model/active_project_in_console.py index e04ccce4613..4510e353fd3 100644 --- a/clients/client/python/ory_client/model/active_project_in_console.py +++ b/clients/client/python/ory_client/model/active_project_in_console.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/attribute.py b/clients/client/python/ory_client/model/attribute.py index 8ef808431a0..04ad7985e62 100644 --- a/clients/client/python/ory_client/model/attribute.py +++ b/clients/client/python/ory_client/model/attribute.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/attribute_filter.py b/clients/client/python/ory_client/model/attribute_filter.py index fc9ac6b4290..3b5ed417a3c 100644 --- a/clients/client/python/ory_client/model/attribute_filter.py +++ b/clients/client/python/ory_client/model/attribute_filter.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/attributes_count_datapoint.py b/clients/client/python/ory_client/model/attributes_count_datapoint.py index ea75648376a..ca8d7e00e47 100644 --- a/clients/client/python/ory_client/model/attributes_count_datapoint.py +++ b/clients/client/python/ory_client/model/attributes_count_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/authenticator_assurance_level.py b/clients/client/python/ory_client/model/authenticator_assurance_level.py index 8c306d1f43a..1e925bcf244 100644 --- a/clients/client/python/ory_client/model/authenticator_assurance_level.py +++ b/clients/client/python/ory_client/model/authenticator_assurance_level.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/batch_patch_identities_response.py b/clients/client/python/ory_client/model/batch_patch_identities_response.py index 7061c15261a..e86b6713d07 100644 --- a/clients/client/python/ory_client/model/batch_patch_identities_response.py +++ b/clients/client/python/ory_client/model/batch_patch_identities_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/check_opl_syntax_result.py b/clients/client/python/ory_client/model/check_opl_syntax_result.py index 3768fc81bde..14a122a8b4e 100644 --- a/clients/client/python/ory_client/model/check_opl_syntax_result.py +++ b/clients/client/python/ory_client/model/check_opl_syntax_result.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/check_permission_result.py b/clients/client/python/ory_client/model/check_permission_result.py index 43549bbf83b..86852902245 100644 --- a/clients/client/python/ory_client/model/check_permission_result.py +++ b/clients/client/python/ory_client/model/check_permission_result.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/cloud_account.py b/clients/client/python/ory_client/model/cloud_account.py index 1bc60011b08..540d75620ce 100644 --- a/clients/client/python/ory_client/model/cloud_account.py +++ b/clients/client/python/ory_client/model/cloud_account.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -105,9 +105,14 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, email, id, name, *args, **kwargs): # noqa: E501 """CloudAccount - a model defined in OpenAPI + Args: + email (str): + id (str): + name (str): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -139,9 +144,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - email (str): [optional] # noqa: E501 - id (str): [optional] # noqa: E501 - name (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -173,6 +175,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.email = email + self.id = id + self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -193,9 +198,14 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): # noqa: E501 + def __init__(self, email, id, name, *args, **kwargs): # noqa: E501 """CloudAccount - a model defined in OpenAPI + Args: + email (str): + id (str): + name (str): + Keyword Args: _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be @@ -227,9 +237,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - email (str): [optional] # noqa: E501 - id (str): [optional] # noqa: E501 - name (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -259,6 +266,9 @@ def __init__(self, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.email = email + self.id = id + self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/clients/client/python/ory_client/model/consistency_request_parameters.py b/clients/client/python/ory_client/model/consistency_request_parameters.py index b4e5190ff4a..a16be07ad85 100644 --- a/clients/client/python/ory_client/model/consistency_request_parameters.py +++ b/clients/client/python/ory_client/model/consistency_request_parameters.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with.py b/clients/client/python/ory_client/model/continue_with.py index 00713e2ee61..4c4ff6c7fb3 100644 --- a/clients/client/python/ory_client/model/continue_with.py +++ b/clients/client/python/ory_client/model/continue_with.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_recovery_ui.py b/clients/client/python/ory_client/model/continue_with_recovery_ui.py index af5dadc2c6e..6e232e3814d 100644 --- a/clients/client/python/ory_client/model/continue_with_recovery_ui.py +++ b/clients/client/python/ory_client/model/continue_with_recovery_ui.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_recovery_ui_flow.py b/clients/client/python/ory_client/model/continue_with_recovery_ui_flow.py index 54159f6dd4a..203e340c1a0 100644 --- a/clients/client/python/ory_client/model/continue_with_recovery_ui_flow.py +++ b/clients/client/python/ory_client/model/continue_with_recovery_ui_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_set_ory_session_token.py b/clients/client/python/ory_client/model/continue_with_set_ory_session_token.py index 0e6462e6c4c..dac71dc6bb6 100644 --- a/clients/client/python/ory_client/model/continue_with_set_ory_session_token.py +++ b/clients/client/python/ory_client/model/continue_with_set_ory_session_token.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_settings_ui.py b/clients/client/python/ory_client/model/continue_with_settings_ui.py index d76cf418fdf..6fafe5ea08b 100644 --- a/clients/client/python/ory_client/model/continue_with_settings_ui.py +++ b/clients/client/python/ory_client/model/continue_with_settings_ui.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_settings_ui_flow.py b/clients/client/python/ory_client/model/continue_with_settings_ui_flow.py index 0e49eee2646..28009b7b462 100644 --- a/clients/client/python/ory_client/model/continue_with_settings_ui_flow.py +++ b/clients/client/python/ory_client/model/continue_with_settings_ui_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_verification_ui.py b/clients/client/python/ory_client/model/continue_with_verification_ui.py index 3e35f37b2dd..4a7d47d216a 100644 --- a/clients/client/python/ory_client/model/continue_with_verification_ui.py +++ b/clients/client/python/ory_client/model/continue_with_verification_ui.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/continue_with_verification_ui_flow.py b/clients/client/python/ory_client/model/continue_with_verification_ui_flow.py index ccd4fe70ca5..c6e6fdb6df8 100644 --- a/clients/client/python/ory_client/model/continue_with_verification_ui_flow.py +++ b/clients/client/python/ory_client/model/continue_with_verification_ui_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/courier_message_status.py b/clients/client/python/ory_client/model/courier_message_status.py index b71340e0cf3..6706afce5aa 100644 --- a/clients/client/python/ory_client/model/courier_message_status.py +++ b/clients/client/python/ory_client/model/courier_message_status.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/courier_message_type.py b/clients/client/python/ory_client/model/courier_message_type.py index eaf1344144f..6aada8a84e1 100644 --- a/clients/client/python/ory_client/model/courier_message_type.py +++ b/clients/client/python/ory_client/model/courier_message_type.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_custom_domain_body.py b/clients/client/python/ory_client/model/create_custom_domain_body.py index d5cecca3ed9..515d327b9e5 100644 --- a/clients/client/python/ory_client/model/create_custom_domain_body.py +++ b/clients/client/python/ory_client/model/create_custom_domain_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_event_stream_body.py b/clients/client/python/ory_client/model/create_event_stream_body.py index d3cd9509ec3..5eff961188a 100644 --- a/clients/client/python/ory_client/model/create_event_stream_body.py +++ b/clients/client/python/ory_client/model/create_event_stream_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_identity_body.py b/clients/client/python/ory_client/model/create_identity_body.py index b1fa9d5bd03..59b0af2d3de 100644 --- a/clients/client/python/ory_client/model/create_identity_body.py +++ b/clients/client/python/ory_client/model/create_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,11 +31,9 @@ def lazy_import(): - from ory_client.model.identity_state import IdentityState from ory_client.model.identity_with_credentials import IdentityWithCredentials from ory_client.model.recovery_identity_address import RecoveryIdentityAddress from ory_client.model.verifiable_identity_address import VerifiableIdentityAddress - globals()['IdentityState'] = IdentityState globals()['IdentityWithCredentials'] = IdentityWithCredentials globals()['RecoveryIdentityAddress'] = RecoveryIdentityAddress globals()['VerifiableIdentityAddress'] = VerifiableIdentityAddress @@ -66,6 +64,10 @@ class CreateIdentityBody(ModelNormal): """ allowed_values = { + ('state',): { + 'ACTIVE': "active", + 'INACTIVE': "inactive", + }, } validations = { @@ -100,7 +102,7 @@ def openapi_types(): 'metadata_admin': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'metadata_public': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'recovery_addresses': ([RecoveryIdentityAddress],), # noqa: E501 - 'state': (IdentityState,), # noqa: E501 + 'state': (str,), # noqa: E501 'verifiable_addresses': ([VerifiableIdentityAddress],), # noqa: E501 } @@ -169,7 +171,7 @@ def _from_openapi_data(cls, schema_id, traits, *args, **kwargs): # noqa: E501 metadata_admin (bool, date, datetime, dict, float, int, list, str, none_type): Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`.. [optional] # noqa: E501 metadata_public (bool, date, datetime, dict, float, int, list, str, none_type): Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.. [optional] # noqa: E501 recovery_addresses ([RecoveryIdentityAddress]): RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. [optional] # noqa: E501 - state (IdentityState): [optional] # noqa: E501 + state (str): State is the identity's state. active StateActive inactive StateInactive. [optional] # noqa: E501 verifiable_addresses ([VerifiableIdentityAddress]): VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. [optional] # noqa: E501 """ @@ -266,7 +268,7 @@ def __init__(self, schema_id, traits, *args, **kwargs): # noqa: E501 metadata_admin (bool, date, datetime, dict, float, int, list, str, none_type): Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`.. [optional] # noqa: E501 metadata_public (bool, date, datetime, dict, float, int, list, str, none_type): Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.. [optional] # noqa: E501 recovery_addresses ([RecoveryIdentityAddress]): RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. [optional] # noqa: E501 - state (IdentityState): [optional] # noqa: E501 + state (str): State is the identity's state. active StateActive inactive StateInactive. [optional] # noqa: E501 verifiable_addresses ([VerifiableIdentityAddress]): VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/create_invite_response.py b/clients/client/python/ory_client/model/create_invite_response.py index 2bdabe6a230..849274304d6 100644 --- a/clients/client/python/ory_client/model/create_invite_response.py +++ b/clients/client/python/ory_client/model/create_invite_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_json_web_key_set.py b/clients/client/python/ory_client/model/create_json_web_key_set.py index 5c8506db494..d0e7472d0cb 100644 --- a/clients/client/python/ory_client/model/create_json_web_key_set.py +++ b/clients/client/python/ory_client/model/create_json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_member_invite_response.py b/clients/client/python/ory_client/model/create_member_invite_response.py index 55eba33a0ee..2f282c9d412 100644 --- a/clients/client/python/ory_client/model/create_member_invite_response.py +++ b/clients/client/python/ory_client/model/create_member_invite_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_project_api_key_request.py b/clients/client/python/ory_client/model/create_project_api_key_request.py index 35714394c92..d50e9921e4b 100644 --- a/clients/client/python/ory_client/model/create_project_api_key_request.py +++ b/clients/client/python/ory_client/model/create_project_api_key_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_project_body.py b/clients/client/python/ory_client/model/create_project_body.py index 811f7ae9356..dac32173d86 100644 --- a/clients/client/python/ory_client/model/create_project_body.py +++ b/clients/client/python/ory_client/model/create_project_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -56,6 +56,10 @@ class CreateProjectBody(ModelNormal): """ allowed_values = { + ('environment',): { + 'PROD': "prod", + 'DEV': "dev", + }, } validations = { @@ -82,6 +86,7 @@ def openapi_types(): and the value is attribute type. """ return { + 'environment': (str,), # noqa: E501 'name': (str,), # noqa: E501 'workspace_id': (str, none_type,), # noqa: E501 } @@ -92,6 +97,7 @@ def discriminator(): attribute_map = { + 'environment': 'environment', # noqa: E501 'name': 'name', # noqa: E501 'workspace_id': 'workspace_id', # noqa: E501 } @@ -103,10 +109,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, environment, name, *args, **kwargs): # noqa: E501 """CreateProjectBody - a model defined in OpenAPI Args: + environment (str): The environment of the project. prod Production dev Development name (str): The name of the project to be created Keyword Args: @@ -172,6 +179,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.environment = environment self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ @@ -193,10 +201,11 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, name, *args, **kwargs): # noqa: E501 + def __init__(self, environment, name, *args, **kwargs): # noqa: E501 """CreateProjectBody - a model defined in OpenAPI Args: + environment (str): The environment of the project. prod Production dev Development name (str): The name of the project to be created Keyword Args: @@ -260,6 +269,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.environment = environment self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ diff --git a/clients/client/python/ory_client/model/create_project_branding.py b/clients/client/python/ory_client/model/create_project_branding.py index 2463e1c8356..d91312a4e2b 100644 --- a/clients/client/python/ory_client/model/create_project_branding.py +++ b/clients/client/python/ory_client/model/create_project_branding.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_project_member_invite_body.py b/clients/client/python/ory_client/model/create_project_member_invite_body.py index 253d72352ba..b997ad9d090 100644 --- a/clients/client/python/ory_client/model/create_project_member_invite_body.py +++ b/clients/client/python/ory_client/model/create_project_member_invite_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_project_normalized_payload.py b/clients/client/python/ory_client/model/create_project_normalized_payload.py index 73b52ab2629..5969d43c0af 100644 --- a/clients/client/python/ory_client/model/create_project_normalized_payload.py +++ b/clients/client/python/ory_client/model/create_project_normalized_payload.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -72,6 +72,10 @@ class CreateProjectNormalizedPayload(ModelNormal): """ allowed_values = { + ('environment',): { + 'PROD': "prod", + 'DEV': "dev", + }, ('hydra_strategies_access_token',): { 'OPAQUE': "opaque", 'JWT': "jwt", @@ -146,15 +150,18 @@ def openapi_types(): """ lazy_import() return { + 'environment': (str,), # noqa: E501 'name': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'disable_account_experience_welcome_screen': (bool,), # noqa: E501 + 'enable_ax_v2': (bool,), # noqa: E501 'hydra_oauth2_allowed_top_level_claims': (StringSliceJSONFormat,), # noqa: E501 'hydra_oauth2_client_credentials_default_grant_allowed_scope': (bool,), # noqa: E501 'hydra_oauth2_exclude_not_before_claim': (bool,), # noqa: E501 'hydra_oauth2_grant_jwt_iat_optional': (bool,), # noqa: E501 'hydra_oauth2_grant_jwt_jti_optional': (bool,), # noqa: E501 'hydra_oauth2_grant_jwt_max_ttl': (str,), # noqa: E501 + 'hydra_oauth2_mirror_top_level_claims': (bool,), # noqa: E501 'hydra_oauth2_pkce_enforced': (bool,), # noqa: E501 'hydra_oauth2_pkce_enforced_for_public_clients': (bool,), # noqa: E501 'hydra_oauth2_refresh_token_hook': (str,), # noqa: E501 @@ -213,6 +220,7 @@ def openapi_types(): 'kratos_courier_templates_login_code_valid_email_body_html': (str,), # noqa: E501 'kratos_courier_templates_login_code_valid_email_body_plaintext': (str,), # noqa: E501 'kratos_courier_templates_login_code_valid_email_subject': (str,), # noqa: E501 + 'kratos_courier_templates_login_code_valid_sms_body_plaintext': (str,), # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_html': (str,), # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext': (str,), # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_subject': (str,), # noqa: E501 @@ -298,6 +306,7 @@ def openapi_types(): 'kratos_selfservice_flows_verification_use': (str,), # noqa: E501 'kratos_selfservice_methods_code_config_lifespan': (str,), # noqa: E501 'kratos_selfservice_methods_code_enabled': (bool,), # noqa: E501 + 'kratos_selfservice_methods_code_mfa_enabled': (bool,), # noqa: E501 'kratos_selfservice_methods_code_passwordless_enabled': (bool,), # noqa: E501 'kratos_selfservice_methods_link_config_base_url': (str,), # noqa: E501 'kratos_selfservice_methods_link_config_lifespan': (str,), # noqa: E501 @@ -343,15 +352,18 @@ def discriminator(): attribute_map = { + 'environment': 'environment', # noqa: E501 'name': 'name', # noqa: E501 'created_at': 'created_at', # noqa: E501 'disable_account_experience_welcome_screen': 'disable_account_experience_welcome_screen', # noqa: E501 + 'enable_ax_v2': 'enable_ax_v2', # noqa: E501 'hydra_oauth2_allowed_top_level_claims': 'hydra_oauth2_allowed_top_level_claims', # noqa: E501 'hydra_oauth2_client_credentials_default_grant_allowed_scope': 'hydra_oauth2_client_credentials_default_grant_allowed_scope', # noqa: E501 'hydra_oauth2_exclude_not_before_claim': 'hydra_oauth2_exclude_not_before_claim', # noqa: E501 'hydra_oauth2_grant_jwt_iat_optional': 'hydra_oauth2_grant_jwt_iat_optional', # noqa: E501 'hydra_oauth2_grant_jwt_jti_optional': 'hydra_oauth2_grant_jwt_jti_optional', # noqa: E501 'hydra_oauth2_grant_jwt_max_ttl': 'hydra_oauth2_grant_jwt_max_ttl', # noqa: E501 + 'hydra_oauth2_mirror_top_level_claims': 'hydra_oauth2_mirror_top_level_claims', # noqa: E501 'hydra_oauth2_pkce_enforced': 'hydra_oauth2_pkce_enforced', # noqa: E501 'hydra_oauth2_pkce_enforced_for_public_clients': 'hydra_oauth2_pkce_enforced_for_public_clients', # noqa: E501 'hydra_oauth2_refresh_token_hook': 'hydra_oauth2_refresh_token_hook', # noqa: E501 @@ -410,6 +422,7 @@ def discriminator(): 'kratos_courier_templates_login_code_valid_email_body_html': 'kratos_courier_templates_login_code_valid_email_body_html', # noqa: E501 'kratos_courier_templates_login_code_valid_email_body_plaintext': 'kratos_courier_templates_login_code_valid_email_body_plaintext', # noqa: E501 'kratos_courier_templates_login_code_valid_email_subject': 'kratos_courier_templates_login_code_valid_email_subject', # noqa: E501 + 'kratos_courier_templates_login_code_valid_sms_body_plaintext': 'kratos_courier_templates_login_code_valid_sms_body_plaintext', # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_html': 'kratos_courier_templates_recovery_code_invalid_email_body_html', # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext': 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext', # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_subject': 'kratos_courier_templates_recovery_code_invalid_email_subject', # noqa: E501 @@ -495,6 +508,7 @@ def discriminator(): 'kratos_selfservice_flows_verification_use': 'kratos_selfservice_flows_verification_use', # noqa: E501 'kratos_selfservice_methods_code_config_lifespan': 'kratos_selfservice_methods_code_config_lifespan', # noqa: E501 'kratos_selfservice_methods_code_enabled': 'kratos_selfservice_methods_code_enabled', # noqa: E501 + 'kratos_selfservice_methods_code_mfa_enabled': 'kratos_selfservice_methods_code_mfa_enabled', # noqa: E501 'kratos_selfservice_methods_code_passwordless_enabled': 'kratos_selfservice_methods_code_passwordless_enabled', # noqa: E501 'kratos_selfservice_methods_link_config_base_url': 'kratos_selfservice_methods_link_config_base_url', # noqa: E501 'kratos_selfservice_methods_link_config_lifespan': 'kratos_selfservice_methods_link_config_lifespan', # noqa: E501 @@ -544,10 +558,11 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, environment, name, *args, **kwargs): # noqa: E501 """CreateProjectNormalizedPayload - a model defined in OpenAPI Args: + environment (str): prod Production dev Development name (str): The project's name. Keyword Args: @@ -583,12 +598,14 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) created_at (datetime): The Project's Revision Creation Date. [optional] # noqa: E501 disable_account_experience_welcome_screen (bool): Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.. [optional] # noqa: E501 + enable_ax_v2 (bool): Whether the new account experience is enabled and reachable.. [optional] # noqa: E501 hydra_oauth2_allowed_top_level_claims (StringSliceJSONFormat): [optional] # noqa: E501 hydra_oauth2_client_credentials_default_grant_allowed_scope (bool): Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting.. [optional] # noqa: E501 hydra_oauth2_exclude_not_before_claim (bool): Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_iat_optional (bool): Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_jti_optional (bool): Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_max_ttl (str): Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting.. [optional] if omitted the server will use the default value of "720h" # noqa: E501 + hydra_oauth2_mirror_top_level_claims (bool): Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced (bool): Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced_for_public_clients (bool): Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting.. [optional] # noqa: E501 hydra_oauth2_refresh_token_hook (str): Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting.. [optional] # noqa: E501 @@ -647,6 +664,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 kratos_courier_templates_login_code_valid_email_body_html (str): Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_body_plaintext (str): Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_subject (str): Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting.. [optional] # noqa: E501 + kratos_courier_templates_login_code_valid_sms_body_plaintext (str): Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_html (str): Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_plaintext (str): Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_subject (str): Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 @@ -732,6 +750,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 kratos_selfservice_flows_verification_use (str): Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode. [optional] # noqa: E501 kratos_selfservice_methods_code_config_lifespan (str): Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_enabled (bool): Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.. [optional] # noqa: E501 + kratos_selfservice_methods_code_mfa_enabled (bool): Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_passwordless_enabled (bool): Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_base_url (str): Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_lifespan (str): Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting.. [optional] # noqa: E501 @@ -800,6 +819,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.environment = environment self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ @@ -821,10 +841,11 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, name, *args, **kwargs): # noqa: E501 + def __init__(self, environment, name, *args, **kwargs): # noqa: E501 """CreateProjectNormalizedPayload - a model defined in OpenAPI Args: + environment (str): prod Production dev Development name (str): The project's name. Keyword Args: @@ -860,12 +881,14 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) created_at (datetime): The Project's Revision Creation Date. [optional] # noqa: E501 disable_account_experience_welcome_screen (bool): Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.. [optional] # noqa: E501 + enable_ax_v2 (bool): Whether the new account experience is enabled and reachable.. [optional] # noqa: E501 hydra_oauth2_allowed_top_level_claims (StringSliceJSONFormat): [optional] # noqa: E501 hydra_oauth2_client_credentials_default_grant_allowed_scope (bool): Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting.. [optional] # noqa: E501 hydra_oauth2_exclude_not_before_claim (bool): Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_iat_optional (bool): Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_jti_optional (bool): Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_max_ttl (str): Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting.. [optional] if omitted the server will use the default value of "720h" # noqa: E501 + hydra_oauth2_mirror_top_level_claims (bool): Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced (bool): Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced_for_public_clients (bool): Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting.. [optional] # noqa: E501 hydra_oauth2_refresh_token_hook (str): Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting.. [optional] # noqa: E501 @@ -924,6 +947,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 kratos_courier_templates_login_code_valid_email_body_html (str): Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_body_plaintext (str): Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_subject (str): Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting.. [optional] # noqa: E501 + kratos_courier_templates_login_code_valid_sms_body_plaintext (str): Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_html (str): Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_plaintext (str): Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_subject (str): Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 @@ -1009,6 +1033,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 kratos_selfservice_flows_verification_use (str): Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode. [optional] # noqa: E501 kratos_selfservice_methods_code_config_lifespan (str): Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_enabled (bool): Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.. [optional] # noqa: E501 + kratos_selfservice_methods_code_mfa_enabled (bool): Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_passwordless_enabled (bool): Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_base_url (str): Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_lifespan (str): Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting.. [optional] # noqa: E501 @@ -1075,6 +1100,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + self.environment = environment self.name = name for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ diff --git a/clients/client/python/ory_client/model/create_recovery_code_for_identity_body.py b/clients/client/python/ory_client/model/create_recovery_code_for_identity_body.py index 1f72d82e1eb..47518781ddd 100644 --- a/clients/client/python/ory_client/model/create_recovery_code_for_identity_body.py +++ b/clients/client/python/ory_client/model/create_recovery_code_for_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_recovery_link_for_identity_body.py b/clients/client/python/ory_client/model/create_recovery_link_for_identity_body.py index bb6f98e2bb3..b8c46d884b5 100644 --- a/clients/client/python/ory_client/model/create_recovery_link_for_identity_body.py +++ b/clients/client/python/ory_client/model/create_recovery_link_for_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_relationship_body.py b/clients/client/python/ory_client/model/create_relationship_body.py index f7c669441b3..ebcdba8ffa4 100644 --- a/clients/client/python/ory_client/model/create_relationship_body.py +++ b/clients/client/python/ory_client/model/create_relationship_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_subscription_body.py b/clients/client/python/ory_client/model/create_subscription_body.py index 88c8e65d145..e10b3f8cc41 100644 --- a/clients/client/python/ory_client/model/create_subscription_body.py +++ b/clients/client/python/ory_client/model/create_subscription_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -92,10 +92,9 @@ def openapi_types(): return { 'interval': (str,), # noqa: E501 'plan': (str,), # noqa: E501 + 'provision_first_project': (str,), # noqa: E501 'currency': (str,), # noqa: E501 - 'provision_first_project': (str, none_type,), # noqa: E501 'return_to': (str,), # noqa: E501 - 'workspace': (str, none_type,), # noqa: E501 } @cached_property @@ -106,10 +105,9 @@ def discriminator(): attribute_map = { 'interval': 'interval', # noqa: E501 'plan': 'plan', # noqa: E501 - 'currency': 'currency', # noqa: E501 'provision_first_project': 'provision_first_project', # noqa: E501 + 'currency': 'currency', # noqa: E501 'return_to': 'return_to', # noqa: E501 - 'workspace': 'workspace', # noqa: E501 } read_only_vars = { @@ -119,12 +117,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, interval, plan, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, interval, plan, provision_first_project, *args, **kwargs): # noqa: E501 """CreateSubscriptionBody - a model defined in OpenAPI Args: interval (str): monthly Monthly yearly Yearly plan (str): + provision_first_project (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -158,9 +157,7 @@ def _from_openapi_data(cls, interval, plan, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) currency (str): usd USD eur Euro. [optional] # noqa: E501 - provision_first_project (str, none_type): [optional] # noqa: E501 return_to (str): [optional] # noqa: E501 - workspace (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -194,6 +191,7 @@ def _from_openapi_data(cls, interval, plan, *args, **kwargs): # noqa: E501 self.interval = interval self.plan = plan + self.provision_first_project = provision_first_project for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ @@ -214,12 +212,13 @@ def _from_openapi_data(cls, interval, plan, *args, **kwargs): # noqa: E501 ]) @convert_js_args_to_python_args - def __init__(self, interval, plan, *args, **kwargs): # noqa: E501 + def __init__(self, interval, plan, provision_first_project, *args, **kwargs): # noqa: E501 """CreateSubscriptionBody - a model defined in OpenAPI Args: interval (str): monthly Monthly yearly Yearly plan (str): + provision_first_project (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -253,9 +252,7 @@ def __init__(self, interval, plan, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) currency (str): usd USD eur Euro. [optional] # noqa: E501 - provision_first_project (str, none_type): [optional] # noqa: E501 return_to (str): [optional] # noqa: E501 - workspace (str, none_type): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -287,6 +284,7 @@ def __init__(self, interval, plan, *args, **kwargs): # noqa: E501 self.interval = interval self.plan = plan + self.provision_first_project = provision_first_project for var_name, var_value in kwargs.items(): if var_name not in self.attribute_map and \ self._configuration is not None and \ diff --git a/clients/client/python/ory_client/model/internal_provision_mock_subscription.py b/clients/client/python/ory_client/model/create_subscription_common.py similarity index 91% rename from clients/client/python/ory_client/model/internal_provision_mock_subscription.py rename to clients/client/python/ory_client/model/create_subscription_common.py index 23481ee03f1..af622c674fe 100644 --- a/clients/client/python/ory_client/model/internal_provision_mock_subscription.py +++ b/clients/client/python/ory_client/model/create_subscription_common.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ -class InternalProvisionMockSubscription(ModelNormal): +class CreateSubscriptionCommon(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -56,14 +56,14 @@ class InternalProvisionMockSubscription(ModelNormal): """ allowed_values = { - ('currency',): { - 'USD': "usd", - 'EUR': "eur", - }, ('interval',): { 'MONTHLY': "monthly", 'YEARLY': "yearly", }, + ('currency',): { + 'USD': "usd", + 'EUR': "eur", + }, } validations = { @@ -90,10 +90,10 @@ def openapi_types(): and the value is attribute type. """ return { - 'currency': (str,), # noqa: E501 - 'identity_id': (str,), # noqa: E501 'interval': (str,), # noqa: E501 'plan': (str,), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'return_to': (str,), # noqa: E501 } @cached_property @@ -102,10 +102,10 @@ def discriminator(): attribute_map = { - 'currency': 'currency', # noqa: E501 - 'identity_id': 'identity_id', # noqa: E501 'interval': 'interval', # noqa: E501 'plan': 'plan', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'return_to': 'return_to', # noqa: E501 } read_only_vars = { @@ -115,14 +115,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, currency, identity_id, interval, plan, *args, **kwargs): # noqa: E501 - """InternalProvisionMockSubscription - a model defined in OpenAPI + def _from_openapi_data(cls, interval, plan, *args, **kwargs): # noqa: E501 + """CreateSubscriptionCommon - a model defined in OpenAPI Args: - currency (str): Currency usd USD eur Euro - identity_id (str): Identity ID - interval (str): Billing Interval monthly Monthly yearly Yearly - plan (str): Plan ID + interval (str): monthly Monthly yearly Yearly + plan (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -155,6 +153,8 @@ def _from_openapi_data(cls, currency, identity_id, interval, plan, *args, **kwar Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + currency (str): usd USD eur Euro. [optional] # noqa: E501 + return_to (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -186,8 +186,6 @@ def _from_openapi_data(cls, currency, identity_id, interval, plan, *args, **kwar self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.currency = currency - self.identity_id = identity_id self.interval = interval self.plan = plan for var_name, var_value in kwargs.items(): @@ -210,14 +208,12 @@ def _from_openapi_data(cls, currency, identity_id, interval, plan, *args, **kwar ]) @convert_js_args_to_python_args - def __init__(self, currency, identity_id, interval, plan, *args, **kwargs): # noqa: E501 - """InternalProvisionMockSubscription - a model defined in OpenAPI + def __init__(self, interval, plan, *args, **kwargs): # noqa: E501 + """CreateSubscriptionCommon - a model defined in OpenAPI Args: - currency (str): Currency usd USD eur Euro - identity_id (str): Identity ID - interval (str): Billing Interval monthly Monthly yearly Yearly - plan (str): Plan ID + interval (str): monthly Monthly yearly Yearly + plan (str): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -250,6 +246,8 @@ def __init__(self, currency, identity_id, interval, plan, *args, **kwargs): # n Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + currency (str): usd USD eur Euro. [optional] # noqa: E501 + return_to (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -279,8 +277,6 @@ def __init__(self, currency, identity_id, interval, plan, *args, **kwargs): # n self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.currency = currency - self.identity_id = identity_id self.interval = interval self.plan = plan for var_name, var_value in kwargs.items(): diff --git a/clients/client/python/ory_client/model/create_verifiable_credential_request_body.py b/clients/client/python/ory_client/model/create_verifiable_credential_request_body.py index c3ff22af907..025cbaed28d 100644 --- a/clients/client/python/ory_client/model/create_verifiable_credential_request_body.py +++ b/clients/client/python/ory_client/model/create_verifiable_credential_request_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/create_workspace_member_invite_body.py b/clients/client/python/ory_client/model/create_workspace_member_invite_body.py index 71ce84e5fab..87aa4761d30 100644 --- a/clients/client/python/ory_client/model/create_workspace_member_invite_body.py +++ b/clients/client/python/ory_client/model/create_workspace_member_invite_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_state.py b/clients/client/python/ory_client/model/create_workspace_payload.py similarity index 76% rename from clients/client/python/ory_client/model/identity_state.py rename to clients/client/python/ory_client/model/create_workspace_payload.py index 7c42314a3b6..b34ff920ba1 100644 --- a/clients/client/python/ory_client/model/identity_state.py +++ b/clients/client/python/ory_client/model/create_workspace_payload.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ -class IdentityState(ModelSimple): +class CreateWorkspacePayload(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -42,6 +42,10 @@ class IdentityState(ModelSimple): and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the allowed value and an allowed value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. validations (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict that stores validations for max_length, min_length, max_items, @@ -52,16 +56,18 @@ class IdentityState(ModelSimple): """ allowed_values = { - ('value',): { - 'ACTIVE': "active", - 'INACTIVE': "inactive", - }, } validations = { } - additional_properties_type = None + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -76,7 +82,7 @@ def openapi_types(): and the value is attribute type. """ return { - 'value': (str,), + 'name': (str,), # noqa: E501 } @cached_property @@ -84,32 +90,24 @@ def discriminator(): return None - attribute_map = {} - - read_only_vars = set() + attribute_map = { + 'name': 'name', # noqa: E501 + } - _composed_schemas = None + read_only_vars = { + } - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) + _composed_schemas = {} + @classmethod @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): - """IdentityState - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. + def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + """CreateWorkspacePayload - a model defined in OpenAPI Args: - args[0] (str): The state can either be `active` or `inactive`.., must be one of ["active", "inactive", ] # noqa: E501 + name (str): The name of the workspace Keyword Args: - value (str): The state can either be `active` or `inactive`.., must be one of ["active", "inactive", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -141,26 +139,15 @@ def __init__(self, *args, **kwargs): through its discriminator because we passed in _visited_composed_classes = (Animal,) """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + self = super(OpenApiModel, cls).__new__(cls) + if args: for arg in args: if isinstance(arg, dict): @@ -181,29 +168,35 @@ def __init__(self, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): - """IdentityState - a model defined in OpenAPI + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self - Note that value can be passed either in args or in kwargs, but not in both. + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, *args, **kwargs): # noqa: E501 + """CreateWorkspacePayload - a model defined in OpenAPI Args: - args[0] (str): The state can either be `active` or `inactive`.., must be one of ["active", "inactive", ] # noqa: E501 + name (str): The name of the workspace Keyword Args: - value (str): The state can either be `active` or `inactive`.., must be one of ["active", "inactive", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -235,25 +228,10 @@ def _from_openapi_data(cls, *args, **kwargs): through its discriminator because we passed in _visited_composed_classes = (Animal,) """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -277,15 +255,16 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - return self + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/identity_credentials_type.py b/clients/client/python/ory_client/model/create_workspace_subscription_body.py similarity index 74% rename from clients/client/python/ory_client/model/identity_credentials_type.py rename to clients/client/python/ory_client/model/create_workspace_subscription_body.py index c3e3f4d9103..d968377f1ad 100644 --- a/clients/client/python/ory_client/model/identity_credentials_type.py +++ b/clients/client/python/ory_client/model/create_workspace_subscription_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ -class IdentityCredentialsType(ModelSimple): +class CreateWorkspaceSubscriptionBody(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -42,6 +42,10 @@ class IdentityCredentialsType(ModelSimple): and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the allowed value and an allowed value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. validations (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict that stores validations for max_length, min_length, max_items, @@ -52,20 +56,26 @@ class IdentityCredentialsType(ModelSimple): """ allowed_values = { - ('value',): { - 'PASSWORD': "password", - 'TOTP': "totp", - 'OIDC': "oidc", - 'WEBAUTHN': "webauthn", - 'LOOKUP_SECRET': "lookup_secret", - 'CODE': "code", + ('interval',): { + 'MONTHLY': "monthly", + 'YEARLY': "yearly", + }, + ('currency',): { + 'USD': "usd", + 'EUR': "eur", }, } validations = { } - additional_properties_type = None + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -80,7 +90,10 @@ def openapi_types(): and the value is attribute type. """ return { - 'value': (str,), + 'interval': (str,), # noqa: E501 + 'plan': (str,), # noqa: E501 + 'currency': (str,), # noqa: E501 + 'return_to': (str,), # noqa: E501 } @cached_property @@ -88,32 +101,28 @@ def discriminator(): return None - attribute_map = {} - - read_only_vars = set() + attribute_map = { + 'interval': 'interval', # noqa: E501 + 'plan': 'plan', # noqa: E501 + 'currency': 'currency', # noqa: E501 + 'return_to': 'return_to', # noqa: E501 + } - _composed_schemas = None + read_only_vars = { + } - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) + _composed_schemas = {} + @classmethod @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): - """IdentityCredentialsType - a model defined in OpenAPI - - Note that value can be passed either in args or in kwargs, but not in both. + def _from_openapi_data(cls, interval, plan, *args, **kwargs): # noqa: E501 + """CreateWorkspaceSubscriptionBody - a model defined in OpenAPI Args: - args[0] (str): and so on.., must be one of ["password", "totp", "oidc", "webauthn", "lookup_secret", "code", ] # noqa: E501 + interval (str): monthly Monthly yearly Yearly + plan (str): Keyword Args: - value (str): and so on.., must be one of ["password", "totp", "oidc", "webauthn", "lookup_secret", "code", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -144,27 +153,18 @@ def __init__(self, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + currency (str): usd USD eur Euro. [optional] # noqa: E501 + return_to (str): [optional] # noqa: E501 """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + self = super(OpenApiModel, cls).__new__(cls) + if args: for arg in args: if isinstance(arg, dict): @@ -185,29 +185,37 @@ def __init__(self, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - @classmethod - @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): - """IdentityCredentialsType - a model defined in OpenAPI + self.interval = interval + self.plan = plan + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) - Note that value can be passed either in args or in kwargs, but not in both. + @convert_js_args_to_python_args + def __init__(self, interval, plan, *args, **kwargs): # noqa: E501 + """CreateWorkspaceSubscriptionBody - a model defined in OpenAPI Args: - args[0] (str): and so on.., must be one of ["password", "totp", "oidc", "webauthn", "lookup_secret", "code", ] # noqa: E501 + interval (str): monthly Monthly yearly Yearly + plan (str): Keyword Args: - value (str): and so on.., must be one of ["password", "totp", "oidc", "webauthn", "lookup_secret", "code", ] # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -238,26 +246,13 @@ def _from_openapi_data(cls, *args, **kwargs): Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + currency (str): usd USD eur Euro. [optional] # noqa: E501 + return_to (str): [optional] # noqa: E501 """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -281,15 +276,17 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - return self + self.interval = interval + self.plan = plan + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/credential_supported_draft00.py b/clients/client/python/ory_client/model/credential_supported_draft00.py index 2fd7f932193..d6dc1bc173c 100644 --- a/clients/client/python/ory_client/model/credential_supported_draft00.py +++ b/clients/client/python/ory_client/model/credential_supported_draft00.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/custom_domain.py b/clients/client/python/ory_client/model/custom_domain.py index be14f91ffa1..620d29fdab4 100644 --- a/clients/client/python/ory_client/model/custom_domain.py +++ b/clients/client/python/ory_client/model/custom_domain.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/delete_my_sessions_count.py b/clients/client/python/ory_client/model/delete_my_sessions_count.py index 0ac901ef4e7..afbb28f26c4 100644 --- a/clients/client/python/ory_client/model/delete_my_sessions_count.py +++ b/clients/client/python/ory_client/model/delete_my_sessions_count.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/email_template_data.py b/clients/client/python/ory_client/model/email_template_data.py index de5304c5fcd..1577f46f666 100644 --- a/clients/client/python/ory_client/model/email_template_data.py +++ b/clients/client/python/ory_client/model/email_template_data.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/email_template_data_body.py b/clients/client/python/ory_client/model/email_template_data_body.py index 55d94da3390..8d3acff29f1 100644 --- a/clients/client/python/ory_client/model/email_template_data_body.py +++ b/clients/client/python/ory_client/model/email_template_data_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/error_authenticator_assurance_level_not_satisfied.py b/clients/client/python/ory_client/model/error_authenticator_assurance_level_not_satisfied.py index b611e59b274..53eec90409f 100644 --- a/clients/client/python/ory_client/model/error_authenticator_assurance_level_not_satisfied.py +++ b/clients/client/python/ory_client/model/error_authenticator_assurance_level_not_satisfied.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/error_browser_location_change_required.py b/clients/client/python/ory_client/model/error_browser_location_change_required.py index 5fbdae8301d..2476e44f25d 100644 --- a/clients/client/python/ory_client/model/error_browser_location_change_required.py +++ b/clients/client/python/ory_client/model/error_browser_location_change_required.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/error_flow_replaced.py b/clients/client/python/ory_client/model/error_flow_replaced.py index b950c4fbee9..8a4baa8b4a7 100644 --- a/clients/client/python/ory_client/model/error_flow_replaced.py +++ b/clients/client/python/ory_client/model/error_flow_replaced.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/error_generic.py b/clients/client/python/ory_client/model/error_generic.py index 8baacdb7e6c..8c08ccc2bff 100644 --- a/clients/client/python/ory_client/model/error_generic.py +++ b/clients/client/python/ory_client/model/error_generic.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/error_o_auth2.py b/clients/client/python/ory_client/model/error_o_auth2.py index 00fccc5614e..e40dacde909 100644 --- a/clients/client/python/ory_client/model/error_o_auth2.py +++ b/clients/client/python/ory_client/model/error_o_auth2.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/event_stream.py b/clients/client/python/ory_client/model/event_stream.py index 8ff13b9b163..3601648c18b 100644 --- a/clients/client/python/ory_client/model/event_stream.py +++ b/clients/client/python/ory_client/model/event_stream.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/expanded_permission_tree.py b/clients/client/python/ory_client/model/expanded_permission_tree.py index 75b1ce9355f..e958598816c 100644 --- a/clients/client/python/ory_client/model/expanded_permission_tree.py +++ b/clients/client/python/ory_client/model/expanded_permission_tree.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/flow_error.py b/clients/client/python/ory_client/model/flow_error.py index 01507e8a255..e8b8fc21936 100644 --- a/clients/client/python/ory_client/model/flow_error.py +++ b/clients/client/python/ory_client/model/flow_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/generic_error.py b/clients/client/python/ory_client/model/generic_error.py index 5dd5c5e7be5..1dbe1d0ebc9 100644 --- a/clients/client/python/ory_client/model/generic_error.py +++ b/clients/client/python/ory_client/model/generic_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/generic_error_content.py b/clients/client/python/ory_client/model/generic_error_content.py index dc01ec707d7..4fac4303b4f 100644 --- a/clients/client/python/ory_client/model/generic_error_content.py +++ b/clients/client/python/ory_client/model/generic_error_content.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/generic_usage.py b/clients/client/python/ory_client/model/generic_usage.py index b988d435399..2f1dc76ed1a 100644 --- a/clients/client/python/ory_client/model/generic_usage.py +++ b/clients/client/python/ory_client/model/generic_usage.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_attributes_count_response.py b/clients/client/python/ory_client/model/get_attributes_count_response.py index 4cf92e067e0..3420ac5bf04 100644 --- a/clients/client/python/ory_client/model/get_attributes_count_response.py +++ b/clients/client/python/ory_client/model/get_attributes_count_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_managed_identity_schema_location.py b/clients/client/python/ory_client/model/get_managed_identity_schema_location.py index 98336b55078..7e7b3b35ce0 100644 --- a/clients/client/python/ory_client/model/get_managed_identity_schema_location.py +++ b/clients/client/python/ory_client/model/get_managed_identity_schema_location.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_metrics_event_attributes_response.py b/clients/client/python/ory_client/model/get_metrics_event_attributes_response.py index fe3b50dc75c..c472d92d598 100644 --- a/clients/client/python/ory_client/model/get_metrics_event_attributes_response.py +++ b/clients/client/python/ory_client/model/get_metrics_event_attributes_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_metrics_event_types_response.py b/clients/client/python/ory_client/model/get_metrics_event_types_response.py index 886aaa520bc..91188a4d873 100644 --- a/clients/client/python/ory_client/model/get_metrics_event_types_response.py +++ b/clients/client/python/ory_client/model/get_metrics_event_types_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_organization_response.py b/clients/client/python/ory_client/model/get_organization_response.py index 40f1e8d55fd..3a1efa4c174 100644 --- a/clients/client/python/ory_client/model/get_organization_response.py +++ b/clients/client/python/ory_client/model/get_organization_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_project_events_body.py b/clients/client/python/ory_client/model/get_project_events_body.py index 5df4c91443d..f385f79c2b5 100644 --- a/clients/client/python/ory_client/model/get_project_events_body.py +++ b/clients/client/python/ory_client/model/get_project_events_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_project_events_response.py b/clients/client/python/ory_client/model/get_project_events_response.py index a112ddc4dbf..e4e083c27b8 100644 --- a/clients/client/python/ory_client/model/get_project_events_response.py +++ b/clients/client/python/ory_client/model/get_project_events_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_project_metrics_response.py b/clients/client/python/ory_client/model/get_project_metrics_response.py index b13acee0e11..55364bd5f4a 100644 --- a/clients/client/python/ory_client/model/get_project_metrics_response.py +++ b/clients/client/python/ory_client/model/get_project_metrics_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_session_activity_response.py b/clients/client/python/ory_client/model/get_session_activity_response.py index 605df2e2a52..59d80b46b79 100644 --- a/clients/client/python/ory_client/model/get_session_activity_response.py +++ b/clients/client/python/ory_client/model/get_session_activity_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/get_version200_response.py b/clients/client/python/ory_client/model/get_version200_response.py index 3105664f319..04179e1531c 100644 --- a/clients/client/python/ory_client/model/get_version200_response.py +++ b/clients/client/python/ory_client/model/get_version200_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/health_not_ready_status.py b/clients/client/python/ory_client/model/health_not_ready_status.py index 1d148a57c0b..da118c676a0 100644 --- a/clients/client/python/ory_client/model/health_not_ready_status.py +++ b/clients/client/python/ory_client/model/health_not_ready_status.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/health_status.py b/clients/client/python/ory_client/model/health_status.py index f81f1a81fef..96dcd20e210 100644 --- a/clients/client/python/ory_client/model/health_status.py +++ b/clients/client/python/ory_client/model/health_status.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity.py b/clients/client/python/ory_client/model/identity.py index b3d03f73199..1d5546de412 100644 --- a/clients/client/python/ory_client/model/identity.py +++ b/clients/client/python/ory_client/model/identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -32,11 +32,9 @@ def lazy_import(): from ory_client.model.identity_credentials import IdentityCredentials - from ory_client.model.identity_state import IdentityState from ory_client.model.recovery_identity_address import RecoveryIdentityAddress from ory_client.model.verifiable_identity_address import VerifiableIdentityAddress globals()['IdentityCredentials'] = IdentityCredentials - globals()['IdentityState'] = IdentityState globals()['RecoveryIdentityAddress'] = RecoveryIdentityAddress globals()['VerifiableIdentityAddress'] = VerifiableIdentityAddress @@ -66,6 +64,10 @@ class Identity(ModelNormal): """ allowed_values = { + ('state',): { + 'ACTIVE': "active", + 'INACTIVE': "inactive", + }, } validations = { @@ -104,7 +106,7 @@ def openapi_types(): 'metadata_public': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type,), # noqa: E501 'organization_id': (str, none_type,), # noqa: E501 'recovery_addresses': ([RecoveryIdentityAddress],), # noqa: E501 - 'state': (IdentityState,), # noqa: E501 + 'state': (str,), # noqa: E501 'state_changed_at': (datetime,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 'verifiable_addresses': ([VerifiableIdentityAddress],), # noqa: E501 @@ -185,7 +187,7 @@ def _from_openapi_data(cls, id, schema_id, schema_url, traits, *args, **kwargs): metadata_public ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-. [optional] # noqa: E501 organization_id (str, none_type): [optional] # noqa: E501 recovery_addresses ([RecoveryIdentityAddress]): RecoveryAddresses contains all the addresses that can be used to recover an identity.. [optional] # noqa: E501 - state (IdentityState): [optional] # noqa: E501 + state (str): State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive. [optional] # noqa: E501 state_changed_at (datetime): [optional] # noqa: E501 updated_at (datetime): UpdatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 verifiable_addresses ([VerifiableIdentityAddress]): VerifiableAddresses contains all the addresses that can be verified by the user.. [optional] # noqa: E501 @@ -290,7 +292,7 @@ def __init__(self, id, schema_id, schema_url, traits, *args, **kwargs): # noqa: metadata_public ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}, none_type): NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-. [optional] # noqa: E501 organization_id (str, none_type): [optional] # noqa: E501 recovery_addresses ([RecoveryIdentityAddress]): RecoveryAddresses contains all the addresses that can be used to recover an identity.. [optional] # noqa: E501 - state (IdentityState): [optional] # noqa: E501 + state (str): State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive. [optional] # noqa: E501 state_changed_at (datetime): [optional] # noqa: E501 updated_at (datetime): UpdatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 verifiable_addresses ([VerifiableIdentityAddress]): VerifiableAddresses contains all the addresses that can be verified by the user.. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/identity_credentials.py b/clients/client/python/ory_client/model/identity_credentials.py index 2c7e6ae21da..644011bc069 100644 --- a/clients/client/python/ory_client/model/identity_credentials.py +++ b/clients/client/python/ory_client/model/identity_credentials.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -30,10 +30,6 @@ from ory_client.exceptions import ApiAttributeError -def lazy_import(): - from ory_client.model.identity_credentials_type import IdentityCredentialsType - globals()['IdentityCredentialsType'] = IdentityCredentialsType - class IdentityCredentials(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -60,6 +56,16 @@ class IdentityCredentials(ModelNormal): """ allowed_values = { + ('type',): { + 'PASSWORD': "password", + 'OIDC': "oidc", + 'TOTP': "totp", + 'LOOKUP_SECRET': "lookup_secret", + 'WEBAUTHN': "webauthn", + 'CODE': "code", + 'LINK_RECOVERY': "link_recovery", + 'CODE_RECOVERY': "code_recovery", + }, } validations = { @@ -71,7 +77,6 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ - lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -86,12 +91,11 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ - lazy_import() return { 'config': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'created_at': (datetime,), # noqa: E501 'identifiers': ([str],), # noqa: E501 - 'type': (IdentityCredentialsType,), # noqa: E501 + 'type': (str,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 'version': (int,), # noqa: E501 } @@ -154,7 +158,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 config ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 created_at (datetime): CreatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 identifiers ([str]): Identifiers represents a list of unique identifiers this credential type matches.. [optional] # noqa: E501 - type (IdentityCredentialsType): [optional] # noqa: E501 + type (str): Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. [optional] # noqa: E501 updated_at (datetime): UpdatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 version (int): Version refers to the version of the credential. Useful when changing the config schema.. [optional] # noqa: E501 """ @@ -245,7 +249,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 config ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 created_at (datetime): CreatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 identifiers ([str]): Identifiers represents a list of unique identifiers this credential type matches.. [optional] # noqa: E501 - type (IdentityCredentialsType): [optional] # noqa: E501 + type (str): Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. [optional] # noqa: E501 updated_at (datetime): UpdatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 version (int): Version refers to the version of the credential. Useful when changing the config schema.. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/identity_credentials_code.py b/clients/client/python/ory_client/model/identity_credentials_code.py index 85a8c8f1af9..08a6339a61e 100644 --- a/clients/client/python/ory_client/model/identity_credentials_code.py +++ b/clients/client/python/ory_client/model/identity_credentials_code.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -137,7 +137,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - address_type (str): [optional] # noqa: E501 + address_type (str): The type of the address for this code. [optional] # noqa: E501 used_at (datetime, none_type): [optional] # noqa: E501 """ @@ -224,7 +224,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - address_type (str): [optional] # noqa: E501 + address_type (str): The type of the address for this code. [optional] # noqa: E501 used_at (datetime, none_type): [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/identity_credentials_oidc.py b/clients/client/python/ory_client/model/identity_credentials_oidc.py index 4a5091cb7bb..321c5293718 100644 --- a/clients/client/python/ory_client/model/identity_credentials_oidc.py +++ b/clients/client/python/ory_client/model/identity_credentials_oidc.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_credentials_oidc_provider.py b/clients/client/python/ory_client/model/identity_credentials_oidc_provider.py index bff17fcc1a4..bcadb89b125 100644 --- a/clients/client/python/ory_client/model/identity_credentials_oidc_provider.py +++ b/clients/client/python/ory_client/model/identity_credentials_oidc_provider.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_credentials_password.py b/clients/client/python/ory_client/model/identity_credentials_password.py index 7086dd45d7f..780cdc9167d 100644 --- a/clients/client/python/ory_client/model/identity_credentials_password.py +++ b/clients/client/python/ory_client/model/identity_credentials_password.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_patch.py b/clients/client/python/ory_client/model/identity_patch.py index 40c6bab608d..81c93101850 100644 --- a/clients/client/python/ory_client/model/identity_patch.py +++ b/clients/client/python/ory_client/model/identity_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_patch_response.py b/clients/client/python/ory_client/model/identity_patch_response.py index 4377b2147e2..751ec86ea38 100644 --- a/clients/client/python/ory_client/model/identity_patch_response.py +++ b/clients/client/python/ory_client/model/identity_patch_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_schema_container.py b/clients/client/python/ory_client/model/identity_schema_container.py index 7a89dc544ce..5090cfbbf8c 100644 --- a/clients/client/python/ory_client/model/identity_schema_container.py +++ b/clients/client/python/ory_client/model/identity_schema_container.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_schema_preset.py b/clients/client/python/ory_client/model/identity_schema_preset.py index 02d7554fc50..b4ae528598f 100644 --- a/clients/client/python/ory_client/model/identity_schema_preset.py +++ b/clients/client/python/ory_client/model/identity_schema_preset.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_schema_presets.py b/clients/client/python/ory_client/model/identity_schema_presets.py index 245331bf82f..63dd4d8ce6e 100644 --- a/clients/client/python/ory_client/model/identity_schema_presets.py +++ b/clients/client/python/ory_client/model/identity_schema_presets.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_schemas.py b/clients/client/python/ory_client/model/identity_schemas.py index be0a6e73729..f39e52ef324 100644 --- a/clients/client/python/ory_client/model/identity_schemas.py +++ b/clients/client/python/ory_client/model/identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_with_credentials.py b/clients/client/python/ory_client/model/identity_with_credentials.py index 861fac49a4c..8556a870d16 100644 --- a/clients/client/python/ory_client/model/identity_with_credentials.py +++ b/clients/client/python/ory_client/model/identity_with_credentials.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_with_credentials_oidc.py b/clients/client/python/ory_client/model/identity_with_credentials_oidc.py index ecbe52e45d3..5c344b014a0 100644 --- a/clients/client/python/ory_client/model/identity_with_credentials_oidc.py +++ b/clients/client/python/ory_client/model/identity_with_credentials_oidc.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_with_credentials_oidc_config.py b/clients/client/python/ory_client/model/identity_with_credentials_oidc_config.py index 0466a344273..c2953f1674c 100644 --- a/clients/client/python/ory_client/model/identity_with_credentials_oidc_config.py +++ b/clients/client/python/ory_client/model/identity_with_credentials_oidc_config.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_with_credentials_oidc_config_provider.py b/clients/client/python/ory_client/model/identity_with_credentials_oidc_config_provider.py index 1fc03da8273..b2c70d71d44 100644 --- a/clients/client/python/ory_client/model/identity_with_credentials_oidc_config_provider.py +++ b/clients/client/python/ory_client/model/identity_with_credentials_oidc_config_provider.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_with_credentials_password.py b/clients/client/python/ory_client/model/identity_with_credentials_password.py index ebabe5a2c3f..b754e040ab9 100644 --- a/clients/client/python/ory_client/model/identity_with_credentials_password.py +++ b/clients/client/python/ory_client/model/identity_with_credentials_password.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/identity_with_credentials_password_config.py b/clients/client/python/ory_client/model/identity_with_credentials_password_config.py index 9945857a73b..db59b71b045 100644 --- a/clients/client/python/ory_client/model/identity_with_credentials_password_config.py +++ b/clients/client/python/ory_client/model/identity_with_credentials_password_config.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/internal_get_project_branding_body.py b/clients/client/python/ory_client/model/internal_get_project_branding_body.py index 8dbf1b44dce..70ebb8f4bb4 100644 --- a/clients/client/python/ory_client/model/internal_get_project_branding_body.py +++ b/clients/client/python/ory_client/model/internal_get_project_branding_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py b/clients/client/python/ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py index 4b5f8859ad9..ff500943ca6 100644 --- a/clients/client/python/ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py +++ b/clients/client/python/ory_client/model/internal_is_ax_welcome_screen_enabled_for_project_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_body.py b/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_body.py index d2bc7f082a8..578fb3bad58 100644 --- a/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_body.py +++ b/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_response.py b/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_response.py index 8f0d79a97e6..01f8f701991 100644 --- a/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_response.py +++ b/clients/client/python/ory_client/model/internal_is_owner_for_project_by_slug_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/introspected_o_auth2_token.py b/clients/client/python/ory_client/model/introspected_o_auth2_token.py index ef9b60a052e..d6f74777ba2 100644 --- a/clients/client/python/ory_client/model/introspected_o_auth2_token.py +++ b/clients/client/python/ory_client/model/introspected_o_auth2_token.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/is_owner_for_project_by_slug.py b/clients/client/python/ory_client/model/is_owner_for_project_by_slug.py index 1689d376e86..cbce6bb5835 100644 --- a/clients/client/python/ory_client/model/is_owner_for_project_by_slug.py +++ b/clients/client/python/ory_client/model/is_owner_for_project_by_slug.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/is_ready200_response.py b/clients/client/python/ory_client/model/is_ready200_response.py index 403a523dbe1..36140b76c40 100644 --- a/clients/client/python/ory_client/model/is_ready200_response.py +++ b/clients/client/python/ory_client/model/is_ready200_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/is_ready503_response.py b/clients/client/python/ory_client/model/is_ready503_response.py index 0ac279ca3c2..8905d0f53ef 100644 --- a/clients/client/python/ory_client/model/is_ready503_response.py +++ b/clients/client/python/ory_client/model/is_ready503_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/json_patch.py b/clients/client/python/ory_client/model/json_patch.py index 3afde94b2ee..36b08af13b0 100644 --- a/clients/client/python/ory_client/model/json_patch.py +++ b/clients/client/python/ory_client/model/json_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/json_patch_document.py b/clients/client/python/ory_client/model/json_patch_document.py index 7a1199ac203..98bf2a4a4b5 100644 --- a/clients/client/python/ory_client/model/json_patch_document.py +++ b/clients/client/python/ory_client/model/json_patch_document.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/json_web_key.py b/clients/client/python/ory_client/model/json_web_key.py index c344d92be5d..f2662593892 100644 --- a/clients/client/python/ory_client/model/json_web_key.py +++ b/clients/client/python/ory_client/model/json_web_key.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/json_web_key_set.py b/clients/client/python/ory_client/model/json_web_key_set.py index c0a59cdbba5..3cc07d5b8b9 100644 --- a/clients/client/python/ory_client/model/json_web_key_set.py +++ b/clients/client/python/ory_client/model/json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/keto_namespace.py b/clients/client/python/ory_client/model/keto_namespace.py index e8e439a1eb2..9265dbc20ab 100644 --- a/clients/client/python/ory_client/model/keto_namespace.py +++ b/clients/client/python/ory_client/model/keto_namespace.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/keto_namespaces.py b/clients/client/python/ory_client/model/keto_namespaces.py index 658c9de6cfe..4ffeb6353ea 100644 --- a/clients/client/python/ory_client/model/keto_namespaces.py +++ b/clients/client/python/ory_client/model/keto_namespaces.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/list_custom_domains.py b/clients/client/python/ory_client/model/list_custom_domains.py index ff45ba2c7bb..5f2260ff005 100644 --- a/clients/client/python/ory_client/model/list_custom_domains.py +++ b/clients/client/python/ory_client/model/list_custom_domains.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/list_event_streams.py b/clients/client/python/ory_client/model/list_event_streams.py index 636b67c80df..4f590175dfd 100644 --- a/clients/client/python/ory_client/model/list_event_streams.py +++ b/clients/client/python/ory_client/model/list_event_streams.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/list_my_workspaces_response.py b/clients/client/python/ory_client/model/list_my_workspaces_response.py index 60988258472..a9283d3daf2 100644 --- a/clients/client/python/ory_client/model/list_my_workspaces_response.py +++ b/clients/client/python/ory_client/model/list_my_workspaces_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,8 +31,8 @@ def lazy_import(): - from ory_client.model.workspace import Workspace - globals()['Workspace'] = Workspace + from ory_client.model.workspace_meta import WorkspaceMeta + globals()['WorkspaceMeta'] = WorkspaceMeta class ListMyWorkspacesResponse(ModelNormal): @@ -90,7 +90,7 @@ def openapi_types(): return { 'has_next_page': (bool,), # noqa: E501 'next_page_token': (str,), # noqa: E501 - 'workspaces': ([Workspace],), # noqa: E501 + 'workspaces': ([WorkspaceMeta],), # noqa: E501 } @cached_property @@ -117,7 +117,7 @@ def _from_openapi_data(cls, has_next_page, next_page_token, workspaces, *args, * Args: has_next_page (bool): next_page_token (str): - workspaces ([Workspace]): + workspaces ([WorkspaceMeta]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -210,7 +210,7 @@ def __init__(self, has_next_page, next_page_token, workspaces, *args, **kwargs): Args: has_next_page (bool): next_page_token (str): - workspaces ([Workspace]): + workspaces ([WorkspaceMeta]): Keyword Args: _check_type (bool): if True, values for parameters in openapi_types diff --git a/clients/client/python/ory_client/model/list_organizations_response.py b/clients/client/python/ory_client/model/list_organizations_response.py index 4cbb28750e2..3e94053b411 100644 --- a/clients/client/python/ory_client/model/list_organizations_response.py +++ b/clients/client/python/ory_client/model/list_organizations_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/list_workspace_projects_response.py b/clients/client/python/ory_client/model/list_workspace_projects_response.py new file mode 100644 index 00000000000..e7be761acef --- /dev/null +++ b/clients/client/python/ory_client/model/list_workspace_projects_response.py @@ -0,0 +1,288 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from ory_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from ory_client.exceptions import ApiAttributeError + + +def lazy_import(): + from ory_client.model.project_metadata import ProjectMetadata + globals()['ProjectMetadata'] = ProjectMetadata + + +class ListWorkspaceProjectsResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + lazy_import() + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + lazy_import() + return { + 'has_next_page': (bool,), # noqa: E501 + 'next_page': (str,), # noqa: E501 + 'projects': ([ProjectMetadata],), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'has_next_page': 'has_next_page', # noqa: E501 + 'next_page': 'next_page', # noqa: E501 + 'projects': 'projects', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, has_next_page, next_page, projects, *args, **kwargs): # noqa: E501 + """ListWorkspaceProjectsResponse - a model defined in OpenAPI + + Args: + has_next_page (bool): + next_page (str): + projects ([ProjectMetadata]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.has_next_page = has_next_page + self.next_page = next_page + self.projects = projects + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, has_next_page, next_page, projects, *args, **kwargs): # noqa: E501 + """ListWorkspaceProjectsResponse - a model defined in OpenAPI + + Args: + has_next_page (bool): + next_page (str): + projects ([ProjectMetadata]): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.has_next_page = has_next_page + self.next_page = next_page + self.projects = projects + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/login_flow.py b/clients/client/python/ory_client/model/login_flow.py index 9f6c7226cb9..957b4fd61bd 100644 --- a/clients/client/python/ory_client/model/login_flow.py +++ b/clients/client/python/ory_client/model/login_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -32,11 +32,9 @@ def lazy_import(): from ory_client.model.authenticator_assurance_level import AuthenticatorAssuranceLevel - from ory_client.model.identity_credentials_type import IdentityCredentialsType from ory_client.model.o_auth2_login_request import OAuth2LoginRequest from ory_client.model.ui_container import UiContainer globals()['AuthenticatorAssuranceLevel'] = AuthenticatorAssuranceLevel - globals()['IdentityCredentialsType'] = IdentityCredentialsType globals()['OAuth2LoginRequest'] = OAuth2LoginRequest globals()['UiContainer'] = UiContainer @@ -66,6 +64,16 @@ class LoginFlow(ModelNormal): """ allowed_values = { + ('active',): { + 'PASSWORD': "password", + 'OIDC': "oidc", + 'TOTP': "totp", + 'LOOKUP_SECRET': "lookup_secret", + 'WEBAUTHN': "webauthn", + 'CODE': "code", + 'LINK_RECOVERY': "link_recovery", + 'CODE_RECOVERY': "code_recovery", + }, } validations = { @@ -101,7 +109,7 @@ def openapi_types(): 'state': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'type': (str,), # noqa: E501 'ui': (UiContainer,), # noqa: E501 - 'active': (IdentityCredentialsType,), # noqa: E501 + 'active': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'oauth2_login_challenge': (str,), # noqa: E501 'oauth2_login_request': (OAuth2LoginRequest,), # noqa: E501 @@ -110,6 +118,7 @@ def openapi_types(): 'requested_aal': (AuthenticatorAssuranceLevel,), # noqa: E501 'return_to': (str,), # noqa: E501 'session_token_exchange_code': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'updated_at': (datetime,), # noqa: E501 } @@ -135,6 +144,7 @@ def discriminator(): 'requested_aal': 'requested_aal', # noqa: E501 'return_to': 'return_to', # noqa: E501 'session_token_exchange_code': 'session_token_exchange_code', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 } @@ -188,7 +198,7 @@ def _from_openapi_data(cls, expires_at, id, issued_at, request_url, state, type, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - active (IdentityCredentialsType): [optional] # noqa: E501 + active (str): The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. [optional] # noqa: E501 created_at (datetime): CreatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 oauth2_login_challenge (str): Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.. [optional] # noqa: E501 oauth2_login_request (OAuth2LoginRequest): [optional] # noqa: E501 @@ -197,6 +207,7 @@ def _from_openapi_data(cls, expires_at, id, issued_at, request_url, state, type, requested_aal (AuthenticatorAssuranceLevel): [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 session_token_exchange_code (str): SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the login to hooks and email templates. [optional] # noqa: E501 updated_at (datetime): UpdatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 """ @@ -299,7 +310,7 @@ def __init__(self, expires_at, id, issued_at, request_url, state, type, ui, *arg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - active (IdentityCredentialsType): [optional] # noqa: E501 + active (str): The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. [optional] # noqa: E501 created_at (datetime): CreatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 oauth2_login_challenge (str): Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.. [optional] # noqa: E501 oauth2_login_request (OAuth2LoginRequest): [optional] # noqa: E501 @@ -308,6 +319,7 @@ def __init__(self, expires_at, id, issued_at, request_url, state, type, ui, *arg requested_aal (AuthenticatorAssuranceLevel): [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 session_token_exchange_code (str): SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the login to hooks and email templates. [optional] # noqa: E501 updated_at (datetime): UpdatedAt is a helper struct field for gobuffalo.pop.. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/login_flow_state.py b/clients/client/python/ory_client/model/login_flow_state.py index c2fdd7ef335..5af90b2835a 100644 --- a/clients/client/python/ory_client/model/login_flow_state.py +++ b/clients/client/python/ory_client/model/login_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/logout_flow.py b/clients/client/python/ory_client/model/logout_flow.py index 66969e8e113..cc83e6426a8 100644 --- a/clients/client/python/ory_client/model/logout_flow.py +++ b/clients/client/python/ory_client/model/logout_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/managed_identity_schema.py b/clients/client/python/ory_client/model/managed_identity_schema.py index 2b89994df94..aa509307f10 100644 --- a/clients/client/python/ory_client/model/managed_identity_schema.py +++ b/clients/client/python/ory_client/model/managed_identity_schema.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/managed_identity_schema_validation_result.py b/clients/client/python/ory_client/model/managed_identity_schema_validation_result.py index e2552b5dceb..76da9272c39 100644 --- a/clients/client/python/ory_client/model/managed_identity_schema_validation_result.py +++ b/clients/client/python/ory_client/model/managed_identity_schema_validation_result.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/managed_identity_schemas.py b/clients/client/python/ory_client/model/managed_identity_schemas.py index a3088e63ac2..c5039c2fe57 100644 --- a/clients/client/python/ory_client/model/managed_identity_schemas.py +++ b/clients/client/python/ory_client/model/managed_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/member_invite.py b/clients/client/python/ory_client/model/member_invite.py index 6e8fc5d39f2..3ac1927bed9 100644 --- a/clients/client/python/ory_client/model/member_invite.py +++ b/clients/client/python/ory_client/model/member_invite.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/member_invites.py b/clients/client/python/ory_client/model/member_invites.py index e48ee96d5df..2a473b6269e 100644 --- a/clients/client/python/ory_client/model/member_invites.py +++ b/clients/client/python/ory_client/model/member_invites.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/message.py b/clients/client/python/ory_client/model/message.py index 9b6411e6351..4a391f9b2ac 100644 --- a/clients/client/python/ory_client/model/message.py +++ b/clients/client/python/ory_client/model/message.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/message_dispatch.py b/clients/client/python/ory_client/model/message_dispatch.py index 61657e82b1c..74a3fd1395a 100644 --- a/clients/client/python/ory_client/model/message_dispatch.py +++ b/clients/client/python/ory_client/model/message_dispatch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/metrics_datapoint.py b/clients/client/python/ory_client/model/metrics_datapoint.py index efe9bf4d862..686286dcbce 100644 --- a/clients/client/python/ory_client/model/metrics_datapoint.py +++ b/clients/client/python/ory_client/model/metrics_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/migration_options.py b/clients/client/python/ory_client/model/migration_options.py new file mode 100644 index 00000000000..0ecdb707574 --- /dev/null +++ b/clients/client/python/ory_client/model/migration_options.py @@ -0,0 +1,284 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from ory_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from ory_client.exceptions import ApiAttributeError + + + +class MigrationOptions(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + ('environment',): { + 'PROD': "prod", + 'DEV': "dev", + }, + ('project_subscription',): { + 'MIGRATE': "migrate", + 'IGNORE': "ignore", + }, + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'environment': (str,), # noqa: E501 + 'project_subscription': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'environment': 'environment', # noqa: E501 + 'project_subscription': 'project_subscription', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, environment, project_subscription, *args, **kwargs): # noqa: E501 + """MigrationOptions - a model defined in OpenAPI + + Args: + environment (str): The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + project_subscription (str): The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.environment = environment + self.project_subscription = project_subscription + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, environment, project_subscription, *args, **kwargs): # noqa: E501 + """MigrationOptions - a model defined in OpenAPI + + Args: + environment (str): The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + project_subscription (str): The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.environment = environment + self.project_subscription = project_subscription + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/namespace.py b/clients/client/python/ory_client/model/namespace.py index 551f9cba932..14a577343e1 100644 --- a/clients/client/python/ory_client/model/namespace.py +++ b/clients/client/python/ory_client/model/namespace.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/needs_privileged_session_error.py b/clients/client/python/ory_client/model/needs_privileged_session_error.py index 40ace103078..491a99cb6b3 100644 --- a/clients/client/python/ory_client/model/needs_privileged_session_error.py +++ b/clients/client/python/ory_client/model/needs_privileged_session_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project.py b/clients/client/python/ory_client/model/normalized_project.py index 75b73857b44..087140a28bb 100644 --- a/clients/client/python/ory_client/model/normalized_project.py +++ b/clients/client/python/ory_client/model/normalized_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project_revision.py b/clients/client/python/ory_client/model/normalized_project_revision.py index b0a5574560d..e1bca0afcfa 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision.py +++ b/clients/client/python/ory_client/model/normalized_project_revision.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -149,12 +149,14 @@ def openapi_types(): 'name': (str,), # noqa: E501 'created_at': (datetime,), # noqa: E501 'disable_account_experience_welcome_screen': (bool,), # noqa: E501 + 'enable_ax_v2': (bool,), # noqa: E501 'hydra_oauth2_allowed_top_level_claims': (StringSliceJSONFormat,), # noqa: E501 'hydra_oauth2_client_credentials_default_grant_allowed_scope': (bool,), # noqa: E501 'hydra_oauth2_exclude_not_before_claim': (bool,), # noqa: E501 'hydra_oauth2_grant_jwt_iat_optional': (bool,), # noqa: E501 'hydra_oauth2_grant_jwt_jti_optional': (bool,), # noqa: E501 'hydra_oauth2_grant_jwt_max_ttl': (str,), # noqa: E501 + 'hydra_oauth2_mirror_top_level_claims': (bool,), # noqa: E501 'hydra_oauth2_pkce_enforced': (bool,), # noqa: E501 'hydra_oauth2_pkce_enforced_for_public_clients': (bool,), # noqa: E501 'hydra_oauth2_refresh_token_hook': (str,), # noqa: E501 @@ -213,6 +215,7 @@ def openapi_types(): 'kratos_courier_templates_login_code_valid_email_body_html': (str,), # noqa: E501 'kratos_courier_templates_login_code_valid_email_body_plaintext': (str,), # noqa: E501 'kratos_courier_templates_login_code_valid_email_subject': (str,), # noqa: E501 + 'kratos_courier_templates_login_code_valid_sms_body_plaintext': (str,), # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_html': (str,), # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext': (str,), # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_subject': (str,), # noqa: E501 @@ -298,6 +301,7 @@ def openapi_types(): 'kratos_selfservice_flows_verification_use': (str,), # noqa: E501 'kratos_selfservice_methods_code_config_lifespan': (str,), # noqa: E501 'kratos_selfservice_methods_code_enabled': (bool,), # noqa: E501 + 'kratos_selfservice_methods_code_mfa_enabled': (bool,), # noqa: E501 'kratos_selfservice_methods_code_passwordless_enabled': (bool,), # noqa: E501 'kratos_selfservice_methods_link_config_base_url': (str,), # noqa: E501 'kratos_selfservice_methods_link_config_lifespan': (str,), # noqa: E501 @@ -345,12 +349,14 @@ def discriminator(): 'name': 'name', # noqa: E501 'created_at': 'created_at', # noqa: E501 'disable_account_experience_welcome_screen': 'disable_account_experience_welcome_screen', # noqa: E501 + 'enable_ax_v2': 'enable_ax_v2', # noqa: E501 'hydra_oauth2_allowed_top_level_claims': 'hydra_oauth2_allowed_top_level_claims', # noqa: E501 'hydra_oauth2_client_credentials_default_grant_allowed_scope': 'hydra_oauth2_client_credentials_default_grant_allowed_scope', # noqa: E501 'hydra_oauth2_exclude_not_before_claim': 'hydra_oauth2_exclude_not_before_claim', # noqa: E501 'hydra_oauth2_grant_jwt_iat_optional': 'hydra_oauth2_grant_jwt_iat_optional', # noqa: E501 'hydra_oauth2_grant_jwt_jti_optional': 'hydra_oauth2_grant_jwt_jti_optional', # noqa: E501 'hydra_oauth2_grant_jwt_max_ttl': 'hydra_oauth2_grant_jwt_max_ttl', # noqa: E501 + 'hydra_oauth2_mirror_top_level_claims': 'hydra_oauth2_mirror_top_level_claims', # noqa: E501 'hydra_oauth2_pkce_enforced': 'hydra_oauth2_pkce_enforced', # noqa: E501 'hydra_oauth2_pkce_enforced_for_public_clients': 'hydra_oauth2_pkce_enforced_for_public_clients', # noqa: E501 'hydra_oauth2_refresh_token_hook': 'hydra_oauth2_refresh_token_hook', # noqa: E501 @@ -409,6 +415,7 @@ def discriminator(): 'kratos_courier_templates_login_code_valid_email_body_html': 'kratos_courier_templates_login_code_valid_email_body_html', # noqa: E501 'kratos_courier_templates_login_code_valid_email_body_plaintext': 'kratos_courier_templates_login_code_valid_email_body_plaintext', # noqa: E501 'kratos_courier_templates_login_code_valid_email_subject': 'kratos_courier_templates_login_code_valid_email_subject', # noqa: E501 + 'kratos_courier_templates_login_code_valid_sms_body_plaintext': 'kratos_courier_templates_login_code_valid_sms_body_plaintext', # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_html': 'kratos_courier_templates_recovery_code_invalid_email_body_html', # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext': 'kratos_courier_templates_recovery_code_invalid_email_body_plaintext', # noqa: E501 'kratos_courier_templates_recovery_code_invalid_email_subject': 'kratos_courier_templates_recovery_code_invalid_email_subject', # noqa: E501 @@ -494,6 +501,7 @@ def discriminator(): 'kratos_selfservice_flows_verification_use': 'kratos_selfservice_flows_verification_use', # noqa: E501 'kratos_selfservice_methods_code_config_lifespan': 'kratos_selfservice_methods_code_config_lifespan', # noqa: E501 'kratos_selfservice_methods_code_enabled': 'kratos_selfservice_methods_code_enabled', # noqa: E501 + 'kratos_selfservice_methods_code_mfa_enabled': 'kratos_selfservice_methods_code_mfa_enabled', # noqa: E501 'kratos_selfservice_methods_code_passwordless_enabled': 'kratos_selfservice_methods_code_passwordless_enabled', # noqa: E501 'kratos_selfservice_methods_link_config_base_url': 'kratos_selfservice_methods_link_config_base_url', # noqa: E501 'kratos_selfservice_methods_link_config_lifespan': 'kratos_selfservice_methods_link_config_lifespan', # noqa: E501 @@ -581,12 +589,14 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) created_at (datetime): The Project's Revision Creation Date. [optional] # noqa: E501 disable_account_experience_welcome_screen (bool): Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.. [optional] # noqa: E501 + enable_ax_v2 (bool): Whether the new account experience is enabled and reachable.. [optional] # noqa: E501 hydra_oauth2_allowed_top_level_claims (StringSliceJSONFormat): [optional] # noqa: E501 hydra_oauth2_client_credentials_default_grant_allowed_scope (bool): Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting.. [optional] # noqa: E501 hydra_oauth2_exclude_not_before_claim (bool): Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_iat_optional (bool): Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_jti_optional (bool): Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_max_ttl (str): Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting.. [optional] if omitted the server will use the default value of "720h" # noqa: E501 + hydra_oauth2_mirror_top_level_claims (bool): Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced (bool): Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced_for_public_clients (bool): Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting.. [optional] # noqa: E501 hydra_oauth2_refresh_token_hook (str): Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting.. [optional] # noqa: E501 @@ -645,6 +655,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 kratos_courier_templates_login_code_valid_email_body_html (str): Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_body_plaintext (str): Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_subject (str): Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting.. [optional] # noqa: E501 + kratos_courier_templates_login_code_valid_sms_body_plaintext (str): Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_html (str): Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_plaintext (str): Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_subject (str): Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 @@ -730,6 +741,7 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 kratos_selfservice_flows_verification_use (str): Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode. [optional] # noqa: E501 kratos_selfservice_methods_code_config_lifespan (str): Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_enabled (bool): Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.. [optional] # noqa: E501 + kratos_selfservice_methods_code_mfa_enabled (bool): Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_passwordless_enabled (bool): Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_base_url (str): Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_lifespan (str): Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting.. [optional] # noqa: E501 @@ -857,12 +869,14 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) created_at (datetime): The Project's Revision Creation Date. [optional] # noqa: E501 disable_account_experience_welcome_screen (bool): Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`.. [optional] # noqa: E501 + enable_ax_v2 (bool): Whether the new account experience is enabled and reachable.. [optional] # noqa: E501 hydra_oauth2_allowed_top_level_claims (StringSliceJSONFormat): [optional] # noqa: E501 hydra_oauth2_client_credentials_default_grant_allowed_scope (bool): Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting.. [optional] # noqa: E501 hydra_oauth2_exclude_not_before_claim (bool): Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_iat_optional (bool): Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_jti_optional (bool): Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting.. [optional] # noqa: E501 hydra_oauth2_grant_jwt_max_ttl (str): Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting.. [optional] if omitted the server will use the default value of "720h" # noqa: E501 + hydra_oauth2_mirror_top_level_claims (bool): Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced (bool): Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting.. [optional] # noqa: E501 hydra_oauth2_pkce_enforced_for_public_clients (bool): Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting.. [optional] # noqa: E501 hydra_oauth2_refresh_token_hook (str): Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting.. [optional] # noqa: E501 @@ -921,6 +935,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 kratos_courier_templates_login_code_valid_email_body_html (str): Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_body_plaintext (str): Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_login_code_valid_email_subject (str): Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting.. [optional] # noqa: E501 + kratos_courier_templates_login_code_valid_sms_body_plaintext (str): Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_html (str): Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_body_plaintext (str): Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting.. [optional] # noqa: E501 kratos_courier_templates_recovery_code_invalid_email_subject (str): Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting.. [optional] # noqa: E501 @@ -1006,6 +1021,7 @@ def __init__(self, name, *args, **kwargs): # noqa: E501 kratos_selfservice_flows_verification_use (str): Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode. [optional] # noqa: E501 kratos_selfservice_methods_code_config_lifespan (str): Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_enabled (bool): Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting.. [optional] # noqa: E501 + kratos_selfservice_methods_code_mfa_enabled (bool): Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_code_passwordless_enabled (bool): Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_base_url (str): Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting.. [optional] # noqa: E501 kratos_selfservice_methods_link_config_lifespan (str): Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting.. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/normalized_project_revision_courier_channel.py b/clients/client/python/ory_client/model/normalized_project_revision_courier_channel.py index 7a9526eaefd..67b7285717f 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_courier_channel.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_courier_channel.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project_revision_hook.py b/clients/client/python/ory_client/model/normalized_project_revision_hook.py index e43f089b66b..228f6112690 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_hook.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_hook.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project_revision_identity_schema.py b/clients/client/python/ory_client/model/normalized_project_revision_identity_schema.py index a93f0108363..b094af64165 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_identity_schema.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_identity_schema.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project_revision_identity_schemas.py b/clients/client/python/ory_client/model/normalized_project_revision_identity_schemas.py index 065f85de0ae..c0bee0b5ce5 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_identity_schemas.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project_revision_third_party_provider.py b/clients/client/python/ory_client/model/normalized_project_revision_third_party_provider.py index 063566d28f9..3e85ee01592 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_third_party_provider.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_third_party_provider.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -98,6 +98,7 @@ def openapi_types(): 'apple_team_id': (str,), # noqa: E501 'auth_url': (str,), # noqa: E501 'azure_tenant': (str,), # noqa: E501 + 'claims_source': (str, none_type,), # noqa: E501 'client_id': (str,), # noqa: E501 'client_secret': (str, none_type,), # noqa: E501 'created_at': (datetime,), # noqa: E501 @@ -129,6 +130,7 @@ def discriminator(): 'apple_team_id': 'apple_team_id', # noqa: E501 'auth_url': 'auth_url', # noqa: E501 'azure_tenant': 'azure_tenant', # noqa: E501 + 'claims_source': 'claims_source', # noqa: E501 'client_id': 'client_id', # noqa: E501 'client_secret': 'client_secret', # noqa: E501 'created_at': 'created_at', # noqa: E501 @@ -197,6 +199,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 apple_team_id (str): Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret. [optional] # noqa: E501 auth_url (str): AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`.. [optional] # noqa: E501 azure_tenant (str): Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`.. [optional] # noqa: E501 + claims_source (str, none_type): [optional] # noqa: E501 client_id (str): ClientID is the application's Client ID.. [optional] # noqa: E501 client_secret (str, none_type): [optional] # noqa: E501 created_at (datetime): The Project's Revision Creation Date. [optional] # noqa: E501 @@ -305,6 +308,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 apple_team_id (str): Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret. [optional] # noqa: E501 auth_url (str): AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`.. [optional] # noqa: E501 azure_tenant (str): Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`.. [optional] # noqa: E501 + claims_source (str, none_type): [optional] # noqa: E501 client_id (str): ClientID is the application's Client ID.. [optional] # noqa: E501 client_secret (str, none_type): [optional] # noqa: E501 created_at (datetime): The Project's Revision Creation Date. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_template.py b/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_template.py index 4e0f4e3d091..f622b062e4c 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_template.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_template.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_templates.py b/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_templates.py index 12e9a125e3b..3974fe08246 100644 --- a/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_templates.py +++ b/clients/client/python/ory_client/model/normalized_project_revision_tokenizer_templates.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/normalized_projects.py b/clients/client/python/ory_client/model/normalized_projects.py index c11ca80df66..d7ec5b32049 100644 --- a/clients/client/python/ory_client/model/normalized_projects.py +++ b/clients/client/python/ory_client/model/normalized_projects.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/null_duration.py b/clients/client/python/ory_client/model/null_duration.py index 73f048b02e6..240334ed209 100644 --- a/clients/client/python/ory_client/model/null_duration.py +++ b/clients/client/python/ory_client/model/null_duration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_client.py b/clients/client/python/ory_client/model/o_auth2_client.py index f001801be07..b3150fa2583 100644 --- a/clients/client/python/ory_client/model/o_auth2_client.py +++ b/clients/client/python/ory_client/model/o_auth2_client.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -131,6 +131,7 @@ def openapi_types(): 'scope': (str,), # noqa: E501 'sector_identifier_uri': (str,), # noqa: E501 'skip_consent': (bool,), # noqa: E501 + 'skip_logout_consent': (bool,), # noqa: E501 'subject_type': (str,), # noqa: E501 'token_endpoint_auth_method': (str,), # noqa: E501 'token_endpoint_auth_signing_alg': (str,), # noqa: E501 @@ -186,6 +187,7 @@ def discriminator(): 'scope': 'scope', # noqa: E501 'sector_identifier_uri': 'sector_identifier_uri', # noqa: E501 'skip_consent': 'skip_consent', # noqa: E501 + 'skip_logout_consent': 'skip_logout_consent', # noqa: E501 'subject_type': 'subject_type', # noqa: E501 'token_endpoint_auth_method': 'token_endpoint_auth_method', # noqa: E501 'token_endpoint_auth_signing_alg': 'token_endpoint_auth_signing_alg', # noqa: E501 @@ -276,6 +278,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 scope (str): OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. [optional] # noqa: E501 sector_identifier_uri (str): OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. [optional] # noqa: E501 skip_consent (bool): SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 + skip_logout_consent (bool): SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 subject_type (str): OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. [optional] # noqa: E501 token_endpoint_auth_method (str): OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.. [optional] if omitted the server will use the default value of "client_secret_basic" # noqa: E501 token_endpoint_auth_signing_alg (str): OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. [optional] # noqa: E501 @@ -408,6 +411,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 scope (str): OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. [optional] # noqa: E501 sector_identifier_uri (str): OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. [optional] # noqa: E501 skip_consent (bool): SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 + skip_logout_consent (bool): SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 subject_type (str): OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. [optional] # noqa: E501 token_endpoint_auth_method (str): OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.. [optional] if omitted the server will use the default value of "client_secret_basic" # noqa: E501 token_endpoint_auth_signing_alg (str): OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/o_auth2_client_token_lifespans.py b/clients/client/python/ory_client/model/o_auth2_client_token_lifespans.py index f4742691895..6bac62bf9f5 100644 --- a/clients/client/python/ory_client/model/o_auth2_client_token_lifespans.py +++ b/clients/client/python/ory_client/model/o_auth2_client_token_lifespans.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_consent_request.py b/clients/client/python/ory_client/model/o_auth2_consent_request.py index 5bae160a239..1394ee83392 100644 --- a/clients/client/python/ory_client/model/o_auth2_consent_request.py +++ b/clients/client/python/ory_client/model/o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_consent_request_open_id_connect_context.py b/clients/client/python/ory_client/model/o_auth2_consent_request_open_id_connect_context.py index f2749e5bc68..0fd9be04894 100644 --- a/clients/client/python/ory_client/model/o_auth2_consent_request_open_id_connect_context.py +++ b/clients/client/python/ory_client/model/o_auth2_consent_request_open_id_connect_context.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_consent_session.py b/clients/client/python/ory_client/model/o_auth2_consent_session.py index fb029de709f..1ffe17d0ad7 100644 --- a/clients/client/python/ory_client/model/o_auth2_consent_session.py +++ b/clients/client/python/ory_client/model/o_auth2_consent_session.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -95,6 +95,7 @@ def openapi_types(): lazy_import() return { 'consent_request': (OAuth2ConsentRequest,), # noqa: E501 + 'context': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'expires_at': (OAuth2ConsentSessionExpiresAt,), # noqa: E501 'grant_access_token_audience': (StringSliceJSONFormat,), # noqa: E501 'grant_scope': (StringSliceJSONFormat,), # noqa: E501 @@ -111,6 +112,7 @@ def discriminator(): attribute_map = { 'consent_request': 'consent_request', # noqa: E501 + 'context': 'context', # noqa: E501 'expires_at': 'expires_at', # noqa: E501 'grant_access_token_audience': 'grant_access_token_audience', # noqa: E501 'grant_scope': 'grant_scope', # noqa: E501 @@ -162,6 +164,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) consent_request (OAuth2ConsentRequest): [optional] # noqa: E501 + context ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 expires_at (OAuth2ConsentSessionExpiresAt): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 @@ -255,6 +258,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) consent_request (OAuth2ConsentRequest): [optional] # noqa: E501 + context ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional] # noqa: E501 expires_at (OAuth2ConsentSessionExpiresAt): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/o_auth2_consent_session_expires_at.py b/clients/client/python/ory_client/model/o_auth2_consent_session_expires_at.py index bbeaac81db3..6f1750a81af 100644 --- a/clients/client/python/ory_client/model/o_auth2_consent_session_expires_at.py +++ b/clients/client/python/ory_client/model/o_auth2_consent_session_expires_at.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_consent_sessions.py b/clients/client/python/ory_client/model/o_auth2_consent_sessions.py index de74f56baa9..f188ad4c8df 100644 --- a/clients/client/python/ory_client/model/o_auth2_consent_sessions.py +++ b/clients/client/python/ory_client/model/o_auth2_consent_sessions.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_login_request.py b/clients/client/python/ory_client/model/o_auth2_login_request.py index 43fc37ec04d..79519e4625a 100644 --- a/clients/client/python/ory_client/model/o_auth2_login_request.py +++ b/clients/client/python/ory_client/model/o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_logout_request.py b/clients/client/python/ory_client/model/o_auth2_logout_request.py index a84c389c85a..71dba3180b2 100644 --- a/clients/client/python/ory_client/model/o_auth2_logout_request.py +++ b/clients/client/python/ory_client/model/o_auth2_logout_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_redirect_to.py b/clients/client/python/ory_client/model/o_auth2_redirect_to.py index 10245e17d69..dde90c62e7c 100644 --- a/clients/client/python/ory_client/model/o_auth2_redirect_to.py +++ b/clients/client/python/ory_client/model/o_auth2_redirect_to.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/o_auth2_token_exchange.py b/clients/client/python/ory_client/model/o_auth2_token_exchange.py index a2c2ca7db19..cf281e1283c 100644 --- a/clients/client/python/ory_client/model/o_auth2_token_exchange.py +++ b/clients/client/python/ory_client/model/o_auth2_token_exchange.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/oidc_configuration.py b/clients/client/python/ory_client/model/oidc_configuration.py index 3380c3e83cf..dd26f808fc2 100644 --- a/clients/client/python/ory_client/model/oidc_configuration.py +++ b/clients/client/python/ory_client/model/oidc_configuration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/oidc_user_info.py b/clients/client/python/ory_client/model/oidc_user_info.py index ae3206a3161..6ff5698e0c5 100644 --- a/clients/client/python/ory_client/model/oidc_user_info.py +++ b/clients/client/python/ory_client/model/oidc_user_info.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/organization.py b/clients/client/python/ory_client/model/organization.py index b8636a478d3..60595425df2 100644 --- a/clients/client/python/ory_client/model/organization.py +++ b/clients/client/python/ory_client/model/organization.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/organization_body.py b/clients/client/python/ory_client/model/organization_body.py index 7b24b36896f..76ed73b83f9 100644 --- a/clients/client/python/ory_client/model/organization_body.py +++ b/clients/client/python/ory_client/model/organization_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/pagination.py b/clients/client/python/ory_client/model/pagination.py index 03de7e097f0..a0b9024564b 100644 --- a/clients/client/python/ory_client/model/pagination.py +++ b/clients/client/python/ory_client/model/pagination.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/pagination_headers.py b/clients/client/python/ory_client/model/pagination_headers.py index f16c67dc55f..43dd3f9eefb 100644 --- a/clients/client/python/ory_client/model/pagination_headers.py +++ b/clients/client/python/ory_client/model/pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/parse_error.py b/clients/client/python/ory_client/model/parse_error.py index 96188a5684f..56da9158be8 100644 --- a/clients/client/python/ory_client/model/parse_error.py +++ b/clients/client/python/ory_client/model/parse_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/patch_identities_body.py b/clients/client/python/ory_client/model/patch_identities_body.py index 0f23911c6c3..988755ee015 100644 --- a/clients/client/python/ory_client/model/patch_identities_body.py +++ b/clients/client/python/ory_client/model/patch_identities_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/perform_native_logout_body.py b/clients/client/python/ory_client/model/perform_native_logout_body.py index 07bc40da037..5334e0e7df8 100644 --- a/clients/client/python/ory_client/model/perform_native_logout_body.py +++ b/clients/client/python/ory_client/model/perform_native_logout_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/permissions_on_project.py b/clients/client/python/ory_client/model/permissions_on_project.py index 894c1091a74..e4dd0f05a9c 100644 --- a/clients/client/python/ory_client/model/permissions_on_project.py +++ b/clients/client/python/ory_client/model/permissions_on_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/permissions_on_workpace_response.py b/clients/client/python/ory_client/model/permissions_on_workpace_response.py new file mode 100644 index 00000000000..cbeccd01ab7 --- /dev/null +++ b/clients/client/python/ory_client/model/permissions_on_workpace_response.py @@ -0,0 +1,264 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from ory_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from ory_client.exceptions import ApiAttributeError + + + +class PermissionsOnWorkpaceResponse(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'permissions': ({str: (bool,)},), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'permissions': 'permissions', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 + """PermissionsOnWorkpaceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + permissions ({str: (bool,)}): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, *args, **kwargs): # noqa: E501 + """PermissionsOnWorkpaceResponse - a model defined in OpenAPI + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + permissions ({str: (bool,)}): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/plan.py b/clients/client/python/ory_client/model/plan.py index ad1d44af110..c89775a1a2f 100644 --- a/clients/client/python/ory_client/model/plan.py +++ b/clients/client/python/ory_client/model/plan.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/plan_details.py b/clients/client/python/ory_client/model/plan_details.py index 1c9cc457a43..0aa009d574b 100644 --- a/clients/client/python/ory_client/model/plan_details.py +++ b/clients/client/python/ory_client/model/plan_details.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,8 +31,8 @@ def lazy_import(): - from ory_client.model.generic_usage import GenericUsage - globals()['GenericUsage'] = GenericUsage + from ory_client.model.plan_features import PlanFeatures + globals()['PlanFeatures'] = PlanFeatures class PlanDetails(ModelNormal): @@ -92,7 +92,7 @@ def openapi_types(): 'base_fee_yearly': (int,), # noqa: E501 'custom': (bool,), # noqa: E501 'description': (str,), # noqa: E501 - 'features': ({str: (GenericUsage,)},), # noqa: E501 + 'features': (PlanFeatures,), # noqa: E501 'name': (str,), # noqa: E501 'version': (int,), # noqa: E501 } @@ -127,7 +127,7 @@ def _from_openapi_data(cls, base_fee_monthly, base_fee_yearly, custom, descripti base_fee_yearly (int): BaseFeeYearly is the yearly base fee for the plan. custom (bool): Custom is true if the plan is custom. This means it will be hidden from the pricing page. description (str): Description is the description of the plan. - features ({str: (GenericUsage,)}): Features are the feature definitions included in the plan. + features (PlanFeatures): name (str): Name is the name of the plan. version (int): Version is the version of the plan. The combination of `name@version` must be unique. @@ -228,7 +228,7 @@ def __init__(self, base_fee_monthly, base_fee_yearly, custom, description, featu base_fee_yearly (int): BaseFeeYearly is the yearly base fee for the plan. custom (bool): Custom is true if the plan is custom. This means it will be hidden from the pricing page. description (str): Description is the description of the plan. - features ({str: (GenericUsage,)}): Features are the feature definitions included in the plan. + features (PlanFeatures): name (str): Name is the name of the plan. version (int): Version is the version of the plan. The combination of `name@version` must be unique. diff --git a/clients/client/python/ory_client/model/stripe_customer.py b/clients/client/python/ory_client/model/plan_features.py similarity index 96% rename from clients/client/python/ory_client/model/stripe_customer.py rename to clients/client/python/ory_client/model/plan_features.py index 8d661e3fb51..4335a8338af 100644 --- a/clients/client/python/ory_client/model/stripe_customer.py +++ b/clients/client/python/ory_client/model/plan_features.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -30,8 +30,12 @@ from ory_client.exceptions import ApiAttributeError +def lazy_import(): + from ory_client.model.generic_usage import GenericUsage + globals()['GenericUsage'] = GenericUsage -class StripeCustomer(ModelNormal): + +class PlanFeatures(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -67,7 +71,8 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ - return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + lazy_import() + return (GenericUsage,) # noqa: E501 _nullable = False @@ -81,8 +86,8 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { - 'id': (str,), # noqa: E501 } @cached_property @@ -91,7 +96,6 @@ def discriminator(): attribute_map = { - 'id': 'id', # noqa: E501 } read_only_vars = { @@ -102,7 +106,7 @@ def discriminator(): @classmethod @convert_js_args_to_python_args def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 - """StripeCustomer - a model defined in OpenAPI + """PlanFeatures - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -135,7 +139,6 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -188,7 +191,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 @convert_js_args_to_python_args def __init__(self, *args, **kwargs): # noqa: E501 - """StripeCustomer - a model defined in OpenAPI + """PlanFeatures - a model defined in OpenAPI Keyword Args: _check_type (bool): if True, values for parameters in openapi_types @@ -221,7 +224,6 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - id (str): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/plans.py b/clients/client/python/ory_client/model/plans.py index 61a41d14ed2..c5aa65a466a 100644 --- a/clients/client/python/ory_client/model/plans.py +++ b/clients/client/python/ory_client/model/plans.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/post_check_permission_body.py b/clients/client/python/ory_client/model/post_check_permission_body.py index 5c29bda7143..f4940bffe03 100644 --- a/clients/client/python/ory_client/model/post_check_permission_body.py +++ b/clients/client/python/ory_client/model/post_check_permission_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/post_check_permission_or_error_body.py b/clients/client/python/ory_client/model/post_check_permission_or_error_body.py index 6cb94d80827..f0c563fe14b 100644 --- a/clients/client/python/ory_client/model/post_check_permission_or_error_body.py +++ b/clients/client/python/ory_client/model/post_check_permission_or_error_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/pricing.py b/clients/client/python/ory_client/model/pricing.py index 5ed4def109b..66fc2ea9a35 100644 --- a/clients/client/python/ory_client/model/pricing.py +++ b/clients/client/python/ory_client/model/pricing.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project.py b/clients/client/python/ory_client/model/project.py index f4c29dd9dc6..639044932e0 100644 --- a/clients/client/python/ory_client/model/project.py +++ b/clients/client/python/ory_client/model/project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_api_key.py b/clients/client/python/ory_client/model/project_api_key.py index f58225a1509..2252406f7bf 100644 --- a/clients/client/python/ory_client/model/project_api_key.py +++ b/clients/client/python/ory_client/model/project_api_key.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_api_keys.py b/clients/client/python/ory_client/model/project_api_keys.py index 073401b3a5a..f47720423e9 100644 --- a/clients/client/python/ory_client/model/project_api_keys.py +++ b/clients/client/python/ory_client/model/project_api_keys.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_branding.py b/clients/client/python/ory_client/model/project_branding.py index 9fad311c62b..64e92158796 100644 --- a/clients/client/python/ory_client/model/project_branding.py +++ b/clients/client/python/ory_client/model/project_branding.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_branding_colors.py b/clients/client/python/ory_client/model/project_branding_colors.py index 636c2aee2a5..73c22ef69db 100644 --- a/clients/client/python/ory_client/model/project_branding_colors.py +++ b/clients/client/python/ory_client/model/project_branding_colors.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_branding_theme.py b/clients/client/python/ory_client/model/project_branding_theme.py index 49f18fbd3f7..96a7b671a1d 100644 --- a/clients/client/python/ory_client/model/project_branding_theme.py +++ b/clients/client/python/ory_client/model/project_branding_theme.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_branding_themes.py b/clients/client/python/ory_client/model/project_branding_themes.py index 8013f44bfd8..09702de4ef9 100644 --- a/clients/client/python/ory_client/model/project_branding_themes.py +++ b/clients/client/python/ory_client/model/project_branding_themes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_cors.py b/clients/client/python/ory_client/model/project_cors.py index 4599264a0ae..139ed6a14ac 100644 --- a/clients/client/python/ory_client/model/project_cors.py +++ b/clients/client/python/ory_client/model/project_cors.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_events_datapoint.py b/clients/client/python/ory_client/model/project_events_datapoint.py index 4e8b8523f7b..797ecb7a838 100644 --- a/clients/client/python/ory_client/model/project_events_datapoint.py +++ b/clients/client/python/ory_client/model/project_events_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_host.py b/clients/client/python/ory_client/model/project_host.py index 0fd95383bbc..950f8801b4a 100644 --- a/clients/client/python/ory_client/model/project_host.py +++ b/clients/client/python/ory_client/model/project_host.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_member.py b/clients/client/python/ory_client/model/project_member.py index e017aae969f..751250b0f5f 100644 --- a/clients/client/python/ory_client/model/project_member.py +++ b/clients/client/python/ory_client/model/project_member.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,7 +31,7 @@ -class ProjectMember(ModelSimple): +class ProjectMember(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. Ref: https://openapi-generator.tech @@ -42,6 +42,10 @@ class ProjectMember(ModelSimple): and the for var_name this is (var_name,). The value is a dict with a capitalized key describing the allowed value and an allowed value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. validations (dict): The key is the tuple path to the attribute and the for var_name this is (var_name,). The value is a dict that stores validations for max_length, min_length, max_items, @@ -57,7 +61,13 @@ class ProjectMember(ModelSimple): validations = { } - additional_properties_type = None + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -72,7 +82,10 @@ def openapi_types(): and the value is attribute type. """ return { - 'value': (CloudAccount,), + 'email': (str,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'role': (str,), # noqa: E501 } @cached_property @@ -80,32 +93,30 @@ def discriminator(): return None - attribute_map = {} - - read_only_vars = set() + attribute_map = { + 'email': 'email', # noqa: E501 + 'id': 'id', # noqa: E501 + 'name': 'name', # noqa: E501 + 'role': 'role', # noqa: E501 + } - _composed_schemas = None + read_only_vars = { + } - required_properties = set([ - '_data_store', - '_check_type', - '_spec_property_naming', - '_path_to_item', - '_configuration', - '_visited_composed_classes', - ]) + _composed_schemas = {} + @classmethod @convert_js_args_to_python_args - def __init__(self, *args, **kwargs): + def _from_openapi_data(cls, email, id, name, role, *args, **kwargs): # noqa: E501 """ProjectMember - a model defined in OpenAPI - Note that value can be passed either in args or in kwargs, but not in both. - Args: - args[0] (CloudAccount): # noqa: E501 + email (str): + id (str): + name (str): + role (str): Keyword Args: - value (CloudAccount): # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -137,26 +148,15 @@ def __init__(self, *args, **kwargs): through its discriminator because we passed in _visited_composed_classes = (Animal,) """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) _check_type = kwargs.pop('_check_type', True) - _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + self = super(OpenApiModel, cls).__new__(cls) + if args: for arg in args: if isinstance(arg, dict): @@ -177,29 +177,41 @@ def __init__(self, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - @classmethod + self.email = email + self.id = id + self.name = name + self.role = role + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + @convert_js_args_to_python_args - def _from_openapi_data(cls, *args, **kwargs): + def __init__(self, email, id, name, role, *args, **kwargs): # noqa: E501 """ProjectMember - a model defined in OpenAPI - Note that value can be passed either in args or in kwargs, but not in both. - Args: - args[0] (CloudAccount): # noqa: E501 + email (str): + id (str): + name (str): + role (str): Keyword Args: - value (CloudAccount): # noqa: E501 _check_type (bool): if True, values for parameters in openapi_types will be type checked and a TypeError will be raised if the wrong type is input. @@ -231,25 +243,10 @@ def _from_openapi_data(cls, *args, **kwargs): through its discriminator because we passed in _visited_composed_classes = (Animal,) """ - # required up here when default value is not given - _path_to_item = kwargs.pop('_path_to_item', ()) - - self = super(OpenApiModel, cls).__new__(cls) - - if 'value' in kwargs: - value = kwargs.pop('value') - elif args: - args = list(args) - value = args.pop(0) - else: - raise ApiTypeError( - "value is required, but not passed in args or kwargs and doesn't have default", - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) _check_type = kwargs.pop('_check_type', True) _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) _configuration = kwargs.pop('_configuration', None) _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) @@ -273,15 +270,19 @@ def _from_openapi_data(cls, *args, **kwargs): self._path_to_item = _path_to_item self._configuration = _configuration self._visited_composed_classes = _visited_composed_classes + (self.__class__,) - self.value = value - if kwargs: - raise ApiTypeError( - "Invalid named arguments=%s passed to %s. Remove those invalid named arguments." % ( - kwargs, - self.__class__.__name__, - ), - path_to_item=_path_to_item, - valid_classes=(self.__class__,), - ) - return self + self.email = email + self.id = id + self.name = name + self.role = role + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/project_members.py b/clients/client/python/ory_client/model/project_members.py index 28084f65d0a..bbe92ded882 100644 --- a/clients/client/python/ory_client/model/project_members.py +++ b/clients/client/python/ory_client/model/project_members.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,8 +31,8 @@ def lazy_import(): - from ory_client.model.cloud_account import CloudAccount - globals()['CloudAccount'] = CloudAccount + from ory_client.model.project_member import ProjectMember + globals()['ProjectMember'] = ProjectMember class ProjectMembers(ModelSimple): diff --git a/clients/client/python/ory_client/model/project_metadata.py b/clients/client/python/ory_client/model/project_metadata.py index f6e99e118a6..0dfec0561be 100644 --- a/clients/client/python/ory_client/model/project_metadata.py +++ b/clients/client/python/ory_client/model/project_metadata.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -60,6 +60,10 @@ class ProjectMetadata(ModelNormal): """ allowed_values = { + ('environment',): { + 'PROD': "prod", + 'DEV': "dev", + }, ('state',): { 'RUNNING': "running", 'HALTED': "halted", @@ -94,6 +98,7 @@ def openapi_types(): lazy_import() return { 'created_at': (datetime,), # noqa: E501 + 'environment': (str,), # noqa: E501 'hosts': (StringSliceJSONFormat,), # noqa: E501 'id': (str,), # noqa: E501 'name': (str,), # noqa: E501 @@ -112,6 +117,7 @@ def discriminator(): attribute_map = { 'created_at': 'created_at', # noqa: E501 + 'environment': 'environment', # noqa: E501 'hosts': 'hosts', # noqa: E501 'id': 'id', # noqa: E501 'name': 'name', # noqa: E501 @@ -132,11 +138,12 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, created_at, hosts, id, name, state, updated_at, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, created_at, environment, hosts, id, name, state, updated_at, *args, **kwargs): # noqa: E501 """ProjectMetadata - a model defined in OpenAPI Args: created_at (datetime): The Project's Creation Date + environment (str): The environment of the project. prod Production dev Development hosts (StringSliceJSONFormat): id (str): The project's ID. name (str): The project's name if set @@ -210,6 +217,7 @@ def _from_openapi_data(cls, created_at, hosts, id, name, state, updated_at, *arg self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.created_at = created_at + self.environment = environment self.hosts = hosts self.id = id self.name = name @@ -235,11 +243,12 @@ def _from_openapi_data(cls, created_at, hosts, id, name, state, updated_at, *arg ]) @convert_js_args_to_python_args - def __init__(self, created_at, hosts, name, state, updated_at, *args, **kwargs): # noqa: E501 + def __init__(self, created_at, environment, hosts, name, state, updated_at, *args, **kwargs): # noqa: E501 """ProjectMetadata - a model defined in OpenAPI Args: created_at (datetime): The Project's Creation Date + environment (str): The environment of the project. prod Production dev Development hosts (StringSliceJSONFormat): name (str): The project's name if set state (str): The state of the project. running Running halted Halted deleted Deleted @@ -310,6 +319,7 @@ def __init__(self, created_at, hosts, name, state, updated_at, *args, **kwargs): self._visited_composed_classes = _visited_composed_classes + (self.__class__,) self.created_at = created_at + self.environment = environment self.hosts = hosts self.name = name self.state = state diff --git a/clients/client/python/ory_client/model/project_metadata_list.py b/clients/client/python/ory_client/model/project_metadata_list.py index 7e94df442a2..ff09a983d3e 100644 --- a/clients/client/python/ory_client/model/project_metadata_list.py +++ b/clients/client/python/ory_client/model/project_metadata_list.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_revision_hooks.py b/clients/client/python/ory_client/model/project_revision_hooks.py index 2dcd5d82c39..0585965eba5 100644 --- a/clients/client/python/ory_client/model/project_revision_hooks.py +++ b/clients/client/python/ory_client/model/project_revision_hooks.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_revision_identity_schemas.py b/clients/client/python/ory_client/model/project_revision_identity_schemas.py index 0e0868f3441..3ba87de1362 100644 --- a/clients/client/python/ory_client/model/project_revision_identity_schemas.py +++ b/clients/client/python/ory_client/model/project_revision_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_revision_third_party_login_providers.py b/clients/client/python/ory_client/model/project_revision_third_party_login_providers.py index 0870e930b7e..09f6a4fca2c 100644 --- a/clients/client/python/ory_client/model/project_revision_third_party_login_providers.py +++ b/clients/client/python/ory_client/model/project_revision_third_party_login_providers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_revisions.py b/clients/client/python/ory_client/model/project_revisions.py index 587b4cbe12e..7f46458adb5 100644 --- a/clients/client/python/ory_client/model/project_revisions.py +++ b/clients/client/python/ory_client/model/project_revisions.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_service_identity.py b/clients/client/python/ory_client/model/project_service_identity.py index 45e5106c919..63b9929c25c 100644 --- a/clients/client/python/ory_client/model/project_service_identity.py +++ b/clients/client/python/ory_client/model/project_service_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_service_o_auth2.py b/clients/client/python/ory_client/model/project_service_o_auth2.py index b3acf080895..f9674ce8202 100644 --- a/clients/client/python/ory_client/model/project_service_o_auth2.py +++ b/clients/client/python/ory_client/model/project_service_o_auth2.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_service_permission.py b/clients/client/python/ory_client/model/project_service_permission.py index 48cf0c3754f..9c889f1e029 100644 --- a/clients/client/python/ory_client/model/project_service_permission.py +++ b/clients/client/python/ory_client/model/project_service_permission.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/project_services.py b/clients/client/python/ory_client/model/project_services.py index ad7715f5bb0..2856b2dc25e 100644 --- a/clients/client/python/ory_client/model/project_services.py +++ b/clients/client/python/ory_client/model/project_services.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/projects.py b/clients/client/python/ory_client/model/projects.py index 0e17b59fe8a..87def5b2732 100644 --- a/clients/client/python/ory_client/model/projects.py +++ b/clients/client/python/ory_client/model/projects.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/quota_usage.py b/clients/client/python/ory_client/model/quota_usage.py index 42f86533ccc..647feb655ed 100644 --- a/clients/client/python/ory_client/model/quota_usage.py +++ b/clients/client/python/ory_client/model/quota_usage.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -75,9 +75,12 @@ class QuotaUsage(ModelNormal): 'PROJECT_METRICS_EVENTS_HISTORY': "project_metrics_events_history", 'ORGANIZATIONS': "organizations", 'ROP_GRANT': "rop_grant", + 'CONCIERGE_ONBOARDING': "concierge_onboarding", 'RATE_LIMIT_TIER': "rate_limit_tier", 'SESSION_RATE_LIMIT_TIER': "session_rate_limit_tier", 'IDENTITIES_LIST_RATE_LIMIT_TIER': "identities_list_rate_limit_tier", + 'PERMISSION_CHECKS_RATE_LIMIT_TIER': "permission_checks_rate_limit_tier", + 'OAUTH2_INTROSPECT_RATE_LIMIT_TIER': "oauth2_introspect_rate_limit_tier", }, } @@ -140,7 +143,7 @@ def _from_openapi_data(cls, additional_price, can_use_more, feature, feature_ava Args: additional_price (int): The additional price per unit in cents. can_use_more (bool): - feature (str): region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + feature (str): region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect feature_available (bool): included (int): used (int): @@ -239,7 +242,7 @@ def __init__(self, additional_price, can_use_more, feature, feature_available, i Args: additional_price (int): The additional price per unit in cents. can_use_more (bool): - feature (str): region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + feature (str): region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect feature_available (bool): included (int): used (int): diff --git a/clients/client/python/ory_client/model/recovery_code_for_identity.py b/clients/client/python/ory_client/model/recovery_code_for_identity.py index 53b0f7e464b..93997608671 100644 --- a/clients/client/python/ory_client/model/recovery_code_for_identity.py +++ b/clients/client/python/ory_client/model/recovery_code_for_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/recovery_flow.py b/clients/client/python/ory_client/model/recovery_flow.py index a86a11bf5da..39b8f91c9c9 100644 --- a/clients/client/python/ory_client/model/recovery_flow.py +++ b/clients/client/python/ory_client/model/recovery_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -100,6 +100,7 @@ def openapi_types(): 'active': (str,), # noqa: E501 'continue_with': ([ContinueWith],), # noqa: E501 'return_to': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -118,6 +119,7 @@ def discriminator(): 'active': 'active', # noqa: E501 'continue_with': 'continue_with', # noqa: E501 'return_to': 'return_to', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -173,6 +175,7 @@ def _from_openapi_data(cls, expires_at, id, issued_at, request_url, state, type, active (str): Active, if set, contains the recovery method that is being used. It is initially not set.. [optional] # noqa: E501 continue_with ([ContinueWith]): Contains possible actions that could follow this flow. [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the recovery flow to hooks and email templates. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -277,6 +280,7 @@ def __init__(self, expires_at, id, issued_at, request_url, state, type, ui, *arg active (str): Active, if set, contains the recovery method that is being used. It is initially not set.. [optional] # noqa: E501 continue_with ([ContinueWith]): Contains possible actions that could follow this flow. [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the recovery flow to hooks and email templates. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/recovery_flow_state.py b/clients/client/python/ory_client/model/recovery_flow_state.py index 4b468e080cc..b321ff946ab 100644 --- a/clients/client/python/ory_client/model/recovery_flow_state.py +++ b/clients/client/python/ory_client/model/recovery_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/recovery_identity_address.py b/clients/client/python/ory_client/model/recovery_identity_address.py index 4bc0f4df8e8..83b8af74354 100644 --- a/clients/client/python/ory_client/model/recovery_identity_address.py +++ b/clients/client/python/ory_client/model/recovery_identity_address.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/recovery_link_for_identity.py b/clients/client/python/ory_client/model/recovery_link_for_identity.py index ca0ed0a1bf5..6e7d4246dfa 100644 --- a/clients/client/python/ory_client/model/recovery_link_for_identity.py +++ b/clients/client/python/ory_client/model/recovery_link_for_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/registration_flow.py b/clients/client/python/ory_client/model/registration_flow.py index 5532a682bf5..c5475331692 100644 --- a/clients/client/python/ory_client/model/registration_flow.py +++ b/clients/client/python/ory_client/model/registration_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,10 +31,8 @@ def lazy_import(): - from ory_client.model.identity_credentials_type import IdentityCredentialsType from ory_client.model.o_auth2_login_request import OAuth2LoginRequest from ory_client.model.ui_container import UiContainer - globals()['IdentityCredentialsType'] = IdentityCredentialsType globals()['OAuth2LoginRequest'] = OAuth2LoginRequest globals()['UiContainer'] = UiContainer @@ -64,6 +62,16 @@ class RegistrationFlow(ModelNormal): """ allowed_values = { + ('active',): { + 'PASSWORD': "password", + 'OIDC': "oidc", + 'TOTP': "totp", + 'LOOKUP_SECRET': "lookup_secret", + 'WEBAUTHN': "webauthn", + 'CODE': "code", + 'LINK_RECOVERY': "link_recovery", + 'CODE_RECOVERY': "code_recovery", + }, } validations = { @@ -99,7 +107,7 @@ def openapi_types(): 'state': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'type': (str,), # noqa: E501 'ui': (UiContainer,), # noqa: E501 - 'active': (IdentityCredentialsType,), # noqa: E501 + 'active': (str,), # noqa: E501 'oauth2_login_challenge': (str,), # noqa: E501 'oauth2_login_request': (OAuth2LoginRequest,), # noqa: E501 'organization_id': (str, none_type,), # noqa: E501 @@ -180,7 +188,7 @@ def _from_openapi_data(cls, expires_at, id, issued_at, request_url, state, type, Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - active (IdentityCredentialsType): [optional] # noqa: E501 + active (str): Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. [optional] # noqa: E501 oauth2_login_challenge (str): Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.. [optional] # noqa: E501 oauth2_login_request (OAuth2LoginRequest): [optional] # noqa: E501 organization_id (str, none_type): [optional] # noqa: E501 @@ -288,7 +296,7 @@ def __init__(self, expires_at, id, issued_at, request_url, state, type, ui, *arg Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) - active (IdentityCredentialsType): [optional] # noqa: E501 + active (str): Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. [optional] # noqa: E501 oauth2_login_challenge (str): Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.. [optional] # noqa: E501 oauth2_login_request (OAuth2LoginRequest): [optional] # noqa: E501 organization_id (str, none_type): [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/registration_flow_state.py b/clients/client/python/ory_client/model/registration_flow_state.py index 9acad692fe9..444a1b28afc 100644 --- a/clients/client/python/ory_client/model/registration_flow_state.py +++ b/clients/client/python/ory_client/model/registration_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/reject_o_auth2_request.py b/clients/client/python/ory_client/model/reject_o_auth2_request.py index 6ff258dc9e0..71d0bffd05a 100644 --- a/clients/client/python/ory_client/model/reject_o_auth2_request.py +++ b/clients/client/python/ory_client/model/reject_o_auth2_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/relation_query.py b/clients/client/python/ory_client/model/relation_query.py index d9c5ff964bf..8f93c39a422 100644 --- a/clients/client/python/ory_client/model/relation_query.py +++ b/clients/client/python/ory_client/model/relation_query.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/relationship.py b/clients/client/python/ory_client/model/relationship.py index 76f708f16b3..af489f53241 100644 --- a/clients/client/python/ory_client/model/relationship.py +++ b/clients/client/python/ory_client/model/relationship.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/relationship_namespaces.py b/clients/client/python/ory_client/model/relationship_namespaces.py index 54619dbed6a..2fb47a38d50 100644 --- a/clients/client/python/ory_client/model/relationship_namespaces.py +++ b/clients/client/python/ory_client/model/relationship_namespaces.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/relationship_patch.py b/clients/client/python/ory_client/model/relationship_patch.py index 03ab32ece31..4411dd9abb1 100644 --- a/clients/client/python/ory_client/model/relationship_patch.py +++ b/clients/client/python/ory_client/model/relationship_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/relationships.py b/clients/client/python/ory_client/model/relationships.py index 34d64e48210..bda04de4b2f 100644 --- a/clients/client/python/ory_client/model/relationships.py +++ b/clients/client/python/ory_client/model/relationships.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/revision_courier_channels.py b/clients/client/python/ory_client/model/revision_courier_channels.py index 09351e870ff..57f1c1951b6 100644 --- a/clients/client/python/ory_client/model/revision_courier_channels.py +++ b/clients/client/python/ory_client/model/revision_courier_channels.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/rfc6749_error_json.py b/clients/client/python/ory_client/model/rfc6749_error_json.py index e04330c015d..fd4411e1a78 100644 --- a/clients/client/python/ory_client/model/rfc6749_error_json.py +++ b/clients/client/python/ory_client/model/rfc6749_error_json.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/schema_patch.py b/clients/client/python/ory_client/model/schema_patch.py index 8937030f097..9c525fa7055 100644 --- a/clients/client/python/ory_client/model/schema_patch.py +++ b/clients/client/python/ory_client/model/schema_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/self_service_flow_expired_error.py b/clients/client/python/ory_client/model/self_service_flow_expired_error.py index cb759b60b93..9b67d20c0a6 100644 --- a/clients/client/python/ory_client/model/self_service_flow_expired_error.py +++ b/clients/client/python/ory_client/model/self_service_flow_expired_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/session.py b/clients/client/python/ory_client/model/session.py index 1b2e7db5e7c..48d4aefcb1d 100644 --- a/clients/client/python/ory_client/model/session.py +++ b/clients/client/python/ory_client/model/session.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/session_activity_datapoint.py b/clients/client/python/ory_client/model/session_activity_datapoint.py index b8dc5e5fc54..6fa20fed2e0 100644 --- a/clients/client/python/ory_client/model/session_activity_datapoint.py +++ b/clients/client/python/ory_client/model/session_activity_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/session_authentication_method.py b/clients/client/python/ory_client/model/session_authentication_method.py index 945d6de4fda..d9c4ee2c9f1 100644 --- a/clients/client/python/ory_client/model/session_authentication_method.py +++ b/clients/client/python/ory_client/model/session_authentication_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/session_authentication_methods.py b/clients/client/python/ory_client/model/session_authentication_methods.py index f12242b69da..027710ac4d7 100644 --- a/clients/client/python/ory_client/model/session_authentication_methods.py +++ b/clients/client/python/ory_client/model/session_authentication_methods.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/session_device.py b/clients/client/python/ory_client/model/session_device.py index 1bc39bec75b..6bdc9110ea2 100644 --- a/clients/client/python/ory_client/model/session_device.py +++ b/clients/client/python/ory_client/model/session_device.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/set_active_project_in_console_body.py b/clients/client/python/ory_client/model/set_active_project_in_console_body.py index a2c1188c533..80221fd9c6f 100644 --- a/clients/client/python/ory_client/model/set_active_project_in_console_body.py +++ b/clients/client/python/ory_client/model/set_active_project_in_console_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/set_custom_domain_body.py b/clients/client/python/ory_client/model/set_custom_domain_body.py index e2782182ba4..4fcc6ad6029 100644 --- a/clients/client/python/ory_client/model/set_custom_domain_body.py +++ b/clients/client/python/ory_client/model/set_custom_domain_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/set_event_stream_body.py b/clients/client/python/ory_client/model/set_event_stream_body.py index 6062db67c39..014c04e29f1 100644 --- a/clients/client/python/ory_client/model/set_event_stream_body.py +++ b/clients/client/python/ory_client/model/set_event_stream_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/set_project.py b/clients/client/python/ory_client/model/set_project.py index 44cec2c6273..c4b9bf2780b 100644 --- a/clients/client/python/ory_client/model/set_project.py +++ b/clients/client/python/ory_client/model/set_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/set_project_branding_theme_body.py b/clients/client/python/ory_client/model/set_project_branding_theme_body.py index d9a5f062cc7..72fa6f22c29 100644 --- a/clients/client/python/ory_client/model/set_project_branding_theme_body.py +++ b/clients/client/python/ory_client/model/set_project_branding_theme_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/settings_flow.py b/clients/client/python/ory_client/model/settings_flow.py index 0b054fbe4a7..b97709e9492 100644 --- a/clients/client/python/ory_client/model/settings_flow.py +++ b/clients/client/python/ory_client/model/settings_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -103,6 +103,7 @@ def openapi_types(): 'active': (str,), # noqa: E501 'continue_with': ([ContinueWith],), # noqa: E501 'return_to': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -122,6 +123,7 @@ def discriminator(): 'active': 'active', # noqa: E501 'continue_with': 'continue_with', # noqa: E501 'return_to': 'return_to', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -178,6 +180,7 @@ def _from_openapi_data(cls, expires_at, id, identity, issued_at, request_url, st active (str): Active, if set, contains the registration method that is being used. It is initially not set.. [optional] # noqa: E501 continue_with ([ContinueWith]): Contains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user's registration.. [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the settings flow to hooks and email templates. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -284,6 +287,7 @@ def __init__(self, expires_at, id, identity, issued_at, request_url, state, type active (str): Active, if set, contains the registration method that is being used. It is initially not set.. [optional] # noqa: E501 continue_with ([ContinueWith]): Contains a list of actions, that could follow this flow It can, for example, contain a reference to the verification flow, created as part of the user's registration.. [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the settings flow to hooks and email templates. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/settings_flow_state.py b/clients/client/python/ory_client/model/settings_flow_state.py index 25a843c1339..e38396862cf 100644 --- a/clients/client/python/ory_client/model/settings_flow_state.py +++ b/clients/client/python/ory_client/model/settings_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/source_position.py b/clients/client/python/ory_client/model/source_position.py index 3c4bec6872d..0cf0107de8c 100644 --- a/clients/client/python/ory_client/model/source_position.py +++ b/clients/client/python/ory_client/model/source_position.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/string_slice_json_format.py b/clients/client/python/ory_client/model/string_slice_json_format.py index 415b5bac9c8..af01d50cdd4 100644 --- a/clients/client/python/ory_client/model/string_slice_json_format.py +++ b/clients/client/python/ory_client/model/string_slice_json_format.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/subject_set.py b/clients/client/python/ory_client/model/subject_set.py index 5ca18c357f0..5327600e045 100644 --- a/clients/client/python/ory_client/model/subject_set.py +++ b/clients/client/python/ory_client/model/subject_set.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/subscription.py b/clients/client/python/ory_client/model/subscription.py index 15c1dc71cf5..b6e9c345aec 100644 --- a/clients/client/python/ory_client/model/subscription.py +++ b/clients/client/python/ory_client/model/subscription.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -30,6 +30,10 @@ from ory_client.exceptions import ApiAttributeError +def lazy_import(): + from ory_client.model.plan_details import PlanDetails + globals()['PlanDetails'] = PlanDetails + class Subscription(ModelNormal): """NOTE: This class is auto generated by OpenAPI Generator. @@ -75,6 +79,7 @@ def additional_properties_type(): This must be a method because a model may have properties that are of type self, this must run after the class is loaded """ + lazy_import() return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 _nullable = False @@ -89,6 +94,7 @@ def openapi_types(): openapi_types (dict): The key is attribute name and the value is attribute type. """ + lazy_import() return { 'created_at': (datetime,), # noqa: E501 'currency': (str,), # noqa: E501 @@ -101,8 +107,10 @@ def openapi_types(): 'plan_changes_to': (str, none_type,), # noqa: E501 'status': (str,), # noqa: E501 'updated_at': (datetime,), # noqa: E501 + 'current_plan_details': (PlanDetails,), # noqa: E501 'ongoing_stripe_checkout_id': (str, none_type,), # noqa: E501 'plan_changes_at': (datetime,), # noqa: E501 + 'stripe_checkout_expires_at': (datetime,), # noqa: E501 } @cached_property @@ -122,8 +130,10 @@ def discriminator(): 'plan_changes_to': 'plan_changes_to', # noqa: E501 'status': 'status', # noqa: E501 'updated_at': 'updated_at', # noqa: E501 + 'current_plan_details': 'current_plan_details', # noqa: E501 'ongoing_stripe_checkout_id': 'ongoing_stripe_checkout_id', # noqa: E501 'plan_changes_at': 'plan_changes_at', # noqa: E501 + 'stripe_checkout_expires_at': 'stripe_checkout_expires_at', # noqa: E501 } read_only_vars = { @@ -188,8 +198,10 @@ def _from_openapi_data(cls, created_at, currency, current_interval, current_plan Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + current_plan_details (PlanDetails): [optional] # noqa: E501 ongoing_stripe_checkout_id (str, none_type): [optional] # noqa: E501 plan_changes_at (datetime): [optional] # noqa: E501 + stripe_checkout_expires_at (datetime): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -289,8 +301,10 @@ def __init__(self, interval_changes_to, plan_changes_to, status, *args, **kwargs Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + current_plan_details (PlanDetails): [optional] # noqa: E501 ongoing_stripe_checkout_id (str, none_type): [optional] # noqa: E501 plan_changes_at (datetime): [optional] # noqa: E501 + stripe_checkout_expires_at (datetime): [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/successful_code_exchange_response.py b/clients/client/python/ory_client/model/successful_code_exchange_response.py index 38e5aebdd41..153bfbcfdf6 100644 --- a/clients/client/python/ory_client/model/successful_code_exchange_response.py +++ b/clients/client/python/ory_client/model/successful_code_exchange_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/successful_native_login.py b/clients/client/python/ory_client/model/successful_native_login.py index bf8bdf17312..c0aa90620cf 100644 --- a/clients/client/python/ory_client/model/successful_native_login.py +++ b/clients/client/python/ory_client/model/successful_native_login.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/successful_native_registration.py b/clients/client/python/ory_client/model/successful_native_registration.py index 5144f931bf3..16eb0e4b5dd 100644 --- a/clients/client/python/ory_client/model/successful_native_registration.py +++ b/clients/client/python/ory_client/model/successful_native_registration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/successful_project_update.py b/clients/client/python/ory_client/model/successful_project_update.py index 9af16ce8a94..4333a6629aa 100644 --- a/clients/client/python/ory_client/model/successful_project_update.py +++ b/clients/client/python/ory_client/model/successful_project_update.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/token_pagination.py b/clients/client/python/ory_client/model/token_pagination.py index 2b61aee5a0b..1485c14103b 100644 --- a/clients/client/python/ory_client/model/token_pagination.py +++ b/clients/client/python/ory_client/model/token_pagination.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/token_pagination_headers.py b/clients/client/python/ory_client/model/token_pagination_headers.py index ec39fc20199..74fb540b4c3 100644 --- a/clients/client/python/ory_client/model/token_pagination_headers.py +++ b/clients/client/python/ory_client/model/token_pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/token_pagination_request_parameters.py b/clients/client/python/ory_client/model/token_pagination_request_parameters.py index 4955e80b56c..0686aa1c0ce 100644 --- a/clients/client/python/ory_client/model/token_pagination_request_parameters.py +++ b/clients/client/python/ory_client/model/token_pagination_request_parameters.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/token_pagination_response_headers.py b/clients/client/python/ory_client/model/token_pagination_response_headers.py index 3c5ed245f95..b21b845bbf3 100644 --- a/clients/client/python/ory_client/model/token_pagination_response_headers.py +++ b/clients/client/python/ory_client/model/token_pagination_response_headers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/trust_o_auth2_jwt_grant_issuer.py b/clients/client/python/ory_client/model/trust_o_auth2_jwt_grant_issuer.py index 294998cef0f..f57b51a21a4 100644 --- a/clients/client/python/ory_client/model/trust_o_auth2_jwt_grant_issuer.py +++ b/clients/client/python/ory_client/model/trust_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuer.py b/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuer.py index 0598ffac887..a61a7142808 100644 --- a/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuer.py +++ b/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuers.py b/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuers.py index 8cef55fadc0..3bc0daa571b 100644 --- a/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuers.py +++ b/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_issuers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py b/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py index 9fc5f221863..818166aaf12 100644 --- a/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +++ b/clients/client/python/ory_client/model/trusted_o_auth2_jwt_grant_json_web_key.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_container.py b/clients/client/python/ory_client/model/ui_container.py index eb9d81edc3a..e1d9ec444f1 100644 --- a/clients/client/python/ory_client/model/ui_container.py +++ b/clients/client/python/ory_client/model/ui_container.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node.py b/clients/client/python/ory_client/model/ui_node.py index de37440a133..21c0028d8ed 100644 --- a/clients/client/python/ory_client/model/ui_node.py +++ b/clients/client/python/ory_client/model/ui_node.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_anchor_attributes.py b/clients/client/python/ory_client/model/ui_node_anchor_attributes.py index 15a620c1e5a..fc18db82bdb 100644 --- a/clients/client/python/ory_client/model/ui_node_anchor_attributes.py +++ b/clients/client/python/ory_client/model/ui_node_anchor_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_attributes.py b/clients/client/python/ory_client/model/ui_node_attributes.py index 46c09d9df17..84071c342ab 100644 --- a/clients/client/python/ory_client/model/ui_node_attributes.py +++ b/clients/client/python/ory_client/model/ui_node_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_image_attributes.py b/clients/client/python/ory_client/model/ui_node_image_attributes.py index 88ae2d0bfad..217a9454786 100644 --- a/clients/client/python/ory_client/model/ui_node_image_attributes.py +++ b/clients/client/python/ory_client/model/ui_node_image_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_input_attributes.py b/clients/client/python/ory_client/model/ui_node_input_attributes.py index d2c48e512bb..79adaaa783f 100644 --- a/clients/client/python/ory_client/model/ui_node_input_attributes.py +++ b/clients/client/python/ory_client/model/ui_node_input_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_meta.py b/clients/client/python/ory_client/model/ui_node_meta.py index 503c828852e..bee36a0be3c 100644 --- a/clients/client/python/ory_client/model/ui_node_meta.py +++ b/clients/client/python/ory_client/model/ui_node_meta.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_script_attributes.py b/clients/client/python/ory_client/model/ui_node_script_attributes.py index e1e6d0de250..7714ecddb09 100644 --- a/clients/client/python/ory_client/model/ui_node_script_attributes.py +++ b/clients/client/python/ory_client/model/ui_node_script_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_node_text_attributes.py b/clients/client/python/ory_client/model/ui_node_text_attributes.py index cf21717fd7f..18d3e7b5ccb 100644 --- a/clients/client/python/ory_client/model/ui_node_text_attributes.py +++ b/clients/client/python/ory_client/model/ui_node_text_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_nodes.py b/clients/client/python/ory_client/model/ui_nodes.py index 76798e9bf15..9531b8bec5a 100644 --- a/clients/client/python/ory_client/model/ui_nodes.py +++ b/clients/client/python/ory_client/model/ui_nodes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_text.py b/clients/client/python/ory_client/model/ui_text.py index 60345796a8a..5340f27bd6e 100644 --- a/clients/client/python/ory_client/model/ui_text.py +++ b/clients/client/python/ory_client/model/ui_text.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/ui_texts.py b/clients/client/python/ory_client/model/ui_texts.py index 1d09246a1c5..b58a4b4a95f 100644 --- a/clients/client/python/ory_client/model/ui_texts.py +++ b/clients/client/python/ory_client/model/ui_texts.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_identity_body.py b/clients/client/python/ory_client/model/update_identity_body.py index 85939f52468..45ac8ee64c1 100644 --- a/clients/client/python/ory_client/model/update_identity_body.py +++ b/clients/client/python/ory_client/model/update_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -31,9 +31,7 @@ def lazy_import(): - from ory_client.model.identity_state import IdentityState from ory_client.model.identity_with_credentials import IdentityWithCredentials - globals()['IdentityState'] = IdentityState globals()['IdentityWithCredentials'] = IdentityWithCredentials @@ -62,6 +60,10 @@ class UpdateIdentityBody(ModelNormal): """ allowed_values = { + ('state',): { + 'ACTIVE': "active", + 'INACTIVE': "inactive", + }, } validations = { @@ -91,7 +93,7 @@ def openapi_types(): lazy_import() return { 'schema_id': (str,), # noqa: E501 - 'state': (IdentityState,), # noqa: E501 + 'state': (str,), # noqa: E501 'traits': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'credentials': (IdentityWithCredentials,), # noqa: E501 'metadata_admin': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 @@ -124,7 +126,7 @@ def _from_openapi_data(cls, schema_id, state, traits, *args, **kwargs): # noqa: Args: schema_id (str): SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. - state (IdentityState): + state (str): State is the identity's state. active StateActive inactive StateInactive traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. Keyword Args: @@ -220,7 +222,7 @@ def __init__(self, schema_id, state, traits, *args, **kwargs): # noqa: E501 Args: schema_id (str): SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. - state (IdentityState): + state (str): State is the identity's state. active StateActive inactive StateInactive traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. Keyword Args: diff --git a/clients/client/python/ory_client/model/update_login_flow_body.py b/clients/client/python/ory_client/model/update_login_flow_body.py index 17ca869be39..b16cf144c1f 100644 --- a/clients/client/python/ory_client/model/update_login_flow_body.py +++ b/clients/client/python/ory_client/model/update_login_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -100,6 +100,7 @@ def openapi_types(): return { 'method': (str,), # noqa: E501 'password_identifier': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'id_token': (str,), # noqa: E501 'id_token_nonce': (str,), # noqa: E501 'traits': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 @@ -139,6 +140,7 @@ def discriminator(): attribute_map = { 'method': 'method', # noqa: E501 'password_identifier': 'password_identifier', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'id_token': 'id_token', # noqa: E501 'id_token_nonce': 'id_token_nonce', # noqa: E501 'traits': 'traits', # noqa: E501 @@ -195,6 +197,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) password_identifier (str): Identifier is the email or username of the user trying to log in. This field is deprecated!. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 id_token (str): IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple. [optional] # noqa: E501 id_token_nonce (str): IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required.. [optional] # noqa: E501 traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The identity traits. This is a placeholder for the registration flow.. [optional] # noqa: E501 @@ -313,6 +316,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) password_identifier (str): Identifier is the email or username of the user trying to log in. This field is deprecated!. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 id_token (str): IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple. [optional] # noqa: E501 id_token_nonce (str): IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required.. [optional] # noqa: E501 traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The identity traits. This is a placeholder for the registration flow.. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/update_login_flow_with_code_method.py b/clients/client/python/ory_client/model/update_login_flow_with_code_method.py index bdd2531a7c8..021cae6f217 100644 --- a/clients/client/python/ory_client/model/update_login_flow_with_code_method.py +++ b/clients/client/python/ory_client/model/update_login_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -87,6 +87,7 @@ def openapi_types(): 'code': (str,), # noqa: E501 'identifier': (str,), # noqa: E501 'resend': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -100,6 +101,7 @@ def discriminator(): 'code': 'code', # noqa: E501 'identifier': 'identifier', # noqa: E501 'resend': 'resend', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -150,6 +152,7 @@ def _from_openapi_data(cls, csrf_token, method, *args, **kwargs): # noqa: E501 code (str): Code is the 6 digits code sent to the user. [optional] # noqa: E501 identifier (str): Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow.. [optional] # noqa: E501 resend (str): Resend is set when the user wants to resend the code. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -244,6 +247,7 @@ def __init__(self, csrf_token, method, *args, **kwargs): # noqa: E501 code (str): Code is the 6 digits code sent to the user. [optional] # noqa: E501 identifier (str): Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow.. [optional] # noqa: E501 resend (str): Resend is set when the user wants to resend the code. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_login_flow_with_lookup_secret_method.py b/clients/client/python/ory_client/model/update_login_flow_with_lookup_secret_method.py index c75947ca8f9..a566357a2fc 100644 --- a/clients/client/python/ory_client/model/update_login_flow_with_lookup_secret_method.py +++ b/clients/client/python/ory_client/model/update_login_flow_with_lookup_secret_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_login_flow_with_oidc_method.py b/clients/client/python/ory_client/model/update_login_flow_with_oidc_method.py index 05757186bdb..35347b4574a 100644 --- a/clients/client/python/ory_client/model/update_login_flow_with_oidc_method.py +++ b/clients/client/python/ory_client/model/update_login_flow_with_oidc_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -88,6 +88,7 @@ def openapi_types(): 'id_token': (str,), # noqa: E501 'id_token_nonce': (str,), # noqa: E501 'traits': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'upstream_parameters': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @@ -103,6 +104,7 @@ def discriminator(): 'id_token': 'id_token', # noqa: E501 'id_token_nonce': 'id_token_nonce', # noqa: E501 'traits': 'traits', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'upstream_parameters': 'upstream_parameters', # noqa: E501 } @@ -155,6 +157,7 @@ def _from_openapi_data(cls, method, provider, *args, **kwargs): # noqa: E501 id_token (str): IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple. [optional] # noqa: E501 id_token_nonce (str): IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required.. [optional] # noqa: E501 traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The identity traits. This is a placeholder for the registration flow.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 upstream_parameters ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. [optional] # noqa: E501 """ @@ -251,6 +254,7 @@ def __init__(self, method, provider, *args, **kwargs): # noqa: E501 id_token (str): IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple. [optional] # noqa: E501 id_token_nonce (str): IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required.. [optional] # noqa: E501 traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The identity traits. This is a placeholder for the registration flow.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 upstream_parameters ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/update_login_flow_with_password_method.py b/clients/client/python/ory_client/model/update_login_flow_with_password_method.py index 10a80d41785..c48fe874feb 100644 --- a/clients/client/python/ory_client/model/update_login_flow_with_password_method.py +++ b/clients/client/python/ory_client/model/update_login_flow_with_password_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -87,6 +87,7 @@ def openapi_types(): 'password': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 'password_identifier': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -100,6 +101,7 @@ def discriminator(): 'password': 'password', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 'password_identifier': 'password_identifier', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -150,6 +152,7 @@ def _from_openapi_data(cls, identifier, method, password, *args, **kwargs): # n _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 password_identifier (str): Identifier is the email or username of the user trying to log in. This field is deprecated!. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -245,6 +248,7 @@ def __init__(self, identifier, method, password, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 password_identifier (str): Identifier is the email or username of the user trying to log in. This field is deprecated!. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_login_flow_with_totp_method.py b/clients/client/python/ory_client/model/update_login_flow_with_totp_method.py index 787c6209bcb..8d525dcaecd 100644 --- a/clients/client/python/ory_client/model/update_login_flow_with_totp_method.py +++ b/clients/client/python/ory_client/model/update_login_flow_with_totp_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -85,6 +85,7 @@ def openapi_types(): 'method': (str,), # noqa: E501 'totp_code': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -96,6 +97,7 @@ def discriminator(): 'method': 'method', # noqa: E501 'totp_code': 'totp_code', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -144,6 +146,7 @@ def _from_openapi_data(cls, method, totp_code, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -236,6 +239,7 @@ def __init__(self, method, totp_code, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_login_flow_with_web_authn_method.py b/clients/client/python/ory_client/model/update_login_flow_with_web_authn_method.py index 2338c2ab3ca..e5521cbbc16 100644 --- a/clients/client/python/ory_client/model/update_login_flow_with_web_authn_method.py +++ b/clients/client/python/ory_client/model/update_login_flow_with_web_authn_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -85,6 +85,7 @@ def openapi_types(): 'identifier': (str,), # noqa: E501 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'webauthn_login': (str,), # noqa: E501 } @@ -97,6 +98,7 @@ def discriminator(): 'identifier': 'identifier', # noqa: E501 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'webauthn_login': 'webauthn_login', # noqa: E501 } @@ -146,6 +148,7 @@ def _from_openapi_data(cls, identifier, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 webauthn_login (str): Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection.. [optional] # noqa: E501 """ @@ -239,6 +242,7 @@ def __init__(self, identifier, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 webauthn_login (str): Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection.. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/update_recovery_flow_body.py b/clients/client/python/ory_client/model/update_recovery_flow_body.py index fdfb7160451..b596bee8974 100644 --- a/clients/client/python/ory_client/model/update_recovery_flow_body.py +++ b/clients/client/python/ory_client/model/update_recovery_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -96,6 +96,7 @@ def openapi_types(): return { 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'code': (str,), # noqa: E501 'email': (str,), # noqa: E501 } @@ -116,6 +117,7 @@ def discriminator(): attribute_map = { 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'code': 'code', # noqa: E501 'email': 'email', # noqa: E501 } @@ -161,6 +163,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 email (str): The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 """ @@ -268,6 +271,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 email (str): The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/update_recovery_flow_with_code_method.py b/clients/client/python/ory_client/model/update_recovery_flow_with_code_method.py index 24fd6e7265f..09f9d4fa4d6 100644 --- a/clients/client/python/ory_client/model/update_recovery_flow_with_code_method.py +++ b/clients/client/python/ory_client/model/update_recovery_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -90,6 +90,7 @@ def openapi_types(): 'code': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 'email': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -102,6 +103,7 @@ def discriminator(): 'code': 'code', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 'email': 'email', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -151,6 +153,7 @@ def _from_openapi_data(cls, method, *args, **kwargs): # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 email (str): The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,6 +246,7 @@ def __init__(self, method, *args, **kwargs): # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 email (str): The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_recovery_flow_with_link_method.py b/clients/client/python/ory_client/model/update_recovery_flow_with_link_method.py index 4552728044d..5636f7e173a 100644 --- a/clients/client/python/ory_client/model/update_recovery_flow_with_link_method.py +++ b/clients/client/python/ory_client/model/update_recovery_flow_with_link_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -89,6 +89,7 @@ def openapi_types(): 'email': (str,), # noqa: E501 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -100,6 +101,7 @@ def discriminator(): 'email': 'email', # noqa: E501 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -148,6 +150,7 @@ def _from_openapi_data(cls, email, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -240,6 +243,7 @@ def __init__(self, email, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_registration_flow_body.py b/clients/client/python/ory_client/model/update_registration_flow_body.py index f63a606d5e9..6738c6b07c3 100644 --- a/clients/client/python/ory_client/model/update_registration_flow_body.py +++ b/clients/client/python/ory_client/model/update_registration_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_registration_flow_with_code_method.py b/clients/client/python/ory_client/model/update_registration_flow_with_code_method.py index 1c00bfe11d8..a35c9dd996d 100644 --- a/clients/client/python/ory_client/model/update_registration_flow_with_code_method.py +++ b/clients/client/python/ory_client/model/update_registration_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_registration_flow_with_oidc_method.py b/clients/client/python/ory_client/model/update_registration_flow_with_oidc_method.py index 5cebfc0bc00..08402870a64 100644 --- a/clients/client/python/ory_client/model/update_registration_flow_with_oidc_method.py +++ b/clients/client/python/ory_client/model/update_registration_flow_with_oidc_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_registration_flow_with_password_method.py b/clients/client/python/ory_client/model/update_registration_flow_with_password_method.py index 3090aaf9280..c8f71b5bb90 100644 --- a/clients/client/python/ory_client/model/update_registration_flow_with_password_method.py +++ b/clients/client/python/ory_client/model/update_registration_flow_with_password_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_registration_flow_with_web_authn_method.py b/clients/client/python/ory_client/model/update_registration_flow_with_web_authn_method.py index ace1b84210f..21f14c229d9 100644 --- a/clients/client/python/ory_client/model/update_registration_flow_with_web_authn_method.py +++ b/clients/client/python/ory_client/model/update_registration_flow_with_web_authn_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_settings_flow_body.py b/clients/client/python/ory_client/model/update_settings_flow_body.py index aea2969b405..75fa59bb04e 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_body.py +++ b/clients/client/python/ory_client/model/update_settings_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -100,6 +100,7 @@ def openapi_types(): return { 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'flow': (str,), # noqa: E501 'link': (str,), # noqa: E501 'unlink': (str,), # noqa: E501 @@ -141,6 +142,7 @@ def discriminator(): attribute_map = { 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'flow': 'flow', # noqa: E501 'link': 'link', # noqa: E501 'unlink': 'unlink', # noqa: E501 @@ -199,6 +201,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 flow (str): Flow ID is the flow's ID. in: query. [optional] # noqa: E501 link (str): Link this provider Either this or `unlink` must be set. type: string in: body. [optional] # noqa: E501 unlink (str): Unlink this provider Either this or `link` must be set. type: string in: body. [optional] # noqa: E501 @@ -319,6 +322,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 flow (str): Flow ID is the flow's ID. in: query. [optional] # noqa: E501 link (str): Link this provider Either this or `unlink` must be set. type: string in: body. [optional] # noqa: E501 unlink (str): Unlink this provider Either this or `link` must be set. type: string in: body. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/update_settings_flow_with_lookup_method.py b/clients/client/python/ory_client/model/update_settings_flow_with_lookup_method.py index 70ec5e94055..fd3151de993 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_with_lookup_method.py +++ b/clients/client/python/ory_client/model/update_settings_flow_with_lookup_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -88,6 +88,7 @@ def openapi_types(): 'lookup_secret_disable': (bool,), # noqa: E501 'lookup_secret_regenerate': (bool,), # noqa: E501 'lookup_secret_reveal': (bool,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -102,6 +103,7 @@ def discriminator(): 'lookup_secret_disable': 'lookup_secret_disable', # noqa: E501 'lookup_secret_regenerate': 'lookup_secret_regenerate', # noqa: E501 'lookup_secret_reveal': 'lookup_secret_reveal', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -153,6 +155,7 @@ def _from_openapi_data(cls, method, *args, **kwargs): # noqa: E501 lookup_secret_disable (bool): Disables this method if true.. [optional] # noqa: E501 lookup_secret_regenerate (bool): If set to true will regenerate the lookup secrets. [optional] # noqa: E501 lookup_secret_reveal (bool): If set to true will reveal the lookup secrets. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -247,6 +250,7 @@ def __init__(self, method, *args, **kwargs): # noqa: E501 lookup_secret_disable (bool): Disables this method if true.. [optional] # noqa: E501 lookup_secret_regenerate (bool): If set to true will regenerate the lookup secrets. [optional] # noqa: E501 lookup_secret_reveal (bool): If set to true will reveal the lookup secrets. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_settings_flow_with_oidc_method.py b/clients/client/python/ory_client/model/update_settings_flow_with_oidc_method.py index 6a3ea1023b0..d4059809fb6 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_with_oidc_method.py +++ b/clients/client/python/ory_client/model/update_settings_flow_with_oidc_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -86,6 +86,7 @@ def openapi_types(): 'flow': (str,), # noqa: E501 'link': (str,), # noqa: E501 'traits': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'unlink': (str,), # noqa: E501 'upstream_parameters': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @@ -100,6 +101,7 @@ def discriminator(): 'flow': 'flow', # noqa: E501 'link': 'link', # noqa: E501 'traits': 'traits', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'unlink': 'unlink', # noqa: E501 'upstream_parameters': 'upstream_parameters', # noqa: E501 } @@ -151,6 +153,7 @@ def _from_openapi_data(cls, method, *args, **kwargs): # noqa: E501 flow (str): Flow ID is the flow's ID. in: query. [optional] # noqa: E501 link (str): Link this provider Either this or `unlink` must be set. type: string in: body. [optional] # noqa: E501 traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The identity's traits in: body. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 unlink (str): Unlink this provider Either this or `link` must be set. type: string in: body. [optional] # noqa: E501 upstream_parameters ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. [optional] # noqa: E501 """ @@ -245,6 +248,7 @@ def __init__(self, method, *args, **kwargs): # noqa: E501 flow (str): Flow ID is the flow's ID. in: query. [optional] # noqa: E501 link (str): Link this provider Either this or `unlink` must be set. type: string in: body. [optional] # noqa: E501 traits ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): The identity's traits in: body. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 unlink (str): Unlink this provider Either this or `link` must be set. type: string in: body. [optional] # noqa: E501 upstream_parameters ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/update_settings_flow_with_password_method.py b/clients/client/python/ory_client/model/update_settings_flow_with_password_method.py index 3916b994010..f75c8a8e65a 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_with_password_method.py +++ b/clients/client/python/ory_client/model/update_settings_flow_with_password_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -85,6 +85,7 @@ def openapi_types(): 'method': (str,), # noqa: E501 'password': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -96,6 +97,7 @@ def discriminator(): 'method': 'method', # noqa: E501 'password': 'password', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -144,6 +146,7 @@ def _from_openapi_data(cls, method, password, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -236,6 +239,7 @@ def __init__(self, method, password, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_settings_flow_with_profile_method.py b/clients/client/python/ory_client/model/update_settings_flow_with_profile_method.py index 2ca19985c7e..ed35b1535bb 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_with_profile_method.py +++ b/clients/client/python/ory_client/model/update_settings_flow_with_profile_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -85,6 +85,7 @@ def openapi_types(): 'method': (str,), # noqa: E501 'traits': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -96,6 +97,7 @@ def discriminator(): 'method': 'method', # noqa: E501 'traits': 'traits', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -144,6 +146,7 @@ def _from_openapi_data(cls, method, traits, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): The Anti-CSRF Token This token is only required when performing browser flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -236,6 +239,7 @@ def __init__(self, method, traits, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): The Anti-CSRF Token This token is only required when performing browser flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_settings_flow_with_totp_method.py b/clients/client/python/ory_client/model/update_settings_flow_with_totp_method.py index a355fe89b14..1c9cd22d17e 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_with_totp_method.py +++ b/clients/client/python/ory_client/model/update_settings_flow_with_totp_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -86,6 +86,7 @@ def openapi_types(): 'csrf_token': (str,), # noqa: E501 'totp_code': (str,), # noqa: E501 'totp_unlink': (bool,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -98,6 +99,7 @@ def discriminator(): 'csrf_token': 'csrf_token', # noqa: E501 'totp_code': 'totp_code', # noqa: E501 'totp_unlink': 'totp_unlink', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -147,6 +149,7 @@ def _from_openapi_data(cls, method, *args, **kwargs): # noqa: E501 csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 totp_code (str): ValidationTOTP must contain a valid TOTP based on the. [optional] # noqa: E501 totp_unlink (bool): UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -239,6 +242,7 @@ def __init__(self, method, *args, **kwargs): # noqa: E501 csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 totp_code (str): ValidationTOTP must contain a valid TOTP based on the. [optional] # noqa: E501 totp_unlink (bool): UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_settings_flow_with_web_authn_method.py b/clients/client/python/ory_client/model/update_settings_flow_with_web_authn_method.py index de15242e363..7fa415ace3f 100644 --- a/clients/client/python/ory_client/model/update_settings_flow_with_web_authn_method.py +++ b/clients/client/python/ory_client/model/update_settings_flow_with_web_authn_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -84,6 +84,7 @@ def openapi_types(): return { 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'webauthn_register': (str,), # noqa: E501 'webauthn_register_displayname': (str,), # noqa: E501 'webauthn_remove': (str,), # noqa: E501 @@ -97,6 +98,7 @@ def discriminator(): attribute_map = { 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'webauthn_register': 'webauthn_register', # noqa: E501 'webauthn_register_displayname': 'webauthn_register_displayname', # noqa: E501 'webauthn_remove': 'webauthn_remove', # noqa: E501 @@ -147,6 +149,7 @@ def _from_openapi_data(cls, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 webauthn_register (str): Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here.. [optional] # noqa: E501 webauthn_register_displayname (str): Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added.. [optional] # noqa: E501 webauthn_remove (str): Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection.. [optional] # noqa: E501 @@ -240,6 +243,7 @@ def __init__(self, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): CSRFToken is the anti-CSRF token. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 webauthn_register (str): Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here.. [optional] # noqa: E501 webauthn_register_displayname (str): Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added.. [optional] # noqa: E501 webauthn_remove (str): Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection.. [optional] # noqa: E501 diff --git a/clients/client/python/ory_client/model/update_subscription_body.py b/clients/client/python/ory_client/model/update_subscription_body.py index 7f488dcd47a..2be636c88d0 100644 --- a/clients/client/python/ory_client/model/update_subscription_body.py +++ b/clients/client/python/ory_client/model/update_subscription_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/update_verification_flow_body.py b/clients/client/python/ory_client/model/update_verification_flow_body.py index d3ccd82fb4e..eceb0150513 100644 --- a/clients/client/python/ory_client/model/update_verification_flow_body.py +++ b/clients/client/python/ory_client/model/update_verification_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -96,6 +96,7 @@ def openapi_types(): return { 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 'code': (str,), # noqa: E501 'email': (str,), # noqa: E501 } @@ -116,6 +117,7 @@ def discriminator(): attribute_map = { 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 'code': 'code', # noqa: E501 'email': 'email', # noqa: E501 } @@ -161,6 +163,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 email (str): The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 """ @@ -268,6 +271,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 email (str): The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 """ diff --git a/clients/client/python/ory_client/model/update_verification_flow_with_code_method.py b/clients/client/python/ory_client/model/update_verification_flow_with_code_method.py index c508158a9fe..20f510db951 100644 --- a/clients/client/python/ory_client/model/update_verification_flow_with_code_method.py +++ b/clients/client/python/ory_client/model/update_verification_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -90,6 +90,7 @@ def openapi_types(): 'code': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 'email': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -102,6 +103,7 @@ def discriminator(): 'code': 'code', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 'email': 'email', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -151,6 +153,7 @@ def _from_openapi_data(cls, method, *args, **kwargs): # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 email (str): The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -243,6 +246,7 @@ def __init__(self, method, *args, **kwargs): # noqa: E501 code (str): Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well.. [optional] # noqa: E501 csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 email (str): The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_verification_flow_with_link_method.py b/clients/client/python/ory_client/model/update_verification_flow_with_link_method.py index 3b449a66de2..614c547547b 100644 --- a/clients/client/python/ory_client/model/update_verification_flow_with_link_method.py +++ b/clients/client/python/ory_client/model/update_verification_flow_with_link_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -89,6 +89,7 @@ def openapi_types(): 'email': (str,), # noqa: E501 'method': (str,), # noqa: E501 'csrf_token': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -100,6 +101,7 @@ def discriminator(): 'email': 'email', # noqa: E501 'method': 'method', # noqa: E501 'csrf_token': 'csrf_token', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -148,6 +150,7 @@ def _from_openapi_data(cls, email, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -240,6 +243,7 @@ def __init__(self, email, method, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) csrf_token (str): Sending the anti-csrf token is only required for browser login flows.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): Transient data to pass along to any webhooks. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/update_workspace_payload.py b/clients/client/python/ory_client/model/update_workspace_payload.py new file mode 100644 index 00000000000..3a5a0973998 --- /dev/null +++ b/clients/client/python/ory_client/model/update_workspace_payload.py @@ -0,0 +1,270 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from ory_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from ory_client.exceptions import ApiAttributeError + + + +class UpdateWorkspacePayload(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'name': (str,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'name': 'name', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501 + """UpdateWorkspacePayload - a model defined in OpenAPI + + Args: + name (str): The name of the workspace. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, name, *args, **kwargs): # noqa: E501 + """UpdateWorkspacePayload - a model defined in OpenAPI + + Args: + name (str): The name of the workspace. + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.name = name + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/usage.py b/clients/client/python/ory_client/model/usage.py index 1917245b32d..da93b2b107a 100644 --- a/clients/client/python/ory_client/model/usage.py +++ b/clients/client/python/ory_client/model/usage.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/verifiable_credential_priming_response.py b/clients/client/python/ory_client/model/verifiable_credential_priming_response.py index eddc16095a9..9eced60a952 100644 --- a/clients/client/python/ory_client/model/verifiable_credential_priming_response.py +++ b/clients/client/python/ory_client/model/verifiable_credential_priming_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/verifiable_credential_proof.py b/clients/client/python/ory_client/model/verifiable_credential_proof.py index 409ab1a65d6..4dbc2142680 100644 --- a/clients/client/python/ory_client/model/verifiable_credential_proof.py +++ b/clients/client/python/ory_client/model/verifiable_credential_proof.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/verifiable_credential_response.py b/clients/client/python/ory_client/model/verifiable_credential_response.py index 9f23b3c9039..233423792f2 100644 --- a/clients/client/python/ory_client/model/verifiable_credential_response.py +++ b/clients/client/python/ory_client/model/verifiable_credential_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/verifiable_identity_address.py b/clients/client/python/ory_client/model/verifiable_identity_address.py index ae694965b33..55c7b509e8e 100644 --- a/clients/client/python/ory_client/model/verifiable_identity_address.py +++ b/clients/client/python/ory_client/model/verifiable_identity_address.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/verification_flow.py b/clients/client/python/ory_client/model/verification_flow.py index 6b3e4dde0ec..673637ff272 100644 --- a/clients/client/python/ory_client/model/verification_flow.py +++ b/clients/client/python/ory_client/model/verification_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -97,6 +97,7 @@ def openapi_types(): 'issued_at': (datetime,), # noqa: E501 'request_url': (str,), # noqa: E501 'return_to': (str,), # noqa: E501 + 'transient_payload': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},), # noqa: E501 } @cached_property @@ -114,6 +115,7 @@ def discriminator(): 'issued_at': 'issued_at', # noqa: E501 'request_url': 'request_url', # noqa: E501 'return_to': 'return_to', # noqa: E501 + 'transient_payload': 'transient_payload', # noqa: E501 } read_only_vars = { @@ -168,6 +170,7 @@ def _from_openapi_data(cls, id, state, type, ui, *args, **kwargs): # noqa: E501 issued_at (datetime): IssuedAt is the time (UTC) when the request occurred.. [optional] # noqa: E501 request_url (str): RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.. [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the verification flow to hooks and email templates. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) @@ -268,6 +271,7 @@ def __init__(self, id, state, type, ui, *args, **kwargs): # noqa: E501 issued_at (datetime): IssuedAt is the time (UTC) when the request occurred.. [optional] # noqa: E501 request_url (str): RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.. [optional] # noqa: E501 return_to (str): ReturnTo contains the requested return_to URL.. [optional] # noqa: E501 + transient_payload ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): TransientPayload is used to pass data from the verification flow to hooks and email templates. [optional] # noqa: E501 """ _check_type = kwargs.pop('_check_type', True) diff --git a/clients/client/python/ory_client/model/verification_flow_state.py b/clients/client/python/ory_client/model/verification_flow_state.py index 9713b111bd1..5f897f3198d 100644 --- a/clients/client/python/ory_client/model/verification_flow_state.py +++ b/clients/client/python/ory_client/model/verification_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/version.py b/clients/client/python/ory_client/model/version.py index 3e354a55453..7c59e3e5d48 100644 --- a/clients/client/python/ory_client/model/version.py +++ b/clients/client/python/ory_client/model/version.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/warning.py b/clients/client/python/ory_client/model/warning.py index c5a5cc71769..00bf44acf9a 100644 --- a/clients/client/python/ory_client/model/warning.py +++ b/clients/client/python/ory_client/model/warning.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/workspace.py b/clients/client/python/ory_client/model/workspace.py index e9bc70215b4..6d83f745951 100644 --- a/clients/client/python/ory_client/model/workspace.py +++ b/clients/client/python/ory_client/model/workspace.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model/workspace_meta.py b/clients/client/python/ory_client/model/workspace_meta.py new file mode 100644 index 00000000000..03a7a68baca --- /dev/null +++ b/clients/client/python/ory_client/model/workspace_meta.py @@ -0,0 +1,296 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import re # noqa: F401 +import sys # noqa: F401 + +from ory_client.model_utils import ( # noqa: F401 + ApiTypeError, + ModelComposed, + ModelNormal, + ModelSimple, + cached_property, + change_keys_js_to_python, + convert_js_args_to_python_args, + date, + datetime, + file_type, + none_type, + validate_get_composed_info, + OpenApiModel +) +from ory_client.exceptions import ApiAttributeError + + + +class WorkspaceMeta(ModelNormal): + """NOTE: This class is auto generated by OpenAPI Generator. + Ref: https://openapi-generator.tech + + Do not edit the class manually. + + Attributes: + allowed_values (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + with a capitalized key describing the allowed value and an allowed + value. These dicts store the allowed enum values. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + discriminator_value_class_map (dict): A dict to go from the discriminator + variable value to the discriminator class name. + validations (dict): The key is the tuple path to the attribute + and the for var_name this is (var_name,). The value is a dict + that stores validations for max_length, min_length, max_items, + min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum, + inclusive_minimum, and regex. + additional_properties_type (tuple): A tuple of classes accepted + as additional properties values. + """ + + allowed_values = { + } + + validations = { + } + + @cached_property + def additional_properties_type(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + """ + return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501 + + _nullable = False + + @cached_property + def openapi_types(): + """ + This must be a method because a model may have properties that are + of type self, this must run after the class is loaded + + Returns + openapi_types (dict): The key is attribute name + and the value is attribute type. + """ + return { + 'created_at': (datetime,), # noqa: E501 + 'id': (str,), # noqa: E501 + 'name': (str,), # noqa: E501 + 'updated_at': (datetime,), # noqa: E501 + 'subscription_id': (str, none_type,), # noqa: E501 + 'subscription_plan': (str, none_type,), # noqa: E501 + } + + @cached_property + def discriminator(): + return None + + + attribute_map = { + 'created_at': 'created_at', # noqa: E501 + 'id': 'id', # noqa: E501 + 'name': 'name', # noqa: E501 + 'updated_at': 'updated_at', # noqa: E501 + 'subscription_id': 'subscription_id', # noqa: E501 + 'subscription_plan': 'subscription_plan', # noqa: E501 + } + + read_only_vars = { + } + + _composed_schemas = {} + + @classmethod + @convert_js_args_to_python_args + def _from_openapi_data(cls, created_at, id, name, updated_at, *args, **kwargs): # noqa: E501 + """WorkspaceMeta - a model defined in OpenAPI + + Args: + created_at (datetime): + id (str): + name (str): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + subscription_id (str, none_type): [optional] # noqa: E501 + subscription_plan (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', True) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + self = super(OpenApiModel, cls).__new__(cls) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.created_at = created_at + self.id = id + self.name = name + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + return self + + required_properties = set([ + '_data_store', + '_check_type', + '_spec_property_naming', + '_path_to_item', + '_configuration', + '_visited_composed_classes', + ]) + + @convert_js_args_to_python_args + def __init__(self, created_at, id, name, updated_at, *args, **kwargs): # noqa: E501 + """WorkspaceMeta - a model defined in OpenAPI + + Args: + created_at (datetime): + id (str): + name (str): + updated_at (datetime): + + Keyword Args: + _check_type (bool): if True, values for parameters in openapi_types + will be type checked and a TypeError will be + raised if the wrong type is input. + Defaults to True + _path_to_item (tuple/list): This is a list of keys or values to + drill down to the model in received_data + when deserializing a response + _spec_property_naming (bool): True if the variable names in the input data + are serialized names, as specified in the OpenAPI document. + False if the variable names in the input data + are pythonic names, e.g. snake case (default) + _configuration (Configuration): the instance to use when + deserializing a file_type parameter. + If passed, type conversion is attempted + If omitted no type conversion is done. + _visited_composed_classes (tuple): This stores a tuple of + classes that we have traveled through so that + if we see that class again we will not use its + discriminator again. + When traveling through a discriminator, the + composed schema that is + is traveled through is added to this set. + For example if Animal has a discriminator + petType and we pass in "Dog", and the class Dog + allOf includes Animal, we move through Animal + once using the discriminator, and pick Dog. + Then in Dog, we will make an instance of the + Animal class but this time we won't travel + through its discriminator because we passed in + _visited_composed_classes = (Animal,) + subscription_id (str, none_type): [optional] # noqa: E501 + subscription_plan (str, none_type): [optional] # noqa: E501 + """ + + _check_type = kwargs.pop('_check_type', True) + _spec_property_naming = kwargs.pop('_spec_property_naming', False) + _path_to_item = kwargs.pop('_path_to_item', ()) + _configuration = kwargs.pop('_configuration', None) + _visited_composed_classes = kwargs.pop('_visited_composed_classes', ()) + + if args: + for arg in args: + if isinstance(arg, dict): + kwargs.update(arg) + else: + raise ApiTypeError( + "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % ( + args, + self.__class__.__name__, + ), + path_to_item=_path_to_item, + valid_classes=(self.__class__,), + ) + + self._data_store = {} + self._check_type = _check_type + self._spec_property_naming = _spec_property_naming + self._path_to_item = _path_to_item + self._configuration = _configuration + self._visited_composed_classes = _visited_composed_classes + (self.__class__,) + + self.created_at = created_at + self.id = id + self.name = name + self.updated_at = updated_at + for var_name, var_value in kwargs.items(): + if var_name not in self.attribute_map and \ + self._configuration is not None and \ + self._configuration.discard_unknown_keys and \ + self.additional_properties_type is None: + # discard variable. + continue + setattr(self, var_name, var_value) + if var_name in self.read_only_vars: + raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate " + f"class with read only attributes.") diff --git a/clients/client/python/ory_client/model/workspaces.py b/clients/client/python/ory_client/model/workspaces.py index da7662ca481..f06de3f99f3 100644 --- a/clients/client/python/ory_client/model/workspaces.py +++ b/clients/client/python/ory_client/model/workspaces.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/model_utils.py b/clients/client/python/ory_client/model_utils.py index e4b10c95ecb..52bdcd143a9 100644 --- a/clients/client/python/ory_client/model_utils.py +++ b/clients/client/python/ory_client/model_utils.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/ory_client/models/__init__.py b/clients/client/python/ory_client/models/__init__.py index 96e8c714f25..8018da34e8b 100644 --- a/clients/client/python/ory_client/models/__init__.py +++ b/clients/client/python/ory_client/models/__init__.py @@ -47,8 +47,11 @@ from ory_client.model.create_recovery_link_for_identity_body import CreateRecoveryLinkForIdentityBody from ory_client.model.create_relationship_body import CreateRelationshipBody from ory_client.model.create_subscription_body import CreateSubscriptionBody +from ory_client.model.create_subscription_common import CreateSubscriptionCommon from ory_client.model.create_verifiable_credential_request_body import CreateVerifiableCredentialRequestBody from ory_client.model.create_workspace_member_invite_body import CreateWorkspaceMemberInviteBody +from ory_client.model.create_workspace_payload import CreateWorkspacePayload +from ory_client.model.create_workspace_subscription_body import CreateWorkspaceSubscriptionBody from ory_client.model.credential_supported_draft00 import CredentialSupportedDraft00 from ory_client.model.custom_domain import CustomDomain from ory_client.model.delete_my_sessions_count import DeleteMySessionsCount @@ -83,14 +86,12 @@ from ory_client.model.identity_credentials_oidc import IdentityCredentialsOidc from ory_client.model.identity_credentials_oidc_provider import IdentityCredentialsOidcProvider from ory_client.model.identity_credentials_password import IdentityCredentialsPassword -from ory_client.model.identity_credentials_type import IdentityCredentialsType from ory_client.model.identity_patch import IdentityPatch from ory_client.model.identity_patch_response import IdentityPatchResponse from ory_client.model.identity_schema_container import IdentitySchemaContainer from ory_client.model.identity_schema_preset import IdentitySchemaPreset from ory_client.model.identity_schema_presets import IdentitySchemaPresets from ory_client.model.identity_schemas import IdentitySchemas -from ory_client.model.identity_state import IdentityState from ory_client.model.identity_with_credentials import IdentityWithCredentials from ory_client.model.identity_with_credentials_oidc import IdentityWithCredentialsOidc from ory_client.model.identity_with_credentials_oidc_config import IdentityWithCredentialsOidcConfig @@ -101,7 +102,6 @@ from ory_client.model.internal_is_ax_welcome_screen_enabled_for_project_body import InternalIsAXWelcomeScreenEnabledForProjectBody from ory_client.model.internal_is_owner_for_project_by_slug_body import InternalIsOwnerForProjectBySlugBody from ory_client.model.internal_is_owner_for_project_by_slug_response import InternalIsOwnerForProjectBySlugResponse -from ory_client.model.internal_provision_mock_subscription import InternalProvisionMockSubscription from ory_client.model.introspected_o_auth2_token import IntrospectedOAuth2Token from ory_client.model.is_owner_for_project_by_slug import IsOwnerForProjectBySlug from ory_client.model.is_ready200_response import IsReady200Response @@ -116,6 +116,7 @@ from ory_client.model.list_event_streams import ListEventStreams from ory_client.model.list_my_workspaces_response import ListMyWorkspacesResponse from ory_client.model.list_organizations_response import ListOrganizationsResponse +from ory_client.model.list_workspace_projects_response import ListWorkspaceProjectsResponse from ory_client.model.login_flow import LoginFlow from ory_client.model.login_flow_state import LoginFlowState from ory_client.model.logout_flow import LogoutFlow @@ -127,6 +128,7 @@ from ory_client.model.message import Message from ory_client.model.message_dispatch import MessageDispatch from ory_client.model.metrics_datapoint import MetricsDatapoint +from ory_client.model.migration_options import MigrationOptions from ory_client.model.namespace import Namespace from ory_client.model.needs_privileged_session_error import NeedsPrivilegedSessionError from ory_client.model.normalized_project import NormalizedProject @@ -161,8 +163,10 @@ from ory_client.model.patch_identities_body import PatchIdentitiesBody from ory_client.model.perform_native_logout_body import PerformNativeLogoutBody from ory_client.model.permissions_on_project import PermissionsOnProject +from ory_client.model.permissions_on_workpace_response import PermissionsOnWorkpaceResponse from ory_client.model.plan import Plan from ory_client.model.plan_details import PlanDetails +from ory_client.model.plan_features import PlanFeatures from ory_client.model.plans import Plans from ory_client.model.post_check_permission_body import PostCheckPermissionBody from ory_client.model.post_check_permission_or_error_body import PostCheckPermissionOrErrorBody @@ -222,7 +226,6 @@ from ory_client.model.settings_flow_state import SettingsFlowState from ory_client.model.source_position import SourcePosition from ory_client.model.string_slice_json_format import StringSliceJSONFormat -from ory_client.model.stripe_customer import StripeCustomer from ory_client.model.subject_set import SubjectSet from ory_client.model.subscription import Subscription from ory_client.model.successful_code_exchange_response import SuccessfulCodeExchangeResponse @@ -276,6 +279,7 @@ from ory_client.model.update_verification_flow_body import UpdateVerificationFlowBody from ory_client.model.update_verification_flow_with_code_method import UpdateVerificationFlowWithCodeMethod from ory_client.model.update_verification_flow_with_link_method import UpdateVerificationFlowWithLinkMethod +from ory_client.model.update_workspace_payload import UpdateWorkspacePayload from ory_client.model.usage import Usage from ory_client.model.verifiable_credential_priming_response import VerifiableCredentialPrimingResponse from ory_client.model.verifiable_credential_proof import VerifiableCredentialProof @@ -286,4 +290,5 @@ from ory_client.model.version import Version from ory_client.model.warning import Warning from ory_client.model.workspace import Workspace +from ory_client.model.workspace_meta import WorkspaceMeta from ory_client.model.workspaces import Workspaces diff --git a/clients/client/python/ory_client/rest.py b/clients/client/python/ory_client/rest.py index cc3a5c66fc6..037881e7508 100644 --- a/clients/client/python/ory_client/rest.py +++ b/clients/client/python/ory_client/rest.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/setup.py b/clients/client/python/setup.py index 8da75e11e5d..4dbcdf99635 100644 --- a/clients/client/python/setup.py +++ b/clients/client/python/setup.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "ory-client" -VERSION = "v1.5.1" +VERSION = "v1.8.1" # To install the library, run the following # # python setup.py install diff --git a/clients/client/python/test/test_accept_o_auth2_consent_request.py b/clients/client/python/test/test_accept_o_auth2_consent_request.py index 7822bc02d80..65eb95492a3 100644 --- a/clients/client/python/test/test_accept_o_auth2_consent_request.py +++ b/clients/client/python/test/test_accept_o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_accept_o_auth2_consent_request_session.py b/clients/client/python/test/test_accept_o_auth2_consent_request_session.py index 1043a47617d..099b3f3512c 100644 --- a/clients/client/python/test/test_accept_o_auth2_consent_request_session.py +++ b/clients/client/python/test/test_accept_o_auth2_consent_request_session.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_accept_o_auth2_login_request.py b/clients/client/python/test/test_accept_o_auth2_login_request.py index ce3b1b5ab5b..f577496c034 100644 --- a/clients/client/python/test/test_accept_o_auth2_login_request.py +++ b/clients/client/python/test/test_accept_o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_active_project_in_console.py b/clients/client/python/test/test_active_project_in_console.py index 6a6b42c3c3c..858ef35c107 100644 --- a/clients/client/python/test/test_active_project_in_console.py +++ b/clients/client/python/test/test_active_project_in_console.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_attribute.py b/clients/client/python/test/test_attribute.py index 04a85ec3f41..b4f4ecae429 100644 --- a/clients/client/python/test/test_attribute.py +++ b/clients/client/python/test/test_attribute.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_attribute_filter.py b/clients/client/python/test/test_attribute_filter.py index 66ed7494a23..fab9988f987 100644 --- a/clients/client/python/test/test_attribute_filter.py +++ b/clients/client/python/test/test_attribute_filter.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_attributes_count_datapoint.py b/clients/client/python/test/test_attributes_count_datapoint.py index aadff52f5f8..6ef00906036 100644 --- a/clients/client/python/test/test_attributes_count_datapoint.py +++ b/clients/client/python/test/test_attributes_count_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_authenticator_assurance_level.py b/clients/client/python/test/test_authenticator_assurance_level.py index 83c17b9238f..34be196c891 100644 --- a/clients/client/python/test/test_authenticator_assurance_level.py +++ b/clients/client/python/test/test_authenticator_assurance_level.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_batch_patch_identities_response.py b/clients/client/python/test/test_batch_patch_identities_response.py index f3d2ea33896..be66eed1f5d 100644 --- a/clients/client/python/test/test_batch_patch_identities_response.py +++ b/clients/client/python/test/test_batch_patch_identities_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_check_opl_syntax_result.py b/clients/client/python/test/test_check_opl_syntax_result.py index 853c7b505ea..ef9b664030c 100644 --- a/clients/client/python/test/test_check_opl_syntax_result.py +++ b/clients/client/python/test/test_check_opl_syntax_result.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_check_permission_result.py b/clients/client/python/test/test_check_permission_result.py index 662c89fe06c..0b0ea2c8909 100644 --- a/clients/client/python/test/test_check_permission_result.py +++ b/clients/client/python/test/test_check_permission_result.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_cloud_account.py b/clients/client/python/test/test_cloud_account.py index 7317e0f3329..e7677b498ee 100644 --- a/clients/client/python/test/test_cloud_account.py +++ b/clients/client/python/test/test_cloud_account.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_consistency_request_parameters.py b/clients/client/python/test/test_consistency_request_parameters.py index 072ebd241e7..b2b2a332706 100644 --- a/clients/client/python/test/test_consistency_request_parameters.py +++ b/clients/client/python/test/test_consistency_request_parameters.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with.py b/clients/client/python/test/test_continue_with.py index f578180d503..5580ec6e854 100644 --- a/clients/client/python/test/test_continue_with.py +++ b/clients/client/python/test/test_continue_with.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_recovery_ui.py b/clients/client/python/test/test_continue_with_recovery_ui.py index c93f212e71c..f2525441981 100644 --- a/clients/client/python/test/test_continue_with_recovery_ui.py +++ b/clients/client/python/test/test_continue_with_recovery_ui.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_recovery_ui_flow.py b/clients/client/python/test/test_continue_with_recovery_ui_flow.py index 9891a2dc62b..be002b06096 100644 --- a/clients/client/python/test/test_continue_with_recovery_ui_flow.py +++ b/clients/client/python/test/test_continue_with_recovery_ui_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_set_ory_session_token.py b/clients/client/python/test/test_continue_with_set_ory_session_token.py index b0bff86ccb1..8c5dac311e6 100644 --- a/clients/client/python/test/test_continue_with_set_ory_session_token.py +++ b/clients/client/python/test/test_continue_with_set_ory_session_token.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_settings_ui.py b/clients/client/python/test/test_continue_with_settings_ui.py index 6157aa64ba7..f712aaf1681 100644 --- a/clients/client/python/test/test_continue_with_settings_ui.py +++ b/clients/client/python/test/test_continue_with_settings_ui.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_settings_ui_flow.py b/clients/client/python/test/test_continue_with_settings_ui_flow.py index 4e085fa811a..afbe6c22e87 100644 --- a/clients/client/python/test/test_continue_with_settings_ui_flow.py +++ b/clients/client/python/test/test_continue_with_settings_ui_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_verification_ui.py b/clients/client/python/test/test_continue_with_verification_ui.py index 6195cee8be3..9b7c14c0b27 100644 --- a/clients/client/python/test/test_continue_with_verification_ui.py +++ b/clients/client/python/test/test_continue_with_verification_ui.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_continue_with_verification_ui_flow.py b/clients/client/python/test/test_continue_with_verification_ui_flow.py index b99711a1d43..21b2d8add23 100644 --- a/clients/client/python/test/test_continue_with_verification_ui_flow.py +++ b/clients/client/python/test/test_continue_with_verification_ui_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_courier_api.py b/clients/client/python/test/test_courier_api.py index baa436da382..a9515948097 100644 --- a/clients/client/python/test/test_courier_api.py +++ b/clients/client/python/test/test_courier_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_courier_message_status.py b/clients/client/python/test/test_courier_message_status.py index 4f28fa9443e..1589e93dcf7 100644 --- a/clients/client/python/test/test_courier_message_status.py +++ b/clients/client/python/test/test_courier_message_status.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_courier_message_type.py b/clients/client/python/test/test_courier_message_type.py index 041958c0f5b..9968b62ed4f 100644 --- a/clients/client/python/test/test_courier_message_type.py +++ b/clients/client/python/test/test_courier_message_type.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_custom_domain_body.py b/clients/client/python/test/test_create_custom_domain_body.py index 7a1be51cd8a..33dbf150b6d 100644 --- a/clients/client/python/test/test_create_custom_domain_body.py +++ b/clients/client/python/test/test_create_custom_domain_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_event_stream_body.py b/clients/client/python/test/test_create_event_stream_body.py index 8e507521b1e..6f6901db681 100644 --- a/clients/client/python/test/test_create_event_stream_body.py +++ b/clients/client/python/test/test_create_event_stream_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_identity_body.py b/clients/client/python/test/test_create_identity_body.py index 6f9cdaef995..f49f393e09c 100644 --- a/clients/client/python/test/test_create_identity_body.py +++ b/clients/client/python/test/test_create_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,11 +13,9 @@ import unittest import ory_client -from ory_client.model.identity_state import IdentityState from ory_client.model.identity_with_credentials import IdentityWithCredentials from ory_client.model.recovery_identity_address import RecoveryIdentityAddress from ory_client.model.verifiable_identity_address import VerifiableIdentityAddress -globals()['IdentityState'] = IdentityState globals()['IdentityWithCredentials'] = IdentityWithCredentials globals()['RecoveryIdentityAddress'] = RecoveryIdentityAddress globals()['VerifiableIdentityAddress'] = VerifiableIdentityAddress diff --git a/clients/client/python/test/test_create_invite_response.py b/clients/client/python/test/test_create_invite_response.py index 7eb2a5836fb..2558273a152 100644 --- a/clients/client/python/test/test_create_invite_response.py +++ b/clients/client/python/test/test_create_invite_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_json_web_key_set.py b/clients/client/python/test/test_create_json_web_key_set.py index e6953acf46c..f187f56abcf 100644 --- a/clients/client/python/test/test_create_json_web_key_set.py +++ b/clients/client/python/test/test_create_json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_member_invite_response.py b/clients/client/python/test/test_create_member_invite_response.py index fb840c517c4..33ac6ccdd54 100644 --- a/clients/client/python/test/test_create_member_invite_response.py +++ b/clients/client/python/test/test_create_member_invite_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_project_api_key_request.py b/clients/client/python/test/test_create_project_api_key_request.py index 427cbb2987b..124e8925f04 100644 --- a/clients/client/python/test/test_create_project_api_key_request.py +++ b/clients/client/python/test/test_create_project_api_key_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_project_body.py b/clients/client/python/test/test_create_project_body.py index 076f3e2c506..b188999be2b 100644 --- a/clients/client/python/test/test_create_project_body.py +++ b/clients/client/python/test/test_create_project_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_project_branding.py b/clients/client/python/test/test_create_project_branding.py index b5acd79f5cf..fea0baefa9f 100644 --- a/clients/client/python/test/test_create_project_branding.py +++ b/clients/client/python/test/test_create_project_branding.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_project_member_invite_body.py b/clients/client/python/test/test_create_project_member_invite_body.py index 1decd38f2bb..9480f68ae5c 100644 --- a/clients/client/python/test/test_create_project_member_invite_body.py +++ b/clients/client/python/test/test_create_project_member_invite_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_project_normalized_payload.py b/clients/client/python/test/test_create_project_normalized_payload.py index 45af2c1033e..9f4e69a5a3a 100644 --- a/clients/client/python/test/test_create_project_normalized_payload.py +++ b/clients/client/python/test/test_create_project_normalized_payload.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_recovery_code_for_identity_body.py b/clients/client/python/test/test_create_recovery_code_for_identity_body.py index e6eba3f4132..2b846a20a0c 100644 --- a/clients/client/python/test/test_create_recovery_code_for_identity_body.py +++ b/clients/client/python/test/test_create_recovery_code_for_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_recovery_link_for_identity_body.py b/clients/client/python/test/test_create_recovery_link_for_identity_body.py index 2d39a812c48..1860d0d9931 100644 --- a/clients/client/python/test/test_create_recovery_link_for_identity_body.py +++ b/clients/client/python/test/test_create_recovery_link_for_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_relationship_body.py b/clients/client/python/test/test_create_relationship_body.py index da14719137b..5a8ef0f27dc 100644 --- a/clients/client/python/test/test_create_relationship_body.py +++ b/clients/client/python/test/test_create_relationship_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_subscription_body.py b/clients/client/python/test/test_create_subscription_body.py index 9a4c47ebecb..cad2f089d29 100644 --- a/clients/client/python/test/test_create_subscription_body.py +++ b/clients/client/python/test/test_create_subscription_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_internal_provision_mock_subscription.py b/clients/client/python/test/test_create_subscription_common.py similarity index 55% rename from clients/client/python/test/test_internal_provision_mock_subscription.py rename to clients/client/python/test/test_create_subscription_common.py index dd2b6a56792..9c7ad16115e 100644 --- a/clients/client/python/test/test_internal_provision_mock_subscription.py +++ b/clients/client/python/test/test_create_subscription_common.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,11 +13,11 @@ import unittest import ory_client -from ory_client.model.internal_provision_mock_subscription import InternalProvisionMockSubscription +from ory_client.model.create_subscription_common import CreateSubscriptionCommon -class TestInternalProvisionMockSubscription(unittest.TestCase): - """InternalProvisionMockSubscription unit test stubs""" +class TestCreateSubscriptionCommon(unittest.TestCase): + """CreateSubscriptionCommon unit test stubs""" def setUp(self): pass @@ -25,10 +25,10 @@ def setUp(self): def tearDown(self): pass - def testInternalProvisionMockSubscription(self): - """Test InternalProvisionMockSubscription""" + def testCreateSubscriptionCommon(self): + """Test CreateSubscriptionCommon""" # FIXME: construct object with mandatory attributes with example values - # model = InternalProvisionMockSubscription() # noqa: E501 + # model = CreateSubscriptionCommon() # noqa: E501 pass diff --git a/clients/client/python/test/test_create_verifiable_credential_request_body.py b/clients/client/python/test/test_create_verifiable_credential_request_body.py index 6672931efeb..539097ba98d 100644 --- a/clients/client/python/test/test_create_verifiable_credential_request_body.py +++ b/clients/client/python/test/test_create_verifiable_credential_request_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_create_workspace_member_invite_body.py b/clients/client/python/test/test_create_workspace_member_invite_body.py index 89323d44263..9eaf787febf 100644 --- a/clients/client/python/test/test_create_workspace_member_invite_body.py +++ b/clients/client/python/test/test_create_workspace_member_invite_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_credentials_type.py b/clients/client/python/test/test_create_workspace_payload.py similarity index 59% rename from clients/client/python/test/test_identity_credentials_type.py rename to clients/client/python/test/test_create_workspace_payload.py index 3a1d3a7975b..cfdbeedb3cc 100644 --- a/clients/client/python/test/test_identity_credentials_type.py +++ b/clients/client/python/test/test_create_workspace_payload.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,11 +13,11 @@ import unittest import ory_client -from ory_client.model.identity_credentials_type import IdentityCredentialsType +from ory_client.model.create_workspace_payload import CreateWorkspacePayload -class TestIdentityCredentialsType(unittest.TestCase): - """IdentityCredentialsType unit test stubs""" +class TestCreateWorkspacePayload(unittest.TestCase): + """CreateWorkspacePayload unit test stubs""" def setUp(self): pass @@ -25,10 +25,10 @@ def setUp(self): def tearDown(self): pass - def testIdentityCredentialsType(self): - """Test IdentityCredentialsType""" + def testCreateWorkspacePayload(self): + """Test CreateWorkspacePayload""" # FIXME: construct object with mandatory attributes with example values - # model = IdentityCredentialsType() # noqa: E501 + # model = CreateWorkspacePayload() # noqa: E501 pass diff --git a/clients/client/python/test/test_create_workspace_subscription_body.py b/clients/client/python/test/test_create_workspace_subscription_body.py new file mode 100644 index 00000000000..bf24837508d --- /dev/null +++ b/clients/client/python/test/test_create_workspace_subscription_body.py @@ -0,0 +1,36 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import ory_client +from ory_client.model.create_workspace_subscription_body import CreateWorkspaceSubscriptionBody + + +class TestCreateWorkspaceSubscriptionBody(unittest.TestCase): + """CreateWorkspaceSubscriptionBody unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testCreateWorkspaceSubscriptionBody(self): + """Test CreateWorkspaceSubscriptionBody""" + # FIXME: construct object with mandatory attributes with example values + # model = CreateWorkspaceSubscriptionBody() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/client/python/test/test_credential_supported_draft00.py b/clients/client/python/test/test_credential_supported_draft00.py index 82f91613101..59ae1bf8f67 100644 --- a/clients/client/python/test/test_credential_supported_draft00.py +++ b/clients/client/python/test/test_credential_supported_draft00.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_custom_domain.py b/clients/client/python/test/test_custom_domain.py index 95f5ffc9801..08a7ab2acb9 100644 --- a/clients/client/python/test/test_custom_domain.py +++ b/clients/client/python/test/test_custom_domain.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_delete_my_sessions_count.py b/clients/client/python/test/test_delete_my_sessions_count.py index 3baa65c017d..280996de415 100644 --- a/clients/client/python/test/test_delete_my_sessions_count.py +++ b/clients/client/python/test/test_delete_my_sessions_count.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_email_template_data.py b/clients/client/python/test/test_email_template_data.py index c330e28fc2d..68e68f4cc39 100644 --- a/clients/client/python/test/test_email_template_data.py +++ b/clients/client/python/test/test_email_template_data.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_email_template_data_body.py b/clients/client/python/test/test_email_template_data_body.py index a1bb63d182d..27d11387ca6 100644 --- a/clients/client/python/test/test_email_template_data_body.py +++ b/clients/client/python/test/test_email_template_data_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_error_authenticator_assurance_level_not_satisfied.py b/clients/client/python/test/test_error_authenticator_assurance_level_not_satisfied.py index 831f5dbeaea..67e3bec1a0f 100644 --- a/clients/client/python/test/test_error_authenticator_assurance_level_not_satisfied.py +++ b/clients/client/python/test/test_error_authenticator_assurance_level_not_satisfied.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_error_browser_location_change_required.py b/clients/client/python/test/test_error_browser_location_change_required.py index 9822bf8574b..3f9e283b6a6 100644 --- a/clients/client/python/test/test_error_browser_location_change_required.py +++ b/clients/client/python/test/test_error_browser_location_change_required.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_error_flow_replaced.py b/clients/client/python/test/test_error_flow_replaced.py index 34f7e124fd9..1744114d195 100644 --- a/clients/client/python/test/test_error_flow_replaced.py +++ b/clients/client/python/test/test_error_flow_replaced.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_error_generic.py b/clients/client/python/test/test_error_generic.py index bdbb3b396d5..fcdcd86ec13 100644 --- a/clients/client/python/test/test_error_generic.py +++ b/clients/client/python/test/test_error_generic.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_error_o_auth2.py b/clients/client/python/test/test_error_o_auth2.py index 616257315d8..8166bcccbaf 100644 --- a/clients/client/python/test/test_error_o_auth2.py +++ b/clients/client/python/test/test_error_o_auth2.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_event_stream.py b/clients/client/python/test/test_event_stream.py index 324ae1239d4..3514c608d40 100644 --- a/clients/client/python/test/test_event_stream.py +++ b/clients/client/python/test/test_event_stream.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_events_api.py b/clients/client/python/test/test_events_api.py index 17631f255f7..c355b5211b3 100644 --- a/clients/client/python/test/test_events_api.py +++ b/clients/client/python/test/test_events_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_expanded_permission_tree.py b/clients/client/python/test/test_expanded_permission_tree.py index 85b9e1098b1..58f99e588c7 100644 --- a/clients/client/python/test/test_expanded_permission_tree.py +++ b/clients/client/python/test/test_expanded_permission_tree.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_flow_error.py b/clients/client/python/test/test_flow_error.py index b5443a4030d..28b743ca639 100644 --- a/clients/client/python/test/test_flow_error.py +++ b/clients/client/python/test/test_flow_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_frontend_api.py b/clients/client/python/test/test_frontend_api.py index 76030e19456..4a0cbebdb0a 100644 --- a/clients/client/python/test/test_frontend_api.py +++ b/clients/client/python/test/test_frontend_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_generic_error.py b/clients/client/python/test/test_generic_error.py index 8f39e04fafa..1308419f879 100644 --- a/clients/client/python/test/test_generic_error.py +++ b/clients/client/python/test/test_generic_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_generic_error_content.py b/clients/client/python/test/test_generic_error_content.py index 9c4ff8d63f2..5e43e5095e8 100644 --- a/clients/client/python/test/test_generic_error_content.py +++ b/clients/client/python/test/test_generic_error_content.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_generic_usage.py b/clients/client/python/test/test_generic_usage.py index 9ebbc73fbf3..677322ad69d 100644 --- a/clients/client/python/test/test_generic_usage.py +++ b/clients/client/python/test/test_generic_usage.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_attributes_count_response.py b/clients/client/python/test/test_get_attributes_count_response.py index fbe9c346ebb..091aaaf7dc7 100644 --- a/clients/client/python/test/test_get_attributes_count_response.py +++ b/clients/client/python/test/test_get_attributes_count_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_managed_identity_schema_location.py b/clients/client/python/test/test_get_managed_identity_schema_location.py index 86fd0d2419d..2c32257418e 100644 --- a/clients/client/python/test/test_get_managed_identity_schema_location.py +++ b/clients/client/python/test/test_get_managed_identity_schema_location.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_metrics_event_attributes_response.py b/clients/client/python/test/test_get_metrics_event_attributes_response.py index bcca1166c6c..3f0b09b489b 100644 --- a/clients/client/python/test/test_get_metrics_event_attributes_response.py +++ b/clients/client/python/test/test_get_metrics_event_attributes_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_metrics_event_types_response.py b/clients/client/python/test/test_get_metrics_event_types_response.py index 6c51ea0880c..f500ede6242 100644 --- a/clients/client/python/test/test_get_metrics_event_types_response.py +++ b/clients/client/python/test/test_get_metrics_event_types_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_organization_response.py b/clients/client/python/test/test_get_organization_response.py index c89039f5371..2b58215ca73 100644 --- a/clients/client/python/test/test_get_organization_response.py +++ b/clients/client/python/test/test_get_organization_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_project_events_body.py b/clients/client/python/test/test_get_project_events_body.py index 163a3936a80..e18c2fda643 100644 --- a/clients/client/python/test/test_get_project_events_body.py +++ b/clients/client/python/test/test_get_project_events_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_project_events_response.py b/clients/client/python/test/test_get_project_events_response.py index 93354c51df6..990f90d266a 100644 --- a/clients/client/python/test/test_get_project_events_response.py +++ b/clients/client/python/test/test_get_project_events_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_project_metrics_response.py b/clients/client/python/test/test_get_project_metrics_response.py index f7266dafc7c..1c924f632f0 100644 --- a/clients/client/python/test/test_get_project_metrics_response.py +++ b/clients/client/python/test/test_get_project_metrics_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_session_activity_response.py b/clients/client/python/test/test_get_session_activity_response.py index c03598ca327..7d80430f4d6 100644 --- a/clients/client/python/test/test_get_session_activity_response.py +++ b/clients/client/python/test/test_get_session_activity_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_get_version200_response.py b/clients/client/python/test/test_get_version200_response.py index 4f066f12047..dd277bc8493 100644 --- a/clients/client/python/test/test_get_version200_response.py +++ b/clients/client/python/test/test_get_version200_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_health_not_ready_status.py b/clients/client/python/test/test_health_not_ready_status.py index 8175f5637ea..6cbbc4cdd09 100644 --- a/clients/client/python/test/test_health_not_ready_status.py +++ b/clients/client/python/test/test_health_not_ready_status.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_health_status.py b/clients/client/python/test/test_health_status.py index fd5515448e6..a8d1e39dd2f 100644 --- a/clients/client/python/test/test_health_status.py +++ b/clients/client/python/test/test_health_status.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity.py b/clients/client/python/test/test_identity.py index 56810bb240d..3a24bfc50ea 100644 --- a/clients/client/python/test/test_identity.py +++ b/clients/client/python/test/test_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -14,11 +14,9 @@ import ory_client from ory_client.model.identity_credentials import IdentityCredentials -from ory_client.model.identity_state import IdentityState from ory_client.model.recovery_identity_address import RecoveryIdentityAddress from ory_client.model.verifiable_identity_address import VerifiableIdentityAddress globals()['IdentityCredentials'] = IdentityCredentials -globals()['IdentityState'] = IdentityState globals()['RecoveryIdentityAddress'] = RecoveryIdentityAddress globals()['VerifiableIdentityAddress'] = VerifiableIdentityAddress from ory_client.model.identity import Identity diff --git a/clients/client/python/test/test_identity_api.py b/clients/client/python/test/test_identity_api.py index 8f3dbd5e63d..dabcec831e6 100644 --- a/clients/client/python/test/test_identity_api.py +++ b/clients/client/python/test/test_identity_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_credentials.py b/clients/client/python/test/test_identity_credentials.py index 3231e860a27..4184cb9c023 100644 --- a/clients/client/python/test/test_identity_credentials.py +++ b/clients/client/python/test/test_identity_credentials.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,8 +13,6 @@ import unittest import ory_client -from ory_client.model.identity_credentials_type import IdentityCredentialsType -globals()['IdentityCredentialsType'] = IdentityCredentialsType from ory_client.model.identity_credentials import IdentityCredentials diff --git a/clients/client/python/test/test_identity_credentials_code.py b/clients/client/python/test/test_identity_credentials_code.py index 8a89bb0c970..bc3fb6e6098 100644 --- a/clients/client/python/test/test_identity_credentials_code.py +++ b/clients/client/python/test/test_identity_credentials_code.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_credentials_oidc.py b/clients/client/python/test/test_identity_credentials_oidc.py index 695dd36822f..d774d6190e1 100644 --- a/clients/client/python/test/test_identity_credentials_oidc.py +++ b/clients/client/python/test/test_identity_credentials_oidc.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_credentials_oidc_provider.py b/clients/client/python/test/test_identity_credentials_oidc_provider.py index 7401e553ee2..7a196c3cc85 100644 --- a/clients/client/python/test/test_identity_credentials_oidc_provider.py +++ b/clients/client/python/test/test_identity_credentials_oidc_provider.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_credentials_password.py b/clients/client/python/test/test_identity_credentials_password.py index 89d0dff3925..36b6c99e04d 100644 --- a/clients/client/python/test/test_identity_credentials_password.py +++ b/clients/client/python/test/test_identity_credentials_password.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_patch.py b/clients/client/python/test/test_identity_patch.py index 09740b0f990..a87a54847ef 100644 --- a/clients/client/python/test/test_identity_patch.py +++ b/clients/client/python/test/test_identity_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_patch_response.py b/clients/client/python/test/test_identity_patch_response.py index b075dc05d5d..88f7dc48f6a 100644 --- a/clients/client/python/test/test_identity_patch_response.py +++ b/clients/client/python/test/test_identity_patch_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_schema_container.py b/clients/client/python/test/test_identity_schema_container.py index cadd4b0832b..950caad92b4 100644 --- a/clients/client/python/test/test_identity_schema_container.py +++ b/clients/client/python/test/test_identity_schema_container.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_schema_preset.py b/clients/client/python/test/test_identity_schema_preset.py index b16cdb70b98..2ed82bf45cc 100644 --- a/clients/client/python/test/test_identity_schema_preset.py +++ b/clients/client/python/test/test_identity_schema_preset.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_schema_presets.py b/clients/client/python/test/test_identity_schema_presets.py index dbd5e4e84ad..594f3781752 100644 --- a/clients/client/python/test/test_identity_schema_presets.py +++ b/clients/client/python/test/test_identity_schema_presets.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_schemas.py b/clients/client/python/test/test_identity_schemas.py index 6154e50275f..1ea630aa5ab 100644 --- a/clients/client/python/test/test_identity_schemas.py +++ b/clients/client/python/test/test_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_with_credentials.py b/clients/client/python/test/test_identity_with_credentials.py index b48624a8f39..cd54388bbf5 100644 --- a/clients/client/python/test/test_identity_with_credentials.py +++ b/clients/client/python/test/test_identity_with_credentials.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_with_credentials_oidc.py b/clients/client/python/test/test_identity_with_credentials_oidc.py index 436539c1c5d..1ac48d8660a 100644 --- a/clients/client/python/test/test_identity_with_credentials_oidc.py +++ b/clients/client/python/test/test_identity_with_credentials_oidc.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_with_credentials_oidc_config.py b/clients/client/python/test/test_identity_with_credentials_oidc_config.py index 0218b0cfe34..7034ce3ee4a 100644 --- a/clients/client/python/test/test_identity_with_credentials_oidc_config.py +++ b/clients/client/python/test/test_identity_with_credentials_oidc_config.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_with_credentials_oidc_config_provider.py b/clients/client/python/test/test_identity_with_credentials_oidc_config_provider.py index b40a39beaac..58e15020507 100644 --- a/clients/client/python/test/test_identity_with_credentials_oidc_config_provider.py +++ b/clients/client/python/test/test_identity_with_credentials_oidc_config_provider.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_with_credentials_password.py b/clients/client/python/test/test_identity_with_credentials_password.py index 52a414a73f7..092970c3f75 100644 --- a/clients/client/python/test/test_identity_with_credentials_password.py +++ b/clients/client/python/test/test_identity_with_credentials_password.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_with_credentials_password_config.py b/clients/client/python/test/test_identity_with_credentials_password_config.py index 4a93f872f31..2a85a331c8c 100644 --- a/clients/client/python/test/test_identity_with_credentials_password_config.py +++ b/clients/client/python/test/test_identity_with_credentials_password_config.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_internal_get_project_branding_body.py b/clients/client/python/test/test_internal_get_project_branding_body.py index 892c844073f..477b1be8058 100644 --- a/clients/client/python/test/test_internal_get_project_branding_body.py +++ b/clients/client/python/test/test_internal_get_project_branding_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_internal_is_ax_welcome_screen_enabled_for_project_body.py b/clients/client/python/test/test_internal_is_ax_welcome_screen_enabled_for_project_body.py index d26890e60c4..f632709c782 100644 --- a/clients/client/python/test/test_internal_is_ax_welcome_screen_enabled_for_project_body.py +++ b/clients/client/python/test/test_internal_is_ax_welcome_screen_enabled_for_project_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_internal_is_owner_for_project_by_slug_body.py b/clients/client/python/test/test_internal_is_owner_for_project_by_slug_body.py index 79e2add1b9f..730773c3806 100644 --- a/clients/client/python/test/test_internal_is_owner_for_project_by_slug_body.py +++ b/clients/client/python/test/test_internal_is_owner_for_project_by_slug_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_internal_is_owner_for_project_by_slug_response.py b/clients/client/python/test/test_internal_is_owner_for_project_by_slug_response.py index 37e8d77a875..9e43f3610ed 100644 --- a/clients/client/python/test/test_internal_is_owner_for_project_by_slug_response.py +++ b/clients/client/python/test/test_internal_is_owner_for_project_by_slug_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_introspected_o_auth2_token.py b/clients/client/python/test/test_introspected_o_auth2_token.py index a9cccc85564..17095a70178 100644 --- a/clients/client/python/test/test_introspected_o_auth2_token.py +++ b/clients/client/python/test/test_introspected_o_auth2_token.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_is_owner_for_project_by_slug.py b/clients/client/python/test/test_is_owner_for_project_by_slug.py index 0f13a94616e..7cf4e7f2f96 100644 --- a/clients/client/python/test/test_is_owner_for_project_by_slug.py +++ b/clients/client/python/test/test_is_owner_for_project_by_slug.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_is_ready200_response.py b/clients/client/python/test/test_is_ready200_response.py index 700142b3f70..37a1ab449ef 100644 --- a/clients/client/python/test/test_is_ready200_response.py +++ b/clients/client/python/test/test_is_ready200_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_is_ready503_response.py b/clients/client/python/test/test_is_ready503_response.py index 12172f62f2a..2f9e26f969c 100644 --- a/clients/client/python/test/test_is_ready503_response.py +++ b/clients/client/python/test/test_is_ready503_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_json_patch.py b/clients/client/python/test/test_json_patch.py index c180db6ea1e..01eddc53633 100644 --- a/clients/client/python/test/test_json_patch.py +++ b/clients/client/python/test/test_json_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_json_patch_document.py b/clients/client/python/test/test_json_patch_document.py index cfbf6b95a6b..8c44e1dbd27 100644 --- a/clients/client/python/test/test_json_patch_document.py +++ b/clients/client/python/test/test_json_patch_document.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_json_web_key.py b/clients/client/python/test/test_json_web_key.py index bc23362b340..3412cc30cd5 100644 --- a/clients/client/python/test/test_json_web_key.py +++ b/clients/client/python/test/test_json_web_key.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_json_web_key_set.py b/clients/client/python/test/test_json_web_key_set.py index d0bfafb58a9..e82857b6bad 100644 --- a/clients/client/python/test/test_json_web_key_set.py +++ b/clients/client/python/test/test_json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_jwk_api.py b/clients/client/python/test/test_jwk_api.py index 3934d3fb230..99e53be8ae2 100644 --- a/clients/client/python/test/test_jwk_api.py +++ b/clients/client/python/test/test_jwk_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_keto_namespace.py b/clients/client/python/test/test_keto_namespace.py index 44fcac2a9ca..193a944b633 100644 --- a/clients/client/python/test/test_keto_namespace.py +++ b/clients/client/python/test/test_keto_namespace.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_keto_namespaces.py b/clients/client/python/test/test_keto_namespaces.py index de860391a4c..daaff32bd16 100644 --- a/clients/client/python/test/test_keto_namespaces.py +++ b/clients/client/python/test/test_keto_namespaces.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_list_custom_domains.py b/clients/client/python/test/test_list_custom_domains.py index ac9e62f9be7..557365f3187 100644 --- a/clients/client/python/test/test_list_custom_domains.py +++ b/clients/client/python/test/test_list_custom_domains.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_list_event_streams.py b/clients/client/python/test/test_list_event_streams.py index 41bcc3ebb2b..143b30a02f5 100644 --- a/clients/client/python/test/test_list_event_streams.py +++ b/clients/client/python/test/test_list_event_streams.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_list_my_workspaces_response.py b/clients/client/python/test/test_list_my_workspaces_response.py index 8d1aabdca85..30586610756 100644 --- a/clients/client/python/test/test_list_my_workspaces_response.py +++ b/clients/client/python/test/test_list_my_workspaces_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,8 +13,8 @@ import unittest import ory_client -from ory_client.model.workspace import Workspace -globals()['Workspace'] = Workspace +from ory_client.model.workspace_meta import WorkspaceMeta +globals()['WorkspaceMeta'] = WorkspaceMeta from ory_client.model.list_my_workspaces_response import ListMyWorkspacesResponse diff --git a/clients/client/python/test/test_list_organizations_response.py b/clients/client/python/test/test_list_organizations_response.py index 2dd1e55e04f..fcbb98105e0 100644 --- a/clients/client/python/test/test_list_organizations_response.py +++ b/clients/client/python/test/test_list_organizations_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_list_workspace_projects_response.py b/clients/client/python/test/test_list_workspace_projects_response.py new file mode 100644 index 00000000000..761e763a922 --- /dev/null +++ b/clients/client/python/test/test_list_workspace_projects_response.py @@ -0,0 +1,38 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import ory_client +from ory_client.model.project_metadata import ProjectMetadata +globals()['ProjectMetadata'] = ProjectMetadata +from ory_client.model.list_workspace_projects_response import ListWorkspaceProjectsResponse + + +class TestListWorkspaceProjectsResponse(unittest.TestCase): + """ListWorkspaceProjectsResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testListWorkspaceProjectsResponse(self): + """Test ListWorkspaceProjectsResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = ListWorkspaceProjectsResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/client/python/test/test_login_flow.py b/clients/client/python/test/test_login_flow.py index d4ad27f3e73..f6f4aed75e2 100644 --- a/clients/client/python/test/test_login_flow.py +++ b/clients/client/python/test/test_login_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -14,11 +14,9 @@ import ory_client from ory_client.model.authenticator_assurance_level import AuthenticatorAssuranceLevel -from ory_client.model.identity_credentials_type import IdentityCredentialsType from ory_client.model.o_auth2_login_request import OAuth2LoginRequest from ory_client.model.ui_container import UiContainer globals()['AuthenticatorAssuranceLevel'] = AuthenticatorAssuranceLevel -globals()['IdentityCredentialsType'] = IdentityCredentialsType globals()['OAuth2LoginRequest'] = OAuth2LoginRequest globals()['UiContainer'] = UiContainer from ory_client.model.login_flow import LoginFlow diff --git a/clients/client/python/test/test_login_flow_state.py b/clients/client/python/test/test_login_flow_state.py index 3c53d6aea9d..2ed38ec2fee 100644 --- a/clients/client/python/test/test_login_flow_state.py +++ b/clients/client/python/test/test_login_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_logout_flow.py b/clients/client/python/test/test_logout_flow.py index aed3cb34960..5a275df8fc1 100644 --- a/clients/client/python/test/test_logout_flow.py +++ b/clients/client/python/test/test_logout_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_managed_identity_schema.py b/clients/client/python/test/test_managed_identity_schema.py index c1ca47fd34b..08ce3f24b6f 100644 --- a/clients/client/python/test/test_managed_identity_schema.py +++ b/clients/client/python/test/test_managed_identity_schema.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_managed_identity_schema_validation_result.py b/clients/client/python/test/test_managed_identity_schema_validation_result.py index 30983021518..473375e153c 100644 --- a/clients/client/python/test/test_managed_identity_schema_validation_result.py +++ b/clients/client/python/test/test_managed_identity_schema_validation_result.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_managed_identity_schemas.py b/clients/client/python/test/test_managed_identity_schemas.py index 20a7c760b83..a35567701cc 100644 --- a/clients/client/python/test/test_managed_identity_schemas.py +++ b/clients/client/python/test/test_managed_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_member_invite.py b/clients/client/python/test/test_member_invite.py index a47d8244b62..9da3f8ac163 100644 --- a/clients/client/python/test/test_member_invite.py +++ b/clients/client/python/test/test_member_invite.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_member_invites.py b/clients/client/python/test/test_member_invites.py index e1e649e2e3e..6310633db27 100644 --- a/clients/client/python/test/test_member_invites.py +++ b/clients/client/python/test/test_member_invites.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_message.py b/clients/client/python/test/test_message.py index 92efbfecd16..f7b12014ef8 100644 --- a/clients/client/python/test/test_message.py +++ b/clients/client/python/test/test_message.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_message_dispatch.py b/clients/client/python/test/test_message_dispatch.py index 8ed67f3146b..b71af90fd09 100644 --- a/clients/client/python/test/test_message_dispatch.py +++ b/clients/client/python/test/test_message_dispatch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_metadata_api.py b/clients/client/python/test/test_metadata_api.py index 19dcbbac9ab..5fd63c10189 100644 --- a/clients/client/python/test/test_metadata_api.py +++ b/clients/client/python/test/test_metadata_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_metrics_datapoint.py b/clients/client/python/test/test_metrics_datapoint.py index f5cd6d2ba6f..7f0f8290976 100644 --- a/clients/client/python/test/test_metrics_datapoint.py +++ b/clients/client/python/test/test_metrics_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_stripe_customer.py b/clients/client/python/test/test_migration_options.py similarity index 63% rename from clients/client/python/test/test_stripe_customer.py rename to clients/client/python/test/test_migration_options.py index 09cc6f3748e..48440555b32 100644 --- a/clients/client/python/test/test_stripe_customer.py +++ b/clients/client/python/test/test_migration_options.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,11 +13,11 @@ import unittest import ory_client -from ory_client.model.stripe_customer import StripeCustomer +from ory_client.model.migration_options import MigrationOptions -class TestStripeCustomer(unittest.TestCase): - """StripeCustomer unit test stubs""" +class TestMigrationOptions(unittest.TestCase): + """MigrationOptions unit test stubs""" def setUp(self): pass @@ -25,10 +25,10 @@ def setUp(self): def tearDown(self): pass - def testStripeCustomer(self): - """Test StripeCustomer""" + def testMigrationOptions(self): + """Test MigrationOptions""" # FIXME: construct object with mandatory attributes with example values - # model = StripeCustomer() # noqa: E501 + # model = MigrationOptions() # noqa: E501 pass diff --git a/clients/client/python/test/test_namespace.py b/clients/client/python/test/test_namespace.py index 99eea063025..7c9a8d5ddd3 100644 --- a/clients/client/python/test/test_namespace.py +++ b/clients/client/python/test/test_namespace.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_needs_privileged_session_error.py b/clients/client/python/test/test_needs_privileged_session_error.py index 316b8c345fb..c5cb09ab01f 100644 --- a/clients/client/python/test/test_needs_privileged_session_error.py +++ b/clients/client/python/test/test_needs_privileged_session_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project.py b/clients/client/python/test/test_normalized_project.py index c5da8d04f0c..e89b4dcb0ee 100644 --- a/clients/client/python/test/test_normalized_project.py +++ b/clients/client/python/test/test_normalized_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision.py b/clients/client/python/test/test_normalized_project_revision.py index 738c7a39aa6..a6cbe702d4c 100644 --- a/clients/client/python/test/test_normalized_project_revision.py +++ b/clients/client/python/test/test_normalized_project_revision.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_courier_channel.py b/clients/client/python/test/test_normalized_project_revision_courier_channel.py index f281d958972..9336898e974 100644 --- a/clients/client/python/test/test_normalized_project_revision_courier_channel.py +++ b/clients/client/python/test/test_normalized_project_revision_courier_channel.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_hook.py b/clients/client/python/test/test_normalized_project_revision_hook.py index 0b07d018fee..c3debba33e3 100644 --- a/clients/client/python/test/test_normalized_project_revision_hook.py +++ b/clients/client/python/test/test_normalized_project_revision_hook.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_identity_schema.py b/clients/client/python/test/test_normalized_project_revision_identity_schema.py index d61e4d7a6e2..84ba2144758 100644 --- a/clients/client/python/test/test_normalized_project_revision_identity_schema.py +++ b/clients/client/python/test/test_normalized_project_revision_identity_schema.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_identity_schemas.py b/clients/client/python/test/test_normalized_project_revision_identity_schemas.py index 043a10fdd71..ec1c2cfc9ee 100644 --- a/clients/client/python/test/test_normalized_project_revision_identity_schemas.py +++ b/clients/client/python/test/test_normalized_project_revision_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_third_party_provider.py b/clients/client/python/test/test_normalized_project_revision_third_party_provider.py index 7be7dcecb4a..bc832fffde6 100644 --- a/clients/client/python/test/test_normalized_project_revision_third_party_provider.py +++ b/clients/client/python/test/test_normalized_project_revision_third_party_provider.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_tokenizer_template.py b/clients/client/python/test/test_normalized_project_revision_tokenizer_template.py index fcdf69b4985..a44fb66427b 100644 --- a/clients/client/python/test/test_normalized_project_revision_tokenizer_template.py +++ b/clients/client/python/test/test_normalized_project_revision_tokenizer_template.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_project_revision_tokenizer_templates.py b/clients/client/python/test/test_normalized_project_revision_tokenizer_templates.py index 76ca29e656f..f2b419de316 100644 --- a/clients/client/python/test/test_normalized_project_revision_tokenizer_templates.py +++ b/clients/client/python/test/test_normalized_project_revision_tokenizer_templates.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_normalized_projects.py b/clients/client/python/test/test_normalized_projects.py index 526fd9c5bd1..23c8a8296e2 100644 --- a/clients/client/python/test/test_normalized_projects.py +++ b/clients/client/python/test/test_normalized_projects.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_null_duration.py b/clients/client/python/test/test_null_duration.py index d989e107990..0ba1064c600 100644 --- a/clients/client/python/test/test_null_duration.py +++ b/clients/client/python/test/test_null_duration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_api.py b/clients/client/python/test/test_o_auth2_api.py index fc363217a56..76a96e604d7 100644 --- a/clients/client/python/test/test_o_auth2_api.py +++ b/clients/client/python/test/test_o_auth2_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_client.py b/clients/client/python/test/test_o_auth2_client.py index f3a49b58fbf..afe72fee69c 100644 --- a/clients/client/python/test/test_o_auth2_client.py +++ b/clients/client/python/test/test_o_auth2_client.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_client_token_lifespans.py b/clients/client/python/test/test_o_auth2_client_token_lifespans.py index d7fdd261ca1..25353c7328f 100644 --- a/clients/client/python/test/test_o_auth2_client_token_lifespans.py +++ b/clients/client/python/test/test_o_auth2_client_token_lifespans.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_consent_request.py b/clients/client/python/test/test_o_auth2_consent_request.py index 1b012d739fc..c2a36e49c49 100644 --- a/clients/client/python/test/test_o_auth2_consent_request.py +++ b/clients/client/python/test/test_o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_consent_request_open_id_connect_context.py b/clients/client/python/test/test_o_auth2_consent_request_open_id_connect_context.py index 5153246e298..0ba4c99ee51 100644 --- a/clients/client/python/test/test_o_auth2_consent_request_open_id_connect_context.py +++ b/clients/client/python/test/test_o_auth2_consent_request_open_id_connect_context.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_consent_session.py b/clients/client/python/test/test_o_auth2_consent_session.py index f5936735515..1342aa52290 100644 --- a/clients/client/python/test/test_o_auth2_consent_session.py +++ b/clients/client/python/test/test_o_auth2_consent_session.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_consent_session_expires_at.py b/clients/client/python/test/test_o_auth2_consent_session_expires_at.py index 53289b24e3e..fb0134472f0 100644 --- a/clients/client/python/test/test_o_auth2_consent_session_expires_at.py +++ b/clients/client/python/test/test_o_auth2_consent_session_expires_at.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_consent_sessions.py b/clients/client/python/test/test_o_auth2_consent_sessions.py index 2de77c9d5ba..24e734f6197 100644 --- a/clients/client/python/test/test_o_auth2_consent_sessions.py +++ b/clients/client/python/test/test_o_auth2_consent_sessions.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_login_request.py b/clients/client/python/test/test_o_auth2_login_request.py index 1cca99cfbcd..271258b16c5 100644 --- a/clients/client/python/test/test_o_auth2_login_request.py +++ b/clients/client/python/test/test_o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_logout_request.py b/clients/client/python/test/test_o_auth2_logout_request.py index 13636c3a191..ee27cd17808 100644 --- a/clients/client/python/test/test_o_auth2_logout_request.py +++ b/clients/client/python/test/test_o_auth2_logout_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_redirect_to.py b/clients/client/python/test/test_o_auth2_redirect_to.py index 6fed1b44044..55112cecd32 100644 --- a/clients/client/python/test/test_o_auth2_redirect_to.py +++ b/clients/client/python/test/test_o_auth2_redirect_to.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_o_auth2_token_exchange.py b/clients/client/python/test/test_o_auth2_token_exchange.py index c87d5a100f9..eae7e8d22ed 100644 --- a/clients/client/python/test/test_o_auth2_token_exchange.py +++ b/clients/client/python/test/test_o_auth2_token_exchange.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_oidc_api.py b/clients/client/python/test/test_oidc_api.py index d3a3b9b8bc3..62e00719139 100644 --- a/clients/client/python/test/test_oidc_api.py +++ b/clients/client/python/test/test_oidc_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_oidc_configuration.py b/clients/client/python/test/test_oidc_configuration.py index f48da7bf5ef..f0fc8039fc5 100644 --- a/clients/client/python/test/test_oidc_configuration.py +++ b/clients/client/python/test/test_oidc_configuration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_oidc_user_info.py b/clients/client/python/test/test_oidc_user_info.py index 6ffaf5574ec..06cc43c61e9 100644 --- a/clients/client/python/test/test_oidc_user_info.py +++ b/clients/client/python/test/test_oidc_user_info.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_organization.py b/clients/client/python/test/test_organization.py index e6b0ec714d9..0f98158956a 100644 --- a/clients/client/python/test/test_organization.py +++ b/clients/client/python/test/test_organization.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_organization_body.py b/clients/client/python/test/test_organization_body.py index 8d51022c78a..f52606b31ea 100644 --- a/clients/client/python/test/test_organization_body.py +++ b/clients/client/python/test/test_organization_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_pagination.py b/clients/client/python/test/test_pagination.py index b40730973dd..323aac62f1f 100644 --- a/clients/client/python/test/test_pagination.py +++ b/clients/client/python/test/test_pagination.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_pagination_headers.py b/clients/client/python/test/test_pagination_headers.py index 465399d2560..c7e36318d6d 100644 --- a/clients/client/python/test/test_pagination_headers.py +++ b/clients/client/python/test/test_pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_parse_error.py b/clients/client/python/test/test_parse_error.py index 69bf6653eac..45d284b9f85 100644 --- a/clients/client/python/test/test_parse_error.py +++ b/clients/client/python/test/test_parse_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_patch_identities_body.py b/clients/client/python/test/test_patch_identities_body.py index 2d414279047..bcf0ef5a854 100644 --- a/clients/client/python/test/test_patch_identities_body.py +++ b/clients/client/python/test/test_patch_identities_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_perform_native_logout_body.py b/clients/client/python/test/test_perform_native_logout_body.py index 9ef98c14a24..fb66f7da4dd 100644 --- a/clients/client/python/test/test_perform_native_logout_body.py +++ b/clients/client/python/test/test_perform_native_logout_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_permission_api.py b/clients/client/python/test/test_permission_api.py index 1ed0e821b94..e9e792052e0 100644 --- a/clients/client/python/test/test_permission_api.py +++ b/clients/client/python/test/test_permission_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_permissions_on_project.py b/clients/client/python/test/test_permissions_on_project.py index 5effb444a11..e5aafd23b19 100644 --- a/clients/client/python/test/test_permissions_on_project.py +++ b/clients/client/python/test/test_permissions_on_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_permissions_on_workpace_response.py b/clients/client/python/test/test_permissions_on_workpace_response.py new file mode 100644 index 00000000000..34959ae9d9c --- /dev/null +++ b/clients/client/python/test/test_permissions_on_workpace_response.py @@ -0,0 +1,36 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import ory_client +from ory_client.model.permissions_on_workpace_response import PermissionsOnWorkpaceResponse + + +class TestPermissionsOnWorkpaceResponse(unittest.TestCase): + """PermissionsOnWorkpaceResponse unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPermissionsOnWorkpaceResponse(self): + """Test PermissionsOnWorkpaceResponse""" + # FIXME: construct object with mandatory attributes with example values + # model = PermissionsOnWorkpaceResponse() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/client/python/test/test_plan.py b/clients/client/python/test/test_plan.py index f4b21d77ade..fb91bb67abe 100644 --- a/clients/client/python/test/test_plan.py +++ b/clients/client/python/test/test_plan.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_plan_details.py b/clients/client/python/test/test_plan_details.py index 575247d372e..a404710e364 100644 --- a/clients/client/python/test/test_plan_details.py +++ b/clients/client/python/test/test_plan_details.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,8 +13,8 @@ import unittest import ory_client -from ory_client.model.generic_usage import GenericUsage -globals()['GenericUsage'] = GenericUsage +from ory_client.model.plan_features import PlanFeatures +globals()['PlanFeatures'] = PlanFeatures from ory_client.model.plan_details import PlanDetails diff --git a/clients/client/python/test/test_plan_features.py b/clients/client/python/test/test_plan_features.py new file mode 100644 index 00000000000..41a99e03ff0 --- /dev/null +++ b/clients/client/python/test/test_plan_features.py @@ -0,0 +1,38 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import ory_client +from ory_client.model.generic_usage import GenericUsage +globals()['GenericUsage'] = GenericUsage +from ory_client.model.plan_features import PlanFeatures + + +class TestPlanFeatures(unittest.TestCase): + """PlanFeatures unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPlanFeatures(self): + """Test PlanFeatures""" + # FIXME: construct object with mandatory attributes with example values + # model = PlanFeatures() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/client/python/test/test_plans.py b/clients/client/python/test/test_plans.py index c6055c1b166..8cd66d25c5f 100644 --- a/clients/client/python/test/test_plans.py +++ b/clients/client/python/test/test_plans.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_post_check_permission_body.py b/clients/client/python/test/test_post_check_permission_body.py index 0bc97de99b9..b2622442673 100644 --- a/clients/client/python/test/test_post_check_permission_body.py +++ b/clients/client/python/test/test_post_check_permission_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_post_check_permission_or_error_body.py b/clients/client/python/test/test_post_check_permission_or_error_body.py index 390402f86ee..b04fff4a9c4 100644 --- a/clients/client/python/test/test_post_check_permission_or_error_body.py +++ b/clients/client/python/test/test_post_check_permission_or_error_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_pricing.py b/clients/client/python/test/test_pricing.py index 8bb6b7f374b..11ecb969778 100644 --- a/clients/client/python/test/test_pricing.py +++ b/clients/client/python/test/test_pricing.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project.py b/clients/client/python/test/test_project.py index a2df3b0c14d..bb1ea5f95df 100644 --- a/clients/client/python/test/test_project.py +++ b/clients/client/python/test/test_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_api.py b/clients/client/python/test/test_project_api.py index 1de28371b38..241db9c8f74 100644 --- a/clients/client/python/test/test_project_api.py +++ b/clients/client/python/test/test_project_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_api_key.py b/clients/client/python/test/test_project_api_key.py index 42aec17e43c..fbc6c85ede3 100644 --- a/clients/client/python/test/test_project_api_key.py +++ b/clients/client/python/test/test_project_api_key.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_api_keys.py b/clients/client/python/test/test_project_api_keys.py index e1fc8a8b280..164498645d7 100644 --- a/clients/client/python/test/test_project_api_keys.py +++ b/clients/client/python/test/test_project_api_keys.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_branding.py b/clients/client/python/test/test_project_branding.py index 579bded9fb2..f781e371b63 100644 --- a/clients/client/python/test/test_project_branding.py +++ b/clients/client/python/test/test_project_branding.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_branding_colors.py b/clients/client/python/test/test_project_branding_colors.py index eb0c1e31302..020c6b99d2b 100644 --- a/clients/client/python/test/test_project_branding_colors.py +++ b/clients/client/python/test/test_project_branding_colors.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_branding_theme.py b/clients/client/python/test/test_project_branding_theme.py index de521469b3d..b355e4246a0 100644 --- a/clients/client/python/test/test_project_branding_theme.py +++ b/clients/client/python/test/test_project_branding_theme.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_branding_themes.py b/clients/client/python/test/test_project_branding_themes.py index 7b8d35451a8..5fc43eb2d7e 100644 --- a/clients/client/python/test/test_project_branding_themes.py +++ b/clients/client/python/test/test_project_branding_themes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_cors.py b/clients/client/python/test/test_project_cors.py index cbc595ca36b..32a84a88ba0 100644 --- a/clients/client/python/test/test_project_cors.py +++ b/clients/client/python/test/test_project_cors.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_events_datapoint.py b/clients/client/python/test/test_project_events_datapoint.py index 69dcb1ed0a7..f8d7c754cc3 100644 --- a/clients/client/python/test/test_project_events_datapoint.py +++ b/clients/client/python/test/test_project_events_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_host.py b/clients/client/python/test/test_project_host.py index 115322f98dd..6d9ee947a18 100644 --- a/clients/client/python/test/test_project_host.py +++ b/clients/client/python/test/test_project_host.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_member.py b/clients/client/python/test/test_project_member.py index 293f01b3240..419d2ee315c 100644 --- a/clients/client/python/test/test_project_member.py +++ b/clients/client/python/test/test_project_member.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_members.py b/clients/client/python/test/test_project_members.py index 35fc57e10cd..6cde5996b2b 100644 --- a/clients/client/python/test/test_project_members.py +++ b/clients/client/python/test/test_project_members.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,8 +13,8 @@ import unittest import ory_client -from ory_client.model.cloud_account import CloudAccount -globals()['CloudAccount'] = CloudAccount +from ory_client.model.project_member import ProjectMember +globals()['ProjectMember'] = ProjectMember from ory_client.model.project_members import ProjectMembers diff --git a/clients/client/python/test/test_project_metadata.py b/clients/client/python/test/test_project_metadata.py index 9e0fe100364..49e099fa621 100644 --- a/clients/client/python/test/test_project_metadata.py +++ b/clients/client/python/test/test_project_metadata.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_metadata_list.py b/clients/client/python/test/test_project_metadata_list.py index c14922951bf..d874baf4185 100644 --- a/clients/client/python/test/test_project_metadata_list.py +++ b/clients/client/python/test/test_project_metadata_list.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_revision_hooks.py b/clients/client/python/test/test_project_revision_hooks.py index 2c194c55d22..0fb02daf047 100644 --- a/clients/client/python/test/test_project_revision_hooks.py +++ b/clients/client/python/test/test_project_revision_hooks.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_revision_identity_schemas.py b/clients/client/python/test/test_project_revision_identity_schemas.py index e28299b9124..1dbd4fb47a2 100644 --- a/clients/client/python/test/test_project_revision_identity_schemas.py +++ b/clients/client/python/test/test_project_revision_identity_schemas.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_revision_third_party_login_providers.py b/clients/client/python/test/test_project_revision_third_party_login_providers.py index 67226c2f49a..41009d50cc0 100644 --- a/clients/client/python/test/test_project_revision_third_party_login_providers.py +++ b/clients/client/python/test/test_project_revision_third_party_login_providers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_revisions.py b/clients/client/python/test/test_project_revisions.py index 315fccd078d..cc376f207a7 100644 --- a/clients/client/python/test/test_project_revisions.py +++ b/clients/client/python/test/test_project_revisions.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_service_identity.py b/clients/client/python/test/test_project_service_identity.py index e1b74ced808..0ea3362f760 100644 --- a/clients/client/python/test/test_project_service_identity.py +++ b/clients/client/python/test/test_project_service_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_service_o_auth2.py b/clients/client/python/test/test_project_service_o_auth2.py index c83ad8b1afa..0306b6e87aa 100644 --- a/clients/client/python/test/test_project_service_o_auth2.py +++ b/clients/client/python/test/test_project_service_o_auth2.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_service_permission.py b/clients/client/python/test/test_project_service_permission.py index 274a23696ab..f6c462ffcf4 100644 --- a/clients/client/python/test/test_project_service_permission.py +++ b/clients/client/python/test/test_project_service_permission.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_project_services.py b/clients/client/python/test/test_project_services.py index 51891a13c26..a306d285bd1 100644 --- a/clients/client/python/test/test_project_services.py +++ b/clients/client/python/test/test_project_services.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_projects.py b/clients/client/python/test/test_projects.py index 14f7f8fbaa2..7993c84e568 100644 --- a/clients/client/python/test/test_projects.py +++ b/clients/client/python/test/test_projects.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_quota_usage.py b/clients/client/python/test/test_quota_usage.py index 53a461dc734..7ec6cc24b3b 100644 --- a/clients/client/python/test/test_quota_usage.py +++ b/clients/client/python/test/test_quota_usage.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_recovery_code_for_identity.py b/clients/client/python/test/test_recovery_code_for_identity.py index 5beac336a0b..dc2e37e60ba 100644 --- a/clients/client/python/test/test_recovery_code_for_identity.py +++ b/clients/client/python/test/test_recovery_code_for_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_recovery_flow.py b/clients/client/python/test/test_recovery_flow.py index c0de7f7b57f..8130583fa91 100644 --- a/clients/client/python/test/test_recovery_flow.py +++ b/clients/client/python/test/test_recovery_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_recovery_flow_state.py b/clients/client/python/test/test_recovery_flow_state.py index b1fab1f8f10..2d62d349c52 100644 --- a/clients/client/python/test/test_recovery_flow_state.py +++ b/clients/client/python/test/test_recovery_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_recovery_identity_address.py b/clients/client/python/test/test_recovery_identity_address.py index 96f193d87f1..1bb6f757e0a 100644 --- a/clients/client/python/test/test_recovery_identity_address.py +++ b/clients/client/python/test/test_recovery_identity_address.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_recovery_link_for_identity.py b/clients/client/python/test/test_recovery_link_for_identity.py index 189a284448c..b54538e1035 100644 --- a/clients/client/python/test/test_recovery_link_for_identity.py +++ b/clients/client/python/test/test_recovery_link_for_identity.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_registration_flow.py b/clients/client/python/test/test_registration_flow.py index d5eda806d6d..cf0a1538a7b 100644 --- a/clients/client/python/test/test_registration_flow.py +++ b/clients/client/python/test/test_registration_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,10 +13,8 @@ import unittest import ory_client -from ory_client.model.identity_credentials_type import IdentityCredentialsType from ory_client.model.o_auth2_login_request import OAuth2LoginRequest from ory_client.model.ui_container import UiContainer -globals()['IdentityCredentialsType'] = IdentityCredentialsType globals()['OAuth2LoginRequest'] = OAuth2LoginRequest globals()['UiContainer'] = UiContainer from ory_client.model.registration_flow import RegistrationFlow diff --git a/clients/client/python/test/test_registration_flow_state.py b/clients/client/python/test/test_registration_flow_state.py index 277e0af34f2..9b60fa1b4fd 100644 --- a/clients/client/python/test/test_registration_flow_state.py +++ b/clients/client/python/test/test_registration_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_reject_o_auth2_request.py b/clients/client/python/test/test_reject_o_auth2_request.py index ccde8b81ef9..728f131e907 100644 --- a/clients/client/python/test/test_reject_o_auth2_request.py +++ b/clients/client/python/test/test_reject_o_auth2_request.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_relation_query.py b/clients/client/python/test/test_relation_query.py index c8e853e30cc..225790efdac 100644 --- a/clients/client/python/test/test_relation_query.py +++ b/clients/client/python/test/test_relation_query.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_relationship.py b/clients/client/python/test/test_relationship.py index 11436b2c2c9..5f8cfb06098 100644 --- a/clients/client/python/test/test_relationship.py +++ b/clients/client/python/test/test_relationship.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_relationship_api.py b/clients/client/python/test/test_relationship_api.py index 71f0761249e..b28c26566b6 100644 --- a/clients/client/python/test/test_relationship_api.py +++ b/clients/client/python/test/test_relationship_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_relationship_namespaces.py b/clients/client/python/test/test_relationship_namespaces.py index 1854bf4785c..0f97171de07 100644 --- a/clients/client/python/test/test_relationship_namespaces.py +++ b/clients/client/python/test/test_relationship_namespaces.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_relationship_patch.py b/clients/client/python/test/test_relationship_patch.py index 635b86e5dda..d5d4df0f396 100644 --- a/clients/client/python/test/test_relationship_patch.py +++ b/clients/client/python/test/test_relationship_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_relationships.py b/clients/client/python/test/test_relationships.py index e930445998e..16379c73a3d 100644 --- a/clients/client/python/test/test_relationships.py +++ b/clients/client/python/test/test_relationships.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_revision_courier_channels.py b/clients/client/python/test/test_revision_courier_channels.py index e3c52dc64aa..a64d92e8551 100644 --- a/clients/client/python/test/test_revision_courier_channels.py +++ b/clients/client/python/test/test_revision_courier_channels.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_rfc6749_error_json.py b/clients/client/python/test/test_rfc6749_error_json.py index f505549033e..cbbb9178593 100644 --- a/clients/client/python/test/test_rfc6749_error_json.py +++ b/clients/client/python/test/test_rfc6749_error_json.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_schema_patch.py b/clients/client/python/test/test_schema_patch.py index af94a41b1fc..a036d52f7c7 100644 --- a/clients/client/python/test/test_schema_patch.py +++ b/clients/client/python/test/test_schema_patch.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_self_service_flow_expired_error.py b/clients/client/python/test/test_self_service_flow_expired_error.py index b9d1276f583..7d83648a8d6 100644 --- a/clients/client/python/test/test_self_service_flow_expired_error.py +++ b/clients/client/python/test/test_self_service_flow_expired_error.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_session.py b/clients/client/python/test/test_session.py index 2d0c1307c85..65b56cdf2bc 100644 --- a/clients/client/python/test/test_session.py +++ b/clients/client/python/test/test_session.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_session_activity_datapoint.py b/clients/client/python/test/test_session_activity_datapoint.py index 7ec6fa1ce46..f8726081e79 100644 --- a/clients/client/python/test/test_session_activity_datapoint.py +++ b/clients/client/python/test/test_session_activity_datapoint.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_session_authentication_method.py b/clients/client/python/test/test_session_authentication_method.py index 4016bb7069f..8e5bfcc697d 100644 --- a/clients/client/python/test/test_session_authentication_method.py +++ b/clients/client/python/test/test_session_authentication_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_session_authentication_methods.py b/clients/client/python/test/test_session_authentication_methods.py index 1965a42c8d7..e910b6d9085 100644 --- a/clients/client/python/test/test_session_authentication_methods.py +++ b/clients/client/python/test/test_session_authentication_methods.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_session_device.py b/clients/client/python/test/test_session_device.py index 924d64f3818..d5215e42653 100644 --- a/clients/client/python/test/test_session_device.py +++ b/clients/client/python/test/test_session_device.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_set_active_project_in_console_body.py b/clients/client/python/test/test_set_active_project_in_console_body.py index 0123ec913ab..3ca29d2bf22 100644 --- a/clients/client/python/test/test_set_active_project_in_console_body.py +++ b/clients/client/python/test/test_set_active_project_in_console_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_set_custom_domain_body.py b/clients/client/python/test/test_set_custom_domain_body.py index 10dc8000f6c..73238acd520 100644 --- a/clients/client/python/test/test_set_custom_domain_body.py +++ b/clients/client/python/test/test_set_custom_domain_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_set_event_stream_body.py b/clients/client/python/test/test_set_event_stream_body.py index 366b9e01a4a..0033d029c72 100644 --- a/clients/client/python/test/test_set_event_stream_body.py +++ b/clients/client/python/test/test_set_event_stream_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_set_project.py b/clients/client/python/test/test_set_project.py index f85b19d477c..fed328ab97c 100644 --- a/clients/client/python/test/test_set_project.py +++ b/clients/client/python/test/test_set_project.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_set_project_branding_theme_body.py b/clients/client/python/test/test_set_project_branding_theme_body.py index e31b801d21d..bb1d0ecebfe 100644 --- a/clients/client/python/test/test_set_project_branding_theme_body.py +++ b/clients/client/python/test/test_set_project_branding_theme_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_settings_flow.py b/clients/client/python/test/test_settings_flow.py index f2635e7e105..388f1eb9546 100644 --- a/clients/client/python/test/test_settings_flow.py +++ b/clients/client/python/test/test_settings_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_settings_flow_state.py b/clients/client/python/test/test_settings_flow_state.py index 0fd20cbaa57..8241deead92 100644 --- a/clients/client/python/test/test_settings_flow_state.py +++ b/clients/client/python/test/test_settings_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_source_position.py b/clients/client/python/test/test_source_position.py index 1304281bd0b..9d18f0e05d8 100644 --- a/clients/client/python/test/test_source_position.py +++ b/clients/client/python/test/test_source_position.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_string_slice_json_format.py b/clients/client/python/test/test_string_slice_json_format.py index 91854351eaf..dc2dc70e941 100644 --- a/clients/client/python/test/test_string_slice_json_format.py +++ b/clients/client/python/test/test_string_slice_json_format.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_subject_set.py b/clients/client/python/test/test_subject_set.py index ab41071f3b7..b4a5206afb7 100644 --- a/clients/client/python/test/test_subject_set.py +++ b/clients/client/python/test/test_subject_set.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_subscription.py b/clients/client/python/test/test_subscription.py index af68600a29d..2e093ddd3cc 100644 --- a/clients/client/python/test/test_subscription.py +++ b/clients/client/python/test/test_subscription.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,6 +13,8 @@ import unittest import ory_client +from ory_client.model.plan_details import PlanDetails +globals()['PlanDetails'] = PlanDetails from ory_client.model.subscription import Subscription diff --git a/clients/client/python/test/test_successful_code_exchange_response.py b/clients/client/python/test/test_successful_code_exchange_response.py index 7a597866725..19f85fa6d91 100644 --- a/clients/client/python/test/test_successful_code_exchange_response.py +++ b/clients/client/python/test/test_successful_code_exchange_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_successful_native_login.py b/clients/client/python/test/test_successful_native_login.py index e44a0fc293a..c0d774a7ea5 100644 --- a/clients/client/python/test/test_successful_native_login.py +++ b/clients/client/python/test/test_successful_native_login.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_successful_native_registration.py b/clients/client/python/test/test_successful_native_registration.py index f4ba54b9cd8..c64adbc0bd7 100644 --- a/clients/client/python/test/test_successful_native_registration.py +++ b/clients/client/python/test/test_successful_native_registration.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_successful_project_update.py b/clients/client/python/test/test_successful_project_update.py index 91545ed31f6..c734fc01221 100644 --- a/clients/client/python/test/test_successful_project_update.py +++ b/clients/client/python/test/test_successful_project_update.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_token_pagination.py b/clients/client/python/test/test_token_pagination.py index 002f85467ef..1192629fe97 100644 --- a/clients/client/python/test/test_token_pagination.py +++ b/clients/client/python/test/test_token_pagination.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_token_pagination_headers.py b/clients/client/python/test/test_token_pagination_headers.py index 43b51e511bd..6f472ff667a 100644 --- a/clients/client/python/test/test_token_pagination_headers.py +++ b/clients/client/python/test/test_token_pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_token_pagination_request_parameters.py b/clients/client/python/test/test_token_pagination_request_parameters.py index 81473262821..09d25d2cfe1 100644 --- a/clients/client/python/test/test_token_pagination_request_parameters.py +++ b/clients/client/python/test/test_token_pagination_request_parameters.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_token_pagination_response_headers.py b/clients/client/python/test/test_token_pagination_response_headers.py index 748729919bb..3ba9dd378d5 100644 --- a/clients/client/python/test/test_token_pagination_response_headers.py +++ b/clients/client/python/test/test_token_pagination_response_headers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_trust_o_auth2_jwt_grant_issuer.py b/clients/client/python/test/test_trust_o_auth2_jwt_grant_issuer.py index 3d98fd7cf3f..035d38dd823 100644 --- a/clients/client/python/test/test_trust_o_auth2_jwt_grant_issuer.py +++ b/clients/client/python/test/test_trust_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuer.py b/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuer.py index 980ffd54687..c0083a1cc0d 100644 --- a/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuer.py +++ b/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuers.py b/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuers.py index a48ca37170a..d196212c9a6 100644 --- a/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuers.py +++ b/clients/client/python/test/test_trusted_o_auth2_jwt_grant_issuers.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py b/clients/client/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py index 903639fd2e6..506cf4a5078 100644 --- a/clients/client/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py +++ b/clients/client/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_container.py b/clients/client/python/test/test_ui_container.py index 4ee75a5f82e..9eb55cd6e66 100644 --- a/clients/client/python/test/test_ui_container.py +++ b/clients/client/python/test/test_ui_container.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node.py b/clients/client/python/test/test_ui_node.py index 93ade0092f9..5aebd184c1f 100644 --- a/clients/client/python/test/test_ui_node.py +++ b/clients/client/python/test/test_ui_node.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_anchor_attributes.py b/clients/client/python/test/test_ui_node_anchor_attributes.py index 094d3331016..8b36a6f16f3 100644 --- a/clients/client/python/test/test_ui_node_anchor_attributes.py +++ b/clients/client/python/test/test_ui_node_anchor_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_attributes.py b/clients/client/python/test/test_ui_node_attributes.py index 0f49a19e060..7d7427264d1 100644 --- a/clients/client/python/test/test_ui_node_attributes.py +++ b/clients/client/python/test/test_ui_node_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_image_attributes.py b/clients/client/python/test/test_ui_node_image_attributes.py index 1a02e85d571..72aef21d081 100644 --- a/clients/client/python/test/test_ui_node_image_attributes.py +++ b/clients/client/python/test/test_ui_node_image_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_input_attributes.py b/clients/client/python/test/test_ui_node_input_attributes.py index 253e23c9e4b..0c1d0c57e08 100644 --- a/clients/client/python/test/test_ui_node_input_attributes.py +++ b/clients/client/python/test/test_ui_node_input_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_meta.py b/clients/client/python/test/test_ui_node_meta.py index ca2fddccae2..9e8f6451ed4 100644 --- a/clients/client/python/test/test_ui_node_meta.py +++ b/clients/client/python/test/test_ui_node_meta.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_script_attributes.py b/clients/client/python/test/test_ui_node_script_attributes.py index 653d74febcf..02fca4f5bc7 100644 --- a/clients/client/python/test/test_ui_node_script_attributes.py +++ b/clients/client/python/test/test_ui_node_script_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_node_text_attributes.py b/clients/client/python/test/test_ui_node_text_attributes.py index 9b20b035571..854446f1e03 100644 --- a/clients/client/python/test/test_ui_node_text_attributes.py +++ b/clients/client/python/test/test_ui_node_text_attributes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_nodes.py b/clients/client/python/test/test_ui_nodes.py index f43ef14777e..c20e20add59 100644 --- a/clients/client/python/test/test_ui_nodes.py +++ b/clients/client/python/test/test_ui_nodes.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_text.py b/clients/client/python/test/test_ui_text.py index 3bd3d52607d..a332d6a5bd9 100644 --- a/clients/client/python/test/test_ui_text.py +++ b/clients/client/python/test/test_ui_text.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_ui_texts.py b/clients/client/python/test/test_ui_texts.py index da37bbcdf88..be7085cf8d0 100644 --- a/clients/client/python/test/test_ui_texts.py +++ b/clients/client/python/test/test_ui_texts.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_identity_body.py b/clients/client/python/test/test_update_identity_body.py index 202e3889757..7b05f9e1c3d 100644 --- a/clients/client/python/test/test_update_identity_body.py +++ b/clients/client/python/test/test_update_identity_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,9 +13,7 @@ import unittest import ory_client -from ory_client.model.identity_state import IdentityState from ory_client.model.identity_with_credentials import IdentityWithCredentials -globals()['IdentityState'] = IdentityState globals()['IdentityWithCredentials'] = IdentityWithCredentials from ory_client.model.update_identity_body import UpdateIdentityBody diff --git a/clients/client/python/test/test_update_login_flow_body.py b/clients/client/python/test/test_update_login_flow_body.py index a9a6ce93027..5ce800a2cfb 100644 --- a/clients/client/python/test/test_update_login_flow_body.py +++ b/clients/client/python/test/test_update_login_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_login_flow_with_code_method.py b/clients/client/python/test/test_update_login_flow_with_code_method.py index 975803051c0..ebc7a9e348c 100644 --- a/clients/client/python/test/test_update_login_flow_with_code_method.py +++ b/clients/client/python/test/test_update_login_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_login_flow_with_lookup_secret_method.py b/clients/client/python/test/test_update_login_flow_with_lookup_secret_method.py index 68dd23f81ac..b172b005216 100644 --- a/clients/client/python/test/test_update_login_flow_with_lookup_secret_method.py +++ b/clients/client/python/test/test_update_login_flow_with_lookup_secret_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_login_flow_with_oidc_method.py b/clients/client/python/test/test_update_login_flow_with_oidc_method.py index d29147fb674..b2c7bdae816 100644 --- a/clients/client/python/test/test_update_login_flow_with_oidc_method.py +++ b/clients/client/python/test/test_update_login_flow_with_oidc_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_login_flow_with_password_method.py b/clients/client/python/test/test_update_login_flow_with_password_method.py index dd0683c5908..8980238da34 100644 --- a/clients/client/python/test/test_update_login_flow_with_password_method.py +++ b/clients/client/python/test/test_update_login_flow_with_password_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_login_flow_with_totp_method.py b/clients/client/python/test/test_update_login_flow_with_totp_method.py index 57099860eac..6829d74af16 100644 --- a/clients/client/python/test/test_update_login_flow_with_totp_method.py +++ b/clients/client/python/test/test_update_login_flow_with_totp_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_login_flow_with_web_authn_method.py b/clients/client/python/test/test_update_login_flow_with_web_authn_method.py index b6a881baaba..c7268441921 100644 --- a/clients/client/python/test/test_update_login_flow_with_web_authn_method.py +++ b/clients/client/python/test/test_update_login_flow_with_web_authn_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_recovery_flow_body.py b/clients/client/python/test/test_update_recovery_flow_body.py index b87add69ffe..865b9401699 100644 --- a/clients/client/python/test/test_update_recovery_flow_body.py +++ b/clients/client/python/test/test_update_recovery_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_recovery_flow_with_code_method.py b/clients/client/python/test/test_update_recovery_flow_with_code_method.py index bd613829758..af42f89a57b 100644 --- a/clients/client/python/test/test_update_recovery_flow_with_code_method.py +++ b/clients/client/python/test/test_update_recovery_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_recovery_flow_with_link_method.py b/clients/client/python/test/test_update_recovery_flow_with_link_method.py index b253d50d7ba..44182e1bfed 100644 --- a/clients/client/python/test/test_update_recovery_flow_with_link_method.py +++ b/clients/client/python/test/test_update_recovery_flow_with_link_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_registration_flow_body.py b/clients/client/python/test/test_update_registration_flow_body.py index a00cbe536e4..128eda39c40 100644 --- a/clients/client/python/test/test_update_registration_flow_body.py +++ b/clients/client/python/test/test_update_registration_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_registration_flow_with_code_method.py b/clients/client/python/test/test_update_registration_flow_with_code_method.py index 223491778cf..da96a5197d6 100644 --- a/clients/client/python/test/test_update_registration_flow_with_code_method.py +++ b/clients/client/python/test/test_update_registration_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_registration_flow_with_oidc_method.py b/clients/client/python/test/test_update_registration_flow_with_oidc_method.py index 4dfca861383..6737dd8fbb7 100644 --- a/clients/client/python/test/test_update_registration_flow_with_oidc_method.py +++ b/clients/client/python/test/test_update_registration_flow_with_oidc_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_registration_flow_with_password_method.py b/clients/client/python/test/test_update_registration_flow_with_password_method.py index a6434753421..b18b53067b0 100644 --- a/clients/client/python/test/test_update_registration_flow_with_password_method.py +++ b/clients/client/python/test/test_update_registration_flow_with_password_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_registration_flow_with_web_authn_method.py b/clients/client/python/test/test_update_registration_flow_with_web_authn_method.py index 90ee11d2df1..9ee2d65d47d 100644 --- a/clients/client/python/test/test_update_registration_flow_with_web_authn_method.py +++ b/clients/client/python/test/test_update_registration_flow_with_web_authn_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_body.py b/clients/client/python/test/test_update_settings_flow_body.py index d96cd7c1a2b..ffbb1eb1f5f 100644 --- a/clients/client/python/test/test_update_settings_flow_body.py +++ b/clients/client/python/test/test_update_settings_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_with_lookup_method.py b/clients/client/python/test/test_update_settings_flow_with_lookup_method.py index 4041ed0f7fa..a39b7c0b6e8 100644 --- a/clients/client/python/test/test_update_settings_flow_with_lookup_method.py +++ b/clients/client/python/test/test_update_settings_flow_with_lookup_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_with_oidc_method.py b/clients/client/python/test/test_update_settings_flow_with_oidc_method.py index 8e125ecfe97..7d751d995ff 100644 --- a/clients/client/python/test/test_update_settings_flow_with_oidc_method.py +++ b/clients/client/python/test/test_update_settings_flow_with_oidc_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_with_password_method.py b/clients/client/python/test/test_update_settings_flow_with_password_method.py index 3812f46798d..26f52eba90c 100644 --- a/clients/client/python/test/test_update_settings_flow_with_password_method.py +++ b/clients/client/python/test/test_update_settings_flow_with_password_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_with_profile_method.py b/clients/client/python/test/test_update_settings_flow_with_profile_method.py index 3d8910878e9..9f8e52ee2a8 100644 --- a/clients/client/python/test/test_update_settings_flow_with_profile_method.py +++ b/clients/client/python/test/test_update_settings_flow_with_profile_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_with_totp_method.py b/clients/client/python/test/test_update_settings_flow_with_totp_method.py index 20b5325b3df..62b9d94f6df 100644 --- a/clients/client/python/test/test_update_settings_flow_with_totp_method.py +++ b/clients/client/python/test/test_update_settings_flow_with_totp_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_settings_flow_with_web_authn_method.py b/clients/client/python/test/test_update_settings_flow_with_web_authn_method.py index caee9c68c20..7fee1836340 100644 --- a/clients/client/python/test/test_update_settings_flow_with_web_authn_method.py +++ b/clients/client/python/test/test_update_settings_flow_with_web_authn_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_subscription_body.py b/clients/client/python/test/test_update_subscription_body.py index be776d844ac..a1292b64089 100644 --- a/clients/client/python/test/test_update_subscription_body.py +++ b/clients/client/python/test/test_update_subscription_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_verification_flow_body.py b/clients/client/python/test/test_update_verification_flow_body.py index c128f7cf9d2..8266184bb62 100644 --- a/clients/client/python/test/test_update_verification_flow_body.py +++ b/clients/client/python/test/test_update_verification_flow_body.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_verification_flow_with_code_method.py b/clients/client/python/test/test_update_verification_flow_with_code_method.py index 1df8ed3564e..12b7bb9174d 100644 --- a/clients/client/python/test/test_update_verification_flow_with_code_method.py +++ b/clients/client/python/test/test_update_verification_flow_with_code_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_verification_flow_with_link_method.py b/clients/client/python/test/test_update_verification_flow_with_link_method.py index 678b5f9eed7..dad8ee3c8d6 100644 --- a/clients/client/python/test/test_update_verification_flow_with_link_method.py +++ b/clients/client/python/test/test_update_verification_flow_with_link_method.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_update_workspace_payload.py b/clients/client/python/test/test_update_workspace_payload.py new file mode 100644 index 00000000000..fa4e5eaae38 --- /dev/null +++ b/clients/client/python/test/test_update_workspace_payload.py @@ -0,0 +1,36 @@ +""" + Ory APIs + + Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 + + The version of the OpenAPI document: v1.8.1 + Contact: support@ory.sh + Generated by: https://openapi-generator.tech +""" + + +import sys +import unittest + +import ory_client +from ory_client.model.update_workspace_payload import UpdateWorkspacePayload + + +class TestUpdateWorkspacePayload(unittest.TestCase): + """UpdateWorkspacePayload unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testUpdateWorkspacePayload(self): + """Test UpdateWorkspacePayload""" + # FIXME: construct object with mandatory attributes with example values + # model = UpdateWorkspacePayload() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/clients/client/python/test/test_usage.py b/clients/client/python/test/test_usage.py index f0b06c0de52..ae42e4cddc3 100644 --- a/clients/client/python/test/test_usage.py +++ b/clients/client/python/test/test_usage.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_verifiable_credential_priming_response.py b/clients/client/python/test/test_verifiable_credential_priming_response.py index d66fa55dc85..a9346b58436 100644 --- a/clients/client/python/test/test_verifiable_credential_priming_response.py +++ b/clients/client/python/test/test_verifiable_credential_priming_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_verifiable_credential_proof.py b/clients/client/python/test/test_verifiable_credential_proof.py index a7369971de6..cd637bfde39 100644 --- a/clients/client/python/test/test_verifiable_credential_proof.py +++ b/clients/client/python/test/test_verifiable_credential_proof.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_verifiable_credential_response.py b/clients/client/python/test/test_verifiable_credential_response.py index 0a0e76cf85c..bd9e95d05fa 100644 --- a/clients/client/python/test/test_verifiable_credential_response.py +++ b/clients/client/python/test/test_verifiable_credential_response.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_verifiable_identity_address.py b/clients/client/python/test/test_verifiable_identity_address.py index af35da21dc9..46bf68b7934 100644 --- a/clients/client/python/test/test_verifiable_identity_address.py +++ b/clients/client/python/test/test_verifiable_identity_address.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_verification_flow.py b/clients/client/python/test/test_verification_flow.py index 3c94bdadfa6..75fd7272af0 100644 --- a/clients/client/python/test/test_verification_flow.py +++ b/clients/client/python/test/test_verification_flow.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_verification_flow_state.py b/clients/client/python/test/test_verification_flow_state.py index 338444a62f0..5abd0850f3f 100644 --- a/clients/client/python/test/test_verification_flow_state.py +++ b/clients/client/python/test/test_verification_flow_state.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_version.py b/clients/client/python/test/test_version.py index f3ccf8b80fd..d661296c30f 100644 --- a/clients/client/python/test/test_version.py +++ b/clients/client/python/test/test_version.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_warning.py b/clients/client/python/test/test_warning.py index bd0d439fcf6..2df4fe5bcdf 100644 --- a/clients/client/python/test/test_warning.py +++ b/clients/client/python/test/test_warning.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_wellknown_api.py b/clients/client/python/test/test_wellknown_api.py index 8676154b77a..ee348a2ac25 100644 --- a/clients/client/python/test/test_wellknown_api.py +++ b/clients/client/python/test/test_wellknown_api.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_workspace.py b/clients/client/python/test/test_workspace.py index c651bd6c48e..20bb711f6d6 100644 --- a/clients/client/python/test/test_workspace.py +++ b/clients/client/python/test/test_workspace.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/python/test/test_identity_state.py b/clients/client/python/test/test_workspace_meta.py similarity index 64% rename from clients/client/python/test/test_identity_state.py rename to clients/client/python/test/test_workspace_meta.py index cddfe872f82..4fde5ddb378 100644 --- a/clients/client/python/test/test_identity_state.py +++ b/clients/client/python/test/test_workspace_meta.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ @@ -13,11 +13,11 @@ import unittest import ory_client -from ory_client.model.identity_state import IdentityState +from ory_client.model.workspace_meta import WorkspaceMeta -class TestIdentityState(unittest.TestCase): - """IdentityState unit test stubs""" +class TestWorkspaceMeta(unittest.TestCase): + """WorkspaceMeta unit test stubs""" def setUp(self): pass @@ -25,10 +25,10 @@ def setUp(self): def tearDown(self): pass - def testIdentityState(self): - """Test IdentityState""" + def testWorkspaceMeta(self): + """Test WorkspaceMeta""" # FIXME: construct object with mandatory attributes with example values - # model = IdentityState() # noqa: E501 + # model = WorkspaceMeta() # noqa: E501 pass diff --git a/clients/client/python/test/test_workspaces.py b/clients/client/python/test/test_workspaces.py index 81c145b8ed0..513aef6aa93 100644 --- a/clients/client/python/test/test_workspaces.py +++ b/clients/client/python/test/test_workspaces.py @@ -3,7 +3,7 @@ Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. # noqa: E501 - The version of the OpenAPI document: v1.5.1 + The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/client/ruby/.gitlab-ci.yml b/clients/client/ruby/.gitlab-ci.yml index 3d57c5b30c0..3a253c45c05 100644 --- a/clients/client/ruby/.gitlab-ci.yml +++ b/clients/client/ruby/.gitlab-ci.yml @@ -7,7 +7,7 @@ - bundle install -j $(nproc) parallel: matrix: - - RUBY_VERSION: ['2.3', '2.4', '2.5', '2.6', '2.7', '3.0'] + - RUBY_VERSION: ['2.7', '3.0', '3.1'] image: "ruby:$RUBY_VERSION" cache: paths: diff --git a/clients/client/ruby/.openapi-generator/FILES b/clients/client/ruby/.openapi-generator/FILES index a2678ed729b..6868e6614ff 100644 --- a/clients/client/ruby/.openapi-generator/FILES +++ b/clients/client/ruby/.openapi-generator/FILES @@ -45,8 +45,11 @@ docs/CreateRecoveryCodeForIdentityBody.md docs/CreateRecoveryLinkForIdentityBody.md docs/CreateRelationshipBody.md docs/CreateSubscriptionBody.md +docs/CreateSubscriptionCommon.md docs/CreateVerifiableCredentialRequestBody.md docs/CreateWorkspaceMemberInviteBody.md +docs/CreateWorkspacePayload.md +docs/CreateWorkspaceSubscriptionBody.md docs/CredentialSupportedDraft00.md docs/CustomDomain.md docs/DeleteMySessionsCount.md @@ -84,12 +87,10 @@ 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/IdentitySchemaPreset.md -docs/IdentityState.md docs/IdentityWithCredentials.md docs/IdentityWithCredentialsOidc.md docs/IdentityWithCredentialsOidcConfig.md @@ -100,7 +101,6 @@ docs/InternalGetProjectBrandingBody.md docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md docs/InternalIsOwnerForProjectBySlugBody.md docs/InternalIsOwnerForProjectBySlugResponse.md -docs/InternalProvisionMockSubscription.md docs/IntrospectedOAuth2Token.md docs/IsOwnerForProjectBySlug.md docs/IsReady200Response.md @@ -113,6 +113,7 @@ docs/KetoNamespace.md docs/ListEventStreams.md docs/ListMyWorkspacesResponse.md docs/ListOrganizationsResponse.md +docs/ListWorkspaceProjectsResponse.md docs/LoginFlow.md docs/LoginFlowState.md docs/LogoutFlow.md @@ -123,6 +124,7 @@ docs/Message.md docs/MessageDispatch.md docs/MetadataApi.md docs/MetricsDatapoint.md +docs/MigrationOptions.md docs/Namespace.md docs/NeedsPrivilegedSessionError.md docs/NormalizedProject.md @@ -154,6 +156,7 @@ docs/ParseError.md docs/PatchIdentitiesBody.md docs/PerformNativeLogoutBody.md docs/PermissionApi.md +docs/PermissionsOnWorkpaceResponse.md docs/Plan.md docs/PlanDetails.md docs/PostCheckPermissionBody.md @@ -167,6 +170,7 @@ docs/ProjectBrandingTheme.md docs/ProjectCors.md docs/ProjectEventsDatapoint.md docs/ProjectHost.md +docs/ProjectMember.md docs/ProjectMetadata.md docs/ProjectServiceIdentity.md docs/ProjectServiceOAuth2.md @@ -202,7 +206,6 @@ docs/SetProjectBrandingThemeBody.md docs/SettingsFlow.md docs/SettingsFlowState.md docs/SourcePosition.md -docs/StripeCustomer.md docs/SubjectSet.md docs/Subscription.md docs/SuccessfulCodeExchangeResponse.md @@ -253,6 +256,7 @@ docs/UpdateSubscriptionBody.md docs/UpdateVerificationFlowBody.md docs/UpdateVerificationFlowWithCodeMethod.md docs/UpdateVerificationFlowWithLinkMethod.md +docs/UpdateWorkspacePayload.md docs/Usage.md docs/VerifiableCredentialPrimingResponse.md docs/VerifiableCredentialProof.md @@ -264,6 +268,7 @@ docs/Version.md docs/Warning.md docs/WellknownApi.md docs/Workspace.md +docs/WorkspaceMeta.md git_push.sh lib/ory-client.rb lib/ory-client/api/courier_api.rb @@ -318,8 +323,11 @@ lib/ory-client/models/create_recovery_code_for_identity_body.rb lib/ory-client/models/create_recovery_link_for_identity_body.rb lib/ory-client/models/create_relationship_body.rb lib/ory-client/models/create_subscription_body.rb +lib/ory-client/models/create_subscription_common.rb lib/ory-client/models/create_verifiable_credential_request_body.rb lib/ory-client/models/create_workspace_member_invite_body.rb +lib/ory-client/models/create_workspace_payload.rb +lib/ory-client/models/create_workspace_subscription_body.rb lib/ory-client/models/credential_supported_draft00.rb lib/ory-client/models/custom_domain.rb lib/ory-client/models/delete_my_sessions_count.rb @@ -354,12 +362,10 @@ lib/ory-client/models/identity_credentials_code.rb lib/ory-client/models/identity_credentials_oidc.rb lib/ory-client/models/identity_credentials_oidc_provider.rb lib/ory-client/models/identity_credentials_password.rb -lib/ory-client/models/identity_credentials_type.rb lib/ory-client/models/identity_patch.rb lib/ory-client/models/identity_patch_response.rb lib/ory-client/models/identity_schema_container.rb lib/ory-client/models/identity_schema_preset.rb -lib/ory-client/models/identity_state.rb lib/ory-client/models/identity_with_credentials.rb lib/ory-client/models/identity_with_credentials_oidc.rb lib/ory-client/models/identity_with_credentials_oidc_config.rb @@ -370,7 +376,6 @@ lib/ory-client/models/internal_get_project_branding_body.rb lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb -lib/ory-client/models/internal_provision_mock_subscription.rb lib/ory-client/models/introspected_o_auth2_token.rb lib/ory-client/models/is_owner_for_project_by_slug.rb lib/ory-client/models/is_ready200_response.rb @@ -382,6 +387,7 @@ lib/ory-client/models/keto_namespace.rb lib/ory-client/models/list_event_streams.rb lib/ory-client/models/list_my_workspaces_response.rb lib/ory-client/models/list_organizations_response.rb +lib/ory-client/models/list_workspace_projects_response.rb lib/ory-client/models/login_flow.rb lib/ory-client/models/login_flow_state.rb lib/ory-client/models/logout_flow.rb @@ -391,6 +397,7 @@ lib/ory-client/models/member_invite.rb lib/ory-client/models/message.rb lib/ory-client/models/message_dispatch.rb lib/ory-client/models/metrics_datapoint.rb +lib/ory-client/models/migration_options.rb lib/ory-client/models/namespace.rb lib/ory-client/models/needs_privileged_session_error.rb lib/ory-client/models/normalized_project.rb @@ -419,6 +426,7 @@ lib/ory-client/models/pagination_headers.rb lib/ory-client/models/parse_error.rb lib/ory-client/models/patch_identities_body.rb lib/ory-client/models/perform_native_logout_body.rb +lib/ory-client/models/permissions_on_workpace_response.rb lib/ory-client/models/plan.rb lib/ory-client/models/plan_details.rb lib/ory-client/models/post_check_permission_body.rb @@ -431,6 +439,7 @@ lib/ory-client/models/project_branding_theme.rb lib/ory-client/models/project_cors.rb lib/ory-client/models/project_events_datapoint.rb lib/ory-client/models/project_host.rb +lib/ory-client/models/project_member.rb lib/ory-client/models/project_metadata.rb lib/ory-client/models/project_service_identity.rb lib/ory-client/models/project_service_o_auth2.rb @@ -465,7 +474,6 @@ lib/ory-client/models/set_project_branding_theme_body.rb lib/ory-client/models/settings_flow.rb lib/ory-client/models/settings_flow_state.rb lib/ory-client/models/source_position.rb -lib/ory-client/models/stripe_customer.rb lib/ory-client/models/subject_set.rb lib/ory-client/models/subscription.rb lib/ory-client/models/successful_code_exchange_response.rb @@ -516,6 +524,7 @@ lib/ory-client/models/update_subscription_body.rb lib/ory-client/models/update_verification_flow_body.rb lib/ory-client/models/update_verification_flow_with_code_method.rb lib/ory-client/models/update_verification_flow_with_link_method.rb +lib/ory-client/models/update_workspace_payload.rb lib/ory-client/models/usage.rb lib/ory-client/models/verifiable_credential_priming_response.rb lib/ory-client/models/verifiable_credential_proof.rb @@ -526,6 +535,7 @@ lib/ory-client/models/verification_flow_state.rb lib/ory-client/models/version.rb lib/ory-client/models/warning.rb lib/ory-client/models/workspace.rb +lib/ory-client/models/workspace_meta.rb lib/ory-client/version.rb ory-client.gemspec spec/api/courier_api_spec.rb @@ -540,8 +550,6 @@ spec/api/permission_api_spec.rb spec/api/project_api_spec.rb spec/api/relationship_api_spec.rb spec/api/wellknown_api_spec.rb -spec/api_client_spec.rb -spec/configuration_spec.rb spec/models/accept_o_auth2_consent_request_session_spec.rb spec/models/accept_o_auth2_consent_request_spec.rb spec/models/accept_o_auth2_login_request_spec.rb @@ -579,8 +587,11 @@ spec/models/create_recovery_code_for_identity_body_spec.rb spec/models/create_recovery_link_for_identity_body_spec.rb spec/models/create_relationship_body_spec.rb spec/models/create_subscription_body_spec.rb +spec/models/create_subscription_common_spec.rb spec/models/create_verifiable_credential_request_body_spec.rb spec/models/create_workspace_member_invite_body_spec.rb +spec/models/create_workspace_payload_spec.rb +spec/models/create_workspace_subscription_body_spec.rb spec/models/credential_supported_draft00_spec.rb spec/models/custom_domain_spec.rb spec/models/delete_my_sessions_count_spec.rb @@ -614,13 +625,11 @@ spec/models/identity_credentials_oidc_provider_spec.rb spec/models/identity_credentials_oidc_spec.rb spec/models/identity_credentials_password_spec.rb spec/models/identity_credentials_spec.rb -spec/models/identity_credentials_type_spec.rb spec/models/identity_patch_response_spec.rb spec/models/identity_patch_spec.rb spec/models/identity_schema_container_spec.rb spec/models/identity_schema_preset_spec.rb spec/models/identity_spec.rb -spec/models/identity_state_spec.rb spec/models/identity_with_credentials_oidc_config_provider_spec.rb spec/models/identity_with_credentials_oidc_config_spec.rb spec/models/identity_with_credentials_oidc_spec.rb @@ -631,7 +640,6 @@ spec/models/internal_get_project_branding_body_spec.rb spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb spec/models/internal_is_owner_for_project_by_slug_body_spec.rb spec/models/internal_is_owner_for_project_by_slug_response_spec.rb -spec/models/internal_provision_mock_subscription_spec.rb spec/models/introspected_o_auth2_token_spec.rb spec/models/is_owner_for_project_by_slug_spec.rb spec/models/is_ready200_response_spec.rb @@ -643,6 +651,7 @@ spec/models/keto_namespace_spec.rb spec/models/list_event_streams_spec.rb spec/models/list_my_workspaces_response_spec.rb spec/models/list_organizations_response_spec.rb +spec/models/list_workspace_projects_response_spec.rb spec/models/login_flow_spec.rb spec/models/login_flow_state_spec.rb spec/models/logout_flow_spec.rb @@ -652,6 +661,7 @@ spec/models/member_invite_spec.rb spec/models/message_dispatch_spec.rb spec/models/message_spec.rb spec/models/metrics_datapoint_spec.rb +spec/models/migration_options_spec.rb spec/models/namespace_spec.rb spec/models/needs_privileged_session_error_spec.rb spec/models/normalized_project_revision_courier_channel_spec.rb @@ -680,6 +690,7 @@ spec/models/pagination_spec.rb spec/models/parse_error_spec.rb spec/models/patch_identities_body_spec.rb spec/models/perform_native_logout_body_spec.rb +spec/models/permissions_on_workpace_response_spec.rb spec/models/plan_details_spec.rb spec/models/plan_spec.rb spec/models/post_check_permission_body_spec.rb @@ -691,6 +702,7 @@ spec/models/project_branding_theme_spec.rb spec/models/project_cors_spec.rb spec/models/project_events_datapoint_spec.rb spec/models/project_host_spec.rb +spec/models/project_member_spec.rb spec/models/project_metadata_spec.rb spec/models/project_service_identity_spec.rb spec/models/project_service_o_auth2_spec.rb @@ -726,7 +738,6 @@ spec/models/set_project_spec.rb spec/models/settings_flow_spec.rb spec/models/settings_flow_state_spec.rb spec/models/source_position_spec.rb -spec/models/stripe_customer_spec.rb spec/models/subject_set_spec.rb spec/models/subscription_spec.rb spec/models/successful_code_exchange_response_spec.rb @@ -777,6 +788,7 @@ spec/models/update_subscription_body_spec.rb spec/models/update_verification_flow_body_spec.rb spec/models/update_verification_flow_with_code_method_spec.rb spec/models/update_verification_flow_with_link_method_spec.rb +spec/models/update_workspace_payload_spec.rb spec/models/usage_spec.rb spec/models/verifiable_credential_priming_response_spec.rb spec/models/verifiable_credential_proof_spec.rb @@ -786,5 +798,6 @@ spec/models/verification_flow_spec.rb spec/models/verification_flow_state_spec.rb spec/models/version_spec.rb spec/models/warning_spec.rb +spec/models/workspace_meta_spec.rb spec/models/workspace_spec.rb spec/spec_helper.rb diff --git a/clients/client/ruby/.openapi-generator/VERSION b/clients/client/ruby/.openapi-generator/VERSION index 6d54bbd7751..8b23b8d47ce 100644 --- a/clients/client/ruby/.openapi-generator/VERSION +++ b/clients/client/ruby/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.1 \ No newline at end of file +7.3.0 \ No newline at end of file diff --git a/clients/client/ruby/Gemfile.lock b/clients/client/ruby/Gemfile.lock index 2864435b313..242f6db0b9b 100644 --- a/clients/client/ruby/Gemfile.lock +++ b/clients/client/ruby/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ory-client (1.5.1) + ory-client (1.8.1) typhoeus (~> 1.0, >= 1.0.1) GEM @@ -10,40 +10,40 @@ GEM ast (2.4.2) byebug (11.1.3) coderay (1.1.3) - diff-lcs (1.5.0) + diff-lcs (1.5.1) ethon (0.16.0) ffi (>= 1.15.0) ffi (1.16.3) jaro_winkler (1.5.6) method_source (1.0.0) parallel (1.24.0) - parser (3.3.0.2) + parser (3.3.0.5) ast (~> 2.4.1) racc - pry (0.13.1) + pry (0.14.2) coderay (~> 1.1) method_source (~> 1.0) - pry-byebug (3.9.0) + pry-byebug (3.10.1) byebug (~> 11.0) - pry (~> 0.13.0) + pry (>= 0.13, < 0.15) psych (4.0.6) stringio racc (1.7.3) rainbow (3.1.1) rake (13.0.6) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.1) rubocop (0.66.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) @@ -53,7 +53,7 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 1.6) ruby-progressbar (1.13.0) - stringio (3.0.6) + stringio (3.1.0) typhoeus (1.4.1) ethon (>= 0.9.0) unicode-display_width (1.5.0) diff --git a/clients/client/ruby/README.md b/clients/client/ruby/README.md index 4d550d73430..3bc2c4112cf 100644 --- a/clients/client/ruby/README.md +++ b/clients/client/ruby/README.md @@ -8,8 +8,8 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.5.1 -- Package version: v1.5.1 +- API version: v1.8.1 +- Package version: v1.8.1 - Build package: org.openapitools.codegen.languages.RubyClientCodegen ## Installation @@ -25,16 +25,16 @@ gem build ory-client.gemspec Then either install the gem locally: ```shell -gem install ./ory-client-v1.5.1.gem +gem install ./ory-client-v1.8.1.gem ``` -(for development, run `gem install --dev ./ory-client-v1.5.1.gem` to install the development dependencies) +(for development, run `gem install --dev ./ory-client-v1.8.1.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'ory-client', '~> v1.5.1' + gem 'ory-client', '~> v1.8.1' ### Install from Git @@ -62,6 +62,8 @@ require 'ory-client' OryClient.configure do |config| # Configure Bearer authorization: oryAccessToken config.access_token = 'YOUR_BEARER_TOKEN' + # Configure a proc to get access tokens in lieu of the static access_token configuration + config.access_token_getter = -> { 'YOUR TOKEN GETTER PROC' } end api_instance = OryClient::CourierApi.new @@ -255,8 +257,11 @@ Class | Method | HTTP request | Description - [OryClient::CreateRecoveryLinkForIdentityBody](docs/CreateRecoveryLinkForIdentityBody.md) - [OryClient::CreateRelationshipBody](docs/CreateRelationshipBody.md) - [OryClient::CreateSubscriptionBody](docs/CreateSubscriptionBody.md) + - [OryClient::CreateSubscriptionCommon](docs/CreateSubscriptionCommon.md) - [OryClient::CreateVerifiableCredentialRequestBody](docs/CreateVerifiableCredentialRequestBody.md) - [OryClient::CreateWorkspaceMemberInviteBody](docs/CreateWorkspaceMemberInviteBody.md) + - [OryClient::CreateWorkspacePayload](docs/CreateWorkspacePayload.md) + - [OryClient::CreateWorkspaceSubscriptionBody](docs/CreateWorkspaceSubscriptionBody.md) - [OryClient::CredentialSupportedDraft00](docs/CredentialSupportedDraft00.md) - [OryClient::CustomDomain](docs/CustomDomain.md) - [OryClient::DeleteMySessionsCount](docs/DeleteMySessionsCount.md) @@ -291,12 +296,10 @@ Class | Method | HTTP request | Description - [OryClient::IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md) - [OryClient::IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md) - [OryClient::IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md) - - [OryClient::IdentityCredentialsType](docs/IdentityCredentialsType.md) - [OryClient::IdentityPatch](docs/IdentityPatch.md) - [OryClient::IdentityPatchResponse](docs/IdentityPatchResponse.md) - [OryClient::IdentitySchemaContainer](docs/IdentitySchemaContainer.md) - [OryClient::IdentitySchemaPreset](docs/IdentitySchemaPreset.md) - - [OryClient::IdentityState](docs/IdentityState.md) - [OryClient::IdentityWithCredentials](docs/IdentityWithCredentials.md) - [OryClient::IdentityWithCredentialsOidc](docs/IdentityWithCredentialsOidc.md) - [OryClient::IdentityWithCredentialsOidcConfig](docs/IdentityWithCredentialsOidcConfig.md) @@ -307,7 +310,6 @@ Class | Method | HTTP request | Description - [OryClient::InternalIsAXWelcomeScreenEnabledForProjectBody](docs/InternalIsAXWelcomeScreenEnabledForProjectBody.md) - [OryClient::InternalIsOwnerForProjectBySlugBody](docs/InternalIsOwnerForProjectBySlugBody.md) - [OryClient::InternalIsOwnerForProjectBySlugResponse](docs/InternalIsOwnerForProjectBySlugResponse.md) - - [OryClient::InternalProvisionMockSubscription](docs/InternalProvisionMockSubscription.md) - [OryClient::IntrospectedOAuth2Token](docs/IntrospectedOAuth2Token.md) - [OryClient::IsOwnerForProjectBySlug](docs/IsOwnerForProjectBySlug.md) - [OryClient::IsReady200Response](docs/IsReady200Response.md) @@ -319,6 +321,7 @@ Class | Method | HTTP request | Description - [OryClient::ListEventStreams](docs/ListEventStreams.md) - [OryClient::ListMyWorkspacesResponse](docs/ListMyWorkspacesResponse.md) - [OryClient::ListOrganizationsResponse](docs/ListOrganizationsResponse.md) + - [OryClient::ListWorkspaceProjectsResponse](docs/ListWorkspaceProjectsResponse.md) - [OryClient::LoginFlow](docs/LoginFlow.md) - [OryClient::LoginFlowState](docs/LoginFlowState.md) - [OryClient::LogoutFlow](docs/LogoutFlow.md) @@ -328,6 +331,7 @@ Class | Method | HTTP request | Description - [OryClient::Message](docs/Message.md) - [OryClient::MessageDispatch](docs/MessageDispatch.md) - [OryClient::MetricsDatapoint](docs/MetricsDatapoint.md) + - [OryClient::MigrationOptions](docs/MigrationOptions.md) - [OryClient::Namespace](docs/Namespace.md) - [OryClient::NeedsPrivilegedSessionError](docs/NeedsPrivilegedSessionError.md) - [OryClient::NormalizedProject](docs/NormalizedProject.md) @@ -356,6 +360,7 @@ Class | Method | HTTP request | Description - [OryClient::ParseError](docs/ParseError.md) - [OryClient::PatchIdentitiesBody](docs/PatchIdentitiesBody.md) - [OryClient::PerformNativeLogoutBody](docs/PerformNativeLogoutBody.md) + - [OryClient::PermissionsOnWorkpaceResponse](docs/PermissionsOnWorkpaceResponse.md) - [OryClient::Plan](docs/Plan.md) - [OryClient::PlanDetails](docs/PlanDetails.md) - [OryClient::PostCheckPermissionBody](docs/PostCheckPermissionBody.md) @@ -368,6 +373,7 @@ Class | Method | HTTP request | Description - [OryClient::ProjectCors](docs/ProjectCors.md) - [OryClient::ProjectEventsDatapoint](docs/ProjectEventsDatapoint.md) - [OryClient::ProjectHost](docs/ProjectHost.md) + - [OryClient::ProjectMember](docs/ProjectMember.md) - [OryClient::ProjectMetadata](docs/ProjectMetadata.md) - [OryClient::ProjectServiceIdentity](docs/ProjectServiceIdentity.md) - [OryClient::ProjectServiceOAuth2](docs/ProjectServiceOAuth2.md) @@ -402,7 +408,6 @@ Class | Method | HTTP request | Description - [OryClient::SettingsFlow](docs/SettingsFlow.md) - [OryClient::SettingsFlowState](docs/SettingsFlowState.md) - [OryClient::SourcePosition](docs/SourcePosition.md) - - [OryClient::StripeCustomer](docs/StripeCustomer.md) - [OryClient::SubjectSet](docs/SubjectSet.md) - [OryClient::Subscription](docs/Subscription.md) - [OryClient::SuccessfulCodeExchangeResponse](docs/SuccessfulCodeExchangeResponse.md) @@ -453,6 +458,7 @@ Class | Method | HTTP request | Description - [OryClient::UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md) - [OryClient::UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md) - [OryClient::UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md) + - [OryClient::UpdateWorkspacePayload](docs/UpdateWorkspacePayload.md) - [OryClient::Usage](docs/Usage.md) - [OryClient::VerifiableCredentialPrimingResponse](docs/VerifiableCredentialPrimingResponse.md) - [OryClient::VerifiableCredentialProof](docs/VerifiableCredentialProof.md) @@ -463,11 +469,13 @@ Class | Method | HTTP request | Description - [OryClient::Version](docs/Version.md) - [OryClient::Warning](docs/Warning.md) - [OryClient::Workspace](docs/Workspace.md) + - [OryClient::WorkspaceMeta](docs/WorkspaceMeta.md) ## Documentation for Authorization +Authentication schemes defined for the API: ### basic - **Type**: HTTP basic authentication diff --git a/clients/client/ruby/docs/AcceptOAuth2ConsentRequest.md b/clients/client/ruby/docs/AcceptOAuth2ConsentRequest.md index 2266e9d4d12..e6e17d4bdfc 100644 --- a/clients/client/ruby/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/client/ruby/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **context** | **Object** | | [optional] | | **grant_access_token_audience** | **Array<String>** | | [optional] | | **grant_scope** | **Array<String>** | | [optional] | | **handled_at** | **Time** | | [optional] | @@ -17,6 +18,7 @@ require 'ory-client' instance = OryClient::AcceptOAuth2ConsentRequest.new( + context: null, grant_access_token_audience: null, grant_scope: null, handled_at: null, diff --git a/clients/client/ruby/docs/CloudAccount.md b/clients/client/ruby/docs/CloudAccount.md index 8bb23208211..2ea2cd4bb4e 100644 --- a/clients/client/ruby/docs/CloudAccount.md +++ b/clients/client/ruby/docs/CloudAccount.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **email** | **String** | | [optional] | -| **id** | **String** | | [optional] | -| **name** | **String** | | [optional] | +| **email** | **String** | | | +| **id** | **String** | | | +| **name** | **String** | | | ## Example diff --git a/clients/client/ruby/docs/ContinueWith.md b/clients/client/ruby/docs/ContinueWith.md index 9c6784254d0..478f6985a34 100644 --- a/clients/client/ruby/docs/ContinueWith.md +++ b/clients/client/ruby/docs/ContinueWith.md @@ -51,6 +51,7 @@ OryClient::ContinueWith.openapi_discriminator_mapping # :'show_settings_ui' => :'ContinueWithSettingsUi', # :'show_verification_ui' => :'ContinueWithVerificationUi' # } +``` ### build diff --git a/clients/client/ruby/docs/CreateIdentityBody.md b/clients/client/ruby/docs/CreateIdentityBody.md index 0ff40e7e806..b1fb05fac35 100644 --- a/clients/client/ruby/docs/CreateIdentityBody.md +++ b/clients/client/ruby/docs/CreateIdentityBody.md @@ -9,7 +9,7 @@ | **metadata_public** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] | | **recovery_addresses** | [**Array<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] | | **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | | -| **state** | [**IdentityState**](IdentityState.md) | | [optional] | +| **state** | **String** | State is the identity's state. active StateActive inactive StateInactive | [optional] | | **traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | | | **verifiable_addresses** | [**Array<VerifiableIdentityAddress>**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] | diff --git a/clients/client/ruby/docs/CreateProjectBody.md b/clients/client/ruby/docs/CreateProjectBody.md index 397fdeb4f27..6522288ee9a 100644 --- a/clients/client/ruby/docs/CreateProjectBody.md +++ b/clients/client/ruby/docs/CreateProjectBody.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **environment** | **String** | The environment of the project. prod Production dev Development | | | **name** | **String** | The name of the project to be created | | | **workspace_id** | **String** | | [optional] | @@ -13,6 +14,7 @@ require 'ory-client' instance = OryClient::CreateProjectBody.new( + environment: null, name: null, workspace_id: null ) diff --git a/clients/client/ruby/docs/CreateProjectNormalizedPayload.md b/clients/client/ruby/docs/CreateProjectNormalizedPayload.md index 96c499f00a6..3262c380124 100644 --- a/clients/client/ruby/docs/CreateProjectNormalizedPayload.md +++ b/clients/client/ruby/docs/CreateProjectNormalizedPayload.md @@ -6,12 +6,15 @@ | ---- | ---- | ----------- | ----- | | **created_at** | **Time** | The Project's Revision Creation Date | [optional][readonly] | | **disable_account_experience_welcome_screen** | **Boolean** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] | +| **enable_ax_v2** | **Boolean** | Whether the new account experience is enabled and reachable. | [optional] | +| **environment** | **String** | prod Production dev Development | | | **hydra_oauth2_allowed_top_level_claims** | **Array<String>** | | [optional] | | **hydra_oauth2_client_credentials_default_grant_allowed_scope** | **Boolean** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] | | **hydra_oauth2_exclude_not_before_claim** | **Boolean** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] | | **hydra_oauth2_grant_jwt_iat_optional** | **Boolean** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] | | **hydra_oauth2_grant_jwt_jti_optional** | **Boolean** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] | | **hydra_oauth2_grant_jwt_max_ttl** | **String** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional][default to '720h'] | +| **hydra_oauth2_mirror_top_level_claims** | **Boolean** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] | | **hydra_oauth2_pkce_enforced** | **Boolean** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] | | **hydra_oauth2_pkce_enforced_for_public_clients** | **Boolean** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] | | **hydra_oauth2_refresh_token_hook** | **String** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] | @@ -70,6 +73,7 @@ | **kratos_courier_templates_login_code_valid_email_body_html** | **String** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] | | **kratos_courier_templates_login_code_valid_email_body_plaintext** | **String** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] | | **kratos_courier_templates_login_code_valid_email_subject** | **String** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] | +| **kratos_courier_templates_login_code_valid_sms_body_plaintext** | **String** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] | | **kratos_courier_templates_recovery_code_invalid_email_body_html** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | | **kratos_courier_templates_recovery_code_invalid_email_body_plaintext** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] | | **kratos_courier_templates_recovery_code_invalid_email_subject** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | @@ -155,6 +159,7 @@ | **kratos_selfservice_flows_verification_use** | **String** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] | | **kratos_selfservice_methods_code_config_lifespan** | **String** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] | | **kratos_selfservice_methods_code_enabled** | **Boolean** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] | +| **kratos_selfservice_methods_code_mfa_enabled** | **Boolean** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] | | **kratos_selfservice_methods_code_passwordless_enabled** | **Boolean** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] | | **kratos_selfservice_methods_link_config_base_url** | **String** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] | | **kratos_selfservice_methods_link_config_lifespan** | **String** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] | @@ -202,12 +207,15 @@ require 'ory-client' instance = OryClient::CreateProjectNormalizedPayload.new( created_at: null, disable_account_experience_welcome_screen: null, + enable_ax_v2: null, + environment: null, hydra_oauth2_allowed_top_level_claims: null, hydra_oauth2_client_credentials_default_grant_allowed_scope: null, hydra_oauth2_exclude_not_before_claim: null, hydra_oauth2_grant_jwt_iat_optional: null, hydra_oauth2_grant_jwt_jti_optional: null, hydra_oauth2_grant_jwt_max_ttl: 30m, + hydra_oauth2_mirror_top_level_claims: null, hydra_oauth2_pkce_enforced: null, hydra_oauth2_pkce_enforced_for_public_clients: null, hydra_oauth2_refresh_token_hook: null, @@ -266,6 +274,7 @@ instance = OryClient::CreateProjectNormalizedPayload.new( kratos_courier_templates_login_code_valid_email_body_html: null, kratos_courier_templates_login_code_valid_email_body_plaintext: null, kratos_courier_templates_login_code_valid_email_subject: null, + kratos_courier_templates_login_code_valid_sms_body_plaintext: null, kratos_courier_templates_recovery_code_invalid_email_body_html: null, kratos_courier_templates_recovery_code_invalid_email_body_plaintext: null, kratos_courier_templates_recovery_code_invalid_email_subject: null, @@ -351,6 +360,7 @@ instance = OryClient::CreateProjectNormalizedPayload.new( kratos_selfservice_flows_verification_use: null, kratos_selfservice_methods_code_config_lifespan: null, kratos_selfservice_methods_code_enabled: null, + kratos_selfservice_methods_code_mfa_enabled: null, kratos_selfservice_methods_code_passwordless_enabled: null, kratos_selfservice_methods_link_config_base_url: null, kratos_selfservice_methods_link_config_lifespan: null, diff --git a/clients/client/ruby/docs/CreateSubscriptionBody.md b/clients/client/ruby/docs/CreateSubscriptionBody.md index 1c578f61a2f..6144cdb130c 100644 --- a/clients/client/ruby/docs/CreateSubscriptionBody.md +++ b/clients/client/ruby/docs/CreateSubscriptionBody.md @@ -7,9 +7,8 @@ | **currency** | **String** | usd USD eur Euro | [optional] | | **interval** | **String** | monthly Monthly yearly Yearly | | | **plan** | **String** | | | -| **provision_first_project** | **String** | | [optional] | +| **provision_first_project** | **String** | | | | **return_to** | **String** | | [optional] | -| **workspace** | **String** | | [optional] | ## Example @@ -21,8 +20,7 @@ instance = OryClient::CreateSubscriptionBody.new( interval: null, plan: null, provision_first_project: null, - return_to: null, - workspace: null + return_to: null ) ``` diff --git a/clients/client/ruby/docs/CreateSubscriptionCommon.md b/clients/client/ruby/docs/CreateSubscriptionCommon.md new file mode 100644 index 00000000000..66462772ae2 --- /dev/null +++ b/clients/client/ruby/docs/CreateSubscriptionCommon.md @@ -0,0 +1,24 @@ +# OryClient::CreateSubscriptionCommon + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **currency** | **String** | usd USD eur Euro | [optional] | +| **interval** | **String** | monthly Monthly yearly Yearly | | +| **plan** | **String** | | | +| **return_to** | **String** | | [optional] | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::CreateSubscriptionCommon.new( + currency: null, + interval: null, + plan: null, + return_to: null +) +``` + diff --git a/clients/client/ruby/docs/CreateWorkspacePayload.md b/clients/client/ruby/docs/CreateWorkspacePayload.md new file mode 100644 index 00000000000..24caf52f383 --- /dev/null +++ b/clients/client/ruby/docs/CreateWorkspacePayload.md @@ -0,0 +1,18 @@ +# OryClient::CreateWorkspacePayload + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | The name of the workspace | | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::CreateWorkspacePayload.new( + name: null +) +``` + diff --git a/clients/client/ruby/docs/CreateWorkspaceSubscriptionBody.md b/clients/client/ruby/docs/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..11b4507d3a5 --- /dev/null +++ b/clients/client/ruby/docs/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,24 @@ +# OryClient::CreateWorkspaceSubscriptionBody + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **currency** | **String** | usd USD eur Euro | [optional] | +| **interval** | **String** | monthly Monthly yearly Yearly | | +| **plan** | **String** | | | +| **return_to** | **String** | | [optional] | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::CreateWorkspaceSubscriptionBody.new( + currency: null, + interval: null, + plan: null, + return_to: null +) +``` + diff --git a/clients/client/ruby/docs/FrontendApi.md b/clients/client/ruby/docs/FrontendApi.md index c790fb37f61..e61a9f5b4f3 100644 --- a/clients/client/ruby/docs/FrontendApi.md +++ b/clients/client/ruby/docs/FrontendApi.md @@ -57,7 +57,8 @@ opts = { return_to: 'return_to_example', # String | The URL to return the browser to after the flow was completed. cookie: 'cookie_example', # String | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. login_challenge: 'login_challenge_example', # String | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). - organization: 'organization_example' # String | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + organization: 'organization_example', # String | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + via: 'via_example' # String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. } begin @@ -97,6 +98,7 @@ end | **cookie** | **String** | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] | | **login_challenge** | **String** | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] | | **organization** | **String** | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] | +| **via** | **String** | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] | ### Return type @@ -472,7 +474,8 @@ opts = { aal: 'aal_example', # String | Request a Specific AuthenticationMethod Assurance Level Use this parameter to upgrade an existing session's authenticator assurance level (AAL). This allows you to ask for multi-factor authentication. When an identity sign in using e.g. username+password, the AAL is 1. If you wish to \"upgrade\" the session's security by asking the user to perform TOTP / WebAuth/ ... you would set this to \"aal2\". x_session_token: 'x_session_token_example', # String | The Session Token of the Identity performing the settings flow. return_session_token_exchange_code: true, # Boolean | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. - return_to: 'return_to_example' # String | The URL to return the browser to after the flow was completed. + return_to: 'return_to_example', # String | The URL to return the browser to after the flow was completed. + via: 'via_example' # String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. } begin @@ -511,6 +514,7 @@ end | **x_session_token** | **String** | The Session Token of the Identity performing the settings flow. | [optional] | | **return_session_token_exchange_code** | **Boolean** | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] | | **return_to** | **String** | The URL to return the browser to after the flow was completed. | [optional] | +| **via** | **String** | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] | ### Return type diff --git a/clients/client/ruby/docs/Identity.md b/clients/client/ruby/docs/Identity.md index cfdad0b280a..2b683587ce2 100644 --- a/clients/client/ruby/docs/Identity.md +++ b/clients/client/ruby/docs/Identity.md @@ -13,7 +13,7 @@ | **recovery_addresses** | [**Array<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] | | **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | | | **schema_url** | **String** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | | -| **state** | [**IdentityState**](IdentityState.md) | | [optional] | +| **state** | **String** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] | | **state_changed_at** | **Time** | | [optional] | | **traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | | | **updated_at** | **Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] | diff --git a/clients/client/ruby/docs/IdentityApi.md b/clients/client/ruby/docs/IdentityApi.md index f5a5a40bb7f..215383a4e1f 100644 --- a/clients/client/ruby/docs/IdentityApi.md +++ b/clients/client/ruby/docs/IdentityApi.md @@ -258,6 +258,7 @@ end api_instance = OryClient::IdentityApi.new opts = { + return_to: 'return_to_example', # String | create_recovery_link_for_identity_body: OryClient::CreateRecoveryLinkForIdentityBody.new({identity_id: 'identity_id_example'}) # CreateRecoveryLinkForIdentityBody | } @@ -292,6 +293,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **return_to** | **String** | | [optional] | | **create_recovery_link_for_identity_body** | [**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md) | | [optional] | ### Return type @@ -397,7 +399,7 @@ end api_instance = OryClient::IdentityApi.new id = 'id_example' # String | ID is the identity's ID. -type = 'totp' # String | Type is the credential's Type. One of totp, webauthn, lookup +type = 'password' # String | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 begin # Delete a credential for a specific identity @@ -430,7 +432,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **id** | **String** | ID is the identity's ID. | | -| **type** | **String** | Type is the credential's Type. One of totp, webauthn, lookup | | +| **type** | **String** | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -887,9 +889,10 @@ opts = { page_size: 789, # Integer | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). page_token: 'page_token_example', # String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). consistency: 'consistency_example', # String | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - ids_filter: ['inner_example'], # Array | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + ids: ['inner_example'], # Array | List of ids used to filter identities. If this list is empty, then no filter will be applied. credentials_identifier: 'credentials_identifier_example', # String | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. - preview_credentials_identifier_similar: 'preview_credentials_identifier_similar_example' # String | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + preview_credentials_identifier_similar: 'preview_credentials_identifier_similar_example', # String | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + include_credential: ['inner_example'] # Array | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. } begin @@ -928,9 +931,10 @@ end | **page_size** | **Integer** | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional][default to 250] | | **page_token** | **String** | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional][default to '1'] | | **consistency** | **String** | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] | -| **ids_filter** | [**Array<String>**](String.md) | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] | +| **ids** | [**Array<String>**](String.md) | List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] | | **credentials_identifier** | **String** | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] | | **preview_credentials_identifier_similar** | **String** | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] | +| **include_credential** | [**Array<String>**](String.md) | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | [optional] | ### Return type @@ -1271,7 +1275,7 @@ end api_instance = OryClient::IdentityApi.new id = 'id_example' # String | ID must be set to the ID of identity you want to update opts = { - update_identity_body: OryClient::UpdateIdentityBody.new({schema_id: 'schema_id_example', state: OryClient::IdentityState::ACTIVE, traits: 3.56}) # UpdateIdentityBody | + update_identity_body: OryClient::UpdateIdentityBody.new({schema_id: 'schema_id_example', state: 'active', traits: 3.56}) # UpdateIdentityBody | } begin diff --git a/clients/client/ruby/docs/IdentityCredentials.md b/clients/client/ruby/docs/IdentityCredentials.md index 419f3a92f9d..45f10246f64 100644 --- a/clients/client/ruby/docs/IdentityCredentials.md +++ b/clients/client/ruby/docs/IdentityCredentials.md @@ -7,7 +7,7 @@ | **config** | **Object** | | [optional] | | **created_at** | **Time** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] | | **identifiers** | **Array<String>** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] | -| **type** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] | +| **type** | **String** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] | | **updated_at** | **Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] | | **version** | **Integer** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] | diff --git a/clients/client/ruby/docs/IdentityCredentialsCode.md b/clients/client/ruby/docs/IdentityCredentialsCode.md index d10f93c97b7..65339e53198 100644 --- a/clients/client/ruby/docs/IdentityCredentialsCode.md +++ b/clients/client/ruby/docs/IdentityCredentialsCode.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **address_type** | **String** | | [optional] | +| **address_type** | **String** | The type of the address for this code | [optional] | | **used_at** | **Time** | | [optional] | ## Example diff --git a/clients/client/ruby/docs/IdentityCredentialsType.md b/clients/client/ruby/docs/IdentityCredentialsType.md deleted file mode 100644 index 873ace428f6..00000000000 --- a/clients/client/ruby/docs/IdentityCredentialsType.md +++ /dev/null @@ -1,15 +0,0 @@ -# OryClient::IdentityCredentialsType - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | - -## Example - -```ruby -require 'ory-client' - -instance = OryClient::IdentityCredentialsType.new() -``` - diff --git a/clients/client/ruby/docs/IdentityState.md b/clients/client/ruby/docs/IdentityState.md deleted file mode 100644 index 751b1522a0e..00000000000 --- a/clients/client/ruby/docs/IdentityState.md +++ /dev/null @@ -1,15 +0,0 @@ -# OryClient::IdentityState - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | - -## Example - -```ruby -require 'ory-client' - -instance = OryClient::IdentityState.new() -``` - diff --git a/clients/client/ruby/docs/InternalProvisionMockSubscription.md b/clients/client/ruby/docs/InternalProvisionMockSubscription.md deleted file mode 100644 index 375690fa126..00000000000 --- a/clients/client/ruby/docs/InternalProvisionMockSubscription.md +++ /dev/null @@ -1,24 +0,0 @@ -# OryClient::InternalProvisionMockSubscription - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **currency** | **String** | Currency usd USD eur Euro | | -| **identity_id** | **String** | Identity ID | | -| **interval** | **String** | Billing Interval monthly Monthly yearly Yearly | | -| **plan** | **String** | Plan ID | | - -## Example - -```ruby -require 'ory-client' - -instance = OryClient::InternalProvisionMockSubscription.new( - currency: null, - identity_id: null, - interval: null, - plan: null -) -``` - diff --git a/clients/client/ruby/docs/ListMyWorkspacesResponse.md b/clients/client/ruby/docs/ListMyWorkspacesResponse.md index ae6a287d7cb..8f407e2a95f 100644 --- a/clients/client/ruby/docs/ListMyWorkspacesResponse.md +++ b/clients/client/ruby/docs/ListMyWorkspacesResponse.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **has_next_page** | **Boolean** | | | | **next_page_token** | **String** | | | -| **workspaces** | [**Array<Workspace>**](Workspace.md) | | | +| **workspaces** | [**Array<WorkspaceMeta>**](WorkspaceMeta.md) | | | ## Example diff --git a/clients/client/ruby/docs/ListWorkspaceProjectsResponse.md b/clients/client/ruby/docs/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..0a1f7082d5f --- /dev/null +++ b/clients/client/ruby/docs/ListWorkspaceProjectsResponse.md @@ -0,0 +1,22 @@ +# OryClient::ListWorkspaceProjectsResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **has_next_page** | **Boolean** | | | +| **next_page** | **String** | | | +| **projects** | [**Array<ProjectMetadata>**](ProjectMetadata.md) | | | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::ListWorkspaceProjectsResponse.new( + has_next_page: null, + next_page: null, + projects: null +) +``` + diff --git a/clients/client/ruby/docs/LoginFlow.md b/clients/client/ruby/docs/LoginFlow.md index c11b31dc5a6..f7be3895313 100644 --- a/clients/client/ruby/docs/LoginFlow.md +++ b/clients/client/ruby/docs/LoginFlow.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] | +| **active** | **String** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] | | **created_at** | **Time** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] | | **expires_at** | **Time** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | | | **id** | **String** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> | | @@ -18,6 +18,7 @@ | **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] | | **session_token_exchange_code** | **String** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] | | **state** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | | +| **transient_payload** | **Object** | TransientPayload is used to pass data from the login to hooks and email templates | [optional] | | **type** | **String** | The flow type can either be `api` or `browser`. | | | **ui** | [**UiContainer**](UiContainer.md) | | | | **updated_at** | **Time** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] | @@ -42,6 +43,7 @@ instance = OryClient::LoginFlow.new( return_to: null, session_token_exchange_code: null, state: null, + transient_payload: null, type: null, ui: null, updated_at: null diff --git a/clients/client/ruby/docs/MigrationOptions.md b/clients/client/ruby/docs/MigrationOptions.md new file mode 100644 index 00000000000..50c5b038e95 --- /dev/null +++ b/clients/client/ruby/docs/MigrationOptions.md @@ -0,0 +1,20 @@ +# OryClient::MigrationOptions + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **environment** | **String** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | | +| **project_subscription** | **String** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::MigrationOptions.new( + environment: null, + project_subscription: null +) +``` + diff --git a/clients/client/ruby/docs/NormalizedProjectRevision.md b/clients/client/ruby/docs/NormalizedProjectRevision.md index ced1c194301..e3da7e66018 100644 --- a/clients/client/ruby/docs/NormalizedProjectRevision.md +++ b/clients/client/ruby/docs/NormalizedProjectRevision.md @@ -6,12 +6,14 @@ | ---- | ---- | ----------- | ----- | | **created_at** | **Time** | The Project's Revision Creation Date | [optional][readonly] | | **disable_account_experience_welcome_screen** | **Boolean** | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] | +| **enable_ax_v2** | **Boolean** | Whether the new account experience is enabled and reachable. | [optional] | | **hydra_oauth2_allowed_top_level_claims** | **Array<String>** | | [optional] | | **hydra_oauth2_client_credentials_default_grant_allowed_scope** | **Boolean** | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] | | **hydra_oauth2_exclude_not_before_claim** | **Boolean** | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] | | **hydra_oauth2_grant_jwt_iat_optional** | **Boolean** | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] | | **hydra_oauth2_grant_jwt_jti_optional** | **Boolean** | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] | | **hydra_oauth2_grant_jwt_max_ttl** | **String** | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional][default to '720h'] | +| **hydra_oauth2_mirror_top_level_claims** | **Boolean** | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] | | **hydra_oauth2_pkce_enforced** | **Boolean** | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] | | **hydra_oauth2_pkce_enforced_for_public_clients** | **Boolean** | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] | | **hydra_oauth2_refresh_token_hook** | **String** | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] | @@ -70,6 +72,7 @@ | **kratos_courier_templates_login_code_valid_email_body_html** | **String** | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] | | **kratos_courier_templates_login_code_valid_email_body_plaintext** | **String** | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] | | **kratos_courier_templates_login_code_valid_email_subject** | **String** | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] | +| **kratos_courier_templates_login_code_valid_sms_body_plaintext** | **String** | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] | | **kratos_courier_templates_recovery_code_invalid_email_body_html** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | | **kratos_courier_templates_recovery_code_invalid_email_body_plaintext** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] | | **kratos_courier_templates_recovery_code_invalid_email_subject** | **String** | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] | @@ -155,6 +158,7 @@ | **kratos_selfservice_flows_verification_use** | **String** | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] | | **kratos_selfservice_methods_code_config_lifespan** | **String** | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] | | **kratos_selfservice_methods_code_enabled** | **Boolean** | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] | +| **kratos_selfservice_methods_code_mfa_enabled** | **Boolean** | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] | | **kratos_selfservice_methods_code_passwordless_enabled** | **Boolean** | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] | | **kratos_selfservice_methods_link_config_base_url** | **String** | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] | | **kratos_selfservice_methods_link_config_lifespan** | **String** | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] | @@ -201,12 +205,14 @@ require 'ory-client' instance = OryClient::NormalizedProjectRevision.new( created_at: null, disable_account_experience_welcome_screen: null, + enable_ax_v2: null, hydra_oauth2_allowed_top_level_claims: null, hydra_oauth2_client_credentials_default_grant_allowed_scope: null, hydra_oauth2_exclude_not_before_claim: null, hydra_oauth2_grant_jwt_iat_optional: null, hydra_oauth2_grant_jwt_jti_optional: null, hydra_oauth2_grant_jwt_max_ttl: 30m, + hydra_oauth2_mirror_top_level_claims: null, hydra_oauth2_pkce_enforced: null, hydra_oauth2_pkce_enforced_for_public_clients: null, hydra_oauth2_refresh_token_hook: null, @@ -265,6 +271,7 @@ instance = OryClient::NormalizedProjectRevision.new( kratos_courier_templates_login_code_valid_email_body_html: null, kratos_courier_templates_login_code_valid_email_body_plaintext: null, kratos_courier_templates_login_code_valid_email_subject: null, + kratos_courier_templates_login_code_valid_sms_body_plaintext: null, kratos_courier_templates_recovery_code_invalid_email_body_html: null, kratos_courier_templates_recovery_code_invalid_email_body_plaintext: null, kratos_courier_templates_recovery_code_invalid_email_subject: null, @@ -350,6 +357,7 @@ instance = OryClient::NormalizedProjectRevision.new( kratos_selfservice_flows_verification_use: null, kratos_selfservice_methods_code_config_lifespan: null, kratos_selfservice_methods_code_enabled: null, + kratos_selfservice_methods_code_mfa_enabled: null, kratos_selfservice_methods_code_passwordless_enabled: null, kratos_selfservice_methods_link_config_base_url: null, kratos_selfservice_methods_link_config_lifespan: null, diff --git a/clients/client/ruby/docs/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/ruby/docs/NormalizedProjectRevisionThirdPartyProvider.md index 0cf52dff613..fa21e3382bd 100644 --- a/clients/client/ruby/docs/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/ruby/docs/NormalizedProjectRevisionThirdPartyProvider.md @@ -10,6 +10,7 @@ | **apple_team_id** | **String** | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] | | **auth_url** | **String** | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] | | **azure_tenant** | **String** | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] | +| **claims_source** | **String** | | [optional] | | **client_id** | **String** | ClientID is the application's Client ID. | [optional] | | **client_secret** | **String** | | [optional] | | **created_at** | **Time** | The Project's Revision Creation Date | [optional][readonly] | @@ -40,6 +41,7 @@ instance = OryClient::NormalizedProjectRevisionThirdPartyProvider.new( apple_team_id: KP76DQS54M, auth_url: https://www.googleapis.com/oauth2/v2/auth, azure_tenant: contoso.onmicrosoft.com, + claims_source: null, client_id: null, client_secret: null, created_at: null, diff --git a/clients/client/ruby/docs/OAuth2Client.md b/clients/client/ruby/docs/OAuth2Client.md index 4ccd057a1b2..5e0e2d3a2ba 100644 --- a/clients/client/ruby/docs/OAuth2Client.md +++ b/clients/client/ruby/docs/OAuth2Client.md @@ -45,6 +45,7 @@ | **scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] | | **sector_identifier_uri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] | | **skip_consent** | **Boolean** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] | +| **skip_logout_consent** | **Boolean** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] | | **subject_type** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] | | **token_endpoint_auth_method** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional][default to 'client_secret_basic'] | | **token_endpoint_auth_signing_alg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] | @@ -99,6 +100,7 @@ instance = OryClient::OAuth2Client.new( scope: scope1 scope-2 scope.3 scope:4, sector_identifier_uri: null, skip_consent: null, + skip_logout_consent: null, subject_type: null, token_endpoint_auth_method: null, token_endpoint_auth_signing_alg: null, diff --git a/clients/client/ruby/docs/OAuth2ConsentSession.md b/clients/client/ruby/docs/OAuth2ConsentSession.md index 7bdf663b0b2..4becbd9adca 100644 --- a/clients/client/ruby/docs/OAuth2ConsentSession.md +++ b/clients/client/ruby/docs/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **consent_request** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] | +| **context** | **Object** | | [optional] | | **expires_at** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] | | **grant_access_token_audience** | **Array<String>** | | [optional] | | **grant_scope** | **Array<String>** | | [optional] | @@ -20,6 +21,7 @@ require 'ory-client' instance = OryClient::OAuth2ConsentSession.new( consent_request: null, + context: null, expires_at: null, grant_access_token_audience: null, grant_scope: null, diff --git a/clients/client/ruby/docs/PermissionApi.md b/clients/client/ruby/docs/PermissionApi.md index eb746fb57d5..5af0e647876 100644 --- a/clients/client/ruby/docs/PermissionApi.md +++ b/clients/client/ruby/docs/PermissionApi.md @@ -352,7 +352,7 @@ end api_instance = OryClient::PermissionApi.new opts = { - max_depth: 789, # Integer | nolint:deadcode,unused + max_depth: 789, # Integer | post_check_permission_or_error_body: OryClient::PostCheckPermissionOrErrorBody.new # PostCheckPermissionOrErrorBody | } @@ -387,7 +387,7 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **max_depth** | **Integer** | nolint:deadcode,unused | [optional] | +| **max_depth** | **Integer** | | [optional] | | **post_check_permission_or_error_body** | [**PostCheckPermissionOrErrorBody**](PostCheckPermissionOrErrorBody.md) | | [optional] | ### Return type diff --git a/clients/client/ruby/docs/PermissionsOnWorkpaceResponse.md b/clients/client/ruby/docs/PermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..6ca17a071b1 --- /dev/null +++ b/clients/client/ruby/docs/PermissionsOnWorkpaceResponse.md @@ -0,0 +1,18 @@ +# OryClient::PermissionsOnWorkpaceResponse + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **permissions** | **Hash<String, Boolean>** | | [optional] | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::PermissionsOnWorkpaceResponse.new( + permissions: null +) +``` + diff --git a/clients/client/ruby/docs/PlanDetails.md b/clients/client/ruby/docs/PlanDetails.md index dd095424001..a6195d63683 100644 --- a/clients/client/ruby/docs/PlanDetails.md +++ b/clients/client/ruby/docs/PlanDetails.md @@ -8,7 +8,7 @@ | **base_fee_yearly** | **Integer** | BaseFeeYearly is the yearly base fee for the plan. | | | **custom** | **Boolean** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | | | **description** | **String** | Description is the description of the plan. | | -| **features** | [**Hash<String, GenericUsage>**](GenericUsage.md) | Features are the feature definitions included in the plan. | | +| **features** | [**Hash<String, GenericUsage>**](GenericUsage.md) | | | | **name** | **String** | Name is the name of the plan. | | | **version** | **Integer** | Version is the version of the plan. The combination of `name@version` must be unique. | | diff --git a/clients/client/ruby/docs/ProjectApi.md b/clients/client/ruby/docs/ProjectApi.md index 8f771de39df..c58d4f7b00a 100644 --- a/clients/client/ruby/docs/ProjectApi.md +++ b/clients/client/ruby/docs/ProjectApi.md @@ -119,7 +119,7 @@ end api_instance = OryClient::ProjectApi.new opts = { - create_project_body: OryClient::CreateProjectBody.new({name: 'name_example'}) # CreateProjectBody | + create_project_body: OryClient::CreateProjectBody.new({environment: 'prod', name: 'name_example'}) # CreateProjectBody | } begin @@ -586,7 +586,7 @@ end ## get_project_members -> > get_project_members(project) +> > get_project_members(project) Get all members associated with this project @@ -619,7 +619,7 @@ end This returns an Array which contains the response data, status code and headers. -> >, Integer, Hash)> get_project_members_with_http_info(project) +> >, Integer, Hash)> get_project_members_with_http_info(project) ```ruby begin @@ -627,7 +627,7 @@ begin data, status_code, headers = api_instance.get_project_members_with_http_info(project) p status_code # => 2xx p headers # => { ... } - p data # => > + p data # => > rescue OryClient::ApiError => e puts "Error when calling ProjectApi->get_project_members_with_http_info: #{e}" end @@ -641,7 +641,7 @@ end ### Return type -[**Array<CloudAccount>**](CloudAccount.md) +[**Array<ProjectMember>**](ProjectMember.md) ### Authorization @@ -675,7 +675,7 @@ end api_instance = OryClient::ProjectApi.new project_id = 'project_id_example' # String | Project ID event_type = 'event_type_example' # String | The event type to query for -resolution = 'resolution_example' # String | The resolution of the buckets The minimum resolution is 1 hour. +resolution = 'resolution_example' # String | The resolution of the buckets The minimum resolution is 1 minute. from = Time.parse('2013-10-20T19:20:30+01:00') # Time | The start RFC3339 date of the time window to = Time.parse('2013-10-20T19:20:30+01:00') # Time | The end RFC3339 date of the time window @@ -712,7 +712,7 @@ end | ---- | ---- | ----------- | ----- | | **project_id** | **String** | Project ID | | | **event_type** | **String** | The event type to query for | | -| **resolution** | **String** | The resolution of the buckets The minimum resolution is 1 hour. | | +| **resolution** | **String** | The resolution of the buckets The minimum resolution is 1 minute. | | | **from** | **Time** | The start RFC3339 date of the time window | | | **to** | **Time** | The end RFC3339 date of the time window | | diff --git a/clients/client/ruby/docs/ProjectMember.md b/clients/client/ruby/docs/ProjectMember.md new file mode 100644 index 00000000000..f6cfae29c5a --- /dev/null +++ b/clients/client/ruby/docs/ProjectMember.md @@ -0,0 +1,24 @@ +# OryClient::ProjectMember + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **email** | **String** | | | +| **id** | **String** | | | +| **name** | **String** | | | +| **role** | **String** | | | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::ProjectMember.new( + email: null, + id: null, + name: null, + role: null +) +``` + diff --git a/clients/client/ruby/docs/ProjectMetadata.md b/clients/client/ruby/docs/ProjectMetadata.md index 929fdb63d0b..9096a2ce9fc 100644 --- a/clients/client/ruby/docs/ProjectMetadata.md +++ b/clients/client/ruby/docs/ProjectMetadata.md @@ -5,6 +5,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **created_at** | **Time** | The Project's Creation Date | | +| **environment** | **String** | The environment of the project. prod Production dev Development | | | **hosts** | **Array<String>** | | | | **id** | **String** | The project's ID. | [readonly] | | **name** | **String** | The project's name if set | | @@ -22,6 +23,7 @@ require 'ory-client' instance = OryClient::ProjectMetadata.new( created_at: null, + environment: null, hosts: null, id: null, name: null, diff --git a/clients/client/ruby/docs/QuotaUsage.md b/clients/client/ruby/docs/QuotaUsage.md index 9acf7f122e4..60b175d8bbf 100644 --- a/clients/client/ruby/docs/QuotaUsage.md +++ b/clients/client/ruby/docs/QuotaUsage.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **additional_price** | **Integer** | The additional price per unit in cents. | | | **can_use_more** | **Boolean** | | | -| **feature** | **String** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | | +| **feature** | **String** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | | | **feature_available** | **Boolean** | | | | **included** | **Integer** | | | | **used** | **Integer** | | | diff --git a/clients/client/ruby/docs/RecoveryFlow.md b/clients/client/ruby/docs/RecoveryFlow.md index 9a1aa9439e9..086b7713cf1 100644 --- a/clients/client/ruby/docs/RecoveryFlow.md +++ b/clients/client/ruby/docs/RecoveryFlow.md @@ -12,6 +12,7 @@ | **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | | | **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] | | **state** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | | +| **transient_payload** | **Object** | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] | | **type** | **String** | The flow type can either be `api` or `browser`. | | | **ui** | [**UiContainer**](UiContainer.md) | | | @@ -29,6 +30,7 @@ instance = OryClient::RecoveryFlow.new( request_url: null, return_to: null, state: null, + transient_payload: null, type: null, ui: null ) diff --git a/clients/client/ruby/docs/RegistrationFlow.md b/clients/client/ruby/docs/RegistrationFlow.md index ec1831efb7d..7e50f730936 100644 --- a/clients/client/ruby/docs/RegistrationFlow.md +++ b/clients/client/ruby/docs/RegistrationFlow.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] | +| **active** | **String** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] | | **expires_at** | **Time** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | | | **id** | **String** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> | | | **issued_at** | **Time** | IssuedAt is the time (UTC) when the flow occurred. | | diff --git a/clients/client/ruby/docs/SettingsFlow.md b/clients/client/ruby/docs/SettingsFlow.md index 4734c3b2637..3bb8078dfc3 100644 --- a/clients/client/ruby/docs/SettingsFlow.md +++ b/clients/client/ruby/docs/SettingsFlow.md @@ -13,6 +13,7 @@ | **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | | | **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] | | **state** | **Object** | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | | +| **transient_payload** | **Object** | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] | | **type** | **String** | The flow type can either be `api` or `browser`. | | | **ui** | [**UiContainer**](UiContainer.md) | | | @@ -31,6 +32,7 @@ instance = OryClient::SettingsFlow.new( request_url: null, return_to: null, state: null, + transient_payload: null, type: null, ui: null ) diff --git a/clients/client/ruby/docs/StripeCustomer.md b/clients/client/ruby/docs/StripeCustomer.md deleted file mode 100644 index 8b1d2d9855e..00000000000 --- a/clients/client/ruby/docs/StripeCustomer.md +++ /dev/null @@ -1,18 +0,0 @@ -# OryClient::StripeCustomer - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **id** | **String** | | [optional] | - -## Example - -```ruby -require 'ory-client' - -instance = OryClient::StripeCustomer.new( - id: null -) -``` - diff --git a/clients/client/ruby/docs/Subscription.md b/clients/client/ruby/docs/Subscription.md index f9597409d37..a7ae238f0f6 100644 --- a/clients/client/ruby/docs/Subscription.md +++ b/clients/client/ruby/docs/Subscription.md @@ -8,6 +8,7 @@ | **currency** | **String** | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | [readonly] | | **current_interval** | **String** | The currently active interval of the subscription monthly Monthly yearly Yearly | [readonly] | | **current_plan** | **String** | The currently active plan of the subscription | [readonly] | +| **current_plan_details** | [**PlanDetails**](PlanDetails.md) | | [optional] | | **customer_id** | **String** | The ID of the stripe customer | [readonly] | | **id** | **String** | The ID of the subscription | [readonly] | | **interval_changes_to** | **String** | | | @@ -16,6 +17,7 @@ | **plan_changes_at** | **Time** | | [optional] | | **plan_changes_to** | **String** | | | | **status** | **String** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | | +| **stripe_checkout_expires_at** | **Time** | | [optional] | | **updated_at** | **Time** | | [readonly] | ## Example @@ -28,6 +30,7 @@ instance = OryClient::Subscription.new( currency: null, current_interval: null, current_plan: null, + current_plan_details: null, customer_id: null, id: null, interval_changes_to: null, @@ -36,6 +39,7 @@ instance = OryClient::Subscription.new( plan_changes_at: null, plan_changes_to: null, status: null, + stripe_checkout_expires_at: null, updated_at: null ) ``` diff --git a/clients/client/ruby/docs/UiNodeAttributes.md b/clients/client/ruby/docs/UiNodeAttributes.md index bc881c1cc85..2b5cbe21246 100644 --- a/clients/client/ruby/docs/UiNodeAttributes.md +++ b/clients/client/ruby/docs/UiNodeAttributes.md @@ -53,6 +53,7 @@ OryClient::UiNodeAttributes.openapi_discriminator_mapping # :'script' => :'UiNodeScriptAttributes', # :'text' => :'UiNodeTextAttributes' # } +``` ### build diff --git a/clients/client/ruby/docs/UpdateIdentityBody.md b/clients/client/ruby/docs/UpdateIdentityBody.md index e63b2d2461b..d838c6cfb5e 100644 --- a/clients/client/ruby/docs/UpdateIdentityBody.md +++ b/clients/client/ruby/docs/UpdateIdentityBody.md @@ -8,7 +8,7 @@ | **metadata_admin** | **Object** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] | | **metadata_public** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] | | **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | | -| **state** | [**IdentityState**](IdentityState.md) | | | +| **state** | **String** | State is the identity's state. active StateActive inactive StateInactive | | | **traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | | ## Example diff --git a/clients/client/ruby/docs/UpdateLoginFlowBody.md b/clients/client/ruby/docs/UpdateLoginFlowBody.md index f46a88632f0..7eaa6537f5a 100644 --- a/clients/client/ruby/docs/UpdateLoginFlowBody.md +++ b/clients/client/ruby/docs/UpdateLoginFlowBody.md @@ -55,6 +55,7 @@ OryClient::UpdateLoginFlowBody.openapi_discriminator_mapping # :'totp' => :'UpdateLoginFlowWithTotpMethod', # :'webauthn' => :'UpdateLoginFlowWithWebAuthnMethod' # } +``` ### build diff --git a/clients/client/ruby/docs/UpdateLoginFlowWithCodeMethod.md b/clients/client/ruby/docs/UpdateLoginFlowWithCodeMethod.md index b73711f8eb1..10bbaab1f30 100644 --- a/clients/client/ruby/docs/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/ruby/docs/UpdateLoginFlowWithCodeMethod.md @@ -9,6 +9,7 @@ | **identifier** | **String** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] | | **method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | | | **resend** | **String** | Resend is set when the user wants to resend the code | [optional] | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -20,7 +21,8 @@ instance = OryClient::UpdateLoginFlowWithCodeMethod.new( csrf_token: null, identifier: null, method: null, - resend: null + resend: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateLoginFlowWithOidcMethod.md b/clients/client/ruby/docs/UpdateLoginFlowWithOidcMethod.md index ddacce87c3c..6e02d1a1e13 100644 --- a/clients/client/ruby/docs/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/ruby/docs/UpdateLoginFlowWithOidcMethod.md @@ -10,6 +10,7 @@ | **method** | **String** | Method to use This field must be set to `oidc` when using the oidc method. | | | **provider** | **String** | The provider to register with | | | **traits** | **Object** | The identity traits. This is a placeholder for the registration flow. | [optional] | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | | **upstream_parameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] | ## Example @@ -24,6 +25,7 @@ instance = OryClient::UpdateLoginFlowWithOidcMethod.new( method: null, provider: null, traits: null, + transient_payload: null, upstream_parameters: null ) ``` diff --git a/clients/client/ruby/docs/UpdateLoginFlowWithPasswordMethod.md b/clients/client/ruby/docs/UpdateLoginFlowWithPasswordMethod.md index 1c6fee2b790..94247605d1c 100644 --- a/clients/client/ruby/docs/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/ruby/docs/UpdateLoginFlowWithPasswordMethod.md @@ -9,6 +9,7 @@ | **method** | **String** | Method should be set to \"password\" when logging in using the identifier and password strategy. | | | **password** | **String** | The user's password. | | | **password_identifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -20,7 +21,8 @@ instance = OryClient::UpdateLoginFlowWithPasswordMethod.new( identifier: null, method: null, password: null, - password_identifier: null + password_identifier: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateLoginFlowWithTotpMethod.md b/clients/client/ruby/docs/UpdateLoginFlowWithTotpMethod.md index 8ae60097eca..8f832b37e3e 100644 --- a/clients/client/ruby/docs/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/ruby/docs/UpdateLoginFlowWithTotpMethod.md @@ -7,6 +7,7 @@ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | | **method** | **String** | Method should be set to \"totp\" when logging in using the TOTP strategy. | | | **totp_code** | **String** | The TOTP code. | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -16,7 +17,8 @@ require 'ory-client' instance = OryClient::UpdateLoginFlowWithTotpMethod.new( csrf_token: null, method: null, - totp_code: null + totp_code: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/ruby/docs/UpdateLoginFlowWithWebAuthnMethod.md index 0fed3132da7..0734b88dec1 100644 --- a/clients/client/ruby/docs/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/ruby/docs/UpdateLoginFlowWithWebAuthnMethod.md @@ -7,6 +7,7 @@ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | | **identifier** | **String** | Identifier is the email or username of the user trying to log in. | | | **method** | **String** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | | **webauthn_login** | **String** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] | ## Example @@ -18,6 +19,7 @@ instance = OryClient::UpdateLoginFlowWithWebAuthnMethod.new( csrf_token: null, identifier: null, method: null, + transient_payload: null, webauthn_login: null ) ``` diff --git a/clients/client/ruby/docs/UpdateRecoveryFlowBody.md b/clients/client/ruby/docs/UpdateRecoveryFlowBody.md index 27f5d37bb3e..9fa7a53c01a 100644 --- a/clients/client/ruby/docs/UpdateRecoveryFlowBody.md +++ b/clients/client/ruby/docs/UpdateRecoveryFlowBody.md @@ -47,6 +47,7 @@ OryClient::UpdateRecoveryFlowBody.openapi_discriminator_mapping # :'code' => :'UpdateRecoveryFlowWithCodeMethod', # :'link' => :'UpdateRecoveryFlowWithLinkMethod' # } +``` ### build diff --git a/clients/client/ruby/docs/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/ruby/docs/UpdateRecoveryFlowWithCodeMethod.md index d61b28016cb..3ef0aae0b34 100644 --- a/clients/client/ruby/docs/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/ruby/docs/UpdateRecoveryFlowWithCodeMethod.md @@ -8,6 +8,7 @@ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | | **email** | **String** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] | | **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -18,7 +19,8 @@ instance = OryClient::UpdateRecoveryFlowWithCodeMethod.new( code: null, csrf_token: null, email: null, - method: null + method: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/ruby/docs/UpdateRecoveryFlowWithLinkMethod.md index a576997fb08..1d1d10ac25d 100644 --- a/clients/client/ruby/docs/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/ruby/docs/UpdateRecoveryFlowWithLinkMethod.md @@ -7,6 +7,7 @@ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | | **email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | | | **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -16,7 +17,8 @@ require 'ory-client' instance = OryClient::UpdateRecoveryFlowWithLinkMethod.new( csrf_token: null, email: null, - method: null + method: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateRegistrationFlowBody.md b/clients/client/ruby/docs/UpdateRegistrationFlowBody.md index f42bcd74e47..c507b7575bc 100644 --- a/clients/client/ruby/docs/UpdateRegistrationFlowBody.md +++ b/clients/client/ruby/docs/UpdateRegistrationFlowBody.md @@ -51,6 +51,7 @@ OryClient::UpdateRegistrationFlowBody.openapi_discriminator_mapping # :'password' => :'UpdateRegistrationFlowWithPasswordMethod', # :'webauthn' => :'UpdateRegistrationFlowWithWebAuthnMethod' # } +``` ### build diff --git a/clients/client/ruby/docs/UpdateSettingsFlowBody.md b/clients/client/ruby/docs/UpdateSettingsFlowBody.md index 52c5aff1825..e14261464f6 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowBody.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowBody.md @@ -55,6 +55,7 @@ OryClient::UpdateSettingsFlowBody.openapi_discriminator_mapping # :'totp' => :'UpdateSettingsFlowWithTotpMethod', # :'webauthn' => :'UpdateSettingsFlowWithWebAuthnMethod' # } +``` ### build diff --git a/clients/client/ruby/docs/UpdateSettingsFlowWithLookupMethod.md b/clients/client/ruby/docs/UpdateSettingsFlowWithLookupMethod.md index bab2f888e3e..fbb372cc539 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowWithLookupMethod.md @@ -10,6 +10,7 @@ | **lookup_secret_regenerate** | **Boolean** | If set to true will regenerate the lookup secrets | [optional] | | **lookup_secret_reveal** | **Boolean** | If set to true will reveal the lookup secrets | [optional] | | **method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -22,7 +23,8 @@ instance = OryClient::UpdateSettingsFlowWithLookupMethod.new( lookup_secret_disable: null, lookup_secret_regenerate: null, lookup_secret_reveal: null, - method: null + method: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateSettingsFlowWithOidcMethod.md b/clients/client/ruby/docs/UpdateSettingsFlowWithOidcMethod.md index e6de726b424..412dbabc7e8 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowWithOidcMethod.md @@ -8,6 +8,7 @@ | **link** | **String** | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] | | **method** | **String** | Method Should be set to profile when trying to update a profile. | | | **traits** | **Object** | The identity's traits in: body | [optional] | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | | **unlink** | **String** | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] | | **upstream_parameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] | @@ -21,6 +22,7 @@ instance = OryClient::UpdateSettingsFlowWithOidcMethod.new( link: null, method: null, traits: null, + transient_payload: null, unlink: null, upstream_parameters: null ) diff --git a/clients/client/ruby/docs/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/ruby/docs/UpdateSettingsFlowWithPasswordMethod.md index e7072aac39a..7000cc192b3 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowWithPasswordMethod.md @@ -7,6 +7,7 @@ | **csrf_token** | **String** | CSRFToken is the anti-CSRF token | [optional] | | **method** | **String** | Method Should be set to password when trying to update a password. | | | **password** | **String** | Password is the updated password | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -16,7 +17,8 @@ require 'ory-client' instance = OryClient::UpdateSettingsFlowWithPasswordMethod.new( csrf_token: null, method: null, - password: null + password: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateSettingsFlowWithProfileMethod.md b/clients/client/ruby/docs/UpdateSettingsFlowWithProfileMethod.md index 59d03272ab9..e6182c7b392 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowWithProfileMethod.md @@ -7,6 +7,7 @@ | **csrf_token** | **String** | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] | | **method** | **String** | Method Should be set to profile when trying to update a profile. | | | **traits** | **Object** | Traits The identity's traits. | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -16,7 +17,8 @@ require 'ory-client' instance = OryClient::UpdateSettingsFlowWithProfileMethod.new( csrf_token: null, method: null, - traits: null + traits: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateSettingsFlowWithTotpMethod.md b/clients/client/ruby/docs/UpdateSettingsFlowWithTotpMethod.md index a89333115e5..ca330064dcf 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowWithTotpMethod.md @@ -8,6 +8,7 @@ | **method** | **String** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | | | **totp_code** | **String** | ValidationTOTP must contain a valid TOTP based on the | [optional] | | **totp_unlink** | **Boolean** | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -18,7 +19,8 @@ instance = OryClient::UpdateSettingsFlowWithTotpMethod.new( csrf_token: null, method: null, totp_code: null, - totp_unlink: null + totp_unlink: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/ruby/docs/UpdateSettingsFlowWithWebAuthnMethod.md index ea04e5d7466..85df0916ed3 100644 --- a/clients/client/ruby/docs/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/ruby/docs/UpdateSettingsFlowWithWebAuthnMethod.md @@ -6,6 +6,7 @@ | ---- | ---- | ----------- | ----- | | **csrf_token** | **String** | CSRFToken is the anti-CSRF token | [optional] | | **method** | **String** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | | **webauthn_register** | **String** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] | | **webauthn_register_displayname** | **String** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] | | **webauthn_remove** | **String** | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] | @@ -18,6 +19,7 @@ require 'ory-client' instance = OryClient::UpdateSettingsFlowWithWebAuthnMethod.new( csrf_token: null, method: null, + transient_payload: null, webauthn_register: null, webauthn_register_displayname: null, webauthn_remove: null diff --git a/clients/client/ruby/docs/UpdateVerificationFlowBody.md b/clients/client/ruby/docs/UpdateVerificationFlowBody.md index 29f4ba923c5..a9aecefa892 100644 --- a/clients/client/ruby/docs/UpdateVerificationFlowBody.md +++ b/clients/client/ruby/docs/UpdateVerificationFlowBody.md @@ -47,6 +47,7 @@ OryClient::UpdateVerificationFlowBody.openapi_discriminator_mapping # :'code' => :'UpdateVerificationFlowWithCodeMethod', # :'link' => :'UpdateVerificationFlowWithLinkMethod' # } +``` ### build diff --git a/clients/client/ruby/docs/UpdateVerificationFlowWithCodeMethod.md b/clients/client/ruby/docs/UpdateVerificationFlowWithCodeMethod.md index 4308d1fa37c..45e0fc625b0 100644 --- a/clients/client/ruby/docs/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/ruby/docs/UpdateVerificationFlowWithCodeMethod.md @@ -8,6 +8,7 @@ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | | **email** | **String** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] | | **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -18,7 +19,8 @@ instance = OryClient::UpdateVerificationFlowWithCodeMethod.new( code: null, csrf_token: null, email: null, - method: null + method: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateVerificationFlowWithLinkMethod.md b/clients/client/ruby/docs/UpdateVerificationFlowWithLinkMethod.md index 5d74fc65eb4..d6560fd0882 100644 --- a/clients/client/ruby/docs/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/ruby/docs/UpdateVerificationFlowWithLinkMethod.md @@ -7,6 +7,7 @@ | **csrf_token** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] | | **email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | | | **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | | +| **transient_payload** | **Object** | Transient data to pass along to any webhooks | [optional] | ## Example @@ -16,7 +17,8 @@ require 'ory-client' instance = OryClient::UpdateVerificationFlowWithLinkMethod.new( csrf_token: null, email: null, - method: null + method: null, + transient_payload: null ) ``` diff --git a/clients/client/ruby/docs/UpdateWorkspacePayload.md b/clients/client/ruby/docs/UpdateWorkspacePayload.md new file mode 100644 index 00000000000..89413994624 --- /dev/null +++ b/clients/client/ruby/docs/UpdateWorkspacePayload.md @@ -0,0 +1,18 @@ +# OryClient::UpdateWorkspacePayload + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | The name of the workspace. | | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::UpdateWorkspacePayload.new( + name: null +) +``` + diff --git a/clients/client/ruby/docs/VerificationFlow.md b/clients/client/ruby/docs/VerificationFlow.md index 1a36e2ef8f4..6fd6d524ac0 100644 --- a/clients/client/ruby/docs/VerificationFlow.md +++ b/clients/client/ruby/docs/VerificationFlow.md @@ -11,6 +11,7 @@ | **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] | | **return_to** | **String** | ReturnTo contains the requested return_to URL. | [optional] | | **state** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | | +| **transient_payload** | **Object** | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] | | **type** | **String** | The flow type can either be `api` or `browser`. | | | **ui** | [**UiContainer**](UiContainer.md) | | | @@ -27,6 +28,7 @@ instance = OryClient::VerificationFlow.new( request_url: null, return_to: null, state: null, + transient_payload: null, type: null, ui: null ) diff --git a/clients/client/ruby/docs/WorkspaceMeta.md b/clients/client/ruby/docs/WorkspaceMeta.md new file mode 100644 index 00000000000..a7419048132 --- /dev/null +++ b/clients/client/ruby/docs/WorkspaceMeta.md @@ -0,0 +1,28 @@ +# OryClient::WorkspaceMeta + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **created_at** | **Time** | | | +| **id** | **String** | | | +| **name** | **String** | | | +| **subscription_id** | **String** | | [optional] | +| **subscription_plan** | **String** | | [optional] | +| **updated_at** | **Time** | | | + +## Example + +```ruby +require 'ory-client' + +instance = OryClient::WorkspaceMeta.new( + created_at: null, + id: null, + name: null, + subscription_id: null, + subscription_plan: null, + updated_at: null +) +``` + diff --git a/clients/client/ruby/lib/ory-client.rb b/clients/client/ruby/lib/ory-client.rb index ae6b623b86c..1828de1f744 100644 --- a/clients/client/ruby/lib/ory-client.rb +++ b/clients/client/ruby/lib/ory-client.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -54,8 +54,11 @@ require 'ory-client/models/create_recovery_link_for_identity_body' require 'ory-client/models/create_relationship_body' require 'ory-client/models/create_subscription_body' +require 'ory-client/models/create_subscription_common' require 'ory-client/models/create_verifiable_credential_request_body' require 'ory-client/models/create_workspace_member_invite_body' +require 'ory-client/models/create_workspace_payload' +require 'ory-client/models/create_workspace_subscription_body' require 'ory-client/models/credential_supported_draft00' require 'ory-client/models/custom_domain' require 'ory-client/models/delete_my_sessions_count' @@ -90,12 +93,10 @@ require 'ory-client/models/identity_credentials_oidc' require 'ory-client/models/identity_credentials_oidc_provider' require 'ory-client/models/identity_credentials_password' -require 'ory-client/models/identity_credentials_type' require 'ory-client/models/identity_patch' require 'ory-client/models/identity_patch_response' require 'ory-client/models/identity_schema_container' require 'ory-client/models/identity_schema_preset' -require 'ory-client/models/identity_state' require 'ory-client/models/identity_with_credentials' require 'ory-client/models/identity_with_credentials_oidc' require 'ory-client/models/identity_with_credentials_oidc_config' @@ -106,7 +107,6 @@ require 'ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body' require 'ory-client/models/internal_is_owner_for_project_by_slug_body' require 'ory-client/models/internal_is_owner_for_project_by_slug_response' -require 'ory-client/models/internal_provision_mock_subscription' require 'ory-client/models/introspected_o_auth2_token' require 'ory-client/models/is_owner_for_project_by_slug' require 'ory-client/models/is_ready200_response' @@ -118,6 +118,7 @@ require 'ory-client/models/list_event_streams' require 'ory-client/models/list_my_workspaces_response' require 'ory-client/models/list_organizations_response' +require 'ory-client/models/list_workspace_projects_response' require 'ory-client/models/login_flow' require 'ory-client/models/login_flow_state' require 'ory-client/models/logout_flow' @@ -127,6 +128,7 @@ require 'ory-client/models/message' require 'ory-client/models/message_dispatch' require 'ory-client/models/metrics_datapoint' +require 'ory-client/models/migration_options' require 'ory-client/models/namespace' require 'ory-client/models/needs_privileged_session_error' require 'ory-client/models/normalized_project' @@ -155,6 +157,7 @@ require 'ory-client/models/parse_error' require 'ory-client/models/patch_identities_body' require 'ory-client/models/perform_native_logout_body' +require 'ory-client/models/permissions_on_workpace_response' require 'ory-client/models/plan' require 'ory-client/models/plan_details' require 'ory-client/models/post_check_permission_body' @@ -167,6 +170,7 @@ require 'ory-client/models/project_cors' require 'ory-client/models/project_events_datapoint' require 'ory-client/models/project_host' +require 'ory-client/models/project_member' require 'ory-client/models/project_metadata' require 'ory-client/models/project_service_identity' require 'ory-client/models/project_service_o_auth2' @@ -201,7 +205,6 @@ require 'ory-client/models/settings_flow' require 'ory-client/models/settings_flow_state' require 'ory-client/models/source_position' -require 'ory-client/models/stripe_customer' require 'ory-client/models/subject_set' require 'ory-client/models/subscription' require 'ory-client/models/successful_code_exchange_response' @@ -252,6 +255,7 @@ require 'ory-client/models/update_verification_flow_body' require 'ory-client/models/update_verification_flow_with_code_method' require 'ory-client/models/update_verification_flow_with_link_method' +require 'ory-client/models/update_workspace_payload' require 'ory-client/models/usage' require 'ory-client/models/verifiable_credential_priming_response' require 'ory-client/models/verifiable_credential_proof' @@ -262,6 +266,7 @@ require 'ory-client/models/version' require 'ory-client/models/warning' require 'ory-client/models/workspace' +require 'ory-client/models/workspace_meta' # APIs require 'ory-client/api/courier_api' diff --git a/clients/client/ruby/lib/ory-client/api/courier_api.rb b/clients/client/ruby/lib/ory-client/api/courier_api.rb index fcd32b29f63..cf8c64aa46e 100644 --- a/clients/client/ruby/lib/ory-client/api/courier_api.rb +++ b/clients/client/ruby/lib/ory-client/api/courier_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/events_api.rb b/clients/client/ruby/lib/ory-client/api/events_api.rb index 39f7f9f5d75..20de0c46ecd 100644 --- a/clients/client/ruby/lib/ory-client/api/events_api.rb +++ b/clients/client/ruby/lib/ory-client/api/events_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/frontend_api.rb b/clients/client/ruby/lib/ory-client/api/frontend_api.rb index 77c2a5e75b8..f77bce34043 100644 --- a/clients/client/ruby/lib/ory-client/api/frontend_api.rb +++ b/clients/client/ruby/lib/ory-client/api/frontend_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -28,6 +28,7 @@ def initialize(api_client = ApiClient.default) # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. # @option opts [String] :login_challenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). # @option opts [String] :organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + # @option opts [String] :via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. # @return [LoginFlow] def create_browser_login_flow(opts = {}) data, _status_code, _headers = create_browser_login_flow_with_http_info(opts) @@ -43,6 +44,7 @@ def create_browser_login_flow(opts = {}) # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. # @option opts [String] :login_challenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). # @option opts [String] :organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + # @option opts [String] :via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. # @return [Array<(LoginFlow, Integer, Hash)>] LoginFlow data, response status code and response headers def create_browser_login_flow_with_http_info(opts = {}) if @api_client.config.debugging @@ -58,6 +60,7 @@ def create_browser_login_flow_with_http_info(opts = {}) query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil? query_params[:'login_challenge'] = opts[:'login_challenge'] if !opts[:'login_challenge'].nil? query_params[:'organization'] = opts[:'organization'] if !opts[:'organization'].nil? + query_params[:'via'] = opts[:'via'] if !opts[:'via'].nil? # header parameters header_params = opts[:header_params] || {} @@ -417,6 +420,7 @@ def create_browser_verification_flow_with_http_info(opts = {}) # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow. # @option opts [Boolean] :return_session_token_exchange_code EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. # @option opts [String] :return_to The URL to return the browser to after the flow was completed. + # @option opts [String] :via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. # @return [LoginFlow] def create_native_login_flow(opts = {}) data, _status_code, _headers = create_native_login_flow_with_http_info(opts) @@ -431,6 +435,7 @@ def create_native_login_flow(opts = {}) # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow. # @option opts [Boolean] :return_session_token_exchange_code EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. # @option opts [String] :return_to The URL to return the browser to after the flow was completed. + # @option opts [String] :via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. # @return [Array<(LoginFlow, Integer, Hash)>] LoginFlow data, response status code and response headers def create_native_login_flow_with_http_info(opts = {}) if @api_client.config.debugging @@ -445,6 +450,7 @@ def create_native_login_flow_with_http_info(opts = {}) query_params[:'aal'] = opts[:'aal'] if !opts[:'aal'].nil? query_params[:'return_session_token_exchange_code'] = opts[:'return_session_token_exchange_code'] if !opts[:'return_session_token_exchange_code'].nil? query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil? + query_params[:'via'] = opts[:'via'] if !opts[:'via'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/clients/client/ruby/lib/ory-client/api/identity_api.rb b/clients/client/ruby/lib/ory-client/api/identity_api.rb index db3547bc33e..2dcb38e1cdd 100644 --- a/clients/client/ruby/lib/ory-client/api/identity_api.rb +++ b/clients/client/ruby/lib/ory-client/api/identity_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -214,6 +214,7 @@ def create_recovery_code_for_identity_with_http_info(opts = {}) # 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 [Hash] opts the optional parameters + # @option opts [String] :return_to # @option opts [CreateRecoveryLinkForIdentityBody] :create_recovery_link_for_identity_body # @return [RecoveryLinkForIdentity] def create_recovery_link_for_identity(opts = {}) @@ -224,6 +225,7 @@ def create_recovery_link_for_identity(opts = {}) # 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 [Hash] opts the optional parameters + # @option opts [String] :return_to # @option opts [CreateRecoveryLinkForIdentityBody] :create_recovery_link_for_identity_body # @return [Array<(RecoveryLinkForIdentity, Integer, Hash)>] RecoveryLinkForIdentity data, response status code and response headers def create_recovery_link_for_identity_with_http_info(opts = {}) @@ -235,6 +237,7 @@ def create_recovery_link_for_identity_with_http_info(opts = {}) # query parameters query_params = opts[:query_params] || {} + query_params[:'return_to'] = opts[:'return_to'] if !opts[:'return_to'].nil? # header parameters header_params = opts[:header_params] || {} @@ -341,7 +344,7 @@ def delete_identity_with_http_info(id, opts = {}) # Delete a credential for a specific identity # Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. # @param id [String] ID is the identity's ID. - # @param type [String] Type is the credential's Type. One of totp, webauthn, lookup + # @param type [String] Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 # @param [Hash] opts the optional parameters # @return [nil] def delete_identity_credentials(id, type, opts = {}) @@ -352,7 +355,7 @@ def delete_identity_credentials(id, type, opts = {}) # Delete a credential for a specific identity # Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. # @param id [String] ID is the identity's ID. - # @param type [String] Type is the credential's Type. One of totp, webauthn, lookup + # @param type [String] Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 # @param [Hash] opts the optional parameters # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers def delete_identity_credentials_with_http_info(id, type, opts = {}) @@ -368,7 +371,7 @@ def delete_identity_credentials_with_http_info(id, type, opts = {}) fail ArgumentError, "Missing the required parameter 'type' when calling IdentityApi.delete_identity_credentials" end # verify enum value - allowable_values = ["totp", "webauthn", "lookup"] + allowable_values = ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"] if @api_client.config.client_side_validation && !allowable_values.include?(type) fail ArgumentError, "invalid value for \"type\", must be one of #{allowable_values}" end @@ -626,7 +629,7 @@ def get_identity_with_http_info(id, opts = {}) if @api_client.config.client_side_validation && id.nil? fail ArgumentError, "Missing the required parameter 'id' when calling IdentityApi.get_identity" end - allowable_values = ["password", "totp", "oidc", "webauthn", "lookup_secret", "code"] + allowable_values = ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"] if @api_client.config.client_side_validation && opts[:'include_credential'] && !opts[:'include_credential'].all? { |item| allowable_values.include?(item) } fail ArgumentError, "invalid value for \"include_credential\", must include one of #{allowable_values}" end @@ -812,9 +815,10 @@ def get_session_with_http_info(id, opts = {}) # @option opts [Integer] :page_size Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (default to 250) # @option opts [String] :page_token Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (default to '1') # @option opts [String] :consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - # @option opts [Array] :ids_filter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + # @option opts [Array] :ids List of ids used to filter identities. If this list is empty, then no filter will be applied. # @option opts [String] :credentials_identifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. # @option opts [String] :preview_credentials_identifier_similar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + # @option opts [Array] :include_credential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. # @return [Array] def list_identities(opts = {}) data, _status_code, _headers = list_identities_with_http_info(opts) @@ -829,9 +833,10 @@ def list_identities(opts = {}) # @option opts [Integer] :page_size Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (default to 250) # @option opts [String] :page_token Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (default to '1') # @option opts [String] :consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - # @option opts [Array] :ids_filter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + # @option opts [Array] :ids List of ids used to filter identities. If this list is empty, then no filter will be applied. # @option opts [String] :credentials_identifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. # @option opts [String] :preview_credentials_identifier_similar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + # @option opts [Array] :include_credential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def list_identities_with_http_info(opts = {}) if @api_client.config.debugging @@ -867,9 +872,10 @@ def list_identities_with_http_info(opts = {}) query_params[:'page_size'] = opts[:'page_size'] if !opts[:'page_size'].nil? query_params[:'page_token'] = opts[:'page_token'] if !opts[:'page_token'].nil? query_params[:'consistency'] = opts[:'consistency'] if !opts[:'consistency'].nil? - query_params[:'ids_filter'] = @api_client.build_collection_param(opts[:'ids_filter'], :multi) if !opts[:'ids_filter'].nil? + query_params[:'ids'] = @api_client.build_collection_param(opts[:'ids'], :multi) if !opts[:'ids'].nil? query_params[:'credentials_identifier'] = opts[:'credentials_identifier'] if !opts[:'credentials_identifier'].nil? query_params[:'preview_credentials_identifier_similar'] = opts[:'preview_credentials_identifier_similar'] if !opts[:'preview_credentials_identifier_similar'].nil? + query_params[:'include_credential'] = @api_client.build_collection_param(opts[:'include_credential'], :multi) if !opts[:'include_credential'].nil? # header parameters header_params = opts[:header_params] || {} diff --git a/clients/client/ruby/lib/ory-client/api/jwk_api.rb b/clients/client/ruby/lib/ory-client/api/jwk_api.rb index d57fa57ca56..5352079cd65 100644 --- a/clients/client/ruby/lib/ory-client/api/jwk_api.rb +++ b/clients/client/ruby/lib/ory-client/api/jwk_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/metadata_api.rb b/clients/client/ruby/lib/ory-client/api/metadata_api.rb index 7568f8f2dba..a0e6586506d 100644 --- a/clients/client/ruby/lib/ory-client/api/metadata_api.rb +++ b/clients/client/ruby/lib/ory-client/api/metadata_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/o_auth2_api.rb b/clients/client/ruby/lib/ory-client/api/o_auth2_api.rb index e231868d5b3..44b791622eb 100644 --- a/clients/client/ruby/lib/ory-client/api/o_auth2_api.rb +++ b/clients/client/ruby/lib/ory-client/api/o_auth2_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/oidc_api.rb b/clients/client/ruby/lib/ory-client/api/oidc_api.rb index 99d0ee0fb47..5093c1d9078 100644 --- a/clients/client/ruby/lib/ory-client/api/oidc_api.rb +++ b/clients/client/ruby/lib/ory-client/api/oidc_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/permission_api.rb b/clients/client/ruby/lib/ory-client/api/permission_api.rb index 27c4d1fda58..8dd5206bf1e 100644 --- a/clients/client/ruby/lib/ory-client/api/permission_api.rb +++ b/clients/client/ruby/lib/ory-client/api/permission_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -332,7 +332,7 @@ def post_check_permission_with_http_info(opts = {}) # Check a permission # To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_depth nolint:deadcode,unused + # @option opts [Integer] :max_depth # @option opts [PostCheckPermissionOrErrorBody] :post_check_permission_or_error_body # @return [CheckPermissionResult] def post_check_permission_or_error(opts = {}) @@ -343,7 +343,7 @@ def post_check_permission_or_error(opts = {}) # Check a permission # To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_depth nolint:deadcode,unused + # @option opts [Integer] :max_depth # @option opts [PostCheckPermissionOrErrorBody] :post_check_permission_or_error_body # @return [Array<(CheckPermissionResult, Integer, Hash)>] CheckPermissionResult data, response status code and response headers def post_check_permission_or_error_with_http_info(opts = {}) diff --git a/clients/client/ruby/lib/ory-client/api/project_api.rb b/clients/client/ruby/lib/ory-client/api/project_api.rb index 2c8ac9745d5..7cc9883add4 100644 --- a/clients/client/ruby/lib/ory-client/api/project_api.rb +++ b/clients/client/ruby/lib/ory-client/api/project_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -548,7 +548,7 @@ def get_project_with_http_info(project_id, opts = {}) # This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. # @param project [String] # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] def get_project_members(project, opts = {}) data, _status_code, _headers = get_project_members_with_http_info(project, opts) data @@ -558,7 +558,7 @@ def get_project_members(project, opts = {}) # This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. # @param project [String] # @param [Hash] opts the optional parameters - # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers + # @return [Array<(Array, Integer, Hash)>] Array data, response status code and response headers def get_project_members_with_http_info(project, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: ProjectApi.get_project_members ...' @@ -585,7 +585,7 @@ def get_project_members_with_http_info(project, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'Array' + return_type = opts[:debug_return_type] || 'Array' # auth_names auth_names = opts[:debug_auth_names] || ['oryAccessToken'] @@ -610,7 +610,7 @@ def get_project_members_with_http_info(project, opts = {}) # Retrieves project metrics for the specified event type and time range # @param project_id [String] Project ID # @param event_type [String] The event type to query for - # @param resolution [String] The resolution of the buckets The minimum resolution is 1 hour. + # @param resolution [String] The resolution of the buckets The minimum resolution is 1 minute. # @param from [Time] The start RFC3339 date of the time window # @param to [Time] The end RFC3339 date of the time window # @param [Hash] opts the optional parameters @@ -623,7 +623,7 @@ def get_project_metrics(project_id, event_type, resolution, from, to, opts = {}) # Retrieves project metrics for the specified event type and time range # @param project_id [String] Project ID # @param event_type [String] The event type to query for - # @param resolution [String] The resolution of the buckets The minimum resolution is 1 hour. + # @param resolution [String] The resolution of the buckets The minimum resolution is 1 minute. # @param from [Time] The start RFC3339 date of the time window # @param to [Time] The end RFC3339 date of the time window # @param [Hash] opts the optional parameters @@ -644,7 +644,7 @@ def get_project_metrics_with_http_info(project_id, event_type, resolution, from, if @api_client.config.client_side_validation && resolution.nil? fail ArgumentError, "Missing the required parameter 'resolution' when calling ProjectApi.get_project_metrics" end - pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) + pattern = Regexp.new(/^[0-9]+(m|h|d|M|y)$/) if @api_client.config.client_side_validation && resolution !~ pattern fail ArgumentError, "invalid value for 'resolution' when calling ProjectApi.get_project_metrics, must conform to the pattern #{pattern}." end diff --git a/clients/client/ruby/lib/ory-client/api/relationship_api.rb b/clients/client/ruby/lib/ory-client/api/relationship_api.rb index fa7e59c9224..f2dd3f71bce 100644 --- a/clients/client/ruby/lib/ory-client/api/relationship_api.rb +++ b/clients/client/ruby/lib/ory-client/api/relationship_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api/wellknown_api.rb b/clients/client/ruby/lib/ory-client/api/wellknown_api.rb index 46441be8587..0b52d64321d 100644 --- a/clients/client/ruby/lib/ory-client/api/wellknown_api.rb +++ b/clients/client/ruby/lib/ory-client/api/wellknown_api.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/api_client.rb b/clients/client/ruby/lib/ory-client/api_client.rb index 4a0ee252bf2..e3d3c56c55c 100644 --- a/clients/client/ruby/lib/ory-client/api_client.rb +++ b/clients/client/ruby/lib/ory-client/api_client.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -17,6 +17,7 @@ require 'time' require 'typhoeus' + module OryClient class ApiClient # The Configuration object holding settings to be used in the API client. @@ -45,9 +46,10 @@ def self.default # Call an API with given options. # # @return [Array<(Object, Integer, Hash)>] an array of 3 elements: - # the data deserialized from response body (could be nil), response status code and response headers. + # the data deserialized from response body (may be a Tempfile or nil), response status code and response headers. def call_api(http_method, path, opts = {}) request = build_request(http_method, path, opts) + tempfile = download_file(request) if opts[:return_type] == 'File' response = request.run if @config.debugging @@ -69,7 +71,9 @@ def call_api(http_method, path, opts = {}) end end - if opts[:return_type] + if opts[:return_type] == 'File' + data = tempfile + elsif opts[:return_type] data = deserialize(response, opts[:return_type]) else data = nil @@ -125,9 +129,7 @@ def build_request(http_method, path, opts = {}) end end - request = Typhoeus::Request.new(url, req_opts) - download_file(request) if opts[:return_type] == 'File' - request + Typhoeus::Request.new(url, req_opts) end # Builds the HTTP request body @@ -165,6 +167,8 @@ def build_request_body(header_params, form_params, body) # process can use. # # @see Configuration#temp_folder_path + # + # @return [Tempfile] the tempfile generated def download_file(request) tempfile = nil encoding = nil @@ -179,21 +183,24 @@ def download_file(request) prefix = prefix + '-' unless prefix.end_with?('-') encoding = response.body.encoding tempfile = Tempfile.open(prefix, @config.temp_folder_path, encoding: encoding) - @tempfile = tempfile end request.on_body do |chunk| chunk.force_encoding(encoding) tempfile.write(chunk) end - request.on_complete do |response| - if tempfile - tempfile.close - @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ - "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ - "will be deleted automatically with GC. It's also recommended to delete the temp file "\ - "explicitly with `tempfile.delete`" - end + # run the request to ensure the tempfile is created successfully before returning it + request.run + if tempfile + tempfile.close + @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ + "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ + "will be deleted automatically with GC. It's also recommended to delete the temp file "\ + "explicitly with `tempfile.delete`" + else + fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}") end + + tempfile end # Check if the given MIME is a JSON MIME. @@ -214,15 +221,10 @@ def json_mime?(mime) # @param [String] return_type some examples: "User", "Array", "Hash" def deserialize(response, return_type) body = response.body - - # handle file downloading - return the File instance processed in request callbacks - # note that response body is empty when the file is written in chunks in request on_body callback - return @tempfile if return_type == 'File' - return nil if body.nil? || body.empty? # return response body directly for String return type - return body if return_type == 'String' + return body.to_s if return_type == 'String' # ensuring a default content type content_type = response.headers['Content-Type'] || 'application/json' diff --git a/clients/client/ruby/lib/ory-client/api_error.rb b/clients/client/ruby/lib/ory-client/api_error.rb index 00a2eab22c4..9e9f4a177b4 100644 --- a/clients/client/ruby/lib/ory-client/api_error.rb +++ b/clients/client/ruby/lib/ory-client/api_error.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -32,6 +32,7 @@ def initialize(arg = nil) end else super arg + @message = arg end end diff --git a/clients/client/ruby/lib/ory-client/configuration.rb b/clients/client/ruby/lib/ory-client/configuration.rb index 6b735e62a7a..b6d0a2e76ba 100644 --- a/clients/client/ruby/lib/ory-client/configuration.rb +++ b/clients/client/ruby/lib/ory-client/configuration.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -62,6 +62,16 @@ class Configuration # Defines the access token (Bearer) used with OAuth2. attr_accessor :access_token + # Defines a Proc used to fetch or refresh access tokens (Bearer) used with OAuth2. + # Overrides the access_token if set + # @return [Proc] + attr_accessor :access_token_getter + + # Set this to return data as binary instead of downloading a temp file. When enabled (set to true) + # HTTP responses with return type `File` will be returned as a stream of binary data. + # Default to false. + attr_accessor :return_binary_data + # Set this to enable/disable debugging. When enabled (set to true), HTTP request/response # details will be logged with `logger.debug` (see the `logger` attribute). # Default to false. @@ -142,7 +152,7 @@ def initialize @scheme = 'https' @host = 'playground.projects.oryapis.com' @base_path = '' - @server_index = 0 + @server_index = nil @server_operation_index = {} @server_variables = {} @server_operation_variables = {} @@ -190,10 +200,12 @@ def base_path=(base_path) # Returns base URL for specified operation based on server settings def base_url(operation = nil) - index = server_operation_index.fetch(operation, server_index) - return "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') if index == nil - - server_url(index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation]) + if operation_server_settings.key?(operation) then + index = server_operation_index.fetch(operation, server_index) + server_url(index.nil? ? 0 : index, server_operation_variables.fetch(operation, server_variables), operation_server_settings[operation]) + else + server_index.nil? ? "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '') : server_url(server_index, server_variables, nil) + end end # Gets API key (with prefix if set). @@ -208,6 +220,12 @@ def api_key_with_prefix(param_name, param_alias = nil) end end + # Gets access_token using access_token_getter or uses the static access_token + def access_token_with_refresh + return access_token if access_token_getter.nil? + access_token_getter.call + end + # Gets Basic Auth token string def basic_auth_token 'Basic ' + ["#{username}:#{password}"].pack('m').delete("\r\n") @@ -228,21 +246,21 @@ def auth_settings type: 'bearer', in: 'header', key: 'Authorization', - value: "Bearer #{access_token}" + value: "Bearer #{access_token_with_refresh}" }, 'oauth2' => { type: 'oauth2', in: 'header', key: 'Authorization', - value: "Bearer #{access_token}" + value: "Bearer #{access_token_with_refresh}" }, 'oryAccessToken' => { type: 'bearer', in: 'header', key: 'Authorization', - value: "Bearer #{access_token}" + value: "Bearer #{access_token_with_refresh}" }, } end @@ -276,8 +294,8 @@ def server_url(index, variables = {}, servers = nil) servers = server_settings if servers == nil # check array index out of bound - if (index < 0 || index >= servers.size) - fail ArgumentError, "Invalid index #{index} when selecting the server. Must be less than #{servers.size}" + if (index.nil? || index < 0 || index >= servers.size) + fail ArgumentError, "Invalid index #{index} when selecting the server. Must not be nil and must be less than #{servers.size}" end server = servers[index] @@ -302,5 +320,6 @@ def server_url(index, variables = {}, servers = nil) url end + end end diff --git a/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request.rb b/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request.rb index a9a0fd33a99..f23d809487d 100644 --- a/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request.rb +++ b/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -15,6 +15,8 @@ module OryClient class AcceptOAuth2ConsentRequest + attr_accessor :context + attr_accessor :grant_access_token_audience attr_accessor :grant_scope @@ -32,6 +34,7 @@ class AcceptOAuth2ConsentRequest # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'context' => :'context', :'grant_access_token_audience' => :'grant_access_token_audience', :'grant_scope' => :'grant_scope', :'handled_at' => :'handled_at', @@ -49,6 +52,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { + :'context' => :'Object', :'grant_access_token_audience' => :'Array', :'grant_scope' => :'Array', :'handled_at' => :'Time', @@ -79,6 +83,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'context') + self.context = attributes[:'context'] + end + if attributes.key?(:'grant_access_token_audience') if (value = attributes[:'grant_access_token_audience']).is_a?(Array) self.grant_access_token_audience = value @@ -111,6 +119,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -118,6 +127,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -126,6 +136,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + context == o.context && grant_access_token_audience == o.grant_access_token_audience && grant_scope == o.grant_scope && handled_at == o.handled_at && @@ -143,44 +154,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash + [context, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -215,7 +219,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request_session.rb b/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request_session.rb index e0c7aa8244f..121a6f7c57f 100644 --- a/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request_session.rb +++ b/clients/client/ruby/lib/ory-client/models/accept_o_auth2_consent_request_session.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -77,6 +77,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -84,6 +85,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -112,37 +114,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -177,7 +172,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/accept_o_auth2_login_request.rb b/clients/client/ruby/lib/ory-client/models/accept_o_auth2_login_request.rb index f5b53157161..9c8e7cfe774 100644 --- a/clients/client/ruby/lib/ory-client/models/accept_o_auth2_login_request.rb +++ b/clients/client/ruby/lib/ory-client/models/accept_o_auth2_login_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -132,12 +132,15 @@ def initialize(attributes = {}) if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @subject.nil? invalid_properties.push('invalid value for "subject", subject cannot be nil.') @@ -149,6 +152,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @subject.nil? true end @@ -185,37 +189,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -250,7 +247,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/active_project_in_console.rb b/clients/client/ruby/lib/ory-client/models/active_project_in_console.rb index e9304485ebd..4896a4e33bf 100644 --- a/clients/client/ruby/lib/ory-client/models/active_project_in_console.rb +++ b/clients/client/ruby/lib/ory-client/models/active_project_in_console.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -67,6 +67,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -74,6 +75,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -101,37 +103,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -166,7 +161,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/attribute.rb b/clients/client/ruby/lib/ory-client/models/attribute.rb index 0526f2165f7..54307ae2162 100644 --- a/clients/client/ruby/lib/ory-client/models/attribute.rb +++ b/clients/client/ruby/lib/ory-client/models/attribute.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -73,6 +73,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -80,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -108,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/attribute_filter.rb b/clients/client/ruby/lib/ory-client/models/attribute_filter.rb index d0243e06133..e4b4cafdad9 100644 --- a/clients/client/ruby/lib/ory-client/models/attribute_filter.rb +++ b/clients/client/ruby/lib/ory-client/models/attribute_filter.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -103,6 +103,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -110,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' condition_validator = EnumAttributeValidator.new('String', ["equals", "not_equals", "contains", "not_contains", "regex", "not_regex", "set", "not_set"]) return false unless condition_validator.valid?(@condition) true @@ -151,37 +153,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -216,7 +211,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/attributes_count_datapoint.rb b/clients/client/ruby/lib/ory-client/models/attributes_count_datapoint.rb index b8c49c39466..66d369262cc 100644 --- a/clients/client/ruby/lib/ory-client/models/attributes_count_datapoint.rb +++ b/clients/client/ruby/lib/ory-client/models/attributes_count_datapoint.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,16 +65,21 @@ def initialize(attributes = {}) if attributes.key?(:'count') self.count = attributes[:'count'] + else + self.count = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @count.nil? invalid_properties.push('invalid value for "count", count cannot be nil.') @@ -90,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @count.nil? return false if @name.nil? true @@ -120,37 +126,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -185,7 +184,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/authenticator_assurance_level.rb b/clients/client/ruby/lib/ory-client/models/authenticator_assurance_level.rb index 5f7922837aa..51fe808de1c 100644 --- a/clients/client/ruby/lib/ory-client/models/authenticator_assurance_level.rb +++ b/clients/client/ruby/lib/ory-client/models/authenticator_assurance_level.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -20,6 +20,10 @@ class AuthenticatorAssuranceLevel AAL2 = "aal2".freeze AAL3 = "aal3".freeze + def self.all_vars + @all_vars ||= [AAL0, AAL1, AAL2, AAL3].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -31,9 +35,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = AuthenticatorAssuranceLevel.constants.select { |c| AuthenticatorAssuranceLevel::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #AuthenticatorAssuranceLevel" if constantValues.empty? - value + return value if AuthenticatorAssuranceLevel.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #AuthenticatorAssuranceLevel" end end end diff --git a/clients/client/ruby/lib/ory-client/models/batch_patch_identities_response.rb b/clients/client/ruby/lib/ory-client/models/batch_patch_identities_response.rb index 98033c69c93..0969177bd70 100644 --- a/clients/client/ruby/lib/ory-client/models/batch_patch_identities_response.rb +++ b/clients/client/ruby/lib/ory-client/models/batch_patch_identities_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -69,6 +69,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -76,6 +77,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -103,37 +105,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -168,7 +163,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/check_opl_syntax_result.rb b/clients/client/ruby/lib/ory-client/models/check_opl_syntax_result.rb index eb65e9ef802..3d641ac65df 100644 --- a/clients/client/ruby/lib/ory-client/models/check_opl_syntax_result.rb +++ b/clients/client/ruby/lib/ory-client/models/check_opl_syntax_result.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -68,6 +68,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -75,6 +76,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -102,37 +104,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -167,7 +162,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/check_permission_result.rb b/clients/client/ruby/lib/ory-client/models/check_permission_result.rb index f088066bb03..2b42945a1b6 100644 --- a/clients/client/ruby/lib/ory-client/models/check_permission_result.rb +++ b/clients/client/ruby/lib/ory-client/models/check_permission_result.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -61,12 +61,15 @@ def initialize(attributes = {}) if attributes.key?(:'allowed') self.allowed = attributes[:'allowed'] + else + self.allowed = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @allowed.nil? invalid_properties.push('invalid value for "allowed", allowed cannot be nil.') @@ -78,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @allowed.nil? true end @@ -106,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -171,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/cloud_account.rb b/clients/client/ruby/lib/ory-client/models/cloud_account.rb index e681812a8b3..7057b4c413e 100644 --- a/clients/client/ruby/lib/ory-client/models/cloud_account.rb +++ b/clients/client/ruby/lib/ory-client/models/cloud_account.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -67,27 +67,50 @@ def initialize(attributes = {}) if attributes.key?(:'email') self.email = attributes[:'email'] + else + self.email = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new + if @email.nil? + invalid_properties.push('invalid value for "email", email cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @email.nil? + return false if @id.nil? + return false if @name.nil? true end @@ -117,37 +140,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -182,7 +198,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/consistency_request_parameters.rb b/clients/client/ruby/lib/ory-client/models/consistency_request_parameters.rb index b721bd5529e..391f5460be1 100644 --- a/clients/client/ruby/lib/ory-client/models/consistency_request_parameters.rb +++ b/clients/client/ruby/lib/ory-client/models/consistency_request_parameters.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -89,6 +89,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -96,6 +97,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' consistency_validator = EnumAttributeValidator.new('String', ["", "strong", "eventual"]) return false unless consistency_validator.valid?(@consistency) true @@ -135,37 +137,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -200,7 +195,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with.rb b/clients/client/ruby/lib/ory-client/models/continue_with.rb index 364620fcb7b..f2377bd7ef2 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui.rb b/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui.rb index d9450d44481..aeebf10bcf9 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -87,16 +87,21 @@ def initialize(attributes = {}) if attributes.key?(:'action') self.action = attributes[:'action'] + else + self.action = nil end if attributes.key?(:'flow') self.flow = attributes[:'flow'] + else + self.flow = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @action.nil? invalid_properties.push('invalid value for "action", action cannot be nil.') @@ -112,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @action.nil? action_validator = EnumAttributeValidator.new('String', ["show_recovery_ui"]) return false unless action_validator.valid?(@action) @@ -154,37 +160,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -219,7 +218,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui_flow.rb b/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui_flow.rb index d0cd142ab74..bd0dd57d67e 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_recovery_ui_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,6 +65,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'url') @@ -75,6 +77,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -86,6 +89,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? true end @@ -115,37 +119,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -180,7 +177,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_set_ory_session_token.rb b/clients/client/ruby/lib/ory-client/models/continue_with_set_ory_session_token.rb index 44c79cdd799..5b6d9080e78 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_set_ory_session_token.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_set_ory_session_token.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -88,16 +88,21 @@ def initialize(attributes = {}) if attributes.key?(:'action') self.action = attributes[:'action'] + else + self.action = nil end if attributes.key?(:'ory_session_token') self.ory_session_token = attributes[:'ory_session_token'] + else + self.ory_session_token = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @action.nil? invalid_properties.push('invalid value for "action", action cannot be nil.') @@ -113,6 +118,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @action.nil? action_validator = EnumAttributeValidator.new('String', ["set_ory_session_token"]) return false unless action_validator.valid?(@action) @@ -155,37 +161,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -220,7 +219,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui.rb b/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui.rb index a4f9df9eb69..960c01b3689 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -87,16 +87,21 @@ def initialize(attributes = {}) if attributes.key?(:'action') self.action = attributes[:'action'] + else + self.action = nil end if attributes.key?(:'flow') self.flow = attributes[:'flow'] + else + self.flow = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @action.nil? invalid_properties.push('invalid value for "action", action cannot be nil.') @@ -112,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @action.nil? action_validator = EnumAttributeValidator.new('String', ["show_settings_ui"]) return false unless action_validator.valid?(@action) @@ -154,37 +160,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -219,7 +218,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui_flow.rb b/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui_flow.rb index 9984b765d5e..e296fa1f0e4 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_settings_ui_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -60,12 +60,15 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -77,6 +80,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? true end @@ -105,37 +109,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -170,7 +167,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui.rb b/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui.rb index fa595e4f585..b556fd8951f 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -87,16 +87,21 @@ def initialize(attributes = {}) if attributes.key?(:'action') self.action = attributes[:'action'] + else + self.action = nil end if attributes.key?(:'flow') self.flow = attributes[:'flow'] + else + self.flow = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @action.nil? invalid_properties.push('invalid value for "action", action cannot be nil.') @@ -112,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @action.nil? action_validator = EnumAttributeValidator.new('String', ["show_verification_ui"]) return false unless action_validator.valid?(@action) @@ -154,37 +160,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -219,7 +218,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui_flow.rb b/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui_flow.rb index 0c9fef5d278..f7b9ea9ec05 100644 --- a/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/continue_with_verification_ui_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,6 +70,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'url') @@ -78,12 +80,15 @@ def initialize(attributes = {}) if attributes.key?(:'verifiable_address') self.verifiable_address = attributes[:'verifiable_address'] + else + self.verifiable_address = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -99,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @verifiable_address.nil? true @@ -130,37 +136,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -195,7 +194,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/courier_message_status.rb b/clients/client/ruby/lib/ory-client/models/courier_message_status.rb index 9dff2590e08..fcaa5e47a19 100644 --- a/clients/client/ruby/lib/ory-client/models/courier_message_status.rb +++ b/clients/client/ruby/lib/ory-client/models/courier_message_status.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -20,6 +20,10 @@ class CourierMessageStatus PROCESSING = "processing".freeze ABANDONED = "abandoned".freeze + def self.all_vars + @all_vars ||= [QUEUED, SENT, PROCESSING, ABANDONED].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -31,9 +35,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = CourierMessageStatus.constants.select { |c| CourierMessageStatus::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #CourierMessageStatus" if constantValues.empty? - value + return value if CourierMessageStatus.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #CourierMessageStatus" end end end diff --git a/clients/client/ruby/lib/ory-client/models/courier_message_type.rb b/clients/client/ruby/lib/ory-client/models/courier_message_type.rb index bdbd0f65587..20ce72c7130 100644 --- a/clients/client/ruby/lib/ory-client/models/courier_message_type.rb +++ b/clients/client/ruby/lib/ory-client/models/courier_message_type.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -18,6 +18,10 @@ class CourierMessageType EMAIL = "email".freeze PHONE = "phone".freeze + def self.all_vars + @all_vars ||= [EMAIL, PHONE].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -29,9 +33,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = CourierMessageType.constants.select { |c| CourierMessageType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #CourierMessageType" if constantValues.empty? - value + return value if CourierMessageType.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #CourierMessageType" end end end diff --git a/clients/client/ruby/lib/ory-client/models/create_custom_domain_body.rb b/clients/client/ruby/lib/ory-client/models/create_custom_domain_body.rb index 803c096477a..79fb37400e0 100644 --- a/clients/client/ruby/lib/ory-client/models/create_custom_domain_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_custom_domain_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -105,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -112,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -143,37 +145,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -208,7 +203,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_event_stream_body.rb b/clients/client/ruby/lib/ory-client/models/create_event_stream_body.rb index 5770281e7e6..4d602227512 100644 --- a/clients/client/ruby/lib/ory-client/models/create_event_stream_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_event_stream_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -93,20 +93,27 @@ def initialize(attributes = {}) if attributes.key?(:'role_arn') self.role_arn = attributes[:'role_arn'] + else + self.role_arn = nil end if attributes.key?(:'topic_arn') self.topic_arn = attributes[:'topic_arn'] + else + self.topic_arn = nil end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @role_arn.nil? invalid_properties.push('invalid value for "role_arn", role_arn cannot be nil.') @@ -126,6 +133,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @role_arn.nil? return false if @topic_arn.nil? return false if @type.nil? @@ -170,37 +178,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -235,7 +236,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_identity_body.rb b/clients/client/ruby/lib/ory-client/models/create_identity_body.rb index 3e1486c51f9..1b7a4546a82 100644 --- a/clients/client/ruby/lib/ory-client/models/create_identity_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_identity_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -30,6 +30,7 @@ class CreateIdentityBody # SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. attr_accessor :schema_id + # State is the identity's state. active StateActive inactive StateInactive attr_accessor :state # Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. @@ -38,6 +39,28 @@ class CreateIdentityBody # VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. attr_accessor :verifiable_addresses + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -65,7 +88,7 @@ def self.openapi_types :'metadata_public' => :'Object', :'recovery_addresses' => :'Array', :'schema_id' => :'String', - :'state' => :'IdentityState', + :'state' => :'String', :'traits' => :'Object', :'verifiable_addresses' => :'Array' } @@ -114,6 +137,8 @@ def initialize(attributes = {}) if attributes.key?(:'schema_id') self.schema_id = attributes[:'schema_id'] + else + self.schema_id = nil end if attributes.key?(:'state') @@ -122,6 +147,8 @@ def initialize(attributes = {}) if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil end if attributes.key?(:'verifiable_addresses') @@ -134,6 +161,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @schema_id.nil? invalid_properties.push('invalid value for "schema_id", schema_id cannot be nil.') @@ -149,11 +177,24 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @schema_id.nil? + state_validator = EnumAttributeValidator.new('String', ["active", "inactive"]) + return false unless state_validator.valid?(@state) return false if @traits.nil? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] state Object to be assigned + def state=(state) + validator = EnumAttributeValidator.new('String', ["active", "inactive"]) + unless validator.valid?(state) + fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." + end + @state = state + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -185,37 +226,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -250,7 +284,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_invite_response.rb b/clients/client/ruby/lib/ory-client/models/create_invite_response.rb index 9b600dbef78..c72c7ed86d9 100644 --- a/clients/client/ruby/lib/ory-client/models/create_invite_response.rb +++ b/clients/client/ruby/lib/ory-client/models/create_invite_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,16 +66,21 @@ def initialize(attributes = {}) if (value = attributes[:'all_invites']).is_a?(Array) self.all_invites = value end + else + self.all_invites = nil end if attributes.key?(:'created_invite') self.created_invite = attributes[:'created_invite'] + else + self.created_invite = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @all_invites.nil? invalid_properties.push('invalid value for "all_invites", all_invites cannot be nil.') @@ -91,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @all_invites.nil? return false if @created_invite.nil? true @@ -121,37 +127,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -186,7 +185,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_json_web_key_set.rb b/clients/client/ruby/lib/ory-client/models/create_json_web_key_set.rb index 90b0e89a7d6..ef52790c523 100644 --- a/clients/client/ruby/lib/ory-client/models/create_json_web_key_set.rb +++ b/clients/client/ruby/lib/ory-client/models/create_json_web_key_set.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -71,20 +71,27 @@ def initialize(attributes = {}) if attributes.key?(:'alg') self.alg = attributes[:'alg'] + else + self.alg = nil end if attributes.key?(:'kid') self.kid = attributes[:'kid'] + else + self.kid = nil end if attributes.key?(:'use') self.use = attributes[:'use'] + else + self.use = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @alg.nil? invalid_properties.push('invalid value for "alg", alg cannot be nil.') @@ -104,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @alg.nil? return false if @kid.nil? return false if @use.nil? @@ -136,37 +144,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -201,7 +202,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_project_api_key_request.rb b/clients/client/ruby/lib/ory-client/models/create_project_api_key_request.rb index 92b735d1240..ade98af4bea 100644 --- a/clients/client/ruby/lib/ory-client/models/create_project_api_key_request.rb +++ b/clients/client/ruby/lib/ory-client/models/create_project_api_key_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -60,12 +60,15 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') @@ -77,6 +80,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @name.nil? true end @@ -105,37 +109,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -170,7 +167,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_project_body.rb b/clients/client/ruby/lib/ory-client/models/create_project_body.rb index 5806c99d11e..5ff99274b20 100644 --- a/clients/client/ruby/lib/ory-client/models/create_project_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_project_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -16,14 +16,40 @@ module OryClient # Create Project Request Body class CreateProjectBody + # The environment of the project. prod Production dev Development + attr_accessor :environment + # The name of the project to be created attr_accessor :name attr_accessor :workspace_id + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'environment' => :'environment', :'name' => :'name', :'workspace_id' => :'workspace_id' } @@ -37,6 +63,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { + :'environment' => :'String', :'name' => :'String', :'workspace_id' => :'String' } @@ -64,8 +91,16 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + else + self.environment = nil + end + if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'workspace_id') @@ -76,7 +111,12 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') end @@ -87,15 +127,30 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @environment.nil? + environment_validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + return false unless environment_validator.valid?(@environment) return false if @name.nil? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] environment Object to be assigned + def environment=(environment) + validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + unless validator.valid?(environment) + fail ArgumentError, "invalid value for \"environment\", must be one of #{validator.allowable_values}." + end + @environment = environment + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && + environment == o.environment && name == o.name && workspace_id == o.workspace_id end @@ -109,44 +164,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [name, workspace_id].hash + [environment, name, workspace_id].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -181,7 +229,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_project_branding.rb b/clients/client/ruby/lib/ory-client/models/create_project_branding.rb index 6630819f212..667a8344aff 100644 --- a/clients/client/ruby/lib/ory-client/models/create_project_branding.rb +++ b/clients/client/ruby/lib/ory-client/models/create_project_branding.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -106,6 +106,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -113,6 +114,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -145,37 +147,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -210,7 +205,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_project_member_invite_body.rb b/clients/client/ruby/lib/ory-client/models/create_project_member_invite_body.rb index 84182e2c1b4..0a83581ab21 100644 --- a/clients/client/ruby/lib/ory-client/models/create_project_member_invite_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_project_member_invite_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -67,6 +67,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -74,6 +75,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -101,37 +103,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -166,7 +161,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_project_normalized_payload.rb b/clients/client/ruby/lib/ory-client/models/create_project_normalized_payload.rb index ba618411e03..4c2342d9f6f 100644 --- a/clients/client/ruby/lib/ory-client/models/create_project_normalized_payload.rb +++ b/clients/client/ruby/lib/ory-client/models/create_project_normalized_payload.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,6 +22,12 @@ class CreateProjectNormalizedPayload # Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. attr_accessor :disable_account_experience_welcome_screen + # Whether the new account experience is enabled and reachable. + attr_accessor :enable_ax_v2 + + # prod Production dev Development + attr_accessor :environment + attr_accessor :hydra_oauth2_allowed_top_level_claims # Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. @@ -39,6 +45,9 @@ class CreateProjectNormalizedPayload # Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. attr_accessor :hydra_oauth2_grant_jwt_max_ttl + # Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + attr_accessor :hydra_oauth2_mirror_top_level_claims + # Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. attr_accessor :hydra_oauth2_pkce_enforced @@ -204,6 +213,9 @@ class CreateProjectNormalizedPayload # Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. attr_accessor :kratos_courier_templates_login_code_valid_email_subject + # Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + attr_accessor :kratos_courier_templates_login_code_valid_sms_body_plaintext + # Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. attr_accessor :kratos_courier_templates_recovery_code_invalid_email_body_html @@ -454,6 +466,9 @@ class CreateProjectNormalizedPayload # Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. attr_accessor :kratos_selfservice_methods_code_enabled + # Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + attr_accessor :kratos_selfservice_methods_code_mfa_enabled + # Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. attr_accessor :kratos_selfservice_methods_code_passwordless_enabled @@ -588,12 +603,15 @@ def self.attribute_map { :'created_at' => :'created_at', :'disable_account_experience_welcome_screen' => :'disable_account_experience_welcome_screen', + :'enable_ax_v2' => :'enable_ax_v2', + :'environment' => :'environment', :'hydra_oauth2_allowed_top_level_claims' => :'hydra_oauth2_allowed_top_level_claims', :'hydra_oauth2_client_credentials_default_grant_allowed_scope' => :'hydra_oauth2_client_credentials_default_grant_allowed_scope', :'hydra_oauth2_exclude_not_before_claim' => :'hydra_oauth2_exclude_not_before_claim', :'hydra_oauth2_grant_jwt_iat_optional' => :'hydra_oauth2_grant_jwt_iat_optional', :'hydra_oauth2_grant_jwt_jti_optional' => :'hydra_oauth2_grant_jwt_jti_optional', :'hydra_oauth2_grant_jwt_max_ttl' => :'hydra_oauth2_grant_jwt_max_ttl', + :'hydra_oauth2_mirror_top_level_claims' => :'hydra_oauth2_mirror_top_level_claims', :'hydra_oauth2_pkce_enforced' => :'hydra_oauth2_pkce_enforced', :'hydra_oauth2_pkce_enforced_for_public_clients' => :'hydra_oauth2_pkce_enforced_for_public_clients', :'hydra_oauth2_refresh_token_hook' => :'hydra_oauth2_refresh_token_hook', @@ -652,6 +670,7 @@ def self.attribute_map :'kratos_courier_templates_login_code_valid_email_body_html' => :'kratos_courier_templates_login_code_valid_email_body_html', :'kratos_courier_templates_login_code_valid_email_body_plaintext' => :'kratos_courier_templates_login_code_valid_email_body_plaintext', :'kratos_courier_templates_login_code_valid_email_subject' => :'kratos_courier_templates_login_code_valid_email_subject', + :'kratos_courier_templates_login_code_valid_sms_body_plaintext' => :'kratos_courier_templates_login_code_valid_sms_body_plaintext', :'kratos_courier_templates_recovery_code_invalid_email_body_html' => :'kratos_courier_templates_recovery_code_invalid_email_body_html', :'kratos_courier_templates_recovery_code_invalid_email_body_plaintext' => :'kratos_courier_templates_recovery_code_invalid_email_body_plaintext', :'kratos_courier_templates_recovery_code_invalid_email_subject' => :'kratos_courier_templates_recovery_code_invalid_email_subject', @@ -737,6 +756,7 @@ def self.attribute_map :'kratos_selfservice_flows_verification_use' => :'kratos_selfservice_flows_verification_use', :'kratos_selfservice_methods_code_config_lifespan' => :'kratos_selfservice_methods_code_config_lifespan', :'kratos_selfservice_methods_code_enabled' => :'kratos_selfservice_methods_code_enabled', + :'kratos_selfservice_methods_code_mfa_enabled' => :'kratos_selfservice_methods_code_mfa_enabled', :'kratos_selfservice_methods_code_passwordless_enabled' => :'kratos_selfservice_methods_code_passwordless_enabled', :'kratos_selfservice_methods_link_config_base_url' => :'kratos_selfservice_methods_link_config_base_url', :'kratos_selfservice_methods_link_config_lifespan' => :'kratos_selfservice_methods_link_config_lifespan', @@ -788,12 +808,15 @@ def self.openapi_types { :'created_at' => :'Time', :'disable_account_experience_welcome_screen' => :'Boolean', + :'enable_ax_v2' => :'Boolean', + :'environment' => :'String', :'hydra_oauth2_allowed_top_level_claims' => :'Array', :'hydra_oauth2_client_credentials_default_grant_allowed_scope' => :'Boolean', :'hydra_oauth2_exclude_not_before_claim' => :'Boolean', :'hydra_oauth2_grant_jwt_iat_optional' => :'Boolean', :'hydra_oauth2_grant_jwt_jti_optional' => :'Boolean', :'hydra_oauth2_grant_jwt_max_ttl' => :'String', + :'hydra_oauth2_mirror_top_level_claims' => :'Boolean', :'hydra_oauth2_pkce_enforced' => :'Boolean', :'hydra_oauth2_pkce_enforced_for_public_clients' => :'Boolean', :'hydra_oauth2_refresh_token_hook' => :'String', @@ -852,6 +875,7 @@ def self.openapi_types :'kratos_courier_templates_login_code_valid_email_body_html' => :'String', :'kratos_courier_templates_login_code_valid_email_body_plaintext' => :'String', :'kratos_courier_templates_login_code_valid_email_subject' => :'String', + :'kratos_courier_templates_login_code_valid_sms_body_plaintext' => :'String', :'kratos_courier_templates_recovery_code_invalid_email_body_html' => :'String', :'kratos_courier_templates_recovery_code_invalid_email_body_plaintext' => :'String', :'kratos_courier_templates_recovery_code_invalid_email_subject' => :'String', @@ -937,6 +961,7 @@ def self.openapi_types :'kratos_selfservice_flows_verification_use' => :'String', :'kratos_selfservice_methods_code_config_lifespan' => :'String', :'kratos_selfservice_methods_code_enabled' => :'Boolean', + :'kratos_selfservice_methods_code_mfa_enabled' => :'Boolean', :'kratos_selfservice_methods_code_passwordless_enabled' => :'Boolean', :'kratos_selfservice_methods_link_config_base_url' => :'String', :'kratos_selfservice_methods_link_config_lifespan' => :'String', @@ -1011,6 +1036,16 @@ def initialize(attributes = {}) self.disable_account_experience_welcome_screen = attributes[:'disable_account_experience_welcome_screen'] end + if attributes.key?(:'enable_ax_v2') + self.enable_ax_v2 = attributes[:'enable_ax_v2'] + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + else + self.environment = nil + end + if attributes.key?(:'hydra_oauth2_allowed_top_level_claims') if (value = attributes[:'hydra_oauth2_allowed_top_level_claims']).is_a?(Array) self.hydra_oauth2_allowed_top_level_claims = value @@ -1039,6 +1074,10 @@ def initialize(attributes = {}) self.hydra_oauth2_grant_jwt_max_ttl = '720h' end + if attributes.key?(:'hydra_oauth2_mirror_top_level_claims') + self.hydra_oauth2_mirror_top_level_claims = attributes[:'hydra_oauth2_mirror_top_level_claims'] + end + if attributes.key?(:'hydra_oauth2_pkce_enforced') self.hydra_oauth2_pkce_enforced = attributes[:'hydra_oauth2_pkce_enforced'] end @@ -1309,6 +1348,10 @@ def initialize(attributes = {}) self.kratos_courier_templates_login_code_valid_email_subject = attributes[:'kratos_courier_templates_login_code_valid_email_subject'] end + if attributes.key?(:'kratos_courier_templates_login_code_valid_sms_body_plaintext') + self.kratos_courier_templates_login_code_valid_sms_body_plaintext = attributes[:'kratos_courier_templates_login_code_valid_sms_body_plaintext'] + end + if attributes.key?(:'kratos_courier_templates_recovery_code_invalid_email_body_html') self.kratos_courier_templates_recovery_code_invalid_email_body_html = attributes[:'kratos_courier_templates_recovery_code_invalid_email_body_html'] end @@ -1659,6 +1702,10 @@ def initialize(attributes = {}) self.kratos_selfservice_methods_code_enabled = attributes[:'kratos_selfservice_methods_code_enabled'] end + if attributes.key?(:'kratos_selfservice_methods_code_mfa_enabled') + self.kratos_selfservice_methods_code_mfa_enabled = attributes[:'kratos_selfservice_methods_code_mfa_enabled'] + end + if attributes.key?(:'kratos_selfservice_methods_code_passwordless_enabled') self.kratos_selfservice_methods_code_passwordless_enabled = attributes[:'kratos_selfservice_methods_code_passwordless_enabled'] end @@ -1779,6 +1826,8 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'project_id') @@ -1827,7 +1876,12 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) if !@hydra_oauth2_grant_jwt_max_ttl.nil? && @hydra_oauth2_grant_jwt_max_ttl !~ pattern invalid_properties.push("invalid value for \"hydra_oauth2_grant_jwt_max_ttl\", must conform to the pattern #{pattern}.") @@ -1868,6 +1922,10 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @environment.nil? + environment_validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + return false unless environment_validator.valid?(@environment) return false if !@hydra_oauth2_grant_jwt_max_ttl.nil? && @hydra_oauth2_grant_jwt_max_ttl !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) hydra_strategies_access_token_validator = EnumAttributeValidator.new('String', ["opaque", "jwt"]) return false unless hydra_strategies_access_token_validator.valid?(@hydra_strategies_access_token) @@ -1886,11 +1944,25 @@ def valid? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] environment Object to be assigned + def environment=(environment) + validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + unless validator.valid?(environment) + fail ArgumentError, "invalid value for \"environment\", must be one of #{validator.allowable_values}." + end + @environment = environment + end + # Custom attribute writer method with validation # @param [Object] hydra_oauth2_grant_jwt_max_ttl Value to be assigned def hydra_oauth2_grant_jwt_max_ttl=(hydra_oauth2_grant_jwt_max_ttl) + if hydra_oauth2_grant_jwt_max_ttl.nil? + fail ArgumentError, 'hydra_oauth2_grant_jwt_max_ttl cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_oauth2_grant_jwt_max_ttl.nil? && hydra_oauth2_grant_jwt_max_ttl !~ pattern + if hydra_oauth2_grant_jwt_max_ttl !~ pattern fail ArgumentError, "invalid value for \"hydra_oauth2_grant_jwt_max_ttl\", must conform to the pattern #{pattern}." end @@ -1920,8 +1992,12 @@ def hydra_strategies_scope=(hydra_strategies_scope) # Custom attribute writer method with validation # @param [Object] hydra_ttl_access_token Value to be assigned def hydra_ttl_access_token=(hydra_ttl_access_token) + if hydra_ttl_access_token.nil? + fail ArgumentError, 'hydra_ttl_access_token cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_access_token.nil? && hydra_ttl_access_token !~ pattern + if hydra_ttl_access_token !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_access_token\", must conform to the pattern #{pattern}." end @@ -1931,8 +2007,12 @@ def hydra_ttl_access_token=(hydra_ttl_access_token) # Custom attribute writer method with validation # @param [Object] hydra_ttl_auth_code Value to be assigned def hydra_ttl_auth_code=(hydra_ttl_auth_code) + if hydra_ttl_auth_code.nil? + fail ArgumentError, 'hydra_ttl_auth_code cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_auth_code.nil? && hydra_ttl_auth_code !~ pattern + if hydra_ttl_auth_code !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_auth_code\", must conform to the pattern #{pattern}." end @@ -1942,8 +2022,12 @@ def hydra_ttl_auth_code=(hydra_ttl_auth_code) # Custom attribute writer method with validation # @param [Object] hydra_ttl_id_token Value to be assigned def hydra_ttl_id_token=(hydra_ttl_id_token) + if hydra_ttl_id_token.nil? + fail ArgumentError, 'hydra_ttl_id_token cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_id_token.nil? && hydra_ttl_id_token !~ pattern + if hydra_ttl_id_token !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_id_token\", must conform to the pattern #{pattern}." end @@ -1953,8 +2037,12 @@ def hydra_ttl_id_token=(hydra_ttl_id_token) # Custom attribute writer method with validation # @param [Object] hydra_ttl_login_consent_request Value to be assigned def hydra_ttl_login_consent_request=(hydra_ttl_login_consent_request) + if hydra_ttl_login_consent_request.nil? + fail ArgumentError, 'hydra_ttl_login_consent_request cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_login_consent_request.nil? && hydra_ttl_login_consent_request !~ pattern + if hydra_ttl_login_consent_request !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_login_consent_request\", must conform to the pattern #{pattern}." end @@ -1964,8 +2052,12 @@ def hydra_ttl_login_consent_request=(hydra_ttl_login_consent_request) # Custom attribute writer method with validation # @param [Object] hydra_ttl_refresh_token Value to be assigned def hydra_ttl_refresh_token=(hydra_ttl_refresh_token) + if hydra_ttl_refresh_token.nil? + fail ArgumentError, 'hydra_ttl_refresh_token cannot be nil' + end + pattern = Regexp.new(/^([0-9]+(ns|us|ms|s|m|h)|-1)$/) - if !hydra_ttl_refresh_token.nil? && hydra_ttl_refresh_token !~ pattern + if hydra_ttl_refresh_token !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_refresh_token\", must conform to the pattern #{pattern}." end @@ -1999,12 +2091,15 @@ def ==(o) self.class == o.class && created_at == o.created_at && disable_account_experience_welcome_screen == o.disable_account_experience_welcome_screen && + enable_ax_v2 == o.enable_ax_v2 && + environment == o.environment && hydra_oauth2_allowed_top_level_claims == o.hydra_oauth2_allowed_top_level_claims && hydra_oauth2_client_credentials_default_grant_allowed_scope == o.hydra_oauth2_client_credentials_default_grant_allowed_scope && hydra_oauth2_exclude_not_before_claim == o.hydra_oauth2_exclude_not_before_claim && hydra_oauth2_grant_jwt_iat_optional == o.hydra_oauth2_grant_jwt_iat_optional && hydra_oauth2_grant_jwt_jti_optional == o.hydra_oauth2_grant_jwt_jti_optional && hydra_oauth2_grant_jwt_max_ttl == o.hydra_oauth2_grant_jwt_max_ttl && + hydra_oauth2_mirror_top_level_claims == o.hydra_oauth2_mirror_top_level_claims && hydra_oauth2_pkce_enforced == o.hydra_oauth2_pkce_enforced && hydra_oauth2_pkce_enforced_for_public_clients == o.hydra_oauth2_pkce_enforced_for_public_clients && hydra_oauth2_refresh_token_hook == o.hydra_oauth2_refresh_token_hook && @@ -2063,6 +2158,7 @@ def ==(o) kratos_courier_templates_login_code_valid_email_body_html == o.kratos_courier_templates_login_code_valid_email_body_html && kratos_courier_templates_login_code_valid_email_body_plaintext == o.kratos_courier_templates_login_code_valid_email_body_plaintext && kratos_courier_templates_login_code_valid_email_subject == o.kratos_courier_templates_login_code_valid_email_subject && + kratos_courier_templates_login_code_valid_sms_body_plaintext == o.kratos_courier_templates_login_code_valid_sms_body_plaintext && kratos_courier_templates_recovery_code_invalid_email_body_html == o.kratos_courier_templates_recovery_code_invalid_email_body_html && kratos_courier_templates_recovery_code_invalid_email_body_plaintext == o.kratos_courier_templates_recovery_code_invalid_email_body_plaintext && kratos_courier_templates_recovery_code_invalid_email_subject == o.kratos_courier_templates_recovery_code_invalid_email_subject && @@ -2148,6 +2244,7 @@ def ==(o) kratos_selfservice_flows_verification_use == o.kratos_selfservice_flows_verification_use && kratos_selfservice_methods_code_config_lifespan == o.kratos_selfservice_methods_code_config_lifespan && kratos_selfservice_methods_code_enabled == o.kratos_selfservice_methods_code_enabled && + kratos_selfservice_methods_code_mfa_enabled == o.kratos_selfservice_methods_code_mfa_enabled && kratos_selfservice_methods_code_passwordless_enabled == o.kratos_selfservice_methods_code_passwordless_enabled && kratos_selfservice_methods_link_config_base_url == o.kratos_selfservice_methods_link_config_base_url && kratos_selfservice_methods_link_config_lifespan == o.kratos_selfservice_methods_link_config_lifespan && @@ -2197,44 +2294,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [created_at, disable_account_experience_welcome_screen, hydra_oauth2_allowed_top_level_claims, hydra_oauth2_client_credentials_default_grant_allowed_scope, hydra_oauth2_exclude_not_before_claim, hydra_oauth2_grant_jwt_iat_optional, hydra_oauth2_grant_jwt_jti_optional, hydra_oauth2_grant_jwt_max_ttl, hydra_oauth2_pkce_enforced, hydra_oauth2_pkce_enforced_for_public_clients, hydra_oauth2_refresh_token_hook, hydra_oauth2_token_hook, hydra_oidc_dynamic_client_registration_default_scope, hydra_oidc_dynamic_client_registration_enabled, hydra_oidc_subject_identifiers_pairwise_salt, hydra_oidc_subject_identifiers_supported_types, hydra_secrets_cookie, hydra_secrets_system, hydra_serve_cookies_same_site_legacy_workaround, hydra_serve_cookies_same_site_mode, hydra_strategies_access_token, hydra_strategies_scope, hydra_ttl_access_token, hydra_ttl_auth_code, hydra_ttl_id_token, hydra_ttl_login_consent_request, hydra_ttl_refresh_token, hydra_urls_consent, hydra_urls_error, hydra_urls_login, hydra_urls_logout, hydra_urls_post_logout_redirect, hydra_urls_registration, hydra_urls_self_issuer, hydra_webfinger_jwks_broadcast_keys, hydra_webfinger_oidc_discovery_auth_url, hydra_webfinger_oidc_discovery_client_registration_url, hydra_webfinger_oidc_discovery_jwks_url, hydra_webfinger_oidc_discovery_supported_claims, hydra_webfinger_oidc_discovery_supported_scope, hydra_webfinger_oidc_discovery_token_url, hydra_webfinger_oidc_discovery_userinfo_url, id, keto_namespace_configuration, keto_namespaces, kratos_cookies_same_site, kratos_courier_channels, kratos_courier_delivery_strategy, kratos_courier_http_request_config_auth_api_key_in, kratos_courier_http_request_config_auth_api_key_name, kratos_courier_http_request_config_auth_api_key_value, kratos_courier_http_request_config_auth_basic_auth_password, kratos_courier_http_request_config_auth_basic_auth_user, kratos_courier_http_request_config_auth_type, kratos_courier_http_request_config_body, kratos_courier_http_request_config_headers, kratos_courier_http_request_config_method, kratos_courier_http_request_config_url, kratos_courier_smtp_connection_uri, kratos_courier_smtp_from_address, kratos_courier_smtp_from_name, kratos_courier_smtp_headers, kratos_courier_smtp_local_name, kratos_courier_templates_login_code_valid_email_body_html, kratos_courier_templates_login_code_valid_email_body_plaintext, kratos_courier_templates_login_code_valid_email_subject, kratos_courier_templates_recovery_code_invalid_email_body_html, kratos_courier_templates_recovery_code_invalid_email_body_plaintext, kratos_courier_templates_recovery_code_invalid_email_subject, kratos_courier_templates_recovery_code_valid_email_body_html, kratos_courier_templates_recovery_code_valid_email_body_plaintext, kratos_courier_templates_recovery_code_valid_email_subject, kratos_courier_templates_recovery_invalid_email_body_html, kratos_courier_templates_recovery_invalid_email_body_plaintext, kratos_courier_templates_recovery_invalid_email_subject, kratos_courier_templates_recovery_valid_email_body_html, kratos_courier_templates_recovery_valid_email_body_plaintext, kratos_courier_templates_recovery_valid_email_subject, kratos_courier_templates_registration_code_valid_email_body_html, kratos_courier_templates_registration_code_valid_email_body_plaintext, kratos_courier_templates_registration_code_valid_email_subject, kratos_courier_templates_verification_code_invalid_email_body_html, kratos_courier_templates_verification_code_invalid_email_body_plaintext, kratos_courier_templates_verification_code_invalid_email_subject, kratos_courier_templates_verification_code_valid_email_body_html, kratos_courier_templates_verification_code_valid_email_body_plaintext, kratos_courier_templates_verification_code_valid_email_subject, kratos_courier_templates_verification_code_valid_sms_body_plaintext, kratos_courier_templates_verification_invalid_email_body_html, kratos_courier_templates_verification_invalid_email_body_plaintext, kratos_courier_templates_verification_invalid_email_subject, kratos_courier_templates_verification_valid_email_body_html, kratos_courier_templates_verification_valid_email_body_plaintext, kratos_courier_templates_verification_valid_email_subject, kratos_feature_flags_cacheable_sessions, kratos_feature_flags_use_continue_with_transitions, kratos_identity_schemas, kratos_oauth2_provider_headers, kratos_oauth2_provider_override_return_to, kratos_oauth2_provider_url, kratos_preview_default_read_consistency_level, kratos_secrets_cipher, kratos_secrets_cookie, kratos_secrets_default, kratos_selfservice_allowed_return_urls, kratos_selfservice_default_browser_return_url, kratos_selfservice_flows_error_ui_url, kratos_selfservice_flows_login_after_code_default_browser_return_url, kratos_selfservice_flows_login_after_default_browser_return_url, kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_login_after_oidc_default_browser_return_url, kratos_selfservice_flows_login_after_password_default_browser_return_url, kratos_selfservice_flows_login_after_totp_default_browser_return_url, kratos_selfservice_flows_login_after_webauthn_default_browser_return_url, kratos_selfservice_flows_login_lifespan, kratos_selfservice_flows_login_ui_url, kratos_selfservice_flows_logout_after_default_browser_return_url, kratos_selfservice_flows_recovery_after_default_browser_return_url, kratos_selfservice_flows_recovery_enabled, kratos_selfservice_flows_recovery_lifespan, kratos_selfservice_flows_recovery_notify_unknown_recipients, kratos_selfservice_flows_recovery_ui_url, kratos_selfservice_flows_recovery_use, kratos_selfservice_flows_registration_after_code_default_browser_return_url, kratos_selfservice_flows_registration_after_default_browser_return_url, kratos_selfservice_flows_registration_after_oidc_default_browser_return_url, kratos_selfservice_flows_registration_after_password_default_browser_return_url, kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url, kratos_selfservice_flows_registration_enabled, kratos_selfservice_flows_registration_lifespan, kratos_selfservice_flows_registration_login_hints, kratos_selfservice_flows_registration_ui_url, kratos_selfservice_flows_settings_after_default_browser_return_url, kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_settings_after_oidc_default_browser_return_url, kratos_selfservice_flows_settings_after_password_default_browser_return_url, kratos_selfservice_flows_settings_after_profile_default_browser_return_url, kratos_selfservice_flows_settings_after_totp_default_browser_return_url, kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url, kratos_selfservice_flows_settings_lifespan, kratos_selfservice_flows_settings_privileged_session_max_age, kratos_selfservice_flows_settings_required_aal, kratos_selfservice_flows_settings_ui_url, kratos_selfservice_flows_verification_after_default_browser_return_url, kratos_selfservice_flows_verification_enabled, kratos_selfservice_flows_verification_lifespan, kratos_selfservice_flows_verification_notify_unknown_recipients, kratos_selfservice_flows_verification_ui_url, kratos_selfservice_flows_verification_use, kratos_selfservice_methods_code_config_lifespan, kratos_selfservice_methods_code_enabled, kratos_selfservice_methods_code_passwordless_enabled, kratos_selfservice_methods_link_config_base_url, kratos_selfservice_methods_link_config_lifespan, kratos_selfservice_methods_link_enabled, kratos_selfservice_methods_lookup_secret_enabled, kratos_selfservice_methods_oidc_config_base_redirect_uri, kratos_selfservice_methods_oidc_config_providers, kratos_selfservice_methods_oidc_enabled, kratos_selfservice_methods_password_config_haveibeenpwned_enabled, kratos_selfservice_methods_password_config_identifier_similarity_check_enabled, kratos_selfservice_methods_password_config_ignore_network_errors, kratos_selfservice_methods_password_config_max_breaches, kratos_selfservice_methods_password_config_min_password_length, kratos_selfservice_methods_password_enabled, kratos_selfservice_methods_profile_enabled, kratos_selfservice_methods_totp_config_issuer, kratos_selfservice_methods_totp_enabled, kratos_selfservice_methods_webauthn_config_passwordless, kratos_selfservice_methods_webauthn_config_rp_display_name, kratos_selfservice_methods_webauthn_config_rp_icon, kratos_selfservice_methods_webauthn_config_rp_id, kratos_selfservice_methods_webauthn_config_rp_origins, kratos_selfservice_methods_webauthn_enabled, kratos_session_cookie_persistent, kratos_session_cookie_same_site, kratos_session_lifespan, kratos_session_whoami_required_aal, kratos_session_whoami_tokenizer_templates, name, project_id, project_revision_hooks, serve_admin_cors_allowed_origins, serve_admin_cors_enabled, serve_public_cors_allowed_origins, serve_public_cors_enabled, strict_security, updated_at, workspace_id].hash + [created_at, disable_account_experience_welcome_screen, enable_ax_v2, environment, hydra_oauth2_allowed_top_level_claims, hydra_oauth2_client_credentials_default_grant_allowed_scope, hydra_oauth2_exclude_not_before_claim, hydra_oauth2_grant_jwt_iat_optional, hydra_oauth2_grant_jwt_jti_optional, hydra_oauth2_grant_jwt_max_ttl, hydra_oauth2_mirror_top_level_claims, hydra_oauth2_pkce_enforced, hydra_oauth2_pkce_enforced_for_public_clients, hydra_oauth2_refresh_token_hook, hydra_oauth2_token_hook, hydra_oidc_dynamic_client_registration_default_scope, hydra_oidc_dynamic_client_registration_enabled, hydra_oidc_subject_identifiers_pairwise_salt, hydra_oidc_subject_identifiers_supported_types, hydra_secrets_cookie, hydra_secrets_system, hydra_serve_cookies_same_site_legacy_workaround, hydra_serve_cookies_same_site_mode, hydra_strategies_access_token, hydra_strategies_scope, hydra_ttl_access_token, hydra_ttl_auth_code, hydra_ttl_id_token, hydra_ttl_login_consent_request, hydra_ttl_refresh_token, hydra_urls_consent, hydra_urls_error, hydra_urls_login, hydra_urls_logout, hydra_urls_post_logout_redirect, hydra_urls_registration, hydra_urls_self_issuer, hydra_webfinger_jwks_broadcast_keys, hydra_webfinger_oidc_discovery_auth_url, hydra_webfinger_oidc_discovery_client_registration_url, hydra_webfinger_oidc_discovery_jwks_url, hydra_webfinger_oidc_discovery_supported_claims, hydra_webfinger_oidc_discovery_supported_scope, hydra_webfinger_oidc_discovery_token_url, hydra_webfinger_oidc_discovery_userinfo_url, id, keto_namespace_configuration, keto_namespaces, kratos_cookies_same_site, kratos_courier_channels, kratos_courier_delivery_strategy, kratos_courier_http_request_config_auth_api_key_in, kratos_courier_http_request_config_auth_api_key_name, kratos_courier_http_request_config_auth_api_key_value, kratos_courier_http_request_config_auth_basic_auth_password, kratos_courier_http_request_config_auth_basic_auth_user, kratos_courier_http_request_config_auth_type, kratos_courier_http_request_config_body, kratos_courier_http_request_config_headers, kratos_courier_http_request_config_method, kratos_courier_http_request_config_url, kratos_courier_smtp_connection_uri, kratos_courier_smtp_from_address, kratos_courier_smtp_from_name, kratos_courier_smtp_headers, kratos_courier_smtp_local_name, kratos_courier_templates_login_code_valid_email_body_html, kratos_courier_templates_login_code_valid_email_body_plaintext, kratos_courier_templates_login_code_valid_email_subject, kratos_courier_templates_login_code_valid_sms_body_plaintext, kratos_courier_templates_recovery_code_invalid_email_body_html, kratos_courier_templates_recovery_code_invalid_email_body_plaintext, kratos_courier_templates_recovery_code_invalid_email_subject, kratos_courier_templates_recovery_code_valid_email_body_html, kratos_courier_templates_recovery_code_valid_email_body_plaintext, kratos_courier_templates_recovery_code_valid_email_subject, kratos_courier_templates_recovery_invalid_email_body_html, kratos_courier_templates_recovery_invalid_email_body_plaintext, kratos_courier_templates_recovery_invalid_email_subject, kratos_courier_templates_recovery_valid_email_body_html, kratos_courier_templates_recovery_valid_email_body_plaintext, kratos_courier_templates_recovery_valid_email_subject, kratos_courier_templates_registration_code_valid_email_body_html, kratos_courier_templates_registration_code_valid_email_body_plaintext, kratos_courier_templates_registration_code_valid_email_subject, kratos_courier_templates_verification_code_invalid_email_body_html, kratos_courier_templates_verification_code_invalid_email_body_plaintext, kratos_courier_templates_verification_code_invalid_email_subject, kratos_courier_templates_verification_code_valid_email_body_html, kratos_courier_templates_verification_code_valid_email_body_plaintext, kratos_courier_templates_verification_code_valid_email_subject, kratos_courier_templates_verification_code_valid_sms_body_plaintext, kratos_courier_templates_verification_invalid_email_body_html, kratos_courier_templates_verification_invalid_email_body_plaintext, kratos_courier_templates_verification_invalid_email_subject, kratos_courier_templates_verification_valid_email_body_html, kratos_courier_templates_verification_valid_email_body_plaintext, kratos_courier_templates_verification_valid_email_subject, kratos_feature_flags_cacheable_sessions, kratos_feature_flags_use_continue_with_transitions, kratos_identity_schemas, kratos_oauth2_provider_headers, kratos_oauth2_provider_override_return_to, kratos_oauth2_provider_url, kratos_preview_default_read_consistency_level, kratos_secrets_cipher, kratos_secrets_cookie, kratos_secrets_default, kratos_selfservice_allowed_return_urls, kratos_selfservice_default_browser_return_url, kratos_selfservice_flows_error_ui_url, kratos_selfservice_flows_login_after_code_default_browser_return_url, kratos_selfservice_flows_login_after_default_browser_return_url, kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_login_after_oidc_default_browser_return_url, kratos_selfservice_flows_login_after_password_default_browser_return_url, kratos_selfservice_flows_login_after_totp_default_browser_return_url, kratos_selfservice_flows_login_after_webauthn_default_browser_return_url, kratos_selfservice_flows_login_lifespan, kratos_selfservice_flows_login_ui_url, kratos_selfservice_flows_logout_after_default_browser_return_url, kratos_selfservice_flows_recovery_after_default_browser_return_url, kratos_selfservice_flows_recovery_enabled, kratos_selfservice_flows_recovery_lifespan, kratos_selfservice_flows_recovery_notify_unknown_recipients, kratos_selfservice_flows_recovery_ui_url, kratos_selfservice_flows_recovery_use, kratos_selfservice_flows_registration_after_code_default_browser_return_url, kratos_selfservice_flows_registration_after_default_browser_return_url, kratos_selfservice_flows_registration_after_oidc_default_browser_return_url, kratos_selfservice_flows_registration_after_password_default_browser_return_url, kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url, kratos_selfservice_flows_registration_enabled, kratos_selfservice_flows_registration_lifespan, kratos_selfservice_flows_registration_login_hints, kratos_selfservice_flows_registration_ui_url, kratos_selfservice_flows_settings_after_default_browser_return_url, kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_settings_after_oidc_default_browser_return_url, kratos_selfservice_flows_settings_after_password_default_browser_return_url, kratos_selfservice_flows_settings_after_profile_default_browser_return_url, kratos_selfservice_flows_settings_after_totp_default_browser_return_url, kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url, kratos_selfservice_flows_settings_lifespan, kratos_selfservice_flows_settings_privileged_session_max_age, kratos_selfservice_flows_settings_required_aal, kratos_selfservice_flows_settings_ui_url, kratos_selfservice_flows_verification_after_default_browser_return_url, kratos_selfservice_flows_verification_enabled, kratos_selfservice_flows_verification_lifespan, kratos_selfservice_flows_verification_notify_unknown_recipients, kratos_selfservice_flows_verification_ui_url, kratos_selfservice_flows_verification_use, kratos_selfservice_methods_code_config_lifespan, kratos_selfservice_methods_code_enabled, kratos_selfservice_methods_code_mfa_enabled, kratos_selfservice_methods_code_passwordless_enabled, kratos_selfservice_methods_link_config_base_url, kratos_selfservice_methods_link_config_lifespan, kratos_selfservice_methods_link_enabled, kratos_selfservice_methods_lookup_secret_enabled, kratos_selfservice_methods_oidc_config_base_redirect_uri, kratos_selfservice_methods_oidc_config_providers, kratos_selfservice_methods_oidc_enabled, kratos_selfservice_methods_password_config_haveibeenpwned_enabled, kratos_selfservice_methods_password_config_identifier_similarity_check_enabled, kratos_selfservice_methods_password_config_ignore_network_errors, kratos_selfservice_methods_password_config_max_breaches, kratos_selfservice_methods_password_config_min_password_length, kratos_selfservice_methods_password_enabled, kratos_selfservice_methods_profile_enabled, kratos_selfservice_methods_totp_config_issuer, kratos_selfservice_methods_totp_enabled, kratos_selfservice_methods_webauthn_config_passwordless, kratos_selfservice_methods_webauthn_config_rp_display_name, kratos_selfservice_methods_webauthn_config_rp_icon, kratos_selfservice_methods_webauthn_config_rp_id, kratos_selfservice_methods_webauthn_config_rp_origins, kratos_selfservice_methods_webauthn_enabled, kratos_session_cookie_persistent, kratos_session_cookie_same_site, kratos_session_lifespan, kratos_session_whoami_required_aal, kratos_session_whoami_tokenizer_templates, name, project_id, project_revision_hooks, serve_admin_cors_allowed_origins, serve_admin_cors_enabled, serve_public_cors_allowed_origins, serve_public_cors_enabled, strict_security, updated_at, workspace_id].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -2269,7 +2359,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_recovery_code_for_identity_body.rb b/clients/client/ruby/lib/ory-client/models/create_recovery_code_for_identity_body.rb index 90d38473ef2..567a5fe5401 100644 --- a/clients/client/ruby/lib/ory-client/models/create_recovery_code_for_identity_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_recovery_code_for_identity_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,12 +70,15 @@ def initialize(attributes = {}) if attributes.key?(:'identity_id') self.identity_id = attributes[:'identity_id'] + else + self.identity_id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^([0-9]+(ns|us|ms|s|m|h))*$/) if !@expires_in.nil? && @expires_in !~ pattern @@ -92,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@expires_in.nil? && @expires_in !~ Regexp.new(/^([0-9]+(ns|us|ms|s|m|h))*$/) return false if @identity_id.nil? true @@ -100,8 +104,12 @@ def valid? # Custom attribute writer method with validation # @param [Object] expires_in Value to be assigned def expires_in=(expires_in) + if expires_in.nil? + fail ArgumentError, 'expires_in cannot be nil' + end + pattern = Regexp.new(/^([0-9]+(ns|us|ms|s|m|h))*$/) - if !expires_in.nil? && expires_in !~ pattern + if expires_in !~ pattern fail ArgumentError, "invalid value for \"expires_in\", must conform to the pattern #{pattern}." end @@ -133,37 +141,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -198,7 +199,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_recovery_link_for_identity_body.rb b/clients/client/ruby/lib/ory-client/models/create_recovery_link_for_identity_body.rb index ab4a5494eb1..a9257487eee 100644 --- a/clients/client/ruby/lib/ory-client/models/create_recovery_link_for_identity_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_recovery_link_for_identity_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,12 +70,15 @@ def initialize(attributes = {}) if attributes.key?(:'identity_id') self.identity_id = attributes[:'identity_id'] + else + self.identity_id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) if !@expires_in.nil? && @expires_in !~ pattern @@ -92,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@expires_in.nil? && @expires_in !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) return false if @identity_id.nil? true @@ -100,8 +104,12 @@ def valid? # Custom attribute writer method with validation # @param [Object] expires_in Value to be assigned def expires_in=(expires_in) + if expires_in.nil? + fail ArgumentError, 'expires_in cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !expires_in.nil? && expires_in !~ pattern + if expires_in !~ pattern fail ArgumentError, "invalid value for \"expires_in\", must conform to the pattern #{pattern}." end @@ -133,37 +141,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -198,7 +199,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_relationship_body.rb b/clients/client/ruby/lib/ory-client/models/create_relationship_body.rb index d504952819d..c44c82a64c9 100644 --- a/clients/client/ruby/lib/ory-client/models/create_relationship_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_relationship_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -102,6 +102,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -109,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -140,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -205,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_subscription_body.rb b/clients/client/ruby/lib/ory-client/models/create_subscription_body.rb index 9a7dd933e07..33b1bd224c3 100644 --- a/clients/client/ruby/lib/ory-client/models/create_subscription_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_subscription_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -14,7 +14,6 @@ require 'time' module OryClient - # Create Subscription Request Body class CreateSubscriptionBody # usd USD eur Euro attr_accessor :currency @@ -28,8 +27,6 @@ class CreateSubscriptionBody attr_accessor :return_to - attr_accessor :workspace - class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -59,8 +56,7 @@ def self.attribute_map :'interval' => :'interval', :'plan' => :'plan', :'provision_first_project' => :'provision_first_project', - :'return_to' => :'return_to', - :'workspace' => :'workspace' + :'return_to' => :'return_to' } end @@ -76,16 +72,13 @@ def self.openapi_types :'interval' => :'String', :'plan' => :'String', :'provision_first_project' => :'String', - :'return_to' => :'String', - :'workspace' => :'String' + :'return_to' => :'String' } end # List of attributes with nullable: true def self.openapi_nullable Set.new([ - :'provision_first_project', - :'workspace' ]) end @@ -110,28 +103,31 @@ def initialize(attributes = {}) if attributes.key?(:'interval') self.interval = attributes[:'interval'] + else + self.interval = nil end if attributes.key?(:'plan') self.plan = attributes[:'plan'] + else + self.plan = nil end if attributes.key?(:'provision_first_project') self.provision_first_project = attributes[:'provision_first_project'] + else + self.provision_first_project = nil end if attributes.key?(:'return_to') self.return_to = attributes[:'return_to'] end - - if attributes.key?(:'workspace') - self.workspace = attributes[:'workspace'] - end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @interval.nil? invalid_properties.push('invalid value for "interval", interval cannot be nil.') @@ -141,18 +137,24 @@ def list_invalid_properties invalid_properties.push('invalid value for "plan", plan cannot be nil.') end + if @provision_first_project.nil? + invalid_properties.push('invalid value for "provision_first_project", provision_first_project cannot be nil.') + end + invalid_properties end # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' currency_validator = EnumAttributeValidator.new('String', ["usd", "eur"]) return false unless currency_validator.valid?(@currency) return false if @interval.nil? interval_validator = EnumAttributeValidator.new('String', ["monthly", "yearly"]) return false unless interval_validator.valid?(@interval) return false if @plan.nil? + return false if @provision_first_project.nil? true end @@ -185,8 +187,7 @@ def ==(o) interval == o.interval && plan == o.plan && provision_first_project == o.provision_first_project && - return_to == o.return_to && - workspace == o.workspace + return_to == o.return_to end # @see the `==` method @@ -198,44 +199,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [currency, interval, plan, provision_first_project, return_to, workspace].hash + [currency, interval, plan, provision_first_project, return_to].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -270,7 +264,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/internal_provision_mock_subscription.rb b/clients/client/ruby/lib/ory-client/models/create_subscription_common.rb similarity index 78% rename from clients/client/ruby/lib/ory-client/models/internal_provision_mock_subscription.rb rename to clients/client/ruby/lib/ory-client/models/create_subscription_common.rb index 1df5b646b30..a218617b34b 100644 --- a/clients/client/ruby/lib/ory-client/models/internal_provision_mock_subscription.rb +++ b/clients/client/ruby/lib/ory-client/models/create_subscription_common.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -14,20 +14,17 @@ require 'time' module OryClient - # Internal Provision Mock Subscription Request Body - class InternalProvisionMockSubscription - # Currency usd USD eur Euro + class CreateSubscriptionCommon + # usd USD eur Euro attr_accessor :currency - # Identity ID - attr_accessor :identity_id - - # Billing Interval monthly Monthly yearly Yearly + # monthly Monthly yearly Yearly attr_accessor :interval - # Plan ID attr_accessor :plan + attr_accessor :return_to + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -54,9 +51,9 @@ def valid?(value) def self.attribute_map { :'currency' => :'currency', - :'identity_id' => :'identity_id', :'interval' => :'interval', - :'plan' => :'plan' + :'plan' => :'plan', + :'return_to' => :'return_to' } end @@ -69,9 +66,9 @@ def self.acceptable_attributes def self.openapi_types { :'currency' => :'String', - :'identity_id' => :'String', :'interval' => :'String', - :'plan' => :'String' + :'plan' => :'String', + :'return_to' => :'String' } end @@ -85,13 +82,13 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::InternalProvisionMockSubscription` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::CreateSubscriptionCommon` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::InternalProvisionMockSubscription`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::CreateSubscriptionCommon`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect end h[k.to_sym] = v } @@ -100,31 +97,28 @@ def initialize(attributes = {}) self.currency = attributes[:'currency'] end - if attributes.key?(:'identity_id') - self.identity_id = attributes[:'identity_id'] - end - if attributes.key?(:'interval') self.interval = attributes[:'interval'] + else + self.interval = nil end if attributes.key?(:'plan') self.plan = attributes[:'plan'] + else + self.plan = nil + end + + if attributes.key?(:'return_to') + self.return_to = attributes[:'return_to'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @currency.nil? - invalid_properties.push('invalid value for "currency", currency cannot be nil.') - end - - if @identity_id.nil? - invalid_properties.push('invalid value for "identity_id", identity_id cannot be nil.') - end - if @interval.nil? invalid_properties.push('invalid value for "interval", interval cannot be nil.') end @@ -139,10 +133,9 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? - return false if @currency.nil? + warn '[DEPRECATED] the `valid?` method is obsolete' currency_validator = EnumAttributeValidator.new('String', ["usd", "eur"]) return false unless currency_validator.valid?(@currency) - return false if @identity_id.nil? return false if @interval.nil? interval_validator = EnumAttributeValidator.new('String', ["monthly", "yearly"]) return false unless interval_validator.valid?(@interval) @@ -176,9 +169,9 @@ def ==(o) return true if self.equal?(o) self.class == o.class && currency == o.currency && - identity_id == o.identity_id && interval == o.interval && - plan == o.plan + plan == o.plan && + return_to == o.return_to end # @see the `==` method @@ -190,44 +183,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [currency, identity_id, interval, plan].hash + [currency, interval, plan, return_to].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -262,7 +248,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_verifiable_credential_request_body.rb b/clients/client/ruby/lib/ory-client/models/create_verifiable_credential_request_body.rb index d572689524a..00cd9578fad 100644 --- a/clients/client/ruby/lib/ory-client/models/create_verifiable_credential_request_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_verifiable_credential_request_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -83,6 +83,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -90,6 +91,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -119,37 +121,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -184,7 +179,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_workspace_member_invite_body.rb b/clients/client/ruby/lib/ory-client/models/create_workspace_member_invite_body.rb index dc41e9924d2..036c937186b 100644 --- a/clients/client/ruby/lib/ory-client/models/create_workspace_member_invite_body.rb +++ b/clients/client/ruby/lib/ory-client/models/create_workspace_member_invite_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -67,6 +67,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -74,6 +75,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -101,37 +103,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -166,7 +161,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/create_workspace_payload.rb b/clients/client/ruby/lib/ory-client/models/create_workspace_payload.rb new file mode 100644 index 00000000000..f0cf331f426 --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/create_workspace_payload.rb @@ -0,0 +1,222 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class CreateWorkspacePayload + # The name of the workspace + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'name' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::CreateWorkspacePayload` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::CreateWorkspacePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @name.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + name == o.name + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [name].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/create_workspace_subscription_body.rb b/clients/client/ruby/lib/ory-client/models/create_workspace_subscription_body.rb new file mode 100644 index 00000000000..0d9c6b2a55b --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/create_workspace_subscription_body.rb @@ -0,0 +1,303 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class CreateWorkspaceSubscriptionBody + # usd USD eur Euro + attr_accessor :currency + + # monthly Monthly yearly Yearly + attr_accessor :interval + + attr_accessor :plan + + attr_accessor :return_to + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'currency' => :'currency', + :'interval' => :'interval', + :'plan' => :'plan', + :'return_to' => :'return_to' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'currency' => :'String', + :'interval' => :'String', + :'plan' => :'String', + :'return_to' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::CreateWorkspaceSubscriptionBody` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::CreateWorkspaceSubscriptionBody`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'currency') + self.currency = attributes[:'currency'] + end + + if attributes.key?(:'interval') + self.interval = attributes[:'interval'] + else + self.interval = nil + end + + if attributes.key?(:'plan') + self.plan = attributes[:'plan'] + else + self.plan = nil + end + + if attributes.key?(:'return_to') + self.return_to = attributes[:'return_to'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @interval.nil? + invalid_properties.push('invalid value for "interval", interval cannot be nil.') + end + + if @plan.nil? + invalid_properties.push('invalid value for "plan", plan cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + currency_validator = EnumAttributeValidator.new('String', ["usd", "eur"]) + return false unless currency_validator.valid?(@currency) + return false if @interval.nil? + interval_validator = EnumAttributeValidator.new('String', ["monthly", "yearly"]) + return false unless interval_validator.valid?(@interval) + return false if @plan.nil? + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] currency Object to be assigned + def currency=(currency) + validator = EnumAttributeValidator.new('String', ["usd", "eur"]) + unless validator.valid?(currency) + fail ArgumentError, "invalid value for \"currency\", must be one of #{validator.allowable_values}." + end + @currency = currency + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] interval Object to be assigned + def interval=(interval) + validator = EnumAttributeValidator.new('String', ["monthly", "yearly"]) + unless validator.valid?(interval) + fail ArgumentError, "invalid value for \"interval\", must be one of #{validator.allowable_values}." + end + @interval = interval + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + currency == o.currency && + interval == o.interval && + plan == o.plan && + return_to == o.return_to + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [currency, interval, plan, return_to].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/credential_supported_draft00.rb b/clients/client/ruby/lib/ory-client/models/credential_supported_draft00.rb index 8d8dae2ee97..8a75c3004b4 100644 --- a/clients/client/ruby/lib/ory-client/models/credential_supported_draft00.rb +++ b/clients/client/ruby/lib/ory-client/models/credential_supported_draft00.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -100,6 +100,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -107,6 +108,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -137,37 +139,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -202,7 +197,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/custom_domain.rb b/clients/client/ruby/lib/ory-client/models/custom_domain.rb index 9b7349dbb43..b6dc22c6add 100644 --- a/clients/client/ruby/lib/ory-client/models/custom_domain.rb +++ b/clients/client/ruby/lib/ory-client/models/custom_domain.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -172,6 +172,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -179,6 +180,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' ssl_status_validator = EnumAttributeValidator.new('String', ["initializing", "pending_validation", "deleted", "pending_issuance", "pending_deployment", "pending_deletion", "pending_expiration", "expired", "active", "initializing_timed_out", "validation_timed_out", "issuance_timed_out", "deployment_timed_out", "deletion_timed_out", "pending_cleanup", "staging_deployment", "staging_active", "deactivating", "inactive", "backup_issued", "holding_deployment", ""]) return false unless ssl_status_validator.valid?(@ssl_status) true @@ -228,37 +230,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -293,7 +288,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/delete_my_sessions_count.rb b/clients/client/ruby/lib/ory-client/models/delete_my_sessions_count.rb index fbb5e603581..d32888ee3e0 100644 --- a/clients/client/ruby/lib/ory-client/models/delete_my_sessions_count.rb +++ b/clients/client/ruby/lib/ory-client/models/delete_my_sessions_count.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -67,6 +67,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -74,6 +75,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -101,37 +103,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -166,7 +161,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/email_template_data.rb b/clients/client/ruby/lib/ory-client/models/email_template_data.rb index a11f8e3d2b0..eb2c7ac5100 100644 --- a/clients/client/ruby/lib/ory-client/models/email_template_data.rb +++ b/clients/client/ruby/lib/ory-client/models/email_template_data.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -64,16 +64,21 @@ def initialize(attributes = {}) if attributes.key?(:'body') self.body = attributes[:'body'] + else + self.body = nil end if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @body.nil? invalid_properties.push('invalid value for "body", body cannot be nil.') @@ -89,6 +94,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @body.nil? return false if @subject.nil? true @@ -119,37 +125,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -184,7 +183,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/email_template_data_body.rb b/clients/client/ruby/lib/ory-client/models/email_template_data_body.rb index 4d276bafc4f..4c7be2eab2e 100644 --- a/clients/client/ruby/lib/ory-client/models/email_template_data_body.rb +++ b/clients/client/ruby/lib/ory-client/models/email_template_data_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -63,16 +63,21 @@ def initialize(attributes = {}) if attributes.key?(:'html') self.html = attributes[:'html'] + else + self.html = nil end if attributes.key?(:'plaintext') self.plaintext = attributes[:'plaintext'] + else + self.plaintext = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @html.nil? invalid_properties.push('invalid value for "html", html cannot be nil.') @@ -88,6 +93,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @html.nil? return false if @plaintext.nil? true @@ -118,37 +124,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -183,7 +182,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb b/clients/client/ruby/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb index 0dbfff9c60e..0a6e26480d4 100644 --- a/clients/client/ruby/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb +++ b/clients/client/ruby/lib/ory-client/models/error_authenticator_assurance_level_not_satisfied.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -74,6 +74,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -81,6 +82,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -109,37 +111,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -174,7 +169,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/error_browser_location_change_required.rb b/clients/client/ruby/lib/ory-client/models/error_browser_location_change_required.rb index 228dfcebf30..e7528a29e32 100644 --- a/clients/client/ruby/lib/ory-client/models/error_browser_location_change_required.rb +++ b/clients/client/ruby/lib/ory-client/models/error_browser_location_change_required.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -74,6 +74,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -81,6 +82,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -109,37 +111,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -174,7 +169,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/error_flow_replaced.rb b/clients/client/ruby/lib/ory-client/models/error_flow_replaced.rb index 24ecfab52b1..3e143c975aa 100644 --- a/clients/client/ruby/lib/ory-client/models/error_flow_replaced.rb +++ b/clients/client/ruby/lib/ory-client/models/error_flow_replaced.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -75,6 +75,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -82,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -110,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -175,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/error_generic.rb b/clients/client/ruby/lib/ory-client/models/error_generic.rb index 87cbf02ff03..ccf83dcc7c7 100644 --- a/clients/client/ruby/lib/ory-client/models/error_generic.rb +++ b/clients/client/ruby/lib/ory-client/models/error_generic.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -60,12 +60,15 @@ def initialize(attributes = {}) if attributes.key?(:'error') self.error = attributes[:'error'] + else + self.error = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @error.nil? invalid_properties.push('invalid value for "error", error cannot be nil.') @@ -77,6 +80,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @error.nil? true end @@ -105,37 +109,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -170,7 +167,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/error_o_auth2.rb b/clients/client/ruby/lib/ory-client/models/error_o_auth2.rb index 93f7e45e47f..5c6f50c8a55 100644 --- a/clients/client/ruby/lib/ory-client/models/error_o_auth2.rb +++ b/clients/client/ruby/lib/ory-client/models/error_o_auth2.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -103,6 +103,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -110,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -141,37 +143,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -206,7 +201,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/event_stream.rb b/clients/client/ruby/lib/ory-client/models/event_stream.rb index e34b8bc9619..ea3b299a390 100644 --- a/clients/client/ruby/lib/ory-client/models/event_stream.rb +++ b/clients/client/ruby/lib/ory-client/models/event_stream.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -106,6 +106,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -113,6 +114,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -145,37 +147,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -210,7 +205,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/expanded_permission_tree.rb b/clients/client/ruby/lib/ory-client/models/expanded_permission_tree.rb index c3328620637..cd784176a75 100644 --- a/clients/client/ruby/lib/ory-client/models/expanded_permission_tree.rb +++ b/clients/client/ruby/lib/ory-client/models/expanded_permission_tree.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -101,12 +101,15 @@ def initialize(attributes = {}) if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @type.nil? invalid_properties.push('invalid value for "type", type cannot be nil.') @@ -118,6 +121,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @type.nil? type_validator = EnumAttributeValidator.new('String', ["union", "exclusion", "intersection", "leaf", "tuple_to_subject_set", "computed_subject_set", "not", "unspecified"]) return false unless type_validator.valid?(@type) @@ -160,37 +164,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -225,7 +222,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/flow_error.rb b/clients/client/ruby/lib/ory-client/models/flow_error.rb index 682e22f701f..63202c01969 100644 --- a/clients/client/ruby/lib/ory-client/models/flow_error.rb +++ b/clients/client/ruby/lib/ory-client/models/flow_error.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -82,6 +82,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'updated_at') @@ -92,6 +94,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -103,6 +106,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? true end @@ -134,37 +138,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -199,7 +196,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/generic_error.rb b/clients/client/ruby/lib/ory-client/models/generic_error.rb index 7499847f250..5ada6906ea9 100644 --- a/clients/client/ruby/lib/ory-client/models/generic_error.rb +++ b/clients/client/ruby/lib/ory-client/models/generic_error.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -121,6 +121,8 @@ def initialize(attributes = {}) if attributes.key?(:'message') self.message = attributes[:'message'] + else + self.message = nil end if attributes.key?(:'reason') @@ -139,6 +141,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @message.nil? invalid_properties.push('invalid value for "message", message cannot be nil.') @@ -150,6 +153,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @message.nil? true end @@ -186,37 +190,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -251,7 +248,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/generic_error_content.rb b/clients/client/ruby/lib/ory-client/models/generic_error_content.rb index 838c2487705..542b4aa0dee 100644 --- a/clients/client/ruby/lib/ory-client/models/generic_error_content.rb +++ b/clients/client/ruby/lib/ory-client/models/generic_error_content.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -103,6 +103,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -110,6 +111,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -141,37 +143,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -206,7 +201,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/generic_usage.rb b/clients/client/ruby/lib/ory-client/models/generic_usage.rb index 8cdd4455597..fd1d9a7f71b 100644 --- a/clients/client/ruby/lib/ory-client/models/generic_usage.rb +++ b/clients/client/ruby/lib/ory-client/models/generic_usage.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,16 +65,21 @@ def initialize(attributes = {}) if attributes.key?(:'additional_price') self.additional_price = attributes[:'additional_price'] + else + self.additional_price = nil end if attributes.key?(:'included_usage') self.included_usage = attributes[:'included_usage'] + else + self.included_usage = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @additional_price.nil? invalid_properties.push('invalid value for "additional_price", additional_price cannot be nil.') @@ -90,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @additional_price.nil? return false if @included_usage.nil? true @@ -120,37 +126,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -185,7 +184,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_attributes_count_response.rb b/clients/client/ruby/lib/ory-client/models/get_attributes_count_response.rb index 1991fb5f115..cbd09f16f39 100644 --- a/clients/client/ruby/lib/ory-client/models/get_attributes_count_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_attributes_count_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -63,12 +63,15 @@ def initialize(attributes = {}) if (value = attributes[:'data']).is_a?(Array) self.data = value end + else + self.data = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') @@ -80,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @data.nil? true end @@ -108,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_managed_identity_schema_location.rb b/clients/client/ruby/lib/ory-client/models/get_managed_identity_schema_location.rb index bb55b24c9fa..2e0ca6a2892 100644 --- a/clients/client/ruby/lib/ory-client/models/get_managed_identity_schema_location.rb +++ b/clients/client/ruby/lib/ory-client/models/get_managed_identity_schema_location.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_metrics_event_attributes_response.rb b/clients/client/ruby/lib/ory-client/models/get_metrics_event_attributes_response.rb index 29fc4404252..7b4057799ab 100644 --- a/clients/client/ruby/lib/ory-client/models/get_metrics_event_attributes_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_metrics_event_attributes_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -63,12 +63,15 @@ def initialize(attributes = {}) if (value = attributes[:'events']).is_a?(Array) self.events = value end + else + self.events = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @events.nil? invalid_properties.push('invalid value for "events", events cannot be nil.') @@ -80,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @events.nil? true end @@ -108,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_metrics_event_types_response.rb b/clients/client/ruby/lib/ory-client/models/get_metrics_event_types_response.rb index 786b9cf6fc0..96214c85601 100644 --- a/clients/client/ruby/lib/ory-client/models/get_metrics_event_types_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_metrics_event_types_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -63,12 +63,15 @@ def initialize(attributes = {}) if (value = attributes[:'events']).is_a?(Array) self.events = value end + else + self.events = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @events.nil? invalid_properties.push('invalid value for "events", events cannot be nil.') @@ -80,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @events.nil? true end @@ -108,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_organization_response.rb b/clients/client/ruby/lib/ory-client/models/get_organization_response.rb index 1b4ba80013b..5124c5c65a7 100644 --- a/clients/client/ruby/lib/ory-client/models/get_organization_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_organization_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -59,12 +59,15 @@ def initialize(attributes = {}) if attributes.key?(:'organization') self.organization = attributes[:'organization'] + else + self.organization = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @organization.nil? invalid_properties.push('invalid value for "organization", organization cannot be nil.') @@ -76,6 +79,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @organization.nil? true end @@ -104,37 +108,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -169,7 +166,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_project_events_body.rb b/clients/client/ruby/lib/ory-client/models/get_project_events_body.rb index 7d06cbf3aca..6b100657f88 100644 --- a/clients/client/ruby/lib/ory-client/models/get_project_events_body.rb +++ b/clients/client/ruby/lib/ory-client/models/get_project_events_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -96,6 +96,8 @@ def initialize(attributes = {}) if attributes.key?(:'from') self.from = attributes[:'from'] + else + self.from = nil end if attributes.key?(:'page_size') @@ -110,12 +112,15 @@ def initialize(attributes = {}) if attributes.key?(:'to') self.to = attributes[:'to'] + else + self.to = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @from.nil? invalid_properties.push('invalid value for "from", from cannot be nil.') @@ -131,6 +136,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @from.nil? return false if @to.nil? true @@ -165,37 +171,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -230,7 +229,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_project_events_response.rb b/clients/client/ruby/lib/ory-client/models/get_project_events_response.rb index b8627e70d41..750e65da66f 100644 --- a/clients/client/ruby/lib/ory-client/models/get_project_events_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_project_events_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -68,6 +68,8 @@ def initialize(attributes = {}) if (value = attributes[:'events']).is_a?(Array) self.events = value end + else + self.events = nil end if attributes.key?(:'page_token') @@ -78,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @events.nil? invalid_properties.push('invalid value for "events", events cannot be nil.') @@ -89,6 +92,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @events.nil? true end @@ -118,37 +122,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -183,7 +180,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_project_metrics_response.rb b/clients/client/ruby/lib/ory-client/models/get_project_metrics_response.rb index af9ca4293f0..bd37765c763 100644 --- a/clients/client/ruby/lib/ory-client/models/get_project_metrics_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_project_metrics_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -63,12 +63,15 @@ def initialize(attributes = {}) if (value = attributes[:'data']).is_a?(Array) self.data = value end + else + self.data = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') @@ -80,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @data.nil? true end @@ -108,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_session_activity_response.rb b/clients/client/ruby/lib/ory-client/models/get_session_activity_response.rb index 2c3b5f3cde4..c18995e4d84 100644 --- a/clients/client/ruby/lib/ory-client/models/get_session_activity_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_session_activity_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -63,12 +63,15 @@ def initialize(attributes = {}) if (value = attributes[:'data']).is_a?(Array) self.data = value end + else + self.data = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') @@ -80,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @data.nil? true end @@ -108,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/get_version200_response.rb b/clients/client/ruby/lib/ory-client/models/get_version200_response.rb index 0bf5dd8569f..ae8e3a18073 100644 --- a/clients/client/ruby/lib/ory-client/models/get_version200_response.rb +++ b/clients/client/ruby/lib/ory-client/models/get_version200_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -60,12 +60,15 @@ def initialize(attributes = {}) if attributes.key?(:'version') self.version = attributes[:'version'] + else + self.version = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @version.nil? invalid_properties.push('invalid value for "version", version cannot be nil.') @@ -77,6 +80,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @version.nil? true end @@ -105,37 +109,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -170,7 +167,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/health_not_ready_status.rb b/clients/client/ruby/lib/ory-client/models/health_not_ready_status.rb index 7304ad0d38f..f551d50a125 100644 --- a/clients/client/ruby/lib/ory-client/models/health_not_ready_status.rb +++ b/clients/client/ruby/lib/ory-client/models/health_not_ready_status.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -68,6 +68,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -75,6 +76,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -102,37 +104,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -167,7 +162,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/health_status.rb b/clients/client/ruby/lib/ory-client/models/health_status.rb index 2f3d71e4628..e1d7ce2ece3 100644 --- a/clients/client/ruby/lib/ory-client/models/health_status.rb +++ b/clients/client/ruby/lib/ory-client/models/health_status.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity.rb b/clients/client/ruby/lib/ory-client/models/identity.rb index 6b74788b3fc..697502e7510 100644 --- a/clients/client/ruby/lib/ory-client/models/identity.rb +++ b/clients/client/ruby/lib/ory-client/models/identity.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -42,6 +42,7 @@ class Identity # SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url attr_accessor :schema_url + # State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive attr_accessor :state attr_accessor :state_changed_at @@ -55,6 +56,28 @@ class Identity # VerifiableAddresses contains all the addresses that can be verified by the user. attr_accessor :verifiable_addresses + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -92,7 +115,7 @@ def self.openapi_types :'recovery_addresses' => :'Array', :'schema_id' => :'String', :'schema_url' => :'String', - :'state' => :'IdentityState', + :'state' => :'String', :'state_changed_at' => :'Time', :'traits' => :'Object', :'updated_at' => :'Time', @@ -137,6 +160,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'metadata_admin') @@ -159,10 +184,14 @@ def initialize(attributes = {}) if attributes.key?(:'schema_id') self.schema_id = attributes[:'schema_id'] + else + self.schema_id = nil end if attributes.key?(:'schema_url') self.schema_url = attributes[:'schema_url'] + else + self.schema_url = nil end if attributes.key?(:'state') @@ -175,6 +204,8 @@ def initialize(attributes = {}) if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil end if attributes.key?(:'updated_at') @@ -191,6 +222,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -210,12 +242,25 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @schema_id.nil? return false if @schema_url.nil? + state_validator = EnumAttributeValidator.new('String', ["active", "inactive"]) + return false unless state_validator.valid?(@state) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] state Object to be assigned + def state=(state) + validator = EnumAttributeValidator.new('String', ["active", "inactive"]) + unless validator.valid?(state) + fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." + end + @state = state + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -253,37 +298,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -318,7 +356,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_credentials.rb b/clients/client/ruby/lib/ory-client/models/identity_credentials.rb index fb1dc878db9..549f63258e2 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_credentials.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_credentials.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -24,6 +24,7 @@ class IdentityCredentials # Identifiers represents a list of unique identifiers this credential type matches. attr_accessor :identifiers + # Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 attr_accessor :type # UpdatedAt is a helper struct field for gobuffalo.pop. @@ -32,6 +33,28 @@ class IdentityCredentials # Version refers to the version of the credential. Useful when changing the config schema. attr_accessor :version + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -55,7 +78,7 @@ def self.openapi_types :'config' => :'Object', :'created_at' => :'Time', :'identifiers' => :'Array', - :'type' => :'IdentityCredentialsType', + :'type' => :'String', :'updated_at' => :'Time', :'version' => :'Integer' } @@ -112,6 +135,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -119,9 +143,22 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + type_validator = EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + return false unless type_validator.valid?(@type) true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] type Object to be assigned + def type=(type) + validator = EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + unless validator.valid?(type) + fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}." + end + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -151,37 +188,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -216,7 +246,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_credentials_code.rb b/clients/client/ruby/lib/ory-client/models/identity_credentials_code.rb index 7a67d0d1c43..b39bb2bd112 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_credentials_code.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_credentials_code.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -16,6 +16,7 @@ module OryClient # CredentialsCode represents a one time login/registration code class IdentityCredentialsCode + # The type of the address for this code attr_accessor :address_type attr_accessor :used_at @@ -75,6 +76,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -82,6 +84,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -110,37 +113,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -175,7 +171,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc.rb b/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc.rb index 0fde4077385..73f67152b70 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -67,6 +67,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -74,6 +75,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -101,37 +103,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -166,7 +161,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc_provider.rb b/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc_provider.rb index 47d6a15b725..868c3248ec9 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc_provider.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_credentials_oidc_provider.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -105,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -112,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -144,37 +146,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -209,7 +204,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_credentials_password.rb b/clients/client/ruby/lib/ory-client/models/identity_credentials_password.rb index 27ec497b0e5..10ed2b3f77b 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_credentials_password.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_credentials_password.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_credentials_type.rb b/clients/client/ruby/lib/ory-client/models/identity_credentials_type.rb deleted file mode 100644 index ea29f8e0cee..00000000000 --- a/clients/client/ruby/lib/ory-client/models/identity_credentials_type.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'date' -require 'time' - -module OryClient - class IdentityCredentialsType - PASSWORD = "password".freeze - TOTP = "totp".freeze - OIDC = "oidc".freeze - WEBAUTHN = "webauthn".freeze - LOOKUP_SECRET = "lookup_secret".freeze - CODE = "code".freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def self.build_from_hash(value) - new.build_from_hash(value) - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = IdentityCredentialsType.constants.select { |c| IdentityCredentialsType::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #IdentityCredentialsType" if constantValues.empty? - value - end - end -end diff --git a/clients/client/ruby/lib/ory-client/models/identity_patch.rb b/clients/client/ruby/lib/ory-client/models/identity_patch.rb index 152e9bca9f5..fcdc415c8dc 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_patch.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_patch.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -75,6 +75,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -82,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -110,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -175,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_patch_response.rb b/clients/client/ruby/lib/ory-client/models/identity_patch_response.rb index aa4699b6f71..bafea1b5ee3 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_patch_response.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_patch_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -107,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -114,6 +115,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' action_validator = EnumAttributeValidator.new('String', ["create"]) return false unless action_validator.valid?(@action) true @@ -155,37 +157,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -220,7 +215,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_schema_container.rb b/clients/client/ruby/lib/ory-client/models/identity_schema_container.rb index d3ed5fd9821..6a04c562c5c 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_schema_container.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_schema_container.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,6 +76,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -83,6 +84,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -111,37 +113,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -176,7 +171,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_schema_preset.rb b/clients/client/ruby/lib/ory-client/models/identity_schema_preset.rb index 957fd280240..8014ba5a374 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_schema_preset.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_schema_preset.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,16 +65,21 @@ def initialize(attributes = {}) if attributes.key?(:'schema') self.schema = attributes[:'schema'] + else + self.schema = nil end if attributes.key?(:'url') self.url = attributes[:'url'] + else + self.url = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @schema.nil? invalid_properties.push('invalid value for "schema", schema cannot be nil.') @@ -90,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @schema.nil? return false if @url.nil? true @@ -120,37 +126,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -185,7 +184,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_state.rb b/clients/client/ruby/lib/ory-client/models/identity_state.rb deleted file mode 100644 index 5119b96f1e6..00000000000 --- a/clients/client/ruby/lib/ory-client/models/identity_state.rb +++ /dev/null @@ -1,37 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'date' -require 'time' - -module OryClient - class IdentityState - ACTIVE = "active".freeze - INACTIVE = "inactive".freeze - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def self.build_from_hash(value) - new.build_from_hash(value) - end - - # Builds the enum from string - # @param [String] The enum value in the form of the string - # @return [String] The enum value - def build_from_hash(value) - constantValues = IdentityState.constants.select { |c| IdentityState::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #IdentityState" if constantValues.empty? - value - end - end -end diff --git a/clients/client/ruby/lib/ory-client/models/identity_with_credentials.rb b/clients/client/ruby/lib/ory-client/models/identity_with_credentials.rb index 0568b1ec419..f8f9f902e88 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_with_credentials.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_with_credentials.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -74,6 +74,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -81,6 +82,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -109,37 +111,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -174,7 +169,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc.rb b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc.rb index 3320e2a084d..60367ffcb5c 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config.rb b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config.rb index 03c769a2838..2a4a53fece0 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,6 +76,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -83,6 +84,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -111,37 +113,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -176,7 +171,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb index 65213744d4d..8a881ea76c4 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_oidc_config_provider.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,16 +66,21 @@ def initialize(attributes = {}) if attributes.key?(:'provider') self.provider = attributes[:'provider'] + else + self.provider = nil end if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @provider.nil? invalid_properties.push('invalid value for "provider", provider cannot be nil.') @@ -91,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @provider.nil? return false if @subject.nil? true @@ -121,37 +127,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -186,7 +185,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password.rb b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password.rb index 588491f59af..e5a63ac0b5b 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password_config.rb b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password_config.rb index 8ece026b793..d374a08c20d 100644 --- a/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password_config.rb +++ b/clients/client/ruby/lib/ory-client/models/identity_with_credentials_password_config.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,6 +76,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -83,6 +84,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -111,37 +113,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -176,7 +171,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/internal_get_project_branding_body.rb b/clients/client/ruby/lib/ory-client/models/internal_get_project_branding_body.rb index 5a7add546ab..0d4e65ef447 100644 --- a/clients/client/ruby/lib/ory-client/models/internal_get_project_branding_body.rb +++ b/clients/client/ruby/lib/ory-client/models/internal_get_project_branding_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb b/clients/client/ruby/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb index 6370fda6dfa..7f3800c341b 100644 --- a/clients/client/ruby/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb +++ b/clients/client/ruby/lib/ory-client/models/internal_is_ax_welcome_screen_enabled_for_project_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,16 +66,21 @@ def initialize(attributes = {}) if attributes.key?(:'path') self.path = attributes[:'path'] + else + self.path = nil end if attributes.key?(:'project_slug') self.project_slug = attributes[:'project_slug'] + else + self.project_slug = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @path.nil? invalid_properties.push('invalid value for "path", path cannot be nil.') @@ -91,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @path.nil? return false if @project_slug.nil? true @@ -121,37 +127,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -186,7 +185,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb b/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb index dc60f0f8cf0..5a3561d180a 100644 --- a/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb +++ b/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -98,6 +98,8 @@ def initialize(attributes = {}) if attributes.key?(:'namespace') self.namespace = attributes[:'namespace'] + else + self.namespace = nil end if attributes.key?(:'project_scope') @@ -106,16 +108,21 @@ def initialize(attributes = {}) if attributes.key?(:'project_slug') self.project_slug = attributes[:'project_slug'] + else + self.project_slug = nil end if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @namespace.nil? invalid_properties.push('invalid value for "namespace", namespace cannot be nil.') @@ -135,6 +142,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @namespace.nil? namespace_validator = EnumAttributeValidator.new('String', ["User", " ApiKey"]) return false unless namespace_validator.valid?(@namespace) @@ -180,37 +188,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -245,7 +246,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb b/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb index 40903b1c7bd..6f0e7c2ad2e 100644 --- a/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb +++ b/clients/client/ruby/lib/ory-client/models/internal_is_owner_for_project_by_slug_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -60,12 +60,15 @@ def initialize(attributes = {}) if attributes.key?(:'project_id') self.project_id = attributes[:'project_id'] + else + self.project_id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @project_id.nil? invalid_properties.push('invalid value for "project_id", project_id cannot be nil.') @@ -77,6 +80,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @project_id.nil? true end @@ -105,37 +109,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -170,7 +167,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/introspected_o_auth2_token.rb b/clients/client/ruby/lib/ory-client/models/introspected_o_auth2_token.rb index d70d1ec052c..2ae6071971b 100644 --- a/clients/client/ruby/lib/ory-client/models/introspected_o_auth2_token.rb +++ b/clients/client/ruby/lib/ory-client/models/introspected_o_auth2_token.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -126,6 +126,8 @@ def initialize(attributes = {}) if attributes.key?(:'active') self.active = attributes[:'active'] + else + self.active = nil end if attributes.key?(:'aud') @@ -188,6 +190,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @active.nil? invalid_properties.push('invalid value for "active", active cannot be nil.') @@ -199,6 +202,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @active.nil? true end @@ -240,37 +244,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -305,7 +302,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/is_owner_for_project_by_slug.rb b/clients/client/ruby/lib/ory-client/models/is_owner_for_project_by_slug.rb index 5deb3178c73..7ae1b2bb63a 100644 --- a/clients/client/ruby/lib/ory-client/models/is_owner_for_project_by_slug.rb +++ b/clients/client/ruby/lib/ory-client/models/is_owner_for_project_by_slug.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,16 +65,21 @@ def initialize(attributes = {}) if attributes.key?(:'project_slug') self.project_slug = attributes[:'project_slug'] + else + self.project_slug = nil end if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @project_slug.nil? invalid_properties.push('invalid value for "project_slug", project_slug cannot be nil.') @@ -90,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @project_slug.nil? return false if @subject.nil? true @@ -120,37 +126,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -185,7 +184,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/is_ready200_response.rb b/clients/client/ruby/lib/ory-client/models/is_ready200_response.rb index 62006407491..0c05fa04033 100644 --- a/clients/client/ruby/lib/ory-client/models/is_ready200_response.rb +++ b/clients/client/ruby/lib/ory-client/models/is_ready200_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -60,12 +60,15 @@ def initialize(attributes = {}) if attributes.key?(:'status') self.status = attributes[:'status'] + else + self.status = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') @@ -77,6 +80,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @status.nil? true end @@ -105,37 +109,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -170,7 +167,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/is_ready503_response.rb b/clients/client/ruby/lib/ory-client/models/is_ready503_response.rb index 2a4cf727c97..daa81e42ec7 100644 --- a/clients/client/ruby/lib/ory-client/models/is_ready503_response.rb +++ b/clients/client/ruby/lib/ory-client/models/is_ready503_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -62,12 +62,15 @@ def initialize(attributes = {}) if (value = attributes[:'errors']).is_a?(Hash) self.errors = value end + else + self.errors = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @errors.nil? invalid_properties.push('invalid value for "errors", errors cannot be nil.') @@ -79,6 +82,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @errors.nil? true end @@ -107,37 +111,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -172,7 +169,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/json_patch.rb b/clients/client/ruby/lib/ory-client/models/json_patch.rb index efa0c8efe01..e9e6e01b6c1 100644 --- a/clients/client/ruby/lib/ory-client/models/json_patch.rb +++ b/clients/client/ruby/lib/ory-client/models/json_patch.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -103,10 +103,14 @@ def initialize(attributes = {}) if attributes.key?(:'op') self.op = attributes[:'op'] + else + self.op = nil end if attributes.key?(:'path') self.path = attributes[:'path'] + else + self.path = nil end if attributes.key?(:'value') @@ -117,6 +121,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @op.nil? invalid_properties.push('invalid value for "op", op cannot be nil.') @@ -132,6 +137,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @op.nil? op_validator = EnumAttributeValidator.new('String', ["add", "remove", "replace", "move", "copy", "test"]) return false unless op_validator.valid?(@op) @@ -176,37 +182,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -241,7 +240,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/json_web_key.rb b/clients/client/ruby/lib/ory-client/models/json_web_key.rb index 45bed46dd87..091f00e6cab 100644 --- a/clients/client/ruby/lib/ory-client/models/json_web_key.rb +++ b/clients/client/ruby/lib/ory-client/models/json_web_key.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -128,6 +128,8 @@ def initialize(attributes = {}) if attributes.key?(:'alg') self.alg = attributes[:'alg'] + else + self.alg = nil end if attributes.key?(:'crv') @@ -156,10 +158,14 @@ def initialize(attributes = {}) if attributes.key?(:'kid') self.kid = attributes[:'kid'] + else + self.kid = nil end if attributes.key?(:'kty') self.kty = attributes[:'kty'] + else + self.kty = nil end if attributes.key?(:'n') @@ -180,6 +186,8 @@ def initialize(attributes = {}) if attributes.key?(:'use') self.use = attributes[:'use'] + else + self.use = nil end if attributes.key?(:'x') @@ -200,6 +208,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @alg.nil? invalid_properties.push('invalid value for "alg", alg cannot be nil.') @@ -223,6 +232,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @alg.nil? return false if @kid.nil? return false if @kty.nil? @@ -270,37 +280,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -335,7 +338,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/json_web_key_set.rb b/clients/client/ruby/lib/ory-client/models/json_web_key_set.rb index ad03e2a6480..fe11080e8e2 100644 --- a/clients/client/ruby/lib/ory-client/models/json_web_key_set.rb +++ b/clients/client/ruby/lib/ory-client/models/json_web_key_set.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -69,6 +69,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -76,6 +77,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -103,37 +105,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -168,7 +163,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/keto_namespace.rb b/clients/client/ruby/lib/ory-client/models/keto_namespace.rb index 66f02160fab..100b18546b3 100644 --- a/clients/client/ruby/lib/ory-client/models/keto_namespace.rb +++ b/clients/client/ruby/lib/ory-client/models/keto_namespace.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -73,6 +73,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -80,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -108,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/list_event_streams.rb b/clients/client/ruby/lib/ory-client/models/list_event_streams.rb index d43e0c48952..232a12f5d5a 100644 --- a/clients/client/ruby/lib/ory-client/models/list_event_streams.rb +++ b/clients/client/ruby/lib/ory-client/models/list_event_streams.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -68,6 +68,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -75,6 +76,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -102,37 +104,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -167,7 +162,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/list_my_workspaces_response.rb b/clients/client/ruby/lib/ory-client/models/list_my_workspaces_response.rb index 834b321247f..dd4cb38b851 100644 --- a/clients/client/ruby/lib/ory-client/models/list_my_workspaces_response.rb +++ b/clients/client/ruby/lib/ory-client/models/list_my_workspaces_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ def self.openapi_types { :'has_next_page' => :'Boolean', :'next_page_token' => :'String', - :'workspaces' => :'Array' + :'workspaces' => :'Array' } end @@ -67,22 +67,29 @@ def initialize(attributes = {}) if attributes.key?(:'has_next_page') self.has_next_page = attributes[:'has_next_page'] + else + self.has_next_page = nil end if attributes.key?(:'next_page_token') self.next_page_token = attributes[:'next_page_token'] + else + self.next_page_token = nil end if attributes.key?(:'workspaces') if (value = attributes[:'workspaces']).is_a?(Array) self.workspaces = value end + else + self.workspaces = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @has_next_page.nil? invalid_properties.push('invalid value for "has_next_page", has_next_page cannot be nil.') @@ -102,6 +109,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @has_next_page.nil? return false if @next_page_token.nil? return false if @workspaces.nil? @@ -134,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -199,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/list_organizations_response.rb b/clients/client/ruby/lib/ory-client/models/list_organizations_response.rb index 85afb41f16d..9ffb9ca7600 100644 --- a/clients/client/ruby/lib/ory-client/models/list_organizations_response.rb +++ b/clients/client/ruby/lib/ory-client/models/list_organizations_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -62,12 +62,15 @@ def initialize(attributes = {}) if (value = attributes[:'organizations']).is_a?(Array) self.organizations = value end + else + self.organizations = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @organizations.nil? invalid_properties.push('invalid value for "organizations", organizations cannot be nil.') @@ -79,6 +82,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @organizations.nil? true end @@ -107,37 +111,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -172,7 +169,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/list_workspace_projects_response.rb b/clients/client/ruby/lib/ory-client/models/list_workspace_projects_response.rb new file mode 100644 index 00000000000..cfc534e8bfe --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/list_workspace_projects_response.rb @@ -0,0 +1,255 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class ListWorkspaceProjectsResponse + attr_accessor :has_next_page + + attr_accessor :next_page + + attr_accessor :projects + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'has_next_page' => :'has_next_page', + :'next_page' => :'next_page', + :'projects' => :'projects' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'has_next_page' => :'Boolean', + :'next_page' => :'String', + :'projects' => :'Array' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::ListWorkspaceProjectsResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::ListWorkspaceProjectsResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'has_next_page') + self.has_next_page = attributes[:'has_next_page'] + else + self.has_next_page = nil + end + + if attributes.key?(:'next_page') + self.next_page = attributes[:'next_page'] + else + self.next_page = nil + end + + if attributes.key?(:'projects') + if (value = attributes[:'projects']).is_a?(Array) + self.projects = value + end + else + self.projects = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @has_next_page.nil? + invalid_properties.push('invalid value for "has_next_page", has_next_page cannot be nil.') + end + + if @next_page.nil? + invalid_properties.push('invalid value for "next_page", next_page cannot be nil.') + end + + if @projects.nil? + invalid_properties.push('invalid value for "projects", projects cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @has_next_page.nil? + return false if @next_page.nil? + return false if @projects.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + has_next_page == o.has_next_page && + next_page == o.next_page && + projects == o.projects + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [has_next_page, next_page, projects].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/login_flow.rb b/clients/client/ruby/lib/ory-client/models/login_flow.rb index 722e7272655..cc088e584ad 100644 --- a/clients/client/ruby/lib/ory-client/models/login_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/login_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -16,6 +16,7 @@ module OryClient # This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. class LoginFlow + # The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 attr_accessor :active # CreatedAt is a helper struct field for gobuffalo.pop. @@ -54,6 +55,9 @@ class LoginFlow # State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. attr_accessor :state + # TransientPayload is used to pass data from the login to hooks and email templates + attr_accessor :transient_payload + # The flow type can either be `api` or `browser`. attr_accessor :type @@ -62,6 +66,28 @@ class LoginFlow # UpdatedAt is a helper struct field for gobuffalo.pop. attr_accessor :updated_at + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -79,6 +105,7 @@ def self.attribute_map :'return_to' => :'return_to', :'session_token_exchange_code' => :'session_token_exchange_code', :'state' => :'state', + :'transient_payload' => :'transient_payload', :'type' => :'type', :'ui' => :'ui', :'updated_at' => :'updated_at' @@ -93,7 +120,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'active' => :'IdentityCredentialsType', + :'active' => :'String', :'created_at' => :'Time', :'expires_at' => :'Time', :'id' => :'String', @@ -107,6 +134,7 @@ def self.openapi_types :'return_to' => :'String', :'session_token_exchange_code' => :'String', :'state' => :'Object', + :'transient_payload' => :'Object', :'type' => :'String', :'ui' => :'UiContainer', :'updated_at' => :'Time' @@ -146,14 +174,20 @@ def initialize(attributes = {}) if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] + else + self.expires_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'issued_at') self.issued_at = attributes[:'issued_at'] + else + self.issued_at = nil end if attributes.key?(:'oauth2_login_challenge') @@ -174,6 +208,8 @@ def initialize(attributes = {}) if attributes.key?(:'request_url') self.request_url = attributes[:'request_url'] + else + self.request_url = nil end if attributes.key?(:'requested_aal') @@ -190,14 +226,24 @@ def initialize(attributes = {}) if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'ui') self.ui = attributes[:'ui'] + else + self.ui = nil end if attributes.key?(:'updated_at') @@ -208,6 +254,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @expires_at.nil? invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') @@ -239,6 +286,9 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + active_validator = EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + return false unless active_validator.valid?(@active) return false if @expires_at.nil? return false if @id.nil? return false if @issued_at.nil? @@ -248,6 +298,16 @@ def valid? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] active Object to be assigned + def active=(active) + validator = EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + unless validator.valid?(active) + fail ArgumentError, "invalid value for \"active\", must be one of #{validator.allowable_values}." + end + @active = active + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -267,6 +327,7 @@ def ==(o) return_to == o.return_to && session_token_exchange_code == o.session_token_exchange_code && state == o.state && + transient_payload == o.transient_payload && type == o.type && ui == o.ui && updated_at == o.updated_at @@ -281,44 +342,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [active, created_at, expires_at, id, issued_at, oauth2_login_challenge, oauth2_login_request, organization_id, refresh, request_url, requested_aal, return_to, session_token_exchange_code, state, type, ui, updated_at].hash + [active, created_at, expires_at, id, issued_at, oauth2_login_challenge, oauth2_login_request, organization_id, refresh, request_url, requested_aal, return_to, session_token_exchange_code, state, transient_payload, type, ui, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -353,7 +407,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/login_flow_state.rb b/clients/client/ruby/lib/ory-client/models/login_flow_state.rb index 8e3c9ee3238..0e66151c61d 100644 --- a/clients/client/ruby/lib/ory-client/models/login_flow_state.rb +++ b/clients/client/ruby/lib/ory-client/models/login_flow_state.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -19,6 +19,10 @@ class LoginFlowState SENT_EMAIL = "sent_email".freeze PASSED_CHALLENGE = "passed_challenge".freeze + def self.all_vars + @all_vars ||= [CHOOSE_METHOD, SENT_EMAIL, PASSED_CHALLENGE].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -30,9 +34,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = LoginFlowState.constants.select { |c| LoginFlowState::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #LoginFlowState" if constantValues.empty? - value + return value if LoginFlowState.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #LoginFlowState" end end end diff --git a/clients/client/ruby/lib/ory-client/models/logout_flow.rb b/clients/client/ruby/lib/ory-client/models/logout_flow.rb index 81869ff5c44..c2705f6bf61 100644 --- a/clients/client/ruby/lib/ory-client/models/logout_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/logout_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,16 +66,21 @@ def initialize(attributes = {}) if attributes.key?(:'logout_token') self.logout_token = attributes[:'logout_token'] + else + self.logout_token = nil end if attributes.key?(:'logout_url') self.logout_url = attributes[:'logout_url'] + else + self.logout_url = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @logout_token.nil? invalid_properties.push('invalid value for "logout_token", logout_token cannot be nil.') @@ -91,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @logout_token.nil? return false if @logout_url.nil? true @@ -121,37 +127,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -186,7 +185,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/managed_identity_schema.rb b/clients/client/ruby/lib/ory-client/models/managed_identity_schema.rb index 0a2c6e77743..06dbb2668a2 100644 --- a/clients/client/ruby/lib/ory-client/models/managed_identity_schema.rb +++ b/clients/client/ruby/lib/ory-client/models/managed_identity_schema.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -91,10 +91,14 @@ def initialize(attributes = {}) if attributes.key?(:'blob_name') self.blob_name = attributes[:'blob_name'] + else + self.blob_name = nil end if attributes.key?(:'blob_url') self.blob_url = attributes[:'blob_url'] + else + self.blob_url = nil end if attributes.key?(:'content_hash') @@ -103,24 +107,33 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @blob_name.nil? invalid_properties.push('invalid value for "blob_name", blob_name cannot be nil.') @@ -152,6 +165,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @blob_name.nil? return false if @blob_url.nil? return false if @created_at.nil? @@ -191,37 +205,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -256,7 +263,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/managed_identity_schema_validation_result.rb b/clients/client/ruby/lib/ory-client/models/managed_identity_schema_validation_result.rb index 662a20b1d59..587f622ac7e 100644 --- a/clients/client/ruby/lib/ory-client/models/managed_identity_schema_validation_result.rb +++ b/clients/client/ruby/lib/ory-client/models/managed_identity_schema_validation_result.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -74,6 +74,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -81,6 +82,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -109,37 +111,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -174,7 +169,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/member_invite.rb b/clients/client/ruby/lib/ory-client/models/member_invite.rb index feb9e85443e..1777595c978 100644 --- a/clients/client/ruby/lib/ory-client/models/member_invite.rb +++ b/clients/client/ruby/lib/ory-client/models/member_invite.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -127,14 +127,20 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'invitee_email') self.invitee_email = attributes[:'invitee_email'] + else + self.invitee_email = nil end if attributes.key?(:'invitee_id') @@ -143,10 +149,14 @@ def initialize(attributes = {}) if attributes.key?(:'owner_email') self.owner_email = attributes[:'owner_email'] + else + self.owner_email = nil end if attributes.key?(:'owner_id') self.owner_id = attributes[:'owner_id'] + else + self.owner_id = nil end if attributes.key?(:'project_id') @@ -155,10 +165,14 @@ def initialize(attributes = {}) if attributes.key?(:'status') self.status = attributes[:'status'] + else + self.status = nil end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end if attributes.key?(:'workspace_id') @@ -169,6 +183,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -204,6 +219,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @id.nil? return false if @invitee_email.nil? @@ -259,37 +275,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -324,7 +333,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/message.rb b/clients/client/ruby/lib/ory-client/models/message.rb index 0a7a251e795..453521378e5 100644 --- a/clients/client/ruby/lib/ory-client/models/message.rb +++ b/clients/client/ruby/lib/ory-client/models/message.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -129,6 +129,8 @@ def initialize(attributes = {}) if attributes.key?(:'body') self.body = attributes[:'body'] + else + self.body = nil end if attributes.key?(:'channel') @@ -137,6 +139,8 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'dispatches') @@ -147,40 +151,57 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'recipient') self.recipient = attributes[:'recipient'] + else + self.recipient = nil end if attributes.key?(:'send_count') self.send_count = attributes[:'send_count'] + else + self.send_count = nil end if attributes.key?(:'status') self.status = attributes[:'status'] + else + self.status = nil end if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end if attributes.key?(:'template_type') self.template_type = attributes[:'template_type'] + else + self.template_type = nil end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @body.nil? invalid_properties.push('invalid value for "body", body cannot be nil.') @@ -228,6 +249,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @body.nil? return false if @created_at.nil? return false if @id.nil? @@ -288,37 +310,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -353,7 +368,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/message_dispatch.rb b/clients/client/ruby/lib/ory-client/models/message_dispatch.rb index fd3ed8838fb..69606cca709 100644 --- a/clients/client/ruby/lib/ory-client/models/message_dispatch.rb +++ b/clients/client/ruby/lib/ory-client/models/message_dispatch.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -107,6 +107,8 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'error') @@ -115,24 +117,33 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'message_id') self.message_id = attributes[:'message_id'] + else + self.message_id = nil end if attributes.key?(:'status') self.status = attributes[:'status'] + else + self.status = nil end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -160,6 +171,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @id.nil? return false if @message_id.nil? @@ -209,37 +221,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -274,7 +279,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/metrics_datapoint.rb b/clients/client/ruby/lib/ory-client/models/metrics_datapoint.rb index a6de5a82ea6..65dbed1a69f 100644 --- a/clients/client/ruby/lib/ory-client/models/metrics_datapoint.rb +++ b/clients/client/ruby/lib/ory-client/models/metrics_datapoint.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,16 +66,21 @@ def initialize(attributes = {}) if attributes.key?(:'count') self.count = attributes[:'count'] + else + self.count = nil end if attributes.key?(:'time') self.time = attributes[:'time'] + else + self.time = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @count.nil? invalid_properties.push('invalid value for "count", count cannot be nil.') @@ -91,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @count.nil? return false if @time.nil? true @@ -121,37 +127,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -186,7 +185,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/migration_options.rb b/clients/client/ruby/lib/ory-client/models/migration_options.rb new file mode 100644 index 00000000000..e913ebecfc4 --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/migration_options.rb @@ -0,0 +1,285 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class MigrationOptions + # The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + attr_accessor :environment + + # The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + attr_accessor :project_subscription + + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'environment' => :'environment', + :'project_subscription' => :'project_subscription' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'environment' => :'String', + :'project_subscription' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::MigrationOptions` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::MigrationOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + else + self.environment = nil + end + + if attributes.key?(:'project_subscription') + self.project_subscription = attributes[:'project_subscription'] + else + self.project_subscription = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + + if @project_subscription.nil? + invalid_properties.push('invalid value for "project_subscription", project_subscription cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @environment.nil? + environment_validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + return false unless environment_validator.valid?(@environment) + return false if @project_subscription.nil? + project_subscription_validator = EnumAttributeValidator.new('String', ["migrate", "ignore"]) + return false unless project_subscription_validator.valid?(@project_subscription) + true + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] environment Object to be assigned + def environment=(environment) + validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + unless validator.valid?(environment) + fail ArgumentError, "invalid value for \"environment\", must be one of #{validator.allowable_values}." + end + @environment = environment + end + + # Custom attribute writer method checking allowed values (enum). + # @param [Object] project_subscription Object to be assigned + def project_subscription=(project_subscription) + validator = EnumAttributeValidator.new('String', ["migrate", "ignore"]) + unless validator.valid?(project_subscription) + fail ArgumentError, "invalid value for \"project_subscription\", must be one of #{validator.allowable_values}." + end + @project_subscription = project_subscription + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + environment == o.environment && + project_subscription == o.project_subscription + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [environment, project_subscription].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/namespace.rb b/clients/client/ruby/lib/ory-client/models/namespace.rb index c34f5129363..bcf06f1216f 100644 --- a/clients/client/ruby/lib/ory-client/models/namespace.rb +++ b/clients/client/ruby/lib/ory-client/models/namespace.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/needs_privileged_session_error.rb b/clients/client/ruby/lib/ory-client/models/needs_privileged_session_error.rb index 33ecc00e9cf..1c5960a9be9 100644 --- a/clients/client/ruby/lib/ory-client/models/needs_privileged_session_error.rb +++ b/clients/client/ruby/lib/ory-client/models/needs_privileged_session_error.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -68,12 +68,15 @@ def initialize(attributes = {}) if attributes.key?(:'redirect_browser_to') self.redirect_browser_to = attributes[:'redirect_browser_to'] + else + self.redirect_browser_to = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @redirect_browser_to.nil? invalid_properties.push('invalid value for "redirect_browser_to", redirect_browser_to cannot be nil.') @@ -85,6 +88,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @redirect_browser_to.nil? true end @@ -114,37 +118,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -179,7 +176,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project.rb b/clients/client/ruby/lib/ory-client/models/normalized_project.rb index 92ec5031658..a27be2f34d1 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -130,32 +130,46 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'current_revision') self.current_revision = attributes[:'current_revision'] + else + self.current_revision = nil end if attributes.key?(:'environment') self.environment = attributes[:'environment'] + else + self.environment = nil end if attributes.key?(:'hosts') if (value = attributes[:'hosts']).is_a?(Array) self.hosts = value end + else + self.hosts = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'slug') self.slug = attributes[:'slug'] + else + self.slug = nil end if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil end if attributes.key?(:'subscription_id') @@ -168,16 +182,21 @@ def initialize(attributes = {}) if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end if attributes.key?(:'workspace_id') self.workspace_id = attributes[:'workspace_id'] + else + self.workspace_id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -217,6 +236,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @current_revision.nil? return false if @environment.nil? @@ -286,37 +306,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -351,7 +364,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project_revision.rb b/clients/client/ruby/lib/ory-client/models/normalized_project_revision.rb index 8235dff9957..b22f528ef84 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project_revision.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project_revision.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -21,6 +21,9 @@ class NormalizedProjectRevision # Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. attr_accessor :disable_account_experience_welcome_screen + # Whether the new account experience is enabled and reachable. + attr_accessor :enable_ax_v2 + attr_accessor :hydra_oauth2_allowed_top_level_claims # Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. @@ -38,6 +41,9 @@ class NormalizedProjectRevision # Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. attr_accessor :hydra_oauth2_grant_jwt_max_ttl + # Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + attr_accessor :hydra_oauth2_mirror_top_level_claims + # Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. attr_accessor :hydra_oauth2_pkce_enforced @@ -203,6 +209,9 @@ class NormalizedProjectRevision # Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. attr_accessor :kratos_courier_templates_login_code_valid_email_subject + # Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + attr_accessor :kratos_courier_templates_login_code_valid_sms_body_plaintext + # Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. attr_accessor :kratos_courier_templates_recovery_code_invalid_email_body_html @@ -453,6 +462,9 @@ class NormalizedProjectRevision # Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. attr_accessor :kratos_selfservice_methods_code_enabled + # Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + attr_accessor :kratos_selfservice_methods_code_mfa_enabled + # Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. attr_accessor :kratos_selfservice_methods_code_passwordless_enabled @@ -585,12 +597,14 @@ def self.attribute_map { :'created_at' => :'created_at', :'disable_account_experience_welcome_screen' => :'disable_account_experience_welcome_screen', + :'enable_ax_v2' => :'enable_ax_v2', :'hydra_oauth2_allowed_top_level_claims' => :'hydra_oauth2_allowed_top_level_claims', :'hydra_oauth2_client_credentials_default_grant_allowed_scope' => :'hydra_oauth2_client_credentials_default_grant_allowed_scope', :'hydra_oauth2_exclude_not_before_claim' => :'hydra_oauth2_exclude_not_before_claim', :'hydra_oauth2_grant_jwt_iat_optional' => :'hydra_oauth2_grant_jwt_iat_optional', :'hydra_oauth2_grant_jwt_jti_optional' => :'hydra_oauth2_grant_jwt_jti_optional', :'hydra_oauth2_grant_jwt_max_ttl' => :'hydra_oauth2_grant_jwt_max_ttl', + :'hydra_oauth2_mirror_top_level_claims' => :'hydra_oauth2_mirror_top_level_claims', :'hydra_oauth2_pkce_enforced' => :'hydra_oauth2_pkce_enforced', :'hydra_oauth2_pkce_enforced_for_public_clients' => :'hydra_oauth2_pkce_enforced_for_public_clients', :'hydra_oauth2_refresh_token_hook' => :'hydra_oauth2_refresh_token_hook', @@ -649,6 +663,7 @@ def self.attribute_map :'kratos_courier_templates_login_code_valid_email_body_html' => :'kratos_courier_templates_login_code_valid_email_body_html', :'kratos_courier_templates_login_code_valid_email_body_plaintext' => :'kratos_courier_templates_login_code_valid_email_body_plaintext', :'kratos_courier_templates_login_code_valid_email_subject' => :'kratos_courier_templates_login_code_valid_email_subject', + :'kratos_courier_templates_login_code_valid_sms_body_plaintext' => :'kratos_courier_templates_login_code_valid_sms_body_plaintext', :'kratos_courier_templates_recovery_code_invalid_email_body_html' => :'kratos_courier_templates_recovery_code_invalid_email_body_html', :'kratos_courier_templates_recovery_code_invalid_email_body_plaintext' => :'kratos_courier_templates_recovery_code_invalid_email_body_plaintext', :'kratos_courier_templates_recovery_code_invalid_email_subject' => :'kratos_courier_templates_recovery_code_invalid_email_subject', @@ -734,6 +749,7 @@ def self.attribute_map :'kratos_selfservice_flows_verification_use' => :'kratos_selfservice_flows_verification_use', :'kratos_selfservice_methods_code_config_lifespan' => :'kratos_selfservice_methods_code_config_lifespan', :'kratos_selfservice_methods_code_enabled' => :'kratos_selfservice_methods_code_enabled', + :'kratos_selfservice_methods_code_mfa_enabled' => :'kratos_selfservice_methods_code_mfa_enabled', :'kratos_selfservice_methods_code_passwordless_enabled' => :'kratos_selfservice_methods_code_passwordless_enabled', :'kratos_selfservice_methods_link_config_base_url' => :'kratos_selfservice_methods_link_config_base_url', :'kratos_selfservice_methods_link_config_lifespan' => :'kratos_selfservice_methods_link_config_lifespan', @@ -784,12 +800,14 @@ def self.openapi_types { :'created_at' => :'Time', :'disable_account_experience_welcome_screen' => :'Boolean', + :'enable_ax_v2' => :'Boolean', :'hydra_oauth2_allowed_top_level_claims' => :'Array', :'hydra_oauth2_client_credentials_default_grant_allowed_scope' => :'Boolean', :'hydra_oauth2_exclude_not_before_claim' => :'Boolean', :'hydra_oauth2_grant_jwt_iat_optional' => :'Boolean', :'hydra_oauth2_grant_jwt_jti_optional' => :'Boolean', :'hydra_oauth2_grant_jwt_max_ttl' => :'String', + :'hydra_oauth2_mirror_top_level_claims' => :'Boolean', :'hydra_oauth2_pkce_enforced' => :'Boolean', :'hydra_oauth2_pkce_enforced_for_public_clients' => :'Boolean', :'hydra_oauth2_refresh_token_hook' => :'String', @@ -848,6 +866,7 @@ def self.openapi_types :'kratos_courier_templates_login_code_valid_email_body_html' => :'String', :'kratos_courier_templates_login_code_valid_email_body_plaintext' => :'String', :'kratos_courier_templates_login_code_valid_email_subject' => :'String', + :'kratos_courier_templates_login_code_valid_sms_body_plaintext' => :'String', :'kratos_courier_templates_recovery_code_invalid_email_body_html' => :'String', :'kratos_courier_templates_recovery_code_invalid_email_body_plaintext' => :'String', :'kratos_courier_templates_recovery_code_invalid_email_subject' => :'String', @@ -933,6 +952,7 @@ def self.openapi_types :'kratos_selfservice_flows_verification_use' => :'String', :'kratos_selfservice_methods_code_config_lifespan' => :'String', :'kratos_selfservice_methods_code_enabled' => :'Boolean', + :'kratos_selfservice_methods_code_mfa_enabled' => :'Boolean', :'kratos_selfservice_methods_code_passwordless_enabled' => :'Boolean', :'kratos_selfservice_methods_link_config_base_url' => :'String', :'kratos_selfservice_methods_link_config_lifespan' => :'String', @@ -1005,6 +1025,10 @@ def initialize(attributes = {}) self.disable_account_experience_welcome_screen = attributes[:'disable_account_experience_welcome_screen'] end + if attributes.key?(:'enable_ax_v2') + self.enable_ax_v2 = attributes[:'enable_ax_v2'] + end + if attributes.key?(:'hydra_oauth2_allowed_top_level_claims') if (value = attributes[:'hydra_oauth2_allowed_top_level_claims']).is_a?(Array) self.hydra_oauth2_allowed_top_level_claims = value @@ -1033,6 +1057,10 @@ def initialize(attributes = {}) self.hydra_oauth2_grant_jwt_max_ttl = '720h' end + if attributes.key?(:'hydra_oauth2_mirror_top_level_claims') + self.hydra_oauth2_mirror_top_level_claims = attributes[:'hydra_oauth2_mirror_top_level_claims'] + end + if attributes.key?(:'hydra_oauth2_pkce_enforced') self.hydra_oauth2_pkce_enforced = attributes[:'hydra_oauth2_pkce_enforced'] end @@ -1303,6 +1331,10 @@ def initialize(attributes = {}) self.kratos_courier_templates_login_code_valid_email_subject = attributes[:'kratos_courier_templates_login_code_valid_email_subject'] end + if attributes.key?(:'kratos_courier_templates_login_code_valid_sms_body_plaintext') + self.kratos_courier_templates_login_code_valid_sms_body_plaintext = attributes[:'kratos_courier_templates_login_code_valid_sms_body_plaintext'] + end + if attributes.key?(:'kratos_courier_templates_recovery_code_invalid_email_body_html') self.kratos_courier_templates_recovery_code_invalid_email_body_html = attributes[:'kratos_courier_templates_recovery_code_invalid_email_body_html'] end @@ -1653,6 +1685,10 @@ def initialize(attributes = {}) self.kratos_selfservice_methods_code_enabled = attributes[:'kratos_selfservice_methods_code_enabled'] end + if attributes.key?(:'kratos_selfservice_methods_code_mfa_enabled') + self.kratos_selfservice_methods_code_mfa_enabled = attributes[:'kratos_selfservice_methods_code_mfa_enabled'] + end + if attributes.key?(:'kratos_selfservice_methods_code_passwordless_enabled') self.kratos_selfservice_methods_code_passwordless_enabled = attributes[:'kratos_selfservice_methods_code_passwordless_enabled'] end @@ -1773,6 +1809,8 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'project_id') @@ -1817,6 +1855,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) if !@hydra_oauth2_grant_jwt_max_ttl.nil? && @hydra_oauth2_grant_jwt_max_ttl !~ pattern @@ -1858,6 +1897,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@hydra_oauth2_grant_jwt_max_ttl.nil? && @hydra_oauth2_grant_jwt_max_ttl !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) hydra_strategies_access_token_validator = EnumAttributeValidator.new('String', ["opaque", "jwt"]) return false unless hydra_strategies_access_token_validator.valid?(@hydra_strategies_access_token) @@ -1879,8 +1919,12 @@ def valid? # Custom attribute writer method with validation # @param [Object] hydra_oauth2_grant_jwt_max_ttl Value to be assigned def hydra_oauth2_grant_jwt_max_ttl=(hydra_oauth2_grant_jwt_max_ttl) + if hydra_oauth2_grant_jwt_max_ttl.nil? + fail ArgumentError, 'hydra_oauth2_grant_jwt_max_ttl cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_oauth2_grant_jwt_max_ttl.nil? && hydra_oauth2_grant_jwt_max_ttl !~ pattern + if hydra_oauth2_grant_jwt_max_ttl !~ pattern fail ArgumentError, "invalid value for \"hydra_oauth2_grant_jwt_max_ttl\", must conform to the pattern #{pattern}." end @@ -1910,8 +1954,12 @@ def hydra_strategies_scope=(hydra_strategies_scope) # Custom attribute writer method with validation # @param [Object] hydra_ttl_access_token Value to be assigned def hydra_ttl_access_token=(hydra_ttl_access_token) + if hydra_ttl_access_token.nil? + fail ArgumentError, 'hydra_ttl_access_token cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_access_token.nil? && hydra_ttl_access_token !~ pattern + if hydra_ttl_access_token !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_access_token\", must conform to the pattern #{pattern}." end @@ -1921,8 +1969,12 @@ def hydra_ttl_access_token=(hydra_ttl_access_token) # Custom attribute writer method with validation # @param [Object] hydra_ttl_auth_code Value to be assigned def hydra_ttl_auth_code=(hydra_ttl_auth_code) + if hydra_ttl_auth_code.nil? + fail ArgumentError, 'hydra_ttl_auth_code cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_auth_code.nil? && hydra_ttl_auth_code !~ pattern + if hydra_ttl_auth_code !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_auth_code\", must conform to the pattern #{pattern}." end @@ -1932,8 +1984,12 @@ def hydra_ttl_auth_code=(hydra_ttl_auth_code) # Custom attribute writer method with validation # @param [Object] hydra_ttl_id_token Value to be assigned def hydra_ttl_id_token=(hydra_ttl_id_token) + if hydra_ttl_id_token.nil? + fail ArgumentError, 'hydra_ttl_id_token cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_id_token.nil? && hydra_ttl_id_token !~ pattern + if hydra_ttl_id_token !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_id_token\", must conform to the pattern #{pattern}." end @@ -1943,8 +1999,12 @@ def hydra_ttl_id_token=(hydra_ttl_id_token) # Custom attribute writer method with validation # @param [Object] hydra_ttl_login_consent_request Value to be assigned def hydra_ttl_login_consent_request=(hydra_ttl_login_consent_request) + if hydra_ttl_login_consent_request.nil? + fail ArgumentError, 'hydra_ttl_login_consent_request cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !hydra_ttl_login_consent_request.nil? && hydra_ttl_login_consent_request !~ pattern + if hydra_ttl_login_consent_request !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_login_consent_request\", must conform to the pattern #{pattern}." end @@ -1954,8 +2014,12 @@ def hydra_ttl_login_consent_request=(hydra_ttl_login_consent_request) # Custom attribute writer method with validation # @param [Object] hydra_ttl_refresh_token Value to be assigned def hydra_ttl_refresh_token=(hydra_ttl_refresh_token) + if hydra_ttl_refresh_token.nil? + fail ArgumentError, 'hydra_ttl_refresh_token cannot be nil' + end + pattern = Regexp.new(/^([0-9]+(ns|us|ms|s|m|h)|-1)$/) - if !hydra_ttl_refresh_token.nil? && hydra_ttl_refresh_token !~ pattern + if hydra_ttl_refresh_token !~ pattern fail ArgumentError, "invalid value for \"hydra_ttl_refresh_token\", must conform to the pattern #{pattern}." end @@ -1989,12 +2053,14 @@ def ==(o) self.class == o.class && created_at == o.created_at && disable_account_experience_welcome_screen == o.disable_account_experience_welcome_screen && + enable_ax_v2 == o.enable_ax_v2 && hydra_oauth2_allowed_top_level_claims == o.hydra_oauth2_allowed_top_level_claims && hydra_oauth2_client_credentials_default_grant_allowed_scope == o.hydra_oauth2_client_credentials_default_grant_allowed_scope && hydra_oauth2_exclude_not_before_claim == o.hydra_oauth2_exclude_not_before_claim && hydra_oauth2_grant_jwt_iat_optional == o.hydra_oauth2_grant_jwt_iat_optional && hydra_oauth2_grant_jwt_jti_optional == o.hydra_oauth2_grant_jwt_jti_optional && hydra_oauth2_grant_jwt_max_ttl == o.hydra_oauth2_grant_jwt_max_ttl && + hydra_oauth2_mirror_top_level_claims == o.hydra_oauth2_mirror_top_level_claims && hydra_oauth2_pkce_enforced == o.hydra_oauth2_pkce_enforced && hydra_oauth2_pkce_enforced_for_public_clients == o.hydra_oauth2_pkce_enforced_for_public_clients && hydra_oauth2_refresh_token_hook == o.hydra_oauth2_refresh_token_hook && @@ -2053,6 +2119,7 @@ def ==(o) kratos_courier_templates_login_code_valid_email_body_html == o.kratos_courier_templates_login_code_valid_email_body_html && kratos_courier_templates_login_code_valid_email_body_plaintext == o.kratos_courier_templates_login_code_valid_email_body_plaintext && kratos_courier_templates_login_code_valid_email_subject == o.kratos_courier_templates_login_code_valid_email_subject && + kratos_courier_templates_login_code_valid_sms_body_plaintext == o.kratos_courier_templates_login_code_valid_sms_body_plaintext && kratos_courier_templates_recovery_code_invalid_email_body_html == o.kratos_courier_templates_recovery_code_invalid_email_body_html && kratos_courier_templates_recovery_code_invalid_email_body_plaintext == o.kratos_courier_templates_recovery_code_invalid_email_body_plaintext && kratos_courier_templates_recovery_code_invalid_email_subject == o.kratos_courier_templates_recovery_code_invalid_email_subject && @@ -2138,6 +2205,7 @@ def ==(o) kratos_selfservice_flows_verification_use == o.kratos_selfservice_flows_verification_use && kratos_selfservice_methods_code_config_lifespan == o.kratos_selfservice_methods_code_config_lifespan && kratos_selfservice_methods_code_enabled == o.kratos_selfservice_methods_code_enabled && + kratos_selfservice_methods_code_mfa_enabled == o.kratos_selfservice_methods_code_mfa_enabled && kratos_selfservice_methods_code_passwordless_enabled == o.kratos_selfservice_methods_code_passwordless_enabled && kratos_selfservice_methods_link_config_base_url == o.kratos_selfservice_methods_link_config_base_url && kratos_selfservice_methods_link_config_lifespan == o.kratos_selfservice_methods_link_config_lifespan && @@ -2186,44 +2254,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [created_at, disable_account_experience_welcome_screen, hydra_oauth2_allowed_top_level_claims, hydra_oauth2_client_credentials_default_grant_allowed_scope, hydra_oauth2_exclude_not_before_claim, hydra_oauth2_grant_jwt_iat_optional, hydra_oauth2_grant_jwt_jti_optional, hydra_oauth2_grant_jwt_max_ttl, hydra_oauth2_pkce_enforced, hydra_oauth2_pkce_enforced_for_public_clients, hydra_oauth2_refresh_token_hook, hydra_oauth2_token_hook, hydra_oidc_dynamic_client_registration_default_scope, hydra_oidc_dynamic_client_registration_enabled, hydra_oidc_subject_identifiers_pairwise_salt, hydra_oidc_subject_identifiers_supported_types, hydra_secrets_cookie, hydra_secrets_system, hydra_serve_cookies_same_site_legacy_workaround, hydra_serve_cookies_same_site_mode, hydra_strategies_access_token, hydra_strategies_scope, hydra_ttl_access_token, hydra_ttl_auth_code, hydra_ttl_id_token, hydra_ttl_login_consent_request, hydra_ttl_refresh_token, hydra_urls_consent, hydra_urls_error, hydra_urls_login, hydra_urls_logout, hydra_urls_post_logout_redirect, hydra_urls_registration, hydra_urls_self_issuer, hydra_webfinger_jwks_broadcast_keys, hydra_webfinger_oidc_discovery_auth_url, hydra_webfinger_oidc_discovery_client_registration_url, hydra_webfinger_oidc_discovery_jwks_url, hydra_webfinger_oidc_discovery_supported_claims, hydra_webfinger_oidc_discovery_supported_scope, hydra_webfinger_oidc_discovery_token_url, hydra_webfinger_oidc_discovery_userinfo_url, id, keto_namespace_configuration, keto_namespaces, kratos_cookies_same_site, kratos_courier_channels, kratos_courier_delivery_strategy, kratos_courier_http_request_config_auth_api_key_in, kratos_courier_http_request_config_auth_api_key_name, kratos_courier_http_request_config_auth_api_key_value, kratos_courier_http_request_config_auth_basic_auth_password, kratos_courier_http_request_config_auth_basic_auth_user, kratos_courier_http_request_config_auth_type, kratos_courier_http_request_config_body, kratos_courier_http_request_config_headers, kratos_courier_http_request_config_method, kratos_courier_http_request_config_url, kratos_courier_smtp_connection_uri, kratos_courier_smtp_from_address, kratos_courier_smtp_from_name, kratos_courier_smtp_headers, kratos_courier_smtp_local_name, kratos_courier_templates_login_code_valid_email_body_html, kratos_courier_templates_login_code_valid_email_body_plaintext, kratos_courier_templates_login_code_valid_email_subject, kratos_courier_templates_recovery_code_invalid_email_body_html, kratos_courier_templates_recovery_code_invalid_email_body_plaintext, kratos_courier_templates_recovery_code_invalid_email_subject, kratos_courier_templates_recovery_code_valid_email_body_html, kratos_courier_templates_recovery_code_valid_email_body_plaintext, kratos_courier_templates_recovery_code_valid_email_subject, kratos_courier_templates_recovery_invalid_email_body_html, kratos_courier_templates_recovery_invalid_email_body_plaintext, kratos_courier_templates_recovery_invalid_email_subject, kratos_courier_templates_recovery_valid_email_body_html, kratos_courier_templates_recovery_valid_email_body_plaintext, kratos_courier_templates_recovery_valid_email_subject, kratos_courier_templates_registration_code_valid_email_body_html, kratos_courier_templates_registration_code_valid_email_body_plaintext, kratos_courier_templates_registration_code_valid_email_subject, kratos_courier_templates_verification_code_invalid_email_body_html, kratos_courier_templates_verification_code_invalid_email_body_plaintext, kratos_courier_templates_verification_code_invalid_email_subject, kratos_courier_templates_verification_code_valid_email_body_html, kratos_courier_templates_verification_code_valid_email_body_plaintext, kratos_courier_templates_verification_code_valid_email_subject, kratos_courier_templates_verification_code_valid_sms_body_plaintext, kratos_courier_templates_verification_invalid_email_body_html, kratos_courier_templates_verification_invalid_email_body_plaintext, kratos_courier_templates_verification_invalid_email_subject, kratos_courier_templates_verification_valid_email_body_html, kratos_courier_templates_verification_valid_email_body_plaintext, kratos_courier_templates_verification_valid_email_subject, kratos_feature_flags_cacheable_sessions, kratos_feature_flags_use_continue_with_transitions, kratos_identity_schemas, kratos_oauth2_provider_headers, kratos_oauth2_provider_override_return_to, kratos_oauth2_provider_url, kratos_preview_default_read_consistency_level, kratos_secrets_cipher, kratos_secrets_cookie, kratos_secrets_default, kratos_selfservice_allowed_return_urls, kratos_selfservice_default_browser_return_url, kratos_selfservice_flows_error_ui_url, kratos_selfservice_flows_login_after_code_default_browser_return_url, kratos_selfservice_flows_login_after_default_browser_return_url, kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_login_after_oidc_default_browser_return_url, kratos_selfservice_flows_login_after_password_default_browser_return_url, kratos_selfservice_flows_login_after_totp_default_browser_return_url, kratos_selfservice_flows_login_after_webauthn_default_browser_return_url, kratos_selfservice_flows_login_lifespan, kratos_selfservice_flows_login_ui_url, kratos_selfservice_flows_logout_after_default_browser_return_url, kratos_selfservice_flows_recovery_after_default_browser_return_url, kratos_selfservice_flows_recovery_enabled, kratos_selfservice_flows_recovery_lifespan, kratos_selfservice_flows_recovery_notify_unknown_recipients, kratos_selfservice_flows_recovery_ui_url, kratos_selfservice_flows_recovery_use, kratos_selfservice_flows_registration_after_code_default_browser_return_url, kratos_selfservice_flows_registration_after_default_browser_return_url, kratos_selfservice_flows_registration_after_oidc_default_browser_return_url, kratos_selfservice_flows_registration_after_password_default_browser_return_url, kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url, kratos_selfservice_flows_registration_enabled, kratos_selfservice_flows_registration_lifespan, kratos_selfservice_flows_registration_login_hints, kratos_selfservice_flows_registration_ui_url, kratos_selfservice_flows_settings_after_default_browser_return_url, kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_settings_after_oidc_default_browser_return_url, kratos_selfservice_flows_settings_after_password_default_browser_return_url, kratos_selfservice_flows_settings_after_profile_default_browser_return_url, kratos_selfservice_flows_settings_after_totp_default_browser_return_url, kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url, kratos_selfservice_flows_settings_lifespan, kratos_selfservice_flows_settings_privileged_session_max_age, kratos_selfservice_flows_settings_required_aal, kratos_selfservice_flows_settings_ui_url, kratos_selfservice_flows_verification_after_default_browser_return_url, kratos_selfservice_flows_verification_enabled, kratos_selfservice_flows_verification_lifespan, kratos_selfservice_flows_verification_notify_unknown_recipients, kratos_selfservice_flows_verification_ui_url, kratos_selfservice_flows_verification_use, kratos_selfservice_methods_code_config_lifespan, kratos_selfservice_methods_code_enabled, kratos_selfservice_methods_code_passwordless_enabled, kratos_selfservice_methods_link_config_base_url, kratos_selfservice_methods_link_config_lifespan, kratos_selfservice_methods_link_enabled, kratos_selfservice_methods_lookup_secret_enabled, kratos_selfservice_methods_oidc_config_base_redirect_uri, kratos_selfservice_methods_oidc_config_providers, kratos_selfservice_methods_oidc_enabled, kratos_selfservice_methods_password_config_haveibeenpwned_enabled, kratos_selfservice_methods_password_config_identifier_similarity_check_enabled, kratos_selfservice_methods_password_config_ignore_network_errors, kratos_selfservice_methods_password_config_max_breaches, kratos_selfservice_methods_password_config_min_password_length, kratos_selfservice_methods_password_enabled, kratos_selfservice_methods_profile_enabled, kratos_selfservice_methods_totp_config_issuer, kratos_selfservice_methods_totp_enabled, kratos_selfservice_methods_webauthn_config_passwordless, kratos_selfservice_methods_webauthn_config_rp_display_name, kratos_selfservice_methods_webauthn_config_rp_icon, kratos_selfservice_methods_webauthn_config_rp_id, kratos_selfservice_methods_webauthn_config_rp_origins, kratos_selfservice_methods_webauthn_enabled, kratos_session_cookie_persistent, kratos_session_cookie_same_site, kratos_session_lifespan, kratos_session_whoami_required_aal, kratos_session_whoami_tokenizer_templates, name, project_id, project_revision_hooks, serve_admin_cors_allowed_origins, serve_admin_cors_enabled, serve_public_cors_allowed_origins, serve_public_cors_enabled, strict_security, updated_at].hash + [created_at, disable_account_experience_welcome_screen, enable_ax_v2, hydra_oauth2_allowed_top_level_claims, hydra_oauth2_client_credentials_default_grant_allowed_scope, hydra_oauth2_exclude_not_before_claim, hydra_oauth2_grant_jwt_iat_optional, hydra_oauth2_grant_jwt_jti_optional, hydra_oauth2_grant_jwt_max_ttl, hydra_oauth2_mirror_top_level_claims, hydra_oauth2_pkce_enforced, hydra_oauth2_pkce_enforced_for_public_clients, hydra_oauth2_refresh_token_hook, hydra_oauth2_token_hook, hydra_oidc_dynamic_client_registration_default_scope, hydra_oidc_dynamic_client_registration_enabled, hydra_oidc_subject_identifiers_pairwise_salt, hydra_oidc_subject_identifiers_supported_types, hydra_secrets_cookie, hydra_secrets_system, hydra_serve_cookies_same_site_legacy_workaround, hydra_serve_cookies_same_site_mode, hydra_strategies_access_token, hydra_strategies_scope, hydra_ttl_access_token, hydra_ttl_auth_code, hydra_ttl_id_token, hydra_ttl_login_consent_request, hydra_ttl_refresh_token, hydra_urls_consent, hydra_urls_error, hydra_urls_login, hydra_urls_logout, hydra_urls_post_logout_redirect, hydra_urls_registration, hydra_urls_self_issuer, hydra_webfinger_jwks_broadcast_keys, hydra_webfinger_oidc_discovery_auth_url, hydra_webfinger_oidc_discovery_client_registration_url, hydra_webfinger_oidc_discovery_jwks_url, hydra_webfinger_oidc_discovery_supported_claims, hydra_webfinger_oidc_discovery_supported_scope, hydra_webfinger_oidc_discovery_token_url, hydra_webfinger_oidc_discovery_userinfo_url, id, keto_namespace_configuration, keto_namespaces, kratos_cookies_same_site, kratos_courier_channels, kratos_courier_delivery_strategy, kratos_courier_http_request_config_auth_api_key_in, kratos_courier_http_request_config_auth_api_key_name, kratos_courier_http_request_config_auth_api_key_value, kratos_courier_http_request_config_auth_basic_auth_password, kratos_courier_http_request_config_auth_basic_auth_user, kratos_courier_http_request_config_auth_type, kratos_courier_http_request_config_body, kratos_courier_http_request_config_headers, kratos_courier_http_request_config_method, kratos_courier_http_request_config_url, kratos_courier_smtp_connection_uri, kratos_courier_smtp_from_address, kratos_courier_smtp_from_name, kratos_courier_smtp_headers, kratos_courier_smtp_local_name, kratos_courier_templates_login_code_valid_email_body_html, kratos_courier_templates_login_code_valid_email_body_plaintext, kratos_courier_templates_login_code_valid_email_subject, kratos_courier_templates_login_code_valid_sms_body_plaintext, kratos_courier_templates_recovery_code_invalid_email_body_html, kratos_courier_templates_recovery_code_invalid_email_body_plaintext, kratos_courier_templates_recovery_code_invalid_email_subject, kratos_courier_templates_recovery_code_valid_email_body_html, kratos_courier_templates_recovery_code_valid_email_body_plaintext, kratos_courier_templates_recovery_code_valid_email_subject, kratos_courier_templates_recovery_invalid_email_body_html, kratos_courier_templates_recovery_invalid_email_body_plaintext, kratos_courier_templates_recovery_invalid_email_subject, kratos_courier_templates_recovery_valid_email_body_html, kratos_courier_templates_recovery_valid_email_body_plaintext, kratos_courier_templates_recovery_valid_email_subject, kratos_courier_templates_registration_code_valid_email_body_html, kratos_courier_templates_registration_code_valid_email_body_plaintext, kratos_courier_templates_registration_code_valid_email_subject, kratos_courier_templates_verification_code_invalid_email_body_html, kratos_courier_templates_verification_code_invalid_email_body_plaintext, kratos_courier_templates_verification_code_invalid_email_subject, kratos_courier_templates_verification_code_valid_email_body_html, kratos_courier_templates_verification_code_valid_email_body_plaintext, kratos_courier_templates_verification_code_valid_email_subject, kratos_courier_templates_verification_code_valid_sms_body_plaintext, kratos_courier_templates_verification_invalid_email_body_html, kratos_courier_templates_verification_invalid_email_body_plaintext, kratos_courier_templates_verification_invalid_email_subject, kratos_courier_templates_verification_valid_email_body_html, kratos_courier_templates_verification_valid_email_body_plaintext, kratos_courier_templates_verification_valid_email_subject, kratos_feature_flags_cacheable_sessions, kratos_feature_flags_use_continue_with_transitions, kratos_identity_schemas, kratos_oauth2_provider_headers, kratos_oauth2_provider_override_return_to, kratos_oauth2_provider_url, kratos_preview_default_read_consistency_level, kratos_secrets_cipher, kratos_secrets_cookie, kratos_secrets_default, kratos_selfservice_allowed_return_urls, kratos_selfservice_default_browser_return_url, kratos_selfservice_flows_error_ui_url, kratos_selfservice_flows_login_after_code_default_browser_return_url, kratos_selfservice_flows_login_after_default_browser_return_url, kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_login_after_oidc_default_browser_return_url, kratos_selfservice_flows_login_after_password_default_browser_return_url, kratos_selfservice_flows_login_after_totp_default_browser_return_url, kratos_selfservice_flows_login_after_webauthn_default_browser_return_url, kratos_selfservice_flows_login_lifespan, kratos_selfservice_flows_login_ui_url, kratos_selfservice_flows_logout_after_default_browser_return_url, kratos_selfservice_flows_recovery_after_default_browser_return_url, kratos_selfservice_flows_recovery_enabled, kratos_selfservice_flows_recovery_lifespan, kratos_selfservice_flows_recovery_notify_unknown_recipients, kratos_selfservice_flows_recovery_ui_url, kratos_selfservice_flows_recovery_use, kratos_selfservice_flows_registration_after_code_default_browser_return_url, kratos_selfservice_flows_registration_after_default_browser_return_url, kratos_selfservice_flows_registration_after_oidc_default_browser_return_url, kratos_selfservice_flows_registration_after_password_default_browser_return_url, kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url, kratos_selfservice_flows_registration_enabled, kratos_selfservice_flows_registration_lifespan, kratos_selfservice_flows_registration_login_hints, kratos_selfservice_flows_registration_ui_url, kratos_selfservice_flows_settings_after_default_browser_return_url, kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url, kratos_selfservice_flows_settings_after_oidc_default_browser_return_url, kratos_selfservice_flows_settings_after_password_default_browser_return_url, kratos_selfservice_flows_settings_after_profile_default_browser_return_url, kratos_selfservice_flows_settings_after_totp_default_browser_return_url, kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url, kratos_selfservice_flows_settings_lifespan, kratos_selfservice_flows_settings_privileged_session_max_age, kratos_selfservice_flows_settings_required_aal, kratos_selfservice_flows_settings_ui_url, kratos_selfservice_flows_verification_after_default_browser_return_url, kratos_selfservice_flows_verification_enabled, kratos_selfservice_flows_verification_lifespan, kratos_selfservice_flows_verification_notify_unknown_recipients, kratos_selfservice_flows_verification_ui_url, kratos_selfservice_flows_verification_use, kratos_selfservice_methods_code_config_lifespan, kratos_selfservice_methods_code_enabled, kratos_selfservice_methods_code_mfa_enabled, kratos_selfservice_methods_code_passwordless_enabled, kratos_selfservice_methods_link_config_base_url, kratos_selfservice_methods_link_config_lifespan, kratos_selfservice_methods_link_enabled, kratos_selfservice_methods_lookup_secret_enabled, kratos_selfservice_methods_oidc_config_base_redirect_uri, kratos_selfservice_methods_oidc_config_providers, kratos_selfservice_methods_oidc_enabled, kratos_selfservice_methods_password_config_haveibeenpwned_enabled, kratos_selfservice_methods_password_config_identifier_similarity_check_enabled, kratos_selfservice_methods_password_config_ignore_network_errors, kratos_selfservice_methods_password_config_max_breaches, kratos_selfservice_methods_password_config_min_password_length, kratos_selfservice_methods_password_enabled, kratos_selfservice_methods_profile_enabled, kratos_selfservice_methods_totp_config_issuer, kratos_selfservice_methods_totp_enabled, kratos_selfservice_methods_webauthn_config_passwordless, kratos_selfservice_methods_webauthn_config_rp_display_name, kratos_selfservice_methods_webauthn_config_rp_icon, kratos_selfservice_methods_webauthn_config_rp_id, kratos_selfservice_methods_webauthn_config_rp_origins, kratos_selfservice_methods_webauthn_enabled, kratos_session_cookie_persistent, kratos_session_cookie_same_site, kratos_session_lifespan, kratos_session_whoami_required_aal, kratos_session_whoami_tokenizer_templates, name, project_id, project_revision_hooks, serve_admin_cors_allowed_origins, serve_admin_cors_enabled, serve_public_cors_allowed_origins, serve_public_cors_enabled, strict_security, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -2258,7 +2319,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_courier_channel.rb b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_courier_channel.rb index 5721766685e..c2950a79e5b 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_courier_channel.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_courier_channel.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -142,6 +142,8 @@ def initialize(attributes = {}) if attributes.key?(:'channel_id') self.channel_id = attributes[:'channel_id'] + else + self.channel_id = nil end if attributes.key?(:'created_at') @@ -174,6 +176,8 @@ def initialize(attributes = {}) if attributes.key?(:'request_config_body') self.request_config_body = attributes[:'request_config_body'] + else + self.request_config_body = nil end if attributes.key?(:'request_config_headers') @@ -182,6 +186,8 @@ def initialize(attributes = {}) if attributes.key?(:'request_config_method') self.request_config_method = attributes[:'request_config_method'] + else + self.request_config_method = nil end if attributes.key?(:'request_config_url') @@ -196,6 +202,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @channel_id.nil? invalid_properties.push('invalid value for "channel_id", channel_id cannot be nil.') @@ -215,6 +222,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @channel_id.nil? request_config_auth_type_validator = EnumAttributeValidator.new('String', ["basic_auth", "api_key"]) return false unless request_config_auth_type_validator.valid?(@request_config_auth_type) @@ -269,37 +277,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -334,7 +335,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_hook.rb b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_hook.rb index 7ec0725d831..4792c08dfe3 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_hook.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_hook.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -145,6 +145,8 @@ def initialize(attributes = {}) if attributes.key?(:'config_key') self.config_key = attributes[:'config_key'] + else + self.config_key = nil end if attributes.key?(:'created_at') @@ -153,6 +155,8 @@ def initialize(attributes = {}) if attributes.key?(:'hook') self.hook = attributes[:'hook'] + else + self.hook = nil end if attributes.key?(:'id') @@ -219,6 +223,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @config_key.nil? invalid_properties.push('invalid value for "config_key", config_key cannot be nil.') @@ -234,6 +239,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @config_key.nil? return false if @hook.nil? true @@ -280,37 +286,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -345,7 +344,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_identity_schema.rb b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_identity_schema.rb index 2d90152c115..d9b3ead6f11 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_identity_schema.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_identity_schema.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -146,6 +146,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -153,6 +154,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -189,37 +191,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -254,7 +249,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_third_party_provider.rb b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_third_party_provider.rb index 5f7a9c18d54..260bcfc851a 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_third_party_provider.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_third_party_provider.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -31,6 +31,8 @@ class NormalizedProjectRevisionThirdPartyProvider # Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. attr_accessor :azure_tenant + attr_accessor :claims_source + # ClientID is the application's Client ID. attr_accessor :client_id @@ -107,6 +109,7 @@ def self.attribute_map :'apple_team_id' => :'apple_team_id', :'auth_url' => :'auth_url', :'azure_tenant' => :'azure_tenant', + :'claims_source' => :'claims_source', :'client_id' => :'client_id', :'client_secret' => :'client_secret', :'created_at' => :'created_at', @@ -141,6 +144,7 @@ def self.openapi_types :'apple_team_id' => :'String', :'auth_url' => :'String', :'azure_tenant' => :'String', + :'claims_source' => :'String', :'client_id' => :'String', :'client_secret' => :'String', :'created_at' => :'Time', @@ -165,6 +169,7 @@ def self.openapi_types def self.openapi_nullable Set.new([ :'apple_private_key', + :'claims_source', :'client_secret', :'organization_id', :'subject_source', @@ -212,6 +217,10 @@ def initialize(attributes = {}) self.azure_tenant = attributes[:'azure_tenant'] end + if attributes.key?(:'claims_source') + self.claims_source = attributes[:'claims_source'] + end + if attributes.key?(:'client_id') self.client_id = attributes[:'client_id'] end @@ -286,6 +295,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -293,6 +303,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' state_validator = EnumAttributeValidator.new('String', ["enabled", "disabled"]) return false unless state_validator.valid?(@state) true @@ -319,6 +330,7 @@ def ==(o) apple_team_id == o.apple_team_id && auth_url == o.auth_url && azure_tenant == o.azure_tenant && + claims_source == o.claims_source && client_id == o.client_id && client_secret == o.client_secret && created_at == o.created_at && @@ -347,44 +359,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [additional_id_token_audiences, apple_private_key, apple_private_key_id, apple_team_id, auth_url, azure_tenant, client_id, client_secret, created_at, id, issuer_url, label, mapper_url, organization_id, project_revision_id, provider, provider_id, requested_claims, scope, state, subject_source, token_url, updated_at].hash + [additional_id_token_audiences, apple_private_key, apple_private_key_id, apple_team_id, auth_url, azure_tenant, claims_source, client_id, client_secret, created_at, id, issuer_url, label, mapper_url, organization_id, project_revision_id, provider, provider_id, requested_claims, scope, state, subject_source, token_url, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -419,7 +424,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb index 7875900536a..3430aabaa46 100644 --- a/clients/client/ruby/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb +++ b/clients/client/ruby/lib/ory-client/models/normalized_project_revision_tokenizer_template.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -131,6 +131,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) if !@ttl.nil? && @ttl !~ pattern @@ -143,6 +144,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@ttl.nil? && @ttl !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) true end @@ -150,8 +152,12 @@ def valid? # Custom attribute writer method with validation # @param [Object] ttl Value to be assigned def ttl=(ttl) + if ttl.nil? + fail ArgumentError, 'ttl cannot be nil' + end + pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) - if !ttl.nil? && ttl !~ pattern + if ttl !~ pattern fail ArgumentError, "invalid value for \"ttl\", must conform to the pattern #{pattern}." end @@ -189,37 +195,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -254,7 +253,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_client.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_client.rb index 4c8f1775cd3..9d0fd13c368 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_client.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_client.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -120,6 +120,9 @@ class OAuth2Client # SkipConsent skips the consent screen for this client. This field can only be set from the admin API. attr_accessor :skip_consent + # SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + attr_accessor :skip_logout_consent + # OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. attr_accessor :subject_type @@ -182,6 +185,7 @@ def self.attribute_map :'scope' => :'scope', :'sector_identifier_uri' => :'sector_identifier_uri', :'skip_consent' => :'skip_consent', + :'skip_logout_consent' => :'skip_logout_consent', :'subject_type' => :'subject_type', :'token_endpoint_auth_method' => :'token_endpoint_auth_method', :'token_endpoint_auth_signing_alg' => :'token_endpoint_auth_signing_alg', @@ -240,6 +244,7 @@ def self.openapi_types :'scope' => :'String', :'sector_identifier_uri' => :'String', :'skip_consent' => :'Boolean', + :'skip_logout_consent' => :'Boolean', :'subject_type' => :'String', :'token_endpoint_auth_method' => :'String', :'token_endpoint_auth_signing_alg' => :'String', @@ -461,6 +466,10 @@ def initialize(attributes = {}) self.skip_consent = attributes[:'skip_consent'] end + if attributes.key?(:'skip_logout_consent') + self.skip_logout_consent = attributes[:'skip_logout_consent'] + end + if attributes.key?(:'subject_type') self.subject_type = attributes[:'subject_type'] end @@ -491,6 +500,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) if !@authorization_code_grant_access_token_lifespan.nil? && @authorization_code_grant_access_token_lifespan !~ pattern @@ -548,6 +558,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@authorization_code_grant_access_token_lifespan.nil? && @authorization_code_grant_access_token_lifespan !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) return false if !@authorization_code_grant_id_token_lifespan.nil? && @authorization_code_grant_id_token_lifespan !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) return false if !@authorization_code_grant_refresh_token_lifespan.nil? && @authorization_code_grant_refresh_token_lifespan !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) @@ -717,6 +728,7 @@ def ==(o) scope == o.scope && sector_identifier_uri == o.sector_identifier_uri && skip_consent == o.skip_consent && + skip_logout_consent == o.skip_logout_consent && subject_type == o.subject_type && token_endpoint_auth_method == o.token_endpoint_auth_method && token_endpoint_auth_signing_alg == o.token_endpoint_auth_signing_alg && @@ -734,44 +746,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [access_token_strategy, allowed_cors_origins, audience, authorization_code_grant_access_token_lifespan, authorization_code_grant_id_token_lifespan, authorization_code_grant_refresh_token_lifespan, backchannel_logout_session_required, backchannel_logout_uri, client_credentials_grant_access_token_lifespan, client_id, client_name, client_secret, client_secret_expires_at, client_uri, contacts, created_at, frontchannel_logout_session_required, frontchannel_logout_uri, grant_types, implicit_grant_access_token_lifespan, implicit_grant_id_token_lifespan, jwks, jwks_uri, jwt_bearer_grant_access_token_lifespan, logo_uri, metadata, owner, policy_uri, post_logout_redirect_uris, redirect_uris, refresh_token_grant_access_token_lifespan, refresh_token_grant_id_token_lifespan, refresh_token_grant_refresh_token_lifespan, registration_access_token, registration_client_uri, request_object_signing_alg, request_uris, response_types, scope, sector_identifier_uri, skip_consent, subject_type, token_endpoint_auth_method, token_endpoint_auth_signing_alg, tos_uri, updated_at, userinfo_signed_response_alg].hash + [access_token_strategy, allowed_cors_origins, audience, authorization_code_grant_access_token_lifespan, authorization_code_grant_id_token_lifespan, authorization_code_grant_refresh_token_lifespan, backchannel_logout_session_required, backchannel_logout_uri, client_credentials_grant_access_token_lifespan, client_id, client_name, client_secret, client_secret_expires_at, client_uri, contacts, created_at, frontchannel_logout_session_required, frontchannel_logout_uri, grant_types, implicit_grant_access_token_lifespan, implicit_grant_id_token_lifespan, jwks, jwks_uri, jwt_bearer_grant_access_token_lifespan, logo_uri, metadata, owner, policy_uri, post_logout_redirect_uris, redirect_uris, refresh_token_grant_access_token_lifespan, refresh_token_grant_id_token_lifespan, refresh_token_grant_refresh_token_lifespan, registration_access_token, registration_client_uri, request_object_signing_alg, request_uris, response_types, scope, sector_identifier_uri, skip_consent, skip_logout_consent, subject_type, token_endpoint_auth_method, token_endpoint_auth_signing_alg, tos_uri, updated_at, userinfo_signed_response_alg].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -806,7 +811,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_client_token_lifespans.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_client_token_lifespans.rb index 8a04b7eba63..27f1b482308 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_client_token_lifespans.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_client_token_lifespans.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -148,6 +148,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new pattern = Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) if !@authorization_code_grant_access_token_lifespan.nil? && @authorization_code_grant_access_token_lifespan !~ pattern @@ -205,6 +206,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@authorization_code_grant_access_token_lifespan.nil? && @authorization_code_grant_access_token_lifespan !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) return false if !@authorization_code_grant_id_token_lifespan.nil? && @authorization_code_grant_id_token_lifespan !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) return false if !@authorization_code_grant_refresh_token_lifespan.nil? && @authorization_code_grant_refresh_token_lifespan !~ Regexp.new(/^[0-9]+(ns|us|ms|s|m|h)$/) @@ -361,37 +363,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -426,7 +421,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request.rb index 34127bb83e4..be3a25d1423 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -124,6 +124,8 @@ def initialize(attributes = {}) if attributes.key?(:'challenge') self.challenge = attributes[:'challenge'] + else + self.challenge = nil end if attributes.key?(:'client') @@ -174,6 +176,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @challenge.nil? invalid_properties.push('invalid value for "challenge", challenge cannot be nil.') @@ -185,6 +188,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @challenge.nil? true end @@ -225,37 +229,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -290,7 +287,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb index 3062ea79cda..459d8669dda 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_request_open_id_connect_context.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -108,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -115,6 +116,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -146,37 +148,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -211,7 +206,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session.rb index 048155da803..c45f574be8a 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -18,6 +18,8 @@ module OryClient class OAuth2ConsentSession attr_accessor :consent_request + attr_accessor :context + attr_accessor :expires_at attr_accessor :grant_access_token_audience @@ -38,6 +40,7 @@ class OAuth2ConsentSession def self.attribute_map { :'consent_request' => :'consent_request', + :'context' => :'context', :'expires_at' => :'expires_at', :'grant_access_token_audience' => :'grant_access_token_audience', :'grant_scope' => :'grant_scope', @@ -57,6 +60,7 @@ def self.acceptable_attributes def self.openapi_types { :'consent_request' => :'OAuth2ConsentRequest', + :'context' => :'Object', :'expires_at' => :'OAuth2ConsentSessionExpiresAt', :'grant_access_token_audience' => :'Array', :'grant_scope' => :'Array', @@ -92,6 +96,10 @@ def initialize(attributes = {}) self.consent_request = attributes[:'consent_request'] end + if attributes.key?(:'context') + self.context = attributes[:'context'] + end + if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -128,6 +136,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -135,6 +144,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -144,6 +154,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && consent_request == o.consent_request && + context == o.context && expires_at == o.expires_at && grant_access_token_audience == o.grant_access_token_audience && grant_scope == o.grant_scope && @@ -162,44 +173,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [consent_request, expires_at, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash + [consent_request, context, expires_at, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -234,7 +238,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session_expires_at.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session_expires_at.rb index 3ca2e814d3a..503c4cf4534 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session_expires_at.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_consent_session_expires_at.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -97,6 +97,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -104,6 +105,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -135,37 +137,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -200,7 +195,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_login_request.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_login_request.rb index f6fdd65804d..a06693d7cd0 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_login_request.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_login_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -96,10 +96,14 @@ def initialize(attributes = {}) if attributes.key?(:'challenge') self.challenge = attributes[:'challenge'] + else + self.challenge = nil end if attributes.key?(:'client') self.client = attributes[:'client'] + else + self.client = nil end if attributes.key?(:'oidc_context') @@ -108,6 +112,8 @@ def initialize(attributes = {}) if attributes.key?(:'request_url') self.request_url = attributes[:'request_url'] + else + self.request_url = nil end if attributes.key?(:'requested_access_token_audience') @@ -128,16 +134,21 @@ def initialize(attributes = {}) if attributes.key?(:'skip') self.skip = attributes[:'skip'] + else + self.skip = nil end if attributes.key?(:'subject') self.subject = attributes[:'subject'] + else + self.subject = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @challenge.nil? invalid_properties.push('invalid value for "challenge", challenge cannot be nil.') @@ -165,6 +176,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @challenge.nil? return false if @client.nil? return false if @request_url.nil? @@ -205,37 +217,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -270,7 +275,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_logout_request.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_logout_request.rb index cb88630403b..9ee820e9987 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_logout_request.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_logout_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -110,6 +110,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -117,6 +118,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -149,37 +151,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -214,7 +209,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_redirect_to.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_redirect_to.rb index 6ab76eb3229..0d24bf7adf4 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_redirect_to.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_redirect_to.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -61,12 +61,15 @@ def initialize(attributes = {}) if attributes.key?(:'redirect_to') self.redirect_to = attributes[:'redirect_to'] + else + self.redirect_to = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @redirect_to.nil? invalid_properties.push('invalid value for "redirect_to", redirect_to cannot be nil.') @@ -78,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @redirect_to.nil? true end @@ -106,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -171,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/o_auth2_token_exchange.rb b/clients/client/ruby/lib/ory-client/models/o_auth2_token_exchange.rb index dc9c22e8cdf..c9a7aec6bc0 100644 --- a/clients/client/ruby/lib/ory-client/models/o_auth2_token_exchange.rb +++ b/clients/client/ruby/lib/ory-client/models/o_auth2_token_exchange.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -112,6 +112,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -119,6 +120,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -151,37 +153,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -216,7 +211,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/oidc_configuration.rb b/clients/client/ruby/lib/ory-client/models/oidc_configuration.rb index 25ac76272f3..8a83f1de24f 100644 --- a/clients/client/ruby/lib/ory-client/models/oidc_configuration.rb +++ b/clients/client/ruby/lib/ory-client/models/oidc_configuration.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -211,6 +211,8 @@ def initialize(attributes = {}) if attributes.key?(:'authorization_endpoint') self.authorization_endpoint = attributes[:'authorization_endpoint'] + else + self.authorization_endpoint = nil end if attributes.key?(:'backchannel_logout_session_supported') @@ -269,20 +271,28 @@ def initialize(attributes = {}) if (value = attributes[:'id_token_signed_response_alg']).is_a?(Array) self.id_token_signed_response_alg = value end + else + self.id_token_signed_response_alg = nil end if attributes.key?(:'id_token_signing_alg_values_supported') if (value = attributes[:'id_token_signing_alg_values_supported']).is_a?(Array) self.id_token_signing_alg_values_supported = value end + else + self.id_token_signing_alg_values_supported = nil end if attributes.key?(:'issuer') self.issuer = attributes[:'issuer'] + else + self.issuer = nil end if attributes.key?(:'jwks_uri') self.jwks_uri = attributes[:'jwks_uri'] + else + self.jwks_uri = nil end if attributes.key?(:'registration_endpoint') @@ -317,6 +327,8 @@ def initialize(attributes = {}) if (value = attributes[:'response_types_supported']).is_a?(Array) self.response_types_supported = value end + else + self.response_types_supported = nil end if attributes.key?(:'revocation_endpoint') @@ -333,10 +345,14 @@ def initialize(attributes = {}) if (value = attributes[:'subject_types_supported']).is_a?(Array) self.subject_types_supported = value end + else + self.subject_types_supported = nil end if attributes.key?(:'token_endpoint') self.token_endpoint = attributes[:'token_endpoint'] + else + self.token_endpoint = nil end if attributes.key?(:'token_endpoint_auth_methods_supported') @@ -353,6 +369,8 @@ def initialize(attributes = {}) if (value = attributes[:'userinfo_signed_response_alg']).is_a?(Array) self.userinfo_signed_response_alg = value end + else + self.userinfo_signed_response_alg = nil end if attributes.key?(:'userinfo_signing_alg_values_supported') @@ -365,6 +383,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @authorization_endpoint.nil? invalid_properties.push('invalid value for "authorization_endpoint", authorization_endpoint cannot be nil.') @@ -408,6 +427,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @authorization_endpoint.nil? return false if @id_token_signed_response_alg.nil? return false if @id_token_signing_alg_values_supported.nil? @@ -474,37 +494,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -539,7 +552,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/oidc_user_info.rb b/clients/client/ruby/lib/ory-client/models/oidc_user_info.rb index b09979d04d6..0cc7ca8935a 100644 --- a/clients/client/ruby/lib/ory-client/models/oidc_user_info.rb +++ b/clients/client/ruby/lib/ory-client/models/oidc_user_info.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -229,6 +229,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -236,6 +237,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -281,37 +283,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -346,7 +341,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/organization.rb b/clients/client/ruby/lib/ory-client/models/organization.rb index 0cedcb380f7..2df9bfffee5 100644 --- a/clients/client/ruby/lib/ory-client/models/organization.rb +++ b/clients/client/ruby/lib/ory-client/models/organization.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -85,34 +85,47 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'domains') if (value = attributes[:'domains']).is_a?(Array) self.domains = value end + else + self.domains = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'label') self.label = attributes[:'label'] + else + self.label = nil end if attributes.key?(:'project_id') self.project_id = attributes[:'project_id'] + else + self.project_id = nil end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -144,6 +157,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @domains.nil? return false if @id.nil? @@ -182,37 +196,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -247,7 +254,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/organization_body.rb b/clients/client/ruby/lib/ory-client/models/organization_body.rb index 6601cba6e41..f4f9a1000f6 100644 --- a/clients/client/ruby/lib/ory-client/models/organization_body.rb +++ b/clients/client/ruby/lib/ory-client/models/organization_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -78,6 +78,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -85,6 +86,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -113,37 +115,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -178,7 +173,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/pagination.rb b/clients/client/ruby/lib/ory-client/models/pagination.rb index 3f98a1ab1c8..9edab207161 100644 --- a/clients/client/ruby/lib/ory-client/models/pagination.rb +++ b/clients/client/ruby/lib/ory-client/models/pagination.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -79,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if !@page_size.nil? && @page_size > 1000 invalid_properties.push('invalid value for "page_size", must be smaller than or equal to 1000.') @@ -94,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@page_size.nil? && @page_size > 1000 return false if !@page_size.nil? && @page_size < 1 true @@ -102,11 +104,15 @@ def valid? # Custom attribute writer method with validation # @param [Object] page_size Value to be assigned def page_size=(page_size) - if !page_size.nil? && page_size > 1000 + if page_size.nil? + fail ArgumentError, 'page_size cannot be nil' + end + + if page_size > 1000 fail ArgumentError, 'invalid value for "page_size", must be smaller than or equal to 1000.' end - if !page_size.nil? && page_size < 1 + if page_size < 1 fail ArgumentError, 'invalid value for "page_size", must be greater than or equal to 1.' end @@ -116,6 +122,10 @@ def page_size=(page_size) # Custom attribute writer method with validation # @param [Object] page_token Value to be assigned def page_token=(page_token) + if page_token.nil? + fail ArgumentError, 'page_token cannot be nil' + end + @page_token = page_token end @@ -144,37 +154,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -209,7 +212,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/pagination_headers.rb b/clients/client/ruby/lib/ory-client/models/pagination_headers.rb index cd85707d40b..247953d8cf9 100644 --- a/clients/client/ruby/lib/ory-client/models/pagination_headers.rb +++ b/clients/client/ruby/lib/ory-client/models/pagination_headers.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -75,6 +75,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -82,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -110,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -175,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/parse_error.rb b/clients/client/ruby/lib/ory-client/models/parse_error.rb index a9cb227dd3a..dc9de090beb 100644 --- a/clients/client/ruby/lib/ory-client/models/parse_error.rb +++ b/clients/client/ruby/lib/ory-client/models/parse_error.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -81,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -88,6 +89,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -117,37 +119,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -182,7 +177,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/patch_identities_body.rb b/clients/client/ruby/lib/ory-client/models/patch_identities_body.rb index 7a11cff5947..f0ffa8b25a8 100644 --- a/clients/client/ruby/lib/ory-client/models/patch_identities_body.rb +++ b/clients/client/ruby/lib/ory-client/models/patch_identities_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -69,6 +69,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -76,6 +77,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -103,37 +105,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -168,7 +163,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/perform_native_logout_body.rb b/clients/client/ruby/lib/ory-client/models/perform_native_logout_body.rb index 6c2d1fb6a57..5c9862fab7a 100644 --- a/clients/client/ruby/lib/ory-client/models/perform_native_logout_body.rb +++ b/clients/client/ruby/lib/ory-client/models/perform_native_logout_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -61,12 +61,15 @@ def initialize(attributes = {}) if attributes.key?(:'session_token') self.session_token = attributes[:'session_token'] + else + self.session_token = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @session_token.nil? invalid_properties.push('invalid value for "session_token", session_token cannot be nil.') @@ -78,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @session_token.nil? true end @@ -106,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -171,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/permissions_on_workpace_response.rb b/clients/client/ruby/lib/ory-client/models/permissions_on_workpace_response.rb new file mode 100644 index 00000000000..7ffc6012614 --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/permissions_on_workpace_response.rb @@ -0,0 +1,217 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + # Get Permissions on Project Request Parameters + class PermissionsOnWorkpaceResponse + attr_accessor :permissions + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'permissions' => :'permissions' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'permissions' => :'Hash' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::PermissionsOnWorkpaceResponse` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::PermissionsOnWorkpaceResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'permissions') + if (value = attributes[:'permissions']).is_a?(Hash) + self.permissions = value + end + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + permissions == o.permissions + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [permissions].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/plan.rb b/clients/client/ruby/lib/ory-client/models/plan.rb index 68a13d77ddf..d07ad811740 100644 --- a/clients/client/ruby/lib/ory-client/models/plan.rb +++ b/clients/client/ruby/lib/ory-client/models/plan.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,16 +65,21 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'version') self.version = attributes[:'version'] + else + self.version = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @name.nil? invalid_properties.push('invalid value for "name", name cannot be nil.') @@ -90,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @name.nil? return false if @version.nil? true @@ -120,37 +126,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -185,7 +184,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/plan_details.rb b/clients/client/ruby/lib/ory-client/models/plan_details.rb index ca9e5be5d2b..50a3688608f 100644 --- a/clients/client/ruby/lib/ory-client/models/plan_details.rb +++ b/clients/client/ruby/lib/ory-client/models/plan_details.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -27,7 +27,6 @@ class PlanDetails # Description is the description of the plan. attr_accessor :description - # Features are the feature definitions included in the plan. attr_accessor :features # Name is the name of the plan. @@ -90,38 +89,53 @@ def initialize(attributes = {}) if attributes.key?(:'base_fee_monthly') self.base_fee_monthly = attributes[:'base_fee_monthly'] + else + self.base_fee_monthly = nil end if attributes.key?(:'base_fee_yearly') self.base_fee_yearly = attributes[:'base_fee_yearly'] + else + self.base_fee_yearly = nil end if attributes.key?(:'custom') self.custom = attributes[:'custom'] + else + self.custom = nil end if attributes.key?(:'description') self.description = attributes[:'description'] + else + self.description = nil end if attributes.key?(:'features') if (value = attributes[:'features']).is_a?(Hash) self.features = value end + else + self.features = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'version') self.version = attributes[:'version'] + else + self.version = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @base_fee_monthly.nil? invalid_properties.push('invalid value for "base_fee_monthly", base_fee_monthly cannot be nil.') @@ -157,6 +171,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @base_fee_monthly.nil? return false if @base_fee_yearly.nil? return false if @custom.nil? @@ -197,37 +212,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -262,7 +270,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/post_check_permission_body.rb b/clients/client/ruby/lib/ory-client/models/post_check_permission_body.rb index 2f4f932f9c4..f2bef6b77c8 100644 --- a/clients/client/ruby/lib/ory-client/models/post_check_permission_body.rb +++ b/clients/client/ruby/lib/ory-client/models/post_check_permission_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -102,6 +102,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -109,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -140,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -205,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/post_check_permission_or_error_body.rb b/clients/client/ruby/lib/ory-client/models/post_check_permission_or_error_body.rb index 0bb37a06371..c1c2444730c 100644 --- a/clients/client/ruby/lib/ory-client/models/post_check_permission_or_error_body.rb +++ b/clients/client/ruby/lib/ory-client/models/post_check_permission_or_error_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -102,6 +102,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -109,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -140,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -205,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project.rb b/clients/client/ruby/lib/ory-client/models/project.rb index 61a902efe99..00b49b39f3e 100644 --- a/clients/client/ruby/lib/ory-client/models/project.rb +++ b/clients/client/ruby/lib/ory-client/models/project.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -127,26 +127,38 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'revision_id') self.revision_id = attributes[:'revision_id'] + else + self.revision_id = nil end if attributes.key?(:'services') self.services = attributes[:'services'] + else + self.services = nil end if attributes.key?(:'slug') self.slug = attributes[:'slug'] + else + self.slug = nil end if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil end if attributes.key?(:'workspace_id') @@ -157,6 +169,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -188,6 +201,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @name.nil? return false if @revision_id.nil? @@ -241,37 +255,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -306,7 +313,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_api_key.rb b/clients/client/ruby/lib/ory-client/models/project_api_key.rb index 4f48962c521..cdb7aadc8d2 100644 --- a/clients/client/ruby/lib/ory-client/models/project_api_key.rb +++ b/clients/client/ruby/lib/ory-client/models/project_api_key.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -94,14 +94,20 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'owner_id') self.owner_id = attributes[:'owner_id'] + else + self.owner_id = nil end if attributes.key?(:'project_id') @@ -120,6 +126,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -139,6 +146,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @name.nil? return false if @owner_id.nil? @@ -175,37 +183,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -240,7 +241,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_branding.rb b/clients/client/ruby/lib/ory-client/models/project_branding.rb index cf01d66cffc..91fffd9bd5e 100644 --- a/clients/client/ruby/lib/ory-client/models/project_branding.rb +++ b/clients/client/ruby/lib/ory-client/models/project_branding.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -83,34 +83,47 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'default_theme') self.default_theme = attributes[:'default_theme'] + else + self.default_theme = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'project_id') self.project_id = attributes[:'project_id'] + else + self.project_id = nil end if attributes.key?(:'themes') if (value = attributes[:'themes']).is_a?(Array) self.themes = value end + else + self.themes = nil end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -142,6 +155,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @default_theme.nil? return false if @id.nil? @@ -180,37 +194,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -245,7 +252,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_branding_colors.rb b/clients/client/ruby/lib/ory-client/models/project_branding_colors.rb index 7e89bf58947..b2a05933c81 100644 --- a/clients/client/ruby/lib/ory-client/models/project_branding_colors.rb +++ b/clients/client/ruby/lib/ory-client/models/project_branding_colors.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -318,6 +318,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -325,6 +326,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -380,37 +382,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -445,7 +440,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_branding_theme.rb b/clients/client/ruby/lib/ory-client/models/project_branding_theme.rb index f37faca7cfd..6f20c301511 100644 --- a/clients/client/ruby/lib/ory-client/models/project_branding_theme.rb +++ b/clients/client/ruby/lib/ory-client/models/project_branding_theme.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -281,6 +281,8 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'error_default_color') @@ -337,6 +339,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'input_background_color') @@ -365,6 +369,8 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'primary_color') @@ -373,6 +379,8 @@ def initialize(attributes = {}) if attributes.key?(:'project_branding_id') self.project_branding_id = attributes[:'project_branding_id'] + else + self.project_branding_id = nil end if attributes.key?(:'secondary_color') @@ -393,12 +401,15 @@ def initialize(attributes = {}) if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -426,6 +437,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @id.nil? return false if @name.nil? @@ -495,37 +507,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -560,7 +565,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_cors.rb b/clients/client/ruby/lib/ory-client/models/project_cors.rb index 05b3fc94101..ee90f181d6a 100644 --- a/clients/client/ruby/lib/ory-client/models/project_cors.rb +++ b/clients/client/ruby/lib/ory-client/models/project_cors.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -77,6 +77,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -84,6 +85,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -112,37 +114,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -177,7 +172,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_events_datapoint.rb b/clients/client/ruby/lib/ory-client/models/project_events_datapoint.rb index 11578ef04d0..779de315049 100644 --- a/clients/client/ruby/lib/ory-client/models/project_events_datapoint.rb +++ b/clients/client/ruby/lib/ory-client/models/project_events_datapoint.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -72,20 +72,27 @@ def initialize(attributes = {}) if (value = attributes[:'attributes']).is_a?(Array) self.attributes = value end + else + self.attributes = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'timestamp') self.timestamp = attributes[:'timestamp'] + else + self.timestamp = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') @@ -105,6 +112,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @attributes.nil? return false if @name.nil? return false if @timestamp.nil? @@ -137,37 +145,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -202,7 +203,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_host.rb b/clients/client/ruby/lib/ory-client/models/project_host.rb index cd7d56cbb1f..07ccdf21390 100644 --- a/clients/client/ruby/lib/ory-client/models/project_host.rb +++ b/clients/client/ruby/lib/ory-client/models/project_host.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,20 +70,27 @@ def initialize(attributes = {}) if attributes.key?(:'host') self.host = attributes[:'host'] + else + self.host = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'project_id') self.project_id = attributes[:'project_id'] + else + self.project_id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @host.nil? invalid_properties.push('invalid value for "host", host cannot be nil.') @@ -103,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @host.nil? return false if @id.nil? return false if @project_id.nil? @@ -135,37 +143,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -200,7 +201,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_member.rb b/clients/client/ruby/lib/ory-client/models/project_member.rb new file mode 100644 index 00000000000..23078726e30 --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/project_member.rb @@ -0,0 +1,269 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class ProjectMember + attr_accessor :email + + attr_accessor :id + + attr_accessor :name + + attr_accessor :role + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'email' => :'email', + :'id' => :'id', + :'name' => :'name', + :'role' => :'role' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'email' => :'String', + :'id' => :'String', + :'name' => :'String', + :'role' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::ProjectMember` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::ProjectMember`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'email') + self.email = attributes[:'email'] + else + self.email = nil + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'role') + self.role = attributes[:'role'] + else + self.role = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @email.nil? + invalid_properties.push('invalid value for "email", email cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @role.nil? + invalid_properties.push('invalid value for "role", role cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @email.nil? + return false if @id.nil? + return false if @name.nil? + return false if @role.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + email == o.email && + id == o.id && + name == o.name && + role == o.role + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [email, id, name, role].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/project_metadata.rb b/clients/client/ruby/lib/ory-client/models/project_metadata.rb index ea76b31f1f5..92245c2c1f7 100644 --- a/clients/client/ruby/lib/ory-client/models/project_metadata.rb +++ b/clients/client/ruby/lib/ory-client/models/project_metadata.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -18,6 +18,9 @@ class ProjectMetadata # The Project's Creation Date attr_accessor :created_at + # The environment of the project. prod Production dev Development + attr_accessor :environment + attr_accessor :hosts # The project's ID. @@ -67,6 +70,7 @@ def valid?(value) def self.attribute_map { :'created_at' => :'created_at', + :'environment' => :'environment', :'hosts' => :'hosts', :'id' => :'id', :'name' => :'name', @@ -88,6 +92,7 @@ def self.acceptable_attributes def self.openapi_types { :'created_at' => :'Time', + :'environment' => :'String', :'hosts' => :'Array', :'id' => :'String', :'name' => :'String', @@ -126,20 +131,34 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'environment') + self.environment = attributes[:'environment'] + else + self.environment = nil end if attributes.key?(:'hosts') if (value = attributes[:'hosts']).is_a?(Array) self.hosts = value end + else + self.hosts = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'slug') @@ -148,6 +167,8 @@ def initialize(attributes = {}) if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil end if attributes.key?(:'subscription_id') @@ -160,6 +181,8 @@ def initialize(attributes = {}) if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end if attributes.key?(:'workspace_id') @@ -170,11 +193,16 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') end + if @environment.nil? + invalid_properties.push('invalid value for "environment", environment cannot be nil.') + end + if @hosts.nil? invalid_properties.push('invalid value for "hosts", hosts cannot be nil.') end @@ -201,7 +229,11 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? + return false if @environment.nil? + environment_validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + return false unless environment_validator.valid?(@environment) return false if @hosts.nil? return false if @id.nil? return false if @name.nil? @@ -212,6 +244,16 @@ def valid? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] environment Object to be assigned + def environment=(environment) + validator = EnumAttributeValidator.new('String', ["prod", "dev"]) + unless validator.valid?(environment) + fail ArgumentError, "invalid value for \"environment\", must be one of #{validator.allowable_values}." + end + @environment = environment + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] state Object to be assigned def state=(state) @@ -228,6 +270,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && created_at == o.created_at && + environment == o.environment && hosts == o.hosts && id == o.id && name == o.name && @@ -248,44 +291,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [created_at, hosts, id, name, slug, state, subscription_id, subscription_plan, updated_at, workspace_id].hash + [created_at, environment, hosts, id, name, slug, state, subscription_id, subscription_plan, updated_at, workspace_id].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -320,7 +356,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_service_identity.rb b/clients/client/ruby/lib/ory-client/models/project_service_identity.rb index 6ef698dbbc7..63ce83a5c34 100644 --- a/clients/client/ruby/lib/ory-client/models/project_service_identity.rb +++ b/clients/client/ruby/lib/ory-client/models/project_service_identity.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -59,12 +59,15 @@ def initialize(attributes = {}) if attributes.key?(:'config') self.config = attributes[:'config'] + else + self.config = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') @@ -76,6 +79,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @config.nil? true end @@ -104,37 +108,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -169,7 +166,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_service_o_auth2.rb b/clients/client/ruby/lib/ory-client/models/project_service_o_auth2.rb index 35c108f1c78..91022ba29dd 100644 --- a/clients/client/ruby/lib/ory-client/models/project_service_o_auth2.rb +++ b/clients/client/ruby/lib/ory-client/models/project_service_o_auth2.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -59,12 +59,15 @@ def initialize(attributes = {}) if attributes.key?(:'config') self.config = attributes[:'config'] + else + self.config = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') @@ -76,6 +79,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @config.nil? true end @@ -104,37 +108,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -169,7 +166,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_service_permission.rb b/clients/client/ruby/lib/ory-client/models/project_service_permission.rb index 47a2810951c..a7660542d88 100644 --- a/clients/client/ruby/lib/ory-client/models/project_service_permission.rb +++ b/clients/client/ruby/lib/ory-client/models/project_service_permission.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -59,12 +59,15 @@ def initialize(attributes = {}) if attributes.key?(:'config') self.config = attributes[:'config'] + else + self.config = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @config.nil? invalid_properties.push('invalid value for "config", config cannot be nil.') @@ -76,6 +79,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @config.nil? true end @@ -104,37 +108,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -169,7 +166,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/project_services.rb b/clients/client/ruby/lib/ory-client/models/project_services.rb index 4ac24bc0c29..c673b98325c 100644 --- a/clients/client/ruby/lib/ory-client/models/project_services.rb +++ b/clients/client/ruby/lib/ory-client/models/project_services.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -81,6 +81,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -88,6 +89,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -117,37 +119,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -182,7 +177,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/quota_usage.rb b/clients/client/ruby/lib/ory-client/models/quota_usage.rb index 1fbd11d46ad..9ab2af5a762 100644 --- a/clients/client/ruby/lib/ory-client/models/quota_usage.rb +++ b/clients/client/ruby/lib/ory-client/models/quota_usage.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -20,7 +20,7 @@ class QuotaUsage attr_accessor :can_use_more - # region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + # region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect attr_accessor :feature attr_accessor :feature_available @@ -103,32 +103,45 @@ def initialize(attributes = {}) if attributes.key?(:'additional_price') self.additional_price = attributes[:'additional_price'] + else + self.additional_price = nil end if attributes.key?(:'can_use_more') self.can_use_more = attributes[:'can_use_more'] + else + self.can_use_more = nil end if attributes.key?(:'feature') self.feature = attributes[:'feature'] + else + self.feature = nil end if attributes.key?(:'feature_available') self.feature_available = attributes[:'feature_available'] + else + self.feature_available = nil end if attributes.key?(:'included') self.included = attributes[:'included'] + else + self.included = nil end if attributes.key?(:'used') self.used = attributes[:'used'] + else + self.used = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @additional_price.nil? invalid_properties.push('invalid value for "additional_price", additional_price cannot be nil.') @@ -160,10 +173,11 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @additional_price.nil? return false if @can_use_more.nil? return false if @feature.nil? - feature_validator = EnumAttributeValidator.new('String', ["region_eu", "region_us", "region_apac", "region_global", "production_projects", "daily_active_users", "custom_domains", "event_streams", "sla", "collaborator_seats", "edge_cache", "branding_themes", "zendesk_support", "project_metrics", "project_metrics_time_window", "project_metrics_events_history", "organizations", "rop_grant", "rate_limit_tier", "session_rate_limit_tier", "identities_list_rate_limit_tier"]) + feature_validator = EnumAttributeValidator.new('String', ["region_eu", "region_us", "region_apac", "region_global", "production_projects", "daily_active_users", "custom_domains", "event_streams", "sla", "collaborator_seats", "edge_cache", "branding_themes", "zendesk_support", "project_metrics", "project_metrics_time_window", "project_metrics_events_history", "organizations", "rop_grant", "concierge_onboarding", "rate_limit_tier", "session_rate_limit_tier", "identities_list_rate_limit_tier", "permission_checks_rate_limit_tier", "oauth2_introspect_rate_limit_tier"]) return false unless feature_validator.valid?(@feature) return false if @feature_available.nil? return false if @included.nil? @@ -174,7 +188,7 @@ def valid? # Custom attribute writer method checking allowed values (enum). # @param [Object] feature Object to be assigned def feature=(feature) - validator = EnumAttributeValidator.new('String', ["region_eu", "region_us", "region_apac", "region_global", "production_projects", "daily_active_users", "custom_domains", "event_streams", "sla", "collaborator_seats", "edge_cache", "branding_themes", "zendesk_support", "project_metrics", "project_metrics_time_window", "project_metrics_events_history", "organizations", "rop_grant", "rate_limit_tier", "session_rate_limit_tier", "identities_list_rate_limit_tier"]) + validator = EnumAttributeValidator.new('String', ["region_eu", "region_us", "region_apac", "region_global", "production_projects", "daily_active_users", "custom_domains", "event_streams", "sla", "collaborator_seats", "edge_cache", "branding_themes", "zendesk_support", "project_metrics", "project_metrics_time_window", "project_metrics_events_history", "organizations", "rop_grant", "concierge_onboarding", "rate_limit_tier", "session_rate_limit_tier", "identities_list_rate_limit_tier", "permission_checks_rate_limit_tier", "oauth2_introspect_rate_limit_tier"]) unless validator.valid?(feature) fail ArgumentError, "invalid value for \"feature\", must be one of #{validator.allowable_values}." end @@ -210,37 +224,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -275,7 +282,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/recovery_code_for_identity.rb b/clients/client/ruby/lib/ory-client/models/recovery_code_for_identity.rb index 0eb16548637..a057b52977f 100644 --- a/clients/client/ruby/lib/ory-client/models/recovery_code_for_identity.rb +++ b/clients/client/ruby/lib/ory-client/models/recovery_code_for_identity.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -75,16 +75,21 @@ def initialize(attributes = {}) if attributes.key?(:'recovery_code') self.recovery_code = attributes[:'recovery_code'] + else + self.recovery_code = nil end if attributes.key?(:'recovery_link') self.recovery_link = attributes[:'recovery_link'] + else + self.recovery_link = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @recovery_code.nil? invalid_properties.push('invalid value for "recovery_code", recovery_code cannot be nil.') @@ -100,6 +105,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @recovery_code.nil? return false if @recovery_link.nil? true @@ -131,37 +137,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -196,7 +195,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/recovery_flow.rb b/clients/client/ruby/lib/ory-client/models/recovery_flow.rb index 0c8f004f297..a703cf6e2a4 100644 --- a/clients/client/ruby/lib/ory-client/models/recovery_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/recovery_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,6 +40,9 @@ class RecoveryFlow # State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. attr_accessor :state + # TransientPayload is used to pass data from the recovery flow to hooks and email templates + attr_accessor :transient_payload + # The flow type can either be `api` or `browser`. attr_accessor :type @@ -56,6 +59,7 @@ def self.attribute_map :'request_url' => :'request_url', :'return_to' => :'return_to', :'state' => :'state', + :'transient_payload' => :'transient_payload', :'type' => :'type', :'ui' => :'ui' } @@ -77,6 +81,7 @@ def self.openapi_types :'request_url' => :'String', :'return_to' => :'String', :'state' => :'Object', + :'transient_payload' => :'Object', :'type' => :'String', :'ui' => :'UiContainer' } @@ -116,18 +121,26 @@ def initialize(attributes = {}) if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] + else + self.expires_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'issued_at') self.issued_at = attributes[:'issued_at'] + else + self.issued_at = nil end if attributes.key?(:'request_url') self.request_url = attributes[:'request_url'] + else + self.request_url = nil end if attributes.key?(:'return_to') @@ -136,20 +149,31 @@ def initialize(attributes = {}) if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'ui') self.ui = attributes[:'ui'] + else + self.ui = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @expires_at.nil? invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') @@ -181,6 +205,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @expires_at.nil? return false if @id.nil? return false if @issued_at.nil? @@ -203,6 +228,7 @@ def ==(o) request_url == o.request_url && return_to == o.return_to && state == o.state && + transient_payload == o.transient_payload && type == o.type && ui == o.ui end @@ -216,44 +242,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [active, continue_with, expires_at, id, issued_at, request_url, return_to, state, type, ui].hash + [active, continue_with, expires_at, id, issued_at, request_url, return_to, state, transient_payload, type, ui].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -288,7 +307,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/recovery_flow_state.rb b/clients/client/ruby/lib/ory-client/models/recovery_flow_state.rb index ab0d7d74fd5..2658954fe4a 100644 --- a/clients/client/ruby/lib/ory-client/models/recovery_flow_state.rb +++ b/clients/client/ruby/lib/ory-client/models/recovery_flow_state.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -19,6 +19,10 @@ class RecoveryFlowState SENT_EMAIL = "sent_email".freeze PASSED_CHALLENGE = "passed_challenge".freeze + def self.all_vars + @all_vars ||= [CHOOSE_METHOD, SENT_EMAIL, PASSED_CHALLENGE].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -30,9 +34,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = RecoveryFlowState.constants.select { |c| RecoveryFlowState::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #RecoveryFlowState" if constantValues.empty? - value + return value if RecoveryFlowState.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #RecoveryFlowState" end end end diff --git a/clients/client/ruby/lib/ory-client/models/recovery_identity_address.rb b/clients/client/ruby/lib/ory-client/models/recovery_identity_address.rb index bc1d4d1e0b7..d9291044b47 100644 --- a/clients/client/ruby/lib/ory-client/models/recovery_identity_address.rb +++ b/clients/client/ruby/lib/ory-client/models/recovery_identity_address.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -81,6 +81,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'updated_at') @@ -89,16 +91,21 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] + else + self.value = nil end if attributes.key?(:'via') self.via = attributes[:'via'] + else + self.via = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -118,6 +125,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @value.nil? return false if @via.nil? @@ -152,37 +160,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -217,7 +218,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/recovery_link_for_identity.rb b/clients/client/ruby/lib/ory-client/models/recovery_link_for_identity.rb index 91e38e3e3b2..ee51c03c9fd 100644 --- a/clients/client/ruby/lib/ory-client/models/recovery_link_for_identity.rb +++ b/clients/client/ruby/lib/ory-client/models/recovery_link_for_identity.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,12 +70,15 @@ def initialize(attributes = {}) if attributes.key?(:'recovery_link') self.recovery_link = attributes[:'recovery_link'] + else + self.recovery_link = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @recovery_link.nil? invalid_properties.push('invalid value for "recovery_link", recovery_link cannot be nil.') @@ -87,6 +90,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @recovery_link.nil? true end @@ -116,37 +120,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -181,7 +178,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/registration_flow.rb b/clients/client/ruby/lib/ory-client/models/registration_flow.rb index b5f5f6d282c..8b0af7ad246 100644 --- a/clients/client/ruby/lib/ory-client/models/registration_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/registration_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -15,6 +15,7 @@ module OryClient class RegistrationFlow + # Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 attr_accessor :active # ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. @@ -53,6 +54,28 @@ class RegistrationFlow attr_accessor :ui + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -81,7 +104,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { - :'active' => :'IdentityCredentialsType', + :'active' => :'String', :'expires_at' => :'Time', :'id' => :'String', :'issued_at' => :'Time', @@ -127,14 +150,20 @@ def initialize(attributes = {}) if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] + else + self.expires_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'issued_at') self.issued_at = attributes[:'issued_at'] + else + self.issued_at = nil end if attributes.key?(:'oauth2_login_challenge') @@ -151,6 +180,8 @@ def initialize(attributes = {}) if attributes.key?(:'request_url') self.request_url = attributes[:'request_url'] + else + self.request_url = nil end if attributes.key?(:'return_to') @@ -163,6 +194,8 @@ def initialize(attributes = {}) if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil end if attributes.key?(:'transient_payload') @@ -171,16 +204,21 @@ def initialize(attributes = {}) if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'ui') self.ui = attributes[:'ui'] + else + self.ui = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @expires_at.nil? invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') @@ -212,6 +250,9 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + active_validator = EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + return false unless active_validator.valid?(@active) return false if @expires_at.nil? return false if @id.nil? return false if @issued_at.nil? @@ -221,6 +262,16 @@ def valid? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] active Object to be assigned + def active=(active) + validator = EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + unless validator.valid?(active) + fail ArgumentError, "invalid value for \"active\", must be one of #{validator.allowable_values}." + end + @active = active + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -258,37 +309,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -323,7 +367,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/registration_flow_state.rb b/clients/client/ruby/lib/ory-client/models/registration_flow_state.rb index 1ca043dbb56..8a83305cbab 100644 --- a/clients/client/ruby/lib/ory-client/models/registration_flow_state.rb +++ b/clients/client/ruby/lib/ory-client/models/registration_flow_state.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -19,6 +19,10 @@ class RegistrationFlowState SENT_EMAIL = "sent_email".freeze PASSED_CHALLENGE = "passed_challenge".freeze + def self.all_vars + @all_vars ||= [CHOOSE_METHOD, SENT_EMAIL, PASSED_CHALLENGE].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -30,9 +34,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = RegistrationFlowState.constants.select { |c| RegistrationFlowState::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #RegistrationFlowState" if constantValues.empty? - value + return value if RegistrationFlowState.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #RegistrationFlowState" end end end diff --git a/clients/client/ruby/lib/ory-client/models/reject_o_auth2_request.rb b/clients/client/ruby/lib/ory-client/models/reject_o_auth2_request.rb index 197824500da..45faa8182c6 100644 --- a/clients/client/ruby/lib/ory-client/models/reject_o_auth2_request.rb +++ b/clients/client/ruby/lib/ory-client/models/reject_o_auth2_request.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -102,6 +102,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -109,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -140,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -205,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/relation_query.rb b/clients/client/ruby/lib/ory-client/models/relation_query.rb index 03ce0152f82..7c6d3b4becc 100644 --- a/clients/client/ruby/lib/ory-client/models/relation_query.rb +++ b/clients/client/ruby/lib/ory-client/models/relation_query.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -102,6 +102,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -109,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -140,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -205,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/relationship.rb b/clients/client/ruby/lib/ory-client/models/relationship.rb index d5af341b62a..fda570277f4 100644 --- a/clients/client/ruby/lib/ory-client/models/relationship.rb +++ b/clients/client/ruby/lib/ory-client/models/relationship.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -80,14 +80,20 @@ def initialize(attributes = {}) if attributes.key?(:'namespace') self.namespace = attributes[:'namespace'] + else + self.namespace = nil end if attributes.key?(:'object') self.object = attributes[:'object'] + else + self.object = nil end if attributes.key?(:'relation') self.relation = attributes[:'relation'] + else + self.relation = nil end if attributes.key?(:'subject_id') @@ -102,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @namespace.nil? invalid_properties.push('invalid value for "namespace", namespace cannot be nil.') @@ -121,6 +128,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @namespace.nil? return false if @object.nil? return false if @relation.nil? @@ -155,37 +163,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -220,7 +221,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/relationship_namespaces.rb b/clients/client/ruby/lib/ory-client/models/relationship_namespaces.rb index 9df0f283fb1..ccd1e969685 100644 --- a/clients/client/ruby/lib/ory-client/models/relationship_namespaces.rb +++ b/clients/client/ruby/lib/ory-client/models/relationship_namespaces.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -68,6 +68,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -75,6 +76,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -102,37 +104,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -167,7 +162,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/relationship_patch.rb b/clients/client/ruby/lib/ory-client/models/relationship_patch.rb index 67103805126..0d89b64ffdf 100644 --- a/clients/client/ruby/lib/ory-client/models/relationship_patch.rb +++ b/clients/client/ruby/lib/ory-client/models/relationship_patch.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -96,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -103,6 +104,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' action_validator = EnumAttributeValidator.new('String', ["insert", "delete"]) return false unless action_validator.valid?(@action) true @@ -143,37 +145,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -208,7 +203,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/relationships.rb b/clients/client/ruby/lib/ory-client/models/relationships.rb index 60e0a3555e8..fdb1c714edf 100644 --- a/clients/client/ruby/lib/ory-client/models/relationships.rb +++ b/clients/client/ruby/lib/ory-client/models/relationships.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -77,6 +77,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -84,6 +85,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -112,37 +114,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -177,7 +172,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/rfc6749_error_json.rb b/clients/client/ruby/lib/ory-client/models/rfc6749_error_json.rb index 90c2223c82c..276988b162d 100644 --- a/clients/client/ruby/lib/ory-client/models/rfc6749_error_json.rb +++ b/clients/client/ruby/lib/ory-client/models/rfc6749_error_json.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -97,6 +97,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -104,6 +105,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -135,37 +137,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -200,7 +195,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/schema_patch.rb b/clients/client/ruby/lib/ory-client/models/schema_patch.rb index 360ad317402..b23113af1c3 100644 --- a/clients/client/ruby/lib/ory-client/models/schema_patch.rb +++ b/clients/client/ruby/lib/ory-client/models/schema_patch.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,16 +65,21 @@ def initialize(attributes = {}) if attributes.key?(:'data') self.data = attributes[:'data'] + else + self.data = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @data.nil? invalid_properties.push('invalid value for "data", data cannot be nil.') @@ -90,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @data.nil? return false if @name.nil? true @@ -120,37 +126,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -185,7 +184,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/self_service_flow_expired_error.rb b/clients/client/ruby/lib/ory-client/models/self_service_flow_expired_error.rb index bb0592b857e..af5f52f6536 100644 --- a/clients/client/ruby/lib/ory-client/models/self_service_flow_expired_error.rb +++ b/clients/client/ruby/lib/ory-client/models/self_service_flow_expired_error.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -93,6 +93,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -100,6 +101,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -130,37 +132,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -195,7 +190,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/session.rb b/clients/client/ruby/lib/ory-client/models/session.rb index daeafd35fc5..b741a7db75a 100644 --- a/clients/client/ruby/lib/ory-client/models/session.rb +++ b/clients/client/ruby/lib/ory-client/models/session.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -44,6 +44,28 @@ class Session # Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. attr_accessor :tokenized + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -132,6 +154,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'identity') @@ -150,6 +174,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -161,6 +186,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? true end @@ -198,37 +224,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -263,7 +282,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/session_activity_datapoint.rb b/clients/client/ruby/lib/ory-client/models/session_activity_datapoint.rb index b41c9ed8f45..e9a88bdb48b 100644 --- a/clients/client/ruby/lib/ory-client/models/session_activity_datapoint.rb +++ b/clients/client/ruby/lib/ory-client/models/session_activity_datapoint.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,20 +70,27 @@ def initialize(attributes = {}) if attributes.key?(:'country') self.country = attributes[:'country'] + else + self.country = nil end if attributes.key?(:'failed') self.failed = attributes[:'failed'] + else + self.failed = nil end if attributes.key?(:'succeeded') self.succeeded = attributes[:'succeeded'] + else + self.succeeded = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @country.nil? invalid_properties.push('invalid value for "country", country cannot be nil.') @@ -103,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @country.nil? return false if @failed.nil? return false if @succeeded.nil? @@ -135,37 +143,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -200,7 +201,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/session_authentication_method.rb b/clients/client/ruby/lib/ory-client/models/session_authentication_method.rb index 337e5775d88..0b06770036e 100644 --- a/clients/client/ruby/lib/ory-client/models/session_authentication_method.rb +++ b/clients/client/ruby/lib/ory-client/models/session_authentication_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -123,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -130,6 +131,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' method_validator = EnumAttributeValidator.new('String', ["link_recovery", "code_recovery", "password", "code", "totp", "oidc", "webauthn", "lookup_secret", "v0.6_legacy_session"]) return false unless method_validator.valid?(@method) true @@ -173,37 +175,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -238,7 +233,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/session_device.rb b/clients/client/ruby/lib/ory-client/models/session_device.rb index 70ba2d1678b..e407ba29011 100644 --- a/clients/client/ruby/lib/ory-client/models/session_device.rb +++ b/clients/client/ruby/lib/ory-client/models/session_device.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,6 +76,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'ip_address') @@ -94,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -105,6 +108,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? true end @@ -136,37 +140,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -201,7 +198,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/set_active_project_in_console_body.rb b/clients/client/ruby/lib/ory-client/models/set_active_project_in_console_body.rb index 8c463bd01a0..75dbc467c5e 100644 --- a/clients/client/ruby/lib/ory-client/models/set_active_project_in_console_body.rb +++ b/clients/client/ruby/lib/ory-client/models/set_active_project_in_console_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -61,12 +61,15 @@ def initialize(attributes = {}) if attributes.key?(:'project_id') self.project_id = attributes[:'project_id'] + else + self.project_id = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @project_id.nil? invalid_properties.push('invalid value for "project_id", project_id cannot be nil.') @@ -78,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @project_id.nil? true end @@ -106,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -171,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/set_custom_domain_body.rb b/clients/client/ruby/lib/ory-client/models/set_custom_domain_body.rb index 5c35bf2e0ae..cc02809677b 100644 --- a/clients/client/ruby/lib/ory-client/models/set_custom_domain_body.rb +++ b/clients/client/ruby/lib/ory-client/models/set_custom_domain_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -105,6 +105,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -112,6 +113,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -143,37 +145,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -208,7 +203,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/set_event_stream_body.rb b/clients/client/ruby/lib/ory-client/models/set_event_stream_body.rb index 489dd22b055..8f889930fa5 100644 --- a/clients/client/ruby/lib/ory-client/models/set_event_stream_body.rb +++ b/clients/client/ruby/lib/ory-client/models/set_event_stream_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -93,20 +93,27 @@ def initialize(attributes = {}) if attributes.key?(:'role_arn') self.role_arn = attributes[:'role_arn'] + else + self.role_arn = nil end if attributes.key?(:'topic_arn') self.topic_arn = attributes[:'topic_arn'] + else + self.topic_arn = nil end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @role_arn.nil? invalid_properties.push('invalid value for "role_arn", role_arn cannot be nil.') @@ -126,6 +133,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @role_arn.nil? return false if @topic_arn.nil? return false if @type.nil? @@ -170,37 +178,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -235,7 +236,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/set_project.rb b/clients/client/ruby/lib/ory-client/models/set_project.rb index 91eb8318e43..51b269f29f9 100644 --- a/clients/client/ruby/lib/ory-client/models/set_project.rb +++ b/clients/client/ruby/lib/ory-client/models/set_project.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -72,24 +72,33 @@ def initialize(attributes = {}) if attributes.key?(:'cors_admin') self.cors_admin = attributes[:'cors_admin'] + else + self.cors_admin = nil end if attributes.key?(:'cors_public') self.cors_public = attributes[:'cors_public'] + else + self.cors_public = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'services') self.services = attributes[:'services'] + else + self.services = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @cors_admin.nil? invalid_properties.push('invalid value for "cors_admin", cors_admin cannot be nil.') @@ -113,6 +122,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @cors_admin.nil? return false if @cors_public.nil? return false if @name.nil? @@ -147,37 +157,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -212,7 +215,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/set_project_branding_theme_body.rb b/clients/client/ruby/lib/ory-client/models/set_project_branding_theme_body.rb index e787908b412..b908cbd8031 100644 --- a/clients/client/ruby/lib/ory-client/models/set_project_branding_theme_body.rb +++ b/clients/client/ruby/lib/ory-client/models/set_project_branding_theme_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -110,6 +110,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -117,6 +118,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -149,37 +151,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -214,7 +209,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/settings_flow.rb b/clients/client/ruby/lib/ory-client/models/settings_flow.rb index 6a1df614720..829ea8001cc 100644 --- a/clients/client/ruby/lib/ory-client/models/settings_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/settings_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -42,6 +42,9 @@ class SettingsFlow # State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. attr_accessor :state + # TransientPayload is used to pass data from the settings flow to hooks and email templates + attr_accessor :transient_payload + # The flow type can either be `api` or `browser`. attr_accessor :type @@ -59,6 +62,7 @@ def self.attribute_map :'request_url' => :'request_url', :'return_to' => :'return_to', :'state' => :'state', + :'transient_payload' => :'transient_payload', :'type' => :'type', :'ui' => :'ui' } @@ -81,6 +85,7 @@ def self.openapi_types :'request_url' => :'String', :'return_to' => :'String', :'state' => :'Object', + :'transient_payload' => :'Object', :'type' => :'String', :'ui' => :'UiContainer' } @@ -120,22 +125,32 @@ def initialize(attributes = {}) if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] + else + self.expires_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'identity') self.identity = attributes[:'identity'] + else + self.identity = nil end if attributes.key?(:'issued_at') self.issued_at = attributes[:'issued_at'] + else + self.issued_at = nil end if attributes.key?(:'request_url') self.request_url = attributes[:'request_url'] + else + self.request_url = nil end if attributes.key?(:'return_to') @@ -144,20 +159,31 @@ def initialize(attributes = {}) if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'ui') self.ui = attributes[:'ui'] + else + self.ui = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @expires_at.nil? invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') @@ -193,6 +219,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @expires_at.nil? return false if @id.nil? return false if @identity.nil? @@ -217,6 +244,7 @@ def ==(o) request_url == o.request_url && return_to == o.return_to && state == o.state && + transient_payload == o.transient_payload && type == o.type && ui == o.ui end @@ -230,44 +258,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [active, continue_with, expires_at, id, identity, issued_at, request_url, return_to, state, type, ui].hash + [active, continue_with, expires_at, id, identity, issued_at, request_url, return_to, state, transient_payload, type, ui].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -302,7 +323,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/settings_flow_state.rb b/clients/client/ruby/lib/ory-client/models/settings_flow_state.rb index 30f60dc4ec5..90d8e9c5ab6 100644 --- a/clients/client/ruby/lib/ory-client/models/settings_flow_state.rb +++ b/clients/client/ruby/lib/ory-client/models/settings_flow_state.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -18,6 +18,10 @@ class SettingsFlowState SHOW_FORM = "show_form".freeze SUCCESS = "success".freeze + def self.all_vars + @all_vars ||= [SHOW_FORM, SUCCESS].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -29,9 +33,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = SettingsFlowState.constants.select { |c| SettingsFlowState::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #SettingsFlowState" if constantValues.empty? - value + return value if SettingsFlowState.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #SettingsFlowState" end end end diff --git a/clients/client/ruby/lib/ory-client/models/source_position.rb b/clients/client/ruby/lib/ory-client/models/source_position.rb index 20e06664bdc..dfe8a29bcc8 100644 --- a/clients/client/ruby/lib/ory-client/models/source_position.rb +++ b/clients/client/ruby/lib/ory-client/models/source_position.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -73,6 +73,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -80,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -108,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/subject_set.rb b/clients/client/ruby/lib/ory-client/models/subject_set.rb index e6a76d9dac5..602e2c406ad 100644 --- a/clients/client/ruby/lib/ory-client/models/subject_set.rb +++ b/clients/client/ruby/lib/ory-client/models/subject_set.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -70,20 +70,27 @@ def initialize(attributes = {}) if attributes.key?(:'namespace') self.namespace = attributes[:'namespace'] + else + self.namespace = nil end if attributes.key?(:'object') self.object = attributes[:'object'] + else + self.object = nil end if attributes.key?(:'relation') self.relation = attributes[:'relation'] + else + self.relation = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @namespace.nil? invalid_properties.push('invalid value for "namespace", namespace cannot be nil.') @@ -103,6 +110,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @namespace.nil? return false if @object.nil? return false if @relation.nil? @@ -135,37 +143,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -200,7 +201,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/subscription.rb b/clients/client/ruby/lib/ory-client/models/subscription.rb index fddf963da1e..7b7d96e6451 100644 --- a/clients/client/ruby/lib/ory-client/models/subscription.rb +++ b/clients/client/ruby/lib/ory-client/models/subscription.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -26,6 +26,8 @@ class Subscription # The currently active plan of the subscription attr_accessor :current_plan + attr_accessor :current_plan_details + # The ID of the stripe customer attr_accessor :customer_id @@ -46,6 +48,8 @@ class Subscription # For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. attr_accessor :status + attr_accessor :stripe_checkout_expires_at + attr_accessor :updated_at class EnumAttributeValidator @@ -77,6 +81,7 @@ def self.attribute_map :'currency' => :'currency', :'current_interval' => :'current_interval', :'current_plan' => :'current_plan', + :'current_plan_details' => :'current_plan_details', :'customer_id' => :'customer_id', :'id' => :'id', :'interval_changes_to' => :'interval_changes_to', @@ -85,6 +90,7 @@ def self.attribute_map :'plan_changes_at' => :'plan_changes_at', :'plan_changes_to' => :'plan_changes_to', :'status' => :'status', + :'stripe_checkout_expires_at' => :'stripe_checkout_expires_at', :'updated_at' => :'updated_at' } end @@ -101,6 +107,7 @@ def self.openapi_types :'currency' => :'String', :'current_interval' => :'String', :'current_plan' => :'String', + :'current_plan_details' => :'PlanDetails', :'customer_id' => :'String', :'id' => :'String', :'interval_changes_to' => :'String', @@ -109,6 +116,7 @@ def self.openapi_types :'plan_changes_at' => :'Time', :'plan_changes_to' => :'String', :'status' => :'String', + :'stripe_checkout_expires_at' => :'Time', :'updated_at' => :'Time' } end @@ -139,30 +147,48 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'currency') self.currency = attributes[:'currency'] + else + self.currency = nil end if attributes.key?(:'current_interval') self.current_interval = attributes[:'current_interval'] + else + self.current_interval = nil end if attributes.key?(:'current_plan') self.current_plan = attributes[:'current_plan'] + else + self.current_plan = nil + end + + if attributes.key?(:'current_plan_details') + self.current_plan_details = attributes[:'current_plan_details'] end if attributes.key?(:'customer_id') self.customer_id = attributes[:'customer_id'] + else + self.customer_id = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'interval_changes_to') self.interval_changes_to = attributes[:'interval_changes_to'] + else + self.interval_changes_to = nil end if attributes.key?(:'ongoing_stripe_checkout_id') @@ -171,6 +197,8 @@ def initialize(attributes = {}) if attributes.key?(:'payed_until') self.payed_until = attributes[:'payed_until'] + else + self.payed_until = nil end if attributes.key?(:'plan_changes_at') @@ -179,20 +207,31 @@ def initialize(attributes = {}) if attributes.key?(:'plan_changes_to') self.plan_changes_to = attributes[:'plan_changes_to'] + else + self.plan_changes_to = nil end if attributes.key?(:'status') self.status = attributes[:'status'] + else + self.status = nil + end + + if attributes.key?(:'stripe_checkout_expires_at') + self.stripe_checkout_expires_at = attributes[:'stripe_checkout_expires_at'] end if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -236,6 +275,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @currency.nil? currency_validator = EnumAttributeValidator.new('String', ["usd", "eur"]) @@ -281,6 +321,7 @@ def ==(o) currency == o.currency && current_interval == o.current_interval && current_plan == o.current_plan && + current_plan_details == o.current_plan_details && customer_id == o.customer_id && id == o.id && interval_changes_to == o.interval_changes_to && @@ -289,6 +330,7 @@ def ==(o) plan_changes_at == o.plan_changes_at && plan_changes_to == o.plan_changes_to && status == o.status && + stripe_checkout_expires_at == o.stripe_checkout_expires_at && updated_at == o.updated_at end @@ -301,44 +343,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [created_at, currency, current_interval, current_plan, customer_id, id, interval_changes_to, ongoing_stripe_checkout_id, payed_until, plan_changes_at, plan_changes_to, status, updated_at].hash + [created_at, currency, current_interval, current_plan, current_plan_details, customer_id, id, interval_changes_to, ongoing_stripe_checkout_id, payed_until, plan_changes_at, plan_changes_to, status, stripe_checkout_expires_at, updated_at].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -373,7 +408,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/successful_code_exchange_response.rb b/clients/client/ruby/lib/ory-client/models/successful_code_exchange_response.rb index 45e935c224b..68a3230fd1d 100644 --- a/clients/client/ruby/lib/ory-client/models/successful_code_exchange_response.rb +++ b/clients/client/ruby/lib/ory-client/models/successful_code_exchange_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,6 +65,8 @@ def initialize(attributes = {}) if attributes.key?(:'session') self.session = attributes[:'session'] + else + self.session = nil end if attributes.key?(:'session_token') @@ -75,6 +77,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @session.nil? invalid_properties.push('invalid value for "session", session cannot be nil.') @@ -86,6 +89,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @session.nil? true end @@ -115,37 +119,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -180,7 +177,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/successful_native_login.rb b/clients/client/ruby/lib/ory-client/models/successful_native_login.rb index cc90c625456..4a3c42ddf1e 100644 --- a/clients/client/ruby/lib/ory-client/models/successful_native_login.rb +++ b/clients/client/ruby/lib/ory-client/models/successful_native_login.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,6 +65,8 @@ def initialize(attributes = {}) if attributes.key?(:'session') self.session = attributes[:'session'] + else + self.session = nil end if attributes.key?(:'session_token') @@ -75,6 +77,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @session.nil? invalid_properties.push('invalid value for "session", session cannot be nil.') @@ -86,6 +89,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @session.nil? true end @@ -115,37 +119,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -180,7 +177,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/successful_native_registration.rb b/clients/client/ruby/lib/ory-client/models/successful_native_registration.rb index 85074f59a55..87f3a87e315 100644 --- a/clients/client/ruby/lib/ory-client/models/successful_native_registration.rb +++ b/clients/client/ruby/lib/ory-client/models/successful_native_registration.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -80,6 +80,8 @@ def initialize(attributes = {}) if attributes.key?(:'identity') self.identity = attributes[:'identity'] + else + self.identity = nil end if attributes.key?(:'session') @@ -94,6 +96,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @identity.nil? invalid_properties.push('invalid value for "identity", identity cannot be nil.') @@ -105,6 +108,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @identity.nil? true end @@ -136,37 +140,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -201,7 +198,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/successful_project_update.rb b/clients/client/ruby/lib/ory-client/models/successful_project_update.rb index 0f6c5bd5859..e37cf687fb6 100644 --- a/clients/client/ruby/lib/ory-client/models/successful_project_update.rb +++ b/clients/client/ruby/lib/ory-client/models/successful_project_update.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -64,18 +64,23 @@ def initialize(attributes = {}) if attributes.key?(:'project') self.project = attributes[:'project'] + else + self.project = nil end if attributes.key?(:'warnings') if (value = attributes[:'warnings']).is_a?(Array) self.warnings = value end + else + self.warnings = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @project.nil? invalid_properties.push('invalid value for "project", project cannot be nil.') @@ -91,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @project.nil? return false if @warnings.nil? true @@ -121,37 +127,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -186,7 +185,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/token_pagination.rb b/clients/client/ruby/lib/ory-client/models/token_pagination.rb index 9431e0365fb..98643d150ba 100644 --- a/clients/client/ruby/lib/ory-client/models/token_pagination.rb +++ b/clients/client/ruby/lib/ory-client/models/token_pagination.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -79,6 +79,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if !@page_size.nil? && @page_size > 1000 invalid_properties.push('invalid value for "page_size", must be smaller than or equal to 1000.') @@ -94,6 +95,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@page_size.nil? && @page_size > 1000 return false if !@page_size.nil? && @page_size < 1 true @@ -102,11 +104,15 @@ def valid? # Custom attribute writer method with validation # @param [Object] page_size Value to be assigned def page_size=(page_size) - if !page_size.nil? && page_size > 1000 + if page_size.nil? + fail ArgumentError, 'page_size cannot be nil' + end + + if page_size > 1000 fail ArgumentError, 'invalid value for "page_size", must be smaller than or equal to 1000.' end - if !page_size.nil? && page_size < 1 + if page_size < 1 fail ArgumentError, 'invalid value for "page_size", must be greater than or equal to 1.' end @@ -116,6 +122,10 @@ def page_size=(page_size) # Custom attribute writer method with validation # @param [Object] page_token Value to be assigned def page_token=(page_token) + if page_token.nil? + fail ArgumentError, 'page_token cannot be nil' + end + @page_token = page_token end @@ -144,37 +154,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -209,7 +212,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/token_pagination_headers.rb b/clients/client/ruby/lib/ory-client/models/token_pagination_headers.rb index 3c626275159..5d1a8f7692d 100644 --- a/clients/client/ruby/lib/ory-client/models/token_pagination_headers.rb +++ b/clients/client/ruby/lib/ory-client/models/token_pagination_headers.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -75,6 +75,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -82,6 +83,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -110,37 +112,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -175,7 +170,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/token_pagination_request_parameters.rb b/clients/client/ruby/lib/ory-client/models/token_pagination_request_parameters.rb index 9d081d3a1d4..68d66704ade 100644 --- a/clients/client/ruby/lib/ory-client/models/token_pagination_request_parameters.rb +++ b/clients/client/ruby/lib/ory-client/models/token_pagination_request_parameters.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -80,6 +80,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if !@page_size.nil? && @page_size > 500 invalid_properties.push('invalid value for "page_size", must be smaller than or equal to 500.') @@ -95,6 +96,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if !@page_size.nil? && @page_size > 500 return false if !@page_size.nil? && @page_size < 1 true @@ -103,11 +105,15 @@ def valid? # Custom attribute writer method with validation # @param [Object] page_size Value to be assigned def page_size=(page_size) - if !page_size.nil? && page_size > 500 + if page_size.nil? + fail ArgumentError, 'page_size cannot be nil' + end + + if page_size > 500 fail ArgumentError, 'invalid value for "page_size", must be smaller than or equal to 500.' end - if !page_size.nil? && page_size < 1 + if page_size < 1 fail ArgumentError, 'invalid value for "page_size", must be greater than or equal to 1.' end @@ -117,6 +123,10 @@ def page_size=(page_size) # Custom attribute writer method with validation # @param [Object] page_token Value to be assigned def page_token=(page_token) + if page_token.nil? + fail ArgumentError, 'page_token cannot be nil' + end + @page_token = page_token end @@ -145,37 +155,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -210,7 +213,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/token_pagination_response_headers.rb b/clients/client/ruby/lib/ory-client/models/token_pagination_response_headers.rb index 92430df681f..36e2630bd3a 100644 --- a/clients/client/ruby/lib/ory-client/models/token_pagination_response_headers.rb +++ b/clients/client/ruby/lib/ory-client/models/token_pagination_response_headers.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,6 +76,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -83,6 +84,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -111,37 +113,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -176,7 +171,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb b/clients/client/ruby/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb index 43dc7211350..91a7fed6b76 100644 --- a/clients/client/ruby/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb +++ b/clients/client/ruby/lib/ory-client/models/trust_o_auth2_jwt_grant_issuer.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -89,20 +89,28 @@ def initialize(attributes = {}) if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] + else + self.expires_at = nil end if attributes.key?(:'issuer') self.issuer = attributes[:'issuer'] + else + self.issuer = nil end if attributes.key?(:'jwk') self.jwk = attributes[:'jwk'] + else + self.jwk = nil end if attributes.key?(:'scope') if (value = attributes[:'scope']).is_a?(Array) self.scope = value end + else + self.scope = nil end if attributes.key?(:'subject') @@ -113,6 +121,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @expires_at.nil? invalid_properties.push('invalid value for "expires_at", expires_at cannot be nil.') @@ -136,6 +145,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @expires_at.nil? return false if @issuer.nil? return false if @jwk.nil? @@ -172,37 +182,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -237,7 +240,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb b/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb index be86b7bab8c..87d6c49f365 100644 --- a/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb +++ b/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_issuer.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -130,6 +130,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -137,6 +138,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -171,37 +173,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -236,7 +231,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb b/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb index 42560ebb75b..dc0c2b4d132 100644 --- a/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +++ b/clients/client/ruby/lib/ory-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,6 +76,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -83,6 +84,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -111,37 +113,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -176,7 +171,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_container.rb b/clients/client/ruby/lib/ory-client/models/ui_container.rb index 9434e9c9539..59004325292 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_container.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_container.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -74,6 +74,8 @@ def initialize(attributes = {}) if attributes.key?(:'action') self.action = attributes[:'action'] + else + self.action = nil end if attributes.key?(:'messages') @@ -84,18 +86,23 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'nodes') if (value = attributes[:'nodes']).is_a?(Array) self.nodes = value end + else + self.nodes = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @action.nil? invalid_properties.push('invalid value for "action", action cannot be nil.') @@ -115,6 +122,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @action.nil? return false if @method.nil? return false if @nodes.nil? @@ -148,37 +156,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -213,7 +214,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node.rb b/clients/client/ruby/lib/ory-client/models/ui_node.rb index a26ceb0d4dd..59cadc39b0c 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -100,30 +100,41 @@ def initialize(attributes = {}) if attributes.key?(:'attributes') self.attributes = attributes[:'attributes'] + else + self.attributes = nil end if attributes.key?(:'group') self.group = attributes[:'group'] + else + self.group = nil end if attributes.key?(:'messages') if (value = attributes[:'messages']).is_a?(Array) self.messages = value end + else + self.messages = nil end if attributes.key?(:'meta') self.meta = attributes[:'meta'] + else + self.meta = nil end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @attributes.nil? invalid_properties.push('invalid value for "attributes", attributes cannot be nil.') @@ -151,6 +162,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @attributes.nil? return false if @group.nil? group_validator = EnumAttributeValidator.new('String', ["default", "password", "oidc", "profile", "link", "code", "totp", "lookup_secret", "webauthn"]) @@ -211,37 +223,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -276,7 +281,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_anchor_attributes.rb b/clients/client/ruby/lib/ory-client/models/ui_node_anchor_attributes.rb index 9ba0fd0ba52..a7b43b4b9c2 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_anchor_attributes.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_anchor_attributes.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -74,24 +74,33 @@ def initialize(attributes = {}) if attributes.key?(:'href') self.href = attributes[:'href'] + else + self.href = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] + else + self.node_type = nil end if attributes.key?(:'title') self.title = attributes[:'title'] + else + self.title = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @href.nil? invalid_properties.push('invalid value for "href", href cannot be nil.') @@ -115,6 +124,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @href.nil? return false if @id.nil? return false if @node_type.nil? @@ -149,37 +159,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -214,7 +217,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_attributes.rb b/clients/client/ruby/lib/ory-client/models/ui_node_attributes.rb index 686a47a5082..b2efc8f15d2 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_attributes.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_attributes.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_image_attributes.rb b/clients/client/ruby/lib/ory-client/models/ui_node_image_attributes.rb index b89bf558c2e..de8216c20a0 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_image_attributes.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_image_attributes.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -80,28 +80,39 @@ def initialize(attributes = {}) if attributes.key?(:'height') self.height = attributes[:'height'] + else + self.height = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] + else + self.node_type = nil end if attributes.key?(:'src') self.src = attributes[:'src'] + else + self.src = nil end if attributes.key?(:'width') self.width = attributes[:'width'] + else + self.width = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @height.nil? invalid_properties.push('invalid value for "height", height cannot be nil.') @@ -129,6 +140,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @height.nil? return false if @id.nil? return false if @node_type.nil? @@ -165,37 +177,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -230,7 +235,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_input_attributes.rb b/clients/client/ruby/lib/ory-client/models/ui_node_input_attributes.rb index 28aa94c082b..2803a10b6c4 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_input_attributes.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_input_attributes.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -132,6 +132,8 @@ def initialize(attributes = {}) if attributes.key?(:'disabled') self.disabled = attributes[:'disabled'] + else + self.disabled = nil end if attributes.key?(:'label') @@ -140,10 +142,14 @@ def initialize(attributes = {}) if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] + else + self.node_type = nil end if attributes.key?(:'onclick') @@ -160,6 +166,8 @@ def initialize(attributes = {}) if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'value') @@ -170,6 +178,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @disabled.nil? invalid_properties.push('invalid value for "disabled", disabled cannot be nil.') @@ -193,6 +202,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' autocomplete_validator = EnumAttributeValidator.new('String', ["email", "tel", "url", "current-password", "new-password", "one-time-code"]) return false unless autocomplete_validator.valid?(@autocomplete) return false if @disabled.nil? @@ -257,37 +267,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -322,7 +325,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_meta.rb b/clients/client/ruby/lib/ory-client/models/ui_node_meta.rb index 1de9d30db81..20dfd8c67a3 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_meta.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_meta.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_script_attributes.rb b/clients/client/ruby/lib/ory-client/models/ui_node_script_attributes.rb index 587b1ebc87d..b0080160bd9 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_script_attributes.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_script_attributes.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -100,44 +100,63 @@ def initialize(attributes = {}) if attributes.key?(:'async') self.async = attributes[:'async'] + else + self.async = nil end if attributes.key?(:'crossorigin') self.crossorigin = attributes[:'crossorigin'] + else + self.crossorigin = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'integrity') self.integrity = attributes[:'integrity'] + else + self.integrity = nil end if attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] + else + self.node_type = nil end if attributes.key?(:'nonce') self.nonce = attributes[:'nonce'] + else + self.nonce = nil end if attributes.key?(:'referrerpolicy') self.referrerpolicy = attributes[:'referrerpolicy'] + else + self.referrerpolicy = nil end if attributes.key?(:'src') self.src = attributes[:'src'] + else + self.src = nil end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @async.nil? invalid_properties.push('invalid value for "async", async cannot be nil.') @@ -181,6 +200,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @async.nil? return false if @crossorigin.nil? return false if @id.nil? @@ -225,37 +245,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -290,7 +303,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_node_text_attributes.rb b/clients/client/ruby/lib/ory-client/models/ui_node_text_attributes.rb index 637f22f5408..35e293fbd3e 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_node_text_attributes.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_node_text_attributes.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -69,20 +69,27 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'node_type') self.node_type = attributes[:'node_type'] + else + self.node_type = nil end if attributes.key?(:'text') self.text = attributes[:'text'] + else + self.text = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -102,6 +109,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @node_type.nil? return false if @text.nil? @@ -134,37 +142,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -199,7 +200,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/ui_text.rb b/clients/client/ruby/lib/ory-client/models/ui_text.rb index 9e528c041fe..6ead27cb652 100644 --- a/clients/client/ruby/lib/ory-client/models/ui_text.rb +++ b/clients/client/ruby/lib/ory-client/models/ui_text.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -100,20 +100,27 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'text') self.text = attributes[:'text'] + else + self.text = nil end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -133,6 +140,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @text.nil? return false if @type.nil? @@ -178,37 +186,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -243,7 +244,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_identity_body.rb b/clients/client/ruby/lib/ory-client/models/update_identity_body.rb index 4291c1ab9e5..0064ca0ce48 100644 --- a/clients/client/ruby/lib/ory-client/models/update_identity_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_identity_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -27,11 +27,34 @@ class UpdateIdentityBody # SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. attr_accessor :schema_id + # State is the identity's state. active StateActive inactive StateInactive attr_accessor :state # Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. attr_accessor :traits + class EnumAttributeValidator + attr_reader :datatype + attr_reader :allowable_values + + def initialize(datatype, allowable_values) + @allowable_values = allowable_values.map do |value| + case datatype.to_s + when /Integer/i + value.to_i + when /Float/i + value.to_f + else + value + end + end + end + + def valid?(value) + !value || allowable_values.include?(value) + end + end + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -56,7 +79,7 @@ def self.openapi_types :'metadata_admin' => :'Object', :'metadata_public' => :'Object', :'schema_id' => :'String', - :'state' => :'IdentityState', + :'state' => :'String', :'traits' => :'Object' } end @@ -98,20 +121,27 @@ def initialize(attributes = {}) if attributes.key?(:'schema_id') self.schema_id = attributes[:'schema_id'] + else + self.schema_id = nil end if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil end if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @schema_id.nil? invalid_properties.push('invalid value for "schema_id", schema_id cannot be nil.') @@ -131,12 +161,25 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @schema_id.nil? return false if @state.nil? + state_validator = EnumAttributeValidator.new('String', ["active", "inactive"]) + return false unless state_validator.valid?(@state) return false if @traits.nil? true end + # Custom attribute writer method checking allowed values (enum). + # @param [Object] state Object to be assigned + def state=(state) + validator = EnumAttributeValidator.new('String', ["active", "inactive"]) + unless validator.valid?(state) + fail ArgumentError, "invalid value for \"state\", must be one of #{validator.allowable_values}." + end + @state = state + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -166,37 +209,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -231,7 +267,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_body.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_body.rb index 4a0cef7253d..f4c4a77f499 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_code_method.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_code_method.rb index 32fcb06f1eb..f95fac8af83 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_code_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_code_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -31,6 +31,9 @@ class UpdateLoginFlowWithCodeMethod # Resend is set when the user wants to resend the code attr_accessor :resend + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +41,8 @@ def self.attribute_map :'csrf_token' => :'csrf_token', :'identifier' => :'identifier', :'method' => :'method', - :'resend' => :'resend' + :'resend' => :'resend', + :'transient_payload' => :'transient_payload' } end @@ -54,7 +58,8 @@ def self.openapi_types :'csrf_token' => :'String', :'identifier' => :'String', :'method' => :'String', - :'resend' => :'String' + :'resend' => :'String', + :'transient_payload' => :'Object' } end @@ -85,6 +90,8 @@ def initialize(attributes = {}) if attributes.key?(:'csrf_token') self.csrf_token = attributes[:'csrf_token'] + else + self.csrf_token = nil end if attributes.key?(:'identifier') @@ -93,16 +100,23 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'resend') self.resend = attributes[:'resend'] end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @csrf_token.nil? invalid_properties.push('invalid value for "csrf_token", csrf_token cannot be nil.') @@ -118,6 +132,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @csrf_token.nil? return false if @method.nil? true @@ -132,7 +147,8 @@ def ==(o) csrf_token == o.csrf_token && identifier == o.identifier && method == o.method && - resend == o.resend + resend == o.resend && + transient_payload == o.transient_payload end # @see the `==` method @@ -144,44 +160,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [code, csrf_token, identifier, method, resend].hash + [code, csrf_token, identifier, method, resend, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -216,7 +225,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb index 8a42cf1fcef..ff537b60cbf 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_lookup_secret_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -75,16 +75,21 @@ def initialize(attributes = {}) if attributes.key?(:'lookup_secret') self.lookup_secret = attributes[:'lookup_secret'] + else + self.lookup_secret = nil end if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @lookup_secret.nil? invalid_properties.push('invalid value for "lookup_secret", lookup_secret cannot be nil.') @@ -100,6 +105,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @lookup_secret.nil? return false if @method.nil? true @@ -131,37 +137,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -196,7 +195,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_oidc_method.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_oidc_method.rb index 55b820456ac..f4554f79e80 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_oidc_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_oidc_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -34,6 +34,9 @@ class UpdateLoginFlowWithOidcMethod # The identity traits. This is a placeholder for the registration flow. attr_accessor :traits + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. attr_accessor :upstream_parameters @@ -46,6 +49,7 @@ def self.attribute_map :'method' => :'method', :'provider' => :'provider', :'traits' => :'traits', + :'transient_payload' => :'transient_payload', :'upstream_parameters' => :'upstream_parameters' } end @@ -64,6 +68,7 @@ def self.openapi_types :'method' => :'String', :'provider' => :'String', :'traits' => :'Object', + :'transient_payload' => :'Object', :'upstream_parameters' => :'Object' } end @@ -103,16 +108,24 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'provider') self.provider = attributes[:'provider'] + else + self.provider = nil end if attributes.key?(:'traits') self.traits = attributes[:'traits'] end + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] + end + if attributes.key?(:'upstream_parameters') self.upstream_parameters = attributes[:'upstream_parameters'] end @@ -121,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -136,6 +150,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @provider.nil? true @@ -152,6 +167,7 @@ def ==(o) method == o.method && provider == o.provider && traits == o.traits && + transient_payload == o.transient_payload && upstream_parameters == o.upstream_parameters end @@ -164,44 +180,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, id_token, id_token_nonce, method, provider, traits, upstream_parameters].hash + [csrf_token, id_token, id_token_nonce, method, provider, traits, transient_payload, upstream_parameters].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -236,7 +245,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_password_method.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_password_method.rb index f3255529014..8e4e148244d 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_password_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_password_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -31,6 +31,9 @@ class UpdateLoginFlowWithPasswordMethod # Identifier is the email or username of the user trying to log in. This field is deprecated! attr_accessor :password_identifier + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -38,7 +41,8 @@ def self.attribute_map :'identifier' => :'identifier', :'method' => :'method', :'password' => :'password', - :'password_identifier' => :'password_identifier' + :'password_identifier' => :'password_identifier', + :'transient_payload' => :'transient_payload' } end @@ -54,7 +58,8 @@ def self.openapi_types :'identifier' => :'String', :'method' => :'String', :'password' => :'String', - :'password_identifier' => :'String' + :'password_identifier' => :'String', + :'transient_payload' => :'Object' } end @@ -85,24 +90,35 @@ def initialize(attributes = {}) if attributes.key?(:'identifier') self.identifier = attributes[:'identifier'] + else + self.identifier = nil end if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'password') self.password = attributes[:'password'] + else + self.password = nil end if attributes.key?(:'password_identifier') self.password_identifier = attributes[:'password_identifier'] end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @identifier.nil? invalid_properties.push('invalid value for "identifier", identifier cannot be nil.') @@ -122,6 +138,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @identifier.nil? return false if @method.nil? return false if @password.nil? @@ -137,7 +154,8 @@ def ==(o) identifier == o.identifier && method == o.method && password == o.password && - password_identifier == o.password_identifier + password_identifier == o.password_identifier && + transient_payload == o.transient_payload end # @see the `==` method @@ -149,44 +167,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, identifier, method, password, password_identifier].hash + [csrf_token, identifier, method, password, password_identifier, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -221,7 +232,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_totp_method.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_totp_method.rb index e01abc01f2a..b4a46fd7ca0 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_totp_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_totp_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,12 +25,16 @@ class UpdateLoginFlowWithTotpMethod # The TOTP code. attr_accessor :totp_code + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'csrf_token' => :'csrf_token', :'method' => :'method', - :'totp_code' => :'totp_code' + :'totp_code' => :'totp_code', + :'transient_payload' => :'transient_payload' } end @@ -44,7 +48,8 @@ def self.openapi_types { :'csrf_token' => :'String', :'method' => :'String', - :'totp_code' => :'String' + :'totp_code' => :'String', + :'transient_payload' => :'Object' } end @@ -75,16 +80,25 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'totp_code') self.totp_code = attributes[:'totp_code'] + else + self.totp_code = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -100,6 +114,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @totp_code.nil? true @@ -112,7 +127,8 @@ def ==(o) self.class == o.class && csrf_token == o.csrf_token && method == o.method && - totp_code == o.totp_code + totp_code == o.totp_code && + transient_payload == o.transient_payload end # @see the `==` method @@ -124,44 +140,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, method, totp_code].hash + [csrf_token, method, totp_code, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -196,7 +205,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_web_authn_method.rb b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_web_authn_method.rb index bfac1421f2c..84f557f29d6 100644 --- a/clients/client/ruby/lib/ory-client/models/update_login_flow_with_web_authn_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_login_flow_with_web_authn_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,6 +25,9 @@ class UpdateLoginFlowWithWebAuthnMethod # Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. attr_accessor :webauthn_login @@ -34,6 +37,7 @@ def self.attribute_map :'csrf_token' => :'csrf_token', :'identifier' => :'identifier', :'method' => :'method', + :'transient_payload' => :'transient_payload', :'webauthn_login' => :'webauthn_login' } end @@ -49,6 +53,7 @@ def self.openapi_types :'csrf_token' => :'String', :'identifier' => :'String', :'method' => :'String', + :'transient_payload' => :'Object', :'webauthn_login' => :'String' } end @@ -80,10 +85,18 @@ def initialize(attributes = {}) if attributes.key?(:'identifier') self.identifier = attributes[:'identifier'] + else + self.identifier = nil end if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end if attributes.key?(:'webauthn_login') @@ -94,6 +107,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @identifier.nil? invalid_properties.push('invalid value for "identifier", identifier cannot be nil.') @@ -109,6 +123,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @identifier.nil? return false if @method.nil? true @@ -122,6 +137,7 @@ def ==(o) csrf_token == o.csrf_token && identifier == o.identifier && method == o.method && + transient_payload == o.transient_payload && webauthn_login == o.webauthn_login end @@ -134,44 +150,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, identifier, method, webauthn_login].hash + [csrf_token, identifier, method, transient_payload, webauthn_login].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -206,7 +215,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_recovery_flow_body.rb b/clients/client/ruby/lib/ory-client/models/update_recovery_flow_body.rb index cf4adf51824..c75e0f38c5e 100644 --- a/clients/client/ruby/lib/ory-client/models/update_recovery_flow_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_recovery_flow_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_code_method.rb b/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_code_method.rb index fe75d07f670..49d3b6f116e 100644 --- a/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_code_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_code_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -28,6 +28,9 @@ class UpdateRecoveryFlowWithCodeMethod # Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -56,7 +59,8 @@ def self.attribute_map :'code' => :'code', :'csrf_token' => :'csrf_token', :'email' => :'email', - :'method' => :'method' + :'method' => :'method', + :'transient_payload' => :'transient_payload' } end @@ -71,7 +75,8 @@ def self.openapi_types :'code' => :'String', :'csrf_token' => :'String', :'email' => :'String', - :'method' => :'String' + :'method' => :'String', + :'transient_payload' => :'Object' } end @@ -110,12 +115,19 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -127,6 +139,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? method_validator = EnumAttributeValidator.new('String', ["link", "code"]) return false unless method_validator.valid?(@method) @@ -151,7 +164,8 @@ def ==(o) code == o.code && csrf_token == o.csrf_token && email == o.email && - method == o.method + method == o.method && + transient_payload == o.transient_payload end # @see the `==` method @@ -163,44 +177,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [code, csrf_token, email, method].hash + [code, csrf_token, email, method, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -235,7 +242,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_link_method.rb b/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_link_method.rb index 6ddfbde56b2..dc05a1ab9ea 100644 --- a/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_link_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_recovery_flow_with_link_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,6 +25,9 @@ class UpdateRecoveryFlowWithLinkMethod # Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -52,7 +55,8 @@ def self.attribute_map { :'csrf_token' => :'csrf_token', :'email' => :'email', - :'method' => :'method' + :'method' => :'method', + :'transient_payload' => :'transient_payload' } end @@ -66,7 +70,8 @@ def self.openapi_types { :'csrf_token' => :'String', :'email' => :'String', - :'method' => :'String' + :'method' => :'String', + :'transient_payload' => :'Object' } end @@ -97,16 +102,25 @@ def initialize(attributes = {}) if attributes.key?(:'email') self.email = attributes[:'email'] + else + self.email = nil end if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @email.nil? invalid_properties.push('invalid value for "email", email cannot be nil.') @@ -122,6 +136,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @email.nil? return false if @method.nil? method_validator = EnumAttributeValidator.new('String', ["link", "code"]) @@ -146,7 +161,8 @@ def ==(o) self.class == o.class && csrf_token == o.csrf_token && email == o.email && - method == o.method + method == o.method && + transient_payload == o.transient_payload end # @see the `==` method @@ -158,44 +174,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, email, method].hash + [csrf_token, email, method, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -230,7 +239,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_registration_flow_body.rb b/clients/client/ruby/lib/ory-client/models/update_registration_flow_body.rb index 419f2722a8e..ca0e52bb9e2 100644 --- a/clients/client/ruby/lib/ory-client/models/update_registration_flow_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_registration_flow_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_code_method.rb b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_code_method.rb index 69337043b67..c54efafab05 100644 --- a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_code_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_code_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -94,6 +94,8 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'resend') @@ -102,6 +104,8 @@ def initialize(attributes = {}) if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil end if attributes.key?(:'transient_payload') @@ -112,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -127,6 +132,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @traits.nil? true @@ -161,37 +167,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -226,7 +225,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_oidc_method.rb b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_oidc_method.rb index 0e0bb15261e..05bc666b6a4 100644 --- a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_oidc_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_oidc_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -108,10 +108,14 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'provider') self.provider = attributes[:'provider'] + else + self.provider = nil end if attributes.key?(:'traits') @@ -130,6 +134,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -145,6 +150,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @provider.nil? true @@ -181,37 +187,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -246,7 +245,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_password_method.rb b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_password_method.rb index bf80862a65d..fa9257ab1e8 100644 --- a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_password_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_password_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -85,14 +85,20 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'password') self.password = attributes[:'password'] + else + self.password = nil end if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil end if attributes.key?(:'transient_payload') @@ -103,6 +109,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -122,6 +129,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @password.nil? return false if @traits.nil? @@ -156,37 +164,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -221,7 +222,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb index ebce82828dd..490e4ad0573 100644 --- a/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_registration_flow_with_web_authn_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -90,10 +90,14 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil end if attributes.key?(:'transient_payload') @@ -112,6 +116,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -127,6 +132,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @traits.nil? true @@ -161,37 +167,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -226,7 +225,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_body.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_body.rb index 973ebd0ff47..32486d8fbc5 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_lookup_method.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_lookup_method.rb index 8aef94c748e..b0c4ba74143 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_lookup_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_lookup_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -34,6 +34,9 @@ class UpdateSettingsFlowWithLookupMethod # Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { @@ -42,7 +45,8 @@ def self.attribute_map :'lookup_secret_disable' => :'lookup_secret_disable', :'lookup_secret_regenerate' => :'lookup_secret_regenerate', :'lookup_secret_reveal' => :'lookup_secret_reveal', - :'method' => :'method' + :'method' => :'method', + :'transient_payload' => :'transient_payload' } end @@ -59,7 +63,8 @@ def self.openapi_types :'lookup_secret_disable' => :'Boolean', :'lookup_secret_regenerate' => :'Boolean', :'lookup_secret_reveal' => :'Boolean', - :'method' => :'String' + :'method' => :'String', + :'transient_payload' => :'Object' } end @@ -106,12 +111,19 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -123,6 +135,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? true end @@ -137,7 +150,8 @@ def ==(o) lookup_secret_disable == o.lookup_secret_disable && lookup_secret_regenerate == o.lookup_secret_regenerate && lookup_secret_reveal == o.lookup_secret_reveal && - method == o.method + method == o.method && + transient_payload == o.transient_payload end # @see the `==` method @@ -149,44 +163,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, lookup_secret_confirm, lookup_secret_disable, lookup_secret_regenerate, lookup_secret_reveal, method].hash + [csrf_token, lookup_secret_confirm, lookup_secret_disable, lookup_secret_regenerate, lookup_secret_reveal, method, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -221,7 +228,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_oidc_method.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_oidc_method.rb index dbc763ab279..b28802ebcc4 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_oidc_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_oidc_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -28,6 +28,9 @@ class UpdateSettingsFlowWithOidcMethod # The identity's traits in: body attr_accessor :traits + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Unlink this provider Either this or `link` must be set. type: string in: body attr_accessor :unlink @@ -41,6 +44,7 @@ def self.attribute_map :'link' => :'link', :'method' => :'method', :'traits' => :'traits', + :'transient_payload' => :'transient_payload', :'unlink' => :'unlink', :'upstream_parameters' => :'upstream_parameters' } @@ -58,6 +62,7 @@ def self.openapi_types :'link' => :'String', :'method' => :'String', :'traits' => :'Object', + :'transient_payload' => :'Object', :'unlink' => :'String', :'upstream_parameters' => :'Object' } @@ -94,12 +99,18 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'traits') self.traits = attributes[:'traits'] end + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] + end + if attributes.key?(:'unlink') self.unlink = attributes[:'unlink'] end @@ -112,6 +123,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -123,6 +135,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? true end @@ -136,6 +149,7 @@ def ==(o) link == o.link && method == o.method && traits == o.traits && + transient_payload == o.transient_payload && unlink == o.unlink && upstream_parameters == o.upstream_parameters end @@ -149,44 +163,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [flow, link, method, traits, unlink, upstream_parameters].hash + [flow, link, method, traits, transient_payload, unlink, upstream_parameters].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -221,7 +228,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_password_method.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_password_method.rb index 988203bfbea..3aafeac81c0 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_password_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_password_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,12 +25,16 @@ class UpdateSettingsFlowWithPasswordMethod # Password is the updated password attr_accessor :password + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'csrf_token' => :'csrf_token', :'method' => :'method', - :'password' => :'password' + :'password' => :'password', + :'transient_payload' => :'transient_payload' } end @@ -44,7 +48,8 @@ def self.openapi_types { :'csrf_token' => :'String', :'method' => :'String', - :'password' => :'String' + :'password' => :'String', + :'transient_payload' => :'Object' } end @@ -75,16 +80,25 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'password') self.password = attributes[:'password'] + else + self.password = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -100,6 +114,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @password.nil? true @@ -112,7 +127,8 @@ def ==(o) self.class == o.class && csrf_token == o.csrf_token && method == o.method && - password == o.password + password == o.password && + transient_payload == o.transient_payload end # @see the `==` method @@ -124,44 +140,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, method, password].hash + [csrf_token, method, password, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -196,7 +205,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_profile_method.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_profile_method.rb index 6a53224b08f..d0db021dd6a 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_profile_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_profile_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,12 +25,16 @@ class UpdateSettingsFlowWithProfileMethod # Traits The identity's traits. attr_accessor :traits + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'csrf_token' => :'csrf_token', :'method' => :'method', - :'traits' => :'traits' + :'traits' => :'traits', + :'transient_payload' => :'transient_payload' } end @@ -44,7 +48,8 @@ def self.openapi_types { :'csrf_token' => :'String', :'method' => :'String', - :'traits' => :'Object' + :'traits' => :'Object', + :'transient_payload' => :'Object' } end @@ -75,16 +80,25 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'traits') self.traits = attributes[:'traits'] + else + self.traits = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -100,6 +114,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? return false if @traits.nil? true @@ -112,7 +127,8 @@ def ==(o) self.class == o.class && csrf_token == o.csrf_token && method == o.method && - traits == o.traits + traits == o.traits && + transient_payload == o.transient_payload end # @see the `==` method @@ -124,44 +140,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, method, traits].hash + [csrf_token, method, traits, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -196,7 +205,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_totp_method.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_totp_method.rb index 6f2f4f2e7bc..c57528359c1 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_totp_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_totp_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -28,13 +28,17 @@ class UpdateSettingsFlowWithTotpMethod # UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. attr_accessor :totp_unlink + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { :'csrf_token' => :'csrf_token', :'method' => :'method', :'totp_code' => :'totp_code', - :'totp_unlink' => :'totp_unlink' + :'totp_unlink' => :'totp_unlink', + :'transient_payload' => :'transient_payload' } end @@ -49,7 +53,8 @@ def self.openapi_types :'csrf_token' => :'String', :'method' => :'String', :'totp_code' => :'String', - :'totp_unlink' => :'Boolean' + :'totp_unlink' => :'Boolean', + :'transient_payload' => :'Object' } end @@ -80,6 +85,8 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil end if attributes.key?(:'totp_code') @@ -89,11 +96,16 @@ def initialize(attributes = {}) if attributes.key?(:'totp_unlink') self.totp_unlink = attributes[:'totp_unlink'] end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -105,6 +117,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? true end @@ -117,7 +130,8 @@ def ==(o) csrf_token == o.csrf_token && method == o.method && totp_code == o.totp_code && - totp_unlink == o.totp_unlink + totp_unlink == o.totp_unlink && + transient_payload == o.transient_payload end # @see the `==` method @@ -129,44 +143,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, method, totp_code, totp_unlink].hash + [csrf_token, method, totp_code, totp_unlink, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -201,7 +208,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb index e8d4587cab2..d7efe02d45c 100644 --- a/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_settings_flow_with_web_authn_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,6 +22,9 @@ class UpdateSettingsFlowWithWebAuthnMethod # Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + # Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. attr_accessor :webauthn_register @@ -36,6 +39,7 @@ def self.attribute_map { :'csrf_token' => :'csrf_token', :'method' => :'method', + :'transient_payload' => :'transient_payload', :'webauthn_register' => :'webauthn_register', :'webauthn_register_displayname' => :'webauthn_register_displayname', :'webauthn_remove' => :'webauthn_remove' @@ -52,6 +56,7 @@ def self.openapi_types { :'csrf_token' => :'String', :'method' => :'String', + :'transient_payload' => :'Object', :'webauthn_register' => :'String', :'webauthn_register_displayname' => :'String', :'webauthn_remove' => :'String' @@ -85,6 +90,12 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end if attributes.key?(:'webauthn_register') @@ -103,6 +114,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -114,6 +126,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? true end @@ -125,6 +138,7 @@ def ==(o) self.class == o.class && csrf_token == o.csrf_token && method == o.method && + transient_payload == o.transient_payload && webauthn_register == o.webauthn_register && webauthn_register_displayname == o.webauthn_register_displayname && webauthn_remove == o.webauthn_remove @@ -139,44 +153,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, method, webauthn_register, webauthn_register_displayname, webauthn_remove].hash + [csrf_token, method, transient_payload, webauthn_register, webauthn_register_displayname, webauthn_remove].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -211,7 +218,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_subscription_body.rb b/clients/client/ruby/lib/ory-client/models/update_subscription_body.rb index 8ca66ea4b0d..6d17283107d 100644 --- a/clients/client/ruby/lib/ory-client/models/update_subscription_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_subscription_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -14,7 +14,6 @@ require 'time' module OryClient - # Update Subscription Request Body class UpdateSubscriptionBody # monthly Monthly yearly Yearly attr_accessor :interval @@ -91,10 +90,14 @@ def initialize(attributes = {}) if attributes.key?(:'interval') self.interval = attributes[:'interval'] + else + self.interval = nil end if attributes.key?(:'plan') self.plan = attributes[:'plan'] + else + self.plan = nil end if attributes.key?(:'return_to') @@ -105,6 +108,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @interval.nil? invalid_properties.push('invalid value for "interval", interval cannot be nil.') @@ -120,6 +124,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @interval.nil? interval_validator = EnumAttributeValidator.new('String', ["monthly", "yearly"]) return false unless interval_validator.valid?(@interval) @@ -163,37 +168,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -228,7 +226,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_verification_flow_body.rb b/clients/client/ruby/lib/ory-client/models/update_verification_flow_body.rb index 0e369e02831..69d45712252 100644 --- a/clients/client/ruby/lib/ory-client/models/update_verification_flow_body.rb +++ b/clients/client/ruby/lib/ory-client/models/update_verification_flow_body.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_code_method.rb b/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_code_method.rb index 8b5b74502d7..e3a1c572e82 100644 --- a/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_code_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_code_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -27,6 +27,9 @@ class UpdateVerificationFlowWithCodeMethod # Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -55,7 +58,8 @@ def self.attribute_map :'code' => :'code', :'csrf_token' => :'csrf_token', :'email' => :'email', - :'method' => :'method' + :'method' => :'method', + :'transient_payload' => :'transient_payload' } end @@ -70,7 +74,8 @@ def self.openapi_types :'code' => :'String', :'csrf_token' => :'String', :'email' => :'String', - :'method' => :'String' + :'method' => :'String', + :'transient_payload' => :'Object' } end @@ -109,12 +114,19 @@ def initialize(attributes = {}) if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @method.nil? invalid_properties.push('invalid value for "method", method cannot be nil.') @@ -126,6 +138,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @method.nil? method_validator = EnumAttributeValidator.new('String', ["link", "code"]) return false unless method_validator.valid?(@method) @@ -150,7 +163,8 @@ def ==(o) code == o.code && csrf_token == o.csrf_token && email == o.email && - method == o.method + method == o.method && + transient_payload == o.transient_payload end # @see the `==` method @@ -162,44 +176,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [code, csrf_token, email, method].hash + [code, csrf_token, email, method, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -234,7 +241,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_link_method.rb b/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_link_method.rb index 6ae01812b3c..5b1b1479575 100644 --- a/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_link_method.rb +++ b/clients/client/ruby/lib/ory-client/models/update_verification_flow_with_link_method.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,6 +25,9 @@ class UpdateVerificationFlowWithLinkMethod # Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode attr_accessor :method + # Transient data to pass along to any webhooks + attr_accessor :transient_payload + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -52,7 +55,8 @@ def self.attribute_map { :'csrf_token' => :'csrf_token', :'email' => :'email', - :'method' => :'method' + :'method' => :'method', + :'transient_payload' => :'transient_payload' } end @@ -66,7 +70,8 @@ def self.openapi_types { :'csrf_token' => :'String', :'email' => :'String', - :'method' => :'String' + :'method' => :'String', + :'transient_payload' => :'Object' } end @@ -97,16 +102,25 @@ def initialize(attributes = {}) if attributes.key?(:'email') self.email = attributes[:'email'] + else + self.email = nil end if attributes.key?(:'method') self.method = attributes[:'method'] + else + self.method = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @email.nil? invalid_properties.push('invalid value for "email", email cannot be nil.') @@ -122,6 +136,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @email.nil? return false if @method.nil? method_validator = EnumAttributeValidator.new('String', ["link", "code"]) @@ -146,7 +161,8 @@ def ==(o) self.class == o.class && csrf_token == o.csrf_token && email == o.email && - method == o.method + method == o.method && + transient_payload == o.transient_payload end # @see the `==` method @@ -158,44 +174,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [csrf_token, email, method].hash + [csrf_token, email, method, transient_payload].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -230,7 +239,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/update_workspace_payload.rb b/clients/client/ruby/lib/ory-client/models/update_workspace_payload.rb new file mode 100644 index 00000000000..6a933bd5067 --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/update_workspace_payload.rb @@ -0,0 +1,222 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class UpdateWorkspacePayload + # The name of the workspace. + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'name' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::UpdateWorkspacePayload` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::UpdateWorkspacePayload`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @name.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + name == o.name + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [name].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/models/usage.rb b/clients/client/ruby/lib/ory-client/models/usage.rb index 9d26d7d3173..6a52804d665 100644 --- a/clients/client/ruby/lib/ory-client/models/usage.rb +++ b/clients/client/ruby/lib/ory-client/models/usage.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -65,6 +65,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -72,6 +73,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -99,37 +101,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -164,7 +159,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/verifiable_credential_priming_response.rb b/clients/client/ruby/lib/ory-client/models/verifiable_credential_priming_response.rb index fde29bc298d..fbda61210c9 100644 --- a/clients/client/ruby/lib/ory-client/models/verifiable_credential_priming_response.rb +++ b/clients/client/ruby/lib/ory-client/models/verifiable_credential_priming_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -121,6 +121,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -128,6 +129,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -162,37 +164,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -227,7 +222,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/verifiable_credential_proof.rb b/clients/client/ruby/lib/ory-client/models/verifiable_credential_proof.rb index 8a9ba87a238..0b45249d99d 100644 --- a/clients/client/ruby/lib/ory-client/models/verifiable_credential_proof.rb +++ b/clients/client/ruby/lib/ory-client/models/verifiable_credential_proof.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -73,6 +73,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -80,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -108,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/verifiable_credential_response.rb b/clients/client/ruby/lib/ory-client/models/verifiable_credential_response.rb index 8034937fd9d..7766cfe37bb 100644 --- a/clients/client/ruby/lib/ory-client/models/verifiable_credential_response.rb +++ b/clients/client/ruby/lib/ory-client/models/verifiable_credential_response.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -73,6 +73,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -80,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -108,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/verifiable_identity_address.rb b/clients/client/ruby/lib/ory-client/models/verifiable_identity_address.rb index f76e7a47fd1..39a55f10e49 100644 --- a/clients/client/ruby/lib/ory-client/models/verifiable_identity_address.rb +++ b/clients/client/ruby/lib/ory-client/models/verifiable_identity_address.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -125,6 +125,8 @@ def initialize(attributes = {}) if attributes.key?(:'status') self.status = attributes[:'status'] + else + self.status = nil end if attributes.key?(:'updated_at') @@ -133,10 +135,14 @@ def initialize(attributes = {}) if attributes.key?(:'value') self.value = attributes[:'value'] + else + self.value = nil end if attributes.key?(:'verified') self.verified = attributes[:'verified'] + else + self.verified = nil end if attributes.key?(:'verified_at') @@ -145,12 +151,15 @@ def initialize(attributes = {}) if attributes.key?(:'via') self.via = attributes[:'via'] + else + self.via = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @status.nil? invalid_properties.push('invalid value for "status", status cannot be nil.') @@ -174,6 +183,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @status.nil? return false if @value.nil? return false if @verified.nil? @@ -224,37 +234,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -289,7 +292,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/verification_flow.rb b/clients/client/ruby/lib/ory-client/models/verification_flow.rb index 4acb25bd04a..a6e2e4464a7 100644 --- a/clients/client/ruby/lib/ory-client/models/verification_flow.rb +++ b/clients/client/ruby/lib/ory-client/models/verification_flow.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -37,6 +37,9 @@ class VerificationFlow # State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. attr_accessor :state + # TransientPayload is used to pass data from the verification flow to hooks and email templates + attr_accessor :transient_payload + # The flow type can either be `api` or `browser`. attr_accessor :type @@ -52,6 +55,7 @@ def self.attribute_map :'request_url' => :'request_url', :'return_to' => :'return_to', :'state' => :'state', + :'transient_payload' => :'transient_payload', :'type' => :'type', :'ui' => :'ui' } @@ -72,6 +76,7 @@ def self.openapi_types :'request_url' => :'String', :'return_to' => :'String', :'state' => :'Object', + :'transient_payload' => :'Object', :'type' => :'String', :'ui' => :'UiContainer' } @@ -109,6 +114,8 @@ def initialize(attributes = {}) if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'issued_at') @@ -125,20 +132,31 @@ def initialize(attributes = {}) if attributes.key?(:'state') self.state = attributes[:'state'] + else + self.state = nil + end + + if attributes.key?(:'transient_payload') + self.transient_payload = attributes[:'transient_payload'] end if attributes.key?(:'type') self.type = attributes[:'type'] + else + self.type = nil end if attributes.key?(:'ui') self.ui = attributes[:'ui'] + else + self.ui = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @id.nil? invalid_properties.push('invalid value for "id", id cannot be nil.') @@ -158,6 +176,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @id.nil? return false if @type.nil? return false if @ui.nil? @@ -176,6 +195,7 @@ def ==(o) request_url == o.request_url && return_to == o.return_to && state == o.state && + transient_payload == o.transient_payload && type == o.type && ui == o.ui end @@ -189,44 +209,37 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [active, expires_at, id, issued_at, request_url, return_to, state, type, ui].hash + [active, expires_at, id, issued_at, request_url, return_to, state, transient_payload, type, ui].hash end # Builds the object from hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -261,7 +274,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/verification_flow_state.rb b/clients/client/ruby/lib/ory-client/models/verification_flow_state.rb index 5a2e26c194f..3e0d393b0cf 100644 --- a/clients/client/ruby/lib/ory-client/models/verification_flow_state.rb +++ b/clients/client/ruby/lib/ory-client/models/verification_flow_state.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -19,6 +19,10 @@ class VerificationFlowState SENT_EMAIL = "sent_email".freeze PASSED_CHALLENGE = "passed_challenge".freeze + def self.all_vars + @all_vars ||= [CHOOSE_METHOD, SENT_EMAIL, PASSED_CHALLENGE].freeze + end + # Builds the enum from string # @param [String] The enum value in the form of the string # @return [String] The enum value @@ -30,9 +34,8 @@ def self.build_from_hash(value) # @param [String] The enum value in the form of the string # @return [String] The enum value def build_from_hash(value) - constantValues = VerificationFlowState.constants.select { |c| VerificationFlowState::const_get(c) == value } - raise "Invalid ENUM value #{value} for class #VerificationFlowState" if constantValues.empty? - value + return value if VerificationFlowState.all_vars.include?(value) + raise "Invalid ENUM value #{value} for class #VerificationFlowState" end end end diff --git a/clients/client/ruby/lib/ory-client/models/version.rb b/clients/client/ruby/lib/ory-client/models/version.rb index 486c4064a23..d1a06fae2aa 100644 --- a/clients/client/ruby/lib/ory-client/models/version.rb +++ b/clients/client/ruby/lib/ory-client/models/version.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -66,6 +66,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -73,6 +74,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -100,37 +102,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -165,7 +160,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/warning.rb b/clients/client/ruby/lib/ory-client/models/warning.rb index e9e259da998..b855a587f24 100644 --- a/clients/client/ruby/lib/ory-client/models/warning.rb +++ b/clients/client/ruby/lib/ory-client/models/warning.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -73,6 +73,7 @@ def initialize(attributes = {}) # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new invalid_properties end @@ -80,6 +81,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' true end @@ -108,37 +110,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -173,7 +168,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/workspace.rb b/clients/client/ruby/lib/ory-client/models/workspace.rb index e4fd75cfe1a..72b061649ee 100644 --- a/clients/client/ruby/lib/ory-client/models/workspace.rb +++ b/clients/client/ruby/lib/ory-client/models/workspace.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -76,14 +76,20 @@ def initialize(attributes = {}) if attributes.key?(:'created_at') self.created_at = attributes[:'created_at'] + else + self.created_at = nil end if attributes.key?(:'id') self.id = attributes[:'id'] + else + self.id = nil end if attributes.key?(:'name') self.name = attributes[:'name'] + else + self.name = nil end if attributes.key?(:'subscription_id') @@ -92,12 +98,15 @@ def initialize(attributes = {}) if attributes.key?(:'updated_at') self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new if @created_at.nil? invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') @@ -121,6 +130,7 @@ def list_invalid_properties # Check to see if the all the properties in the model are valid # @return true if the model is valid def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' return false if @created_at.nil? return false if @id.nil? return false if @name.nil? @@ -156,37 +166,30 @@ def hash # @param [Hash] attributes Model attributes in the form of hash # @return [Object] Returns the model itself def self.build_from_hash(attributes) - new.build_from_hash(attributes) - end - - # Builds the object from hash - # @param [Hash] attributes Model attributes in the form of hash - # @return [Object] Returns the model itself - def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) attributes = attributes.transform_keys(&:to_sym) - self.class.openapi_types.each_pair do |key, type| - if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key) - self.send("#{key}=", nil) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil elsif type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the attribute # is documented as an array but the input is not - if attributes[self.class.attribute_map[key]].is_a?(Array) - self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) }) + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } end - elsif !attributes[self.class.attribute_map[key]].nil? - self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) end end - - self + new(transformed_hash) end # Deserializes the data based on type # @param string type Data type # @param string value Value to be deserialized # @return [Object] Deserialized data - def _deserialize(type, value) + def self._deserialize(type, value) case type.to_sym when :Time Time.parse(value) @@ -221,7 +224,7 @@ def _deserialize(type, value) else # model # models (e.g. Pet) or oneOf klass = OryClient.const_get(type) - klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) end end diff --git a/clients/client/ruby/lib/ory-client/models/workspace_meta.rb b/clients/client/ruby/lib/ory-client/models/workspace_meta.rb new file mode 100644 index 00000000000..3bdda469e29 --- /dev/null +++ b/clients/client/ruby/lib/ory-client/models/workspace_meta.rb @@ -0,0 +1,289 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'date' +require 'time' + +module OryClient + class WorkspaceMeta + attr_accessor :created_at + + attr_accessor :id + + attr_accessor :name + + attr_accessor :subscription_id + + attr_accessor :subscription_plan + + attr_accessor :updated_at + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'created_at' => :'created_at', + :'id' => :'id', + :'name' => :'name', + :'subscription_id' => :'subscription_id', + :'subscription_plan' => :'subscription_plan', + :'updated_at' => :'updated_at' + } + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'created_at' => :'Time', + :'id' => :'String', + :'name' => :'String', + :'subscription_id' => :'String', + :'subscription_plan' => :'String', + :'updated_at' => :'Time' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + :'subscription_id', + :'subscription_plan', + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `OryClient::WorkspaceMeta` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!self.class.attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `OryClient::WorkspaceMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'created_at') + self.created_at = attributes[:'created_at'] + else + self.created_at = nil + end + + if attributes.key?(:'id') + self.id = attributes[:'id'] + else + self.id = nil + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + else + self.name = nil + end + + if attributes.key?(:'subscription_id') + self.subscription_id = attributes[:'subscription_id'] + end + + if attributes.key?(:'subscription_plan') + self.subscription_plan = attributes[:'subscription_plan'] + end + + if attributes.key?(:'updated_at') + self.updated_at = attributes[:'updated_at'] + else + self.updated_at = nil + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + if @created_at.nil? + invalid_properties.push('invalid value for "created_at", created_at cannot be nil.') + end + + if @id.nil? + invalid_properties.push('invalid value for "id", id cannot be nil.') + end + + if @name.nil? + invalid_properties.push('invalid value for "name", name cannot be nil.') + end + + if @updated_at.nil? + invalid_properties.push('invalid value for "updated_at", updated_at cannot be nil.') + end + + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + return false if @created_at.nil? + return false if @id.nil? + return false if @name.nil? + return false if @updated_at.nil? + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + created_at == o.created_at && + id == o.id && + name == o.name && + subscription_id == o.subscription_id && + subscription_plan == o.subscription_plan && + updated_at == o.updated_at + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [created_at, id, name, subscription_id, subscription_plan, updated_at].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = OryClient.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/clients/client/ruby/lib/ory-client/version.rb b/clients/client/ruby/lib/ory-client/version.rb index 0cbd7832155..ce823e4c0a9 100644 --- a/clients/client/ruby/lib/ory-client/version.rb +++ b/clients/client/ruby/lib/ory-client/version.rb @@ -3,13 +3,13 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: 1.5.1 +The version of the OpenAPI document: 1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end module OryClient - VERSION = '1.5.1' + VERSION = '1.8.1' end diff --git a/clients/client/ruby/ory-client.gemspec b/clients/client/ruby/ory-client.gemspec index bec1bcab4c1..6bdd4f1d612 100644 --- a/clients/client/ruby/ory-client.gemspec +++ b/clients/client/ruby/ory-client.gemspec @@ -5,10 +5,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -25,7 +25,8 @@ Gem::Specification.new do |s| s.summary = "Ory APIs Ruby Gem" s.description = "Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. " s.license = "Apache-2.0" - s.required_ruby_version = ">= 2.4" + s.required_ruby_version = ">= 2.7" + s.metadata = {} s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' diff --git a/clients/client/ruby/spec/api/courier_api_spec.rb b/clients/client/ruby/spec/api/courier_api_spec.rb index 86e0ef8bbd2..814fcfb24a1 100644 --- a/clients/client/ruby/spec/api/courier_api_spec.rb +++ b/clients/client/ruby/spec/api/courier_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ # @return [Message] describe 'get_courier_message test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -55,7 +55,7 @@ # @return [Array] describe 'list_courier_messages test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/events_api_spec.rb b/clients/client/ruby/spec/api/events_api_spec.rb index e0a391894bf..9c0359c9b44 100644 --- a/clients/client/ruby/spec/api/events_api_spec.rb +++ b/clients/client/ruby/spec/api/events_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ # @return [EventStream] describe 'create_event_stream test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -53,7 +53,7 @@ # @return [nil] describe 'delete_event_stream test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -64,7 +64,7 @@ # @return [ListEventStreams] describe 'list_event_streams test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -77,7 +77,7 @@ # @return [EventStream] describe 'set_event_stream test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/frontend_api_spec.rb b/clients/client/ruby/spec/api/frontend_api_spec.rb index 9b1adb6032a..08da7eb4cb2 100644 --- a/clients/client/ruby/spec/api/frontend_api_spec.rb +++ b/clients/client/ruby/spec/api/frontend_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -42,10 +42,11 @@ # @option opts [String] :cookie HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. # @option opts [String] :login_challenge An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). # @option opts [String] :organization An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + # @option opts [String] :via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. # @return [LoginFlow] describe 'create_browser_login_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -58,7 +59,7 @@ # @return [LogoutFlow] describe 'create_browser_logout_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -70,7 +71,7 @@ # @return [RecoveryFlow] describe 'create_browser_recovery_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -85,7 +86,7 @@ # @return [RegistrationFlow] describe 'create_browser_registration_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -98,7 +99,7 @@ # @return [SettingsFlow] describe 'create_browser_settings_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -110,7 +111,7 @@ # @return [VerificationFlow] describe 'create_browser_verification_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -123,10 +124,11 @@ # @option opts [String] :x_session_token The Session Token of the Identity performing the settings flow. # @option opts [Boolean] :return_session_token_exchange_code EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. # @option opts [String] :return_to The URL to return the browser to after the flow was completed. + # @option opts [String] :via Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. # @return [LoginFlow] describe 'create_native_login_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -137,7 +139,7 @@ # @return [RecoveryFlow] describe 'create_native_recovery_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -150,7 +152,7 @@ # @return [RegistrationFlow] describe 'create_native_registration_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -162,7 +164,7 @@ # @return [SettingsFlow] describe 'create_native_settings_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -173,7 +175,7 @@ # @return [VerificationFlow] describe 'create_native_verification_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -186,7 +188,7 @@ # @return [DeleteMySessionsCount] describe 'disable_my_other_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -200,7 +202,7 @@ # @return [nil] describe 'disable_my_session test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -212,7 +214,7 @@ # @return [SuccessfulNativeLogin] describe 'exchange_session_token test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -224,7 +226,7 @@ # @return [FlowError] describe 'get_flow_error test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -237,7 +239,7 @@ # @return [LoginFlow] describe 'get_login_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -250,7 +252,7 @@ # @return [RecoveryFlow] describe 'get_recovery_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -263,7 +265,7 @@ # @return [RegistrationFlow] describe 'get_registration_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -277,7 +279,7 @@ # @return [SettingsFlow] describe 'get_settings_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -290,7 +292,7 @@ # @return [VerificationFlow] describe 'get_verification_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -301,7 +303,7 @@ # @return [String] describe 'get_web_authn_java_script test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -318,7 +320,7 @@ # @return [Array] describe 'list_my_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -330,7 +332,7 @@ # @return [nil] describe 'perform_native_logout test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -344,7 +346,7 @@ # @return [Session] describe 'to_session test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -359,7 +361,7 @@ # @return [SuccessfulNativeLogin] describe 'update_login_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -373,7 +375,7 @@ # @return [nil] describe 'update_logout_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -388,7 +390,7 @@ # @return [RecoveryFlow] describe 'update_recovery_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -402,7 +404,7 @@ # @return [SuccessfulNativeRegistration] describe 'update_registration_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -417,7 +419,7 @@ # @return [SettingsFlow] describe 'update_settings_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -432,7 +434,7 @@ # @return [VerificationFlow] describe 'update_verification_flow test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/identity_api_spec.rb b/clients/client/ruby/spec/api/identity_api_spec.rb index 379c9c4b2c3..61806beea6c 100644 --- a/clients/client/ruby/spec/api/identity_api_spec.rb +++ b/clients/client/ruby/spec/api/identity_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ # @return [BatchPatchIdentitiesResponse] describe 'batch_patch_identities test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -52,7 +52,7 @@ # @return [Identity] describe 'create_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -64,7 +64,7 @@ # @return [RecoveryCodeForIdentity] describe 'create_recovery_code_for_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -72,11 +72,12 @@ # 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 [Hash] opts the optional parameters + # @option opts [String] :return_to # @option opts [CreateRecoveryLinkForIdentityBody] :create_recovery_link_for_identity_body # @return [RecoveryLinkForIdentity] describe 'create_recovery_link_for_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -88,7 +89,7 @@ # @return [nil] describe 'delete_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -96,12 +97,12 @@ # Delete a credential for a specific identity # Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. # @param id ID is the identity's ID. - # @param type Type is the credential's Type. One of totp, webauthn, lookup + # @param type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 # @param [Hash] opts the optional parameters # @return [nil] describe 'delete_identity_credentials test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -113,7 +114,7 @@ # @return [nil] describe 'delete_identity_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -125,7 +126,7 @@ # @return [nil] describe 'disable_session test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -137,7 +138,7 @@ # @return [Session] describe 'extend_session test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -150,7 +151,7 @@ # @return [Identity] describe 'get_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -162,7 +163,7 @@ # @return [Object] describe 'get_identity_schema test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -175,7 +176,7 @@ # @return [Session] describe 'get_session test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -188,13 +189,14 @@ # @option opts [Integer] :page_size Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). # @option opts [String] :page_token Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). # @option opts [String] :consistency Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - # @option opts [Array] :ids_filter IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + # @option opts [Array] :ids List of ids used to filter identities. If this list is empty, then no filter will be applied. # @option opts [String] :credentials_identifier CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. # @option opts [String] :preview_credentials_identifier_similar This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + # @option opts [Array] :include_credential Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. # @return [Array] describe 'list_identities test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -209,7 +211,7 @@ # @return [Array] describe 'list_identity_schemas test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -226,7 +228,7 @@ # @return [Array] describe 'list_identity_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -241,7 +243,7 @@ # @return [Array] describe 'list_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -254,7 +256,7 @@ # @return [Identity] describe 'patch_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -267,7 +269,7 @@ # @return [Identity] describe 'update_identity test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/jwk_api_spec.rb b/clients/client/ruby/spec/api/jwk_api_spec.rb index 8b1dc5bec8b..d1f382b17e4 100644 --- a/clients/client/ruby/spec/api/jwk_api_spec.rb +++ b/clients/client/ruby/spec/api/jwk_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -41,7 +41,7 @@ # @return [JsonWebKeySet] describe 'create_json_web_key_set test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -54,7 +54,7 @@ # @return [nil] describe 'delete_json_web_key test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -66,7 +66,7 @@ # @return [nil] describe 'delete_json_web_key_set test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -79,7 +79,7 @@ # @return [JsonWebKeySet] describe 'get_json_web_key test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -91,7 +91,7 @@ # @return [JsonWebKeySet] describe 'get_json_web_key_set test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -105,7 +105,7 @@ # @return [JsonWebKey] describe 'set_json_web_key test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -118,7 +118,7 @@ # @return [JsonWebKeySet] describe 'set_json_web_key_set test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/metadata_api_spec.rb b/clients/client/ruby/spec/api/metadata_api_spec.rb index 9426c276ed0..f7178ddff33 100644 --- a/clients/client/ruby/spec/api/metadata_api_spec.rb +++ b/clients/client/ruby/spec/api/metadata_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -39,7 +39,7 @@ # @return [GetVersion200Response] describe 'get_version test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -50,7 +50,7 @@ # @return [HealthStatus] describe 'is_alive test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -61,7 +61,7 @@ # @return [IsReady200Response] describe 'is_ready test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/o_auth2_api_spec.rb b/clients/client/ruby/spec/api/o_auth2_api_spec.rb index be82927bd18..7bb9b8850ed 100644 --- a/clients/client/ruby/spec/api/o_auth2_api_spec.rb +++ b/clients/client/ruby/spec/api/o_auth2_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -41,7 +41,7 @@ # @return [OAuth2RedirectTo] describe 'accept_o_auth2_consent_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -54,7 +54,7 @@ # @return [OAuth2RedirectTo] describe 'accept_o_auth2_login_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -66,7 +66,7 @@ # @return [OAuth2RedirectTo] describe 'accept_o_auth2_logout_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -78,7 +78,7 @@ # @return [OAuth2Client] describe 'create_o_auth2_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -90,7 +90,7 @@ # @return [nil] describe 'delete_o_auth2_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -102,7 +102,7 @@ # @return [nil] describe 'delete_o_auth2_token test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -114,7 +114,7 @@ # @return [nil] describe 'delete_trusted_o_auth2_jwt_grant_issuer test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -126,7 +126,7 @@ # @return [OAuth2Client] describe 'get_o_auth2_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -138,7 +138,7 @@ # @return [OAuth2ConsentRequest] describe 'get_o_auth2_consent_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -150,7 +150,7 @@ # @return [OAuth2LoginRequest] describe 'get_o_auth2_login_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -162,7 +162,7 @@ # @return [OAuth2LogoutRequest] describe 'get_o_auth2_logout_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -174,7 +174,7 @@ # @return [TrustedOAuth2JwtGrantIssuer] describe 'get_trusted_o_auth2_jwt_grant_issuer test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -187,7 +187,7 @@ # @return [IntrospectedOAuth2Token] describe 'introspect_o_auth2_token test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -202,7 +202,7 @@ # @return [Array] describe 'list_o_auth2_clients test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -217,7 +217,7 @@ # @return [Array] describe 'list_o_auth2_consent_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -231,7 +231,7 @@ # @return [Array] describe 'list_trusted_o_auth2_jwt_grant_issuers test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -242,7 +242,7 @@ # @return [ErrorOAuth2] describe 'o_auth2_authorize test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -258,7 +258,7 @@ # @return [OAuth2TokenExchange] describe 'oauth2_token_exchange test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -271,7 +271,7 @@ # @return [OAuth2Client] describe 'patch_o_auth2_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -284,7 +284,7 @@ # @return [OAuth2RedirectTo] describe 'reject_o_auth2_consent_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -297,7 +297,7 @@ # @return [OAuth2RedirectTo] describe 'reject_o_auth2_login_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -309,7 +309,7 @@ # @return [nil] describe 'reject_o_auth2_logout_request test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -323,7 +323,7 @@ # @return [nil] describe 'revoke_o_auth2_consent_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -336,7 +336,7 @@ # @return [nil] describe 'revoke_o_auth2_login_sessions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -350,7 +350,7 @@ # @return [nil] describe 'revoke_o_auth2_token test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -363,7 +363,7 @@ # @return [OAuth2Client] describe 'set_o_auth2_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -376,7 +376,7 @@ # @return [OAuth2Client] describe 'set_o_auth2_client_lifespans test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -388,7 +388,7 @@ # @return [TrustedOAuth2JwtGrantIssuer] describe 'trust_o_auth2_jwt_grant_issuer test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/oidc_api_spec.rb b/clients/client/ruby/spec/api/oidc_api_spec.rb index d245f13c6ae..059870ae6a1 100644 --- a/clients/client/ruby/spec/api/oidc_api_spec.rb +++ b/clients/client/ruby/spec/api/oidc_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ # @return [OAuth2Client] describe 'create_oidc_dynamic_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -52,7 +52,7 @@ # @return [VerifiableCredentialResponse] describe 'create_verifiable_credential test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -64,7 +64,7 @@ # @return [nil] describe 'delete_oidc_dynamic_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -75,7 +75,7 @@ # @return [OidcConfiguration] describe 'discover_oidc_configuration test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -87,7 +87,7 @@ # @return [OAuth2Client] describe 'get_oidc_dynamic_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -98,7 +98,7 @@ # @return [OidcUserInfo] describe 'get_oidc_user_info test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -109,7 +109,7 @@ # @return [nil] describe 'revoke_oidc_session test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -122,7 +122,7 @@ # @return [OAuth2Client] describe 'set_oidc_dynamic_client test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/permission_api_spec.rb b/clients/client/ruby/spec/api/permission_api_spec.rb index 34aad7e884d..82638a66925 100644 --- a/clients/client/ruby/spec/api/permission_api_spec.rb +++ b/clients/client/ruby/spec/api/permission_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -47,7 +47,7 @@ # @return [CheckPermissionResult] describe 'check_permission test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -66,7 +66,7 @@ # @return [CheckPermissionResult] describe 'check_permission_or_error test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -81,7 +81,7 @@ # @return [ExpandedPermissionTree] describe 'expand_permissions test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -94,7 +94,7 @@ # @return [CheckPermissionResult] describe 'post_check_permission test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -102,12 +102,12 @@ # Check a permission # To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). # @param [Hash] opts the optional parameters - # @option opts [Integer] :max_depth nolint:deadcode,unused + # @option opts [Integer] :max_depth # @option opts [PostCheckPermissionOrErrorBody] :post_check_permission_or_error_body # @return [CheckPermissionResult] describe 'post_check_permission_or_error test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/project_api_spec.rb b/clients/client/ruby/spec/api/project_api_spec.rb index 147fce76584..19aa813e7f6 100644 --- a/clients/client/ruby/spec/api/project_api_spec.rb +++ b/clients/client/ruby/spec/api/project_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ # @return [Organization] describe 'create_organization test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -52,7 +52,7 @@ # @return [Project] describe 'create_project test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -65,7 +65,7 @@ # @return [ProjectApiKey] describe 'create_project_api_key test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -77,7 +77,7 @@ # @return [nil] describe 'delete_organization test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -90,7 +90,7 @@ # @return [nil] describe 'delete_project_api_key test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -101,7 +101,7 @@ # @return [ActiveProjectInConsole] describe 'get_active_project_in_console test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -113,7 +113,7 @@ # @return [GetOrganizationResponse] describe 'get_organization test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -125,7 +125,7 @@ # @return [Project] describe 'get_project test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -134,10 +134,10 @@ # This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. # @param project # @param [Hash] opts the optional parameters - # @return [Array] + # @return [Array] describe 'get_project_members test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -145,14 +145,14 @@ # Retrieves project metrics for the specified event type and time range # @param project_id Project ID # @param event_type The event type to query for - # @param resolution The resolution of the buckets The minimum resolution is 1 hour. + # @param resolution The resolution of the buckets The minimum resolution is 1 minute. # @param from The start RFC3339 date of the time window # @param to The end RFC3339 date of the time window # @param [Hash] opts the optional parameters # @return [GetProjectMetricsResponse] describe 'get_project_metrics test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -162,7 +162,7 @@ # @return [ListOrganizationsResponse] describe 'list_organizations test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -174,7 +174,7 @@ # @return [Array] describe 'list_project_api_keys test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -185,7 +185,7 @@ # @return [Array] describe 'list_projects test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -198,7 +198,7 @@ # @return [SuccessfulProjectUpdate] describe 'patch_project test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -210,7 +210,7 @@ # @return [nil] describe 'purge_project test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -223,7 +223,7 @@ # @return [nil] describe 'remove_project_member test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -235,7 +235,7 @@ # @return [nil] describe 'set_active_project_in_console test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -248,7 +248,7 @@ # @return [SuccessfulProjectUpdate] describe 'set_project test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -261,7 +261,7 @@ # @return [Organization] describe 'update_organization test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/relationship_api_spec.rb b/clients/client/ruby/spec/api/relationship_api_spec.rb index c23c5a3a210..bf28ebf79f4 100644 --- a/clients/client/ruby/spec/api/relationship_api_spec.rb +++ b/clients/client/ruby/spec/api/relationship_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -40,7 +40,7 @@ # @return [CheckOplSyntaxResult] describe 'check_opl_syntax test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -52,7 +52,7 @@ # @return [Relationship] describe 'create_relationship test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -70,7 +70,7 @@ # @return [nil] describe 'delete_relationships test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -90,7 +90,7 @@ # @return [Relationships] describe 'get_relationships test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -101,7 +101,7 @@ # @return [RelationshipNamespaces] describe 'list_relationship_namespaces test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end @@ -113,7 +113,7 @@ # @return [nil] describe 'patch_relationships test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api/wellknown_api_spec.rb b/clients/client/ruby/spec/api/wellknown_api_spec.rb index 2dcc97e23a0..1aa42182bf7 100644 --- a/clients/client/ruby/spec/api/wellknown_api_spec.rb +++ b/clients/client/ruby/spec/api/wellknown_api_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -39,7 +39,7 @@ # @return [JsonWebKeySet] describe 'discover_json_web_keys test' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/api_client_spec.rb b/clients/client/ruby/spec/api_client_spec.rb deleted file mode 100644 index 019d374392c..00000000000 --- a/clients/client/ruby/spec/api_client_spec.rb +++ /dev/null @@ -1,226 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'spec_helper' - -describe OryClient::ApiClient do - context 'initialization' do - context 'URL stuff' do - context 'host' do - it 'removes http from host' do - OryClient.configure { |c| c.host = 'http://example.com' } - expect(OryClient::Configuration.default.host).to eq('example.com') - end - - it 'removes https from host' do - OryClient.configure { |c| c.host = 'https://wookiee.com' } - expect(OryClient::ApiClient.default.config.host).to eq('wookiee.com') - end - - it 'removes trailing path from host' do - OryClient.configure { |c| c.host = 'hobo.com/v4' } - expect(OryClient::Configuration.default.host).to eq('hobo.com') - end - end - - context 'base_path' do - it "prepends a slash to base_path" do - OryClient.configure { |c| c.base_path = 'v4/dog' } - expect(OryClient::Configuration.default.base_path).to eq('/v4/dog') - end - - it "doesn't prepend a slash if one is already there" do - OryClient.configure { |c| c.base_path = '/v4/dog' } - expect(OryClient::Configuration.default.base_path).to eq('/v4/dog') - end - - it "ends up as a blank string if nil" do - OryClient.configure { |c| c.base_path = nil } - expect(OryClient::Configuration.default.base_path).to eq('') - end - end - end - end - - describe 'params_encoding in #build_request' do - let(:config) { OryClient::Configuration.new } - let(:api_client) { OryClient::ApiClient.new(config) } - - it 'defaults to nil' do - expect(OryClient::Configuration.default.params_encoding).to eq(nil) - expect(config.params_encoding).to eq(nil) - - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(nil) - end - - it 'can be customized' do - config.params_encoding = :multi - request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(:multi) - end - end - - describe 'timeout in #build_request' do - let(:config) { OryClient::Configuration.new } - let(:api_client) { OryClient::ApiClient.new(config) } - - it 'defaults to 0' do - expect(OryClient::Configuration.default.timeout).to eq(0) - expect(config.timeout).to eq(0) - - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(0) - end - - it 'can be customized' do - config.timeout = 100 - request = api_client.build_request(:get, '/test') - expect(request.options[:timeout]).to eq(100) - end - end - - describe '#deserialize' do - it "handles Array" do - api_client = OryClient::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[12, 34]') - data = api_client.deserialize(response, 'Array') - expect(data).to be_instance_of(Array) - expect(data).to eq([12, 34]) - end - - it 'handles Array>' do - api_client = OryClient::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '[[12, 34], [56]]') - data = api_client.deserialize(response, 'Array>') - expect(data).to be_instance_of(Array) - expect(data).to eq([[12, 34], [56]]) - end - - it 'handles Hash' do - api_client = OryClient::ApiClient.new - headers = { 'Content-Type' => 'application/json' } - response = double('response', headers: headers, body: '{"message": "Hello"}') - data = api_client.deserialize(response, 'Hash') - expect(data).to be_instance_of(Hash) - expect(data).to eq(:message => 'Hello') - end - end - - describe "#object_to_hash" do - it 'ignores nils and includes empty arrays' do - # uncomment below to test object_to_hash for model - # api_client = OryClient::ApiClient.new - # _model = OryClient::ModelName.new - # update the model attribute below - # _model.id = 1 - # update the expected value (hash) below - # expected = {id: 1, name: '', tags: []} - # expect(api_client.object_to_hash(_model)).to eq(expected) - end - end - - describe '#build_collection_param' do - let(:param) { ['aa', 'bb', 'cc'] } - let(:api_client) { OryClient::ApiClient.new } - - it 'works for csv' do - expect(api_client.build_collection_param(param, :csv)).to eq('aa,bb,cc') - end - - it 'works for ssv' do - expect(api_client.build_collection_param(param, :ssv)).to eq('aa bb cc') - end - - it 'works for tsv' do - expect(api_client.build_collection_param(param, :tsv)).to eq("aa\tbb\tcc") - end - - it 'works for pipes' do - expect(api_client.build_collection_param(param, :pipes)).to eq('aa|bb|cc') - end - - it 'works for multi' do - expect(api_client.build_collection_param(param, :multi)).to eq(['aa', 'bb', 'cc']) - end - - it 'fails for invalid collection format' do - expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID') - end - end - - describe '#json_mime?' do - let(:api_client) { OryClient::ApiClient.new } - - it 'works' do - expect(api_client.json_mime?(nil)).to eq false - expect(api_client.json_mime?('')).to eq false - - expect(api_client.json_mime?('application/json')).to eq true - expect(api_client.json_mime?('application/json; charset=UTF8')).to eq true - expect(api_client.json_mime?('APPLICATION/JSON')).to eq true - - expect(api_client.json_mime?('application/xml')).to eq false - expect(api_client.json_mime?('text/plain')).to eq false - expect(api_client.json_mime?('application/jsonp')).to eq false - end - end - - describe '#select_header_accept' do - let(:api_client) { OryClient::ApiClient.new } - - it 'works' do - expect(api_client.select_header_accept(nil)).to be_nil - expect(api_client.select_header_accept([])).to be_nil - - expect(api_client.select_header_accept(['application/json'])).to eq('application/json') - expect(api_client.select_header_accept(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_accept(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - - expect(api_client.select_header_accept(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_accept(['text/html', 'application/xml'])).to eq('text/html,application/xml') - end - end - - describe '#select_header_content_type' do - let(:api_client) { OryClient::ApiClient.new } - - it 'works' do - expect(api_client.select_header_content_type(nil)).to be_nil - expect(api_client.select_header_content_type([])).to be_nil - - expect(api_client.select_header_content_type(['application/json'])).to eq('application/json') - expect(api_client.select_header_content_type(['application/xml', 'application/json; charset=UTF8'])).to eq('application/json; charset=UTF8') - expect(api_client.select_header_content_type(['APPLICATION/JSON', 'text/html'])).to eq('APPLICATION/JSON') - expect(api_client.select_header_content_type(['application/xml'])).to eq('application/xml') - expect(api_client.select_header_content_type(['text/plain', 'application/xml'])).to eq('text/plain') - end - end - - describe '#sanitize_filename' do - let(:api_client) { OryClient::ApiClient.new } - - it 'works' do - expect(api_client.sanitize_filename('sun')).to eq('sun') - expect(api_client.sanitize_filename('sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('../sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('/var/tmp/sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('./sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('..\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('c:\var\tmp\sun.gif')).to eq('sun.gif') - expect(api_client.sanitize_filename('.\sun.gif')).to eq('sun.gif') - end - end -end diff --git a/clients/client/ruby/spec/configuration_spec.rb b/clients/client/ruby/spec/configuration_spec.rb deleted file mode 100644 index 3aade3fba61..00000000000 --- a/clients/client/ruby/spec/configuration_spec.rb +++ /dev/null @@ -1,42 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'spec_helper' - -describe OryClient::Configuration do - let(:config) { OryClient::Configuration.default } - - before(:each) do - # uncomment below to setup host and base_path - # require 'URI' - # uri = URI.parse("https://playground.projects.oryapis.com") - # OryClient.configure do |c| - # c.host = uri.host - # c.base_path = uri.path - # end - end - - describe '#base_url' do - it 'should have the default value' do - # uncomment below to test default value of the base path - # expect(config.base_url).to eq("https://playground.projects.oryapis.com") - end - - it 'should remove trailing slashes' do - [nil, '', '/', '//'].each do |base_path| - config.base_path = base_path - # uncomment below to test trailing slashes - # expect(config.base_url).to eq("https://playground.projects.oryapis.com") - end - end - end -end diff --git a/clients/client/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb b/clients/client/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb index 53727f91273..738e3bbd589 100644 --- a/clients/client/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb +++ b/clients/client/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of AcceptOAuth2ConsentRequestSession' do it 'should create an instance of AcceptOAuth2ConsentRequestSession' do - expect(instance).to be_instance_of(OryClient::AcceptOAuth2ConsentRequestSession) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::AcceptOAuth2ConsentRequestSession) end end + describe 'test attribute "access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/accept_o_auth2_consent_request_spec.rb b/clients/client/ruby/spec/models/accept_o_auth2_consent_request_spec.rb index 06d4ac2e48c..014db287e9d 100644 --- a/clients/client/ruby/spec/models/accept_o_auth2_consent_request_spec.rb +++ b/clients/client/ruby/spec/models/accept_o_auth2_consent_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,50 @@ describe 'test an instance of AcceptOAuth2ConsentRequest' do it 'should create an instance of AcceptOAuth2ConsentRequest' do - expect(instance).to be_instance_of(OryClient::AcceptOAuth2ConsentRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::AcceptOAuth2ConsentRequest) end end + + describe 'test attribute "context"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "grant_access_token_audience"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "grant_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "handled_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "remember"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "remember_for"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/accept_o_auth2_login_request_spec.rb b/clients/client/ruby/spec/models/accept_o_auth2_login_request_spec.rb index fa8e828effa..9ce5ea2bb98 100644 --- a/clients/client/ruby/spec/models/accept_o_auth2_login_request_spec.rb +++ b/clients/client/ruby/spec/models/accept_o_auth2_login_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,60 +22,62 @@ describe 'test an instance of AcceptOAuth2LoginRequest' do it 'should create an instance of AcceptOAuth2LoginRequest' do - expect(instance).to be_instance_of(OryClient::AcceptOAuth2LoginRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::AcceptOAuth2LoginRequest) end end + describe 'test attribute "acr"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "amr"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "context"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "extend_session_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "force_subject_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity_provider_session_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "remember"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "remember_for"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/active_project_in_console_spec.rb b/clients/client/ruby/spec/models/active_project_in_console_spec.rb index 3b1b5a8d24f..61466397b30 100644 --- a/clients/client/ruby/spec/models/active_project_in_console_spec.rb +++ b/clients/client/ruby/spec/models/active_project_in_console_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ActiveProjectInConsole' do it 'should create an instance of ActiveProjectInConsole' do - expect(instance).to be_instance_of(OryClient::ActiveProjectInConsole) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ActiveProjectInConsole) end end + describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/attribute_filter_spec.rb b/clients/client/ruby/spec/models/attribute_filter_spec.rb index 551e7cabf90..a35da8adcff 100644 --- a/clients/client/ruby/spec/models/attribute_filter_spec.rb +++ b/clients/client/ruby/spec/models/attribute_filter_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of AttributeFilter' do it 'should create an instance of AttributeFilter' do - expect(instance).to be_instance_of(OryClient::AttributeFilter) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::AttributeFilter) end end + describe 'test attribute "attribute"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "condition"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["equals", "not_equals", "contains", "not_contains", "regex", "not_regex", "set", "not_set"]) # validator.allowable_values.each do |value| # expect { instance.condition = value }.not_to raise_error @@ -43,7 +45,7 @@ describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/attribute_spec.rb b/clients/client/ruby/spec/models/attribute_spec.rb index ebfbc56340b..63230e08523 100644 --- a/clients/client/ruby/spec/models/attribute_spec.rb +++ b/clients/client/ruby/spec/models/attribute_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of Attribute' do it 'should create an instance of Attribute' do - expect(instance).to be_instance_of(OryClient::Attribute) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Attribute) end end + describe 'test attribute "key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/attributes_count_datapoint_spec.rb b/clients/client/ruby/spec/models/attributes_count_datapoint_spec.rb index 6aed2193071..40895e249fe 100644 --- a/clients/client/ruby/spec/models/attributes_count_datapoint_spec.rb +++ b/clients/client/ruby/spec/models/attributes_count_datapoint_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of AttributesCountDatapoint' do it 'should create an instance of AttributesCountDatapoint' do - expect(instance).to be_instance_of(OryClient::AttributesCountDatapoint) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::AttributesCountDatapoint) end end + describe 'test attribute "count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/authenticator_assurance_level_spec.rb b/clients/client/ruby/spec/models/authenticator_assurance_level_spec.rb index 7f9af7369e3..7eb05d0f70b 100644 --- a/clients/client/ruby/spec/models/authenticator_assurance_level_spec.rb +++ b/clients/client/ruby/spec/models/authenticator_assurance_level_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of AuthenticatorAssuranceLevel' do it 'should create an instance of AuthenticatorAssuranceLevel' do - expect(instance).to be_instance_of(OryClient::AuthenticatorAssuranceLevel) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::AuthenticatorAssuranceLevel) end end + end diff --git a/clients/client/ruby/spec/models/batch_patch_identities_response_spec.rb b/clients/client/ruby/spec/models/batch_patch_identities_response_spec.rb index 1da31b36e84..7eb1a871b9e 100644 --- a/clients/client/ruby/spec/models/batch_patch_identities_response_spec.rb +++ b/clients/client/ruby/spec/models/batch_patch_identities_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of BatchPatchIdentitiesResponse' do it 'should create an instance of BatchPatchIdentitiesResponse' do - expect(instance).to be_instance_of(OryClient::BatchPatchIdentitiesResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::BatchPatchIdentitiesResponse) end end + describe 'test attribute "identities"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/check_opl_syntax_result_spec.rb b/clients/client/ruby/spec/models/check_opl_syntax_result_spec.rb index ddc4992d131..c83c664b76d 100644 --- a/clients/client/ruby/spec/models/check_opl_syntax_result_spec.rb +++ b/clients/client/ruby/spec/models/check_opl_syntax_result_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of CheckOplSyntaxResult' do it 'should create an instance of CheckOplSyntaxResult' do - expect(instance).to be_instance_of(OryClient::CheckOplSyntaxResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CheckOplSyntaxResult) end end + describe 'test attribute "errors"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/check_permission_result_spec.rb b/clients/client/ruby/spec/models/check_permission_result_spec.rb index 4e9c5fdd752..07d62eaac26 100644 --- a/clients/client/ruby/spec/models/check_permission_result_spec.rb +++ b/clients/client/ruby/spec/models/check_permission_result_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of CheckPermissionResult' do it 'should create an instance of CheckPermissionResult' do - expect(instance).to be_instance_of(OryClient::CheckPermissionResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CheckPermissionResult) end end + describe 'test attribute "allowed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/cloud_account_spec.rb b/clients/client/ruby/spec/models/cloud_account_spec.rb index d5511efb27d..a14804ce915 100644 --- a/clients/client/ruby/spec/models/cloud_account_spec.rb +++ b/clients/client/ruby/spec/models/cloud_account_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of CloudAccount' do it 'should create an instance of CloudAccount' do - expect(instance).to be_instance_of(OryClient::CloudAccount) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CloudAccount) end end + describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/consistency_request_parameters_spec.rb b/clients/client/ruby/spec/models/consistency_request_parameters_spec.rb index 6fcca8258c1..a091d91f956 100644 --- a/clients/client/ruby/spec/models/consistency_request_parameters_spec.rb +++ b/clients/client/ruby/spec/models/consistency_request_parameters_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ConsistencyRequestParameters' do it 'should create an instance of ConsistencyRequestParameters' do - expect(instance).to be_instance_of(OryClient::ConsistencyRequestParameters) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ConsistencyRequestParameters) end end + describe 'test attribute "consistency"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["", "strong", "eventual"]) # validator.allowable_values.each do |value| # expect { instance.consistency = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/continue_with_recovery_ui_flow_spec.rb b/clients/client/ruby/spec/models/continue_with_recovery_ui_flow_spec.rb index a2c756be7e8..3ff333b1c38 100644 --- a/clients/client/ruby/spec/models/continue_with_recovery_ui_flow_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_recovery_ui_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of ContinueWithRecoveryUiFlow' do it 'should create an instance of ContinueWithRecoveryUiFlow' do - expect(instance).to be_instance_of(OryClient::ContinueWithRecoveryUiFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithRecoveryUiFlow) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/continue_with_recovery_ui_spec.rb b/clients/client/ruby/spec/models/continue_with_recovery_ui_spec.rb index f3efc47135e..aef0ecd9148 100644 --- a/clients/client/ruby/spec/models/continue_with_recovery_ui_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_recovery_ui_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ContinueWithRecoveryUi' do it 'should create an instance of ContinueWithRecoveryUi' do - expect(instance).to be_instance_of(OryClient::ContinueWithRecoveryUi) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithRecoveryUi) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["show_recovery_ui"]) # validator.allowable_values.each do |value| # expect { instance.action = value }.not_to raise_error @@ -37,7 +39,7 @@ describe 'test attribute "flow"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/continue_with_set_ory_session_token_spec.rb b/clients/client/ruby/spec/models/continue_with_set_ory_session_token_spec.rb index 9bd80ee54c5..150a28402c8 100644 --- a/clients/client/ruby/spec/models/continue_with_set_ory_session_token_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_set_ory_session_token_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ContinueWithSetOrySessionToken' do it 'should create an instance of ContinueWithSetOrySessionToken' do - expect(instance).to be_instance_of(OryClient::ContinueWithSetOrySessionToken) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithSetOrySessionToken) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["set_ory_session_token"]) # validator.allowable_values.each do |value| # expect { instance.action = value }.not_to raise_error @@ -37,7 +39,7 @@ describe 'test attribute "ory_session_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/continue_with_settings_ui_flow_spec.rb b/clients/client/ruby/spec/models/continue_with_settings_ui_flow_spec.rb index 2034fa60d33..7dec49611c0 100644 --- a/clients/client/ruby/spec/models/continue_with_settings_ui_flow_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_settings_ui_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ContinueWithSettingsUiFlow' do it 'should create an instance of ContinueWithSettingsUiFlow' do - expect(instance).to be_instance_of(OryClient::ContinueWithSettingsUiFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithSettingsUiFlow) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/continue_with_settings_ui_spec.rb b/clients/client/ruby/spec/models/continue_with_settings_ui_spec.rb index 7e3873cd598..80548a5a350 100644 --- a/clients/client/ruby/spec/models/continue_with_settings_ui_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_settings_ui_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ContinueWithSettingsUi' do it 'should create an instance of ContinueWithSettingsUi' do - expect(instance).to be_instance_of(OryClient::ContinueWithSettingsUi) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithSettingsUi) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["show_settings_ui"]) # validator.allowable_values.each do |value| # expect { instance.action = value }.not_to raise_error @@ -37,7 +39,7 @@ describe 'test attribute "flow"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/continue_with_spec.rb b/clients/client/ruby/spec/models/continue_with_spec.rb index d2b06dc661f..4cf98542ce9 100644 --- a/clients/client/ruby/spec/models/continue_with_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/continue_with_verification_ui_flow_spec.rb b/clients/client/ruby/spec/models/continue_with_verification_ui_flow_spec.rb index d5fb0d8e12e..c3adf154854 100644 --- a/clients/client/ruby/spec/models/continue_with_verification_ui_flow_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_verification_ui_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ContinueWithVerificationUiFlow' do it 'should create an instance of ContinueWithVerificationUiFlow' do - expect(instance).to be_instance_of(OryClient::ContinueWithVerificationUiFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithVerificationUiFlow) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verifiable_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/continue_with_verification_ui_spec.rb b/clients/client/ruby/spec/models/continue_with_verification_ui_spec.rb index 5e4b321df15..963191afee2 100644 --- a/clients/client/ruby/spec/models/continue_with_verification_ui_spec.rb +++ b/clients/client/ruby/spec/models/continue_with_verification_ui_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ContinueWithVerificationUi' do it 'should create an instance of ContinueWithVerificationUi' do - expect(instance).to be_instance_of(OryClient::ContinueWithVerificationUi) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ContinueWithVerificationUi) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["show_verification_ui"]) # validator.allowable_values.each do |value| # expect { instance.action = value }.not_to raise_error @@ -37,7 +39,7 @@ describe 'test attribute "flow"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/courier_message_status_spec.rb b/clients/client/ruby/spec/models/courier_message_status_spec.rb index 07b301a4075..1cd21f8a84f 100644 --- a/clients/client/ruby/spec/models/courier_message_status_spec.rb +++ b/clients/client/ruby/spec/models/courier_message_status_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of CourierMessageStatus' do it 'should create an instance of CourierMessageStatus' do - expect(instance).to be_instance_of(OryClient::CourierMessageStatus) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CourierMessageStatus) end end + end diff --git a/clients/client/ruby/spec/models/courier_message_type_spec.rb b/clients/client/ruby/spec/models/courier_message_type_spec.rb index 04f75cbad87..3cc41cb4962 100644 --- a/clients/client/ruby/spec/models/courier_message_type_spec.rb +++ b/clients/client/ruby/spec/models/courier_message_type_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of CourierMessageType' do it 'should create an instance of CourierMessageType' do - expect(instance).to be_instance_of(OryClient::CourierMessageType) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CourierMessageType) end end + end diff --git a/clients/client/ruby/spec/models/create_custom_domain_body_spec.rb b/clients/client/ruby/spec/models/create_custom_domain_body_spec.rb index e06edc007fa..1ff201677c5 100644 --- a/clients/client/ruby/spec/models/create_custom_domain_body_spec.rb +++ b/clients/client/ruby/spec/models/create_custom_domain_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of CreateCustomDomainBody' do it 'should create an instance of CreateCustomDomainBody' do - expect(instance).to be_instance_of(OryClient::CreateCustomDomainBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateCustomDomainBody) end end + describe 'test attribute "cookie_domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "custom_ui_base_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hostname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_event_stream_body_spec.rb b/clients/client/ruby/spec/models/create_event_stream_body_spec.rb index 0d046de4e14..e32168d1d5e 100644 --- a/clients/client/ruby/spec/models/create_event_stream_body_spec.rb +++ b/clients/client/ruby/spec/models/create_event_stream_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of CreateEventStreamBody' do it 'should create an instance of CreateEventStreamBody' do - expect(instance).to be_instance_of(OryClient::CreateEventStreamBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateEventStreamBody) end end + describe 'test attribute "role_arn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "topic_arn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["sns"]) # validator.allowable_values.each do |value| # expect { instance.type = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/create_identity_body_spec.rb b/clients/client/ruby/spec/models/create_identity_body_spec.rb index a907dc237ec..8bfc4263970 100644 --- a/clients/client/ruby/spec/models/create_identity_body_spec.rb +++ b/clients/client/ruby/spec/models/create_identity_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,60 @@ describe 'test an instance of CreateIdentityBody' do it 'should create an instance of CreateIdentityBody' do - expect(instance).to be_instance_of(OryClient::CreateIdentityBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateIdentityBody) end end + describe 'test attribute "credentials"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata_admin"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata_public"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "recovery_addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "schema_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "inactive"]) + # validator.allowable_values.each do |value| + # expect { instance.state = value }.not_to raise_error + # end end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verifiable_addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_invite_response_spec.rb b/clients/client/ruby/spec/models/create_invite_response_spec.rb index 14a6ba8d722..52d652728b8 100644 --- a/clients/client/ruby/spec/models/create_invite_response_spec.rb +++ b/clients/client/ruby/spec/models/create_invite_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of CreateInviteResponse' do it 'should create an instance of CreateInviteResponse' do - expect(instance).to be_instance_of(OryClient::CreateInviteResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateInviteResponse) end end + describe 'test attribute "all_invites"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_invite"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_json_web_key_set_spec.rb b/clients/client/ruby/spec/models/create_json_web_key_set_spec.rb index 7d66673b030..6063e8bf7ba 100644 --- a/clients/client/ruby/spec/models/create_json_web_key_set_spec.rb +++ b/clients/client/ruby/spec/models/create_json_web_key_set_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of CreateJsonWebKeySet' do it 'should create an instance of CreateJsonWebKeySet' do - expect(instance).to be_instance_of(OryClient::CreateJsonWebKeySet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateJsonWebKeySet) end end + describe 'test attribute "alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_project_api_key_request_spec.rb b/clients/client/ruby/spec/models/create_project_api_key_request_spec.rb index cc280ae5c43..f228a2ccef8 100644 --- a/clients/client/ruby/spec/models/create_project_api_key_request_spec.rb +++ b/clients/client/ruby/spec/models/create_project_api_key_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of CreateProjectApiKeyRequest' do it 'should create an instance of CreateProjectApiKeyRequest' do - expect(instance).to be_instance_of(OryClient::CreateProjectApiKeyRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateProjectApiKeyRequest) end end + describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_project_body_spec.rb b/clients/client/ruby/spec/models/create_project_body_spec.rb index 8ef23665c3f..75bae2b882e 100644 --- a/clients/client/ruby/spec/models/create_project_body_spec.rb +++ b/clients/client/ruby/spec/models/create_project_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,30 @@ describe 'test an instance of CreateProjectBody' do it 'should create an instance of CreateProjectBody' do - expect(instance).to be_instance_of(OryClient::CreateProjectBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateProjectBody) end end + + describe 'test attribute "environment"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prod", "dev"]) + # validator.allowable_values.each do |value| + # expect { instance.environment = value }.not_to raise_error + # end + end + end + describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "workspace_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_project_branding_spec.rb b/clients/client/ruby/spec/models/create_project_branding_spec.rb index 3f539c9503f..9c082c2965a 100644 --- a/clients/client/ruby/spec/models/create_project_branding_spec.rb +++ b/clients/client/ruby/spec/models/create_project_branding_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of CreateProjectBranding' do it 'should create an instance of CreateProjectBranding' do - expect(instance).to be_instance_of(OryClient::CreateProjectBranding) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateProjectBranding) end end + describe 'test attribute "favicon_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "favicon_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "theme"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_project_member_invite_body_spec.rb b/clients/client/ruby/spec/models/create_project_member_invite_body_spec.rb index 3ea8b40f3a2..40de890710f 100644 --- a/clients/client/ruby/spec/models/create_project_member_invite_body_spec.rb +++ b/clients/client/ruby/spec/models/create_project_member_invite_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of CreateProjectMemberInviteBody' do it 'should create an instance of CreateProjectMemberInviteBody' do - expect(instance).to be_instance_of(OryClient::CreateProjectMemberInviteBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateProjectMemberInviteBody) end end + describe 'test attribute "invitee_email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_project_normalized_payload_spec.rb b/clients/client/ruby/spec/models/create_project_normalized_payload_spec.rb index ebb2977dca4..2688f59fc7d 100644 --- a/clients/client/ruby/spec/models/create_project_normalized_payload_spec.rb +++ b/clients/client/ruby/spec/models/create_project_normalized_payload_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,132 +22,156 @@ describe 'test an instance of CreateProjectNormalizedPayload' do it 'should create an instance of CreateProjectNormalizedPayload' do - expect(instance).to be_instance_of(OryClient::CreateProjectNormalizedPayload) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateProjectNormalizedPayload) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "disable_account_experience_welcome_screen"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_ax_v2"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "environment"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prod", "dev"]) + # validator.allowable_values.each do |value| + # expect { instance.environment = value }.not_to raise_error + # end end end describe 'test attribute "hydra_oauth2_allowed_top_level_claims"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_client_credentials_default_grant_allowed_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_exclude_not_before_claim"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_grant_jwt_iat_optional"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_grant_jwt_jti_optional"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_grant_jwt_max_ttl"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hydra_oauth2_mirror_top_level_claims"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_pkce_enforced"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_pkce_enforced_for_public_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_refresh_token_hook"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_token_hook"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_dynamic_client_registration_default_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_dynamic_client_registration_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_subject_identifiers_pairwise_salt"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_subject_identifiers_supported_types"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_secrets_cookie"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_secrets_system"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_serve_cookies_same_site_legacy_workaround"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_serve_cookies_same_site_mode"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_strategies_access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["opaque", "jwt"]) # validator.allowable_values.each do |value| # expect { instance.hydra_strategies_access_token = value }.not_to raise_error @@ -157,7 +181,7 @@ describe 'test attribute "hydra_strategies_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "wildcard"]) # validator.allowable_values.each do |value| # expect { instance.hydra_strategies_scope = value }.not_to raise_error @@ -167,607 +191,613 @@ describe 'test attribute "hydra_ttl_access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_auth_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_login_consent_request"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_refresh_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_consent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_logout"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_post_logout_redirect"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_registration"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_self_issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_jwks_broadcast_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_auth_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_client_registration_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_jwks_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_supported_claims"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_supported_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_token_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_userinfo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "keto_namespace_configuration"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "keto_namespaces"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_cookies_same_site"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_channels"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_delivery_strategy"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_api_key_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_api_key_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_api_key_value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_basic_auth_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_basic_auth_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_body"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_connection_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_from_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_from_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_local_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_login_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_login_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_login_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "kratos_courier_templates_login_code_valid_sms_body_plaintext"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_registration_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_registration_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_registration_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_sms_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_feature_flags_cacheable_sessions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_feature_flags_use_continue_with_transitions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_identity_schemas"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_oauth2_provider_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_oauth2_provider_override_return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_oauth2_provider_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_preview_default_read_consistency_level"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_secrets_cipher"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_secrets_cookie"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_secrets_default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_allowed_return_urls"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_error_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_code_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_oidc_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_password_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_totp_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_webauthn_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_logout_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_notify_unknown_recipients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.kratos_selfservice_flows_recovery_use = value }.not_to raise_error @@ -777,157 +807,157 @@ describe 'test attribute "kratos_selfservice_flows_registration_after_code_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_oidc_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_password_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_login_hints"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_oidc_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_password_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_profile_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_totp_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_privileged_session_max_age"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_required_aal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_notify_unknown_recipients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.kratos_selfservice_flows_verification_use = value }.not_to raise_error @@ -937,241 +967,247 @@ describe 'test attribute "kratos_selfservice_methods_code_config_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_code_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "kratos_selfservice_methods_code_mfa_enabled"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_code_passwordless_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_link_config_base_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_link_config_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_link_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_lookup_secret_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_oidc_config_base_redirect_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_oidc_config_providers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_oidc_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_haveibeenpwned_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_identifier_similarity_check_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_ignore_network_errors"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_max_breaches"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_min_password_length"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_profile_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_totp_config_issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_passwordless"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_icon"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_cookie_persistent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_cookie_same_site"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_whoami_required_aal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_whoami_tokenizer_templates"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_revision_hooks"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_admin_cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_admin_cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_public_cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_public_cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "strict_security"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "workspace_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_recovery_code_for_identity_body_spec.rb b/clients/client/ruby/spec/models/create_recovery_code_for_identity_body_spec.rb index 0698b328904..5af806b99c2 100644 --- a/clients/client/ruby/spec/models/create_recovery_code_for_identity_body_spec.rb +++ b/clients/client/ruby/spec/models/create_recovery_code_for_identity_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of CreateRecoveryCodeForIdentityBody' do it 'should create an instance of CreateRecoveryCodeForIdentityBody' do - expect(instance).to be_instance_of(OryClient::CreateRecoveryCodeForIdentityBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateRecoveryCodeForIdentityBody) end end + describe 'test attribute "expires_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_recovery_link_for_identity_body_spec.rb b/clients/client/ruby/spec/models/create_recovery_link_for_identity_body_spec.rb index bc51c4a06fe..4d8d32f6f87 100644 --- a/clients/client/ruby/spec/models/create_recovery_link_for_identity_body_spec.rb +++ b/clients/client/ruby/spec/models/create_recovery_link_for_identity_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of CreateRecoveryLinkForIdentityBody' do it 'should create an instance of CreateRecoveryLinkForIdentityBody' do - expect(instance).to be_instance_of(OryClient::CreateRecoveryLinkForIdentityBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateRecoveryLinkForIdentityBody) end end + describe 'test attribute "expires_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_relationship_body_spec.rb b/clients/client/ruby/spec/models/create_relationship_body_spec.rb index e5baef835bc..737f240e8fa 100644 --- a/clients/client/ruby/spec/models/create_relationship_body_spec.rb +++ b/clients/client/ruby/spec/models/create_relationship_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of CreateRelationshipBody' do it 'should create an instance of CreateRelationshipBody' do - expect(instance).to be_instance_of(OryClient::CreateRelationshipBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateRelationshipBody) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "object"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_set"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_subscription_body_spec.rb b/clients/client/ruby/spec/models/create_subscription_body_spec.rb index 4da8b756f25..11bddf7f7dc 100644 --- a/clients/client/ruby/spec/models/create_subscription_body_spec.rb +++ b/clients/client/ruby/spec/models/create_subscription_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of CreateSubscriptionBody' do it 'should create an instance of CreateSubscriptionBody' do - expect(instance).to be_instance_of(OryClient::CreateSubscriptionBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateSubscriptionBody) end end + describe 'test attribute "currency"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["usd", "eur"]) # validator.allowable_values.each do |value| # expect { instance.currency = value }.not_to raise_error @@ -37,7 +39,7 @@ describe 'test attribute "interval"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["monthly", "yearly"]) # validator.allowable_values.each do |value| # expect { instance.interval = value }.not_to raise_error @@ -47,25 +49,19 @@ describe 'test attribute "plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provision_first_project"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "workspace"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/internal_provision_mock_subscription_spec.rb b/clients/client/ruby/spec/models/create_subscription_common_spec.rb similarity index 55% rename from clients/client/ruby/spec/models/internal_provision_mock_subscription_spec.rb rename to clients/client/ruby/spec/models/create_subscription_common_spec.rb index 26aa91a6bce..646051e9d22 100644 --- a/clients/client/ruby/spec/models/internal_provision_mock_subscription_spec.rb +++ b/clients/client/ruby/spec/models/create_subscription_common_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -14,20 +14,22 @@ require 'json' require 'date' -# Unit tests for OryClient::InternalProvisionMockSubscription +# Unit tests for OryClient::CreateSubscriptionCommon # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe OryClient::InternalProvisionMockSubscription do - let(:instance) { OryClient::InternalProvisionMockSubscription.new } +describe OryClient::CreateSubscriptionCommon do + let(:instance) { OryClient::CreateSubscriptionCommon.new } - describe 'test an instance of InternalProvisionMockSubscription' do - it 'should create an instance of InternalProvisionMockSubscription' do - expect(instance).to be_instance_of(OryClient::InternalProvisionMockSubscription) + describe 'test an instance of CreateSubscriptionCommon' do + it 'should create an instance of CreateSubscriptionCommon' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateSubscriptionCommon) end end + describe 'test attribute "currency"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["usd", "eur"]) # validator.allowable_values.each do |value| # expect { instance.currency = value }.not_to raise_error @@ -35,15 +37,9 @@ end end - describe 'test attribute "identity_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - describe 'test attribute "interval"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["monthly", "yearly"]) # validator.allowable_values.each do |value| # expect { instance.interval = value }.not_to raise_error @@ -53,7 +49,13 @@ describe 'test attribute "plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "return_to"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_verifiable_credential_request_body_spec.rb b/clients/client/ruby/spec/models/create_verifiable_credential_request_body_spec.rb index f355007edaa..99213bddbb7 100644 --- a/clients/client/ruby/spec/models/create_verifiable_credential_request_body_spec.rb +++ b/clients/client/ruby/spec/models/create_verifiable_credential_request_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of CreateVerifiableCredentialRequestBody' do it 'should create an instance of CreateVerifiableCredentialRequestBody' do - expect(instance).to be_instance_of(OryClient::CreateVerifiableCredentialRequestBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateVerifiableCredentialRequestBody) end end + describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "proof"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "types"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_workspace_member_invite_body_spec.rb b/clients/client/ruby/spec/models/create_workspace_member_invite_body_spec.rb index 653e982663d..30e212c20b9 100644 --- a/clients/client/ruby/spec/models/create_workspace_member_invite_body_spec.rb +++ b/clients/client/ruby/spec/models/create_workspace_member_invite_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of CreateWorkspaceMemberInviteBody' do it 'should create an instance of CreateWorkspaceMemberInviteBody' do - expect(instance).to be_instance_of(OryClient::CreateWorkspaceMemberInviteBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateWorkspaceMemberInviteBody) end end + describe 'test attribute "invitee_email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/create_workspace_payload_spec.rb b/clients/client/ruby/spec/models/create_workspace_payload_spec.rb new file mode 100644 index 00000000000..39ac78ccf1a --- /dev/null +++ b/clients/client/ruby/spec/models/create_workspace_payload_spec.rb @@ -0,0 +1,36 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::CreateWorkspacePayload +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::CreateWorkspacePayload do + let(:instance) { OryClient::CreateWorkspacePayload.new } + + describe 'test an instance of CreateWorkspacePayload' do + it 'should create an instance of CreateWorkspacePayload' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateWorkspacePayload) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/create_workspace_subscription_body_spec.rb b/clients/client/ruby/spec/models/create_workspace_subscription_body_spec.rb new file mode 100644 index 00000000000..8d871f1b034 --- /dev/null +++ b/clients/client/ruby/spec/models/create_workspace_subscription_body_spec.rb @@ -0,0 +1,62 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::CreateWorkspaceSubscriptionBody +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::CreateWorkspaceSubscriptionBody do + let(:instance) { OryClient::CreateWorkspaceSubscriptionBody.new } + + describe 'test an instance of CreateWorkspaceSubscriptionBody' do + it 'should create an instance of CreateWorkspaceSubscriptionBody' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CreateWorkspaceSubscriptionBody) + end + end + + describe 'test attribute "currency"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["usd", "eur"]) + # validator.allowable_values.each do |value| + # expect { instance.currency = value }.not_to raise_error + # end + end + end + + describe 'test attribute "interval"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["monthly", "yearly"]) + # validator.allowable_values.each do |value| + # expect { instance.interval = value }.not_to raise_error + # end + end + end + + describe 'test attribute "plan"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "return_to"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/credential_supported_draft00_spec.rb b/clients/client/ruby/spec/models/credential_supported_draft00_spec.rb index c00001ce27b..565d0c06391 100644 --- a/clients/client/ruby/spec/models/credential_supported_draft00_spec.rb +++ b/clients/client/ruby/spec/models/credential_supported_draft00_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of CredentialSupportedDraft00' do it 'should create an instance of CredentialSupportedDraft00' do - expect(instance).to be_instance_of(OryClient::CredentialSupportedDraft00) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CredentialSupportedDraft00) end end + describe 'test attribute "cryptographic_binding_methods_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cryptographic_suites_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "types"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/custom_domain_spec.rb b/clients/client/ruby/spec/models/custom_domain_spec.rb index afa09f5dc07..0cc2a6833a9 100644 --- a/clients/client/ruby/spec/models/custom_domain_spec.rb +++ b/clients/client/ruby/spec/models/custom_domain_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of CustomDomain' do it 'should create an instance of CustomDomain' do - expect(instance).to be_instance_of(OryClient::CustomDomain) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::CustomDomain) end end + describe 'test attribute "cookie_domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "custom_ui_base_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hostname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ssl_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["initializing", "pending_validation", "deleted", "pending_issuance", "pending_deployment", "pending_deletion", "pending_expiration", "expired", "active", "initializing_timed_out", "validation_timed_out", "issuance_timed_out", "deployment_timed_out", "deletion_timed_out", "pending_cleanup", "staging_deployment", "staging_active", "deactivating", "inactive", "backup_issued", "holding_deployment", ""]) # validator.allowable_values.each do |value| # expect { instance.ssl_status = value }.not_to raise_error @@ -79,19 +81,19 @@ describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verification_errors"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verification_status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/delete_my_sessions_count_spec.rb b/clients/client/ruby/spec/models/delete_my_sessions_count_spec.rb index 2b4d192aa1c..c0e9f3deab7 100644 --- a/clients/client/ruby/spec/models/delete_my_sessions_count_spec.rb +++ b/clients/client/ruby/spec/models/delete_my_sessions_count_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of DeleteMySessionsCount' do it 'should create an instance of DeleteMySessionsCount' do - expect(instance).to be_instance_of(OryClient::DeleteMySessionsCount) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::DeleteMySessionsCount) end end + describe 'test attribute "count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/email_template_data_body_spec.rb b/clients/client/ruby/spec/models/email_template_data_body_spec.rb index ff0c79d5257..ef7e1b78f52 100644 --- a/clients/client/ruby/spec/models/email_template_data_body_spec.rb +++ b/clients/client/ruby/spec/models/email_template_data_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of EmailTemplateDataBody' do it 'should create an instance of EmailTemplateDataBody' do - expect(instance).to be_instance_of(OryClient::EmailTemplateDataBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::EmailTemplateDataBody) end end + describe 'test attribute "html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/email_template_data_spec.rb b/clients/client/ruby/spec/models/email_template_data_spec.rb index 3564b29d25a..9efc49a3d7b 100644 --- a/clients/client/ruby/spec/models/email_template_data_spec.rb +++ b/clients/client/ruby/spec/models/email_template_data_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of EmailTemplateData' do it 'should create an instance of EmailTemplateData' do - expect(instance).to be_instance_of(OryClient::EmailTemplateData) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::EmailTemplateData) end end + describe 'test attribute "body"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb b/clients/client/ruby/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb index caac2981314..c0fb2a4a04b 100644 --- a/clients/client/ruby/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb +++ b/clients/client/ruby/spec/models/error_authenticator_assurance_level_not_satisfied_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of ErrorAuthenticatorAssuranceLevelNotSatisfied' do it 'should create an instance of ErrorAuthenticatorAssuranceLevelNotSatisfied' do - expect(instance).to be_instance_of(OryClient::ErrorAuthenticatorAssuranceLevelNotSatisfied) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ErrorAuthenticatorAssuranceLevelNotSatisfied) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "redirect_browser_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/error_browser_location_change_required_spec.rb b/clients/client/ruby/spec/models/error_browser_location_change_required_spec.rb index 313fa090611..ace0d265711 100644 --- a/clients/client/ruby/spec/models/error_browser_location_change_required_spec.rb +++ b/clients/client/ruby/spec/models/error_browser_location_change_required_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of ErrorBrowserLocationChangeRequired' do it 'should create an instance of ErrorBrowserLocationChangeRequired' do - expect(instance).to be_instance_of(OryClient::ErrorBrowserLocationChangeRequired) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ErrorBrowserLocationChangeRequired) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "redirect_browser_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/error_flow_replaced_spec.rb b/clients/client/ruby/spec/models/error_flow_replaced_spec.rb index b7c681591cb..cdb762329e0 100644 --- a/clients/client/ruby/spec/models/error_flow_replaced_spec.rb +++ b/clients/client/ruby/spec/models/error_flow_replaced_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of ErrorFlowReplaced' do it 'should create an instance of ErrorFlowReplaced' do - expect(instance).to be_instance_of(OryClient::ErrorFlowReplaced) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ErrorFlowReplaced) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "use_flow_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/error_generic_spec.rb b/clients/client/ruby/spec/models/error_generic_spec.rb index c904f382940..92aeae2635d 100644 --- a/clients/client/ruby/spec/models/error_generic_spec.rb +++ b/clients/client/ruby/spec/models/error_generic_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ErrorGeneric' do it 'should create an instance of ErrorGeneric' do - expect(instance).to be_instance_of(OryClient::ErrorGeneric) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ErrorGeneric) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/error_o_auth2_spec.rb b/clients/client/ruby/spec/models/error_o_auth2_spec.rb index 2e8a01dd6b1..98674937005 100644 --- a/clients/client/ruby/spec/models/error_o_auth2_spec.rb +++ b/clients/client/ruby/spec/models/error_o_auth2_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of ErrorOAuth2' do it 'should create an instance of ErrorOAuth2' do - expect(instance).to be_instance_of(OryClient::ErrorOAuth2) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ErrorOAuth2) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_debug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_hint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/event_stream_spec.rb b/clients/client/ruby/spec/models/event_stream_spec.rb index 336360cb270..0a6fea756e5 100644 --- a/clients/client/ruby/spec/models/event_stream_spec.rb +++ b/clients/client/ruby/spec/models/event_stream_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of EventStream' do it 'should create an instance of EventStream' do - expect(instance).to be_instance_of(OryClient::EventStream) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::EventStream) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "role_arn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "topic_arn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/expanded_permission_tree_spec.rb b/clients/client/ruby/spec/models/expanded_permission_tree_spec.rb index 4ee8f2981f8..7ff9032982e 100644 --- a/clients/client/ruby/spec/models/expanded_permission_tree_spec.rb +++ b/clients/client/ruby/spec/models/expanded_permission_tree_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ExpandedPermissionTree' do it 'should create an instance of ExpandedPermissionTree' do - expect(instance).to be_instance_of(OryClient::ExpandedPermissionTree) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ExpandedPermissionTree) end end + describe 'test attribute "children"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "tuple"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["union", "exclusion", "intersection", "leaf", "tuple_to_subject_set", "computed_subject_set", "not", "unspecified"]) # validator.allowable_values.each do |value| # expect { instance.type = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/flow_error_spec.rb b/clients/client/ruby/spec/models/flow_error_spec.rb index be717a6b889..3eab64b9569 100644 --- a/clients/client/ruby/spec/models/flow_error_spec.rb +++ b/clients/client/ruby/spec/models/flow_error_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of FlowError' do it 'should create an instance of FlowError' do - expect(instance).to be_instance_of(OryClient::FlowError) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::FlowError) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/generic_error_content_spec.rb b/clients/client/ruby/spec/models/generic_error_content_spec.rb index 33149465213..02b21b5f2fb 100644 --- a/clients/client/ruby/spec/models/generic_error_content_spec.rb +++ b/clients/client/ruby/spec/models/generic_error_content_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of GenericErrorContent' do it 'should create an instance of GenericErrorContent' do - expect(instance).to be_instance_of(OryClient::GenericErrorContent) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GenericErrorContent) end end + describe 'test attribute "debug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/generic_error_spec.rb b/clients/client/ruby/spec/models/generic_error_spec.rb index 6c4570f9dd0..de2668660f2 100644 --- a/clients/client/ruby/spec/models/generic_error_spec.rb +++ b/clients/client/ruby/spec/models/generic_error_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,60 +22,62 @@ describe 'test an instance of GenericError' do it 'should create an instance of GenericError' do - expect(instance).to be_instance_of(OryClient::GenericError) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GenericError) end end + describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "debug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "details"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "reason"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/generic_usage_spec.rb b/clients/client/ruby/spec/models/generic_usage_spec.rb index 000a52c08ea..3f5699ffbce 100644 --- a/clients/client/ruby/spec/models/generic_usage_spec.rb +++ b/clients/client/ruby/spec/models/generic_usage_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of GenericUsage' do it 'should create an instance of GenericUsage' do - expect(instance).to be_instance_of(OryClient::GenericUsage) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GenericUsage) end end + describe 'test attribute "additional_price"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "included_usage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_attributes_count_response_spec.rb b/clients/client/ruby/spec/models/get_attributes_count_response_spec.rb index 2868f911939..8d1c42a295b 100644 --- a/clients/client/ruby/spec/models/get_attributes_count_response_spec.rb +++ b/clients/client/ruby/spec/models/get_attributes_count_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetAttributesCountResponse' do it 'should create an instance of GetAttributesCountResponse' do - expect(instance).to be_instance_of(OryClient::GetAttributesCountResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetAttributesCountResponse) end end + describe 'test attribute "data"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_managed_identity_schema_location_spec.rb b/clients/client/ruby/spec/models/get_managed_identity_schema_location_spec.rb index 52f5afe1c82..7805abd2592 100644 --- a/clients/client/ruby/spec/models/get_managed_identity_schema_location_spec.rb +++ b/clients/client/ruby/spec/models/get_managed_identity_schema_location_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetManagedIdentitySchemaLocation' do it 'should create an instance of GetManagedIdentitySchemaLocation' do - expect(instance).to be_instance_of(OryClient::GetManagedIdentitySchemaLocation) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetManagedIdentitySchemaLocation) end end + describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_metrics_event_attributes_response_spec.rb b/clients/client/ruby/spec/models/get_metrics_event_attributes_response_spec.rb index cf18a1be210..27462e08999 100644 --- a/clients/client/ruby/spec/models/get_metrics_event_attributes_response_spec.rb +++ b/clients/client/ruby/spec/models/get_metrics_event_attributes_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetMetricsEventAttributesResponse' do it 'should create an instance of GetMetricsEventAttributesResponse' do - expect(instance).to be_instance_of(OryClient::GetMetricsEventAttributesResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetMetricsEventAttributesResponse) end end + describe 'test attribute "events"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_metrics_event_types_response_spec.rb b/clients/client/ruby/spec/models/get_metrics_event_types_response_spec.rb index 2c23b84a0c2..aaef4680098 100644 --- a/clients/client/ruby/spec/models/get_metrics_event_types_response_spec.rb +++ b/clients/client/ruby/spec/models/get_metrics_event_types_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetMetricsEventTypesResponse' do it 'should create an instance of GetMetricsEventTypesResponse' do - expect(instance).to be_instance_of(OryClient::GetMetricsEventTypesResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetMetricsEventTypesResponse) end end + describe 'test attribute "events"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_organization_response_spec.rb b/clients/client/ruby/spec/models/get_organization_response_spec.rb index f30b79a549b..d706a0850fd 100644 --- a/clients/client/ruby/spec/models/get_organization_response_spec.rb +++ b/clients/client/ruby/spec/models/get_organization_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetOrganizationResponse' do it 'should create an instance of GetOrganizationResponse' do - expect(instance).to be_instance_of(OryClient::GetOrganizationResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetOrganizationResponse) end end + describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_project_events_body_spec.rb b/clients/client/ruby/spec/models/get_project_events_body_spec.rb index eced6a63ee2..edfefaf7191 100644 --- a/clients/client/ruby/spec/models/get_project_events_body_spec.rb +++ b/clients/client/ruby/spec/models/get_project_events_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of GetProjectEventsBody' do it 'should create an instance of GetProjectEventsBody' do - expect(instance).to be_instance_of(OryClient::GetProjectEventsBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetProjectEventsBody) end end + describe 'test attribute "event_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "filters"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "page_size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_project_events_response_spec.rb b/clients/client/ruby/spec/models/get_project_events_response_spec.rb index c0794a4c874..a50f1caf160 100644 --- a/clients/client/ruby/spec/models/get_project_events_response_spec.rb +++ b/clients/client/ruby/spec/models/get_project_events_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of GetProjectEventsResponse' do it 'should create an instance of GetProjectEventsResponse' do - expect(instance).to be_instance_of(OryClient::GetProjectEventsResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetProjectEventsResponse) end end + describe 'test attribute "events"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_project_metrics_response_spec.rb b/clients/client/ruby/spec/models/get_project_metrics_response_spec.rb index 5f3359ce551..77143279f06 100644 --- a/clients/client/ruby/spec/models/get_project_metrics_response_spec.rb +++ b/clients/client/ruby/spec/models/get_project_metrics_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetProjectMetricsResponse' do it 'should create an instance of GetProjectMetricsResponse' do - expect(instance).to be_instance_of(OryClient::GetProjectMetricsResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetProjectMetricsResponse) end end + describe 'test attribute "data"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_session_activity_response_spec.rb b/clients/client/ruby/spec/models/get_session_activity_response_spec.rb index a7b9fb2fe13..8f03089dd90 100644 --- a/clients/client/ruby/spec/models/get_session_activity_response_spec.rb +++ b/clients/client/ruby/spec/models/get_session_activity_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetSessionActivityResponse' do it 'should create an instance of GetSessionActivityResponse' do - expect(instance).to be_instance_of(OryClient::GetSessionActivityResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetSessionActivityResponse) end end + describe 'test attribute "data"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/get_version200_response_spec.rb b/clients/client/ruby/spec/models/get_version200_response_spec.rb index a25d577a050..eeed45917db 100644 --- a/clients/client/ruby/spec/models/get_version200_response_spec.rb +++ b/clients/client/ruby/spec/models/get_version200_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of GetVersion200Response' do it 'should create an instance of GetVersion200Response' do - expect(instance).to be_instance_of(OryClient::GetVersion200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::GetVersion200Response) end end + describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/health_not_ready_status_spec.rb b/clients/client/ruby/spec/models/health_not_ready_status_spec.rb index 065a7e272d9..3de549bd56b 100644 --- a/clients/client/ruby/spec/models/health_not_ready_status_spec.rb +++ b/clients/client/ruby/spec/models/health_not_ready_status_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of HealthNotReadyStatus' do it 'should create an instance of HealthNotReadyStatus' do - expect(instance).to be_instance_of(OryClient::HealthNotReadyStatus) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::HealthNotReadyStatus) end end + describe 'test attribute "errors"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/health_status_spec.rb b/clients/client/ruby/spec/models/health_status_spec.rb index feec178f430..b300afed025 100644 --- a/clients/client/ruby/spec/models/health_status_spec.rb +++ b/clients/client/ruby/spec/models/health_status_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of HealthStatus' do it 'should create an instance of HealthStatus' do - expect(instance).to be_instance_of(OryClient::HealthStatus) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::HealthStatus) end end + describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_credentials_code_spec.rb b/clients/client/ruby/spec/models/identity_credentials_code_spec.rb index 4e1cdd60115..c4f73d40156 100644 --- a/clients/client/ruby/spec/models/identity_credentials_code_spec.rb +++ b/clients/client/ruby/spec/models/identity_credentials_code_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentityCredentialsCode' do it 'should create an instance of IdentityCredentialsCode' do - expect(instance).to be_instance_of(OryClient::IdentityCredentialsCode) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityCredentialsCode) end end + describe 'test attribute "address_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "used_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_credentials_oidc_provider_spec.rb b/clients/client/ruby/spec/models/identity_credentials_oidc_provider_spec.rb index 3693bcfc955..593173f6868 100644 --- a/clients/client/ruby/spec/models/identity_credentials_oidc_provider_spec.rb +++ b/clients/client/ruby/spec/models/identity_credentials_oidc_provider_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of IdentityCredentialsOidcProvider' do it 'should create an instance of IdentityCredentialsOidcProvider' do - expect(instance).to be_instance_of(OryClient::IdentityCredentialsOidcProvider) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityCredentialsOidcProvider) end end + describe 'test attribute "initial_access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "initial_id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "initial_refresh_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_credentials_oidc_spec.rb b/clients/client/ruby/spec/models/identity_credentials_oidc_spec.rb index e5c0dae5522..83bfb4dddfc 100644 --- a/clients/client/ruby/spec/models/identity_credentials_oidc_spec.rb +++ b/clients/client/ruby/spec/models/identity_credentials_oidc_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IdentityCredentialsOidc' do it 'should create an instance of IdentityCredentialsOidc' do - expect(instance).to be_instance_of(OryClient::IdentityCredentialsOidc) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityCredentialsOidc) end end + describe 'test attribute "providers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_credentials_password_spec.rb b/clients/client/ruby/spec/models/identity_credentials_password_spec.rb index 1a10074c934..39b20c91665 100644 --- a/clients/client/ruby/spec/models/identity_credentials_password_spec.rb +++ b/clients/client/ruby/spec/models/identity_credentials_password_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IdentityCredentialsPassword' do it 'should create an instance of IdentityCredentialsPassword' do - expect(instance).to be_instance_of(OryClient::IdentityCredentialsPassword) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityCredentialsPassword) end end + describe 'test attribute "hashed_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_credentials_spec.rb b/clients/client/ruby/spec/models/identity_credentials_spec.rb index fd28c63267d..216c9868e04 100644 --- a/clients/client/ruby/spec/models/identity_credentials_spec.rb +++ b/clients/client/ruby/spec/models/identity_credentials_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,48 @@ describe 'test an instance of IdentityCredentials' do it 'should create an instance of IdentityCredentials' do - expect(instance).to be_instance_of(OryClient::IdentityCredentials) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityCredentials) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identifiers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + # validator.allowable_values.each do |value| + # expect { instance.type = value }.not_to raise_error + # end end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_credentials_type_spec.rb b/clients/client/ruby/spec/models/identity_credentials_type_spec.rb deleted file mode 100644 index cdae7a1d29c..00000000000 --- a/clients/client/ruby/spec/models/identity_credentials_type_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OryClient::IdentityCredentialsType -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OryClient::IdentityCredentialsType do - let(:instance) { OryClient::IdentityCredentialsType.new } - - describe 'test an instance of IdentityCredentialsType' do - it 'should create an instance of IdentityCredentialsType' do - expect(instance).to be_instance_of(OryClient::IdentityCredentialsType) - end - end -end diff --git a/clients/client/ruby/spec/models/identity_patch_response_spec.rb b/clients/client/ruby/spec/models/identity_patch_response_spec.rb index 376ef876756..c974bc69071 100644 --- a/clients/client/ruby/spec/models/identity_patch_response_spec.rb +++ b/clients/client/ruby/spec/models/identity_patch_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IdentityPatchResponse' do it 'should create an instance of IdentityPatchResponse' do - expect(instance).to be_instance_of(OryClient::IdentityPatchResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityPatchResponse) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["create"]) # validator.allowable_values.each do |value| # expect { instance.action = value }.not_to raise_error @@ -37,13 +39,13 @@ describe 'test attribute "identity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "patch_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_patch_spec.rb b/clients/client/ruby/spec/models/identity_patch_spec.rb index 679c0167157..66d44a621d4 100644 --- a/clients/client/ruby/spec/models/identity_patch_spec.rb +++ b/clients/client/ruby/spec/models/identity_patch_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentityPatch' do it 'should create an instance of IdentityPatch' do - expect(instance).to be_instance_of(OryClient::IdentityPatch) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityPatch) end end + describe 'test attribute "create"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "patch_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_schema_container_spec.rb b/clients/client/ruby/spec/models/identity_schema_container_spec.rb index bf351d17239..d886bb11592 100644 --- a/clients/client/ruby/spec/models/identity_schema_container_spec.rb +++ b/clients/client/ruby/spec/models/identity_schema_container_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentitySchemaContainer' do it 'should create an instance of IdentitySchemaContainer' do - expect(instance).to be_instance_of(OryClient::IdentitySchemaContainer) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentitySchemaContainer) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "schema"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_schema_preset_spec.rb b/clients/client/ruby/spec/models/identity_schema_preset_spec.rb index f286ca2f7c0..05d231b5482 100644 --- a/clients/client/ruby/spec/models/identity_schema_preset_spec.rb +++ b/clients/client/ruby/spec/models/identity_schema_preset_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentitySchemaPreset' do it 'should create an instance of IdentitySchemaPreset' do - expect(instance).to be_instance_of(OryClient::IdentitySchemaPreset) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentitySchemaPreset) end end + describe 'test attribute "schema"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_spec.rb b/clients/client/ruby/spec/models/identity_spec.rb index 6b68ab99730..be4c857952d 100644 --- a/clients/client/ruby/spec/models/identity_spec.rb +++ b/clients/client/ruby/spec/models/identity_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,90 +22,96 @@ describe 'test an instance of Identity' do it 'should create an instance of Identity' do - expect(instance).to be_instance_of(OryClient::Identity) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Identity) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "credentials"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata_admin"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata_public"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "organization_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "recovery_addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "schema_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "schema_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "inactive"]) + # validator.allowable_values.each do |value| + # expect { instance.state = value }.not_to raise_error + # end end end describe 'test attribute "state_changed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verifiable_addresses"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_state_spec.rb b/clients/client/ruby/spec/models/identity_state_spec.rb deleted file mode 100644 index 35ae8d64d2a..00000000000 --- a/clients/client/ruby/spec/models/identity_state_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OryClient::IdentityState -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OryClient::IdentityState do - let(:instance) { OryClient::IdentityState.new } - - describe 'test an instance of IdentityState' do - it 'should create an instance of IdentityState' do - expect(instance).to be_instance_of(OryClient::IdentityState) - end - end -end diff --git a/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_provider_spec.rb b/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_provider_spec.rb index 09fd94754a7..05394d1c88c 100644 --- a/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_provider_spec.rb +++ b/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_provider_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentityWithCredentialsOidcConfigProvider' do it 'should create an instance of IdentityWithCredentialsOidcConfigProvider' do - expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsOidcConfigProvider) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsOidcConfigProvider) end end + describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_spec.rb b/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_spec.rb index c015fc9b4b9..671fbbecf62 100644 --- a/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_spec.rb +++ b/clients/client/ruby/spec/models/identity_with_credentials_oidc_config_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentityWithCredentialsOidcConfig' do it 'should create an instance of IdentityWithCredentialsOidcConfig' do - expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsOidcConfig) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsOidcConfig) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "providers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_with_credentials_oidc_spec.rb b/clients/client/ruby/spec/models/identity_with_credentials_oidc_spec.rb index 0a646356929..7bd0c4405bb 100644 --- a/clients/client/ruby/spec/models/identity_with_credentials_oidc_spec.rb +++ b/clients/client/ruby/spec/models/identity_with_credentials_oidc_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IdentityWithCredentialsOidc' do it 'should create an instance of IdentityWithCredentialsOidc' do - expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsOidc) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsOidc) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_with_credentials_password_config_spec.rb b/clients/client/ruby/spec/models/identity_with_credentials_password_config_spec.rb index 4067360d75a..dbcb1b4ad9e 100644 --- a/clients/client/ruby/spec/models/identity_with_credentials_password_config_spec.rb +++ b/clients/client/ruby/spec/models/identity_with_credentials_password_config_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentityWithCredentialsPasswordConfig' do it 'should create an instance of IdentityWithCredentialsPasswordConfig' do - expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsPasswordConfig) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsPasswordConfig) end end + describe 'test attribute "hashed_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_with_credentials_password_spec.rb b/clients/client/ruby/spec/models/identity_with_credentials_password_spec.rb index 26f47aef3ba..95e941b01e4 100644 --- a/clients/client/ruby/spec/models/identity_with_credentials_password_spec.rb +++ b/clients/client/ruby/spec/models/identity_with_credentials_password_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IdentityWithCredentialsPassword' do it 'should create an instance of IdentityWithCredentialsPassword' do - expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsPassword) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityWithCredentialsPassword) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/identity_with_credentials_spec.rb b/clients/client/ruby/spec/models/identity_with_credentials_spec.rb index 9ee500fbf9a..2f30a12f4b8 100644 --- a/clients/client/ruby/spec/models/identity_with_credentials_spec.rb +++ b/clients/client/ruby/spec/models/identity_with_credentials_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IdentityWithCredentials' do it 'should create an instance of IdentityWithCredentials' do - expect(instance).to be_instance_of(OryClient::IdentityWithCredentials) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IdentityWithCredentials) end end + describe 'test attribute "oidc"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/internal_get_project_branding_body_spec.rb b/clients/client/ruby/spec/models/internal_get_project_branding_body_spec.rb index 52b55fe46e0..60fc3976ea1 100644 --- a/clients/client/ruby/spec/models/internal_get_project_branding_body_spec.rb +++ b/clients/client/ruby/spec/models/internal_get_project_branding_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of InternalGetProjectBrandingBody' do it 'should create an instance of InternalGetProjectBrandingBody' do - expect(instance).to be_instance_of(OryClient::InternalGetProjectBrandingBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::InternalGetProjectBrandingBody) end end + describe 'test attribute "hostname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb b/clients/client/ruby/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb index 20e857a8a50..b6307e2c32f 100644 --- a/clients/client/ruby/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb +++ b/clients/client/ruby/spec/models/internal_is_ax_welcome_screen_enabled_for_project_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of InternalIsAXWelcomeScreenEnabledForProjectBody' do it 'should create an instance of InternalIsAXWelcomeScreenEnabledForProjectBody' do - expect(instance).to be_instance_of(OryClient::InternalIsAXWelcomeScreenEnabledForProjectBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::InternalIsAXWelcomeScreenEnabledForProjectBody) end end + describe 'test attribute "path"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb b/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb index 4632894d5e6..62c7af40002 100644 --- a/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb +++ b/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of InternalIsOwnerForProjectBySlugBody' do it 'should create an instance of InternalIsOwnerForProjectBySlugBody' do - expect(instance).to be_instance_of(OryClient::InternalIsOwnerForProjectBySlugBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::InternalIsOwnerForProjectBySlugBody) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["User", " ApiKey"]) # validator.allowable_values.each do |value| # expect { instance.namespace = value }.not_to raise_error @@ -37,19 +39,19 @@ describe 'test attribute "project_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb b/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb index 18c77fcd99a..33386f002bc 100644 --- a/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb +++ b/clients/client/ruby/spec/models/internal_is_owner_for_project_by_slug_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of InternalIsOwnerForProjectBySlugResponse' do it 'should create an instance of InternalIsOwnerForProjectBySlugResponse' do - expect(instance).to be_instance_of(OryClient::InternalIsOwnerForProjectBySlugResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::InternalIsOwnerForProjectBySlugResponse) end end + describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/introspected_o_auth2_token_spec.rb b/clients/client/ruby/spec/models/introspected_o_auth2_token_spec.rb index 15f8e1e3b5c..9e41a5b226f 100644 --- a/clients/client/ruby/spec/models/introspected_o_auth2_token_spec.rb +++ b/clients/client/ruby/spec/models/introspected_o_auth2_token_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,90 +22,92 @@ describe 'test an instance of IntrospectedOAuth2Token' do it 'should create an instance of IntrospectedOAuth2Token' do - expect(instance).to be_instance_of(OryClient::IntrospectedOAuth2Token) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IntrospectedOAuth2Token) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "aud"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "exp"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "iat"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "iss"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "nbf"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "obfuscated_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "sub"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/is_owner_for_project_by_slug_spec.rb b/clients/client/ruby/spec/models/is_owner_for_project_by_slug_spec.rb index dc679501b74..34bb5c96e2c 100644 --- a/clients/client/ruby/spec/models/is_owner_for_project_by_slug_spec.rb +++ b/clients/client/ruby/spec/models/is_owner_for_project_by_slug_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of IsOwnerForProjectBySlug' do it 'should create an instance of IsOwnerForProjectBySlug' do - expect(instance).to be_instance_of(OryClient::IsOwnerForProjectBySlug) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IsOwnerForProjectBySlug) end end + describe 'test attribute "project_slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/is_ready200_response_spec.rb b/clients/client/ruby/spec/models/is_ready200_response_spec.rb index 648cee3bde2..993ebdf1d8f 100644 --- a/clients/client/ruby/spec/models/is_ready200_response_spec.rb +++ b/clients/client/ruby/spec/models/is_ready200_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IsReady200Response' do it 'should create an instance of IsReady200Response' do - expect(instance).to be_instance_of(OryClient::IsReady200Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IsReady200Response) end end + describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/is_ready503_response_spec.rb b/clients/client/ruby/spec/models/is_ready503_response_spec.rb index 80d69873d51..97abc1f190c 100644 --- a/clients/client/ruby/spec/models/is_ready503_response_spec.rb +++ b/clients/client/ruby/spec/models/is_ready503_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of IsReady503Response' do it 'should create an instance of IsReady503Response' do - expect(instance).to be_instance_of(OryClient::IsReady503Response) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::IsReady503Response) end end + describe 'test attribute "errors"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/json_patch_spec.rb b/clients/client/ruby/spec/models/json_patch_spec.rb index c4998e39ba8..04a0064a084 100644 --- a/clients/client/ruby/spec/models/json_patch_spec.rb +++ b/clients/client/ruby/spec/models/json_patch_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of JsonPatch' do it 'should create an instance of JsonPatch' do - expect(instance).to be_instance_of(OryClient::JsonPatch) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::JsonPatch) end end + describe 'test attribute "from"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "op"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["add", "remove", "replace", "move", "copy", "test"]) # validator.allowable_values.each do |value| # expect { instance.op = value }.not_to raise_error @@ -43,13 +45,13 @@ describe 'test attribute "path"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/json_web_key_set_spec.rb b/clients/client/ruby/spec/models/json_web_key_set_spec.rb index f5daf49cb59..8eda3d4f839 100644 --- a/clients/client/ruby/spec/models/json_web_key_set_spec.rb +++ b/clients/client/ruby/spec/models/json_web_key_set_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of JsonWebKeySet' do it 'should create an instance of JsonWebKeySet' do - expect(instance).to be_instance_of(OryClient::JsonWebKeySet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::JsonWebKeySet) end end + describe 'test attribute "keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/json_web_key_spec.rb b/clients/client/ruby/spec/models/json_web_key_spec.rb index 810c2606a86..ce77db5fd55 100644 --- a/clients/client/ruby/spec/models/json_web_key_spec.rb +++ b/clients/client/ruby/spec/models/json_web_key_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,108 +22,110 @@ describe 'test an instance of JsonWebKey' do it 'should create an instance of JsonWebKey' do - expect(instance).to be_instance_of(OryClient::JsonWebKey) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::JsonWebKey) end end + describe 'test attribute "alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "crv"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "d"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "dp"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "dq"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "e"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "k"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kty"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "n"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "p"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "q"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "qi"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "x"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "x5c"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "y"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/keto_namespace_spec.rb b/clients/client/ruby/spec/models/keto_namespace_spec.rb index 128ea98d29e..146badc48ee 100644 --- a/clients/client/ruby/spec/models/keto_namespace_spec.rb +++ b/clients/client/ruby/spec/models/keto_namespace_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of KetoNamespace' do it 'should create an instance of KetoNamespace' do - expect(instance).to be_instance_of(OryClient::KetoNamespace) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::KetoNamespace) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/list_event_streams_spec.rb b/clients/client/ruby/spec/models/list_event_streams_spec.rb index 7090195ab9f..36c5b563ba5 100644 --- a/clients/client/ruby/spec/models/list_event_streams_spec.rb +++ b/clients/client/ruby/spec/models/list_event_streams_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ListEventStreams' do it 'should create an instance of ListEventStreams' do - expect(instance).to be_instance_of(OryClient::ListEventStreams) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ListEventStreams) end end + describe 'test attribute "event_streams"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/list_my_workspaces_response_spec.rb b/clients/client/ruby/spec/models/list_my_workspaces_response_spec.rb index 6fccb082dbe..e97e74d9ea7 100644 --- a/clients/client/ruby/spec/models/list_my_workspaces_response_spec.rb +++ b/clients/client/ruby/spec/models/list_my_workspaces_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ListMyWorkspacesResponse' do it 'should create an instance of ListMyWorkspacesResponse' do - expect(instance).to be_instance_of(OryClient::ListMyWorkspacesResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ListMyWorkspacesResponse) end end + describe 'test attribute "has_next_page"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "next_page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "workspaces"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/list_organizations_response_spec.rb b/clients/client/ruby/spec/models/list_organizations_response_spec.rb index 0276aebc22e..5d5d2fed0e4 100644 --- a/clients/client/ruby/spec/models/list_organizations_response_spec.rb +++ b/clients/client/ruby/spec/models/list_organizations_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ListOrganizationsResponse' do it 'should create an instance of ListOrganizationsResponse' do - expect(instance).to be_instance_of(OryClient::ListOrganizationsResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ListOrganizationsResponse) end end + describe 'test attribute "organizations"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/list_workspace_projects_response_spec.rb b/clients/client/ruby/spec/models/list_workspace_projects_response_spec.rb new file mode 100644 index 00000000000..4370a564b0b --- /dev/null +++ b/clients/client/ruby/spec/models/list_workspace_projects_response_spec.rb @@ -0,0 +1,48 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::ListWorkspaceProjectsResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::ListWorkspaceProjectsResponse do + let(:instance) { OryClient::ListWorkspaceProjectsResponse.new } + + describe 'test an instance of ListWorkspaceProjectsResponse' do + it 'should create an instance of ListWorkspaceProjectsResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ListWorkspaceProjectsResponse) + end + end + + describe 'test attribute "has_next_page"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "next_page"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "projects"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/login_flow_spec.rb b/clients/client/ruby/spec/models/login_flow_spec.rb index ec5934665ea..c36e11957d5 100644 --- a/clients/client/ruby/spec/models/login_flow_spec.rb +++ b/clients/client/ruby/spec/models/login_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,108 +22,120 @@ describe 'test an instance of LoginFlow' do it 'should create an instance of LoginFlow' do - expect(instance).to be_instance_of(OryClient::LoginFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::LoginFlow) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + # validator.allowable_values.each do |value| + # expect { instance.active = value }.not_to raise_error + # end end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issued_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oauth2_login_challenge"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oauth2_login_request"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "organization_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "requested_aal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session_token_exchange_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ui"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/login_flow_state_spec.rb b/clients/client/ruby/spec/models/login_flow_state_spec.rb index 89e53f4ee4c..48acb004261 100644 --- a/clients/client/ruby/spec/models/login_flow_state_spec.rb +++ b/clients/client/ruby/spec/models/login_flow_state_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of LoginFlowState' do it 'should create an instance of LoginFlowState' do - expect(instance).to be_instance_of(OryClient::LoginFlowState) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::LoginFlowState) end end + end diff --git a/clients/client/ruby/spec/models/logout_flow_spec.rb b/clients/client/ruby/spec/models/logout_flow_spec.rb index d34a01d213d..0a57b4d9241 100644 --- a/clients/client/ruby/spec/models/logout_flow_spec.rb +++ b/clients/client/ruby/spec/models/logout_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of LogoutFlow' do it 'should create an instance of LogoutFlow' do - expect(instance).to be_instance_of(OryClient::LogoutFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::LogoutFlow) end end + describe 'test attribute "logout_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logout_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/managed_identity_schema_spec.rb b/clients/client/ruby/spec/models/managed_identity_schema_spec.rb index 5b4613d23f5..715370e5981 100644 --- a/clients/client/ruby/spec/models/managed_identity_schema_spec.rb +++ b/clients/client/ruby/spec/models/managed_identity_schema_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,48 +22,50 @@ describe 'test an instance of ManagedIdentitySchema' do it 'should create an instance of ManagedIdentitySchema' do - expect(instance).to be_instance_of(OryClient::ManagedIdentitySchema) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ManagedIdentitySchema) end end + describe 'test attribute "blob_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "blob_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "content_hash"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/managed_identity_schema_validation_result_spec.rb b/clients/client/ruby/spec/models/managed_identity_schema_validation_result_spec.rb index 4cbee7194f5..55f690434b7 100644 --- a/clients/client/ruby/spec/models/managed_identity_schema_validation_result_spec.rb +++ b/clients/client/ruby/spec/models/managed_identity_schema_validation_result_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of ManagedIdentitySchemaValidationResult' do it 'should create an instance of ManagedIdentitySchemaValidationResult' do - expect(instance).to be_instance_of(OryClient::ManagedIdentitySchemaValidationResult) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ManagedIdentitySchemaValidationResult) end end + describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "valid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/member_invite_spec.rb b/clients/client/ruby/spec/models/member_invite_spec.rb index 07c3ac91be5..4f06c6af90a 100644 --- a/clients/client/ruby/spec/models/member_invite_spec.rb +++ b/clients/client/ruby/spec/models/member_invite_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of MemberInvite' do it 'should create an instance of MemberInvite' do - expect(instance).to be_instance_of(OryClient::MemberInvite) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::MemberInvite) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "invitee_email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "invitee_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "owner_email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "owner_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["pending", "accepted", "declined", "expired", "cancelled", "removed"]) # validator.allowable_values.each do |value| # expect { instance.status = value }.not_to raise_error @@ -79,13 +81,13 @@ describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "workspace_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/message_dispatch_spec.rb b/clients/client/ruby/spec/models/message_dispatch_spec.rb index 06ecb262cb7..503daa3c0e3 100644 --- a/clients/client/ruby/spec/models/message_dispatch_spec.rb +++ b/clients/client/ruby/spec/models/message_dispatch_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of MessageDispatch' do it 'should create an instance of MessageDispatch' do - expect(instance).to be_instance_of(OryClient::MessageDispatch) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::MessageDispatch) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "message_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["failed", "success"]) # validator.allowable_values.each do |value| # expect { instance.status = value }.not_to raise_error @@ -61,7 +63,7 @@ describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/message_spec.rb b/clients/client/ruby/spec/models/message_spec.rb index 620b9b08f41..5d6050fc1b3 100644 --- a/clients/client/ruby/spec/models/message_spec.rb +++ b/clients/client/ruby/spec/models/message_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,66 +22,68 @@ describe 'test an instance of Message' do it 'should create an instance of Message' do - expect(instance).to be_instance_of(OryClient::Message) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Message) end end + describe 'test attribute "body"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "channel"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "dispatches"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "recipient"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "send_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "template_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["recovery_invalid", "recovery_valid", "recovery_code_invalid", "recovery_code_valid", "verification_invalid", "verification_valid", "verification_code_invalid", "verification_code_valid", "stub", "login_code_valid", "registration_code_valid"]) # validator.allowable_values.each do |value| # expect { instance.template_type = value }.not_to raise_error @@ -91,13 +93,13 @@ describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/metrics_datapoint_spec.rb b/clients/client/ruby/spec/models/metrics_datapoint_spec.rb index 0750b1dafde..8bfbe5be69d 100644 --- a/clients/client/ruby/spec/models/metrics_datapoint_spec.rb +++ b/clients/client/ruby/spec/models/metrics_datapoint_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of MetricsDatapoint' do it 'should create an instance of MetricsDatapoint' do - expect(instance).to be_instance_of(OryClient::MetricsDatapoint) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::MetricsDatapoint) end end + describe 'test attribute "count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "time"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/migration_options_spec.rb b/clients/client/ruby/spec/models/migration_options_spec.rb new file mode 100644 index 00000000000..c280ef89c0c --- /dev/null +++ b/clients/client/ruby/spec/models/migration_options_spec.rb @@ -0,0 +1,50 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::MigrationOptions +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::MigrationOptions do + let(:instance) { OryClient::MigrationOptions.new } + + describe 'test an instance of MigrationOptions' do + it 'should create an instance of MigrationOptions' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::MigrationOptions) + end + end + + describe 'test attribute "environment"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prod", "dev"]) + # validator.allowable_values.each do |value| + # expect { instance.environment = value }.not_to raise_error + # end + end + end + + describe 'test attribute "project_subscription"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["migrate", "ignore"]) + # validator.allowable_values.each do |value| + # expect { instance.project_subscription = value }.not_to raise_error + # end + end + end + +end diff --git a/clients/client/ruby/spec/models/namespace_spec.rb b/clients/client/ruby/spec/models/namespace_spec.rb index 664384fe953..a448fb3a1e4 100644 --- a/clients/client/ruby/spec/models/namespace_spec.rb +++ b/clients/client/ruby/spec/models/namespace_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of Namespace' do it 'should create an instance of Namespace' do - expect(instance).to be_instance_of(OryClient::Namespace) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Namespace) end end + describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/needs_privileged_session_error_spec.rb b/clients/client/ruby/spec/models/needs_privileged_session_error_spec.rb index e4d533a293e..a4f06d6e656 100644 --- a/clients/client/ruby/spec/models/needs_privileged_session_error_spec.rb +++ b/clients/client/ruby/spec/models/needs_privileged_session_error_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of NeedsPrivilegedSessionError' do it 'should create an instance of NeedsPrivilegedSessionError' do - expect(instance).to be_instance_of(OryClient::NeedsPrivilegedSessionError) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NeedsPrivilegedSessionError) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "redirect_browser_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_revision_courier_channel_spec.rb b/clients/client/ruby/spec/models/normalized_project_revision_courier_channel_spec.rb index 30afe5dd2ee..6fd2e19c01c 100644 --- a/clients/client/ruby/spec/models/normalized_project_revision_courier_channel_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_revision_courier_channel_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of NormalizedProjectRevisionCourierChannel' do it 'should create an instance of NormalizedProjectRevisionCourierChannel' do - expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionCourierChannel) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionCourierChannel) end end + describe 'test attribute "channel_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_auth_config_api_key_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_auth_config_api_key_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_auth_config_api_key_value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_auth_config_basic_auth_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_auth_config_basic_auth_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_auth_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["basic_auth", "api_key"]) # validator.allowable_values.each do |value| # expect { instance.request_config_auth_type = value }.not_to raise_error @@ -79,31 +81,31 @@ describe 'test attribute "request_config_body"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_config_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_revision_hook_spec.rb b/clients/client/ruby/spec/models/normalized_project_revision_hook_spec.rb index d59d69f13f1..14ba201bd02 100644 --- a/clients/client/ruby/spec/models/normalized_project_revision_hook_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_revision_hook_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,114 +22,116 @@ describe 'test an instance of NormalizedProjectRevisionHook' do it 'should create an instance of NormalizedProjectRevisionHook' do - expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionHook) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionHook) end end + describe 'test attribute "config_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hook"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_revision_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_auth_api_key_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_auth_api_key_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_auth_api_key_value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_auth_basic_auth_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_auth_basic_auth_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_auth_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_body"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_can_interrupt"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_response_ignore"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_response_parse"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "web_hook_config_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_revision_identity_schema_spec.rb b/clients/client/ruby/spec/models/normalized_project_revision_identity_schema_spec.rb index bc1111278ee..8a5f8e8a0aa 100644 --- a/clients/client/ruby/spec/models/normalized_project_revision_identity_schema_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_revision_identity_schema_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,66 +22,68 @@ describe 'test an instance of NormalizedProjectRevisionIdentitySchema' do it 'should create an instance of NormalizedProjectRevisionIdentitySchema' do - expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionIdentitySchema) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionIdentitySchema) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity_schema"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity_schema_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "import_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "import_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "is_default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "preset"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_revision_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_revision_spec.rb b/clients/client/ruby/spec/models/normalized_project_revision_spec.rb index e42ac434c28..35d4c080080 100644 --- a/clients/client/ruby/spec/models/normalized_project_revision_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_revision_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,132 +22,146 @@ describe 'test an instance of NormalizedProjectRevision' do it 'should create an instance of NormalizedProjectRevision' do - expect(instance).to be_instance_of(OryClient::NormalizedProjectRevision) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProjectRevision) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "disable_account_experience_welcome_screen"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "enable_ax_v2"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_allowed_top_level_claims"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_client_credentials_default_grant_allowed_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_exclude_not_before_claim"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_grant_jwt_iat_optional"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_grant_jwt_jti_optional"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_grant_jwt_max_ttl"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "hydra_oauth2_mirror_top_level_claims"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_pkce_enforced"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_pkce_enforced_for_public_clients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_refresh_token_hook"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oauth2_token_hook"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_dynamic_client_registration_default_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_dynamic_client_registration_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_subject_identifiers_pairwise_salt"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_oidc_subject_identifiers_supported_types"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_secrets_cookie"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_secrets_system"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_serve_cookies_same_site_legacy_workaround"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_serve_cookies_same_site_mode"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_strategies_access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["opaque", "jwt"]) # validator.allowable_values.each do |value| # expect { instance.hydra_strategies_access_token = value }.not_to raise_error @@ -157,7 +171,7 @@ describe 'test attribute "hydra_strategies_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["exact", "wildcard"]) # validator.allowable_values.each do |value| # expect { instance.hydra_strategies_scope = value }.not_to raise_error @@ -167,607 +181,613 @@ describe 'test attribute "hydra_ttl_access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_auth_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_login_consent_request"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_ttl_refresh_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_consent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_logout"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_post_logout_redirect"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_registration"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_urls_self_issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_jwks_broadcast_keys"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_auth_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_client_registration_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_jwks_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_supported_claims"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_supported_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_token_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hydra_webfinger_oidc_discovery_userinfo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "keto_namespace_configuration"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "keto_namespaces"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_cookies_same_site"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_channels"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_delivery_strategy"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_api_key_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_api_key_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_api_key_value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_basic_auth_password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_basic_auth_user"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_auth_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_body"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_http_request_config_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_connection_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_from_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_from_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_smtp_local_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_login_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_login_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_login_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "kratos_courier_templates_login_code_valid_sms_body_plaintext"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_recovery_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_registration_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_registration_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_registration_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_code_valid_sms_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_invalid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_invalid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_invalid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_valid_email_body_html"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_valid_email_body_plaintext"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_courier_templates_verification_valid_email_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_feature_flags_cacheable_sessions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_feature_flags_use_continue_with_transitions"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_identity_schemas"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_oauth2_provider_headers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_oauth2_provider_override_return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_oauth2_provider_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_preview_default_read_consistency_level"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_secrets_cipher"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_secrets_cookie"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_secrets_default"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_allowed_return_urls"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_error_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_code_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_lookup_secret_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_oidc_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_password_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_totp_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_after_webauthn_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_login_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_logout_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_notify_unknown_recipients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_recovery_use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.kratos_selfservice_flows_recovery_use = value }.not_to raise_error @@ -777,157 +797,157 @@ describe 'test attribute "kratos_selfservice_flows_registration_after_code_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_oidc_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_password_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_after_webauthn_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_login_hints"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_registration_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_lookup_secret_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_oidc_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_password_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_profile_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_totp_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_after_webauthn_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_privileged_session_max_age"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_required_aal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_settings_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_after_default_browser_return_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_notify_unknown_recipients"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_ui_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_flows_verification_use"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.kratos_selfservice_flows_verification_use = value }.not_to raise_error @@ -937,235 +957,241 @@ describe 'test attribute "kratos_selfservice_methods_code_config_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_code_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "kratos_selfservice_methods_code_mfa_enabled"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_code_passwordless_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_link_config_base_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_link_config_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_link_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_lookup_secret_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_oidc_config_base_redirect_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_oidc_config_providers"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_oidc_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_haveibeenpwned_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_identifier_similarity_check_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_ignore_network_errors"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_max_breaches"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_config_min_password_length"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_password_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_profile_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_totp_config_issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_totp_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_passwordless"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_display_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_icon"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_config_rp_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_selfservice_methods_webauthn_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_cookie_persistent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_cookie_same_site"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_whoami_required_aal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "kratos_session_whoami_tokenizer_templates"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_revision_hooks"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_admin_cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_admin_cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_public_cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "serve_public_cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "strict_security"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_revision_third_party_provider_spec.rb b/clients/client/ruby/spec/models/normalized_project_revision_third_party_provider_spec.rb index 5edbb4115b6..d1ba3f8b9ed 100644 --- a/clients/client/ruby/spec/models/normalized_project_revision_third_party_provider_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_revision_third_party_provider_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,126 +22,134 @@ describe 'test an instance of NormalizedProjectRevisionThirdPartyProvider' do it 'should create an instance of NormalizedProjectRevisionThirdPartyProvider' do - expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionThirdPartyProvider) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionThirdPartyProvider) end end + describe 'test attribute "additional_id_token_audiences"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "apple_private_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "apple_private_key_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "apple_team_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "auth_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "azure_tenant"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "claims_source"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issuer_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "mapper_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "organization_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_revision_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provider_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "requested_claims"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["enabled", "disabled"]) # validator.allowable_values.each do |value| # expect { instance.state = value }.not_to raise_error @@ -151,19 +159,19 @@ describe 'test attribute "subject_source"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_revision_tokenizer_template_spec.rb b/clients/client/ruby/spec/models/normalized_project_revision_tokenizer_template_spec.rb index 870008abb2e..59c1b111ed0 100644 --- a/clients/client/ruby/spec/models/normalized_project_revision_tokenizer_template_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_revision_tokenizer_template_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of NormalizedProjectRevisionTokenizerTemplate' do it 'should create an instance of NormalizedProjectRevisionTokenizerTemplate' do - expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionTokenizerTemplate) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProjectRevisionTokenizerTemplate) end end + describe 'test attribute "claims_mapper_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwks_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_revision_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ttl"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/normalized_project_spec.rb b/clients/client/ruby/spec/models/normalized_project_spec.rb index 52a85e1eabe..2c7ffee308b 100644 --- a/clients/client/ruby/spec/models/normalized_project_spec.rb +++ b/clients/client/ruby/spec/models/normalized_project_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of NormalizedProject' do it 'should create an instance of NormalizedProject' do - expect(instance).to be_instance_of(OryClient::NormalizedProject) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::NormalizedProject) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "current_revision"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "environment"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prod", "dev"]) # validator.allowable_values.each do |value| # expect { instance.environment = value }.not_to raise_error @@ -49,25 +51,25 @@ describe 'test attribute "hosts"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["running", "halted", "deleted"]) # validator.allowable_values.each do |value| # expect { instance.state = value }.not_to raise_error @@ -77,25 +79,25 @@ describe 'test attribute "subscription_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subscription_plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "workspace_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_client_spec.rb b/clients/client/ruby/spec/models/o_auth2_client_spec.rb index f87370e92e9..e6be44a29d7 100644 --- a/clients/client/ruby/spec/models/o_auth2_client_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_client_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,288 +22,296 @@ describe 'test an instance of OAuth2Client' do it 'should create an instance of OAuth2Client' do - expect(instance).to be_instance_of(OryClient::OAuth2Client) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2Client) end end + describe 'test attribute "access_token_strategy"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "allowed_cors_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "audience"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authorization_code_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authorization_code_grant_id_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authorization_code_grant_refresh_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "backchannel_logout_session_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "backchannel_logout_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_credentials_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_secret_expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "contacts"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "frontchannel_logout_session_required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "frontchannel_logout_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "grant_types"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "implicit_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "implicit_grant_id_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwks"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwks_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwt_bearer_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "owner"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "policy_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "post_logout_redirect_uris"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "redirect_uris"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token_grant_id_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token_grant_refresh_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "registration_access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "registration_client_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_object_signing_alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_uris"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "response_types"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "sector_identifier_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "skip_consent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "skip_logout_consent"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_endpoint_auth_method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_endpoint_auth_signing_alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "tos_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "userinfo_signed_response_alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb b/clients/client/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb index 63228dc4701..ad1fcf449e4 100644 --- a/clients/client/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,66 +22,68 @@ describe 'test an instance of OAuth2ClientTokenLifespans' do it 'should create an instance of OAuth2ClientTokenLifespans' do - expect(instance).to be_instance_of(OryClient::OAuth2ClientTokenLifespans) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2ClientTokenLifespans) end end + describe 'test attribute "authorization_code_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authorization_code_grant_id_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authorization_code_grant_refresh_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client_credentials_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "implicit_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "implicit_grant_id_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwt_bearer_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token_grant_access_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token_grant_id_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token_grant_refresh_token_lifespan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb b/clients/client/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb index 7f0190d69f9..09a954b9635 100644 --- a/clients/client/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of OAuth2ConsentRequestOpenIDConnectContext' do it 'should create an instance of OAuth2ConsentRequestOpenIDConnectContext' do - expect(instance).to be_instance_of(OryClient::OAuth2ConsentRequestOpenIDConnectContext) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2ConsentRequestOpenIDConnectContext) end end + describe 'test attribute "acr_values"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "display"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token_hint_claims"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "login_hint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ui_locales"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_consent_request_spec.rb b/clients/client/ruby/spec/models/o_auth2_consent_request_spec.rb index 5e1f3537e5f..b23225ab124 100644 --- a/clients/client/ruby/spec/models/o_auth2_consent_request_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_consent_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,84 +22,86 @@ describe 'test an instance of OAuth2ConsentRequest' do it 'should create an instance of OAuth2ConsentRequest' do - expect(instance).to be_instance_of(OryClient::OAuth2ConsentRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2ConsentRequest) end end + describe 'test attribute "acr"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "amr"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "challenge"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "context"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "login_challenge"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "login_session_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oidc_context"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "requested_access_token_audience"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "requested_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "skip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb b/clients/client/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb index e5d650d4830..b89c9377e69 100644 --- a/clients/client/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of OAuth2ConsentSessionExpiresAt' do it 'should create an instance of OAuth2ConsentSessionExpiresAt' do - expect(instance).to be_instance_of(OryClient::OAuth2ConsentSessionExpiresAt) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2ConsentSessionExpiresAt) end end + describe 'test attribute "access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authorize_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "par_context"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_consent_session_spec.rb b/clients/client/ruby/spec/models/o_auth2_consent_session_spec.rb index ef6aa7e2ffe..34da2512bc6 100644 --- a/clients/client/ruby/spec/models/o_auth2_consent_session_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_consent_session_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,62 @@ describe 'test an instance of OAuth2ConsentSession' do it 'should create an instance of OAuth2ConsentSession' do - expect(instance).to be_instance_of(OryClient::OAuth2ConsentSession) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2ConsentSession) end end + describe 'test attribute "consent_request"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "context"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "grant_access_token_audience"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "grant_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "handled_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "remember"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "remember_for"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_login_request_spec.rb b/clients/client/ruby/spec/models/o_auth2_login_request_spec.rb index 00bdb0ea4a1..a19e2f97948 100644 --- a/clients/client/ruby/spec/models/o_auth2_login_request_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_login_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,60 +22,62 @@ describe 'test an instance of OAuth2LoginRequest' do it 'should create an instance of OAuth2LoginRequest' do - expect(instance).to be_instance_of(OryClient::OAuth2LoginRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2LoginRequest) end end + describe 'test attribute "challenge"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oidc_context"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "requested_access_token_audience"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "requested_scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "skip"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_logout_request_spec.rb b/clients/client/ruby/spec/models/o_auth2_logout_request_spec.rb index 0987fe9430c..aa34efe4d3b 100644 --- a/clients/client/ruby/spec/models/o_auth2_logout_request_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_logout_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of OAuth2LogoutRequest' do it 'should create an instance of OAuth2LogoutRequest' do - expect(instance).to be_instance_of(OryClient::OAuth2LogoutRequest) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2LogoutRequest) end end + describe 'test attribute "challenge"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "client"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "rp_initiated"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "sid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_redirect_to_spec.rb b/clients/client/ruby/spec/models/o_auth2_redirect_to_spec.rb index 251edcd655c..760001015b6 100644 --- a/clients/client/ruby/spec/models/o_auth2_redirect_to_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_redirect_to_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of OAuth2RedirectTo' do it 'should create an instance of OAuth2RedirectTo' do - expect(instance).to be_instance_of(OryClient::OAuth2RedirectTo) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2RedirectTo) end end + describe 'test attribute "redirect_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/o_auth2_token_exchange_spec.rb b/clients/client/ruby/spec/models/o_auth2_token_exchange_spec.rb index be33694460d..f0b2e3c9a8d 100644 --- a/clients/client/ruby/spec/models/o_auth2_token_exchange_spec.rb +++ b/clients/client/ruby/spec/models/o_auth2_token_exchange_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of OAuth2TokenExchange' do it 'should create an instance of OAuth2TokenExchange' do - expect(instance).to be_instance_of(OryClient::OAuth2TokenExchange) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OAuth2TokenExchange) end end + describe 'test attribute "access_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "refresh_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/oidc_configuration_spec.rb b/clients/client/ruby/spec/models/oidc_configuration_spec.rb index 3305ff2e751..b185d44056a 100644 --- a/clients/client/ruby/spec/models/oidc_configuration_spec.rb +++ b/clients/client/ruby/spec/models/oidc_configuration_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,192 +22,194 @@ describe 'test an instance of OidcConfiguration' do it 'should create an instance of OidcConfiguration' do - expect(instance).to be_instance_of(OryClient::OidcConfiguration) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OidcConfiguration) end end + describe 'test attribute "authorization_endpoint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "backchannel_logout_session_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "backchannel_logout_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "claims_parameter_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "claims_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "code_challenge_methods_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "credentials_endpoint_draft_00"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "credentials_supported_draft_00"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "end_session_endpoint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "frontchannel_logout_session_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "frontchannel_logout_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "grant_types_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token_signed_response_alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token_signing_alg_values_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwks_uri"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "registration_endpoint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_object_signing_alg_values_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_parameter_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_uri_parameter_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "require_request_uri_registration"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "response_modes_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "response_types_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "revocation_endpoint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scopes_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_types_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_endpoint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "token_endpoint_auth_methods_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "userinfo_endpoint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "userinfo_signed_response_alg"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "userinfo_signing_alg_values_supported"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/oidc_user_info_spec.rb b/clients/client/ruby/spec/models/oidc_user_info_spec.rb index 9e16d90191d..56bf498e7b8 100644 --- a/clients/client/ruby/spec/models/oidc_user_info_spec.rb +++ b/clients/client/ruby/spec/models/oidc_user_info_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,120 +22,122 @@ describe 'test an instance of OidcUserInfo' do it 'should create an instance of OidcUserInfo' do - expect(instance).to be_instance_of(OryClient::OidcUserInfo) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OidcUserInfo) end end + describe 'test attribute "birthdate"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "email_verified"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "family_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "gender"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "given_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "locale"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "middle_name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "nickname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "phone_number"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "phone_number_verified"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "picture"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "preferred_username"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "profile"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "sub"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "website"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "zoneinfo"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/organization_body_spec.rb b/clients/client/ruby/spec/models/organization_body_spec.rb index 9650fe72a11..fcb6e080103 100644 --- a/clients/client/ruby/spec/models/organization_body_spec.rb +++ b/clients/client/ruby/spec/models/organization_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of OrganizationBody' do it 'should create an instance of OrganizationBody' do - expect(instance).to be_instance_of(OryClient::OrganizationBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::OrganizationBody) end end + describe 'test attribute "domains"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/organization_spec.rb b/clients/client/ruby/spec/models/organization_spec.rb index 5baf1780237..f3a8729a4ee 100644 --- a/clients/client/ruby/spec/models/organization_spec.rb +++ b/clients/client/ruby/spec/models/organization_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of Organization' do it 'should create an instance of Organization' do - expect(instance).to be_instance_of(OryClient::Organization) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Organization) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "domains"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/pagination_headers_spec.rb b/clients/client/ruby/spec/models/pagination_headers_spec.rb index a21a49766a8..321fa208228 100644 --- a/clients/client/ruby/spec/models/pagination_headers_spec.rb +++ b/clients/client/ruby/spec/models/pagination_headers_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of PaginationHeaders' do it 'should create an instance of PaginationHeaders' do - expect(instance).to be_instance_of(OryClient::PaginationHeaders) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PaginationHeaders) end end + describe 'test attribute "link"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "x_total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/pagination_spec.rb b/clients/client/ruby/spec/models/pagination_spec.rb index 1d02aca29bb..c1cd5a33c8b 100644 --- a/clients/client/ruby/spec/models/pagination_spec.rb +++ b/clients/client/ruby/spec/models/pagination_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of Pagination' do it 'should create an instance of Pagination' do - expect(instance).to be_instance_of(OryClient::Pagination) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Pagination) end end + describe 'test attribute "page_size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/parse_error_spec.rb b/clients/client/ruby/spec/models/parse_error_spec.rb index 68d359ad705..8290ca23269 100644 --- a/clients/client/ruby/spec/models/parse_error_spec.rb +++ b/clients/client/ruby/spec/models/parse_error_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ParseError' do it 'should create an instance of ParseError' do - expect(instance).to be_instance_of(OryClient::ParseError) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ParseError) end end + describe 'test attribute "_end"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "start"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/patch_identities_body_spec.rb b/clients/client/ruby/spec/models/patch_identities_body_spec.rb index e0162ffd21f..289e3ec3a19 100644 --- a/clients/client/ruby/spec/models/patch_identities_body_spec.rb +++ b/clients/client/ruby/spec/models/patch_identities_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of PatchIdentitiesBody' do it 'should create an instance of PatchIdentitiesBody' do - expect(instance).to be_instance_of(OryClient::PatchIdentitiesBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PatchIdentitiesBody) end end + describe 'test attribute "identities"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/perform_native_logout_body_spec.rb b/clients/client/ruby/spec/models/perform_native_logout_body_spec.rb index cee0b4eeeb5..f9a2eecebed 100644 --- a/clients/client/ruby/spec/models/perform_native_logout_body_spec.rb +++ b/clients/client/ruby/spec/models/perform_native_logout_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of PerformNativeLogoutBody' do it 'should create an instance of PerformNativeLogoutBody' do - expect(instance).to be_instance_of(OryClient::PerformNativeLogoutBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PerformNativeLogoutBody) end end + describe 'test attribute "session_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/permissions_on_workpace_response_spec.rb b/clients/client/ruby/spec/models/permissions_on_workpace_response_spec.rb new file mode 100644 index 00000000000..318ca123eab --- /dev/null +++ b/clients/client/ruby/spec/models/permissions_on_workpace_response_spec.rb @@ -0,0 +1,36 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::PermissionsOnWorkpaceResponse +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::PermissionsOnWorkpaceResponse do + let(:instance) { OryClient::PermissionsOnWorkpaceResponse.new } + + describe 'test an instance of PermissionsOnWorkpaceResponse' do + it 'should create an instance of PermissionsOnWorkpaceResponse' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PermissionsOnWorkpaceResponse) + end + end + + describe 'test attribute "permissions"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/plan_details_spec.rb b/clients/client/ruby/spec/models/plan_details_spec.rb index a0430a841b6..84f0884625b 100644 --- a/clients/client/ruby/spec/models/plan_details_spec.rb +++ b/clients/client/ruby/spec/models/plan_details_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,48 +22,50 @@ describe 'test an instance of PlanDetails' do it 'should create an instance of PlanDetails' do - expect(instance).to be_instance_of(OryClient::PlanDetails) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PlanDetails) end end + describe 'test attribute "base_fee_monthly"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "base_fee_yearly"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "custom"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "features"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/plan_spec.rb b/clients/client/ruby/spec/models/plan_spec.rb index bf0bb0bdf66..84c75fc29bb 100644 --- a/clients/client/ruby/spec/models/plan_spec.rb +++ b/clients/client/ruby/spec/models/plan_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of Plan' do it 'should create an instance of Plan' do - expect(instance).to be_instance_of(OryClient::Plan) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Plan) end end + describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/post_check_permission_body_spec.rb b/clients/client/ruby/spec/models/post_check_permission_body_spec.rb index bbcb7ecc1a0..959a424f7e6 100644 --- a/clients/client/ruby/spec/models/post_check_permission_body_spec.rb +++ b/clients/client/ruby/spec/models/post_check_permission_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of PostCheckPermissionBody' do it 'should create an instance of PostCheckPermissionBody' do - expect(instance).to be_instance_of(OryClient::PostCheckPermissionBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PostCheckPermissionBody) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "object"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_set"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/post_check_permission_or_error_body_spec.rb b/clients/client/ruby/spec/models/post_check_permission_or_error_body_spec.rb index b97e9f88815..e2e7cd6974e 100644 --- a/clients/client/ruby/spec/models/post_check_permission_or_error_body_spec.rb +++ b/clients/client/ruby/spec/models/post_check_permission_or_error_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of PostCheckPermissionOrErrorBody' do it 'should create an instance of PostCheckPermissionOrErrorBody' do - expect(instance).to be_instance_of(OryClient::PostCheckPermissionOrErrorBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::PostCheckPermissionOrErrorBody) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "object"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_set"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_api_key_spec.rb b/clients/client/ruby/spec/models/project_api_key_spec.rb index e3094670028..dfed3cbf9d2 100644 --- a/clients/client/ruby/spec/models/project_api_key_spec.rb +++ b/clients/client/ruby/spec/models/project_api_key_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,48 +22,50 @@ describe 'test an instance of ProjectApiKey' do it 'should create an instance of ProjectApiKey' do - expect(instance).to be_instance_of(OryClient::ProjectApiKey) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectApiKey) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "owner_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_branding_colors_spec.rb b/clients/client/ruby/spec/models/project_branding_colors_spec.rb index b16c8b144be..f7a50d37a4b 100644 --- a/clients/client/ruby/spec/models/project_branding_colors_spec.rb +++ b/clients/client/ruby/spec/models/project_branding_colors_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,180 +22,182 @@ describe 'test an instance of ProjectBrandingColors' do it 'should create an instance of ProjectBrandingColors' do - expect(instance).to be_instance_of(OryClient::ProjectBrandingColors) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectBrandingColors) end end + describe 'test attribute "accent_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_emphasis_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_muted_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "background_canvas_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "background_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "background_surface_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "border_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_emphasis_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_muted_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_muted_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_on_accent_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_on_dark_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_on_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_background_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_placeholder_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_text_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "primary_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "secondary_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "success_emphasis_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "text_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "text_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_branding_spec.rb b/clients/client/ruby/spec/models/project_branding_spec.rb index a8f5a4f6bff..fb481da484d 100644 --- a/clients/client/ruby/spec/models/project_branding_spec.rb +++ b/clients/client/ruby/spec/models/project_branding_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of ProjectBranding' do it 'should create an instance of ProjectBranding' do - expect(instance).to be_instance_of(OryClient::ProjectBranding) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectBranding) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "default_theme"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "themes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_branding_theme_spec.rb b/clients/client/ruby/spec/models/project_branding_theme_spec.rb index 449c93b885f..99a5850ee99 100644 --- a/clients/client/ruby/spec/models/project_branding_theme_spec.rb +++ b/clients/client/ruby/spec/models/project_branding_theme_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,234 +22,236 @@ describe 'test an instance of ProjectBrandingTheme' do it 'should create an instance of ProjectBrandingTheme' do - expect(instance).to be_instance_of(OryClient::ProjectBrandingTheme) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectBrandingTheme) end end + describe 'test attribute "accent_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_emphasis_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_muted_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "accent_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "background_canvas_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "background_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "background_surface_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "border_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_emphasis_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_muted_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "favicon_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "favicon_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_muted_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_on_accent_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_on_dark_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_on_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "foreground_subtle_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_background_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_placeholder_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "input_text_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "primary_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_branding_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "secondary_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "success_emphasis_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "text_default_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "text_disabled_color"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_cors_spec.rb b/clients/client/ruby/spec/models/project_cors_spec.rb index 3022da3f7e0..5ca3880bc7b 100644 --- a/clients/client/ruby/spec/models/project_cors_spec.rb +++ b/clients/client/ruby/spec/models/project_cors_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of ProjectCors' do it 'should create an instance of ProjectCors' do - expect(instance).to be_instance_of(OryClient::ProjectCors) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectCors) end end + describe 'test attribute "enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_events_datapoint_spec.rb b/clients/client/ruby/spec/models/project_events_datapoint_spec.rb index 5fbedc217e8..f813eedd755 100644 --- a/clients/client/ruby/spec/models/project_events_datapoint_spec.rb +++ b/clients/client/ruby/spec/models/project_events_datapoint_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ProjectEventsDatapoint' do it 'should create an instance of ProjectEventsDatapoint' do - expect(instance).to be_instance_of(OryClient::ProjectEventsDatapoint) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectEventsDatapoint) end end + describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "timestamp"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_host_spec.rb b/clients/client/ruby/spec/models/project_host_spec.rb index 10942be7b84..524eec379d3 100644 --- a/clients/client/ruby/spec/models/project_host_spec.rb +++ b/clients/client/ruby/spec/models/project_host_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ProjectHost' do it 'should create an instance of ProjectHost' do - expect(instance).to be_instance_of(OryClient::ProjectHost) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectHost) end end + describe 'test attribute "host"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_member_spec.rb b/clients/client/ruby/spec/models/project_member_spec.rb new file mode 100644 index 00000000000..3e129355b8c --- /dev/null +++ b/clients/client/ruby/spec/models/project_member_spec.rb @@ -0,0 +1,54 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::ProjectMember +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::ProjectMember do + let(:instance) { OryClient::ProjectMember.new } + + describe 'test an instance of ProjectMember' do + it 'should create an instance of ProjectMember' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectMember) + end + end + + describe 'test attribute "email"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "role"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/project_metadata_spec.rb b/clients/client/ruby/spec/models/project_metadata_spec.rb index c3b08a7a44b..1f93c004f75 100644 --- a/clients/client/ruby/spec/models/project_metadata_spec.rb +++ b/clients/client/ruby/spec/models/project_metadata_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,54 @@ describe 'test an instance of ProjectMetadata' do it 'should create an instance of ProjectMetadata' do - expect(instance).to be_instance_of(OryClient::ProjectMetadata) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectMetadata) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "environment"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["prod", "dev"]) + # validator.allowable_values.each do |value| + # expect { instance.environment = value }.not_to raise_error + # end end end describe 'test attribute "hosts"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["running", "halted", "deleted"]) # validator.allowable_values.each do |value| # expect { instance.state = value }.not_to raise_error @@ -67,25 +79,25 @@ describe 'test attribute "subscription_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subscription_plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "workspace_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_service_identity_spec.rb b/clients/client/ruby/spec/models/project_service_identity_spec.rb index 46e5ffb1b85..09be4c5ddb3 100644 --- a/clients/client/ruby/spec/models/project_service_identity_spec.rb +++ b/clients/client/ruby/spec/models/project_service_identity_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ProjectServiceIdentity' do it 'should create an instance of ProjectServiceIdentity' do - expect(instance).to be_instance_of(OryClient::ProjectServiceIdentity) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectServiceIdentity) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_service_o_auth2_spec.rb b/clients/client/ruby/spec/models/project_service_o_auth2_spec.rb index eea0a67a113..58d489aa3a6 100644 --- a/clients/client/ruby/spec/models/project_service_o_auth2_spec.rb +++ b/clients/client/ruby/spec/models/project_service_o_auth2_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ProjectServiceOAuth2' do it 'should create an instance of ProjectServiceOAuth2' do - expect(instance).to be_instance_of(OryClient::ProjectServiceOAuth2) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectServiceOAuth2) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_service_permission_spec.rb b/clients/client/ruby/spec/models/project_service_permission_spec.rb index 21ee603b49a..ca0d470d102 100644 --- a/clients/client/ruby/spec/models/project_service_permission_spec.rb +++ b/clients/client/ruby/spec/models/project_service_permission_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of ProjectServicePermission' do it 'should create an instance of ProjectServicePermission' do - expect(instance).to be_instance_of(OryClient::ProjectServicePermission) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectServicePermission) end end + describe 'test attribute "config"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_services_spec.rb b/clients/client/ruby/spec/models/project_services_spec.rb index 05cba31f0f3..15f3a928a8a 100644 --- a/clients/client/ruby/spec/models/project_services_spec.rb +++ b/clients/client/ruby/spec/models/project_services_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of ProjectServices' do it 'should create an instance of ProjectServices' do - expect(instance).to be_instance_of(OryClient::ProjectServices) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::ProjectServices) end end + describe 'test attribute "identity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oauth2"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "permission"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/project_spec.rb b/clients/client/ruby/spec/models/project_spec.rb index a3daadc58f5..43d35cd2229 100644 --- a/clients/client/ruby/spec/models/project_spec.rb +++ b/clients/client/ruby/spec/models/project_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of Project' do it 'should create an instance of Project' do - expect(instance).to be_instance_of(OryClient::Project) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Project) end end + describe 'test attribute "cors_admin"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_public"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "revision_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "services"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "slug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["running", "halted", "deleted"]) # validator.allowable_values.each do |value| # expect { instance.state = value }.not_to raise_error @@ -79,7 +81,7 @@ describe 'test attribute "workspace_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/quota_usage_spec.rb b/clients/client/ruby/spec/models/quota_usage_spec.rb index 944793ca57a..56d1e9da623 100644 --- a/clients/client/ruby/spec/models/quota_usage_spec.rb +++ b/clients/client/ruby/spec/models/quota_usage_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,25 +22,27 @@ describe 'test an instance of QuotaUsage' do it 'should create an instance of QuotaUsage' do - expect(instance).to be_instance_of(OryClient::QuotaUsage) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::QuotaUsage) end end + describe 'test attribute "additional_price"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "can_use_more"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "feature"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["region_eu", "region_us", "region_apac", "region_global", "production_projects", "daily_active_users", "custom_domains", "event_streams", "sla", "collaborator_seats", "edge_cache", "branding_themes", "zendesk_support", "project_metrics", "project_metrics_time_window", "project_metrics_events_history", "organizations", "rop_grant", "rate_limit_tier", "session_rate_limit_tier", "identities_list_rate_limit_tier"]) + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["region_eu", "region_us", "region_apac", "region_global", "production_projects", "daily_active_users", "custom_domains", "event_streams", "sla", "collaborator_seats", "edge_cache", "branding_themes", "zendesk_support", "project_metrics", "project_metrics_time_window", "project_metrics_events_history", "organizations", "rop_grant", "concierge_onboarding", "rate_limit_tier", "session_rate_limit_tier", "identities_list_rate_limit_tier", "permission_checks_rate_limit_tier", "oauth2_introspect_rate_limit_tier"]) # validator.allowable_values.each do |value| # expect { instance.feature = value }.not_to raise_error # end @@ -49,19 +51,19 @@ describe 'test attribute "feature_available"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "included"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "used"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/recovery_code_for_identity_spec.rb b/clients/client/ruby/spec/models/recovery_code_for_identity_spec.rb index 040911d17f5..9a7f3f74025 100644 --- a/clients/client/ruby/spec/models/recovery_code_for_identity_spec.rb +++ b/clients/client/ruby/spec/models/recovery_code_for_identity_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of RecoveryCodeForIdentity' do it 'should create an instance of RecoveryCodeForIdentity' do - expect(instance).to be_instance_of(OryClient::RecoveryCodeForIdentity) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RecoveryCodeForIdentity) end end + describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "recovery_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "recovery_link"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/recovery_flow_spec.rb b/clients/client/ruby/spec/models/recovery_flow_spec.rb index f04d65c3e48..1c59bbc101f 100644 --- a/clients/client/ruby/spec/models/recovery_flow_spec.rb +++ b/clients/client/ruby/spec/models/recovery_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,66 +22,74 @@ describe 'test an instance of RecoveryFlow' do it 'should create an instance of RecoveryFlow' do - expect(instance).to be_instance_of(OryClient::RecoveryFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RecoveryFlow) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "continue_with"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issued_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ui"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/recovery_flow_state_spec.rb b/clients/client/ruby/spec/models/recovery_flow_state_spec.rb index ee1a1fd73db..2d447fe862f 100644 --- a/clients/client/ruby/spec/models/recovery_flow_state_spec.rb +++ b/clients/client/ruby/spec/models/recovery_flow_state_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of RecoveryFlowState' do it 'should create an instance of RecoveryFlowState' do - expect(instance).to be_instance_of(OryClient::RecoveryFlowState) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RecoveryFlowState) end end + end diff --git a/clients/client/ruby/spec/models/recovery_identity_address_spec.rb b/clients/client/ruby/spec/models/recovery_identity_address_spec.rb index 1ed2cd58abd..30e916a00f5 100644 --- a/clients/client/ruby/spec/models/recovery_identity_address_spec.rb +++ b/clients/client/ruby/spec/models/recovery_identity_address_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of RecoveryIdentityAddress' do it 'should create an instance of RecoveryIdentityAddress' do - expect(instance).to be_instance_of(OryClient::RecoveryIdentityAddress) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RecoveryIdentityAddress) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "via"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/recovery_link_for_identity_spec.rb b/clients/client/ruby/spec/models/recovery_link_for_identity_spec.rb index d31e65eaa85..ee72e89cb34 100644 --- a/clients/client/ruby/spec/models/recovery_link_for_identity_spec.rb +++ b/clients/client/ruby/spec/models/recovery_link_for_identity_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of RecoveryLinkForIdentity' do it 'should create an instance of RecoveryLinkForIdentity' do - expect(instance).to be_instance_of(OryClient::RecoveryLinkForIdentity) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RecoveryLinkForIdentity) end end + describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "recovery_link"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/registration_flow_spec.rb b/clients/client/ruby/spec/models/registration_flow_spec.rb index 4f36107e568..068f3f8f907 100644 --- a/clients/client/ruby/spec/models/registration_flow_spec.rb +++ b/clients/client/ruby/spec/models/registration_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,90 +22,96 @@ describe 'test an instance of RegistrationFlow' do it 'should create an instance of RegistrationFlow' do - expect(instance).to be_instance_of(OryClient::RegistrationFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RegistrationFlow) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["password", "oidc", "totp", "lookup_secret", "webauthn", "code", "link_recovery", "code_recovery"]) + # validator.allowable_values.each do |value| + # expect { instance.active = value }.not_to raise_error + # end end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issued_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oauth2_login_challenge"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "oauth2_login_request"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "organization_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session_token_exchange_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "transient_payload"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ui"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/registration_flow_state_spec.rb b/clients/client/ruby/spec/models/registration_flow_state_spec.rb index 449a5828b7b..d6bc6feabe6 100644 --- a/clients/client/ruby/spec/models/registration_flow_state_spec.rb +++ b/clients/client/ruby/spec/models/registration_flow_state_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of RegistrationFlowState' do it 'should create an instance of RegistrationFlowState' do - expect(instance).to be_instance_of(OryClient::RegistrationFlowState) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RegistrationFlowState) end end + end diff --git a/clients/client/ruby/spec/models/reject_o_auth2_request_spec.rb b/clients/client/ruby/spec/models/reject_o_auth2_request_spec.rb index 4454041379d..e89d35121ca 100644 --- a/clients/client/ruby/spec/models/reject_o_auth2_request_spec.rb +++ b/clients/client/ruby/spec/models/reject_o_auth2_request_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of RejectOAuth2Request' do it 'should create an instance of RejectOAuth2Request' do - expect(instance).to be_instance_of(OryClient::RejectOAuth2Request) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RejectOAuth2Request) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_debug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_hint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/relation_query_spec.rb b/clients/client/ruby/spec/models/relation_query_spec.rb index 8ebef848425..b2f6149136e 100644 --- a/clients/client/ruby/spec/models/relation_query_spec.rb +++ b/clients/client/ruby/spec/models/relation_query_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of RelationQuery' do it 'should create an instance of RelationQuery' do - expect(instance).to be_instance_of(OryClient::RelationQuery) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RelationQuery) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "object"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_set"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/relationship_namespaces_spec.rb b/clients/client/ruby/spec/models/relationship_namespaces_spec.rb index 0b42f9b4c69..8dcc902fbb0 100644 --- a/clients/client/ruby/spec/models/relationship_namespaces_spec.rb +++ b/clients/client/ruby/spec/models/relationship_namespaces_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of RelationshipNamespaces' do it 'should create an instance of RelationshipNamespaces' do - expect(instance).to be_instance_of(OryClient::RelationshipNamespaces) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RelationshipNamespaces) end end + describe 'test attribute "namespaces"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/relationship_patch_spec.rb b/clients/client/ruby/spec/models/relationship_patch_spec.rb index e6af3093c01..29382bc32fe 100644 --- a/clients/client/ruby/spec/models/relationship_patch_spec.rb +++ b/clients/client/ruby/spec/models/relationship_patch_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of RelationshipPatch' do it 'should create an instance of RelationshipPatch' do - expect(instance).to be_instance_of(OryClient::RelationshipPatch) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RelationshipPatch) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["insert", "delete"]) # validator.allowable_values.each do |value| # expect { instance.action = value }.not_to raise_error @@ -37,7 +39,7 @@ describe 'test attribute "relation_tuple"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/relationship_spec.rb b/clients/client/ruby/spec/models/relationship_spec.rb index 35e0edea147..248948978d5 100644 --- a/clients/client/ruby/spec/models/relationship_spec.rb +++ b/clients/client/ruby/spec/models/relationship_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of Relationship' do it 'should create an instance of Relationship' do - expect(instance).to be_instance_of(OryClient::Relationship) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Relationship) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "object"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject_set"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/relationships_spec.rb b/clients/client/ruby/spec/models/relationships_spec.rb index 96dec327e1a..293ed2bfecd 100644 --- a/clients/client/ruby/spec/models/relationships_spec.rb +++ b/clients/client/ruby/spec/models/relationships_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of Relationships' do it 'should create an instance of Relationships' do - expect(instance).to be_instance_of(OryClient::Relationships) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Relationships) end end + describe 'test attribute "next_page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation_tuples"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/rfc6749_error_json_spec.rb b/clients/client/ruby/spec/models/rfc6749_error_json_spec.rb index 9c41eded678..19498e98a70 100644 --- a/clients/client/ruby/spec/models/rfc6749_error_json_spec.rb +++ b/clients/client/ruby/spec/models/rfc6749_error_json_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of RFC6749ErrorJson' do it 'should create an instance of RFC6749ErrorJson' do - expect(instance).to be_instance_of(OryClient::RFC6749ErrorJson) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::RFC6749ErrorJson) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_debug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_hint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/schema_patch_spec.rb b/clients/client/ruby/spec/models/schema_patch_spec.rb index 385fc19ca1b..469ae2a6bb9 100644 --- a/clients/client/ruby/spec/models/schema_patch_spec.rb +++ b/clients/client/ruby/spec/models/schema_patch_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of SchemaPatch' do it 'should create an instance of SchemaPatch' do - expect(instance).to be_instance_of(OryClient::SchemaPatch) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SchemaPatch) end end + describe 'test attribute "data"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/self_service_flow_expired_error_spec.rb b/clients/client/ruby/spec/models/self_service_flow_expired_error_spec.rb index 543e8695ba9..10cfae59edd 100644 --- a/clients/client/ruby/spec/models/self_service_flow_expired_error_spec.rb +++ b/clients/client/ruby/spec/models/self_service_flow_expired_error_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of SelfServiceFlowExpiredError' do it 'should create an instance of SelfServiceFlowExpiredError' do - expect(instance).to be_instance_of(OryClient::SelfServiceFlowExpiredError) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SelfServiceFlowExpiredError) end end + describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expired_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "since"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "use_flow_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/session_activity_datapoint_spec.rb b/clients/client/ruby/spec/models/session_activity_datapoint_spec.rb index 34807b7ee6d..7bbfa82c2b2 100644 --- a/clients/client/ruby/spec/models/session_activity_datapoint_spec.rb +++ b/clients/client/ruby/spec/models/session_activity_datapoint_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of SessionActivityDatapoint' do it 'should create an instance of SessionActivityDatapoint' do - expect(instance).to be_instance_of(OryClient::SessionActivityDatapoint) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SessionActivityDatapoint) end end + describe 'test attribute "country"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "failed"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "succeeded"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/session_authentication_method_spec.rb b/clients/client/ruby/spec/models/session_authentication_method_spec.rb index e1bc838a9e5..df8477883ac 100644 --- a/clients/client/ruby/spec/models/session_authentication_method_spec.rb +++ b/clients/client/ruby/spec/models/session_authentication_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of SessionAuthenticationMethod' do it 'should create an instance of SessionAuthenticationMethod' do - expect(instance).to be_instance_of(OryClient::SessionAuthenticationMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SessionAuthenticationMethod) end end + describe 'test attribute "aal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "completed_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link_recovery", "code_recovery", "password", "code", "totp", "oidc", "webauthn", "lookup_secret", "v0.6_legacy_session"]) # validator.allowable_values.each do |value| # expect { instance.method = value }.not_to raise_error @@ -49,13 +51,13 @@ describe 'test attribute "organization"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/session_device_spec.rb b/clients/client/ruby/spec/models/session_device_spec.rb index 8e19ebb982a..b8cfe80bcb2 100644 --- a/clients/client/ruby/spec/models/session_device_spec.rb +++ b/clients/client/ruby/spec/models/session_device_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of SessionDevice' do it 'should create an instance of SessionDevice' do - expect(instance).to be_instance_of(OryClient::SessionDevice) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SessionDevice) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ip_address"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "location"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "user_agent"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/session_spec.rb b/clients/client/ruby/spec/models/session_spec.rb index 01be5ccac12..cd86191cb5e 100644 --- a/clients/client/ruby/spec/models/session_spec.rb +++ b/clients/client/ruby/spec/models/session_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,66 +22,68 @@ describe 'test an instance of Session' do it 'should create an instance of Session' do - expect(instance).to be_instance_of(OryClient::Session) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Session) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authenticated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authentication_methods"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "authenticator_assurance_level"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "devices"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issued_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "tokenized"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/set_active_project_in_console_body_spec.rb b/clients/client/ruby/spec/models/set_active_project_in_console_body_spec.rb index 1e4c3bc197c..0be7cb8726c 100644 --- a/clients/client/ruby/spec/models/set_active_project_in_console_body_spec.rb +++ b/clients/client/ruby/spec/models/set_active_project_in_console_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of SetActiveProjectInConsoleBody' do it 'should create an instance of SetActiveProjectInConsoleBody' do - expect(instance).to be_instance_of(OryClient::SetActiveProjectInConsoleBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SetActiveProjectInConsoleBody) end end + describe 'test attribute "project_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/set_custom_domain_body_spec.rb b/clients/client/ruby/spec/models/set_custom_domain_body_spec.rb index da3092c770b..0af3010a2c1 100644 --- a/clients/client/ruby/spec/models/set_custom_domain_body_spec.rb +++ b/clients/client/ruby/spec/models/set_custom_domain_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of SetCustomDomainBody' do it 'should create an instance of SetCustomDomainBody' do - expect(instance).to be_instance_of(OryClient::SetCustomDomainBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SetCustomDomainBody) end end + describe 'test attribute "cookie_domain"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_allowed_origins"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_enabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "custom_ui_base_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "hostname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/set_event_stream_body_spec.rb b/clients/client/ruby/spec/models/set_event_stream_body_spec.rb index 39f8a92ad2f..4ea5a9e7de0 100644 --- a/clients/client/ruby/spec/models/set_event_stream_body_spec.rb +++ b/clients/client/ruby/spec/models/set_event_stream_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of SetEventStreamBody' do it 'should create an instance of SetEventStreamBody' do - expect(instance).to be_instance_of(OryClient::SetEventStreamBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SetEventStreamBody) end end + describe 'test attribute "role_arn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "topic_arn"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["sns"]) # validator.allowable_values.each do |value| # expect { instance.type = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/set_project_branding_theme_body_spec.rb b/clients/client/ruby/spec/models/set_project_branding_theme_body_spec.rb index 54d5fa79938..24c73a8bc9e 100644 --- a/clients/client/ruby/spec/models/set_project_branding_theme_body_spec.rb +++ b/clients/client/ruby/spec/models/set_project_branding_theme_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of SetProjectBrandingThemeBody' do it 'should create an instance of SetProjectBrandingThemeBody' do - expect(instance).to be_instance_of(OryClient::SetProjectBrandingThemeBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SetProjectBrandingThemeBody) end end + describe 'test attribute "favicon_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "favicon_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "logo_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "theme"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/set_project_spec.rb b/clients/client/ruby/spec/models/set_project_spec.rb index 642923cce20..0e0741b97b2 100644 --- a/clients/client/ruby/spec/models/set_project_spec.rb +++ b/clients/client/ruby/spec/models/set_project_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of SetProject' do it 'should create an instance of SetProject' do - expect(instance).to be_instance_of(OryClient::SetProject) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SetProject) end end + describe 'test attribute "cors_admin"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "cors_public"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "services"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/settings_flow_spec.rb b/clients/client/ruby/spec/models/settings_flow_spec.rb index 80a4b4e433a..2d3cc4b3390 100644 --- a/clients/client/ruby/spec/models/settings_flow_spec.rb +++ b/clients/client/ruby/spec/models/settings_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,72 +22,80 @@ describe 'test an instance of SettingsFlow' do it 'should create an instance of SettingsFlow' do - expect(instance).to be_instance_of(OryClient::SettingsFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SettingsFlow) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "continue_with"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issued_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ui"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/settings_flow_state_spec.rb b/clients/client/ruby/spec/models/settings_flow_state_spec.rb index 2df20b3bde1..7710afd1924 100644 --- a/clients/client/ruby/spec/models/settings_flow_state_spec.rb +++ b/clients/client/ruby/spec/models/settings_flow_state_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of SettingsFlowState' do it 'should create an instance of SettingsFlowState' do - expect(instance).to be_instance_of(OryClient::SettingsFlowState) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SettingsFlowState) end end + end diff --git a/clients/client/ruby/spec/models/source_position_spec.rb b/clients/client/ruby/spec/models/source_position_spec.rb index 475e88f8d50..b8debc195ac 100644 --- a/clients/client/ruby/spec/models/source_position_spec.rb +++ b/clients/client/ruby/spec/models/source_position_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of SourcePosition' do it 'should create an instance of SourcePosition' do - expect(instance).to be_instance_of(OryClient::SourcePosition) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SourcePosition) end end + describe 'test attribute "line"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "column"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/stripe_customer_spec.rb b/clients/client/ruby/spec/models/stripe_customer_spec.rb deleted file mode 100644 index f17fc4e1f72..00000000000 --- a/clients/client/ruby/spec/models/stripe_customer_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Ory APIs - -#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - -The version of the OpenAPI document: v1.5.1 -Contact: support@ory.sh -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for OryClient::StripeCustomer -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe OryClient::StripeCustomer do - let(:instance) { OryClient::StripeCustomer.new } - - describe 'test an instance of StripeCustomer' do - it 'should create an instance of StripeCustomer' do - expect(instance).to be_instance_of(OryClient::StripeCustomer) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/clients/client/ruby/spec/models/subject_set_spec.rb b/clients/client/ruby/spec/models/subject_set_spec.rb index f582203ec4c..3b2cec3adc9 100644 --- a/clients/client/ruby/spec/models/subject_set_spec.rb +++ b/clients/client/ruby/spec/models/subject_set_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of SubjectSet' do it 'should create an instance of SubjectSet' do - expect(instance).to be_instance_of(OryClient::SubjectSet) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SubjectSet) end end + describe 'test attribute "namespace"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "object"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "relation"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/subscription_spec.rb b/clients/client/ruby/spec/models/subscription_spec.rb index ffd8bed467e..13d03a69396 100644 --- a/clients/client/ruby/spec/models/subscription_spec.rb +++ b/clients/client/ruby/spec/models/subscription_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of Subscription' do it 'should create an instance of Subscription' do - expect(instance).to be_instance_of(OryClient::Subscription) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Subscription) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "currency"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["usd", "eur"]) # validator.allowable_values.each do |value| # expect { instance.currency = value }.not_to raise_error @@ -43,7 +45,7 @@ describe 'test attribute "current_interval"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["monthly", "yearly"]) # validator.allowable_values.each do |value| # expect { instance.current_interval = value }.not_to raise_error @@ -53,61 +55,73 @@ describe 'test attribute "current_plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "current_plan_details"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "customer_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "interval_changes_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ongoing_stripe_checkout_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "payed_until"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "plan_changes_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "plan_changes_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "stripe_checkout_expires_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/successful_code_exchange_response_spec.rb b/clients/client/ruby/spec/models/successful_code_exchange_response_spec.rb index 810431289c7..a18f388b9da 100644 --- a/clients/client/ruby/spec/models/successful_code_exchange_response_spec.rb +++ b/clients/client/ruby/spec/models/successful_code_exchange_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of SuccessfulCodeExchangeResponse' do it 'should create an instance of SuccessfulCodeExchangeResponse' do - expect(instance).to be_instance_of(OryClient::SuccessfulCodeExchangeResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SuccessfulCodeExchangeResponse) end end + describe 'test attribute "session"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/successful_native_login_spec.rb b/clients/client/ruby/spec/models/successful_native_login_spec.rb index 7bac638254d..15585abe6c2 100644 --- a/clients/client/ruby/spec/models/successful_native_login_spec.rb +++ b/clients/client/ruby/spec/models/successful_native_login_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of SuccessfulNativeLogin' do it 'should create an instance of SuccessfulNativeLogin' do - expect(instance).to be_instance_of(OryClient::SuccessfulNativeLogin) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SuccessfulNativeLogin) end end + describe 'test attribute "session"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/successful_native_registration_spec.rb b/clients/client/ruby/spec/models/successful_native_registration_spec.rb index 42922e95a8a..07d35e26458 100644 --- a/clients/client/ruby/spec/models/successful_native_registration_spec.rb +++ b/clients/client/ruby/spec/models/successful_native_registration_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of SuccessfulNativeRegistration' do it 'should create an instance of SuccessfulNativeRegistration' do - expect(instance).to be_instance_of(OryClient::SuccessfulNativeRegistration) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SuccessfulNativeRegistration) end end + describe 'test attribute "continue_with"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "session_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/successful_project_update_spec.rb b/clients/client/ruby/spec/models/successful_project_update_spec.rb index b5458469ccd..7ad7038452e 100644 --- a/clients/client/ruby/spec/models/successful_project_update_spec.rb +++ b/clients/client/ruby/spec/models/successful_project_update_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of SuccessfulProjectUpdate' do it 'should create an instance of SuccessfulProjectUpdate' do - expect(instance).to be_instance_of(OryClient::SuccessfulProjectUpdate) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::SuccessfulProjectUpdate) end end + describe 'test attribute "project"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "warnings"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/token_pagination_headers_spec.rb b/clients/client/ruby/spec/models/token_pagination_headers_spec.rb index 4aad534652a..425e758759a 100644 --- a/clients/client/ruby/spec/models/token_pagination_headers_spec.rb +++ b/clients/client/ruby/spec/models/token_pagination_headers_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of TokenPaginationHeaders' do it 'should create an instance of TokenPaginationHeaders' do - expect(instance).to be_instance_of(OryClient::TokenPaginationHeaders) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TokenPaginationHeaders) end end + describe 'test attribute "link"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "x_total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/token_pagination_request_parameters_spec.rb b/clients/client/ruby/spec/models/token_pagination_request_parameters_spec.rb index a89ed568920..4b24998e736 100644 --- a/clients/client/ruby/spec/models/token_pagination_request_parameters_spec.rb +++ b/clients/client/ruby/spec/models/token_pagination_request_parameters_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of TokenPaginationRequestParameters' do it 'should create an instance of TokenPaginationRequestParameters' do - expect(instance).to be_instance_of(OryClient::TokenPaginationRequestParameters) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TokenPaginationRequestParameters) end end + describe 'test attribute "page_size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/token_pagination_response_headers_spec.rb b/clients/client/ruby/spec/models/token_pagination_response_headers_spec.rb index 7b9c8659005..e87c3703f2e 100644 --- a/clients/client/ruby/spec/models/token_pagination_response_headers_spec.rb +++ b/clients/client/ruby/spec/models/token_pagination_response_headers_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of TokenPaginationResponseHeaders' do it 'should create an instance of TokenPaginationResponseHeaders' do - expect(instance).to be_instance_of(OryClient::TokenPaginationResponseHeaders) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TokenPaginationResponseHeaders) end end + describe 'test attribute "link"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "x_total_count"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/token_pagination_spec.rb b/clients/client/ruby/spec/models/token_pagination_spec.rb index 821da32ff2b..7856541c875 100644 --- a/clients/client/ruby/spec/models/token_pagination_spec.rb +++ b/clients/client/ruby/spec/models/token_pagination_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of TokenPagination' do it 'should create an instance of TokenPagination' do - expect(instance).to be_instance_of(OryClient::TokenPagination) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TokenPagination) end end + describe 'test attribute "page_size"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "page_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb b/clients/client/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb index dd18ccc69d2..441ff9c3947 100644 --- a/clients/client/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +++ b/clients/client/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of TrustOAuth2JwtGrantIssuer' do it 'should create an instance of TrustOAuth2JwtGrantIssuer' do - expect(instance).to be_instance_of(OryClient::TrustOAuth2JwtGrantIssuer) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TrustOAuth2JwtGrantIssuer) end end + describe 'test attribute "allow_any_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "jwk"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb b/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb index 5e96bcf0d5b..c51019e1def 100644 --- a/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +++ b/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of TrustedOAuth2JwtGrantIssuer' do it 'should create an instance of TrustedOAuth2JwtGrantIssuer' do - expect(instance).to be_instance_of(OryClient::TrustedOAuth2JwtGrantIssuer) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TrustedOAuth2JwtGrantIssuer) end end + describe 'test attribute "allow_any_subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issuer"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "public_key"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "scope"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subject"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb b/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb index 6432f1fbd12..5fea236bfa9 100644 --- a/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +++ b/clients/client/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of TrustedOAuth2JwtGrantJsonWebKey' do it 'should create an instance of TrustedOAuth2JwtGrantJsonWebKey' do - expect(instance).to be_instance_of(OryClient::TrustedOAuth2JwtGrantJsonWebKey) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::TrustedOAuth2JwtGrantJsonWebKey) end end + describe 'test attribute "kid"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "set"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_container_spec.rb b/clients/client/ruby/spec/models/ui_container_spec.rb index 12b3290062e..a474d28a3a2 100644 --- a/clients/client/ruby/spec/models/ui_container_spec.rb +++ b/clients/client/ruby/spec/models/ui_container_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of UiContainer' do it 'should create an instance of UiContainer' do - expect(instance).to be_instance_of(OryClient::UiContainer) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiContainer) end end + describe 'test attribute "action"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "messages"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "nodes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_node_anchor_attributes_spec.rb b/clients/client/ruby/spec/models/ui_node_anchor_attributes_spec.rb index 5ac6fe23052..55afeacba0c 100644 --- a/clients/client/ruby/spec/models/ui_node_anchor_attributes_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_anchor_attributes_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of UiNodeAnchorAttributes' do it 'should create an instance of UiNodeAnchorAttributes' do - expect(instance).to be_instance_of(OryClient::UiNodeAnchorAttributes) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNodeAnchorAttributes) end end + describe 'test attribute "href"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "node_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "title"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_node_attributes_spec.rb b/clients/client/ruby/spec/models/ui_node_attributes_spec.rb index 54c723e459a..14b7e78dd96 100644 --- a/clients/client/ruby/spec/models/ui_node_attributes_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_attributes_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/ui_node_image_attributes_spec.rb b/clients/client/ruby/spec/models/ui_node_image_attributes_spec.rb index 82eb77f843d..d3a854eb9cc 100644 --- a/clients/client/ruby/spec/models/ui_node_image_attributes_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_image_attributes_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of UiNodeImageAttributes' do it 'should create an instance of UiNodeImageAttributes' do - expect(instance).to be_instance_of(OryClient::UiNodeImageAttributes) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNodeImageAttributes) end end + describe 'test attribute "height"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "node_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "src"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "width"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_node_input_attributes_spec.rb b/clients/client/ruby/spec/models/ui_node_input_attributes_spec.rb index 3b902c00988..ad9efbe03c1 100644 --- a/clients/client/ruby/spec/models/ui_node_input_attributes_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_input_attributes_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of UiNodeInputAttributes' do it 'should create an instance of UiNodeInputAttributes' do - expect(instance).to be_instance_of(OryClient::UiNodeInputAttributes) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNodeInputAttributes) end end + describe 'test attribute "autocomplete"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["email", "tel", "url", "current-password", "new-password", "one-time-code"]) # validator.allowable_values.each do |value| # expect { instance.autocomplete = value }.not_to raise_error @@ -37,49 +39,49 @@ describe 'test attribute "disabled"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "node_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "onclick"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "pattern"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "required"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "password", "number", "checkbox", "hidden", "email", "tel", "submit", "button", "datetime-local", "date", "url"]) # validator.allowable_values.each do |value| # expect { instance.type = value }.not_to raise_error @@ -89,7 +91,7 @@ describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_node_meta_spec.rb b/clients/client/ruby/spec/models/ui_node_meta_spec.rb index f12a0294d5f..56077f5cda8 100644 --- a/clients/client/ruby/spec/models/ui_node_meta_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_meta_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of UiNodeMeta' do it 'should create an instance of UiNodeMeta' do - expect(instance).to be_instance_of(OryClient::UiNodeMeta) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNodeMeta) end end + describe 'test attribute "label"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_node_script_attributes_spec.rb b/clients/client/ruby/spec/models/ui_node_script_attributes_spec.rb index c379720c5c6..a827c081f44 100644 --- a/clients/client/ruby/spec/models/ui_node_script_attributes_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_script_attributes_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,60 +22,62 @@ describe 'test an instance of UiNodeScriptAttributes' do it 'should create an instance of UiNodeScriptAttributes' do - expect(instance).to be_instance_of(OryClient::UiNodeScriptAttributes) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNodeScriptAttributes) end end + describe 'test attribute "async"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "crossorigin"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "integrity"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "node_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "nonce"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "referrerpolicy"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "src"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_node_spec.rb b/clients/client/ruby/spec/models/ui_node_spec.rb index b7cee7085a6..d264ce2843c 100644 --- a/clients/client/ruby/spec/models/ui_node_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of UiNode' do it 'should create an instance of UiNode' do - expect(instance).to be_instance_of(OryClient::UiNode) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNode) end end + describe 'test attribute "attributes"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "group"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["default", "password", "oidc", "profile", "link", "code", "totp", "lookup_secret", "webauthn"]) # validator.allowable_values.each do |value| # expect { instance.group = value }.not_to raise_error @@ -43,19 +45,19 @@ describe 'test attribute "messages"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "meta"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text", "input", "img", "a", "script"]) # validator.allowable_values.each do |value| # expect { instance.type = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/ui_node_text_attributes_spec.rb b/clients/client/ruby/spec/models/ui_node_text_attributes_spec.rb index 5ec51bbaa5e..a4d1b3c5479 100644 --- a/clients/client/ruby/spec/models/ui_node_text_attributes_spec.rb +++ b/clients/client/ruby/spec/models/ui_node_text_attributes_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of UiNodeTextAttributes' do it 'should create an instance of UiNodeTextAttributes' do - expect(instance).to be_instance_of(OryClient::UiNodeTextAttributes) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiNodeTextAttributes) end end + describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "node_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "text"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/ui_text_spec.rb b/clients/client/ruby/spec/models/ui_text_spec.rb index 56b80088dba..83c32627939 100644 --- a/clients/client/ruby/spec/models/ui_text_spec.rb +++ b/clients/client/ruby/spec/models/ui_text_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of UiText' do it 'should create an instance of UiText' do - expect(instance).to be_instance_of(OryClient::UiText) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UiText) end end + describe 'test attribute "context"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "text"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["info", "error", "success"]) # validator.allowable_values.each do |value| # expect { instance.type = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/update_identity_body_spec.rb b/clients/client/ruby/spec/models/update_identity_body_spec.rb index 43f607f66be..c61da53ea55 100644 --- a/clients/client/ruby/spec/models/update_identity_body_spec.rb +++ b/clients/client/ruby/spec/models/update_identity_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,48 @@ describe 'test an instance of UpdateIdentityBody' do it 'should create an instance of UpdateIdentityBody' do - expect(instance).to be_instance_of(OryClient::UpdateIdentityBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateIdentityBody) end end + describe 'test attribute "credentials"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata_admin"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "metadata_public"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "schema_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["active", "inactive"]) + # validator.allowable_values.each do |value| + # expect { instance.state = value }.not_to raise_error + # end end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_login_flow_body_spec.rb b/clients/client/ruby/spec/models/update_login_flow_body_spec.rb index aba7b798c51..94d4e855d66 100644 --- a/clients/client/ruby/spec/models/update_login_flow_body_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/update_login_flow_with_code_method_spec.rb b/clients/client/ruby/spec/models/update_login_flow_with_code_method_spec.rb index 44ac7f229e4..6ed06152aa5 100644 --- a/clients/client/ruby/spec/models/update_login_flow_with_code_method_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_with_code_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,44 @@ describe 'test an instance of UpdateLoginFlowWithCodeMethod' do it 'should create an instance of UpdateLoginFlowWithCodeMethod' do - expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithCodeMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithCodeMethod) end end + describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "resend"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_login_flow_with_lookup_secret_method_spec.rb b/clients/client/ruby/spec/models/update_login_flow_with_lookup_secret_method_spec.rb index 43d1601297e..e130fb19a18 100644 --- a/clients/client/ruby/spec/models/update_login_flow_with_lookup_secret_method_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_with_lookup_secret_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of UpdateLoginFlowWithLookupSecretMethod' do it 'should create an instance of UpdateLoginFlowWithLookupSecretMethod' do - expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithLookupSecretMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithLookupSecretMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "lookup_secret"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_login_flow_with_oidc_method_spec.rb b/clients/client/ruby/spec/models/update_login_flow_with_oidc_method_spec.rb index 1e55a0dc3f3..fe536f41eea 100644 --- a/clients/client/ruby/spec/models/update_login_flow_with_oidc_method_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_with_oidc_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,48 +22,56 @@ describe 'test an instance of UpdateLoginFlowWithOidcMethod' do it 'should create an instance of UpdateLoginFlowWithOidcMethod' do - expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithOidcMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithOidcMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token_nonce"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "upstream_parameters"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_login_flow_with_password_method_spec.rb b/clients/client/ruby/spec/models/update_login_flow_with_password_method_spec.rb index 277db83cfe3..0b3bc2bd820 100644 --- a/clients/client/ruby/spec/models/update_login_flow_with_password_method_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_with_password_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,44 @@ describe 'test an instance of UpdateLoginFlowWithPasswordMethod' do it 'should create an instance of UpdateLoginFlowWithPasswordMethod' do - expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithPasswordMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithPasswordMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "password_identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_login_flow_with_totp_method_spec.rb b/clients/client/ruby/spec/models/update_login_flow_with_totp_method_spec.rb index 2f3250db6c9..9a23bbcfce3 100644 --- a/clients/client/ruby/spec/models/update_login_flow_with_totp_method_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_with_totp_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,32 @@ describe 'test an instance of UpdateLoginFlowWithTotpMethod' do it 'should create an instance of UpdateLoginFlowWithTotpMethod' do - expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithTotpMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithTotpMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "totp_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_login_flow_with_web_authn_method_spec.rb b/clients/client/ruby/spec/models/update_login_flow_with_web_authn_method_spec.rb index 832efc1ad59..124a6aadfd4 100644 --- a/clients/client/ruby/spec/models/update_login_flow_with_web_authn_method_spec.rb +++ b/clients/client/ruby/spec/models/update_login_flow_with_web_authn_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,38 @@ describe 'test an instance of UpdateLoginFlowWithWebAuthnMethod' do it 'should create an instance of UpdateLoginFlowWithWebAuthnMethod' do - expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithWebAuthnMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateLoginFlowWithWebAuthnMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "identifier"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "webauthn_login"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_recovery_flow_body_spec.rb b/clients/client/ruby/spec/models/update_recovery_flow_body_spec.rb index b623ddefe05..fdcd8d69714 100644 --- a/clients/client/ruby/spec/models/update_recovery_flow_body_spec.rb +++ b/clients/client/ruby/spec/models/update_recovery_flow_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/update_recovery_flow_with_code_method_spec.rb b/clients/client/ruby/spec/models/update_recovery_flow_with_code_method_spec.rb index ca97749d62c..f6c7e818df2 100644 --- a/clients/client/ruby/spec/models/update_recovery_flow_with_code_method_spec.rb +++ b/clients/client/ruby/spec/models/update_recovery_flow_with_code_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of UpdateRecoveryFlowWithCodeMethod' do it 'should create an instance of UpdateRecoveryFlowWithCodeMethod' do - expect(instance).to be_instance_of(OryClient::UpdateRecoveryFlowWithCodeMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateRecoveryFlowWithCodeMethod) end end + describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.method = value }.not_to raise_error @@ -53,4 +55,10 @@ end end + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/clients/client/ruby/spec/models/update_recovery_flow_with_link_method_spec.rb b/clients/client/ruby/spec/models/update_recovery_flow_with_link_method_spec.rb index e4e9da00419..c746081942d 100644 --- a/clients/client/ruby/spec/models/update_recovery_flow_with_link_method_spec.rb +++ b/clients/client/ruby/spec/models/update_recovery_flow_with_link_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of UpdateRecoveryFlowWithLinkMethod' do it 'should create an instance of UpdateRecoveryFlowWithLinkMethod' do - expect(instance).to be_instance_of(OryClient::UpdateRecoveryFlowWithLinkMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateRecoveryFlowWithLinkMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.method = value }.not_to raise_error @@ -47,4 +49,10 @@ end end + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/clients/client/ruby/spec/models/update_registration_flow_body_spec.rb b/clients/client/ruby/spec/models/update_registration_flow_body_spec.rb index 83ac69f154d..00a75cc6645 100644 --- a/clients/client/ruby/spec/models/update_registration_flow_body_spec.rb +++ b/clients/client/ruby/spec/models/update_registration_flow_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/update_registration_flow_with_code_method_spec.rb b/clients/client/ruby/spec/models/update_registration_flow_with_code_method_spec.rb index 5236518b3ed..a69d81e2c15 100644 --- a/clients/client/ruby/spec/models/update_registration_flow_with_code_method_spec.rb +++ b/clients/client/ruby/spec/models/update_registration_flow_with_code_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of UpdateRegistrationFlowWithCodeMethod' do it 'should create an instance of UpdateRegistrationFlowWithCodeMethod' do - expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithCodeMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithCodeMethod) end end + describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "resend"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "transient_payload"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_registration_flow_with_oidc_method_spec.rb b/clients/client/ruby/spec/models/update_registration_flow_with_oidc_method_spec.rb index 5869a4a0c0e..e9a68008910 100644 --- a/clients/client/ruby/spec/models/update_registration_flow_with_oidc_method_spec.rb +++ b/clients/client/ruby/spec/models/update_registration_flow_with_oidc_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of UpdateRegistrationFlowWithOidcMethod' do it 'should create an instance of UpdateRegistrationFlowWithOidcMethod' do - expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithOidcMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithOidcMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id_token_nonce"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "provider"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "transient_payload"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "upstream_parameters"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_registration_flow_with_password_method_spec.rb b/clients/client/ruby/spec/models/update_registration_flow_with_password_method_spec.rb index 36a0d43067f..8aba0d3032d 100644 --- a/clients/client/ruby/spec/models/update_registration_flow_with_password_method_spec.rb +++ b/clients/client/ruby/spec/models/update_registration_flow_with_password_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of UpdateRegistrationFlowWithPasswordMethod' do it 'should create an instance of UpdateRegistrationFlowWithPasswordMethod' do - expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithPasswordMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithPasswordMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "transient_payload"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_registration_flow_with_web_authn_method_spec.rb b/clients/client/ruby/spec/models/update_registration_flow_with_web_authn_method_spec.rb index 708107c8fa8..fe13e0b2d21 100644 --- a/clients/client/ruby/spec/models/update_registration_flow_with_web_authn_method_spec.rb +++ b/clients/client/ruby/spec/models/update_registration_flow_with_web_authn_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,44 @@ describe 'test an instance of UpdateRegistrationFlowWithWebAuthnMethod' do it 'should create an instance of UpdateRegistrationFlowWithWebAuthnMethod' do - expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithWebAuthnMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateRegistrationFlowWithWebAuthnMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "transient_payload"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "webauthn_register"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "webauthn_register_displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_body_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_body_spec.rb index 0d7ab1e6f8d..be3046620c9 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_body_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_with_lookup_method_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_with_lookup_method_spec.rb index f4b08728c45..15602193fb9 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_with_lookup_method_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_with_lookup_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,50 @@ describe 'test an instance of UpdateSettingsFlowWithLookupMethod' do it 'should create an instance of UpdateSettingsFlowWithLookupMethod' do - expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithLookupMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithLookupMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "lookup_secret_confirm"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "lookup_secret_disable"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "lookup_secret_regenerate"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "lookup_secret_reveal"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_with_oidc_method_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_with_oidc_method_spec.rb index 44938ff3b70..a6934f2707c 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_with_oidc_method_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_with_oidc_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,42 +22,50 @@ describe 'test an instance of UpdateSettingsFlowWithOidcMethod' do it 'should create an instance of UpdateSettingsFlowWithOidcMethod' do - expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithOidcMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithOidcMethod) end end + describe 'test attribute "flow"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "link"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "unlink"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "upstream_parameters"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_with_password_method_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_with_password_method_spec.rb index 96fda68657a..052ffbbf9e8 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_with_password_method_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_with_password_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,32 @@ describe 'test an instance of UpdateSettingsFlowWithPasswordMethod' do it 'should create an instance of UpdateSettingsFlowWithPasswordMethod' do - expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithPasswordMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithPasswordMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "password"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_with_profile_method_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_with_profile_method_spec.rb index b6669875f33..f8b957f6fe3 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_with_profile_method_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_with_profile_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,32 @@ describe 'test an instance of UpdateSettingsFlowWithProfileMethod' do it 'should create an instance of UpdateSettingsFlowWithProfileMethod' do - expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithProfileMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithProfileMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "traits"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_with_totp_method_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_with_totp_method_spec.rb index d8474fbd2f1..e16abaa149d 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_with_totp_method_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_with_totp_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,38 @@ describe 'test an instance of UpdateSettingsFlowWithTotpMethod' do it 'should create an instance of UpdateSettingsFlowWithTotpMethod' do - expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithTotpMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithTotpMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "totp_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "totp_unlink"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_settings_flow_with_web_authn_method_spec.rb b/clients/client/ruby/spec/models/update_settings_flow_with_web_authn_method_spec.rb index 16c80083cde..3a0ffba1752 100644 --- a/clients/client/ruby/spec/models/update_settings_flow_with_web_authn_method_spec.rb +++ b/clients/client/ruby/spec/models/update_settings_flow_with_web_authn_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,44 @@ describe 'test an instance of UpdateSettingsFlowWithWebAuthnMethod' do it 'should create an instance of UpdateSettingsFlowWithWebAuthnMethod' do - expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithWebAuthnMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSettingsFlowWithWebAuthnMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "webauthn_register"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "webauthn_register_displayname"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "webauthn_remove"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_subscription_body_spec.rb b/clients/client/ruby/spec/models/update_subscription_body_spec.rb index a22c95309a2..684e09c8bd2 100644 --- a/clients/client/ruby/spec/models/update_subscription_body_spec.rb +++ b/clients/client/ruby/spec/models/update_subscription_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of UpdateSubscriptionBody' do it 'should create an instance of UpdateSubscriptionBody' do - expect(instance).to be_instance_of(OryClient::UpdateSubscriptionBody) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateSubscriptionBody) end end + describe 'test attribute "interval"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["monthly", "yearly"]) # validator.allowable_values.each do |value| # expect { instance.interval = value }.not_to raise_error @@ -37,13 +39,13 @@ describe 'test attribute "plan"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/update_verification_flow_body_spec.rb b/clients/client/ruby/spec/models/update_verification_flow_body_spec.rb index 3208dc04224..c97a0f4e9e8 100644 --- a/clients/client/ruby/spec/models/update_verification_flow_body_spec.rb +++ b/clients/client/ruby/spec/models/update_verification_flow_body_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -38,6 +38,7 @@ describe '.build' do it 'returns the correct model' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end end diff --git a/clients/client/ruby/spec/models/update_verification_flow_with_code_method_spec.rb b/clients/client/ruby/spec/models/update_verification_flow_with_code_method_spec.rb index ebd592ccb98..e3e43e971fc 100644 --- a/clients/client/ruby/spec/models/update_verification_flow_with_code_method_spec.rb +++ b/clients/client/ruby/spec/models/update_verification_flow_with_code_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,30 +22,32 @@ describe 'test an instance of UpdateVerificationFlowWithCodeMethod' do it 'should create an instance of UpdateVerificationFlowWithCodeMethod' do - expect(instance).to be_instance_of(OryClient::UpdateVerificationFlowWithCodeMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateVerificationFlowWithCodeMethod) end end + describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.method = value }.not_to raise_error @@ -53,4 +55,10 @@ end end + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/clients/client/ruby/spec/models/update_verification_flow_with_link_method_spec.rb b/clients/client/ruby/spec/models/update_verification_flow_with_link_method_spec.rb index 632c208b67c..b90869d2fd1 100644 --- a/clients/client/ruby/spec/models/update_verification_flow_with_link_method_spec.rb +++ b/clients/client/ruby/spec/models/update_verification_flow_with_link_method_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,24 +22,26 @@ describe 'test an instance of UpdateVerificationFlowWithLinkMethod' do it 'should create an instance of UpdateVerificationFlowWithLinkMethod' do - expect(instance).to be_instance_of(OryClient::UpdateVerificationFlowWithLinkMethod) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateVerificationFlowWithLinkMethod) end end + describe 'test attribute "csrf_token"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "email"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "method"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["link", "code"]) # validator.allowable_values.each do |value| # expect { instance.method = value }.not_to raise_error @@ -47,4 +49,10 @@ end end + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + end diff --git a/clients/client/ruby/spec/models/update_workspace_payload_spec.rb b/clients/client/ruby/spec/models/update_workspace_payload_spec.rb new file mode 100644 index 00000000000..29731c29930 --- /dev/null +++ b/clients/client/ruby/spec/models/update_workspace_payload_spec.rb @@ -0,0 +1,36 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::UpdateWorkspacePayload +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::UpdateWorkspacePayload do + let(:instance) { OryClient::UpdateWorkspacePayload.new } + + describe 'test an instance of UpdateWorkspacePayload' do + it 'should create an instance of UpdateWorkspacePayload' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::UpdateWorkspacePayload) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/usage_spec.rb b/clients/client/ruby/spec/models/usage_spec.rb index 6cf2dc59de8..8c7ef0ce2c6 100644 --- a/clients/client/ruby/spec/models/usage_spec.rb +++ b/clients/client/ruby/spec/models/usage_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of Usage' do it 'should create an instance of Usage' do - expect(instance).to be_instance_of(OryClient::Usage) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Usage) end end + describe 'test attribute "generic_usage"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/verifiable_credential_priming_response_spec.rb b/clients/client/ruby/spec/models/verifiable_credential_priming_response_spec.rb index acd9cde9f96..5b0e5eee7e5 100644 --- a/clients/client/ruby/spec/models/verifiable_credential_priming_response_spec.rb +++ b/clients/client/ruby/spec/models/verifiable_credential_priming_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of VerifiableCredentialPrimingResponse' do it 'should create an instance of VerifiableCredentialPrimingResponse' do - expect(instance).to be_instance_of(OryClient::VerifiableCredentialPrimingResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::VerifiableCredentialPrimingResponse) end end + describe 'test attribute "c_nonce"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "c_nonce_expires_in"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_debug"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_description"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "error_hint"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status_code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/verifiable_credential_proof_spec.rb b/clients/client/ruby/spec/models/verifiable_credential_proof_spec.rb index b9841946bad..0d7f7c4c171 100644 --- a/clients/client/ruby/spec/models/verifiable_credential_proof_spec.rb +++ b/clients/client/ruby/spec/models/verifiable_credential_proof_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of VerifiableCredentialProof' do it 'should create an instance of VerifiableCredentialProof' do - expect(instance).to be_instance_of(OryClient::VerifiableCredentialProof) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::VerifiableCredentialProof) end end + describe 'test attribute "jwt"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "proof_type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/verifiable_credential_response_spec.rb b/clients/client/ruby/spec/models/verifiable_credential_response_spec.rb index c11cd62bb69..78b5d194097 100644 --- a/clients/client/ruby/spec/models/verifiable_credential_response_spec.rb +++ b/clients/client/ruby/spec/models/verifiable_credential_response_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of VerifiableCredentialResponse' do it 'should create an instance of VerifiableCredentialResponse' do - expect(instance).to be_instance_of(OryClient::VerifiableCredentialResponse) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::VerifiableCredentialResponse) end end + describe 'test attribute "credential_draft_00"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "format"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/verifiable_identity_address_spec.rb b/clients/client/ruby/spec/models/verifiable_identity_address_spec.rb index cbf7c5b6d7c..b5d47596a73 100644 --- a/clients/client/ruby/spec/models/verifiable_identity_address_spec.rb +++ b/clients/client/ruby/spec/models/verifiable_identity_address_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,54 +22,56 @@ describe 'test an instance of VerifiableIdentityAddress' do it 'should create an instance of VerifiableIdentityAddress' do - expect(instance).to be_instance_of(OryClient::VerifiableIdentityAddress) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::VerifiableIdentityAddress) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "status"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "value"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verified"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "verified_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "via"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["email", "sms"]) # validator.allowable_values.each do |value| # expect { instance.via = value }.not_to raise_error diff --git a/clients/client/ruby/spec/models/verification_flow_spec.rb b/clients/client/ruby/spec/models/verification_flow_spec.rb index d6d4a2a71a4..0eb67f93b1f 100644 --- a/clients/client/ruby/spec/models/verification_flow_spec.rb +++ b/clients/client/ruby/spec/models/verification_flow_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,60 +22,68 @@ describe 'test an instance of VerificationFlow' do it 'should create an instance of VerificationFlow' do - expect(instance).to be_instance_of(OryClient::VerificationFlow) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::VerificationFlow) end end + describe 'test attribute "active"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "expires_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "issued_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "request_url"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "return_to"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "state"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "transient_payload"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "type"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "ui"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/verification_flow_state_spec.rb b/clients/client/ruby/spec/models/verification_flow_state_spec.rb index 57d89b567a1..e9a3981f0fe 100644 --- a/clients/client/ruby/spec/models/verification_flow_state_spec.rb +++ b/clients/client/ruby/spec/models/verification_flow_state_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,7 +22,9 @@ describe 'test an instance of VerificationFlowState' do it 'should create an instance of VerificationFlowState' do - expect(instance).to be_instance_of(OryClient::VerificationFlowState) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::VerificationFlowState) end end + end diff --git a/clients/client/ruby/spec/models/version_spec.rb b/clients/client/ruby/spec/models/version_spec.rb index b4256f4ff82..c83dab1f30e 100644 --- a/clients/client/ruby/spec/models/version_spec.rb +++ b/clients/client/ruby/spec/models/version_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,12 +22,14 @@ describe 'test an instance of Version' do it 'should create an instance of Version' do - expect(instance).to be_instance_of(OryClient::Version) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Version) end end + describe 'test attribute "version"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/warning_spec.rb b/clients/client/ruby/spec/models/warning_spec.rb index e4c0b7c2090..97099a9c48b 100644 --- a/clients/client/ruby/spec/models/warning_spec.rb +++ b/clients/client/ruby/spec/models/warning_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,18 +22,20 @@ describe 'test an instance of Warning' do it 'should create an instance of Warning' do - expect(instance).to be_instance_of(OryClient::Warning) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Warning) end end + describe 'test attribute "code"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "message"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/models/workspace_meta_spec.rb b/clients/client/ruby/spec/models/workspace_meta_spec.rb new file mode 100644 index 00000000000..4ae11cae2b0 --- /dev/null +++ b/clients/client/ruby/spec/models/workspace_meta_spec.rb @@ -0,0 +1,66 @@ +=begin +#Ory APIs + +#Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + +The version of the OpenAPI document: v1.8.1 +Contact: support@ory.sh +Generated by: https://openapi-generator.tech +OpenAPI Generator version: 7.3.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for OryClient::WorkspaceMeta +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe OryClient::WorkspaceMeta do + let(:instance) { OryClient::WorkspaceMeta.new } + + describe 'test an instance of WorkspaceMeta' do + it 'should create an instance of WorkspaceMeta' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::WorkspaceMeta) + end + end + + describe 'test attribute "created_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subscription_id"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "subscription_plan"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "updated_at"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/clients/client/ruby/spec/models/workspace_spec.rb b/clients/client/ruby/spec/models/workspace_spec.rb index 9d753d03f62..07e15f7cb82 100644 --- a/clients/client/ruby/spec/models/workspace_spec.rb +++ b/clients/client/ruby/spec/models/workspace_spec.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end @@ -22,36 +22,38 @@ describe 'test an instance of Workspace' do it 'should create an instance of Workspace' do - expect(instance).to be_instance_of(OryClient::Workspace) + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(OryClient::Workspace) end end + describe 'test attribute "created_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "name"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "subscription_id"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end describe 'test attribute "updated_at"' do it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end diff --git a/clients/client/ruby/spec/spec_helper.rb b/clients/client/ruby/spec/spec_helper.rb index 4cf721614d2..635de7e2d20 100644 --- a/clients/client/ruby/spec/spec_helper.rb +++ b/clients/client/ruby/spec/spec_helper.rb @@ -3,10 +3,10 @@ #Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. -The version of the OpenAPI document: v1.5.1 +The version of the OpenAPI document: v1.8.1 Contact: support@ory.sh Generated by: https://openapi-generator.tech -OpenAPI Generator version: 6.0.1 +OpenAPI Generator version: 7.3.0 =end diff --git a/clients/client/rust/.openapi-generator/FILES b/clients/client/rust/.openapi-generator/FILES index e18a2b96eb9..2d5c812a9a8 100644 --- a/clients/client/rust/.openapi-generator/FILES +++ b/clients/client/rust/.openapi-generator/FILES @@ -41,8 +41,11 @@ docs/CreateRecoveryCodeForIdentityBody.md docs/CreateRecoveryLinkForIdentityBody.md docs/CreateRelationshipBody.md docs/CreateSubscriptionBody.md +docs/CreateSubscriptionCommon.md docs/CreateVerifiableCredentialRequestBody.md docs/CreateWorkspaceMemberInviteBody.md +docs/CreateWorkspacePayload.md +docs/CreateWorkspaceSubscriptionBody.md docs/CredentialSupportedDraft00.md docs/CustomDomain.md docs/DeleteMySessionsCount.md @@ -80,12 +83,10 @@ 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/IdentitySchemaPreset.md -docs/IdentityState.md docs/IdentityWithCredentials.md docs/IdentityWithCredentialsOidc.md docs/IdentityWithCredentialsOidcConfig.md @@ -96,7 +97,6 @@ docs/InternalGetProjectBrandingBody.md docs/InternalIsAxWelcomeScreenEnabledForProjectBody.md docs/InternalIsOwnerForProjectBySlugBody.md docs/InternalIsOwnerForProjectBySlugResponse.md -docs/InternalProvisionMockSubscription.md docs/IntrospectedOAuth2Token.md docs/IsOwnerForProjectBySlug.md docs/IsReady200Response.md @@ -109,6 +109,7 @@ docs/KetoNamespace.md docs/ListEventStreams.md docs/ListMyWorkspacesResponse.md docs/ListOrganizationsResponse.md +docs/ListWorkspaceProjectsResponse.md docs/LoginFlow.md docs/LoginFlowState.md docs/LogoutFlow.md @@ -119,6 +120,7 @@ docs/Message.md docs/MessageDispatch.md docs/MetadataApi.md docs/MetricsDatapoint.md +docs/MigrationOptions.md docs/Namespace.md docs/NeedsPrivilegedSessionError.md docs/NormalizedProject.md @@ -150,6 +152,7 @@ docs/ParseError.md docs/PatchIdentitiesBody.md docs/PerformNativeLogoutBody.md docs/PermissionApi.md +docs/PermissionsOnWorkpaceResponse.md docs/Plan.md docs/PlanDetails.md docs/PostCheckPermissionBody.md @@ -163,6 +166,7 @@ docs/ProjectBrandingTheme.md docs/ProjectCors.md docs/ProjectEventsDatapoint.md docs/ProjectHost.md +docs/ProjectMember.md docs/ProjectMetadata.md docs/ProjectServiceIdentity.md docs/ProjectServiceOAuth2.md @@ -198,7 +202,6 @@ docs/SetProjectBrandingThemeBody.md docs/SettingsFlow.md docs/SettingsFlowState.md docs/SourcePosition.md -docs/StripeCustomer.md docs/SubjectSet.md docs/Subscription.md docs/SuccessfulCodeExchangeResponse.md @@ -249,6 +252,7 @@ docs/UpdateSubscriptionBody.md docs/UpdateVerificationFlowBody.md docs/UpdateVerificationFlowWithCodeMethod.md docs/UpdateVerificationFlowWithLinkMethod.md +docs/UpdateWorkspacePayload.md docs/Usage.md docs/VerifiableCredentialPrimingResponse.md docs/VerifiableCredentialProof.md @@ -260,6 +264,7 @@ docs/Version.md docs/Warning.md docs/WellknownApi.md docs/Workspace.md +docs/WorkspaceMeta.md git_push.sh src/apis/configuration.rs src/apis/courier_api.rs @@ -313,8 +318,11 @@ src/models/create_recovery_code_for_identity_body.rs src/models/create_recovery_link_for_identity_body.rs src/models/create_relationship_body.rs src/models/create_subscription_body.rs +src/models/create_subscription_common.rs src/models/create_verifiable_credential_request_body.rs src/models/create_workspace_member_invite_body.rs +src/models/create_workspace_payload.rs +src/models/create_workspace_subscription_body.rs src/models/credential_supported_draft00.rs src/models/custom_domain.rs src/models/delete_my_sessions_count.rs @@ -349,12 +357,10 @@ src/models/identity_credentials_code.rs src/models/identity_credentials_oidc.rs src/models/identity_credentials_oidc_provider.rs src/models/identity_credentials_password.rs -src/models/identity_credentials_type.rs src/models/identity_patch.rs src/models/identity_patch_response.rs src/models/identity_schema_container.rs src/models/identity_schema_preset.rs -src/models/identity_state.rs src/models/identity_with_credentials.rs src/models/identity_with_credentials_oidc.rs src/models/identity_with_credentials_oidc_config.rs @@ -365,7 +371,6 @@ src/models/internal_get_project_branding_body.rs src/models/internal_is_ax_welcome_screen_enabled_for_project_body.rs src/models/internal_is_owner_for_project_by_slug_body.rs src/models/internal_is_owner_for_project_by_slug_response.rs -src/models/internal_provision_mock_subscription.rs src/models/introspected_o_auth2_token.rs src/models/is_owner_for_project_by_slug.rs src/models/is_ready_200_response.rs @@ -377,6 +382,7 @@ src/models/keto_namespace.rs src/models/list_event_streams.rs src/models/list_my_workspaces_response.rs src/models/list_organizations_response.rs +src/models/list_workspace_projects_response.rs src/models/login_flow.rs src/models/login_flow_state.rs src/models/logout_flow.rs @@ -386,6 +392,7 @@ src/models/member_invite.rs src/models/message.rs src/models/message_dispatch.rs src/models/metrics_datapoint.rs +src/models/migration_options.rs src/models/mod.rs src/models/namespace.rs src/models/needs_privileged_session_error.rs @@ -415,6 +422,7 @@ src/models/pagination_headers.rs src/models/parse_error.rs src/models/patch_identities_body.rs src/models/perform_native_logout_body.rs +src/models/permissions_on_workpace_response.rs src/models/plan.rs src/models/plan_details.rs src/models/post_check_permission_body.rs @@ -427,6 +435,7 @@ src/models/project_branding_theme.rs src/models/project_cors.rs src/models/project_events_datapoint.rs src/models/project_host.rs +src/models/project_member.rs src/models/project_metadata.rs src/models/project_service_identity.rs src/models/project_service_o_auth2.rs @@ -461,7 +470,6 @@ src/models/set_project_branding_theme_body.rs src/models/settings_flow.rs src/models/settings_flow_state.rs src/models/source_position.rs -src/models/stripe_customer.rs src/models/subject_set.rs src/models/subscription.rs src/models/successful_code_exchange_response.rs @@ -512,6 +520,7 @@ src/models/update_subscription_body.rs src/models/update_verification_flow_body.rs src/models/update_verification_flow_with_code_method.rs src/models/update_verification_flow_with_link_method.rs +src/models/update_workspace_payload.rs src/models/usage.rs src/models/verifiable_credential_priming_response.rs src/models/verifiable_credential_proof.rs @@ -522,3 +531,4 @@ src/models/verification_flow_state.rs src/models/version.rs src/models/warning.rs src/models/workspace.rs +src/models/workspace_meta.rs diff --git a/clients/client/rust/Cargo.lock b/clients/client/rust/Cargo.lock index 49546aa2e36..69c2b1845a8 100644 --- a/clients/client/rust/Cargo.lock +++ b/clients/client/rust/Cargo.lock @@ -52,9 +52,9 @@ checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bumpalo" -version = "3.14.0" +version = "3.15.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" +checksum = "7ff69b9dd49fd426c69a0db9fc04dd934cdb6645ff000864d98f7e2af8830eaa" [[package]] name = "bytes" @@ -64,12 +64,9 @@ checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "cc" -version = "1.0.83" +version = "1.0.90" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" -dependencies = [ - "libc", -] +checksum = "8cd6604a82acf3039f1144f54b8eb34e91ffba622051189e71b781822d5ee1f5" [[package]] name = "cfg-if" @@ -170,9 +167,9 @@ checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "h2" -version = "0.3.23" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b553656127a00601c8ae5590fcfdc118e4083a7924b6cf4ffc1ea4b99dc429d7" +checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", @@ -195,9 +192,9 @@ checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "http" -version = "0.2.11" +version = "0.2.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" +checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" dependencies = [ "bytes", "fnv", @@ -263,9 +260,9 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.1.0" +version = "2.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d530e1a18b1cb4c484e6e34556a0d948706958449fca0cab753d649f2bce3d1f" +checksum = "7b0b929d511467233429c45a44ac1dcaa21ba0f5ba11e4879e6ed28ddb4f9df4" dependencies = [ "equivalent", "hashbrown", @@ -285,24 +282,24 @@ checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "js-sys" -version = "0.3.66" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cee9c64da59eae3b50095c18d3e74f8b73c0b86d2792824ff01bbce68ba229ca" +checksum = "29c15563dc2726973df627357ce0c9ddddbea194836909d655df6a75d2cf296d" dependencies = [ "wasm-bindgen", ] [[package]] name = "libc" -version = "0.2.152" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "13e3bf6590cbc649f4d1a3eefc9d5d6eb746f5200ffb04e5e142700b8faa56e7" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "log" -version = "0.4.20" +version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" +checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" [[package]] name = "memchr" @@ -328,29 +325,29 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.10" +version = "0.8.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" +checksum = "a4a650543ca06a924e8b371db273b2756685faae30f8487da1b56505a8f78b0c" dependencies = [ "libc", "wasi", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] name = "num-traits" -version = "0.2.17" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "39e3200413f237f41ab11ad6d161bc7239c84dcb631773ccd7de3dfe4b5c267c" +checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ "autocfg", ] @@ -372,7 +369,7 @@ checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "ory-client" -version = "1.5.1" +version = "1.8.1" dependencies = [ "num-traits", "reqwest", @@ -402,9 +399,9 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "proc-macro2" -version = "1.0.76" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "95fc56cda0b5c3325f5fbbd7ff9fda9e02bb00bb3dac51252d2f1bfa1cb8cc8c" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] @@ -420,9 +417,9 @@ dependencies = [ [[package]] name = "reqwest" -version = "0.11.23" +version = "0.11.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "37b1ae8d9ac08420c66222fb9096fc5de435c3c48542bc5336c51892cffafb41" +checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" dependencies = [ "base64", "bytes", @@ -444,6 +441,7 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", + "sync_wrapper", "system-configuration", "tokio", "tower-service", @@ -462,24 +460,24 @@ checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "ryu" -version = "1.0.16" +version = "1.0.17" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" +checksum = "e86697c916019a8588c99b5fac3cead74ec0b4b819707a682fd4d23fa0ce1ba1" [[package]] name = "serde" -version = "1.0.195" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "63261df402c67811e9ac6def069e4786148c4563f4b50fd4bf30aa370d626b02" +checksum = "3fb1c873e1b9b056a4dc4c0c198b24c3ffa059243875552b2bd0933b1aee4ce2" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.195" +version = "1.0.197" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46fe8f8603d81ba86327b23a2e9cdf49e1255fb94a4c5f297f6ee0547178ea2c" +checksum = "7eb0b34b42edc17f6b7cac84a52a1c5f0e1bb2227e997ca9011ea3dd34e8610b" dependencies = [ "proc-macro2", "quote", @@ -488,9 +486,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.111" +version = "1.0.114" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "176e46fa42316f18edd598015a5166857fc835ec732f5215eac6b7bdbf0a84f4" +checksum = "c5f09b1bd632ef549eaa9f60a1f8de742bdbc698e6cee2095fc84dde5f549ae0" dependencies = [ "itoa", "ryu", @@ -520,25 +518,31 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.5" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" +checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" dependencies = [ "libc", - "windows-sys", + "windows-sys 0.52.0", ] [[package]] name = "syn" -version = "2.0.48" +version = "2.0.52" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" +checksum = "b699d15b36d1f02c3e7c69f8ffef53de37aefae075d8488d4ba1a7788d574a07" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + [[package]] name = "system-configuration" version = "0.5.1" @@ -577,9 +581,9 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.35.1" +version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c89b4efa943be685f629b149f53829423f8f5531ea21249408e8e2f8671ec104" +checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" dependencies = [ "backtrace", "bytes", @@ -587,7 +591,7 @@ dependencies = [ "mio", "pin-project-lite", "socket2", - "windows-sys", + "windows-sys 0.48.0", ] [[package]] @@ -646,9 +650,9 @@ dependencies = [ [[package]] name = "unicode-bidi" -version = "0.3.14" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6f2528f27a9eb2b21e69c95319b30bd0efd85d09c379741b0f78ea1d86be2416" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" @@ -658,9 +662,9 @@ checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" -version = "0.1.22" +version = "0.1.23" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c5713f0fc4b5db668a2ac63cdb7bb4469d8c9fed047b1d0292cc7b0ce2ba921" +checksum = "a56d1686db2308d901306f92a263857ef59ea39678a5458e7cb17f01415101f5" dependencies = [ "tinyvec", ] @@ -699,9 +703,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ed0d4f68a3015cc185aff4db9506a015f4b96f95303897bfa23f846db54064e" +checksum = "4be2531df63900aeb2bca0daaaddec08491ee64ceecbee5076636a3b026795a8" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -709,9 +713,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1b56f625e64f3a1084ded111c4d5f477df9f8c92df113852fa5a374dbda78826" +checksum = "614d787b966d3989fa7bb98a654e369c762374fd3213d212cfc0251257e747da" dependencies = [ "bumpalo", "log", @@ -724,9 +728,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.39" +version = "0.4.42" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac36a15a220124ac510204aec1c3e5db8a22ab06fd6706d881dc6149f8ed9a12" +checksum = "76bc14366121efc8dbb487ab05bcc9d346b3b5ec0eaa76e46594cabbe51762c0" dependencies = [ "cfg-if", "js-sys", @@ -736,9 +740,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0162dbf37223cd2afce98f3d0785506dcb8d266223983e4b5b525859e6e182b2" +checksum = "a1f8823de937b71b9460c0c34e25f3da88250760bec0ebac694b49997550d726" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -746,9 +750,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0eb82fcb7930ae6219a7ecfd55b217f5f0893484b7a13022ebb2b2bf20b5283" +checksum = "e94f17b526d0a461a191c78ea52bbce64071ed5c04c9ffe424dcb38f74171bb7" dependencies = [ "proc-macro2", "quote", @@ -759,15 +763,15 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.89" +version = "0.2.92" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ab9b36309365056cd639da3134bf87fa8f3d86008abf99e612384a6eecd459f" +checksum = "af190c94f2773fdb3729c55b007a722abb5384da03bc0986df4c289bf5567e96" [[package]] name = "web-sys" -version = "0.3.66" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50c24a44ec86bb68fbecd1b3efed7e85ea5621b39b35ef2766b66cd984f8010f" +checksum = "77afa9a11836342370f4817622a2f0f418b134426d91a82dfb48f532d2ec13ef" dependencies = [ "js-sys", "wasm-bindgen", @@ -779,7 +783,16 @@ version = "0.48.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9" dependencies = [ - "windows-targets", + "windows-targets 0.48.5", +] + +[[package]] +name = "windows-sys" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d" +dependencies = [ + "windows-targets 0.52.4", ] [[package]] @@ -788,13 +801,28 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ - "windows_aarch64_gnullvm", - "windows_aarch64_msvc", - "windows_i686_gnu", - "windows_i686_msvc", - "windows_x86_64_gnu", - "windows_x86_64_gnullvm", - "windows_x86_64_msvc", + "windows_aarch64_gnullvm 0.48.5", + "windows_aarch64_msvc 0.48.5", + "windows_i686_gnu 0.48.5", + "windows_i686_msvc 0.48.5", + "windows_x86_64_gnu 0.48.5", + "windows_x86_64_gnullvm 0.48.5", + "windows_x86_64_msvc 0.48.5", +] + +[[package]] +name = "windows-targets" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "7dd37b7e5ab9018759f893a1952c9420d060016fc19a472b4bb20d1bdd694d1b" +dependencies = [ + "windows_aarch64_gnullvm 0.52.4", + "windows_aarch64_msvc 0.52.4", + "windows_i686_gnu 0.52.4", + "windows_i686_msvc 0.52.4", + "windows_x86_64_gnu 0.52.4", + "windows_x86_64_gnullvm 0.52.4", + "windows_x86_64_msvc 0.52.4", ] [[package]] @@ -803,42 +831,84 @@ version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" +[[package]] +name = "windows_aarch64_gnullvm" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "bcf46cf4c365c6f2d1cc93ce535f2c8b244591df96ceee75d8e83deb70a9cac9" + [[package]] name = "windows_aarch64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" +[[package]] +name = "windows_aarch64_msvc" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "da9f259dd3bcf6990b55bffd094c4f7235817ba4ceebde8e6d11cd0c5633b675" + [[package]] name = "windows_i686_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" +[[package]] +name = "windows_i686_gnu" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b474d8268f99e0995f25b9f095bc7434632601028cf86590aea5c8a5cb7801d3" + [[package]] name = "windows_i686_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" +[[package]] +name = "windows_i686_msvc" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1515e9a29e5bed743cb4415a9ecf5dfca648ce85ee42e15873c3cd8610ff8e02" + [[package]] name = "windows_x86_64_gnu" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" +[[package]] +name = "windows_x86_64_gnu" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5eee091590e89cc02ad514ffe3ead9eb6b660aedca2183455434b93546371a03" + [[package]] name = "windows_x86_64_gnullvm" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" +[[package]] +name = "windows_x86_64_gnullvm" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "77ca79f2451b49fa9e2af39f0747fe999fcda4f5e241b2898624dca97a1f2177" + [[package]] name = "windows_x86_64_msvc" version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" +[[package]] +name = "windows_x86_64_msvc" +version = "0.52.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "32b752e52a2da0ddfbdbcc6fceadfeede4c939ed16d13e648833a61dfb611ed8" + [[package]] name = "winreg" version = "0.50.0" @@ -846,5 +916,5 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ "cfg-if", - "windows-sys", + "windows-sys 0.48.0", ] diff --git a/clients/client/rust/Cargo.toml b/clients/client/rust/Cargo.toml index 798c10fb791..66af8d240a0 100644 --- a/clients/client/rust/Cargo.toml +++ b/clients/client/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ory-client" -version = "1.5.1" +version = "1.8.1" description = "SDK Client for Ory" documentation = "https://www.ory.sh/docs/sdk" homepage = "https://www.ory.sh" diff --git a/clients/client/rust/README.md b/clients/client/rust/README.md index e9e3ae2f503..27a6f6becc4 100644 --- a/clients/client/rust/README.md +++ b/clients/client/rust/README.md @@ -9,8 +9,8 @@ with a valid Personal Access Token. Public APIs are mostly used in browsers. This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. -- API version: v1.5.1 -- Package version: v1.5.1 +- API version: v1.8.1 +- Package version: v1.8.1 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` ## Installation @@ -199,8 +199,11 @@ Class | Method | HTTP request | Description - [CreateRecoveryLinkForIdentityBody](docs/CreateRecoveryLinkForIdentityBody.md) - [CreateRelationshipBody](docs/CreateRelationshipBody.md) - [CreateSubscriptionBody](docs/CreateSubscriptionBody.md) + - [CreateSubscriptionCommon](docs/CreateSubscriptionCommon.md) - [CreateVerifiableCredentialRequestBody](docs/CreateVerifiableCredentialRequestBody.md) - [CreateWorkspaceMemberInviteBody](docs/CreateWorkspaceMemberInviteBody.md) + - [CreateWorkspacePayload](docs/CreateWorkspacePayload.md) + - [CreateWorkspaceSubscriptionBody](docs/CreateWorkspaceSubscriptionBody.md) - [CredentialSupportedDraft00](docs/CredentialSupportedDraft00.md) - [CustomDomain](docs/CustomDomain.md) - [DeleteMySessionsCount](docs/DeleteMySessionsCount.md) @@ -235,12 +238,10 @@ Class | Method | HTTP request | Description - [IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](docs/IdentityCredentialsType.md) - [IdentityPatch](docs/IdentityPatch.md) - [IdentityPatchResponse](docs/IdentityPatchResponse.md) - [IdentitySchemaContainer](docs/IdentitySchemaContainer.md) - [IdentitySchemaPreset](docs/IdentitySchemaPreset.md) - - [IdentityState](docs/IdentityState.md) - [IdentityWithCredentials](docs/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](docs/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](docs/IdentityWithCredentialsOidcConfig.md) @@ -251,7 +252,6 @@ Class | Method | HTTP request | Description - [InternalIsAxWelcomeScreenEnabledForProjectBody](docs/InternalIsAxWelcomeScreenEnabledForProjectBody.md) - [InternalIsOwnerForProjectBySlugBody](docs/InternalIsOwnerForProjectBySlugBody.md) - [InternalIsOwnerForProjectBySlugResponse](docs/InternalIsOwnerForProjectBySlugResponse.md) - - [InternalProvisionMockSubscription](docs/InternalProvisionMockSubscription.md) - [IntrospectedOAuth2Token](docs/IntrospectedOAuth2Token.md) - [IsOwnerForProjectBySlug](docs/IsOwnerForProjectBySlug.md) - [IsReady200Response](docs/IsReady200Response.md) @@ -263,6 +263,7 @@ Class | Method | HTTP request | Description - [ListEventStreams](docs/ListEventStreams.md) - [ListMyWorkspacesResponse](docs/ListMyWorkspacesResponse.md) - [ListOrganizationsResponse](docs/ListOrganizationsResponse.md) + - [ListWorkspaceProjectsResponse](docs/ListWorkspaceProjectsResponse.md) - [LoginFlow](docs/LoginFlow.md) - [LoginFlowState](docs/LoginFlowState.md) - [LogoutFlow](docs/LogoutFlow.md) @@ -272,6 +273,7 @@ Class | Method | HTTP request | Description - [Message](docs/Message.md) - [MessageDispatch](docs/MessageDispatch.md) - [MetricsDatapoint](docs/MetricsDatapoint.md) + - [MigrationOptions](docs/MigrationOptions.md) - [Namespace](docs/Namespace.md) - [NeedsPrivilegedSessionError](docs/NeedsPrivilegedSessionError.md) - [NormalizedProject](docs/NormalizedProject.md) @@ -300,6 +302,7 @@ Class | Method | HTTP request | Description - [ParseError](docs/ParseError.md) - [PatchIdentitiesBody](docs/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](docs/PerformNativeLogoutBody.md) + - [PermissionsOnWorkpaceResponse](docs/PermissionsOnWorkpaceResponse.md) - [Plan](docs/Plan.md) - [PlanDetails](docs/PlanDetails.md) - [PostCheckPermissionBody](docs/PostCheckPermissionBody.md) @@ -312,6 +315,7 @@ Class | Method | HTTP request | Description - [ProjectCors](docs/ProjectCors.md) - [ProjectEventsDatapoint](docs/ProjectEventsDatapoint.md) - [ProjectHost](docs/ProjectHost.md) + - [ProjectMember](docs/ProjectMember.md) - [ProjectMetadata](docs/ProjectMetadata.md) - [ProjectServiceIdentity](docs/ProjectServiceIdentity.md) - [ProjectServiceOAuth2](docs/ProjectServiceOAuth2.md) @@ -346,7 +350,6 @@ Class | Method | HTTP request | Description - [SettingsFlow](docs/SettingsFlow.md) - [SettingsFlowState](docs/SettingsFlowState.md) - [SourcePosition](docs/SourcePosition.md) - - [StripeCustomer](docs/StripeCustomer.md) - [SubjectSet](docs/SubjectSet.md) - [Subscription](docs/Subscription.md) - [SuccessfulCodeExchangeResponse](docs/SuccessfulCodeExchangeResponse.md) @@ -397,6 +400,7 @@ Class | Method | HTTP request | Description - [UpdateVerificationFlowBody](docs/UpdateVerificationFlowBody.md) - [UpdateVerificationFlowWithCodeMethod](docs/UpdateVerificationFlowWithCodeMethod.md) - [UpdateVerificationFlowWithLinkMethod](docs/UpdateVerificationFlowWithLinkMethod.md) + - [UpdateWorkspacePayload](docs/UpdateWorkspacePayload.md) - [Usage](docs/Usage.md) - [VerifiableCredentialPrimingResponse](docs/VerifiableCredentialPrimingResponse.md) - [VerifiableCredentialProof](docs/VerifiableCredentialProof.md) @@ -407,6 +411,7 @@ Class | Method | HTTP request | Description - [Version](docs/Version.md) - [Warning](docs/Warning.md) - [Workspace](docs/Workspace.md) + - [WorkspaceMeta](docs/WorkspaceMeta.md) To get access to the crate's generated documentation, use: diff --git a/clients/client/rust/docs/AcceptOAuth2ConsentRequest.md b/clients/client/rust/docs/AcceptOAuth2ConsentRequest.md index 3a4c61ec078..eddf5ae468d 100644 --- a/clients/client/rust/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/client/rust/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | Option<[**serde_json::Value**](.md)> | | [optional] **grant_access_token_audience** | Option<**Vec**> | | [optional] **grant_scope** | Option<**Vec**> | | [optional] **handled_at** | Option<**String**> | | [optional] diff --git a/clients/client/rust/docs/CloudAccount.md b/clients/client/rust/docs/CloudAccount.md index 86e53f62bdc..89b2ff83aa2 100644 --- a/clients/client/rust/docs/CloudAccount.md +++ b/clients/client/rust/docs/CloudAccount.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**email** | Option<**String**> | | [optional] -**id** | Option<**String**> | | [optional] -**name** | Option<**String**> | | [optional] +**email** | **String** | | +**id** | **String** | | +**name** | **String** | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/CreateIdentityBody.md b/clients/client/rust/docs/CreateIdentityBody.md index 0103d7654a4..7080ba5b7c9 100644 --- a/clients/client/rust/docs/CreateIdentityBody.md +++ b/clients/client/rust/docs/CreateIdentityBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **metadata_public** | Option<[**serde_json::Value**](.md)> | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **recovery_addresses** | Option<[**Vec**](recoveryIdentityAddress.md)> | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**state** | Option<[**crate::models::IdentityState**](identityState.md)> | | [optional] +**state** | Option<**String**> | State is the identity's state. active StateActive inactive StateInactive | [optional] **traits** | [**serde_json::Value**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **verifiable_addresses** | Option<[**Vec**](verifiableIdentityAddress.md)> | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] diff --git a/clients/client/rust/docs/CreateProjectBody.md b/clients/client/rust/docs/CreateProjectBody.md index 9c85da2c944..bc955465d57 100644 --- a/clients/client/rust/docs/CreateProjectBody.md +++ b/clients/client/rust/docs/CreateProjectBody.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**environment** | **String** | The environment of the project. prod Production dev Development | **name** | **String** | The name of the project to be created | **workspace_id** | Option<**String**> | | [optional] diff --git a/clients/client/rust/docs/CreateProjectNormalizedPayload.md b/clients/client/rust/docs/CreateProjectNormalizedPayload.md index 7d32158171a..29784eea936 100644 --- a/clients/client/rust/docs/CreateProjectNormalizedPayload.md +++ b/clients/client/rust/docs/CreateProjectNormalizedPayload.md @@ -6,12 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | Option<**String**> | The Project's Revision Creation Date | [optional][readonly] **disable_account_experience_welcome_screen** | Option<**bool**> | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enable_ax_v2** | Option<**bool**> | Whether the new account experience is enabled and reachable. | [optional] +**environment** | **String** | prod Production dev Development | **hydra_oauth2_allowed_top_level_claims** | Option<**Vec**> | | [optional] **hydra_oauth2_client_credentials_default_grant_allowed_scope** | Option<**bool**> | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydra_oauth2_exclude_not_before_claim** | Option<**bool**> | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydra_oauth2_grant_jwt_iat_optional** | Option<**bool**> | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_jti_optional** | Option<**bool**> | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_max_ttl** | Option<**String**> | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional][default to 720h] +**hydra_oauth2_mirror_top_level_claims** | Option<**bool**> | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydra_oauth2_pkce_enforced** | Option<**bool**> | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydra_oauth2_pkce_enforced_for_public_clients** | Option<**bool**> | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydra_oauth2_refresh_token_hook** | Option<**String**> | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +73,7 @@ Name | Type | Description | Notes **kratos_courier_templates_login_code_valid_email_body_html** | Option<**String**> | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_body_plaintext** | Option<**String**> | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_subject** | Option<**String**> | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratos_courier_templates_login_code_valid_sms_body_plaintext** | Option<**String**> | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_html** | Option<**String**> | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_plaintext** | Option<**String**> | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_subject** | Option<**String**> | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +159,7 @@ Name | Type | Description | Notes **kratos_selfservice_flows_verification_use** | Option<**String**> | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratos_selfservice_methods_code_config_lifespan** | Option<**String**> | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratos_selfservice_methods_code_enabled** | Option<**bool**> | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratos_selfservice_methods_code_mfa_enabled** | Option<**bool**> | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratos_selfservice_methods_code_passwordless_enabled** | Option<**bool**> | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratos_selfservice_methods_link_config_base_url** | Option<**String**> | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratos_selfservice_methods_link_config_lifespan** | Option<**String**> | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/rust/docs/CreateSubscriptionBody.md b/clients/client/rust/docs/CreateSubscriptionBody.md index 71dc7b816e8..bcdc8fdbff0 100644 --- a/clients/client/rust/docs/CreateSubscriptionBody.md +++ b/clients/client/rust/docs/CreateSubscriptionBody.md @@ -7,9 +7,8 @@ Name | Type | Description | Notes **currency** | Option<**String**> | usd USD eur Euro | [optional] **interval** | **String** | monthly Monthly yearly Yearly | **plan** | **String** | | -**provision_first_project** | Option<**String**> | | [optional] +**provision_first_project** | **String** | | **return_to** | Option<**String**> | | [optional] -**workspace** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/CreateSubscriptionCommon.md b/clients/client/rust/docs/CreateSubscriptionCommon.md new file mode 100644 index 00000000000..9fae15f702b --- /dev/null +++ b/clients/client/rust/docs/CreateSubscriptionCommon.md @@ -0,0 +1,14 @@ +# CreateSubscriptionCommon + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | Option<**String**> | usd USD eur Euro | [optional] +**interval** | **String** | monthly Monthly yearly Yearly | +**plan** | **String** | | +**return_to** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/docs/StripeCustomer.md b/clients/client/rust/docs/CreateWorkspacePayload.md similarity index 77% rename from clients/client/rust/docs/StripeCustomer.md rename to clients/client/rust/docs/CreateWorkspacePayload.md index 0e040da3504..bc132697814 100644 --- a/clients/client/rust/docs/StripeCustomer.md +++ b/clients/client/rust/docs/CreateWorkspacePayload.md @@ -1,10 +1,10 @@ -# StripeCustomer +# CreateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**id** | Option<**String**> | | [optional] +**name** | **String** | The name of the workspace | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/CreateWorkspaceSubscriptionBody.md b/clients/client/rust/docs/CreateWorkspaceSubscriptionBody.md new file mode 100644 index 00000000000..067b53bcfd1 --- /dev/null +++ b/clients/client/rust/docs/CreateWorkspaceSubscriptionBody.md @@ -0,0 +1,14 @@ +# CreateWorkspaceSubscriptionBody + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**currency** | Option<**String**> | usd USD eur Euro | [optional] +**interval** | **String** | monthly Monthly yearly Yearly | +**plan** | **String** | | +**return_to** | Option<**String**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/docs/FrontendApi.md b/clients/client/rust/docs/FrontendApi.md index f41a5b9d522..7d8f34187e2 100644 --- a/clients/client/rust/docs/FrontendApi.md +++ b/clients/client/rust/docs/FrontendApi.md @@ -39,7 +39,7 @@ Method | HTTP request | Description ## create_browser_login_flow -> crate::models::LoginFlow create_browser_login_flow(refresh, aal, return_to, cookie, login_challenge, organization) +> crate::models::LoginFlow create_browser_login_flow(refresh, aal, return_to, cookie, login_challenge, organization, via) Create Login Flow for Browsers This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! The optional query parameter login_challenge is set when using Kratos with Hydra in an OAuth2 flow. See the oauth2_provider.url configuration option. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). @@ -55,6 +55,7 @@ Name | Type | Description | Required | Notes **cookie** | Option<**String**> | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | | **login_challenge** | Option<**String**> | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | | **organization** | Option<**String**> | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | | +**via** | Option<**String**> | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | | ### Return type @@ -229,7 +230,7 @@ No authorization required ## create_native_login_flow -> crate::models::LoginFlow create_native_login_flow(refresh, aal, x_session_token, return_session_token_exchange_code, return_to) +> crate::models::LoginFlow create_native_login_flow(refresh, aal, x_session_token, return_session_token_exchange_code, return_to, via) Create Login Flow for Native Apps This endpoint initiates a login flow for native apps that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). 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). @@ -244,6 +245,7 @@ Name | Type | Description | Required | Notes **x_session_token** | Option<**String**> | The Session Token of the Identity performing the settings flow. | | **return_session_token_exchange_code** | Option<**bool**> | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | | **return_to** | Option<**String**> | The URL to return the browser to after the flow was completed. | | +**via** | Option<**String**> | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | | ### Return type diff --git a/clients/client/rust/docs/Identity.md b/clients/client/rust/docs/Identity.md index 8c0304e8933..0d2eabc022e 100644 --- a/clients/client/rust/docs/Identity.md +++ b/clients/client/rust/docs/Identity.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **recovery_addresses** | Option<[**Vec**](recoveryIdentityAddress.md)> | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **schema_url** | **String** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**state** | Option<[**crate::models::IdentityState**](identityState.md)> | | [optional] +**state** | Option<**String**> | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **state_changed_at** | Option<**String**> | | [optional] **traits** | Option<[**serde_json::Value**](.md)> | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **updated_at** | Option<**String**> | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/rust/docs/IdentityApi.md b/clients/client/rust/docs/IdentityApi.md index 2a2e2b74299..fe39ee290a7 100644 --- a/clients/client/rust/docs/IdentityApi.md +++ b/clients/client/rust/docs/IdentityApi.md @@ -117,7 +117,7 @@ Name | Type | Description | Required | Notes ## create_recovery_link_for_identity -> crate::models::RecoveryLinkForIdentity create_recovery_link_for_identity(create_recovery_link_for_identity_body) +> crate::models::RecoveryLinkForIdentity create_recovery_link_for_identity(return_to, create_recovery_link_for_identity_body) 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. @@ -127,6 +127,7 @@ This endpoint creates a recovery link which should be given to the user in order Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- +**return_to** | Option<**String**> | | | **create_recovery_link_for_identity_body** | Option<[**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md)> | | | ### Return type @@ -188,7 +189,7 @@ Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **id** | **String** | ID is the identity's ID. | [required] | -**_type** | **String** | Type is the credential's Type. One of totp, webauthn, lookup | [required] | +**_type** | **String** | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [required] | ### Return type @@ -390,7 +391,7 @@ Name | Type | Description | Required | Notes ## list_identities -> Vec list_identities(per_page, page, page_size, page_token, consistency, ids_filter, credentials_identifier, preview_credentials_identifier_similar) +> Vec list_identities(per_page, page, page_size, page_token, consistency, ids, credentials_identifier, preview_credentials_identifier_similar, include_credential) List Identities Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. @@ -405,9 +406,10 @@ Name | Type | Description | Required | Notes **page_size** | Option<**i64**> | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | |[default to 250] **page_token** | Option<**String**> | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | |[default to 1] **consistency** | Option<**String**> | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | | -**ids_filter** | Option<[**Vec**](String.md)> | IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. | | +**ids** | Option<[**Vec**](String.md)> | List of ids used to filter identities. If this list is empty, then no filter will be applied. | | **credentials_identifier** | Option<**String**> | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | | **preview_credentials_identifier_similar** | Option<**String**> | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | | +**include_credential** | Option<[**Vec**](String.md)> | Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. | | ### Return type diff --git a/clients/client/rust/docs/IdentityCredentials.md b/clients/client/rust/docs/IdentityCredentials.md index 5d64656584b..9b3d5ffca3b 100644 --- a/clients/client/rust/docs/IdentityCredentials.md +++ b/clients/client/rust/docs/IdentityCredentials.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **config** | Option<[**serde_json::Value**](.md)> | | [optional] **created_at** | Option<**String**> | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **identifiers** | Option<**Vec**> | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**_type** | Option<[**crate::models::IdentityCredentialsType**](identityCredentialsType.md)> | | [optional] +**_type** | Option<**String**> | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **updated_at** | Option<**String**> | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **version** | Option<**i64**> | Version refers to the version of the credential. Useful when changing the config schema. | [optional] diff --git a/clients/client/rust/docs/IdentityCredentialsCode.md b/clients/client/rust/docs/IdentityCredentialsCode.md index b53a41db0e6..689233c9b6c 100644 --- a/clients/client/rust/docs/IdentityCredentialsCode.md +++ b/clients/client/rust/docs/IdentityCredentialsCode.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**address_type** | Option<**String**> | | [optional] +**address_type** | Option<**String**> | The type of the address for this code | [optional] **used_at** | Option<**String**> | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/InternalProvisionMockSubscription.md b/clients/client/rust/docs/InternalProvisionMockSubscription.md deleted file mode 100644 index 9178e491504..00000000000 --- a/clients/client/rust/docs/InternalProvisionMockSubscription.md +++ /dev/null @@ -1,14 +0,0 @@ -# InternalProvisionMockSubscription - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**currency** | **String** | Currency usd USD eur Euro | -**identity_id** | **String** | Identity ID | -**interval** | **String** | Billing Interval monthly Monthly yearly Yearly | -**plan** | **String** | Plan ID | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/clients/client/rust/docs/ListMyWorkspacesResponse.md b/clients/client/rust/docs/ListMyWorkspacesResponse.md index cd8c7e38f2d..6530a034ffd 100644 --- a/clients/client/rust/docs/ListMyWorkspacesResponse.md +++ b/clients/client/rust/docs/ListMyWorkspacesResponse.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **has_next_page** | **bool** | | **next_page_token** | **String** | | -**workspaces** | [**Vec**](workspace.md) | | +**workspaces** | [**Vec**](workspaceMeta.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/ListWorkspaceProjectsResponse.md b/clients/client/rust/docs/ListWorkspaceProjectsResponse.md new file mode 100644 index 00000000000..8210dd93608 --- /dev/null +++ b/clients/client/rust/docs/ListWorkspaceProjectsResponse.md @@ -0,0 +1,13 @@ +# ListWorkspaceProjectsResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**has_next_page** | **bool** | | +**next_page** | **String** | | +**projects** | [**Vec**](projectMetadata.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/docs/LoginFlow.md b/clients/client/rust/docs/LoginFlow.md index f540a5a307f..8788b58cb4f 100644 --- a/clients/client/rust/docs/LoginFlow.md +++ b/clients/client/rust/docs/LoginFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | Option<[**crate::models::IdentityCredentialsType**](identityCredentialsType.md)> | | [optional] +**active** | Option<**String**> | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **created_at** | Option<**String**> | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **expires_at** | **String** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **String** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http:///?flow= | @@ -18,6 +18,7 @@ Name | Type | Description | Notes **return_to** | Option<**String**> | ReturnTo contains the requested return_to URL. | [optional] **session_token_exchange_code** | Option<**String**> | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] **state** | Option<[**serde_json::Value**](.md)> | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | TransientPayload is used to pass data from the login to hooks and email templates | [optional] **_type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**crate::models::UiContainer**](uiContainer.md) | | **updated_at** | Option<**String**> | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/client/rust/docs/MigrationOptions.md b/clients/client/rust/docs/MigrationOptions.md new file mode 100644 index 00000000000..e520aca987b --- /dev/null +++ b/clients/client/rust/docs/MigrationOptions.md @@ -0,0 +1,12 @@ +# MigrationOptions + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**environment** | **String** | The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development | +**project_subscription** | **String** | The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/docs/NormalizedProjectRevision.md b/clients/client/rust/docs/NormalizedProjectRevision.md index 07b6f948114..a94e5184743 100644 --- a/clients/client/rust/docs/NormalizedProjectRevision.md +++ b/clients/client/rust/docs/NormalizedProjectRevision.md @@ -6,12 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | Option<**String**> | The Project's Revision Creation Date | [optional][readonly] **disable_account_experience_welcome_screen** | Option<**bool**> | Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. | [optional] +**enable_ax_v2** | Option<**bool**> | Whether the new account experience is enabled and reachable. | [optional] **hydra_oauth2_allowed_top_level_claims** | Option<**Vec**> | | [optional] **hydra_oauth2_client_credentials_default_grant_allowed_scope** | Option<**bool**> | Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. | [optional] **hydra_oauth2_exclude_not_before_claim** | Option<**bool**> | Set to true if you want to exclude claim `nbf (not before)` part of access token. This governs the \"oauth2.exclude_not_before_claim\" setting. | [optional] **hydra_oauth2_grant_jwt_iat_optional** | Option<**bool**> | Configures if the issued at (`iat`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `iat` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.iat_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_jti_optional** | Option<**bool**> | Configures if the JSON Web Token ID (`jti`) claim is required in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523). If set to `false`, the `jti` claim is required. Set this value to `true` only after careful consideration. This governs the \"oauth2.grant.jwt.jti_optional\" setting. | [optional] **hydra_oauth2_grant_jwt_max_ttl** | Option<**String**> | Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. | [optional][default to 720h] +**hydra_oauth2_mirror_top_level_claims** | Option<**bool**> | Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. | [optional] **hydra_oauth2_pkce_enforced** | Option<**bool**> | Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. | [optional] **hydra_oauth2_pkce_enforced_for_public_clients** | Option<**bool**> | Configures whether PKCE should be enforced for OAuth2 Clients without a client secret (public clients). This governs the \"oauth2.pkce.enforced_for_public_clients\" setting. | [optional] **hydra_oauth2_refresh_token_hook** | Option<**String**> | Sets the Refresh Token Hook Endpoint. If set this endpoint will be called during the OAuth2 Token Refresh grant update the OAuth2 Access Token claims. This governs the \"oauth2.refresh_token_hook\" setting. | [optional] @@ -70,6 +72,7 @@ Name | Type | Description | Notes **kratos_courier_templates_login_code_valid_email_body_html** | Option<**String**> | Configures the Ory Kratos Valid Login via Code Email Body HTML Template This governs the \"courier.smtp.templates.login_code.valid.email.body.html\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_body_plaintext** | Option<**String**> | Configures the Ory Kratos Valid Login via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.login_code.valid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_login_code_valid_email_subject** | Option<**String**> | Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. | [optional] +**kratos_courier_templates_login_code_valid_sms_body_plaintext** | Option<**String**> | Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_html** | Option<**String**> | Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_body_plaintext** | Option<**String**> | Configures the Ory Kratos Invalid Recovery via Code Email Body Plaintext Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.plaintext\" setting. | [optional] **kratos_courier_templates_recovery_code_invalid_email_subject** | Option<**String**> | Configures the Ory Kratos Invalid Recovery via Code Email Subject Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. | [optional] @@ -155,6 +158,7 @@ Name | Type | Description | Notes **kratos_selfservice_flows_verification_use** | Option<**String**> | Configures the Ory Kratos Strategy to use for Verification This governs the \"selfservice.flows.verification.use\" setting. link SelfServiceMessageVerificationStrategyLink code SelfServiceMessageVerificationStrategyCode | [optional] **kratos_selfservice_methods_code_config_lifespan** | Option<**String**> | Configures the Ory Kratos Code Method's lifespan This governs the \"selfservice.methods.code.config.lifespan\" setting. | [optional] **kratos_selfservice_methods_code_enabled** | Option<**bool**> | Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. | [optional] +**kratos_selfservice_methods_code_mfa_enabled** | Option<**bool**> | Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. | [optional] **kratos_selfservice_methods_code_passwordless_enabled** | Option<**bool**> | Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. | [optional] **kratos_selfservice_methods_link_config_base_url** | Option<**String**> | Configures the Base URL which Recovery, Verification, and Login Links Point to It is recommended to leave this value empty. It will be appropriately configured to the best matching domain (e.g. when using custom domains) automatically. This governs the \"selfservice.methods.link.config.base_url\" setting. | [optional] **kratos_selfservice_methods_link_config_lifespan** | Option<**String**> | Configures the Ory Kratos Link Method's lifespan This governs the \"selfservice.methods.link.config.lifespan\" setting. | [optional] diff --git a/clients/client/rust/docs/NormalizedProjectRevisionThirdPartyProvider.md b/clients/client/rust/docs/NormalizedProjectRevisionThirdPartyProvider.md index 6d72abb98eb..0d5d47528bc 100644 --- a/clients/client/rust/docs/NormalizedProjectRevisionThirdPartyProvider.md +++ b/clients/client/rust/docs/NormalizedProjectRevisionThirdPartyProvider.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **apple_team_id** | Option<**String**> | Apple Developer Team ID Apple Developer Team ID needed for generating a JWT token for client secret | [optional] **auth_url** | Option<**String**> | AuthURL is the authorize url, typically something like: https://example.org/oauth2/auth Should only be used when the OAuth2 / OpenID Connect server is not supporting OpenID Connect Discovery and when `provider` is set to `generic`. | [optional] **azure_tenant** | Option<**String**> | Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. | [optional] +**claims_source** | Option<**String**> | | [optional] **client_id** | Option<**String**> | ClientID is the application's Client ID. | [optional] **client_secret** | Option<**String**> | | [optional] **created_at** | Option<**String**> | The Project's Revision Creation Date | [optional][readonly] diff --git a/clients/client/rust/docs/OAuth2Client.md b/clients/client/rust/docs/OAuth2Client.md index 0c325cfb2ab..36a5c38b9fd 100644 --- a/clients/client/rust/docs/OAuth2Client.md +++ b/clients/client/rust/docs/OAuth2Client.md @@ -45,6 +45,7 @@ Name | Type | Description | Notes **scope** | Option<**String**> | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sector_identifier_uri** | Option<**String**> | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skip_consent** | Option<**bool**> | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skip_logout_consent** | Option<**bool**> | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subject_type** | Option<**String**> | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **token_endpoint_auth_method** | Option<**String**> | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional][default to client_secret_basic] **token_endpoint_auth_signing_alg** | Option<**String**> | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/client/rust/docs/OAuth2ConsentSession.md b/clients/client/rust/docs/OAuth2ConsentSession.md index b39df0b6fb3..c28a3a163ff 100644 --- a/clients/client/rust/docs/OAuth2ConsentSession.md +++ b/clients/client/rust/docs/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consent_request** | Option<[**crate::models::OAuth2ConsentRequest**](oAuth2ConsentRequest.md)> | | [optional] +**context** | Option<[**serde_json::Value**](.md)> | | [optional] **expires_at** | Option<[**crate::models::OAuth2ConsentSessionExpiresAt**](oAuth2ConsentSession_expires_at.md)> | | [optional] **grant_access_token_audience** | Option<**Vec**> | | [optional] **grant_scope** | Option<**Vec**> | | [optional] diff --git a/clients/client/rust/docs/PermissionApi.md b/clients/client/rust/docs/PermissionApi.md index 617bee361f0..830585ef8ea 100644 --- a/clients/client/rust/docs/PermissionApi.md +++ b/clients/client/rust/docs/PermissionApi.md @@ -162,7 +162,7 @@ To learn how relationship tuples and the check works, head over to [the document Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- -**max_depth** | Option<**i64**> | nolint:deadcode,unused | | +**max_depth** | Option<**i64**> | | | **post_check_permission_or_error_body** | Option<[**PostCheckPermissionOrErrorBody**](PostCheckPermissionOrErrorBody.md)> | | | ### Return type diff --git a/clients/client/rust/docs/PermissionsOnWorkpaceResponse.md b/clients/client/rust/docs/PermissionsOnWorkpaceResponse.md new file mode 100644 index 00000000000..9e6629c8b16 --- /dev/null +++ b/clients/client/rust/docs/PermissionsOnWorkpaceResponse.md @@ -0,0 +1,11 @@ +# PermissionsOnWorkpaceResponse + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**permissions** | Option<**::std::collections::HashMap**> | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/docs/PlanDetails.md b/clients/client/rust/docs/PlanDetails.md index e3601331e5b..936587e5817 100644 --- a/clients/client/rust/docs/PlanDetails.md +++ b/clients/client/rust/docs/PlanDetails.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **base_fee_yearly** | **i64** | BaseFeeYearly is the yearly base fee for the plan. | **custom** | **bool** | Custom is true if the plan is custom. This means it will be hidden from the pricing page. | **description** | **String** | Description is the description of the plan. | -**features** | [**::std::collections::HashMap**](GenericUsage.md) | Features are the feature definitions included in the plan. | +**features** | [**::std::collections::HashMap**](GenericUsage.md) | | **name** | **String** | Name is the name of the plan. | **version** | **i64** | Version is the version of the plan. The combination of `name@version` must be unique. | diff --git a/clients/client/rust/docs/ProjectApi.md b/clients/client/rust/docs/ProjectApi.md index 6728cb741ea..e9e124c2e4f 100644 --- a/clients/client/rust/docs/ProjectApi.md +++ b/clients/client/rust/docs/ProjectApi.md @@ -266,7 +266,7 @@ Name | Type | Description | Required | Notes ## get_project_members -> Vec get_project_members(project) +> Vec get_project_members(project) Get all members associated with this project This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. @@ -280,7 +280,7 @@ Name | Type | Description | Required | Notes ### Return type -[**Vec**](cloudAccount.md) +[**Vec**](projectMember.md) ### Authorization @@ -308,7 +308,7 @@ Name | Type | Description | Required | Notes ------------- | ------------- | ------------- | ------------- | ------------- **project_id** | **String** | Project ID | [required] | **event_type** | **String** | The event type to query for | [required] | -**resolution** | **String** | The resolution of the buckets The minimum resolution is 1 hour. | [required] | +**resolution** | **String** | The resolution of the buckets The minimum resolution is 1 minute. | [required] | **from** | **String** | The start RFC3339 date of the time window | [required] | **to** | **String** | The end RFC3339 date of the time window | [required] | diff --git a/clients/client/rust/docs/ProjectMember.md b/clients/client/rust/docs/ProjectMember.md new file mode 100644 index 00000000000..763aabc89c6 --- /dev/null +++ b/clients/client/rust/docs/ProjectMember.md @@ -0,0 +1,14 @@ +# ProjectMember + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**email** | **String** | | +**id** | **String** | | +**name** | **String** | | +**role** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/docs/ProjectMetadata.md b/clients/client/rust/docs/ProjectMetadata.md index 75eb9c33b2a..5a7772f406b 100644 --- a/clients/client/rust/docs/ProjectMetadata.md +++ b/clients/client/rust/docs/ProjectMetadata.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **created_at** | **String** | The Project's Creation Date | +**environment** | **String** | The environment of the project. prod Production dev Development | **hosts** | **Vec** | | **id** | **String** | The project's ID. | [readonly] **name** | **String** | The project's name if set | diff --git a/clients/client/rust/docs/QuotaUsage.md b/clients/client/rust/docs/QuotaUsage.md index 36f7cb5f468..d0b530f5291 100644 --- a/clients/client/rust/docs/QuotaUsage.md +++ b/clients/client/rust/docs/QuotaUsage.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **additional_price** | **i64** | The additional price per unit in cents. | **can_use_more** | **bool** | | -**feature** | **String** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList | +**feature** | **String** | region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect | **feature_available** | **bool** | | **included** | **i64** | | **used** | **i64** | | diff --git a/clients/client/rust/docs/RecoveryFlow.md b/clients/client/rust/docs/RecoveryFlow.md index d48edcee20f..9175380855e 100644 --- a/clients/client/rust/docs/RecoveryFlow.md +++ b/clients/client/rust/docs/RecoveryFlow.md @@ -12,6 +12,7 @@ Name | Type | Description | Notes **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **return_to** | Option<**String**> | ReturnTo contains the requested return_to URL. | [optional] **state** | Option<[**serde_json::Value**](.md)> | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | TransientPayload is used to pass data from the recovery flow to hooks and email templates | [optional] **_type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**crate::models::UiContainer**](uiContainer.md) | | diff --git a/clients/client/rust/docs/RegistrationFlow.md b/clients/client/rust/docs/RegistrationFlow.md index 0f91b19fbe9..add1004f579 100644 --- a/clients/client/rust/docs/RegistrationFlow.md +++ b/clients/client/rust/docs/RegistrationFlow.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | Option<[**crate::models::IdentityCredentialsType**](identityCredentialsType.md)> | | [optional] +**active** | Option<**String**> | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **expires_at** | **String** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **String** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http:///?flow= | **issued_at** | **String** | IssuedAt is the time (UTC) when the flow occurred. | diff --git a/clients/client/rust/docs/SettingsFlow.md b/clients/client/rust/docs/SettingsFlow.md index 68dd47abda6..45e67721b5b 100644 --- a/clients/client/rust/docs/SettingsFlow.md +++ b/clients/client/rust/docs/SettingsFlow.md @@ -13,6 +13,7 @@ Name | Type | Description | Notes **request_url** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **return_to** | Option<**String**> | ReturnTo contains the requested return_to URL. | [optional] **state** | Option<[**serde_json::Value**](.md)> | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | TransientPayload is used to pass data from the settings flow to hooks and email templates | [optional] **_type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**crate::models::UiContainer**](uiContainer.md) | | diff --git a/clients/client/rust/docs/Subscription.md b/clients/client/rust/docs/Subscription.md index 960db1bd3e8..c50f56b013e 100644 --- a/clients/client/rust/docs/Subscription.md +++ b/clients/client/rust/docs/Subscription.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **currency** | **String** | The currency of the subscription. To change this, a new subscription must be created. usd USD eur Euro | [readonly] **current_interval** | **String** | The currently active interval of the subscription monthly Monthly yearly Yearly | [readonly] **current_plan** | **String** | The currently active plan of the subscription | [readonly] +**current_plan_details** | Option<[**crate::models::PlanDetails**](PlanDetails.md)> | | [optional] **customer_id** | **String** | The ID of the stripe customer | [readonly] **id** | **String** | The ID of the subscription | [readonly] **interval_changes_to** | Option<**String**> | | @@ -16,6 +17,7 @@ Name | Type | Description | Notes **plan_changes_at** | Option<**String**> | | [optional] **plan_changes_to** | Option<**String**> | | **status** | **String** | For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. | +**stripe_checkout_expires_at** | Option<**String**> | | [optional] **updated_at** | **String** | | [readonly] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateIdentityBody.md b/clients/client/rust/docs/UpdateIdentityBody.md index b84c42f8cea..9da5545ed55 100644 --- a/clients/client/rust/docs/UpdateIdentityBody.md +++ b/clients/client/rust/docs/UpdateIdentityBody.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **metadata_admin** | Option<[**serde_json::Value**](.md)> | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. | [optional] **metadata_public** | Option<[**serde_json::Value**](.md)> | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **schema_id** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**state** | [**crate::models::IdentityState**](identityState.md) | | +**state** | **String** | State is the identity's state. active StateActive inactive StateInactive | **traits** | [**serde_json::Value**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateLoginFlowBody.md b/clients/client/rust/docs/UpdateLoginFlowBody.md index fbc20a1545d..b4d27294a33 100644 --- a/clients/client/rust/docs/UpdateLoginFlowBody.md +++ b/clients/client/rust/docs/UpdateLoginFlowBody.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | **password** | **String** | The user's password. | **password_identifier** | Option<**String**> | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **id_token** | Option<**String**> | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] **id_token_nonce** | Option<**String**> | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **provider** | **String** | The provider to register with | diff --git a/clients/client/rust/docs/UpdateLoginFlowWithCodeMethod.md b/clients/client/rust/docs/UpdateLoginFlowWithCodeMethod.md index 0cb83acd6dd..9f13d723f78 100644 --- a/clients/client/rust/docs/UpdateLoginFlowWithCodeMethod.md +++ b/clients/client/rust/docs/UpdateLoginFlowWithCodeMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **identifier** | Option<**String**> | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] **method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | **resend** | Option<**String**> | Resend is set when the user wants to resend the code | [optional] +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateLoginFlowWithOidcMethod.md b/clients/client/rust/docs/UpdateLoginFlowWithOidcMethod.md index 1d41b2fbbb9..a920d5b2734 100644 --- a/clients/client/rust/docs/UpdateLoginFlowWithOidcMethod.md +++ b/clients/client/rust/docs/UpdateLoginFlowWithOidcMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **method** | **String** | Method to use This field must be set to `oidc` when using the oidc method. | **provider** | **String** | The provider to register with | **traits** | Option<[**serde_json::Value**](.md)> | The identity traits. This is a placeholder for the registration flow. | [optional] +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **upstream_parameters** | Option<[**serde_json::Value**](.md)> | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateLoginFlowWithPasswordMethod.md b/clients/client/rust/docs/UpdateLoginFlowWithPasswordMethod.md index eae570365e8..007f9cf52d6 100644 --- a/clients/client/rust/docs/UpdateLoginFlowWithPasswordMethod.md +++ b/clients/client/rust/docs/UpdateLoginFlowWithPasswordMethod.md @@ -9,6 +9,7 @@ Name | Type | Description | Notes **method** | **String** | Method should be set to \"password\" when logging in using the identifier and password strategy. | **password** | **String** | The user's password. | **password_identifier** | Option<**String**> | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateLoginFlowWithTotpMethod.md b/clients/client/rust/docs/UpdateLoginFlowWithTotpMethod.md index 3dc0984ac77..9d0627c5be3 100644 --- a/clients/client/rust/docs/UpdateLoginFlowWithTotpMethod.md +++ b/clients/client/rust/docs/UpdateLoginFlowWithTotpMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **method** | **String** | Method should be set to \"totp\" when logging in using the TOTP strategy. | **totp_code** | **String** | The TOTP code. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateLoginFlowWithWebAuthnMethod.md b/clients/client/rust/docs/UpdateLoginFlowWithWebAuthnMethod.md index df872b515b1..8bc8271294d 100644 --- a/clients/client/rust/docs/UpdateLoginFlowWithWebAuthnMethod.md +++ b/clients/client/rust/docs/UpdateLoginFlowWithWebAuthnMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **identifier** | **String** | Identifier is the email or username of the user trying to log in. | **method** | **String** | Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **webauthn_login** | Option<**String**> | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateRecoveryFlowBody.md b/clients/client/rust/docs/UpdateRecoveryFlowBody.md index 3d28d3cabb1..f06af7d552d 100644 --- a/clients/client/rust/docs/UpdateRecoveryFlowBody.md +++ b/clients/client/rust/docs/UpdateRecoveryFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **code** | Option<**String**> | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateRecoveryFlowWithCodeMethod.md b/clients/client/rust/docs/UpdateRecoveryFlowWithCodeMethod.md index cabe3d5423a..515baf58ee7 100644 --- a/clients/client/rust/docs/UpdateRecoveryFlowWithCodeMethod.md +++ b/clients/client/rust/docs/UpdateRecoveryFlowWithCodeMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | Option<**String**> | The email address of the account to recover If the email belongs to a valid account, a recovery email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset#attempted-recovery-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateRecoveryFlowWithLinkMethod.md b/clients/client/rust/docs/UpdateRecoveryFlowWithLinkMethod.md index 55c3fee3cfa..e16a48f9113 100644 --- a/clients/client/rust/docs/UpdateRecoveryFlowWithLinkMethod.md +++ b/clients/client/rust/docs/UpdateRecoveryFlowWithLinkMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | Email to Recover Needs to be set when initiating the flow. If the email is a registered recovery email, a recovery link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **String** | Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateSettingsFlowBody.md b/clients/client/rust/docs/UpdateSettingsFlowBody.md index c23acd9ba72..122a48d3ed4 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowBody.md +++ b/clients/client/rust/docs/UpdateSettingsFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | CSRFToken is the anti-CSRF token | [optional] **method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | **password** | **String** | Password is the updated password | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **traits** | [**serde_json::Value**](.md) | The identity's traits in: body | **flow** | Option<**String**> | Flow ID is the flow's ID. in: query | [optional] **link** | Option<**String**> | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] diff --git a/clients/client/rust/docs/UpdateSettingsFlowWithLookupMethod.md b/clients/client/rust/docs/UpdateSettingsFlowWithLookupMethod.md index 9986372cca8..0c70ec08df0 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowWithLookupMethod.md +++ b/clients/client/rust/docs/UpdateSettingsFlowWithLookupMethod.md @@ -10,6 +10,7 @@ Name | Type | Description | Notes **lookup_secret_regenerate** | Option<**bool**> | If set to true will regenerate the lookup secrets | [optional] **lookup_secret_reveal** | Option<**bool**> | If set to true will reveal the lookup secrets | [optional] **method** | **String** | Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateSettingsFlowWithOidcMethod.md b/clients/client/rust/docs/UpdateSettingsFlowWithOidcMethod.md index 5175191b74b..90baaaaa78f 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowWithOidcMethod.md +++ b/clients/client/rust/docs/UpdateSettingsFlowWithOidcMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **link** | Option<**String**> | Link this provider Either this or `unlink` must be set. type: string in: body | [optional] **method** | **String** | Method Should be set to profile when trying to update a profile. | **traits** | Option<[**serde_json::Value**](.md)> | The identity's traits in: body | [optional] +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **unlink** | Option<**String**> | Unlink this provider Either this or `link` must be set. type: string in: body | [optional] **upstream_parameters** | Option<[**serde_json::Value**](.md)> | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] diff --git a/clients/client/rust/docs/UpdateSettingsFlowWithPasswordMethod.md b/clients/client/rust/docs/UpdateSettingsFlowWithPasswordMethod.md index 80d32b119b2..a122b527feb 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowWithPasswordMethod.md +++ b/clients/client/rust/docs/UpdateSettingsFlowWithPasswordMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | CSRFToken is the anti-CSRF token | [optional] **method** | **String** | Method Should be set to password when trying to update a password. | **password** | **String** | Password is the updated password | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateSettingsFlowWithProfileMethod.md b/clients/client/rust/docs/UpdateSettingsFlowWithProfileMethod.md index 0c7942677c8..308073a3548 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowWithProfileMethod.md +++ b/clients/client/rust/docs/UpdateSettingsFlowWithProfileMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | The Anti-CSRF Token This token is only required when performing browser flows. | [optional] **method** | **String** | Method Should be set to profile when trying to update a profile. | **traits** | [**serde_json::Value**](.md) | Traits The identity's traits. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateSettingsFlowWithTotpMethod.md b/clients/client/rust/docs/UpdateSettingsFlowWithTotpMethod.md index a410889c03d..c1cb22ce6c3 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowWithTotpMethod.md +++ b/clients/client/rust/docs/UpdateSettingsFlowWithTotpMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **method** | **String** | Method Should be set to \"totp\" when trying to add, update, or remove a totp pairing. | **totp_code** | Option<**String**> | ValidationTOTP must contain a valid TOTP based on the | [optional] **totp_unlink** | Option<**bool**> | UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. | [optional] +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateSettingsFlowWithWebAuthnMethod.md b/clients/client/rust/docs/UpdateSettingsFlowWithWebAuthnMethod.md index 8d4ecbe00f7..e8ca2883456 100644 --- a/clients/client/rust/docs/UpdateSettingsFlowWithWebAuthnMethod.md +++ b/clients/client/rust/docs/UpdateSettingsFlowWithWebAuthnMethod.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **csrf_token** | Option<**String**> | CSRFToken is the anti-CSRF token | [optional] **method** | **String** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **webauthn_register** | Option<**String**> | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **webauthn_register_displayname** | Option<**String**> | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] **webauthn_remove** | Option<**String**> | Remove a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] diff --git a/clients/client/rust/docs/UpdateVerificationFlowBody.md b/clients/client/rust/docs/UpdateVerificationFlowBody.md index f514bf3ec18..7cf95d3f1c8 100644 --- a/clients/client/rust/docs/UpdateVerificationFlowBody.md +++ b/clients/client/rust/docs/UpdateVerificationFlowBody.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] **code** | Option<**String**> | Code from the recovery email If you want to submit a code, use this field, but make sure to _not_ include the email field, as well. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateVerificationFlowWithCodeMethod.md b/clients/client/rust/docs/UpdateVerificationFlowWithCodeMethod.md index 774379a59b4..6a74e1b5bfd 100644 --- a/clients/client/rust/docs/UpdateVerificationFlowWithCodeMethod.md +++ b/clients/client/rust/docs/UpdateVerificationFlowWithCodeMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | Option<**String**> | The email address to verify If the email belongs to a valid account, a verifiation email will be sent. If you want to notify the email address if the account does not exist, see the [notify_unknown_recipients flag](https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation#attempted-verification-notifications) If a code was already sent, including this field in the payload will invalidate the sent code and re-send a new code. format: email | [optional] **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/UpdateVerificationFlowWithLinkMethod.md b/clients/client/rust/docs/UpdateVerificationFlowWithLinkMethod.md index 6cf6ea2f45f..62af2683712 100644 --- a/clients/client/rust/docs/UpdateVerificationFlowWithLinkMethod.md +++ b/clients/client/rust/docs/UpdateVerificationFlowWithLinkMethod.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **csrf_token** | Option<**String**> | Sending the anti-csrf token is only required for browser login flows. | [optional] **email** | **String** | Email to Verify Needs to be set when initiating the flow. If the email is a registered verification email, a verification link will be sent. If the email is not known, a email with details on what happened will be sent instead. format: email | **method** | **String** | Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode | +**transient_payload** | Option<[**serde_json::Value**](.md)> | Transient data to pass along to any webhooks | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/IdentityCredentialsType.md b/clients/client/rust/docs/UpdateWorkspacePayload.md similarity index 77% rename from clients/client/rust/docs/IdentityCredentialsType.md rename to clients/client/rust/docs/UpdateWorkspacePayload.md index ed70c732e23..6fd4aa5eb9d 100644 --- a/clients/client/rust/docs/IdentityCredentialsType.md +++ b/clients/client/rust/docs/UpdateWorkspacePayload.md @@ -1,9 +1,10 @@ -# IdentityCredentialsType +# UpdateWorkspacePayload ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**name** | **String** | The name of the workspace. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/client/rust/docs/VerificationFlow.md b/clients/client/rust/docs/VerificationFlow.md index 610a1a3be92..f715fac0bfc 100644 --- a/clients/client/rust/docs/VerificationFlow.md +++ b/clients/client/rust/docs/VerificationFlow.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **request_url** | Option<**String**> | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **return_to** | Option<**String**> | ReturnTo contains the requested return_to URL. | [optional] **state** | Option<[**serde_json::Value**](.md)> | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | +**transient_payload** | Option<[**serde_json::Value**](.md)> | TransientPayload is used to pass data from the verification flow to hooks and email templates | [optional] **_type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**crate::models::UiContainer**](uiContainer.md) | | diff --git a/clients/client/rust/docs/WorkspaceMeta.md b/clients/client/rust/docs/WorkspaceMeta.md new file mode 100644 index 00000000000..8685be0ae7d --- /dev/null +++ b/clients/client/rust/docs/WorkspaceMeta.md @@ -0,0 +1,16 @@ +# WorkspaceMeta + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**created_at** | **String** | | +**id** | **String** | | +**name** | **String** | | +**subscription_id** | Option<**String**> | | [optional] +**subscription_plan** | Option<**String**> | | [optional] +**updated_at** | **String** | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/client/rust/src/apis/configuration.rs b/clients/client/rust/src/apis/configuration.rs index 3cd55a3c30e..ff6f714de42 100644 --- a/clients/client/rust/src/apis/configuration.rs +++ b/clients/client/rust/src/apis/configuration.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -41,7 +41,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "https://playground.projects.oryapis.com".to_owned(), - user_agent: Some("OpenAPI-Generator/v1.5.1/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/v1.8.1/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/clients/client/rust/src/apis/courier_api.rs b/clients/client/rust/src/apis/courier_api.rs index af78dfe2ff5..3662a24165e 100644 --- a/clients/client/rust/src/apis/courier_api.rs +++ b/clients/client/rust/src/apis/courier_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/events_api.rs b/clients/client/rust/src/apis/events_api.rs index efdb28a29f6..b4774ea4e4e 100644 --- a/clients/client/rust/src/apis/events_api.rs +++ b/clients/client/rust/src/apis/events_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/frontend_api.rs b/clients/client/rust/src/apis/frontend_api.rs index fa1a5cd2a8e..762d015e6a0 100644 --- a/clients/client/rust/src/apis/frontend_api.rs +++ b/clients/client/rust/src/apis/frontend_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -328,7 +328,7 @@ pub enum UpdateVerificationFlowError { /// This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! The optional query parameter login_challenge is set when using Kratos with Hydra in an OAuth2 flow. See the oauth2_provider.url configuration option. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). -pub async fn create_browser_login_flow(configuration: &configuration::Configuration, refresh: Option, aal: Option<&str>, return_to: Option<&str>, cookie: Option<&str>, login_challenge: Option<&str>, organization: Option<&str>) -> Result> { +pub async fn create_browser_login_flow(configuration: &configuration::Configuration, refresh: Option, aal: Option<&str>, return_to: Option<&str>, cookie: Option<&str>, login_challenge: Option<&str>, organization: Option<&str>, via: Option<&str>) -> Result> { let local_var_client = &configuration.client; @@ -350,6 +350,9 @@ pub async fn create_browser_login_flow(configuration: &configuration::Configurat if let Some(ref local_var_str) = organization { local_var_req_builder = local_var_req_builder.query(&[("organization", local_var_str.to_string())]); } + if let Some(ref local_var_str) = via { + local_var_req_builder = local_var_req_builder.query(&[("via", local_var_str.to_string())]); + } if let Some(ref local_var_user_agent) = configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -538,7 +541,7 @@ pub async fn create_browser_verification_flow(configuration: &configuration::Con } /// This endpoint initiates a login flow for native apps that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). 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). -pub async fn create_native_login_flow(configuration: &configuration::Configuration, refresh: Option, aal: Option<&str>, x_session_token: Option<&str>, return_session_token_exchange_code: Option, return_to: Option<&str>) -> Result> { +pub async fn create_native_login_flow(configuration: &configuration::Configuration, refresh: Option, aal: Option<&str>, x_session_token: Option<&str>, return_session_token_exchange_code: Option, return_to: Option<&str>, via: Option<&str>) -> Result> { let local_var_client = &configuration.client; @@ -557,6 +560,9 @@ pub async fn create_native_login_flow(configuration: &configuration::Configurati if let Some(ref local_var_str) = return_to { local_var_req_builder = local_var_req_builder.query(&[("return_to", local_var_str.to_string())]); } + if let Some(ref local_var_str) = via { + local_var_req_builder = local_var_req_builder.query(&[("via", local_var_str.to_string())]); + } if let Some(ref local_var_user_agent) = configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/clients/client/rust/src/apis/identity_api.rs b/clients/client/rust/src/apis/identity_api.rs index fd6f3925016..e5e3acb6e65 100644 --- a/clients/client/rust/src/apis/identity_api.rs +++ b/clients/client/rust/src/apis/identity_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -299,13 +299,16 @@ pub async fn create_recovery_code_for_identity(configuration: &configuration::Co } /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. -pub async fn create_recovery_link_for_identity(configuration: &configuration::Configuration, create_recovery_link_for_identity_body: Option<&crate::models::CreateRecoveryLinkForIdentityBody>) -> Result> { +pub async fn create_recovery_link_for_identity(configuration: &configuration::Configuration, return_to: Option<&str>, create_recovery_link_for_identity_body: Option<&crate::models::CreateRecoveryLinkForIdentityBody>) -> Result> { let local_var_client = &configuration.client; let local_var_uri_str = format!("{}/admin/recovery/link", configuration.base_path); let mut local_var_req_builder = local_var_client.request(reqwest::Method::POST, local_var_uri_str.as_str()); + if let Some(ref local_var_str) = return_to { + local_var_req_builder = local_var_req_builder.query(&[("return_to", local_var_str.to_string())]); + } if let Some(ref local_var_user_agent) = configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } @@ -573,7 +576,7 @@ pub async fn get_session(configuration: &configuration::Configuration, id: &str, } /// Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. -pub async fn list_identities(configuration: &configuration::Configuration, per_page: Option, page: Option, page_size: Option, page_token: Option<&str>, consistency: Option<&str>, ids_filter: Option>, credentials_identifier: Option<&str>, preview_credentials_identifier_similar: Option<&str>) -> Result, Error> { +pub async fn list_identities(configuration: &configuration::Configuration, per_page: Option, page: Option, page_size: Option, page_token: Option<&str>, consistency: Option<&str>, ids: Option>, credentials_identifier: Option<&str>, preview_credentials_identifier_similar: Option<&str>, include_credential: Option>) -> Result, Error> { let local_var_client = &configuration.client; @@ -595,8 +598,8 @@ pub async fn list_identities(configuration: &configuration::Configuration, per_p if let Some(ref local_var_str) = consistency { local_var_req_builder = local_var_req_builder.query(&[("consistency", local_var_str.to_string())]); } - if let Some(ref local_var_str) = ids_filter { - local_var_req_builder = local_var_req_builder.query(&[("ids_filter", local_var_str.iter().map(|p| p.to_string()).collect::>().join(","))]); + if let Some(ref local_var_str) = ids { + local_var_req_builder = local_var_req_builder.query(&[("ids", local_var_str.iter().map(|p| p.to_string()).collect::>().join(","))]); } if let Some(ref local_var_str) = credentials_identifier { local_var_req_builder = local_var_req_builder.query(&[("credentials_identifier", local_var_str.to_string())]); @@ -604,6 +607,9 @@ pub async fn list_identities(configuration: &configuration::Configuration, per_p if let Some(ref local_var_str) = preview_credentials_identifier_similar { local_var_req_builder = local_var_req_builder.query(&[("preview_credentials_identifier_similar", local_var_str.to_string())]); } + if let Some(ref local_var_str) = include_credential { + local_var_req_builder = local_var_req_builder.query(&[("include_credential", local_var_str.iter().map(|p| p.to_string()).collect::>().join(","))]); + } if let Some(ref local_var_user_agent) = configuration.user_agent { local_var_req_builder = local_var_req_builder.header(reqwest::header::USER_AGENT, local_var_user_agent.clone()); } diff --git a/clients/client/rust/src/apis/jwk_api.rs b/clients/client/rust/src/apis/jwk_api.rs index 10c58992af4..31c5822841d 100644 --- a/clients/client/rust/src/apis/jwk_api.rs +++ b/clients/client/rust/src/apis/jwk_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/metadata_api.rs b/clients/client/rust/src/apis/metadata_api.rs index f71c3390131..65e380224bb 100644 --- a/clients/client/rust/src/apis/metadata_api.rs +++ b/clients/client/rust/src/apis/metadata_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/o_auth2_api.rs b/clients/client/rust/src/apis/o_auth2_api.rs index 202e600fb80..8e386a39e54 100644 --- a/clients/client/rust/src/apis/o_auth2_api.rs +++ b/clients/client/rust/src/apis/o_auth2_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/oidc_api.rs b/clients/client/rust/src/apis/oidc_api.rs index 41aaa538a1e..c01e488e119 100644 --- a/clients/client/rust/src/apis/oidc_api.rs +++ b/clients/client/rust/src/apis/oidc_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/permission_api.rs b/clients/client/rust/src/apis/permission_api.rs index 4d234013d64..0b58da91f0e 100644 --- a/clients/client/rust/src/apis/permission_api.rs +++ b/clients/client/rust/src/apis/permission_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/project_api.rs b/clients/client/rust/src/apis/project_api.rs index 32ef0231bc9..8041f8221af 100644 --- a/clients/client/rust/src/apis/project_api.rs +++ b/clients/client/rust/src/apis/project_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -469,7 +469,7 @@ pub async fn get_project(configuration: &configuration::Configuration, project_i } /// This endpoint requires the user to be a member of the project with the role `OWNER` or `DEVELOPER`. -pub async fn get_project_members(configuration: &configuration::Configuration, project: &str) -> Result, Error> { +pub async fn get_project_members(configuration: &configuration::Configuration, project: &str) -> Result, Error> { let local_var_client = &configuration.client; diff --git a/clients/client/rust/src/apis/relationship_api.rs b/clients/client/rust/src/apis/relationship_api.rs index 5131e1913ff..d2376fcd080 100644 --- a/clients/client/rust/src/apis/relationship_api.rs +++ b/clients/client/rust/src/apis/relationship_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/apis/wellknown_api.rs b/clients/client/rust/src/apis/wellknown_api.rs index 3b21213c841..3816e62b858 100644 --- a/clients/client/rust/src/apis/wellknown_api.rs +++ b/clients/client/rust/src/apis/wellknown_api.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/accept_o_auth2_consent_request.rs b/clients/client/rust/src/models/accept_o_auth2_consent_request.rs index 067d6c241ae..c19a8cb1f20 100644 --- a/clients/client/rust/src/models/accept_o_auth2_consent_request.rs +++ b/clients/client/rust/src/models/accept_o_auth2_consent_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -13,6 +13,8 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceptOAuth2ConsentRequest { + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option, #[serde(rename = "grant_access_token_audience", skip_serializing_if = "Option::is_none")] pub grant_access_token_audience: Option>, #[serde(rename = "grant_scope", skip_serializing_if = "Option::is_none")] @@ -38,6 +40,7 @@ impl Default for AcceptOAuth2ConsentRequest { impl AcceptOAuth2ConsentRequest { pub fn new() -> AcceptOAuth2ConsentRequest { AcceptOAuth2ConsentRequest { + context: None, grant_access_token_audience: None, grant_scope: None, handled_at: None, diff --git a/clients/client/rust/src/models/accept_o_auth2_consent_request_session.rs b/clients/client/rust/src/models/accept_o_auth2_consent_request_session.rs index e2262f9d8ca..eb9a156f8fd 100644 --- a/clients/client/rust/src/models/accept_o_auth2_consent_request_session.rs +++ b/clients/client/rust/src/models/accept_o_auth2_consent_request_session.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/accept_o_auth2_login_request.rs b/clients/client/rust/src/models/accept_o_auth2_login_request.rs index 61502768072..c68e1cca5c0 100644 --- a/clients/client/rust/src/models/accept_o_auth2_login_request.rs +++ b/clients/client/rust/src/models/accept_o_auth2_login_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/active_project_in_console.rs b/clients/client/rust/src/models/active_project_in_console.rs index 884cabea1e9..74f99a4409a 100644 --- a/clients/client/rust/src/models/active_project_in_console.rs +++ b/clients/client/rust/src/models/active_project_in_console.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/attribute.rs b/clients/client/rust/src/models/attribute.rs index fd06261b0fa..f3ee32ea276 100644 --- a/clients/client/rust/src/models/attribute.rs +++ b/clients/client/rust/src/models/attribute.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/attribute_filter.rs b/clients/client/rust/src/models/attribute_filter.rs index 07e34a3e507..a2a6dc65d43 100644 --- a/clients/client/rust/src/models/attribute_filter.rs +++ b/clients/client/rust/src/models/attribute_filter.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/attributes_count_datapoint.rs b/clients/client/rust/src/models/attributes_count_datapoint.rs index d72f7ad885f..538602d5234 100644 --- a/clients/client/rust/src/models/attributes_count_datapoint.rs +++ b/clients/client/rust/src/models/attributes_count_datapoint.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/authenticator_assurance_level.rs b/clients/client/rust/src/models/authenticator_assurance_level.rs index e839600ad04..0e56378f87d 100644 --- a/clients/client/rust/src/models/authenticator_assurance_level.rs +++ b/clients/client/rust/src/models/authenticator_assurance_level.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/batch_patch_identities_response.rs b/clients/client/rust/src/models/batch_patch_identities_response.rs index 0d682539d13..a91d3a03150 100644 --- a/clients/client/rust/src/models/batch_patch_identities_response.rs +++ b/clients/client/rust/src/models/batch_patch_identities_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/check_opl_syntax_result.rs b/clients/client/rust/src/models/check_opl_syntax_result.rs index d88e54d4875..9ad0aa8c3ba 100644 --- a/clients/client/rust/src/models/check_opl_syntax_result.rs +++ b/clients/client/rust/src/models/check_opl_syntax_result.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/check_permission_result.rs b/clients/client/rust/src/models/check_permission_result.rs index 224548da42d..0c2cd7e55ae 100644 --- a/clients/client/rust/src/models/check_permission_result.rs +++ b/clients/client/rust/src/models/check_permission_result.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/cloud_account.rs b/clients/client/rust/src/models/cloud_account.rs index 0c35b457b8d..156918abf0b 100644 --- a/clients/client/rust/src/models/cloud_account.rs +++ b/clients/client/rust/src/models/cloud_account.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -13,26 +13,21 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CloudAccount { - #[serde(rename = "email", skip_serializing_if = "Option::is_none")] - pub email: Option, - #[serde(rename = "id", skip_serializing_if = "Option::is_none")] - pub id: Option, - #[serde(rename = "name", skip_serializing_if = "Option::is_none")] - pub name: Option, + #[serde(rename = "email")] + pub email: String, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, } -impl Default for CloudAccount { - fn default() -> Self { - Self::new() - } -} impl CloudAccount { - pub fn new() -> CloudAccount { + pub fn new(email: String, id: String, name: String) -> CloudAccount { CloudAccount { - email: None, - id: None, - name: None, + email, + id, + name, } } } diff --git a/clients/client/rust/src/models/consistency_request_parameters.rs b/clients/client/rust/src/models/consistency_request_parameters.rs index 74cf1ec3490..f94d69c01aa 100644 --- a/clients/client/rust/src/models/consistency_request_parameters.rs +++ b/clients/client/rust/src/models/consistency_request_parameters.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with.rs b/clients/client/rust/src/models/continue_with.rs index 793a6e8ba22..142808228b4 100644 --- a/clients/client/rust/src/models/continue_with.rs +++ b/clients/client/rust/src/models/continue_with.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_recovery_ui.rs b/clients/client/rust/src/models/continue_with_recovery_ui.rs index 3971860ba6b..f8b9f2f39ed 100644 --- a/clients/client/rust/src/models/continue_with_recovery_ui.rs +++ b/clients/client/rust/src/models/continue_with_recovery_ui.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_recovery_ui_flow.rs b/clients/client/rust/src/models/continue_with_recovery_ui_flow.rs index ac9dd9b7c1e..4fd48e999e5 100644 --- a/clients/client/rust/src/models/continue_with_recovery_ui_flow.rs +++ b/clients/client/rust/src/models/continue_with_recovery_ui_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_set_ory_session_token.rs b/clients/client/rust/src/models/continue_with_set_ory_session_token.rs index 7d721240633..108472e9bb5 100644 --- a/clients/client/rust/src/models/continue_with_set_ory_session_token.rs +++ b/clients/client/rust/src/models/continue_with_set_ory_session_token.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_settings_ui.rs b/clients/client/rust/src/models/continue_with_settings_ui.rs index 9fd9c48af3c..26bbf3bb05d 100644 --- a/clients/client/rust/src/models/continue_with_settings_ui.rs +++ b/clients/client/rust/src/models/continue_with_settings_ui.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_settings_ui_flow.rs b/clients/client/rust/src/models/continue_with_settings_ui_flow.rs index 9a44d385613..d87f32412d4 100644 --- a/clients/client/rust/src/models/continue_with_settings_ui_flow.rs +++ b/clients/client/rust/src/models/continue_with_settings_ui_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_verification_ui.rs b/clients/client/rust/src/models/continue_with_verification_ui.rs index fa31757b183..ac7832b5a3c 100644 --- a/clients/client/rust/src/models/continue_with_verification_ui.rs +++ b/clients/client/rust/src/models/continue_with_verification_ui.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/continue_with_verification_ui_flow.rs b/clients/client/rust/src/models/continue_with_verification_ui_flow.rs index 1c0c764cade..2e51a788575 100644 --- a/clients/client/rust/src/models/continue_with_verification_ui_flow.rs +++ b/clients/client/rust/src/models/continue_with_verification_ui_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/courier_message_status.rs b/clients/client/rust/src/models/courier_message_status.rs index 4316eb8fc83..8d3830ad41f 100644 --- a/clients/client/rust/src/models/courier_message_status.rs +++ b/clients/client/rust/src/models/courier_message_status.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/courier_message_type.rs b/clients/client/rust/src/models/courier_message_type.rs index 37ed97e9221..d84f1908686 100644 --- a/clients/client/rust/src/models/courier_message_type.rs +++ b/clients/client/rust/src/models/courier_message_type.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_custom_domain_body.rs b/clients/client/rust/src/models/create_custom_domain_body.rs index 612ce3c3474..6a212406ecf 100644 --- a/clients/client/rust/src/models/create_custom_domain_body.rs +++ b/clients/client/rust/src/models/create_custom_domain_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_event_stream_body.rs b/clients/client/rust/src/models/create_event_stream_body.rs index 7e083d0e663..8d767a7d707 100644 --- a/clients/client/rust/src/models/create_event_stream_body.rs +++ b/clients/client/rust/src/models/create_event_stream_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_identity_body.rs b/clients/client/rust/src/models/create_identity_body.rs index 15be2a5c2de..678c885de38 100644 --- a/clients/client/rust/src/models/create_identity_body.rs +++ b/clients/client/rust/src/models/create_identity_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -28,8 +28,9 @@ pub struct CreateIdentityBody { /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. #[serde(rename = "schema_id")] pub schema_id: String, + /// State is the identity's state. active StateActive inactive StateInactive #[serde(rename = "state", skip_serializing_if = "Option::is_none")] - pub state: Option, + pub state: Option, /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. #[serde(rename = "traits")] pub traits: serde_json::Value, @@ -55,4 +56,12 @@ impl CreateIdentityBody { } } +/// State is the identity's state. active StateActive inactive StateInactive +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StateEnum { + #[serde(rename = "active")] + Active, + #[serde(rename = "inactive")] + Inactive, +} diff --git a/clients/client/rust/src/models/create_invite_response.rs b/clients/client/rust/src/models/create_invite_response.rs index de8817fbd9f..12f38ed5e84 100644 --- a/clients/client/rust/src/models/create_invite_response.rs +++ b/clients/client/rust/src/models/create_invite_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_json_web_key_set.rs b/clients/client/rust/src/models/create_json_web_key_set.rs index 6a3844ebc45..9410a4c3e7f 100644 --- a/clients/client/rust/src/models/create_json_web_key_set.rs +++ b/clients/client/rust/src/models/create_json_web_key_set.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_project_api_key_request.rs b/clients/client/rust/src/models/create_project_api_key_request.rs index a5f1e7c0947..870548769f9 100644 --- a/clients/client/rust/src/models/create_project_api_key_request.rs +++ b/clients/client/rust/src/models/create_project_api_key_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_project_body.rs b/clients/client/rust/src/models/create_project_body.rs index 4c3463df32c..70600333494 100644 --- a/clients/client/rust/src/models/create_project_body.rs +++ b/clients/client/rust/src/models/create_project_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -14,6 +14,9 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateProjectBody { + /// The environment of the project. prod Production dev Development + #[serde(rename = "environment")] + pub environment: EnvironmentEnum, /// The name of the project to be created #[serde(rename = "name")] pub name: String, @@ -24,12 +27,21 @@ pub struct CreateProjectBody { impl CreateProjectBody { /// Create Project Request Body - pub fn new(name: String) -> CreateProjectBody { + pub fn new(environment: EnvironmentEnum, name: String) -> CreateProjectBody { CreateProjectBody { + environment, name, workspace_id: None, } } } +/// The environment of the project. prod Production dev Development +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum EnvironmentEnum { + #[serde(rename = "prod")] + Prod, + #[serde(rename = "dev")] + Dev, +} diff --git a/clients/client/rust/src/models/create_project_branding.rs b/clients/client/rust/src/models/create_project_branding.rs index 2ff41d3f241..74db4af2075 100644 --- a/clients/client/rust/src/models/create_project_branding.rs +++ b/clients/client/rust/src/models/create_project_branding.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_project_member_invite_body.rs b/clients/client/rust/src/models/create_project_member_invite_body.rs index aaa33478ee5..1b5bd9ccd10 100644 --- a/clients/client/rust/src/models/create_project_member_invite_body.rs +++ b/clients/client/rust/src/models/create_project_member_invite_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_project_normalized_payload.rs b/clients/client/rust/src/models/create_project_normalized_payload.rs index dec084f0369..568c0bb103f 100644 --- a/clients/client/rust/src/models/create_project_normalized_payload.rs +++ b/clients/client/rust/src/models/create_project_normalized_payload.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -20,6 +20,12 @@ pub struct CreateProjectNormalizedPayload { /// Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. #[serde(rename = "disable_account_experience_welcome_screen", skip_serializing_if = "Option::is_none")] pub disable_account_experience_welcome_screen: Option, + /// Whether the new account experience is enabled and reachable. + #[serde(rename = "enable_ax_v2", skip_serializing_if = "Option::is_none")] + pub enable_ax_v2: Option, + /// prod Production dev Development + #[serde(rename = "environment")] + pub environment: EnvironmentEnum, #[serde(rename = "hydra_oauth2_allowed_top_level_claims", skip_serializing_if = "Option::is_none")] pub hydra_oauth2_allowed_top_level_claims: Option>, /// Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. @@ -37,6 +43,9 @@ pub struct CreateProjectNormalizedPayload { /// Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. #[serde(rename = "hydra_oauth2_grant_jwt_max_ttl", skip_serializing_if = "Option::is_none")] pub hydra_oauth2_grant_jwt_max_ttl: Option, + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + #[serde(rename = "hydra_oauth2_mirror_top_level_claims", skip_serializing_if = "Option::is_none")] + pub hydra_oauth2_mirror_top_level_claims: Option, /// Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. #[serde(rename = "hydra_oauth2_pkce_enforced", skip_serializing_if = "Option::is_none")] pub hydra_oauth2_pkce_enforced: Option, @@ -202,6 +211,9 @@ pub struct CreateProjectNormalizedPayload { /// Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. #[serde(rename = "kratos_courier_templates_login_code_valid_email_subject", skip_serializing_if = "Option::is_none")] pub kratos_courier_templates_login_code_valid_email_subject: Option, + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + #[serde(rename = "kratos_courier_templates_login_code_valid_sms_body_plaintext", skip_serializing_if = "Option::is_none")] + pub kratos_courier_templates_login_code_valid_sms_body_plaintext: Option, /// Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. #[serde(rename = "kratos_courier_templates_recovery_code_invalid_email_body_html", skip_serializing_if = "Option::is_none")] pub kratos_courier_templates_recovery_code_invalid_email_body_html: Option, @@ -452,6 +464,9 @@ pub struct CreateProjectNormalizedPayload { /// Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. #[serde(rename = "kratos_selfservice_methods_code_enabled", skip_serializing_if = "Option::is_none")] pub kratos_selfservice_methods_code_enabled: Option, + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + #[serde(rename = "kratos_selfservice_methods_code_mfa_enabled", skip_serializing_if = "Option::is_none")] + pub kratos_selfservice_methods_code_mfa_enabled: Option, /// Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. #[serde(rename = "kratos_selfservice_methods_code_passwordless_enabled", skip_serializing_if = "Option::is_none")] pub kratos_selfservice_methods_code_passwordless_enabled: Option, @@ -564,16 +579,19 @@ pub struct CreateProjectNormalizedPayload { impl CreateProjectNormalizedPayload { /// Create project (normalized) request payload - pub fn new(name: String) -> CreateProjectNormalizedPayload { + pub fn new(environment: EnvironmentEnum, name: String) -> CreateProjectNormalizedPayload { CreateProjectNormalizedPayload { created_at: None, disable_account_experience_welcome_screen: None, + enable_ax_v2: None, + environment, hydra_oauth2_allowed_top_level_claims: None, hydra_oauth2_client_credentials_default_grant_allowed_scope: None, hydra_oauth2_exclude_not_before_claim: None, hydra_oauth2_grant_jwt_iat_optional: None, hydra_oauth2_grant_jwt_jti_optional: None, hydra_oauth2_grant_jwt_max_ttl: None, + hydra_oauth2_mirror_top_level_claims: None, hydra_oauth2_pkce_enforced: None, hydra_oauth2_pkce_enforced_for_public_clients: None, hydra_oauth2_refresh_token_hook: None, @@ -632,6 +650,7 @@ impl CreateProjectNormalizedPayload { kratos_courier_templates_login_code_valid_email_body_html: None, kratos_courier_templates_login_code_valid_email_body_plaintext: None, kratos_courier_templates_login_code_valid_email_subject: None, + kratos_courier_templates_login_code_valid_sms_body_plaintext: None, kratos_courier_templates_recovery_code_invalid_email_body_html: None, kratos_courier_templates_recovery_code_invalid_email_body_plaintext: None, kratos_courier_templates_recovery_code_invalid_email_subject: None, @@ -717,6 +736,7 @@ impl CreateProjectNormalizedPayload { kratos_selfservice_flows_verification_use: None, kratos_selfservice_methods_code_config_lifespan: None, kratos_selfservice_methods_code_enabled: None, + kratos_selfservice_methods_code_mfa_enabled: None, kratos_selfservice_methods_code_passwordless_enabled: None, kratos_selfservice_methods_link_config_base_url: None, kratos_selfservice_methods_link_config_lifespan: None, @@ -759,6 +779,14 @@ impl CreateProjectNormalizedPayload { } } +/// prod Production dev Development +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum EnvironmentEnum { + #[serde(rename = "prod")] + Prod, + #[serde(rename = "dev")] + Dev, +} /// Defines access token type. jwt is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens This governs the \"strategies.access_token\" setting. opaque Oauth2AccessTokenStrategyOpaque jwt Oauth2AccessTokenStrategyJwt #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum HydraStrategiesAccessTokenEnum { diff --git a/clients/client/rust/src/models/create_recovery_code_for_identity_body.rs b/clients/client/rust/src/models/create_recovery_code_for_identity_body.rs index 21db5d60101..f36915e08bd 100644 --- a/clients/client/rust/src/models/create_recovery_code_for_identity_body.rs +++ b/clients/client/rust/src/models/create_recovery_code_for_identity_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_recovery_link_for_identity_body.rs b/clients/client/rust/src/models/create_recovery_link_for_identity_body.rs index 0da6fd24101..f3654b46469 100644 --- a/clients/client/rust/src/models/create_recovery_link_for_identity_body.rs +++ b/clients/client/rust/src/models/create_recovery_link_for_identity_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_relationship_body.rs b/clients/client/rust/src/models/create_relationship_body.rs index 2e194160169..311705f1714 100644 --- a/clients/client/rust/src/models/create_relationship_body.rs +++ b/clients/client/rust/src/models/create_relationship_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_subscription_body.rs b/clients/client/rust/src/models/create_subscription_body.rs index 7f24b70f56d..f3ceaa9dceb 100644 --- a/clients/client/rust/src/models/create_subscription_body.rs +++ b/clients/client/rust/src/models/create_subscription_body.rs @@ -3,12 +3,11 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ -/// CreateSubscriptionBody : Create Subscription Request Body @@ -22,25 +21,21 @@ pub struct CreateSubscriptionBody { pub interval: IntervalEnum, #[serde(rename = "plan")] pub plan: String, - #[serde(rename = "provision_first_project", skip_serializing_if = "Option::is_none")] - pub provision_first_project: Option, + #[serde(rename = "provision_first_project")] + pub provision_first_project: String, #[serde(rename = "return_to", skip_serializing_if = "Option::is_none")] pub return_to: Option, - #[serde(rename = "workspace", skip_serializing_if = "Option::is_none")] - pub workspace: Option, } impl CreateSubscriptionBody { - /// Create Subscription Request Body - pub fn new(interval: IntervalEnum, plan: String) -> CreateSubscriptionBody { + pub fn new(interval: IntervalEnum, plan: String, provision_first_project: String) -> CreateSubscriptionBody { CreateSubscriptionBody { currency: None, interval, plan, - provision_first_project: None, + provision_first_project, return_to: None, - workspace: None, } } } diff --git a/clients/client/rust/src/models/internal_provision_mock_subscription.rs b/clients/client/rust/src/models/create_subscription_common.rs similarity index 52% rename from clients/client/rust/src/models/internal_provision_mock_subscription.rs rename to clients/client/rust/src/models/create_subscription_common.rs index 291d5c8ec0a..4c0bb2b2450 100644 --- a/clients/client/rust/src/models/internal_provision_mock_subscription.rs +++ b/clients/client/rust/src/models/create_subscription_common.rs @@ -3,45 +3,41 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ -/// InternalProvisionMockSubscription : Internal Provision Mock Subscription Request Body #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InternalProvisionMockSubscription { - /// Currency usd USD eur Euro - #[serde(rename = "currency")] - pub currency: CurrencyEnum, - /// Identity ID - #[serde(rename = "identity_id")] - pub identity_id: String, - /// Billing Interval monthly Monthly yearly Yearly +pub struct CreateSubscriptionCommon { + /// usd USD eur Euro + #[serde(rename = "currency", skip_serializing_if = "Option::is_none")] + pub currency: Option, + /// monthly Monthly yearly Yearly #[serde(rename = "interval")] pub interval: IntervalEnum, - /// Plan ID #[serde(rename = "plan")] pub plan: String, + #[serde(rename = "return_to", skip_serializing_if = "Option::is_none")] + pub return_to: Option, } -impl InternalProvisionMockSubscription { - /// Internal Provision Mock Subscription Request Body - pub fn new(currency: CurrencyEnum, identity_id: String, interval: IntervalEnum, plan: String) -> InternalProvisionMockSubscription { - InternalProvisionMockSubscription { - currency, - identity_id, +impl CreateSubscriptionCommon { + pub fn new(interval: IntervalEnum, plan: String) -> CreateSubscriptionCommon { + CreateSubscriptionCommon { + currency: None, interval, plan, + return_to: None, } } } -/// Currency usd USD eur Euro +/// usd USD eur Euro #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum CurrencyEnum { #[serde(rename = "usd")] @@ -49,7 +45,7 @@ pub enum CurrencyEnum { #[serde(rename = "eur")] Eur, } -/// Billing Interval monthly Monthly yearly Yearly +/// monthly Monthly yearly Yearly #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum IntervalEnum { #[serde(rename = "monthly")] diff --git a/clients/client/rust/src/models/create_verifiable_credential_request_body.rs b/clients/client/rust/src/models/create_verifiable_credential_request_body.rs index 38095bccfb7..92f2293453f 100644 --- a/clients/client/rust/src/models/create_verifiable_credential_request_body.rs +++ b/clients/client/rust/src/models/create_verifiable_credential_request_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_workspace_member_invite_body.rs b/clients/client/rust/src/models/create_workspace_member_invite_body.rs index c7c0debc047..0c37ef134eb 100644 --- a/clients/client/rust/src/models/create_workspace_member_invite_body.rs +++ b/clients/client/rust/src/models/create_workspace_member_invite_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/create_workspace_payload.rs b/clients/client/rust/src/models/create_workspace_payload.rs new file mode 100644 index 00000000000..39e2d00fc9b --- /dev/null +++ b/clients/client/rust/src/models/create_workspace_payload.rs @@ -0,0 +1,30 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateWorkspacePayload { + /// The name of the workspace + #[serde(rename = "name")] + pub name: String, +} + + +impl CreateWorkspacePayload { + pub fn new(name: String) -> CreateWorkspacePayload { + CreateWorkspacePayload { + name, + } + } +} + + diff --git a/clients/client/rust/src/models/create_workspace_subscription_body.rs b/clients/client/rust/src/models/create_workspace_subscription_body.rs new file mode 100644 index 00000000000..a49f20a0186 --- /dev/null +++ b/clients/client/rust/src/models/create_workspace_subscription_body.rs @@ -0,0 +1,56 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct CreateWorkspaceSubscriptionBody { + /// usd USD eur Euro + #[serde(rename = "currency", skip_serializing_if = "Option::is_none")] + pub currency: Option, + /// monthly Monthly yearly Yearly + #[serde(rename = "interval")] + pub interval: IntervalEnum, + #[serde(rename = "plan")] + pub plan: String, + #[serde(rename = "return_to", skip_serializing_if = "Option::is_none")] + pub return_to: Option, +} + + +impl CreateWorkspaceSubscriptionBody { + pub fn new(interval: IntervalEnum, plan: String) -> CreateWorkspaceSubscriptionBody { + CreateWorkspaceSubscriptionBody { + currency: None, + interval, + plan, + return_to: None, + } + } +} + +/// usd USD eur Euro +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum CurrencyEnum { + #[serde(rename = "usd")] + Usd, + #[serde(rename = "eur")] + Eur, +} +/// monthly Monthly yearly Yearly +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum IntervalEnum { + #[serde(rename = "monthly")] + Monthly, + #[serde(rename = "yearly")] + Yearly, +} + diff --git a/clients/client/rust/src/models/credential_supported_draft00.rs b/clients/client/rust/src/models/credential_supported_draft00.rs index dacc16ff084..0cd4c1bda42 100644 --- a/clients/client/rust/src/models/credential_supported_draft00.rs +++ b/clients/client/rust/src/models/credential_supported_draft00.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/custom_domain.rs b/clients/client/rust/src/models/custom_domain.rs index 88381952753..19edfae6e62 100644 --- a/clients/client/rust/src/models/custom_domain.rs +++ b/clients/client/rust/src/models/custom_domain.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/delete_my_sessions_count.rs b/clients/client/rust/src/models/delete_my_sessions_count.rs index c09dad83f24..e8280448321 100644 --- a/clients/client/rust/src/models/delete_my_sessions_count.rs +++ b/clients/client/rust/src/models/delete_my_sessions_count.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/email_template_data.rs b/clients/client/rust/src/models/email_template_data.rs index 7f0a7aa6ac5..a2b8e720fdb 100644 --- a/clients/client/rust/src/models/email_template_data.rs +++ b/clients/client/rust/src/models/email_template_data.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/email_template_data_body.rs b/clients/client/rust/src/models/email_template_data_body.rs index 3182e8fa211..77407e0693b 100644 --- a/clients/client/rust/src/models/email_template_data_body.rs +++ b/clients/client/rust/src/models/email_template_data_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/error_authenticator_assurance_level_not_satisfied.rs b/clients/client/rust/src/models/error_authenticator_assurance_level_not_satisfied.rs index 94ce89095c6..3616bb5720c 100644 --- a/clients/client/rust/src/models/error_authenticator_assurance_level_not_satisfied.rs +++ b/clients/client/rust/src/models/error_authenticator_assurance_level_not_satisfied.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/error_browser_location_change_required.rs b/clients/client/rust/src/models/error_browser_location_change_required.rs index ab9aac0c748..dfe0fc56b1b 100644 --- a/clients/client/rust/src/models/error_browser_location_change_required.rs +++ b/clients/client/rust/src/models/error_browser_location_change_required.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/error_flow_replaced.rs b/clients/client/rust/src/models/error_flow_replaced.rs index 84452f88953..779b6ee50f1 100644 --- a/clients/client/rust/src/models/error_flow_replaced.rs +++ b/clients/client/rust/src/models/error_flow_replaced.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/error_generic.rs b/clients/client/rust/src/models/error_generic.rs index 9122e75a0b1..da045f500a2 100644 --- a/clients/client/rust/src/models/error_generic.rs +++ b/clients/client/rust/src/models/error_generic.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/error_o_auth2.rs b/clients/client/rust/src/models/error_o_auth2.rs index 6ffdcd069ca..9ddd3eb3ddd 100644 --- a/clients/client/rust/src/models/error_o_auth2.rs +++ b/clients/client/rust/src/models/error_o_auth2.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/event_stream.rs b/clients/client/rust/src/models/event_stream.rs index 57b93b506e0..adfbd13d662 100644 --- a/clients/client/rust/src/models/event_stream.rs +++ b/clients/client/rust/src/models/event_stream.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/expanded_permission_tree.rs b/clients/client/rust/src/models/expanded_permission_tree.rs index f21c4ed8ad7..67ef5f4e985 100644 --- a/clients/client/rust/src/models/expanded_permission_tree.rs +++ b/clients/client/rust/src/models/expanded_permission_tree.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/flow_error.rs b/clients/client/rust/src/models/flow_error.rs index fa699084e03..cd8d3694e3a 100644 --- a/clients/client/rust/src/models/flow_error.rs +++ b/clients/client/rust/src/models/flow_error.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/generic_error.rs b/clients/client/rust/src/models/generic_error.rs index a2719d24bb5..50c6e814d1d 100644 --- a/clients/client/rust/src/models/generic_error.rs +++ b/clients/client/rust/src/models/generic_error.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/generic_error_content.rs b/clients/client/rust/src/models/generic_error_content.rs index 1a90d71f6ed..ef8683476ec 100644 --- a/clients/client/rust/src/models/generic_error_content.rs +++ b/clients/client/rust/src/models/generic_error_content.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/generic_usage.rs b/clients/client/rust/src/models/generic_usage.rs index df359f5e06f..e994b9db9f0 100644 --- a/clients/client/rust/src/models/generic_usage.rs +++ b/clients/client/rust/src/models/generic_usage.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_attributes_count_response.rs b/clients/client/rust/src/models/get_attributes_count_response.rs index e3ee5dd95f8..877875398af 100644 --- a/clients/client/rust/src/models/get_attributes_count_response.rs +++ b/clients/client/rust/src/models/get_attributes_count_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_managed_identity_schema_location.rs b/clients/client/rust/src/models/get_managed_identity_schema_location.rs index 84f465c5cfd..facde4ead57 100644 --- a/clients/client/rust/src/models/get_managed_identity_schema_location.rs +++ b/clients/client/rust/src/models/get_managed_identity_schema_location.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_metrics_event_attributes_response.rs b/clients/client/rust/src/models/get_metrics_event_attributes_response.rs index 082732607d5..f11301c346c 100644 --- a/clients/client/rust/src/models/get_metrics_event_attributes_response.rs +++ b/clients/client/rust/src/models/get_metrics_event_attributes_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_metrics_event_types_response.rs b/clients/client/rust/src/models/get_metrics_event_types_response.rs index 13f484e2f10..0ec62b153dd 100644 --- a/clients/client/rust/src/models/get_metrics_event_types_response.rs +++ b/clients/client/rust/src/models/get_metrics_event_types_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_organization_response.rs b/clients/client/rust/src/models/get_organization_response.rs index 74bf8d0f76b..b36fd24f99b 100644 --- a/clients/client/rust/src/models/get_organization_response.rs +++ b/clients/client/rust/src/models/get_organization_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_project_events_body.rs b/clients/client/rust/src/models/get_project_events_body.rs index 329eed97a64..ca170f05d83 100644 --- a/clients/client/rust/src/models/get_project_events_body.rs +++ b/clients/client/rust/src/models/get_project_events_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_project_events_response.rs b/clients/client/rust/src/models/get_project_events_response.rs index 9f157bfd35a..29bc6ea1288 100644 --- a/clients/client/rust/src/models/get_project_events_response.rs +++ b/clients/client/rust/src/models/get_project_events_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_project_metrics_response.rs b/clients/client/rust/src/models/get_project_metrics_response.rs index e8761286a07..433e66b537e 100644 --- a/clients/client/rust/src/models/get_project_metrics_response.rs +++ b/clients/client/rust/src/models/get_project_metrics_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_session_activity_response.rs b/clients/client/rust/src/models/get_session_activity_response.rs index 1a72c505d2a..8b6b0a7d993 100644 --- a/clients/client/rust/src/models/get_session_activity_response.rs +++ b/clients/client/rust/src/models/get_session_activity_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/get_version_200_response.rs b/clients/client/rust/src/models/get_version_200_response.rs index 109b8b165fb..24b1baae7c2 100644 --- a/clients/client/rust/src/models/get_version_200_response.rs +++ b/clients/client/rust/src/models/get_version_200_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/health_not_ready_status.rs b/clients/client/rust/src/models/health_not_ready_status.rs index 66d4792d410..65eaf3ab060 100644 --- a/clients/client/rust/src/models/health_not_ready_status.rs +++ b/clients/client/rust/src/models/health_not_ready_status.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/health_status.rs b/clients/client/rust/src/models/health_status.rs index 90c796b4f08..3f9d3d05206 100644 --- a/clients/client/rust/src/models/health_status.rs +++ b/clients/client/rust/src/models/health_status.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity.rs b/clients/client/rust/src/models/identity.rs index f3587ec845c..c993114e264 100644 --- a/clients/client/rust/src/models/identity.rs +++ b/clients/client/rust/src/models/identity.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -40,8 +40,9 @@ pub struct Identity { /// SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url #[serde(rename = "schema_url")] pub schema_url: String, + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive #[serde(rename = "state", skip_serializing_if = "Option::is_none")] - pub state: Option, + pub state: Option, #[serde(rename = "state_changed_at", skip_serializing_if = "Option::is_none")] pub state_changed_at: Option, /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. @@ -78,4 +79,12 @@ impl Identity { } } +/// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StateEnum { + #[serde(rename = "active")] + Active, + #[serde(rename = "inactive")] + Inactive, +} diff --git a/clients/client/rust/src/models/identity_credentials.rs b/clients/client/rust/src/models/identity_credentials.rs index 4b8a5121e16..0834931b594 100644 --- a/clients/client/rust/src/models/identity_credentials.rs +++ b/clients/client/rust/src/models/identity_credentials.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -22,8 +22,9 @@ pub struct IdentityCredentials { /// Identifiers represents a list of unique identifiers this credential type matches. #[serde(rename = "identifiers", skip_serializing_if = "Option::is_none")] pub identifiers: Option>, + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 #[serde(rename = "type", skip_serializing_if = "Option::is_none")] - pub _type: Option, + pub _type: Option, /// UpdatedAt is a helper struct field for gobuffalo.pop. #[serde(rename = "updated_at", skip_serializing_if = "Option::is_none")] pub updated_at: Option, @@ -52,4 +53,24 @@ impl IdentityCredentials { } } +/// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum TypeEnum { + #[serde(rename = "password")] + Password, + #[serde(rename = "oidc")] + Oidc, + #[serde(rename = "totp")] + Totp, + #[serde(rename = "lookup_secret")] + LookupSecret, + #[serde(rename = "webauthn")] + Webauthn, + #[serde(rename = "code")] + Code, + #[serde(rename = "link_recovery")] + LinkRecovery, + #[serde(rename = "code_recovery")] + CodeRecovery, +} diff --git a/clients/client/rust/src/models/identity_credentials_code.rs b/clients/client/rust/src/models/identity_credentials_code.rs index fbac76adecb..5e96e651651 100644 --- a/clients/client/rust/src/models/identity_credentials_code.rs +++ b/clients/client/rust/src/models/identity_credentials_code.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -14,6 +14,7 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IdentityCredentialsCode { + /// The type of the address for this code #[serde(rename = "address_type", skip_serializing_if = "Option::is_none")] pub address_type: Option, #[serde(rename = "used_at", skip_serializing_if = "Option::is_none")] diff --git a/clients/client/rust/src/models/identity_credentials_oidc.rs b/clients/client/rust/src/models/identity_credentials_oidc.rs index 987bb90bc76..265124823d9 100644 --- a/clients/client/rust/src/models/identity_credentials_oidc.rs +++ b/clients/client/rust/src/models/identity_credentials_oidc.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_credentials_oidc_provider.rs b/clients/client/rust/src/models/identity_credentials_oidc_provider.rs index ce63cef5b3b..a555fc86ae7 100644 --- a/clients/client/rust/src/models/identity_credentials_oidc_provider.rs +++ b/clients/client/rust/src/models/identity_credentials_oidc_provider.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_credentials_password.rs b/clients/client/rust/src/models/identity_credentials_password.rs index fa743255370..ef7484f3edc 100644 --- a/clients/client/rust/src/models/identity_credentials_password.rs +++ b/clients/client/rust/src/models/identity_credentials_password.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_credentials_type.rs b/clients/client/rust/src/models/identity_credentials_type.rs deleted file mode 100644 index 295f3ba10d0..00000000000 --- a/clients/client/rust/src/models/identity_credentials_type.rs +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Ory APIs - * - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * Generated by: https://openapi-generator.tech - */ - -/// IdentityCredentialsType : and so on. - -/// and so on. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum IdentityCredentialsType { - #[serde(rename = "password")] - Password, - #[serde(rename = "totp")] - Totp, - #[serde(rename = "oidc")] - Oidc, - #[serde(rename = "webauthn")] - Webauthn, - #[serde(rename = "lookup_secret")] - LookupSecret, - #[serde(rename = "code")] - Code, - -} - -impl ToString for IdentityCredentialsType { - fn to_string(&self) -> String { - match self { - Self::Password => String::from("password"), - Self::Totp => String::from("totp"), - Self::Oidc => String::from("oidc"), - Self::Webauthn => String::from("webauthn"), - Self::LookupSecret => String::from("lookup_secret"), - Self::Code => String::from("code"), - } - } -} - - - - diff --git a/clients/client/rust/src/models/identity_patch.rs b/clients/client/rust/src/models/identity_patch.rs index 1629440c1b0..7692ea4a4af 100644 --- a/clients/client/rust/src/models/identity_patch.rs +++ b/clients/client/rust/src/models/identity_patch.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_patch_response.rs b/clients/client/rust/src/models/identity_patch_response.rs index 2bc5426c30f..fd1fbb9cd4f 100644 --- a/clients/client/rust/src/models/identity_patch_response.rs +++ b/clients/client/rust/src/models/identity_patch_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_schema_container.rs b/clients/client/rust/src/models/identity_schema_container.rs index 5fbe5ed67c5..94b565dc871 100644 --- a/clients/client/rust/src/models/identity_schema_container.rs +++ b/clients/client/rust/src/models/identity_schema_container.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_schema_preset.rs b/clients/client/rust/src/models/identity_schema_preset.rs index ee3b69c2e33..50fd2164612 100644 --- a/clients/client/rust/src/models/identity_schema_preset.rs +++ b/clients/client/rust/src/models/identity_schema_preset.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_state.rs b/clients/client/rust/src/models/identity_state.rs deleted file mode 100644 index 6dc3c00bd1f..00000000000 --- a/clients/client/rust/src/models/identity_state.rs +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Ory APIs - * - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * Generated by: https://openapi-generator.tech - */ - -/// IdentityState : The state can either be `active` or `inactive`. - -/// The state can either be `active` or `inactive`. -#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] -pub enum IdentityState { - #[serde(rename = "active")] - Active, - #[serde(rename = "inactive")] - Inactive, - -} - -impl ToString for IdentityState { - fn to_string(&self) -> String { - match self { - Self::Active => String::from("active"), - Self::Inactive => String::from("inactive"), - } - } -} - - - - diff --git a/clients/client/rust/src/models/identity_with_credentials.rs b/clients/client/rust/src/models/identity_with_credentials.rs index a680ab6b5c5..90c289ae2ca 100644 --- a/clients/client/rust/src/models/identity_with_credentials.rs +++ b/clients/client/rust/src/models/identity_with_credentials.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_with_credentials_oidc.rs b/clients/client/rust/src/models/identity_with_credentials_oidc.rs index 42fb41e0fa4..a38007c6a0b 100644 --- a/clients/client/rust/src/models/identity_with_credentials_oidc.rs +++ b/clients/client/rust/src/models/identity_with_credentials_oidc.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_with_credentials_oidc_config.rs b/clients/client/rust/src/models/identity_with_credentials_oidc_config.rs index cd40241ed69..93c58444e45 100644 --- a/clients/client/rust/src/models/identity_with_credentials_oidc_config.rs +++ b/clients/client/rust/src/models/identity_with_credentials_oidc_config.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_with_credentials_oidc_config_provider.rs b/clients/client/rust/src/models/identity_with_credentials_oidc_config_provider.rs index 1916e4f84f8..85cc172e12e 100644 --- a/clients/client/rust/src/models/identity_with_credentials_oidc_config_provider.rs +++ b/clients/client/rust/src/models/identity_with_credentials_oidc_config_provider.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_with_credentials_password.rs b/clients/client/rust/src/models/identity_with_credentials_password.rs index db19283b6b2..2dfd18ad8d0 100644 --- a/clients/client/rust/src/models/identity_with_credentials_password.rs +++ b/clients/client/rust/src/models/identity_with_credentials_password.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/identity_with_credentials_password_config.rs b/clients/client/rust/src/models/identity_with_credentials_password_config.rs index 8ced9f84db2..93837f7f5f9 100644 --- a/clients/client/rust/src/models/identity_with_credentials_password_config.rs +++ b/clients/client/rust/src/models/identity_with_credentials_password_config.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/internal_get_project_branding_body.rs b/clients/client/rust/src/models/internal_get_project_branding_body.rs index 5e46a3d3ffb..5a260d31d1a 100644 --- a/clients/client/rust/src/models/internal_get_project_branding_body.rs +++ b/clients/client/rust/src/models/internal_get_project_branding_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/internal_is_ax_welcome_screen_enabled_for_project_body.rs b/clients/client/rust/src/models/internal_is_ax_welcome_screen_enabled_for_project_body.rs index 1fe61c82b72..1492295d848 100644 --- a/clients/client/rust/src/models/internal_is_ax_welcome_screen_enabled_for_project_body.rs +++ b/clients/client/rust/src/models/internal_is_ax_welcome_screen_enabled_for_project_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_body.rs b/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_body.rs index 0e460406d4e..2fa822a6904 100644 --- a/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_body.rs +++ b/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_response.rs b/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_response.rs index f2197fc8544..8bbdfd7939c 100644 --- a/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_response.rs +++ b/clients/client/rust/src/models/internal_is_owner_for_project_by_slug_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/introspected_o_auth2_token.rs b/clients/client/rust/src/models/introspected_o_auth2_token.rs index 0492d7ce4f1..860bf9cd801 100644 --- a/clients/client/rust/src/models/introspected_o_auth2_token.rs +++ b/clients/client/rust/src/models/introspected_o_auth2_token.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/is_owner_for_project_by_slug.rs b/clients/client/rust/src/models/is_owner_for_project_by_slug.rs index 3fb014fd1b2..08cbd344e27 100644 --- a/clients/client/rust/src/models/is_owner_for_project_by_slug.rs +++ b/clients/client/rust/src/models/is_owner_for_project_by_slug.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/is_ready_200_response.rs b/clients/client/rust/src/models/is_ready_200_response.rs index b6449f0f286..2a23e8455ac 100644 --- a/clients/client/rust/src/models/is_ready_200_response.rs +++ b/clients/client/rust/src/models/is_ready_200_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/is_ready_503_response.rs b/clients/client/rust/src/models/is_ready_503_response.rs index c2134a80fb2..a19c6a0c66b 100644 --- a/clients/client/rust/src/models/is_ready_503_response.rs +++ b/clients/client/rust/src/models/is_ready_503_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/json_patch.rs b/clients/client/rust/src/models/json_patch.rs index f3e46857c4d..f40dc85b39b 100644 --- a/clients/client/rust/src/models/json_patch.rs +++ b/clients/client/rust/src/models/json_patch.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/json_web_key.rs b/clients/client/rust/src/models/json_web_key.rs index a4e5d675d1a..ee50ca3e1a4 100644 --- a/clients/client/rust/src/models/json_web_key.rs +++ b/clients/client/rust/src/models/json_web_key.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/json_web_key_set.rs b/clients/client/rust/src/models/json_web_key_set.rs index 617b2d5e6bd..8535239b681 100644 --- a/clients/client/rust/src/models/json_web_key_set.rs +++ b/clients/client/rust/src/models/json_web_key_set.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/keto_namespace.rs b/clients/client/rust/src/models/keto_namespace.rs index 534b133a86f..cbb1022d485 100644 --- a/clients/client/rust/src/models/keto_namespace.rs +++ b/clients/client/rust/src/models/keto_namespace.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/list_event_streams.rs b/clients/client/rust/src/models/list_event_streams.rs index b359eb53230..142f59dc2d9 100644 --- a/clients/client/rust/src/models/list_event_streams.rs +++ b/clients/client/rust/src/models/list_event_streams.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/list_my_workspaces_response.rs b/clients/client/rust/src/models/list_my_workspaces_response.rs index 2b6f598aed5..411b36214e8 100644 --- a/clients/client/rust/src/models/list_my_workspaces_response.rs +++ b/clients/client/rust/src/models/list_my_workspaces_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -18,12 +18,12 @@ pub struct ListMyWorkspacesResponse { #[serde(rename = "next_page_token")] pub next_page_token: String, #[serde(rename = "workspaces")] - pub workspaces: Vec, + pub workspaces: Vec, } impl ListMyWorkspacesResponse { - pub fn new(has_next_page: bool, next_page_token: String, workspaces: Vec) -> ListMyWorkspacesResponse { + pub fn new(has_next_page: bool, next_page_token: String, workspaces: Vec) -> ListMyWorkspacesResponse { ListMyWorkspacesResponse { has_next_page, next_page_token, diff --git a/clients/client/rust/src/models/list_organizations_response.rs b/clients/client/rust/src/models/list_organizations_response.rs index e724d5db4c2..a69fd6c2a91 100644 --- a/clients/client/rust/src/models/list_organizations_response.rs +++ b/clients/client/rust/src/models/list_organizations_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/list_workspace_projects_response.rs b/clients/client/rust/src/models/list_workspace_projects_response.rs new file mode 100644 index 00000000000..826f7d08e09 --- /dev/null +++ b/clients/client/rust/src/models/list_workspace_projects_response.rs @@ -0,0 +1,35 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ListWorkspaceProjectsResponse { + #[serde(rename = "has_next_page")] + pub has_next_page: bool, + #[serde(rename = "next_page")] + pub next_page: String, + #[serde(rename = "projects")] + pub projects: Vec, +} + + +impl ListWorkspaceProjectsResponse { + pub fn new(has_next_page: bool, next_page: String, projects: Vec) -> ListWorkspaceProjectsResponse { + ListWorkspaceProjectsResponse { + has_next_page, + next_page, + projects, + } + } +} + + diff --git a/clients/client/rust/src/models/login_flow.rs b/clients/client/rust/src/models/login_flow.rs index dbd4dbd55a9..3f11e087299 100644 --- a/clients/client/rust/src/models/login_flow.rs +++ b/clients/client/rust/src/models/login_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -14,8 +14,9 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LoginFlow { + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 #[serde(rename = "active", skip_serializing_if = "Option::is_none")] - pub active: Option, + pub active: Option, /// CreatedAt is a helper struct field for gobuffalo.pop. #[serde(rename = "created_at", skip_serializing_if = "Option::is_none")] pub created_at: Option, @@ -52,6 +53,9 @@ pub struct LoginFlow { /// State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. #[serde(rename = "state")] pub state: Option, + /// TransientPayload is used to pass data from the login to hooks and email templates + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// The flow type can either be `api` or `browser`. #[serde(rename = "type")] pub _type: String, @@ -81,6 +85,7 @@ impl LoginFlow { return_to: None, session_token_exchange_code: None, state, + transient_payload: None, _type, ui: Box::new(ui), updated_at: None, @@ -88,4 +93,24 @@ impl LoginFlow { } } +/// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ActiveEnum { + #[serde(rename = "password")] + Password, + #[serde(rename = "oidc")] + Oidc, + #[serde(rename = "totp")] + Totp, + #[serde(rename = "lookup_secret")] + LookupSecret, + #[serde(rename = "webauthn")] + Webauthn, + #[serde(rename = "code")] + Code, + #[serde(rename = "link_recovery")] + LinkRecovery, + #[serde(rename = "code_recovery")] + CodeRecovery, +} diff --git a/clients/client/rust/src/models/login_flow_state.rs b/clients/client/rust/src/models/login_flow_state.rs index c9d594d2b58..74988b4f7b4 100644 --- a/clients/client/rust/src/models/login_flow_state.rs +++ b/clients/client/rust/src/models/login_flow_state.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/logout_flow.rs b/clients/client/rust/src/models/logout_flow.rs index 1e009c5bff3..92d496a10e2 100644 --- a/clients/client/rust/src/models/logout_flow.rs +++ b/clients/client/rust/src/models/logout_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/managed_identity_schema.rs b/clients/client/rust/src/models/managed_identity_schema.rs index d19fcbdeb24..06f5a8e291c 100644 --- a/clients/client/rust/src/models/managed_identity_schema.rs +++ b/clients/client/rust/src/models/managed_identity_schema.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/managed_identity_schema_validation_result.rs b/clients/client/rust/src/models/managed_identity_schema_validation_result.rs index da12e5de16b..17009d75fce 100644 --- a/clients/client/rust/src/models/managed_identity_schema_validation_result.rs +++ b/clients/client/rust/src/models/managed_identity_schema_validation_result.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/member_invite.rs b/clients/client/rust/src/models/member_invite.rs index 6710a859bb1..1ce466c8969 100644 --- a/clients/client/rust/src/models/member_invite.rs +++ b/clients/client/rust/src/models/member_invite.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/message.rs b/clients/client/rust/src/models/message.rs index 99792a47fe8..0334590dd09 100644 --- a/clients/client/rust/src/models/message.rs +++ b/clients/client/rust/src/models/message.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/message_dispatch.rs b/clients/client/rust/src/models/message_dispatch.rs index 3742c5993f9..79d328f280f 100644 --- a/clients/client/rust/src/models/message_dispatch.rs +++ b/clients/client/rust/src/models/message_dispatch.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/metrics_datapoint.rs b/clients/client/rust/src/models/metrics_datapoint.rs index b51fd519dab..ab69b59efb2 100644 --- a/clients/client/rust/src/models/metrics_datapoint.rs +++ b/clients/client/rust/src/models/metrics_datapoint.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/migration_options.rs b/clients/client/rust/src/models/migration_options.rs new file mode 100644 index 00000000000..7e802d48678 --- /dev/null +++ b/clients/client/rust/src/models/migration_options.rs @@ -0,0 +1,50 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct MigrationOptions { + /// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + #[serde(rename = "environment")] + pub environment: EnvironmentEnum, + /// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + #[serde(rename = "project_subscription")] + pub project_subscription: ProjectSubscriptionEnum, +} + + +impl MigrationOptions { + pub fn new(environment: EnvironmentEnum, project_subscription: ProjectSubscriptionEnum) -> MigrationOptions { + MigrationOptions { + environment, + project_subscription, + } + } +} + +/// The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum EnvironmentEnum { + #[serde(rename = "prod")] + Prod, + #[serde(rename = "dev")] + Dev, +} +/// The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ProjectSubscriptionEnum { + #[serde(rename = "migrate")] + Migrate, + #[serde(rename = "ignore")] + Ignore, +} + diff --git a/clients/client/rust/src/models/mod.rs b/clients/client/rust/src/models/mod.rs index 23285b955de..31aaff6de3b 100644 --- a/clients/client/rust/src/models/mod.rs +++ b/clients/client/rust/src/models/mod.rs @@ -72,10 +72,16 @@ pub mod create_relationship_body; pub use self::create_relationship_body::CreateRelationshipBody; pub mod create_subscription_body; pub use self::create_subscription_body::CreateSubscriptionBody; +pub mod create_subscription_common; +pub use self::create_subscription_common::CreateSubscriptionCommon; pub mod create_verifiable_credential_request_body; pub use self::create_verifiable_credential_request_body::CreateVerifiableCredentialRequestBody; pub mod create_workspace_member_invite_body; pub use self::create_workspace_member_invite_body::CreateWorkspaceMemberInviteBody; +pub mod create_workspace_payload; +pub use self::create_workspace_payload::CreateWorkspacePayload; +pub mod create_workspace_subscription_body; +pub use self::create_workspace_subscription_body::CreateWorkspaceSubscriptionBody; pub mod credential_supported_draft00; pub use self::credential_supported_draft00::CredentialSupportedDraft00; pub mod custom_domain; @@ -144,8 +150,6 @@ pub mod identity_credentials_oidc_provider; pub use self::identity_credentials_oidc_provider::IdentityCredentialsOidcProvider; pub mod identity_credentials_password; pub use self::identity_credentials_password::IdentityCredentialsPassword; -pub mod identity_credentials_type; -pub use self::identity_credentials_type::IdentityCredentialsType; pub mod identity_patch; pub use self::identity_patch::IdentityPatch; pub mod identity_patch_response; @@ -154,8 +158,6 @@ pub mod identity_schema_container; pub use self::identity_schema_container::IdentitySchemaContainer; pub mod identity_schema_preset; pub use self::identity_schema_preset::IdentitySchemaPreset; -pub mod identity_state; -pub use self::identity_state::IdentityState; pub mod identity_with_credentials; pub use self::identity_with_credentials::IdentityWithCredentials; pub mod identity_with_credentials_oidc; @@ -176,8 +178,6 @@ pub mod internal_is_owner_for_project_by_slug_body; pub use self::internal_is_owner_for_project_by_slug_body::InternalIsOwnerForProjectBySlugBody; pub mod internal_is_owner_for_project_by_slug_response; pub use self::internal_is_owner_for_project_by_slug_response::InternalIsOwnerForProjectBySlugResponse; -pub mod internal_provision_mock_subscription; -pub use self::internal_provision_mock_subscription::InternalProvisionMockSubscription; pub mod introspected_o_auth2_token; pub use self::introspected_o_auth2_token::IntrospectedOAuth2Token; pub mod is_owner_for_project_by_slug; @@ -200,6 +200,8 @@ pub mod list_my_workspaces_response; pub use self::list_my_workspaces_response::ListMyWorkspacesResponse; pub mod list_organizations_response; pub use self::list_organizations_response::ListOrganizationsResponse; +pub mod list_workspace_projects_response; +pub use self::list_workspace_projects_response::ListWorkspaceProjectsResponse; pub mod login_flow; pub use self::login_flow::LoginFlow; pub mod login_flow_state; @@ -218,6 +220,8 @@ pub mod message_dispatch; pub use self::message_dispatch::MessageDispatch; pub mod metrics_datapoint; pub use self::metrics_datapoint::MetricsDatapoint; +pub mod migration_options; +pub use self::migration_options::MigrationOptions; pub mod namespace; pub use self::namespace::Namespace; pub mod needs_privileged_session_error; @@ -274,6 +278,8 @@ pub mod patch_identities_body; pub use self::patch_identities_body::PatchIdentitiesBody; pub mod perform_native_logout_body; pub use self::perform_native_logout_body::PerformNativeLogoutBody; +pub mod permissions_on_workpace_response; +pub use self::permissions_on_workpace_response::PermissionsOnWorkpaceResponse; pub mod plan; pub use self::plan::Plan; pub mod plan_details; @@ -298,6 +304,8 @@ pub mod project_events_datapoint; pub use self::project_events_datapoint::ProjectEventsDatapoint; pub mod project_host; pub use self::project_host::ProjectHost; +pub mod project_member; +pub use self::project_member::ProjectMember; pub mod project_metadata; pub use self::project_metadata::ProjectMetadata; pub mod project_service_identity; @@ -366,8 +374,6 @@ pub mod settings_flow_state; pub use self::settings_flow_state::SettingsFlowState; pub mod source_position; pub use self::source_position::SourcePosition; -pub mod stripe_customer; -pub use self::stripe_customer::StripeCustomer; pub mod subject_set; pub use self::subject_set::SubjectSet; pub mod subscription; @@ -468,6 +474,8 @@ pub mod update_verification_flow_with_code_method; pub use self::update_verification_flow_with_code_method::UpdateVerificationFlowWithCodeMethod; pub mod update_verification_flow_with_link_method; pub use self::update_verification_flow_with_link_method::UpdateVerificationFlowWithLinkMethod; +pub mod update_workspace_payload; +pub use self::update_workspace_payload::UpdateWorkspacePayload; pub mod usage; pub use self::usage::Usage; pub mod verifiable_credential_priming_response; @@ -488,3 +496,5 @@ pub mod warning; pub use self::warning::Warning; pub mod workspace; pub use self::workspace::Workspace; +pub mod workspace_meta; +pub use self::workspace_meta::WorkspaceMeta; diff --git a/clients/client/rust/src/models/namespace.rs b/clients/client/rust/src/models/namespace.rs index c7d27bfbcca..3e072c118c6 100644 --- a/clients/client/rust/src/models/namespace.rs +++ b/clients/client/rust/src/models/namespace.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/needs_privileged_session_error.rs b/clients/client/rust/src/models/needs_privileged_session_error.rs index 3c9f09d6d48..f8b99ab3fac 100644 --- a/clients/client/rust/src/models/needs_privileged_session_error.rs +++ b/clients/client/rust/src/models/needs_privileged_session_error.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/normalized_project.rs b/clients/client/rust/src/models/normalized_project.rs index b1c33365947..2aa06a41516 100644 --- a/clients/client/rust/src/models/normalized_project.rs +++ b/clients/client/rust/src/models/normalized_project.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/normalized_project_revision.rs b/clients/client/rust/src/models/normalized_project_revision.rs index 4eeca707645..5dd18801ac8 100644 --- a/clients/client/rust/src/models/normalized_project_revision.rs +++ b/clients/client/rust/src/models/normalized_project_revision.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -19,6 +19,9 @@ pub struct NormalizedProjectRevision { /// Whether to disable the account experience welcome screen, which is hosted under `/ui/welcome`. #[serde(rename = "disable_account_experience_welcome_screen", skip_serializing_if = "Option::is_none")] pub disable_account_experience_welcome_screen: Option, + /// Whether the new account experience is enabled and reachable. + #[serde(rename = "enable_ax_v2", skip_serializing_if = "Option::is_none")] + pub enable_ax_v2: Option, #[serde(rename = "hydra_oauth2_allowed_top_level_claims", skip_serializing_if = "Option::is_none")] pub hydra_oauth2_allowed_top_level_claims: Option>, /// Automatically grant authorized OAuth2 Scope in OAuth2 Client Credentials Flow. Each OAuth2 Client is allowed to request a predefined OAuth2 Scope (for example `read write`). If this option is enabled, the full scope is automatically granted when performing the OAuth2 Client Credentials flow. If disabled, the OAuth2 Client has to request the scope in the OAuth2 request by providing the `scope` query parameter. Setting this option to true is common if you need compatibility with MITREid. This governs the \"oauth2.client_credentials.default_grant_allowed_scope\" setting. @@ -36,6 +39,9 @@ pub struct NormalizedProjectRevision { /// Configures what the maximum age of a JWT assertion used in the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants (RFC7523) can be. This feature uses the `exp` claim and `iat` claim to calculate assertion age. Assertions exceeding the max age will be denied. Useful as a safety measure and recommended to keep below 720h. This governs the \"oauth2.grant.jwt.max_ttl\" setting. #[serde(rename = "hydra_oauth2_grant_jwt_max_ttl", skip_serializing_if = "Option::is_none")] pub hydra_oauth2_grant_jwt_max_ttl: Option, + /// Set to false if you don't want to mirror custom claims under 'ext'. This governs the \"oauth2.mirror_top_level_claims\" setting. + #[serde(rename = "hydra_oauth2_mirror_top_level_claims", skip_serializing_if = "Option::is_none")] + pub hydra_oauth2_mirror_top_level_claims: Option, /// Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. #[serde(rename = "hydra_oauth2_pkce_enforced", skip_serializing_if = "Option::is_none")] pub hydra_oauth2_pkce_enforced: Option, @@ -201,6 +207,9 @@ pub struct NormalizedProjectRevision { /// Configures the Ory Kratos Valid Login via Code Email Subject Template This governs the \"courier.smtp.templates.login_code.valid.email.subject\" setting. #[serde(rename = "kratos_courier_templates_login_code_valid_email_subject", skip_serializing_if = "Option::is_none")] pub kratos_courier_templates_login_code_valid_email_subject: Option, + /// Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + #[serde(rename = "kratos_courier_templates_login_code_valid_sms_body_plaintext", skip_serializing_if = "Option::is_none")] + pub kratos_courier_templates_login_code_valid_sms_body_plaintext: Option, /// Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. #[serde(rename = "kratos_courier_templates_recovery_code_invalid_email_body_html", skip_serializing_if = "Option::is_none")] pub kratos_courier_templates_recovery_code_invalid_email_body_html: Option, @@ -451,6 +460,9 @@ pub struct NormalizedProjectRevision { /// Configures whether Ory Kratos Code Method is enabled This governs the \"selfservice.methods.code.enabled\" setting. #[serde(rename = "kratos_selfservice_methods_code_enabled", skip_serializing_if = "Option::is_none")] pub kratos_selfservice_methods_code_enabled: Option, + /// Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + #[serde(rename = "kratos_selfservice_methods_code_mfa_enabled", skip_serializing_if = "Option::is_none")] + pub kratos_selfservice_methods_code_mfa_enabled: Option, /// Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. #[serde(rename = "kratos_selfservice_methods_code_passwordless_enabled", skip_serializing_if = "Option::is_none")] pub kratos_selfservice_methods_code_passwordless_enabled: Option, @@ -564,12 +576,14 @@ impl NormalizedProjectRevision { NormalizedProjectRevision { created_at: None, disable_account_experience_welcome_screen: None, + enable_ax_v2: None, hydra_oauth2_allowed_top_level_claims: None, hydra_oauth2_client_credentials_default_grant_allowed_scope: None, hydra_oauth2_exclude_not_before_claim: None, hydra_oauth2_grant_jwt_iat_optional: None, hydra_oauth2_grant_jwt_jti_optional: None, hydra_oauth2_grant_jwt_max_ttl: None, + hydra_oauth2_mirror_top_level_claims: None, hydra_oauth2_pkce_enforced: None, hydra_oauth2_pkce_enforced_for_public_clients: None, hydra_oauth2_refresh_token_hook: None, @@ -628,6 +642,7 @@ impl NormalizedProjectRevision { kratos_courier_templates_login_code_valid_email_body_html: None, kratos_courier_templates_login_code_valid_email_body_plaintext: None, kratos_courier_templates_login_code_valid_email_subject: None, + kratos_courier_templates_login_code_valid_sms_body_plaintext: None, kratos_courier_templates_recovery_code_invalid_email_body_html: None, kratos_courier_templates_recovery_code_invalid_email_body_plaintext: None, kratos_courier_templates_recovery_code_invalid_email_subject: None, @@ -713,6 +728,7 @@ impl NormalizedProjectRevision { kratos_selfservice_flows_verification_use: None, kratos_selfservice_methods_code_config_lifespan: None, kratos_selfservice_methods_code_enabled: None, + kratos_selfservice_methods_code_mfa_enabled: None, kratos_selfservice_methods_code_passwordless_enabled: None, kratos_selfservice_methods_link_config_base_url: None, kratos_selfservice_methods_link_config_lifespan: None, diff --git a/clients/client/rust/src/models/normalized_project_revision_courier_channel.rs b/clients/client/rust/src/models/normalized_project_revision_courier_channel.rs index 97c2ef763a5..0ba6489aff9 100644 --- a/clients/client/rust/src/models/normalized_project_revision_courier_channel.rs +++ b/clients/client/rust/src/models/normalized_project_revision_courier_channel.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/normalized_project_revision_hook.rs b/clients/client/rust/src/models/normalized_project_revision_hook.rs index 461caa997ef..6e7fc7ad318 100644 --- a/clients/client/rust/src/models/normalized_project_revision_hook.rs +++ b/clients/client/rust/src/models/normalized_project_revision_hook.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/normalized_project_revision_identity_schema.rs b/clients/client/rust/src/models/normalized_project_revision_identity_schema.rs index dd9a80d7c61..4de06ecdcd7 100644 --- a/clients/client/rust/src/models/normalized_project_revision_identity_schema.rs +++ b/clients/client/rust/src/models/normalized_project_revision_identity_schema.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/normalized_project_revision_third_party_provider.rs b/clients/client/rust/src/models/normalized_project_revision_third_party_provider.rs index f5eb2d07c96..a645c2d7da7 100644 --- a/clients/client/rust/src/models/normalized_project_revision_third_party_provider.rs +++ b/clients/client/rust/src/models/normalized_project_revision_third_party_provider.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -29,6 +29,8 @@ pub struct NormalizedProjectRevisionThirdPartyProvider { /// Tenant is the Azure AD Tenant to use for authentication, and must be set when `provider` is set to `microsoft`. Can be either `common`, `organizations`, `consumers` for a multitenant application or a specific tenant like `8eaef023-2b34-4da1-9baa-8bc8c9d6a490` or `contoso.onmicrosoft.com`. #[serde(rename = "azure_tenant", skip_serializing_if = "Option::is_none")] pub azure_tenant: Option, + #[serde(rename = "claims_source", skip_serializing_if = "Option::is_none")] + pub claims_source: Option, /// ClientID is the application's Client ID. #[serde(rename = "client_id", skip_serializing_if = "Option::is_none")] pub client_id: Option, @@ -91,6 +93,7 @@ impl NormalizedProjectRevisionThirdPartyProvider { apple_team_id: None, auth_url: None, azure_tenant: None, + claims_source: None, client_id: None, client_secret: None, created_at: None, diff --git a/clients/client/rust/src/models/normalized_project_revision_tokenizer_template.rs b/clients/client/rust/src/models/normalized_project_revision_tokenizer_template.rs index 6f84bff2413..639935ac2d5 100644 --- a/clients/client/rust/src/models/normalized_project_revision_tokenizer_template.rs +++ b/clients/client/rust/src/models/normalized_project_revision_tokenizer_template.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_client.rs b/clients/client/rust/src/models/o_auth2_client.rs index 3fee111df23..9cad49eda94 100644 --- a/clients/client/rust/src/models/o_auth2_client.rs +++ b/clients/client/rust/src/models/o_auth2_client.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -118,6 +118,9 @@ pub struct OAuth2Client { /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API. #[serde(rename = "skip_consent", skip_serializing_if = "Option::is_none")] pub skip_consent: Option, + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + #[serde(rename = "skip_logout_consent", skip_serializing_if = "Option::is_none")] + pub skip_logout_consent: Option, /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. #[serde(rename = "subject_type", skip_serializing_if = "Option::is_none")] pub subject_type: Option, @@ -189,6 +192,7 @@ impl OAuth2Client { scope: None, sector_identifier_uri: None, skip_consent: None, + skip_logout_consent: None, subject_type: None, token_endpoint_auth_method: None, token_endpoint_auth_signing_alg: None, diff --git a/clients/client/rust/src/models/o_auth2_client_token_lifespans.rs b/clients/client/rust/src/models/o_auth2_client_token_lifespans.rs index fbe6d0f41ea..336727d4d2e 100644 --- a/clients/client/rust/src/models/o_auth2_client_token_lifespans.rs +++ b/clients/client/rust/src/models/o_auth2_client_token_lifespans.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_consent_request.rs b/clients/client/rust/src/models/o_auth2_consent_request.rs index 863f4e87ae4..719270d736c 100644 --- a/clients/client/rust/src/models/o_auth2_consent_request.rs +++ b/clients/client/rust/src/models/o_auth2_consent_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs b/clients/client/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs index 76f8bcf0f13..00d51ed0918 100644 --- a/clients/client/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs +++ b/clients/client/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_consent_session.rs b/clients/client/rust/src/models/o_auth2_consent_session.rs index e79b364d0f5..15423d7c1d0 100644 --- a/clients/client/rust/src/models/o_auth2_consent_session.rs +++ b/clients/client/rust/src/models/o_auth2_consent_session.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -16,6 +16,8 @@ pub struct OAuth2ConsentSession { #[serde(rename = "consent_request", skip_serializing_if = "Option::is_none")] pub consent_request: Option>, + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option, #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")] pub expires_at: Option>, #[serde(rename = "grant_access_token_audience", skip_serializing_if = "Option::is_none")] @@ -45,6 +47,7 @@ impl OAuth2ConsentSession { pub fn new() -> OAuth2ConsentSession { OAuth2ConsentSession { consent_request: None, + context: None, expires_at: None, grant_access_token_audience: None, grant_scope: None, diff --git a/clients/client/rust/src/models/o_auth2_consent_session_expires_at.rs b/clients/client/rust/src/models/o_auth2_consent_session_expires_at.rs index 56c983fcf2b..f6a6ca90517 100644 --- a/clients/client/rust/src/models/o_auth2_consent_session_expires_at.rs +++ b/clients/client/rust/src/models/o_auth2_consent_session_expires_at.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_login_request.rs b/clients/client/rust/src/models/o_auth2_login_request.rs index d1784ed54b3..e7f708d0aa5 100644 --- a/clients/client/rust/src/models/o_auth2_login_request.rs +++ b/clients/client/rust/src/models/o_auth2_login_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_logout_request.rs b/clients/client/rust/src/models/o_auth2_logout_request.rs index f82f9de24cd..268be4a91e7 100644 --- a/clients/client/rust/src/models/o_auth2_logout_request.rs +++ b/clients/client/rust/src/models/o_auth2_logout_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_redirect_to.rs b/clients/client/rust/src/models/o_auth2_redirect_to.rs index 1fe679023d8..59c1e11b197 100644 --- a/clients/client/rust/src/models/o_auth2_redirect_to.rs +++ b/clients/client/rust/src/models/o_auth2_redirect_to.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/o_auth2_token_exchange.rs b/clients/client/rust/src/models/o_auth2_token_exchange.rs index c49a972a488..3d668d55c3d 100644 --- a/clients/client/rust/src/models/o_auth2_token_exchange.rs +++ b/clients/client/rust/src/models/o_auth2_token_exchange.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/oidc_configuration.rs b/clients/client/rust/src/models/oidc_configuration.rs index 3379b4b0a8f..4c9d715d100 100644 --- a/clients/client/rust/src/models/oidc_configuration.rs +++ b/clients/client/rust/src/models/oidc_configuration.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/oidc_user_info.rs b/clients/client/rust/src/models/oidc_user_info.rs index 073ad21cb3b..e875bcb7021 100644 --- a/clients/client/rust/src/models/oidc_user_info.rs +++ b/clients/client/rust/src/models/oidc_user_info.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/organization.rs b/clients/client/rust/src/models/organization.rs index 7efe80e0c24..07d7433e018 100644 --- a/clients/client/rust/src/models/organization.rs +++ b/clients/client/rust/src/models/organization.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/organization_body.rs b/clients/client/rust/src/models/organization_body.rs index 5a243aff15f..2a5f9460d53 100644 --- a/clients/client/rust/src/models/organization_body.rs +++ b/clients/client/rust/src/models/organization_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/pagination.rs b/clients/client/rust/src/models/pagination.rs index 124f321d050..d48b8b46069 100644 --- a/clients/client/rust/src/models/pagination.rs +++ b/clients/client/rust/src/models/pagination.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/pagination_headers.rs b/clients/client/rust/src/models/pagination_headers.rs index a0a3ccbaa74..42ce6deb8d2 100644 --- a/clients/client/rust/src/models/pagination_headers.rs +++ b/clients/client/rust/src/models/pagination_headers.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/parse_error.rs b/clients/client/rust/src/models/parse_error.rs index 9cb6076b1f4..f022af74029 100644 --- a/clients/client/rust/src/models/parse_error.rs +++ b/clients/client/rust/src/models/parse_error.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/patch_identities_body.rs b/clients/client/rust/src/models/patch_identities_body.rs index a21509d84a2..566b9abdc1c 100644 --- a/clients/client/rust/src/models/patch_identities_body.rs +++ b/clients/client/rust/src/models/patch_identities_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/perform_native_logout_body.rs b/clients/client/rust/src/models/perform_native_logout_body.rs index 6210a43e8df..3a9188a59d6 100644 --- a/clients/client/rust/src/models/perform_native_logout_body.rs +++ b/clients/client/rust/src/models/perform_native_logout_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/permissions_on_workpace_response.rs b/clients/client/rust/src/models/permissions_on_workpace_response.rs new file mode 100644 index 00000000000..7236db8cd4d --- /dev/null +++ b/clients/client/rust/src/models/permissions_on_workpace_response.rs @@ -0,0 +1,36 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + +/// PermissionsOnWorkpaceResponse : Get Permissions on Project Request Parameters + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct PermissionsOnWorkpaceResponse { + #[serde(rename = "permissions", skip_serializing_if = "Option::is_none")] + pub permissions: Option<::std::collections::HashMap>, +} + +impl Default for PermissionsOnWorkpaceResponse { + fn default() -> Self { + Self::new() + } +} + +impl PermissionsOnWorkpaceResponse { + /// Get Permissions on Project Request Parameters + pub fn new() -> PermissionsOnWorkpaceResponse { + PermissionsOnWorkpaceResponse { + permissions: None, + } + } +} + + diff --git a/clients/client/rust/src/models/plan.rs b/clients/client/rust/src/models/plan.rs index 4655b3fc5bc..101ec10e0f9 100644 --- a/clients/client/rust/src/models/plan.rs +++ b/clients/client/rust/src/models/plan.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/plan_details.rs b/clients/client/rust/src/models/plan_details.rs index 89872899076..aff1cff9c7f 100644 --- a/clients/client/rust/src/models/plan_details.rs +++ b/clients/client/rust/src/models/plan_details.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -25,7 +25,6 @@ pub struct PlanDetails { /// Description is the description of the plan. #[serde(rename = "description")] pub description: String, - /// Features are the feature definitions included in the plan. #[serde(rename = "features")] pub features: ::std::collections::HashMap, /// Name is the name of the plan. diff --git a/clients/client/rust/src/models/post_check_permission_body.rs b/clients/client/rust/src/models/post_check_permission_body.rs index baa7cd7cdf4..b7f5136fd5f 100644 --- a/clients/client/rust/src/models/post_check_permission_body.rs +++ b/clients/client/rust/src/models/post_check_permission_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/post_check_permission_or_error_body.rs b/clients/client/rust/src/models/post_check_permission_or_error_body.rs index 1cdc618ac0f..b5bcc7c3415 100644 --- a/clients/client/rust/src/models/post_check_permission_or_error_body.rs +++ b/clients/client/rust/src/models/post_check_permission_or_error_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project.rs b/clients/client/rust/src/models/project.rs index 49ba4078dd8..d0e562edae3 100644 --- a/clients/client/rust/src/models/project.rs +++ b/clients/client/rust/src/models/project.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_api_key.rs b/clients/client/rust/src/models/project_api_key.rs index 82ce9c00867..89602e47dc7 100644 --- a/clients/client/rust/src/models/project_api_key.rs +++ b/clients/client/rust/src/models/project_api_key.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_branding.rs b/clients/client/rust/src/models/project_branding.rs index 37381006108..24c5993d6df 100644 --- a/clients/client/rust/src/models/project_branding.rs +++ b/clients/client/rust/src/models/project_branding.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_branding_colors.rs b/clients/client/rust/src/models/project_branding_colors.rs index 9d1c6ddfdff..d792903603b 100644 --- a/clients/client/rust/src/models/project_branding_colors.rs +++ b/clients/client/rust/src/models/project_branding_colors.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_branding_theme.rs b/clients/client/rust/src/models/project_branding_theme.rs index a8aa0171330..6e7e7d5921b 100644 --- a/clients/client/rust/src/models/project_branding_theme.rs +++ b/clients/client/rust/src/models/project_branding_theme.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_cors.rs b/clients/client/rust/src/models/project_cors.rs index 915fcbdad2b..c557ef75429 100644 --- a/clients/client/rust/src/models/project_cors.rs +++ b/clients/client/rust/src/models/project_cors.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_events_datapoint.rs b/clients/client/rust/src/models/project_events_datapoint.rs index 27003a75507..92ef8b0d8eb 100644 --- a/clients/client/rust/src/models/project_events_datapoint.rs +++ b/clients/client/rust/src/models/project_events_datapoint.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_host.rs b/clients/client/rust/src/models/project_host.rs index 32ed2366b7b..75890a7d92d 100644 --- a/clients/client/rust/src/models/project_host.rs +++ b/clients/client/rust/src/models/project_host.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_member.rs b/clients/client/rust/src/models/project_member.rs new file mode 100644 index 00000000000..2767895567a --- /dev/null +++ b/clients/client/rust/src/models/project_member.rs @@ -0,0 +1,38 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct ProjectMember { + #[serde(rename = "email")] + pub email: String, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "role")] + pub role: String, +} + + +impl ProjectMember { + pub fn new(email: String, id: String, name: String, role: String) -> ProjectMember { + ProjectMember { + email, + id, + name, + role, + } + } +} + + diff --git a/clients/client/rust/src/models/project_metadata.rs b/clients/client/rust/src/models/project_metadata.rs index 8b92aaef759..459bf289787 100644 --- a/clients/client/rust/src/models/project_metadata.rs +++ b/clients/client/rust/src/models/project_metadata.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -16,6 +16,9 @@ pub struct ProjectMetadata { /// The Project's Creation Date #[serde(rename = "created_at")] pub created_at: String, + /// The environment of the project. prod Production dev Development + #[serde(rename = "environment")] + pub environment: EnvironmentEnum, #[serde(rename = "hosts")] pub hosts: Vec, /// The project's ID. @@ -43,9 +46,10 @@ pub struct ProjectMetadata { impl ProjectMetadata { - pub fn new(created_at: String, hosts: Vec, id: String, name: String, state: StateEnum, updated_at: String) -> ProjectMetadata { + pub fn new(created_at: String, environment: EnvironmentEnum, hosts: Vec, id: String, name: String, state: StateEnum, updated_at: String) -> ProjectMetadata { ProjectMetadata { created_at, + environment, hosts, id, name, @@ -59,6 +63,14 @@ impl ProjectMetadata { } } +/// The environment of the project. prod Production dev Development +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum EnvironmentEnum { + #[serde(rename = "prod")] + Prod, + #[serde(rename = "dev")] + Dev, +} /// The state of the project. running Running halted Halted deleted Deleted #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum StateEnum { diff --git a/clients/client/rust/src/models/project_service_identity.rs b/clients/client/rust/src/models/project_service_identity.rs index 41c1dac7c4a..74c226a57b9 100644 --- a/clients/client/rust/src/models/project_service_identity.rs +++ b/clients/client/rust/src/models/project_service_identity.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_service_o_auth2.rs b/clients/client/rust/src/models/project_service_o_auth2.rs index 0ea230a3f01..da4074347f1 100644 --- a/clients/client/rust/src/models/project_service_o_auth2.rs +++ b/clients/client/rust/src/models/project_service_o_auth2.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_service_permission.rs b/clients/client/rust/src/models/project_service_permission.rs index e46193ade23..9537184f09e 100644 --- a/clients/client/rust/src/models/project_service_permission.rs +++ b/clients/client/rust/src/models/project_service_permission.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/project_services.rs b/clients/client/rust/src/models/project_services.rs index c223740ef9c..d4e0784ce73 100644 --- a/clients/client/rust/src/models/project_services.rs +++ b/clients/client/rust/src/models/project_services.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/quota_usage.rs b/clients/client/rust/src/models/quota_usage.rs index b0d1a0c9c49..f6820f5d526 100644 --- a/clients/client/rust/src/models/quota_usage.rs +++ b/clients/client/rust/src/models/quota_usage.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -18,7 +18,7 @@ pub struct QuotaUsage { pub additional_price: i64, #[serde(rename = "can_use_more")] pub can_use_more: bool, - /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + /// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect #[serde(rename = "feature")] pub feature: FeatureEnum, #[serde(rename = "feature_available")] @@ -43,7 +43,7 @@ impl QuotaUsage { } } -/// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList +/// region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect #[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] pub enum FeatureEnum { #[serde(rename = "region_eu")] @@ -82,11 +82,17 @@ pub enum FeatureEnum { Organizations, #[serde(rename = "rop_grant")] RopGrant, + #[serde(rename = "concierge_onboarding")] + ConciergeOnboarding, #[serde(rename = "rate_limit_tier")] RateLimitTier, #[serde(rename = "session_rate_limit_tier")] SessionRateLimitTier, #[serde(rename = "identities_list_rate_limit_tier")] IdentitiesListRateLimitTier, + #[serde(rename = "permission_checks_rate_limit_tier")] + PermissionChecksRateLimitTier, + #[serde(rename = "oauth2_introspect_rate_limit_tier")] + Oauth2IntrospectRateLimitTier, } diff --git a/clients/client/rust/src/models/recovery_code_for_identity.rs b/clients/client/rust/src/models/recovery_code_for_identity.rs index 25e407551b5..863955c1293 100644 --- a/clients/client/rust/src/models/recovery_code_for_identity.rs +++ b/clients/client/rust/src/models/recovery_code_for_identity.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/recovery_flow.rs b/clients/client/rust/src/models/recovery_flow.rs index ea8bfcb6bb3..e54aa3b9f5c 100644 --- a/clients/client/rust/src/models/recovery_flow.rs +++ b/clients/client/rust/src/models/recovery_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -38,6 +38,9 @@ pub struct RecoveryFlow { /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. #[serde(rename = "state")] pub state: Option, + /// TransientPayload is used to pass data from the recovery flow to hooks and email templates + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// The flow type can either be `api` or `browser`. #[serde(rename = "type")] pub _type: String, @@ -58,6 +61,7 @@ impl RecoveryFlow { request_url, return_to: None, state, + transient_payload: None, _type, ui: Box::new(ui), } diff --git a/clients/client/rust/src/models/recovery_flow_state.rs b/clients/client/rust/src/models/recovery_flow_state.rs index 726b8a8d972..c77f833e6b2 100644 --- a/clients/client/rust/src/models/recovery_flow_state.rs +++ b/clients/client/rust/src/models/recovery_flow_state.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/recovery_identity_address.rs b/clients/client/rust/src/models/recovery_identity_address.rs index 96d2b1431e0..b925e778db7 100644 --- a/clients/client/rust/src/models/recovery_identity_address.rs +++ b/clients/client/rust/src/models/recovery_identity_address.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/recovery_link_for_identity.rs b/clients/client/rust/src/models/recovery_link_for_identity.rs index 6b7d6456c11..74f4ff4e29f 100644 --- a/clients/client/rust/src/models/recovery_link_for_identity.rs +++ b/clients/client/rust/src/models/recovery_link_for_identity.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/registration_flow.rs b/clients/client/rust/src/models/registration_flow.rs index ead3e144d32..3e47f695aa2 100644 --- a/clients/client/rust/src/models/registration_flow.rs +++ b/clients/client/rust/src/models/registration_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -13,8 +13,9 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RegistrationFlow { + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 #[serde(rename = "active", skip_serializing_if = "Option::is_none")] - pub active: Option, + pub active: Option, /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. #[serde(rename = "expires_at")] pub expires_at: String, @@ -75,4 +76,24 @@ impl RegistrationFlow { } } +/// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum ActiveEnum { + #[serde(rename = "password")] + Password, + #[serde(rename = "oidc")] + Oidc, + #[serde(rename = "totp")] + Totp, + #[serde(rename = "lookup_secret")] + LookupSecret, + #[serde(rename = "webauthn")] + Webauthn, + #[serde(rename = "code")] + Code, + #[serde(rename = "link_recovery")] + LinkRecovery, + #[serde(rename = "code_recovery")] + CodeRecovery, +} diff --git a/clients/client/rust/src/models/registration_flow_state.rs b/clients/client/rust/src/models/registration_flow_state.rs index 90679192792..81e6cffe477 100644 --- a/clients/client/rust/src/models/registration_flow_state.rs +++ b/clients/client/rust/src/models/registration_flow_state.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/reject_o_auth2_request.rs b/clients/client/rust/src/models/reject_o_auth2_request.rs index 0edb09a82b8..b673aaa0576 100644 --- a/clients/client/rust/src/models/reject_o_auth2_request.rs +++ b/clients/client/rust/src/models/reject_o_auth2_request.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/relation_query.rs b/clients/client/rust/src/models/relation_query.rs index 4bbc1ca5b98..e1ce1eacd54 100644 --- a/clients/client/rust/src/models/relation_query.rs +++ b/clients/client/rust/src/models/relation_query.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/relationship.rs b/clients/client/rust/src/models/relationship.rs index 7ffe41994cc..e6957a13f6e 100644 --- a/clients/client/rust/src/models/relationship.rs +++ b/clients/client/rust/src/models/relationship.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/relationship_namespaces.rs b/clients/client/rust/src/models/relationship_namespaces.rs index 0ae4d0e52d2..b0c5ae28410 100644 --- a/clients/client/rust/src/models/relationship_namespaces.rs +++ b/clients/client/rust/src/models/relationship_namespaces.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/relationship_patch.rs b/clients/client/rust/src/models/relationship_patch.rs index 387d4636927..fc35b13dd3b 100644 --- a/clients/client/rust/src/models/relationship_patch.rs +++ b/clients/client/rust/src/models/relationship_patch.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/relationships.rs b/clients/client/rust/src/models/relationships.rs index 204e19c17a0..7d9ac033e88 100644 --- a/clients/client/rust/src/models/relationships.rs +++ b/clients/client/rust/src/models/relationships.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/rfc6749_error_json.rs b/clients/client/rust/src/models/rfc6749_error_json.rs index 088b599b4bf..b2c9346e694 100644 --- a/clients/client/rust/src/models/rfc6749_error_json.rs +++ b/clients/client/rust/src/models/rfc6749_error_json.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/schema_patch.rs b/clients/client/rust/src/models/schema_patch.rs index 318a7296ffc..b092e038f75 100644 --- a/clients/client/rust/src/models/schema_patch.rs +++ b/clients/client/rust/src/models/schema_patch.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/self_service_flow_expired_error.rs b/clients/client/rust/src/models/self_service_flow_expired_error.rs index 66e27daa43c..eff646073cc 100644 --- a/clients/client/rust/src/models/self_service_flow_expired_error.rs +++ b/clients/client/rust/src/models/self_service_flow_expired_error.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/session.rs b/clients/client/rust/src/models/session.rs index b8014588ff9..2ea171448bf 100644 --- a/clients/client/rust/src/models/session.rs +++ b/clients/client/rust/src/models/session.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/session_activity_datapoint.rs b/clients/client/rust/src/models/session_activity_datapoint.rs index b3c5da9a860..2b95ef4cfc3 100644 --- a/clients/client/rust/src/models/session_activity_datapoint.rs +++ b/clients/client/rust/src/models/session_activity_datapoint.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/session_authentication_method.rs b/clients/client/rust/src/models/session_authentication_method.rs index 723a738c6b7..a24eaa5fe32 100644 --- a/clients/client/rust/src/models/session_authentication_method.rs +++ b/clients/client/rust/src/models/session_authentication_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/session_device.rs b/clients/client/rust/src/models/session_device.rs index 61e1035fc27..c41b3477705 100644 --- a/clients/client/rust/src/models/session_device.rs +++ b/clients/client/rust/src/models/session_device.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/set_active_project_in_console_body.rs b/clients/client/rust/src/models/set_active_project_in_console_body.rs index fcee038bfc8..fce383f41ff 100644 --- a/clients/client/rust/src/models/set_active_project_in_console_body.rs +++ b/clients/client/rust/src/models/set_active_project_in_console_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/set_custom_domain_body.rs b/clients/client/rust/src/models/set_custom_domain_body.rs index e6238b242f5..b57e25312a0 100644 --- a/clients/client/rust/src/models/set_custom_domain_body.rs +++ b/clients/client/rust/src/models/set_custom_domain_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/set_event_stream_body.rs b/clients/client/rust/src/models/set_event_stream_body.rs index 9c4c48ad381..2c8073f12e2 100644 --- a/clients/client/rust/src/models/set_event_stream_body.rs +++ b/clients/client/rust/src/models/set_event_stream_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/set_project.rs b/clients/client/rust/src/models/set_project.rs index 9ed0fe79d13..059148c99b8 100644 --- a/clients/client/rust/src/models/set_project.rs +++ b/clients/client/rust/src/models/set_project.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/set_project_branding_theme_body.rs b/clients/client/rust/src/models/set_project_branding_theme_body.rs index ed173bbfab8..f00d57ee6ff 100644 --- a/clients/client/rust/src/models/set_project_branding_theme_body.rs +++ b/clients/client/rust/src/models/set_project_branding_theme_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/settings_flow.rs b/clients/client/rust/src/models/settings_flow.rs index 3ea92331e2a..ab461c9da0d 100644 --- a/clients/client/rust/src/models/settings_flow.rs +++ b/clients/client/rust/src/models/settings_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -40,6 +40,9 @@ pub struct SettingsFlow { /// State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. #[serde(rename = "state")] pub state: Option, + /// TransientPayload is used to pass data from the settings flow to hooks and email templates + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// The flow type can either be `api` or `browser`. #[serde(rename = "type")] pub _type: String, @@ -61,6 +64,7 @@ impl SettingsFlow { request_url, return_to: None, state, + transient_payload: None, _type, ui: Box::new(ui), } diff --git a/clients/client/rust/src/models/settings_flow_state.rs b/clients/client/rust/src/models/settings_flow_state.rs index 8f8c505d49d..7f8d14ac12e 100644 --- a/clients/client/rust/src/models/settings_flow_state.rs +++ b/clients/client/rust/src/models/settings_flow_state.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/source_position.rs b/clients/client/rust/src/models/source_position.rs index 2729f4fd62d..c82913ca464 100644 --- a/clients/client/rust/src/models/source_position.rs +++ b/clients/client/rust/src/models/source_position.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/stripe_customer.rs b/clients/client/rust/src/models/stripe_customer.rs deleted file mode 100644 index 576033f9314..00000000000 --- a/clients/client/rust/src/models/stripe_customer.rs +++ /dev/null @@ -1,34 +0,0 @@ -/* - * Ory APIs - * - * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. - * - * The version of the OpenAPI document: v1.5.1 - * Contact: support@ory.sh - * Generated by: https://openapi-generator.tech - */ - - - - -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StripeCustomer { - #[serde(rename = "id", skip_serializing_if = "Option::is_none")] - pub id: Option, -} - -impl Default for StripeCustomer { - fn default() -> Self { - Self::new() - } -} - -impl StripeCustomer { - pub fn new() -> StripeCustomer { - StripeCustomer { - id: None, - } - } -} - - diff --git a/clients/client/rust/src/models/subject_set.rs b/clients/client/rust/src/models/subject_set.rs index f7c6b53bd92..da6d2b5821f 100644 --- a/clients/client/rust/src/models/subject_set.rs +++ b/clients/client/rust/src/models/subject_set.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/subscription.rs b/clients/client/rust/src/models/subscription.rs index ba2260d39cc..2083a32fbec 100644 --- a/clients/client/rust/src/models/subscription.rs +++ b/clients/client/rust/src/models/subscription.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -24,6 +24,8 @@ pub struct Subscription { /// The currently active plan of the subscription #[serde(rename = "current_plan")] pub current_plan: String, + #[serde(rename = "current_plan_details", skip_serializing_if = "Option::is_none")] + pub current_plan_details: Option>, /// The ID of the stripe customer #[serde(rename = "customer_id")] pub customer_id: String, @@ -44,6 +46,8 @@ pub struct Subscription { /// For `collection_method=charge_automatically` a subscription moves into `incomplete` if the initial payment attempt fails. A subscription in this state can only have metadata and default_source updated. Once the first invoice is paid, the subscription moves into an `active` state. If the first invoice is not paid within 23 hours, the subscription transitions to `incomplete_expired`. This is a terminal state, the open invoice will be voided and no further invoices will be generated. A subscription that is currently in a trial period is `trialing` and moves to `active` when the trial period is over. If subscription `collection_method=charge_automatically`, it becomes `past_due` when payment is required but cannot be paid (due to failed payment or awaiting additional user actions). Once Stripe has exhausted all payment retry attempts, the subscription will become `canceled` or `unpaid` (depending on your subscriptions settings). If subscription `collection_method=send_invoice` it becomes `past_due` when its invoice is not paid by the due date, and `canceled` or `unpaid` if it is still not paid by an additional deadline after that. Note that when a subscription has a status of `unpaid`, no subsequent invoices will be attempted (invoices will be created, but then immediately automatically closed). After receiving updated payment information from a customer, you may choose to reopen and pay their closed invoices. #[serde(rename = "status")] pub status: String, + #[serde(rename = "stripe_checkout_expires_at", skip_serializing_if = "Option::is_none")] + pub stripe_checkout_expires_at: Option, #[serde(rename = "updated_at")] pub updated_at: String, } @@ -56,6 +60,7 @@ impl Subscription { currency, current_interval, current_plan, + current_plan_details: None, customer_id, id, interval_changes_to, @@ -64,6 +69,7 @@ impl Subscription { plan_changes_at: None, plan_changes_to, status, + stripe_checkout_expires_at: None, updated_at, } } diff --git a/clients/client/rust/src/models/successful_code_exchange_response.rs b/clients/client/rust/src/models/successful_code_exchange_response.rs index 4ca1c538075..37cbc512cbf 100644 --- a/clients/client/rust/src/models/successful_code_exchange_response.rs +++ b/clients/client/rust/src/models/successful_code_exchange_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/successful_native_login.rs b/clients/client/rust/src/models/successful_native_login.rs index df3de34e5cb..2a431ae84a0 100644 --- a/clients/client/rust/src/models/successful_native_login.rs +++ b/clients/client/rust/src/models/successful_native_login.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/successful_native_registration.rs b/clients/client/rust/src/models/successful_native_registration.rs index 05a9eb3b157..0ed7960399f 100644 --- a/clients/client/rust/src/models/successful_native_registration.rs +++ b/clients/client/rust/src/models/successful_native_registration.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/successful_project_update.rs b/clients/client/rust/src/models/successful_project_update.rs index 863f9c92425..14b773b8565 100644 --- a/clients/client/rust/src/models/successful_project_update.rs +++ b/clients/client/rust/src/models/successful_project_update.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/token_pagination.rs b/clients/client/rust/src/models/token_pagination.rs index 9bd05813456..d60280817e5 100644 --- a/clients/client/rust/src/models/token_pagination.rs +++ b/clients/client/rust/src/models/token_pagination.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/token_pagination_headers.rs b/clients/client/rust/src/models/token_pagination_headers.rs index 6d8a9d5e0f7..2ab0a08da76 100644 --- a/clients/client/rust/src/models/token_pagination_headers.rs +++ b/clients/client/rust/src/models/token_pagination_headers.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/token_pagination_request_parameters.rs b/clients/client/rust/src/models/token_pagination_request_parameters.rs index 05703aff57b..c4dc245de21 100644 --- a/clients/client/rust/src/models/token_pagination_request_parameters.rs +++ b/clients/client/rust/src/models/token_pagination_request_parameters.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/token_pagination_response_headers.rs b/clients/client/rust/src/models/token_pagination_response_headers.rs index 03653337eeb..255a8426de7 100644 --- a/clients/client/rust/src/models/token_pagination_response_headers.rs +++ b/clients/client/rust/src/models/token_pagination_response_headers.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs b/clients/client/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs index f09680be1b6..a2c06689542 100644 --- a/clients/client/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs +++ b/clients/client/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs b/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs index 7dd8f16656a..b4048b802e4 100644 --- a/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs +++ b/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs b/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs index 7470f51d528..8959254c895 100644 --- a/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs +++ b/clients/client/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_container.rs b/clients/client/rust/src/models/ui_container.rs index 45a44ed462b..025a5f225eb 100644 --- a/clients/client/rust/src/models/ui_container.rs +++ b/clients/client/rust/src/models/ui_container.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node.rs b/clients/client/rust/src/models/ui_node.rs index dc047812830..f8a0c5bd0fc 100644 --- a/clients/client/rust/src/models/ui_node.rs +++ b/clients/client/rust/src/models/ui_node.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_anchor_attributes.rs b/clients/client/rust/src/models/ui_node_anchor_attributes.rs index 7f1885c057c..55d3ef8f505 100644 --- a/clients/client/rust/src/models/ui_node_anchor_attributes.rs +++ b/clients/client/rust/src/models/ui_node_anchor_attributes.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_attributes.rs b/clients/client/rust/src/models/ui_node_attributes.rs index c6a060024dc..d434b6f2f1c 100644 --- a/clients/client/rust/src/models/ui_node_attributes.rs +++ b/clients/client/rust/src/models/ui_node_attributes.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_image_attributes.rs b/clients/client/rust/src/models/ui_node_image_attributes.rs index f07251e9286..aa3d3cf2904 100644 --- a/clients/client/rust/src/models/ui_node_image_attributes.rs +++ b/clients/client/rust/src/models/ui_node_image_attributes.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_input_attributes.rs b/clients/client/rust/src/models/ui_node_input_attributes.rs index 0e2ef4ff33f..a3bb2b485cd 100644 --- a/clients/client/rust/src/models/ui_node_input_attributes.rs +++ b/clients/client/rust/src/models/ui_node_input_attributes.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_meta.rs b/clients/client/rust/src/models/ui_node_meta.rs index d3003b99e49..e732dfc782b 100644 --- a/clients/client/rust/src/models/ui_node_meta.rs +++ b/clients/client/rust/src/models/ui_node_meta.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_script_attributes.rs b/clients/client/rust/src/models/ui_node_script_attributes.rs index 0366c6a24b5..3490e655221 100644 --- a/clients/client/rust/src/models/ui_node_script_attributes.rs +++ b/clients/client/rust/src/models/ui_node_script_attributes.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_node_text_attributes.rs b/clients/client/rust/src/models/ui_node_text_attributes.rs index 8a4a6ca6d0e..61bad97dceb 100644 --- a/clients/client/rust/src/models/ui_node_text_attributes.rs +++ b/clients/client/rust/src/models/ui_node_text_attributes.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/ui_text.rs b/clients/client/rust/src/models/ui_text.rs index 943dbe7e284..f4004429fac 100644 --- a/clients/client/rust/src/models/ui_text.rs +++ b/clients/client/rust/src/models/ui_text.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_identity_body.rs b/clients/client/rust/src/models/update_identity_body.rs index 229d5610a56..31553dfc647 100644 --- a/clients/client/rust/src/models/update_identity_body.rs +++ b/clients/client/rust/src/models/update_identity_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -25,8 +25,9 @@ pub struct UpdateIdentityBody { /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. #[serde(rename = "schema_id")] pub schema_id: String, + /// State is the identity's state. active StateActive inactive StateInactive #[serde(rename = "state")] - pub state: crate::models::IdentityState, + pub state: StateEnum, /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. #[serde(rename = "traits")] pub traits: serde_json::Value, @@ -35,7 +36,7 @@ pub struct UpdateIdentityBody { impl UpdateIdentityBody { /// Update Identity Body - pub fn new(schema_id: String, state: crate::models::IdentityState, traits: serde_json::Value) -> UpdateIdentityBody { + pub fn new(schema_id: String, state: StateEnum, traits: serde_json::Value) -> UpdateIdentityBody { UpdateIdentityBody { credentials: None, metadata_admin: None, @@ -47,4 +48,12 @@ impl UpdateIdentityBody { } } +/// State is the identity's state. active StateActive inactive StateInactive +#[derive(Clone, Copy, Debug, Eq, PartialEq, Ord, PartialOrd, Hash, Serialize, Deserialize)] +pub enum StateEnum { + #[serde(rename = "active")] + Active, + #[serde(rename = "inactive")] + Inactive, +} diff --git a/clients/client/rust/src/models/update_login_flow_body.rs b/clients/client/rust/src/models/update_login_flow_body.rs index c5c7b286a3c..38b0006a328 100644 --- a/clients/client/rust/src/models/update_login_flow_body.rs +++ b/clients/client/rust/src/models/update_login_flow_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -31,6 +31,10 @@ pub enum UpdateLoginFlowBody { #[serde(rename = "resend", skip_serializing_if = "Option::is_none")] // false, false, , String, false resend: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="lookup_secret")] UpdateLoginFlowWithLookupSecretMethod { @@ -65,6 +69,10 @@ pub enum UpdateLoginFlowBody { #[serde(rename = "traits", skip_serializing_if = "Option::is_none")] // false, false, , serde_json::Value, false traits: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. #[serde(rename = "upstream_parameters", skip_serializing_if = "Option::is_none")] // false, false, , serde_json::Value, false @@ -88,6 +96,10 @@ pub enum UpdateLoginFlowBody { #[serde(rename = "password_identifier", skip_serializing_if = "Option::is_none")] // false, false, , String, false password_identifier: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="totp")] UpdateLoginFlowWithTotpMethod { @@ -99,6 +111,10 @@ pub enum UpdateLoginFlowBody { #[serde(rename = "totp_code")] // true, false, , String, false totp_code: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="webauthn")] UpdateLoginFlowWithWebAuthnMethod { @@ -110,6 +126,10 @@ pub enum UpdateLoginFlowBody { #[serde(rename = "identifier")] // true, false, , String, false identifier: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, /// Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. #[serde(rename = "webauthn_login", skip_serializing_if = "Option::is_none")] // false, false, , String, false diff --git a/clients/client/rust/src/models/update_login_flow_with_code_method.rs b/clients/client/rust/src/models/update_login_flow_with_code_method.rs index 54cb59aa295..f612813b053 100644 --- a/clients/client/rust/src/models/update_login_flow_with_code_method.rs +++ b/clients/client/rust/src/models/update_login_flow_with_code_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -29,6 +29,9 @@ pub struct UpdateLoginFlowWithCodeMethod { /// Resend is set when the user wants to resend the code #[serde(rename = "resend", skip_serializing_if = "Option::is_none")] pub resend: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -41,6 +44,7 @@ impl UpdateLoginFlowWithCodeMethod { identifier: None, method, resend: None, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_login_flow_with_lookup_secret_method.rs b/clients/client/rust/src/models/update_login_flow_with_lookup_secret_method.rs index eefc4f72f65..a3be321be83 100644 --- a/clients/client/rust/src/models/update_login_flow_with_lookup_secret_method.rs +++ b/clients/client/rust/src/models/update_login_flow_with_lookup_secret_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_login_flow_with_oidc_method.rs b/clients/client/rust/src/models/update_login_flow_with_oidc_method.rs index 4a26bced81f..551449ace32 100644 --- a/clients/client/rust/src/models/update_login_flow_with_oidc_method.rs +++ b/clients/client/rust/src/models/update_login_flow_with_oidc_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -32,6 +32,9 @@ pub struct UpdateLoginFlowWithOidcMethod { /// The identity traits. This is a placeholder for the registration flow. #[serde(rename = "traits", skip_serializing_if = "Option::is_none")] pub traits: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. #[serde(rename = "upstream_parameters", skip_serializing_if = "Option::is_none")] pub upstream_parameters: Option, @@ -48,6 +51,7 @@ impl UpdateLoginFlowWithOidcMethod { method, provider, traits: None, + transient_payload: None, upstream_parameters: None, } } diff --git a/clients/client/rust/src/models/update_login_flow_with_password_method.rs b/clients/client/rust/src/models/update_login_flow_with_password_method.rs index 032256c44ac..adf2fe75d5d 100644 --- a/clients/client/rust/src/models/update_login_flow_with_password_method.rs +++ b/clients/client/rust/src/models/update_login_flow_with_password_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -29,6 +29,9 @@ pub struct UpdateLoginFlowWithPasswordMethod { /// Identifier is the email or username of the user trying to log in. This field is deprecated! #[serde(rename = "password_identifier", skip_serializing_if = "Option::is_none")] pub password_identifier: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -41,6 +44,7 @@ impl UpdateLoginFlowWithPasswordMethod { method, password, password_identifier: None, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_login_flow_with_totp_method.rs b/clients/client/rust/src/models/update_login_flow_with_totp_method.rs index fe56ae2bfd9..c31769c8964 100644 --- a/clients/client/rust/src/models/update_login_flow_with_totp_method.rs +++ b/clients/client/rust/src/models/update_login_flow_with_totp_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,6 +23,9 @@ pub struct UpdateLoginFlowWithTotpMethod { /// The TOTP code. #[serde(rename = "totp_code")] pub totp_code: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -33,6 +36,7 @@ impl UpdateLoginFlowWithTotpMethod { csrf_token: None, method, totp_code, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_login_flow_with_web_authn_method.rs b/clients/client/rust/src/models/update_login_flow_with_web_authn_method.rs index 78ee2f163db..7bbd5207992 100644 --- a/clients/client/rust/src/models/update_login_flow_with_web_authn_method.rs +++ b/clients/client/rust/src/models/update_login_flow_with_web_authn_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,6 +23,9 @@ pub struct UpdateLoginFlowWithWebAuthnMethod { /// Method should be set to \"webAuthn\" when logging in using the WebAuthn strategy. #[serde(rename = "method")] pub method: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. #[serde(rename = "webauthn_login", skip_serializing_if = "Option::is_none")] pub webauthn_login: Option, @@ -36,6 +39,7 @@ impl UpdateLoginFlowWithWebAuthnMethod { csrf_token: None, identifier, method, + transient_payload: None, webauthn_login: None, } } diff --git a/clients/client/rust/src/models/update_recovery_flow_body.rs b/clients/client/rust/src/models/update_recovery_flow_body.rs index 4b456e10b31..9b2d1ecb19b 100644 --- a/clients/client/rust/src/models/update_recovery_flow_body.rs +++ b/clients/client/rust/src/models/update_recovery_flow_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -28,6 +28,10 @@ pub enum UpdateRecoveryFlowBody { #[serde(rename = "email", skip_serializing_if = "Option::is_none")] // false, false, , String, false email: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="link")] UpdateRecoveryFlowWithLinkMethod { @@ -39,6 +43,10 @@ pub enum UpdateRecoveryFlowBody { #[serde(rename = "email")] // true, false, , String, false email: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, } diff --git a/clients/client/rust/src/models/update_recovery_flow_with_code_method.rs b/clients/client/rust/src/models/update_recovery_flow_with_code_method.rs index 111d78e9327..4a420c2c9fc 100644 --- a/clients/client/rust/src/models/update_recovery_flow_with_code_method.rs +++ b/clients/client/rust/src/models/update_recovery_flow_with_code_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -26,6 +26,9 @@ pub struct UpdateRecoveryFlowWithCodeMethod { /// Method is the method that should be used for this recovery flow Allowed values are `link` and `code`. link RecoveryStrategyLink code RecoveryStrategyCode #[serde(rename = "method")] pub method: MethodEnum, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -37,6 +40,7 @@ impl UpdateRecoveryFlowWithCodeMethod { csrf_token: None, email: None, method, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_recovery_flow_with_link_method.rs b/clients/client/rust/src/models/update_recovery_flow_with_link_method.rs index e6f24425a9f..52d7b754afd 100644 --- a/clients/client/rust/src/models/update_recovery_flow_with_link_method.rs +++ b/clients/client/rust/src/models/update_recovery_flow_with_link_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,6 +23,9 @@ pub struct UpdateRecoveryFlowWithLinkMethod { /// Method is the method that should be used for this recovery flow Allowed values are `link` and `code` link RecoveryStrategyLink code RecoveryStrategyCode #[serde(rename = "method")] pub method: MethodEnum, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -33,6 +36,7 @@ impl UpdateRecoveryFlowWithLinkMethod { csrf_token: None, email, method, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_registration_flow_body.rs b/clients/client/rust/src/models/update_registration_flow_body.rs index 10580021ba7..cc416eb1e1a 100644 --- a/clients/client/rust/src/models/update_registration_flow_body.rs +++ b/clients/client/rust/src/models/update_registration_flow_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_registration_flow_with_code_method.rs b/clients/client/rust/src/models/update_registration_flow_with_code_method.rs index 19d49a7a99a..f0276f94016 100644 --- a/clients/client/rust/src/models/update_registration_flow_with_code_method.rs +++ b/clients/client/rust/src/models/update_registration_flow_with_code_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_registration_flow_with_oidc_method.rs b/clients/client/rust/src/models/update_registration_flow_with_oidc_method.rs index c0bf92d2a35..a1fe3261d20 100644 --- a/clients/client/rust/src/models/update_registration_flow_with_oidc_method.rs +++ b/clients/client/rust/src/models/update_registration_flow_with_oidc_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_registration_flow_with_password_method.rs b/clients/client/rust/src/models/update_registration_flow_with_password_method.rs index bbdc01d685b..b201abebb63 100644 --- a/clients/client/rust/src/models/update_registration_flow_with_password_method.rs +++ b/clients/client/rust/src/models/update_registration_flow_with_password_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_registration_flow_with_web_authn_method.rs b/clients/client/rust/src/models/update_registration_flow_with_web_authn_method.rs index 05dacefe043..ae2b9522f41 100644 --- a/clients/client/rust/src/models/update_registration_flow_with_web_authn_method.rs +++ b/clients/client/rust/src/models/update_registration_flow_with_web_authn_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/update_settings_flow_body.rs b/clients/client/rust/src/models/update_settings_flow_body.rs index b5ebd28f83a..ecfa5b79f84 100644 --- a/clients/client/rust/src/models/update_settings_flow_body.rs +++ b/clients/client/rust/src/models/update_settings_flow_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -36,6 +36,10 @@ pub enum UpdateSettingsFlowBody { #[serde(rename = "lookup_secret_reveal", skip_serializing_if = "Option::is_none")] // false, false, , bool, false lookup_secret_reveal: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="oidc")] UpdateSettingsFlowWithOidcMethod { @@ -51,6 +55,10 @@ pub enum UpdateSettingsFlowBody { #[serde(rename = "traits", skip_serializing_if = "Option::is_none")] // false, false, , serde_json::Value, false traits: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, /// Unlink this provider Either this or `link` must be set. type: string in: body #[serde(rename = "unlink", skip_serializing_if = "Option::is_none")] // false, false, , String, false @@ -70,6 +78,10 @@ pub enum UpdateSettingsFlowBody { #[serde(rename = "password")] // true, false, , String, false password: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="profile")] UpdateSettingsFlowWithProfileMethod { @@ -81,6 +93,10 @@ pub enum UpdateSettingsFlowBody { #[serde(rename = "traits")] // true, false, , serde_json::Value, false traits: serde_json::Value, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="totp")] UpdateSettingsFlowWithTotpMethod { @@ -96,6 +112,10 @@ pub enum UpdateSettingsFlowBody { #[serde(rename = "totp_unlink", skip_serializing_if = "Option::is_none")] // false, false, , bool, false totp_unlink: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="webauthn")] UpdateSettingsFlowWithWebAuthnMethod { @@ -103,6 +123,10 @@ pub enum UpdateSettingsFlowBody { #[serde(rename = "csrf_token", skip_serializing_if = "Option::is_none")] // false, false, , String, false csrf_token: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, /// Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. #[serde(rename = "webauthn_register", skip_serializing_if = "Option::is_none")] // false, false, , String, false diff --git a/clients/client/rust/src/models/update_settings_flow_with_lookup_method.rs b/clients/client/rust/src/models/update_settings_flow_with_lookup_method.rs index 49df5c14e9b..3531247b961 100644 --- a/clients/client/rust/src/models/update_settings_flow_with_lookup_method.rs +++ b/clients/client/rust/src/models/update_settings_flow_with_lookup_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -32,6 +32,9 @@ pub struct UpdateSettingsFlowWithLookupMethod { /// Method Should be set to \"lookup\" when trying to add, update, or remove a lookup pairing. #[serde(rename = "method")] pub method: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -45,6 +48,7 @@ impl UpdateSettingsFlowWithLookupMethod { lookup_secret_regenerate: None, lookup_secret_reveal: None, method, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_settings_flow_with_oidc_method.rs b/clients/client/rust/src/models/update_settings_flow_with_oidc_method.rs index 0aa67452acc..95c87dbfed6 100644 --- a/clients/client/rust/src/models/update_settings_flow_with_oidc_method.rs +++ b/clients/client/rust/src/models/update_settings_flow_with_oidc_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -26,6 +26,9 @@ pub struct UpdateSettingsFlowWithOidcMethod { /// The identity's traits in: body #[serde(rename = "traits", skip_serializing_if = "Option::is_none")] pub traits: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// Unlink this provider Either this or `link` must be set. type: string in: body #[serde(rename = "unlink", skip_serializing_if = "Option::is_none")] pub unlink: Option, @@ -43,6 +46,7 @@ impl UpdateSettingsFlowWithOidcMethod { link: None, method, traits: None, + transient_payload: None, unlink: None, upstream_parameters: None, } diff --git a/clients/client/rust/src/models/update_settings_flow_with_password_method.rs b/clients/client/rust/src/models/update_settings_flow_with_password_method.rs index 340f0a06b1a..2894dfe1ef9 100644 --- a/clients/client/rust/src/models/update_settings_flow_with_password_method.rs +++ b/clients/client/rust/src/models/update_settings_flow_with_password_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,6 +23,9 @@ pub struct UpdateSettingsFlowWithPasswordMethod { /// Password is the updated password #[serde(rename = "password")] pub password: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -33,6 +36,7 @@ impl UpdateSettingsFlowWithPasswordMethod { csrf_token: None, method, password, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_settings_flow_with_profile_method.rs b/clients/client/rust/src/models/update_settings_flow_with_profile_method.rs index b9336050e99..9f15a65cfe5 100644 --- a/clients/client/rust/src/models/update_settings_flow_with_profile_method.rs +++ b/clients/client/rust/src/models/update_settings_flow_with_profile_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,6 +23,9 @@ pub struct UpdateSettingsFlowWithProfileMethod { /// Traits The identity's traits. #[serde(rename = "traits")] pub traits: serde_json::Value, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -33,6 +36,7 @@ impl UpdateSettingsFlowWithProfileMethod { csrf_token: None, method, traits, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_settings_flow_with_totp_method.rs b/clients/client/rust/src/models/update_settings_flow_with_totp_method.rs index 74bdbbfbd94..5303802d96b 100644 --- a/clients/client/rust/src/models/update_settings_flow_with_totp_method.rs +++ b/clients/client/rust/src/models/update_settings_flow_with_totp_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -26,6 +26,9 @@ pub struct UpdateSettingsFlowWithTotpMethod { /// UnlinkTOTP if true will remove the TOTP pairing, effectively removing the credential. This can be used to set up a new TOTP device. #[serde(rename = "totp_unlink", skip_serializing_if = "Option::is_none")] pub totp_unlink: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -37,6 +40,7 @@ impl UpdateSettingsFlowWithTotpMethod { method, totp_code: None, totp_unlink: None, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_settings_flow_with_web_authn_method.rs b/clients/client/rust/src/models/update_settings_flow_with_web_authn_method.rs index 364ea7eef19..908ea11a556 100644 --- a/clients/client/rust/src/models/update_settings_flow_with_web_authn_method.rs +++ b/clients/client/rust/src/models/update_settings_flow_with_web_authn_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -20,6 +20,9 @@ pub struct UpdateSettingsFlowWithWebAuthnMethod { /// Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. #[serde(rename = "method")] pub method: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. #[serde(rename = "webauthn_register", skip_serializing_if = "Option::is_none")] pub webauthn_register: Option, @@ -38,6 +41,7 @@ impl UpdateSettingsFlowWithWebAuthnMethod { UpdateSettingsFlowWithWebAuthnMethod { csrf_token: None, method, + transient_payload: None, webauthn_register: None, webauthn_register_displayname: None, webauthn_remove: None, diff --git a/clients/client/rust/src/models/update_subscription_body.rs b/clients/client/rust/src/models/update_subscription_body.rs index d745b3e1eb6..3ef4d10c1cc 100644 --- a/clients/client/rust/src/models/update_subscription_body.rs +++ b/clients/client/rust/src/models/update_subscription_body.rs @@ -3,12 +3,11 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ -/// UpdateSubscriptionBody : Update Subscription Request Body @@ -25,7 +24,6 @@ pub struct UpdateSubscriptionBody { impl UpdateSubscriptionBody { - /// Update Subscription Request Body pub fn new(interval: IntervalEnum, plan: String) -> UpdateSubscriptionBody { UpdateSubscriptionBody { interval, diff --git a/clients/client/rust/src/models/update_verification_flow_body.rs b/clients/client/rust/src/models/update_verification_flow_body.rs index 1c019a1c3cc..11445052904 100644 --- a/clients/client/rust/src/models/update_verification_flow_body.rs +++ b/clients/client/rust/src/models/update_verification_flow_body.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -28,6 +28,10 @@ pub enum UpdateVerificationFlowBody { #[serde(rename = "email", skip_serializing_if = "Option::is_none")] // false, false, , String, false email: Option, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, #[serde(rename="link")] UpdateVerificationFlowWithLinkMethod { @@ -39,6 +43,10 @@ pub enum UpdateVerificationFlowBody { #[serde(rename = "email")] // true, false, , String, false email: String, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + // false, false, , serde_json::Value, false + transient_payload: Option, }, } diff --git a/clients/client/rust/src/models/update_verification_flow_with_code_method.rs b/clients/client/rust/src/models/update_verification_flow_with_code_method.rs index 2c96e508b01..2d1cf585bad 100644 --- a/clients/client/rust/src/models/update_verification_flow_with_code_method.rs +++ b/clients/client/rust/src/models/update_verification_flow_with_code_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -25,6 +25,9 @@ pub struct UpdateVerificationFlowWithCodeMethod { /// Method is the method that should be used for this verification flow Allowed values are `link` and `code`. link VerificationStrategyLink code VerificationStrategyCode #[serde(rename = "method")] pub method: MethodEnum, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -35,6 +38,7 @@ impl UpdateVerificationFlowWithCodeMethod { csrf_token: None, email: None, method, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_verification_flow_with_link_method.rs b/clients/client/rust/src/models/update_verification_flow_with_link_method.rs index 50592927721..9eff7b2aa7e 100644 --- a/clients/client/rust/src/models/update_verification_flow_with_link_method.rs +++ b/clients/client/rust/src/models/update_verification_flow_with_link_method.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,6 +23,9 @@ pub struct UpdateVerificationFlowWithLinkMethod { /// Method is the method that should be used for this verification flow Allowed values are `link` and `code` link VerificationStrategyLink code VerificationStrategyCode #[serde(rename = "method")] pub method: MethodEnum, + /// Transient data to pass along to any webhooks + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, } @@ -33,6 +36,7 @@ impl UpdateVerificationFlowWithLinkMethod { csrf_token: None, email, method, + transient_payload: None, } } } diff --git a/clients/client/rust/src/models/update_workspace_payload.rs b/clients/client/rust/src/models/update_workspace_payload.rs new file mode 100644 index 00000000000..5f37b3d9b31 --- /dev/null +++ b/clients/client/rust/src/models/update_workspace_payload.rs @@ -0,0 +1,30 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct UpdateWorkspacePayload { + /// The name of the workspace. + #[serde(rename = "name")] + pub name: String, +} + + +impl UpdateWorkspacePayload { + pub fn new(name: String) -> UpdateWorkspacePayload { + UpdateWorkspacePayload { + name, + } + } +} + + diff --git a/clients/client/rust/src/models/usage.rs b/clients/client/rust/src/models/usage.rs index 43284b7035e..efff0ac05cc 100644 --- a/clients/client/rust/src/models/usage.rs +++ b/clients/client/rust/src/models/usage.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/verifiable_credential_priming_response.rs b/clients/client/rust/src/models/verifiable_credential_priming_response.rs index a9765808238..08e074b8a99 100644 --- a/clients/client/rust/src/models/verifiable_credential_priming_response.rs +++ b/clients/client/rust/src/models/verifiable_credential_priming_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/verifiable_credential_proof.rs b/clients/client/rust/src/models/verifiable_credential_proof.rs index 053a2921068..a128d4b8c3d 100644 --- a/clients/client/rust/src/models/verifiable_credential_proof.rs +++ b/clients/client/rust/src/models/verifiable_credential_proof.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/verifiable_credential_response.rs b/clients/client/rust/src/models/verifiable_credential_response.rs index 6b52f5948f5..3b6fcedb823 100644 --- a/clients/client/rust/src/models/verifiable_credential_response.rs +++ b/clients/client/rust/src/models/verifiable_credential_response.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/verifiable_identity_address.rs b/clients/client/rust/src/models/verifiable_identity_address.rs index 0ef7723b494..98dae0d9dfe 100644 --- a/clients/client/rust/src/models/verifiable_identity_address.rs +++ b/clients/client/rust/src/models/verifiable_identity_address.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/verification_flow.rs b/clients/client/rust/src/models/verification_flow.rs index 2c03d506c2e..e3bd6b2dc63 100644 --- a/clients/client/rust/src/models/verification_flow.rs +++ b/clients/client/rust/src/models/verification_flow.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ @@ -35,6 +35,9 @@ pub struct VerificationFlow { /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. #[serde(rename = "state")] pub state: Option, + /// TransientPayload is used to pass data from the verification flow to hooks and email templates + #[serde(rename = "transient_payload", skip_serializing_if = "Option::is_none")] + pub transient_payload: Option, /// The flow type can either be `api` or `browser`. #[serde(rename = "type")] pub _type: String, @@ -54,6 +57,7 @@ impl VerificationFlow { request_url: None, return_to: None, state, + transient_payload: None, _type, ui: Box::new(ui), } diff --git a/clients/client/rust/src/models/verification_flow_state.rs b/clients/client/rust/src/models/verification_flow_state.rs index 3c67c5442a1..95f5c7965f1 100644 --- a/clients/client/rust/src/models/verification_flow_state.rs +++ b/clients/client/rust/src/models/verification_flow_state.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/version.rs b/clients/client/rust/src/models/version.rs index c688cf3e0d9..9a90598f661 100644 --- a/clients/client/rust/src/models/version.rs +++ b/clients/client/rust/src/models/version.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/warning.rs b/clients/client/rust/src/models/warning.rs index ae9fbf2cacf..56a87029c99 100644 --- a/clients/client/rust/src/models/warning.rs +++ b/clients/client/rust/src/models/warning.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/workspace.rs b/clients/client/rust/src/models/workspace.rs index 7a0f56f8b31..77ea698169e 100644 --- a/clients/client/rust/src/models/workspace.rs +++ b/clients/client/rust/src/models/workspace.rs @@ -3,7 +3,7 @@ * * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/client/rust/src/models/workspace_meta.rs b/clients/client/rust/src/models/workspace_meta.rs new file mode 100644 index 00000000000..a54a89939c5 --- /dev/null +++ b/clients/client/rust/src/models/workspace_meta.rs @@ -0,0 +1,44 @@ +/* + * Ory APIs + * + * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. + * + * The version of the OpenAPI document: v1.8.1 + * Contact: support@ory.sh + * Generated by: https://openapi-generator.tech + */ + + + + +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] +pub struct WorkspaceMeta { + #[serde(rename = "created_at")] + pub created_at: String, + #[serde(rename = "id")] + pub id: String, + #[serde(rename = "name")] + pub name: String, + #[serde(rename = "subscription_id", skip_serializing_if = "Option::is_none")] + pub subscription_id: Option, + #[serde(rename = "subscription_plan", skip_serializing_if = "Option::is_none")] + pub subscription_plan: Option, + #[serde(rename = "updated_at")] + pub updated_at: String, +} + + +impl WorkspaceMeta { + pub fn new(created_at: String, id: String, name: String, updated_at: String) -> WorkspaceMeta { + WorkspaceMeta { + created_at, + id, + name, + subscription_id: None, + subscription_plan: None, + updated_at, + } + } +} + + diff --git a/clients/client/typescript/.openapi-generator/VERSION b/clients/client/typescript/.openapi-generator/VERSION index 3769235d3e6..4b49d9bb63e 100644 --- a/clients/client/typescript/.openapi-generator/VERSION +++ b/clients/client/typescript/.openapi-generator/VERSION @@ -1 +1 @@ -7.1.0 \ No newline at end of file +7.2.0 \ No newline at end of file diff --git a/clients/client/typescript/README.md b/clients/client/typescript/README.md index 8e15c4426dd..65492d1c430 100644 --- a/clients/client/typescript/README.md +++ b/clients/client/typescript/README.md @@ -1,4 +1,4 @@ -## @ory/client@v1.5.1 +## @ory/client@v1.8.1 This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @ory/client@v1.5.1 --save +npm install @ory/client@v1.8.1 --save ``` _unPublished (not recommended):_ diff --git a/clients/client/typescript/api.ts b/clients/client/typescript/api.ts index 25ae4e92dcb..a67f5666ede 100644 --- a/clients/client/typescript/api.ts +++ b/clients/client/typescript/api.ts @@ -4,7 +4,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -14,7 +14,7 @@ import type { Configuration } from './configuration'; -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore @@ -29,6 +29,12 @@ import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerM * @interface AcceptOAuth2ConsentRequest */ export interface AcceptOAuth2ConsentRequest { + /** + * + * @type {object} + * @memberof AcceptOAuth2ConsentRequest + */ + 'context'?: object; /** * * @type {Array} @@ -302,19 +308,19 @@ export interface CloudAccount { * @type {string} * @memberof CloudAccount */ - 'email'?: string; + 'email': string; /** * * @type {string} * @memberof CloudAccount */ - 'id'?: string; + 'id': string; /** * * @type {string} * @memberof CloudAccount */ - 'name'?: string; + 'name': string; } /** * Control API consistency guarantees @@ -641,11 +647,11 @@ export interface CreateIdentityBody { */ 'schema_id': string; /** - * - * @type {IdentityState} + * State is the identity\'s state. active StateActive inactive StateInactive + * @type {string} * @memberof CreateIdentityBody */ - 'state'?: IdentityState; + 'state'?: CreateIdentityBodyStateEnum; /** * Traits represent an identity\'s traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. * @type {object} @@ -660,6 +666,12 @@ export interface CreateIdentityBody { 'verifiable_addresses'?: Array; } +export const CreateIdentityBodyStateEnum = { + Active: 'active', + Inactive: 'inactive' +} as const; + +export type CreateIdentityBodyStateEnum = typeof CreateIdentityBodyStateEnum[keyof typeof CreateIdentityBodyStateEnum]; /** * @@ -724,6 +736,12 @@ export interface CreateProjectApiKeyRequest { * @interface CreateProjectBody */ export interface CreateProjectBody { + /** + * The environment of the project. prod Production dev Development + * @type {string} + * @memberof CreateProjectBody + */ + 'environment': CreateProjectBodyEnvironmentEnum; /** * The name of the project to be created * @type {string} @@ -737,6 +755,14 @@ export interface CreateProjectBody { */ 'workspace_id'?: string | null; } + +export const CreateProjectBodyEnvironmentEnum = { + Prod: 'prod', + Dev: 'dev' +} as const; + +export type CreateProjectBodyEnvironmentEnum = typeof CreateProjectBodyEnvironmentEnum[keyof typeof CreateProjectBodyEnvironmentEnum]; + /** * Create a Project Branding * @export @@ -811,6 +837,18 @@ export interface CreateProjectNormalizedPayload { * @memberof CreateProjectNormalizedPayload */ 'disable_account_experience_welcome_screen'?: boolean; + /** + * Whether the new account experience is enabled and reachable. + * @type {boolean} + * @memberof CreateProjectNormalizedPayload + */ + 'enable_ax_v2'?: boolean; + /** + * prod Production dev Development + * @type {string} + * @memberof CreateProjectNormalizedPayload + */ + 'environment': CreateProjectNormalizedPayloadEnvironmentEnum; /** * * @type {Array} @@ -847,6 +885,12 @@ export interface CreateProjectNormalizedPayload { * @memberof CreateProjectNormalizedPayload */ 'hydra_oauth2_grant_jwt_max_ttl'?: string; + /** + * Set to false if you don\'t want to mirror custom claims under \'ext\'. This governs the \"oauth2.mirror_top_level_claims\" setting. + * @type {boolean} + * @memberof CreateProjectNormalizedPayload + */ + 'hydra_oauth2_mirror_top_level_claims'?: boolean; /** * Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. * @type {boolean} @@ -1195,6 +1239,12 @@ export interface CreateProjectNormalizedPayload { * @memberof CreateProjectNormalizedPayload */ 'kratos_courier_templates_login_code_valid_email_subject'?: string; + /** + * Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + * @type {string} + * @memberof CreateProjectNormalizedPayload + */ + 'kratos_courier_templates_login_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. * @type {string} @@ -1705,6 +1755,12 @@ export interface CreateProjectNormalizedPayload { * @memberof CreateProjectNormalizedPayload */ 'kratos_selfservice_methods_code_enabled'?: boolean; + /** + * Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + * @type {boolean} + * @memberof CreateProjectNormalizedPayload + */ + 'kratos_selfservice_methods_code_mfa_enabled'?: boolean; /** * Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. * @type {boolean} @@ -1935,6 +1991,12 @@ export interface CreateProjectNormalizedPayload { 'workspace_id'?: string | null; } +export const CreateProjectNormalizedPayloadEnvironmentEnum = { + Prod: 'prod', + Dev: 'dev' +} as const; + +export type CreateProjectNormalizedPayloadEnvironmentEnum = typeof CreateProjectNormalizedPayloadEnvironmentEnum[keyof typeof CreateProjectNormalizedPayloadEnvironmentEnum]; export const CreateProjectNormalizedPayloadHydraStrategiesAccessTokenEnum = { Opaque: 'opaque', Jwt: 'jwt' @@ -2036,7 +2098,7 @@ export interface CreateRelationshipBody { 'subject_set'?: SubjectSet; } /** - * Create Subscription Request Body + * * @export * @interface CreateSubscriptionBody */ @@ -2064,19 +2126,13 @@ export interface CreateSubscriptionBody { * @type {string} * @memberof CreateSubscriptionBody */ - 'provision_first_project'?: string | null; + 'provision_first_project': string; /** * * @type {string} * @memberof CreateSubscriptionBody */ 'return_to'?: string; - /** - * - * @type {string} - * @memberof CreateSubscriptionBody - */ - 'workspace'?: string | null; } export const CreateSubscriptionBodyCurrencyEnum = { @@ -2092,6 +2148,51 @@ export const CreateSubscriptionBodyIntervalEnum = { export type CreateSubscriptionBodyIntervalEnum = typeof CreateSubscriptionBodyIntervalEnum[keyof typeof CreateSubscriptionBodyIntervalEnum]; +/** + * + * @export + * @interface CreateSubscriptionCommon + */ +export interface CreateSubscriptionCommon { + /** + * usd USD eur Euro + * @type {string} + * @memberof CreateSubscriptionCommon + */ + 'currency'?: CreateSubscriptionCommonCurrencyEnum; + /** + * monthly Monthly yearly Yearly + * @type {string} + * @memberof CreateSubscriptionCommon + */ + 'interval': CreateSubscriptionCommonIntervalEnum; + /** + * + * @type {string} + * @memberof CreateSubscriptionCommon + */ + 'plan': string; + /** + * + * @type {string} + * @memberof CreateSubscriptionCommon + */ + 'return_to'?: string; +} + +export const CreateSubscriptionCommonCurrencyEnum = { + Usd: 'usd', + Eur: 'eur' +} as const; + +export type CreateSubscriptionCommonCurrencyEnum = typeof CreateSubscriptionCommonCurrencyEnum[keyof typeof CreateSubscriptionCommonCurrencyEnum]; +export const CreateSubscriptionCommonIntervalEnum = { + Monthly: 'monthly', + Yearly: 'yearly' +} as const; + +export type CreateSubscriptionCommonIntervalEnum = typeof CreateSubscriptionCommonIntervalEnum[keyof typeof CreateSubscriptionCommonIntervalEnum]; + /** * * @export @@ -2130,6 +2231,64 @@ export interface CreateWorkspaceMemberInviteBody { */ 'invitee_email'?: string; } +/** + * + * @export + * @interface CreateWorkspacePayload + */ +export interface CreateWorkspacePayload { + /** + * The name of the workspace + * @type {string} + * @memberof CreateWorkspacePayload + */ + 'name': string; +} +/** + * + * @export + * @interface CreateWorkspaceSubscriptionBody + */ +export interface CreateWorkspaceSubscriptionBody { + /** + * usd USD eur Euro + * @type {string} + * @memberof CreateWorkspaceSubscriptionBody + */ + 'currency'?: CreateWorkspaceSubscriptionBodyCurrencyEnum; + /** + * monthly Monthly yearly Yearly + * @type {string} + * @memberof CreateWorkspaceSubscriptionBody + */ + 'interval': CreateWorkspaceSubscriptionBodyIntervalEnum; + /** + * + * @type {string} + * @memberof CreateWorkspaceSubscriptionBody + */ + 'plan': string; + /** + * + * @type {string} + * @memberof CreateWorkspaceSubscriptionBody + */ + 'return_to'?: string; +} + +export const CreateWorkspaceSubscriptionBodyCurrencyEnum = { + Usd: 'usd', + Eur: 'eur' +} as const; + +export type CreateWorkspaceSubscriptionBodyCurrencyEnum = typeof CreateWorkspaceSubscriptionBodyCurrencyEnum[keyof typeof CreateWorkspaceSubscriptionBodyCurrencyEnum]; +export const CreateWorkspaceSubscriptionBodyIntervalEnum = { + Monthly: 'monthly', + Yearly: 'yearly' +} as const; + +export type CreateWorkspaceSubscriptionBodyIntervalEnum = typeof CreateWorkspaceSubscriptionBodyIntervalEnum[keyof typeof CreateWorkspaceSubscriptionBodyIntervalEnum]; + /** * Includes information about the supported verifiable credentials. * @export @@ -2903,11 +3062,11 @@ export interface Identity { */ 'schema_url': string; /** - * - * @type {IdentityState} + * State is the identity\'s state. This value has currently no effect. active StateActive inactive StateInactive + * @type {string} * @memberof Identity */ - 'state'?: IdentityState; + 'state'?: IdentityStateEnum; /** * * @type {string} @@ -2934,6 +3093,12 @@ export interface Identity { 'verifiable_addresses'?: Array; } +export const IdentityStateEnum = { + Active: 'active', + Inactive: 'inactive' +} as const; + +export type IdentityStateEnum = typeof IdentityStateEnum[keyof typeof IdentityStateEnum]; /** * Credentials represents a specific credential type @@ -2960,11 +3125,11 @@ export interface IdentityCredentials { */ 'identifiers'?: Array; /** - * - * @type {IdentityCredentialsType} + * Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + * @type {string} * @memberof IdentityCredentials */ - 'type'?: IdentityCredentialsType; + 'type'?: IdentityCredentialsTypeEnum; /** * UpdatedAt is a helper struct field for gobuffalo.pop. * @type {string} @@ -2979,6 +3144,18 @@ export interface IdentityCredentials { 'version'?: number; } +export const IdentityCredentialsTypeEnum = { + Password: 'password', + Oidc: 'oidc', + Totp: 'totp', + LookupSecret: 'lookup_secret', + Webauthn: 'webauthn', + Code: 'code', + LinkRecovery: 'link_recovery', + CodeRecovery: 'code_recovery' +} as const; + +export type IdentityCredentialsTypeEnum = typeof IdentityCredentialsTypeEnum[keyof typeof IdentityCredentialsTypeEnum]; /** * CredentialsCode represents a one time login/registration code @@ -2987,7 +3164,7 @@ export interface IdentityCredentials { */ export interface IdentityCredentialsCode { /** - * + * The type of the address for this code * @type {string} * @memberof IdentityCredentialsCode */ @@ -3068,24 +3245,6 @@ export interface IdentityCredentialsPassword { */ 'hashed_password'?: string; } -/** - * and so on. - * @export - * @enum {string} - */ - -export const IdentityCredentialsType = { - Password: 'password', - Totp: 'totp', - Oidc: 'oidc', - Webauthn: 'webauthn', - LookupSecret: 'lookup_secret', - Code: 'code' -} as const; - -export type IdentityCredentialsType = typeof IdentityCredentialsType[keyof typeof IdentityCredentialsType]; - - /** * Payload for patching an identity * @export @@ -3175,20 +3334,6 @@ export interface IdentitySchemaPreset { */ 'url': string; } -/** - * The state can either be `active` or `inactive`. - * @export - * @enum {string} - */ - -export const IdentityState = { - Active: 'active', - Inactive: 'inactive' -} as const; - -export type IdentityState = typeof IdentityState[keyof typeof IdentityState]; - - /** * Create Identity and Import Credentials * @export @@ -3375,51 +3520,6 @@ export interface InternalIsOwnerForProjectBySlugResponse { */ 'project_id': string; } -/** - * Internal Provision Mock Subscription Request Body - * @export - * @interface InternalProvisionMockSubscription - */ -export interface InternalProvisionMockSubscription { - /** - * Currency usd USD eur Euro - * @type {string} - * @memberof InternalProvisionMockSubscription - */ - 'currency': InternalProvisionMockSubscriptionCurrencyEnum; - /** - * Identity ID - * @type {string} - * @memberof InternalProvisionMockSubscription - */ - 'identity_id': string; - /** - * Billing Interval monthly Monthly yearly Yearly - * @type {string} - * @memberof InternalProvisionMockSubscription - */ - 'interval': InternalProvisionMockSubscriptionIntervalEnum; - /** - * Plan ID - * @type {string} - * @memberof InternalProvisionMockSubscription - */ - 'plan': string; -} - -export const InternalProvisionMockSubscriptionCurrencyEnum = { - Usd: 'usd', - Eur: 'eur' -} as const; - -export type InternalProvisionMockSubscriptionCurrencyEnum = typeof InternalProvisionMockSubscriptionCurrencyEnum[keyof typeof InternalProvisionMockSubscriptionCurrencyEnum]; -export const InternalProvisionMockSubscriptionIntervalEnum = { - Monthly: 'monthly', - Yearly: 'yearly' -} as const; - -export type InternalProvisionMockSubscriptionIntervalEnum = typeof InternalProvisionMockSubscriptionIntervalEnum[keyof typeof InternalProvisionMockSubscriptionIntervalEnum]; - /** * Introspection contains an access token\'s session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) * @export @@ -3773,10 +3873,10 @@ export interface ListMyWorkspacesResponse { 'next_page_token': string; /** * - * @type {Array} + * @type {Array} * @memberof ListMyWorkspacesResponse */ - 'workspaces': Array; + 'workspaces': Array; } /** * B2B SSO Organization List @@ -3791,6 +3891,31 @@ export interface ListOrganizationsResponse { */ 'organizations': Array; } +/** + * + * @export + * @interface ListWorkspaceProjectsResponse + */ +export interface ListWorkspaceProjectsResponse { + /** + * + * @type {boolean} + * @memberof ListWorkspaceProjectsResponse + */ + 'has_next_page': boolean; + /** + * + * @type {string} + * @memberof ListWorkspaceProjectsResponse + */ + 'next_page': string; + /** + * + * @type {Array} + * @memberof ListWorkspaceProjectsResponse + */ + 'projects': Array; +} /** * This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. * @export @@ -3798,11 +3923,11 @@ export interface ListOrganizationsResponse { */ export interface LoginFlow { /** - * - * @type {IdentityCredentialsType} + * The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + * @type {string} * @memberof LoginFlow */ - 'active'?: IdentityCredentialsType; + 'active'?: LoginFlowActiveEnum; /** * CreatedAt is a helper struct field for gobuffalo.pop. * @type {string} @@ -3881,6 +4006,12 @@ export interface LoginFlow { * @memberof LoginFlow */ 'state': any; + /** + * TransientPayload is used to pass data from the login to hooks and email templates + * @type {object} + * @memberof LoginFlow + */ + 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. * @type {string} @@ -3901,6 +4032,18 @@ export interface LoginFlow { 'updated_at'?: string; } +export const LoginFlowActiveEnum = { + Password: 'password', + Oidc: 'oidc', + Totp: 'totp', + LookupSecret: 'lookup_secret', + Webauthn: 'webauthn', + Code: 'code', + LinkRecovery: 'link_recovery', + CodeRecovery: 'code_recovery' +} as const; + +export type LoginFlowActiveEnum = typeof LoginFlowActiveEnum[keyof typeof LoginFlowActiveEnum]; /** * The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. @@ -4249,6 +4392,39 @@ export interface MetricsDatapoint { */ 'time': string; } +/** + * + * @export + * @interface MigrationOptions + */ +export interface MigrationOptions { + /** + * The environment of the project in the workspace. Can be one of \"prod\" or \"dev\". Note that the number of projects in the \"prod\" environment is limited depending on the subscription. prod Production dev Development + * @type {string} + * @memberof MigrationOptions + */ + 'environment': MigrationOptionsEnvironmentEnum; + /** + * The action to take with the project subscription. Can be one of \"migrate\", and \"ignore\". \"migrate\" will migrate the project subscription to the workspace. \"ignore\" will ignore the project subscription. migrate ProjectSubscriptionActionMigrate ProjectSubscriptionActionMigrate will migrate the project subscription to the workspace. ignore ProjectSubscriptionActionIgnore ProjectSubscriptionActionIgnore will ignore the project subscription. + * @type {string} + * @memberof MigrationOptions + */ + 'project_subscription': MigrationOptionsProjectSubscriptionEnum; +} + +export const MigrationOptionsEnvironmentEnum = { + Prod: 'prod', + Dev: 'dev' +} as const; + +export type MigrationOptionsEnvironmentEnum = typeof MigrationOptionsEnvironmentEnum[keyof typeof MigrationOptionsEnvironmentEnum]; +export const MigrationOptionsProjectSubscriptionEnum = { + Migrate: 'migrate', + Ignore: 'ignore' +} as const; + +export type MigrationOptionsProjectSubscriptionEnum = typeof MigrationOptionsProjectSubscriptionEnum[keyof typeof MigrationOptionsProjectSubscriptionEnum]; + /** * * @export @@ -4387,6 +4563,12 @@ export interface NormalizedProjectRevision { * @memberof NormalizedProjectRevision */ 'disable_account_experience_welcome_screen'?: boolean; + /** + * Whether the new account experience is enabled and reachable. + * @type {boolean} + * @memberof NormalizedProjectRevision + */ + 'enable_ax_v2'?: boolean; /** * * @type {Array} @@ -4423,6 +4605,12 @@ export interface NormalizedProjectRevision { * @memberof NormalizedProjectRevision */ 'hydra_oauth2_grant_jwt_max_ttl'?: string; + /** + * Set to false if you don\'t want to mirror custom claims under \'ext\'. This governs the \"oauth2.mirror_top_level_claims\" setting. + * @type {boolean} + * @memberof NormalizedProjectRevision + */ + 'hydra_oauth2_mirror_top_level_claims'?: boolean; /** * Configures whether PKCE should be enforced for all OAuth2 Clients. This governs the \"oauth2.pkce.enforced\" setting. * @type {boolean} @@ -4771,6 +4959,12 @@ export interface NormalizedProjectRevision { * @memberof NormalizedProjectRevision */ 'kratos_courier_templates_login_code_valid_email_subject'?: string; + /** + * Configures the Ory Kratos Valid Login via Code SMS plain text body This governs the \"courier.smtp.templates.login_code.valid.sms.plaintext\" setting. + * @type {string} + * @memberof NormalizedProjectRevision + */ + 'kratos_courier_templates_login_code_valid_sms_body_plaintext'?: string; /** * Configures the Ory Kratos Invalid Recovery via Code Email Body HTML Template This governs the \"courier.smtp.templates.recovery_code.invalid.email.body.html\" setting. * @type {string} @@ -5281,6 +5475,12 @@ export interface NormalizedProjectRevision { * @memberof NormalizedProjectRevision */ 'kratos_selfservice_methods_code_enabled'?: boolean; + /** + * Configues whether the code method can be used to fulfil MFA flows This governs the \"selfservice.methods.code.mfa_enabled\" setting. + * @type {boolean} + * @memberof NormalizedProjectRevision + */ + 'kratos_selfservice_methods_code_mfa_enabled'?: boolean; /** * Configues whether Ory Kratos Passwordless should use the Code Method This governs the \"selfservice.methods.code.passwordless_enabled\" setting. * @type {boolean} @@ -5847,6 +6047,12 @@ export interface NormalizedProjectRevisionThirdPartyProvider { * @memberof NormalizedProjectRevisionThirdPartyProvider */ 'azure_tenant'?: string; + /** + * + * @type {string} + * @memberof NormalizedProjectRevisionThirdPartyProvider + */ + 'claims_source'?: string | null; /** * ClientID is the application\'s Client ID. * @type {string} @@ -6265,6 +6471,12 @@ export interface OAuth2Client { * @memberof OAuth2Client */ 'skip_consent'?: boolean; + /** + * SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + * @type {boolean} + * @memberof OAuth2Client + */ + 'skip_logout_consent'?: boolean; /** * OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. * @type {string} @@ -6503,6 +6715,12 @@ export interface OAuth2ConsentSession { * @memberof OAuth2ConsentSession */ 'consent_request'?: OAuth2ConsentRequest; + /** + * + * @type {object} + * @memberof OAuth2ConsentSession + */ + 'context'?: object; /** * * @type {OAuth2ConsentSessionExpiresAt} @@ -7208,6 +7426,19 @@ export interface PerformNativeLogoutBody { */ 'session_token': string; } +/** + * Get Permissions on Project Request Parameters + * @export + * @interface PermissionsOnWorkpaceResponse + */ +export interface PermissionsOnWorkpaceResponse { + /** + * + * @type {{ [key: string]: boolean; }} + * @memberof PermissionsOnWorkpaceResponse + */ + 'permissions'?: { [key: string]: boolean; }; +} /** * * @export @@ -7258,7 +7489,7 @@ export interface PlanDetails { */ 'description': string; /** - * Features are the feature definitions included in the plan. + * * @type {{ [key: string]: GenericUsage; }} * @memberof PlanDetails */ @@ -7983,19 +8214,50 @@ export interface ProjectHost { * @type {string} * @memberof ProjectHost */ - 'host': string; + 'host': string; + /** + * The mapping\'s ID. + * @type {string} + * @memberof ProjectHost + */ + 'id': string; + /** + * The Revision\'s Project ID + * @type {string} + * @memberof ProjectHost + */ + 'project_id': string; +} +/** + * + * @export + * @interface ProjectMember + */ +export interface ProjectMember { + /** + * + * @type {string} + * @memberof ProjectMember + */ + 'email': string; + /** + * + * @type {string} + * @memberof ProjectMember + */ + 'id': string; /** - * The mapping\'s ID. + * * @type {string} - * @memberof ProjectHost + * @memberof ProjectMember */ - 'id': string; + 'name': string; /** - * The Revision\'s Project ID + * * @type {string} - * @memberof ProjectHost + * @memberof ProjectMember */ - 'project_id': string; + 'role': string; } /** * @@ -8009,6 +8271,12 @@ export interface ProjectMetadata { * @memberof ProjectMetadata */ 'created_at': string; + /** + * The environment of the project. prod Production dev Development + * @type {string} + * @memberof ProjectMetadata + */ + 'environment': ProjectMetadataEnvironmentEnum; /** * * @type {Array} @@ -8065,6 +8333,12 @@ export interface ProjectMetadata { 'workspace_id'?: string | null; } +export const ProjectMetadataEnvironmentEnum = { + Prod: 'prod', + Dev: 'dev' +} as const; + +export type ProjectMetadataEnvironmentEnum = typeof ProjectMetadataEnvironmentEnum[keyof typeof ProjectMetadataEnvironmentEnum]; export const ProjectMetadataStateEnum = { Running: 'running', Halted: 'halted', @@ -8156,7 +8430,7 @@ export interface QuotaUsage { */ 'can_use_more': boolean; /** - * region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList + * region_eu RegionEU region_us RegionUS region_apac RegionAPAC region_global RegionGlobal production_projects ProductionProjects daily_active_users DailyActiveUsers custom_domains CustomDomains event_streams EventStreams sla SLA collaborator_seats CollaboratorSeats edge_cache EdgeCache branding_themes BrandingThemes zendesk_support ZendeskSupport project_metrics ProjectMetrics project_metrics_time_window ProjectMetricsTimeWindow project_metrics_events_history ProjectMetricsEventsHistory organizations Organizations rop_grant ResourceOwnerPasswordGrant concierge_onboarding ConciergeOnboarding rate_limit_tier RateLimitTier session_rate_limit_tier RateLimitTierSessions identities_list_rate_limit_tier RateLimitTierIdentitiesList permission_checks_rate_limit_tier RateLimitTierPermissionChecks oauth2_introspect_rate_limit_tier RateLimitTierOAuth2Introspect * @type {string} * @memberof QuotaUsage */ @@ -8200,9 +8474,12 @@ export const QuotaUsageFeatureEnum = { ProjectMetricsEventsHistory: 'project_metrics_events_history', Organizations: 'organizations', RopGrant: 'rop_grant', + ConciergeOnboarding: 'concierge_onboarding', RateLimitTier: 'rate_limit_tier', SessionRateLimitTier: 'session_rate_limit_tier', - IdentitiesListRateLimitTier: 'identities_list_rate_limit_tier' + IdentitiesListRateLimitTier: 'identities_list_rate_limit_tier', + PermissionChecksRateLimitTier: 'permission_checks_rate_limit_tier', + Oauth2IntrospectRateLimitTier: 'oauth2_introspect_rate_limit_tier' } as const; export type QuotaUsageFeatureEnum = typeof QuotaUsageFeatureEnum[keyof typeof QuotaUsageFeatureEnum]; @@ -8323,6 +8600,12 @@ export interface RecoveryFlow { * @memberof RecoveryFlow */ 'state': any; + /** + * TransientPayload is used to pass data from the recovery flow to hooks and email templates + * @type {object} + * @memberof RecoveryFlow + */ + 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. * @type {string} @@ -8414,11 +8697,11 @@ export interface RecoveryLinkForIdentity { */ export interface RegistrationFlow { /** - * - * @type {IdentityCredentialsType} + * Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + * @type {string} * @memberof RegistrationFlow */ - 'active'?: IdentityCredentialsType; + 'active'?: RegistrationFlowActiveEnum; /** * ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. * @type {string} @@ -8499,6 +8782,18 @@ export interface RegistrationFlow { 'ui': UiContainer; } +export const RegistrationFlowActiveEnum = { + Password: 'password', + Oidc: 'oidc', + Totp: 'totp', + LookupSecret: 'lookup_secret', + Webauthn: 'webauthn', + Code: 'code', + LinkRecovery: 'link_recovery', + CodeRecovery: 'code_recovery' +} as const; + +export type RegistrationFlowActiveEnum = typeof RegistrationFlowActiveEnum[keyof typeof RegistrationFlowActiveEnum]; /** * choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. @@ -9128,6 +9423,12 @@ export interface SettingsFlow { * @memberof SettingsFlow */ 'state': any; + /** + * TransientPayload is used to pass data from the settings flow to hooks and email templates + * @type {object} + * @memberof SettingsFlow + */ + 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. * @type {string} @@ -9174,19 +9475,6 @@ export interface SourcePosition { */ 'column'?: number; } -/** - * - * @export - * @interface StripeCustomer - */ -export interface StripeCustomer { - /** - * - * @type {string} - * @memberof StripeCustomer - */ - 'id'?: string; -} /** * * @export @@ -9242,6 +9530,12 @@ export interface Subscription { * @memberof Subscription */ 'current_plan': string; + /** + * + * @type {PlanDetails} + * @memberof Subscription + */ + 'current_plan_details'?: PlanDetails; /** * The ID of the stripe customer * @type {string} @@ -9290,6 +9584,12 @@ export interface Subscription { * @memberof Subscription */ 'status': string; + /** + * + * @type {string} + * @memberof Subscription + */ + 'stripe_checkout_expires_at'?: string; /** * * @type {string} @@ -10023,11 +10323,11 @@ export interface UpdateIdentityBody { */ 'schema_id': string; /** - * - * @type {IdentityState} + * State is the identity\'s state. active StateActive inactive StateInactive + * @type {string} * @memberof UpdateIdentityBody */ - 'state': IdentityState; + 'state': UpdateIdentityBodyStateEnum; /** * Traits represent an identity\'s traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. * @type {object} @@ -10036,6 +10336,12 @@ export interface UpdateIdentityBody { 'traits': object; } +export const UpdateIdentityBodyStateEnum = { + Active: 'active', + Inactive: 'inactive' +} as const; + +export type UpdateIdentityBodyStateEnum = typeof UpdateIdentityBodyStateEnum[keyof typeof UpdateIdentityBodyStateEnum]; /** * @type UpdateLoginFlowBody @@ -10079,6 +10385,12 @@ export interface UpdateLoginFlowWithCodeMethod { * @memberof UpdateLoginFlowWithCodeMethod */ 'resend'?: string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateLoginFlowWithCodeMethod + */ + 'transient_payload'?: object; } /** * Update Login Flow with Lookup Secret Method @@ -10147,6 +10459,12 @@ export interface UpdateLoginFlowWithOidcMethod { * @memberof UpdateLoginFlowWithOidcMethod */ 'traits'?: object; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateLoginFlowWithOidcMethod + */ + 'transient_payload'?: object; /** * UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. * @type {object} @@ -10190,6 +10508,12 @@ export interface UpdateLoginFlowWithPasswordMethod { * @memberof UpdateLoginFlowWithPasswordMethod */ 'password_identifier'?: string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateLoginFlowWithPasswordMethod + */ + 'transient_payload'?: object; } /** * Update Login Flow with TOTP Method @@ -10215,6 +10539,12 @@ export interface UpdateLoginFlowWithTotpMethod { * @memberof UpdateLoginFlowWithTotpMethod */ 'totp_code': string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateLoginFlowWithTotpMethod + */ + 'transient_payload'?: object; } /** * Update Login Flow with WebAuthn Method @@ -10240,6 +10570,12 @@ export interface UpdateLoginFlowWithWebAuthnMethod { * @memberof UpdateLoginFlowWithWebAuthnMethod */ 'method': string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateLoginFlowWithWebAuthnMethod + */ + 'transient_payload'?: object; /** * Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. * @type {string} @@ -10284,6 +10620,12 @@ export interface UpdateRecoveryFlowWithCodeMethod { * @memberof UpdateRecoveryFlowWithCodeMethod */ 'method': UpdateRecoveryFlowWithCodeMethodMethodEnum; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateRecoveryFlowWithCodeMethod + */ + 'transient_payload'?: object; } export const UpdateRecoveryFlowWithCodeMethodMethodEnum = { @@ -10317,6 +10659,12 @@ export interface UpdateRecoveryFlowWithLinkMethod { * @memberof UpdateRecoveryFlowWithLinkMethod */ 'method': UpdateRecoveryFlowWithLinkMethodMethodEnum; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateRecoveryFlowWithLinkMethod + */ + 'transient_payload'?: object; } export const UpdateRecoveryFlowWithLinkMethodMethodEnum = { @@ -10560,6 +10908,12 @@ export interface UpdateSettingsFlowWithLookupMethod { * @memberof UpdateSettingsFlowWithLookupMethod */ 'method': string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateSettingsFlowWithLookupMethod + */ + 'transient_payload'?: object; } /** * Update Settings Flow with OpenID Connect Method @@ -10591,6 +10945,12 @@ export interface UpdateSettingsFlowWithOidcMethod { * @memberof UpdateSettingsFlowWithOidcMethod */ 'traits'?: object; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateSettingsFlowWithOidcMethod + */ + 'transient_payload'?: object; /** * Unlink this provider Either this or `link` must be set. type: string in: body * @type {string} @@ -10628,6 +10988,12 @@ export interface UpdateSettingsFlowWithPasswordMethod { * @memberof UpdateSettingsFlowWithPasswordMethod */ 'password': string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateSettingsFlowWithPasswordMethod + */ + 'transient_payload'?: object; } /** * Update Settings Flow with Profile Method @@ -10653,6 +11019,12 @@ export interface UpdateSettingsFlowWithProfileMethod { * @memberof UpdateSettingsFlowWithProfileMethod */ 'traits': object; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateSettingsFlowWithProfileMethod + */ + 'transient_payload'?: object; } /** * Update Settings Flow with TOTP Method @@ -10684,6 +11056,12 @@ export interface UpdateSettingsFlowWithTotpMethod { * @memberof UpdateSettingsFlowWithTotpMethod */ 'totp_unlink'?: boolean; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateSettingsFlowWithTotpMethod + */ + 'transient_payload'?: object; } /** * Update Settings Flow with WebAuthn Method @@ -10703,6 +11081,12 @@ export interface UpdateSettingsFlowWithWebAuthnMethod { * @memberof UpdateSettingsFlowWithWebAuthnMethod */ 'method': string; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateSettingsFlowWithWebAuthnMethod + */ + 'transient_payload'?: object; /** * Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. * @type {string} @@ -10723,7 +11107,7 @@ export interface UpdateSettingsFlowWithWebAuthnMethod { 'webauthn_remove'?: string; } /** - * Update Subscription Request Body + * * @export * @interface UpdateSubscriptionBody */ @@ -10792,6 +11176,12 @@ export interface UpdateVerificationFlowWithCodeMethod { * @memberof UpdateVerificationFlowWithCodeMethod */ 'method': UpdateVerificationFlowWithCodeMethodMethodEnum; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateVerificationFlowWithCodeMethod + */ + 'transient_payload'?: object; } export const UpdateVerificationFlowWithCodeMethodMethodEnum = { @@ -10825,6 +11215,12 @@ export interface UpdateVerificationFlowWithLinkMethod { * @memberof UpdateVerificationFlowWithLinkMethod */ 'method': UpdateVerificationFlowWithLinkMethodMethodEnum; + /** + * Transient data to pass along to any webhooks + * @type {object} + * @memberof UpdateVerificationFlowWithLinkMethod + */ + 'transient_payload'?: object; } export const UpdateVerificationFlowWithLinkMethodMethodEnum = { @@ -10834,6 +11230,19 @@ export const UpdateVerificationFlowWithLinkMethodMethodEnum = { export type UpdateVerificationFlowWithLinkMethodMethodEnum = typeof UpdateVerificationFlowWithLinkMethodMethodEnum[keyof typeof UpdateVerificationFlowWithLinkMethodMethodEnum]; +/** + * + * @export + * @interface UpdateWorkspacePayload + */ +export interface UpdateWorkspacePayload { + /** + * The name of the workspace. + * @type {string} + * @memberof UpdateWorkspacePayload + */ + 'name': string; +} /** * * @export @@ -11051,6 +11460,12 @@ export interface VerificationFlow { * @memberof VerificationFlow */ 'state': any; + /** + * TransientPayload is used to pass data from the verification flow to hooks and email templates + * @type {object} + * @memberof VerificationFlow + */ + 'transient_payload'?: object; /** * The flow type can either be `api` or `browser`. * @type {string} @@ -11148,6 +11563,49 @@ export interface Workspace { */ 'updated_at': string; } +/** + * + * @export + * @interface WorkspaceMeta + */ +export interface WorkspaceMeta { + /** + * + * @type {string} + * @memberof WorkspaceMeta + */ + 'created_at': string; + /** + * + * @type {string} + * @memberof WorkspaceMeta + */ + 'id': string; + /** + * + * @type {string} + * @memberof WorkspaceMeta + */ + 'name': string; + /** + * + * @type {string} + * @memberof WorkspaceMeta + */ + 'subscription_id'?: string | null; + /** + * + * @type {string} + * @memberof WorkspaceMeta + */ + 'subscription_plan'?: string | null; + /** + * + * @type {string} + * @memberof WorkspaceMeta + */ + 'updated_at': string; +} /** * CourierApi - axios parameter creator @@ -11162,7 +11620,7 @@ export const CourierApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCourierMessage: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getCourierMessage: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getCourierMessage', 'id', id) const localVarPath = `/admin/courier/messages/{id}` @@ -11203,7 +11661,7 @@ export const CourierApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listCourierMessages: async (pageSize?: number, pageToken?: string, status?: CourierMessageStatus, recipient?: string, options: AxiosRequestConfig = {}): Promise => { + listCourierMessages: async (pageSize?: number, pageToken?: string, status?: CourierMessageStatus, recipient?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/courier/messages`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11264,7 +11722,7 @@ export const CourierApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getCourierMessage(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getCourierMessage(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getCourierMessage(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['CourierApi.getCourierMessage']?.[index]?.url; @@ -11280,7 +11738,7 @@ export const CourierApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listCourierMessages(pageSize?: number, pageToken?: string, status?: CourierMessageStatus, recipient?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listCourierMessages(pageSize?: number, pageToken?: string, status?: CourierMessageStatus, recipient?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listCourierMessages(pageSize, pageToken, status, recipient, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['CourierApi.listCourierMessages']?.[index]?.url; @@ -11303,7 +11761,7 @@ export const CourierApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getCourierMessage(requestParameters: CourierApiGetCourierMessageRequest, options?: AxiosRequestConfig): AxiosPromise { + getCourierMessage(requestParameters: CourierApiGetCourierMessageRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getCourierMessage(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -11313,7 +11771,7 @@ export const CourierApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listCourierMessages(requestParameters: CourierApiListCourierMessagesRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + listCourierMessages(requestParameters: CourierApiListCourierMessagesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listCourierMessages(requestParameters.pageSize, requestParameters.pageToken, requestParameters.status, requestParameters.recipient, options).then((request) => request(axios, basePath)); }, }; @@ -11383,7 +11841,7 @@ export class CourierApi extends BaseAPI { * @throws {RequiredError} * @memberof CourierApi */ - public getCourierMessage(requestParameters: CourierApiGetCourierMessageRequest, options?: AxiosRequestConfig) { + public getCourierMessage(requestParameters: CourierApiGetCourierMessageRequest, options?: RawAxiosRequestConfig) { return CourierApiFp(this.configuration).getCourierMessage(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -11395,7 +11853,7 @@ export class CourierApi extends BaseAPI { * @throws {RequiredError} * @memberof CourierApi */ - public listCourierMessages(requestParameters: CourierApiListCourierMessagesRequest = {}, options?: AxiosRequestConfig) { + public listCourierMessages(requestParameters: CourierApiListCourierMessagesRequest = {}, options?: RawAxiosRequestConfig) { return CourierApiFp(this.configuration).listCourierMessages(requestParameters.pageSize, requestParameters.pageToken, requestParameters.status, requestParameters.recipient, options).then((request) => request(this.axios, this.basePath)); } } @@ -11416,7 +11874,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createEventStream: async (projectId: string, createEventStreamBody: CreateEventStreamBody, options: AxiosRequestConfig = {}): Promise => { + createEventStream: async (projectId: string, createEventStreamBody: CreateEventStreamBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createEventStream', 'projectId', projectId) // verify required parameter 'createEventStreamBody' is not null or undefined @@ -11460,7 +11918,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteEventStream: async (projectId: string, eventStreamId: string, options: AxiosRequestConfig = {}): Promise => { + deleteEventStream: async (projectId: string, eventStreamId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteEventStream', 'projectId', projectId) // verify required parameter 'eventStreamId' is not null or undefined @@ -11501,7 +11959,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listEventStreams: async (projectId: string, options: AxiosRequestConfig = {}): Promise => { + listEventStreams: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('listEventStreams', 'projectId', projectId) const localVarPath = `/projects/{project_id}/eventstreams` @@ -11541,7 +11999,7 @@ export const EventsApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setEventStream: async (projectId: string, eventStreamId: string, setEventStreamBody?: SetEventStreamBody, options: AxiosRequestConfig = {}): Promise => { + setEventStream: async (projectId: string, eventStreamId: string, setEventStreamBody?: SetEventStreamBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('setEventStream', 'projectId', projectId) // verify required parameter 'eventStreamId' is not null or undefined @@ -11596,7 +12054,7 @@ export const EventsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createEventStream(projectId: string, createEventStreamBody: CreateEventStreamBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createEventStream(projectId: string, createEventStreamBody: CreateEventStreamBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createEventStream(projectId, createEventStreamBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EventsApi.createEventStream']?.[index]?.url; @@ -11610,7 +12068,7 @@ export const EventsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteEventStream(projectId: string, eventStreamId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteEventStream(projectId: string, eventStreamId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEventStream(projectId, eventStreamId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EventsApi.deleteEventStream']?.[index]?.url; @@ -11623,7 +12081,7 @@ export const EventsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listEventStreams(projectId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listEventStreams(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listEventStreams(projectId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EventsApi.listEventStreams']?.[index]?.url; @@ -11638,7 +12096,7 @@ export const EventsApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setEventStream(projectId: string, eventStreamId: string, setEventStreamBody?: SetEventStreamBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setEventStream(projectId: string, eventStreamId: string, setEventStreamBody?: SetEventStreamBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setEventStream(projectId, eventStreamId, setEventStreamBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['EventsApi.setEventStream']?.[index]?.url; @@ -11661,7 +12119,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createEventStream(requestParameters: EventsApiCreateEventStreamRequest, options?: AxiosRequestConfig): AxiosPromise { + createEventStream(requestParameters: EventsApiCreateEventStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createEventStream(requestParameters.projectId, requestParameters.createEventStreamBody, options).then((request) => request(axios, basePath)); }, /** @@ -11671,7 +12129,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteEventStream(requestParameters: EventsApiDeleteEventStreamRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteEventStream(requestParameters: EventsApiDeleteEventStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteEventStream(requestParameters.projectId, requestParameters.eventStreamId, options).then((request) => request(axios, basePath)); }, /** @@ -11681,7 +12139,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listEventStreams(requestParameters: EventsApiListEventStreamsRequest, options?: AxiosRequestConfig): AxiosPromise { + listEventStreams(requestParameters: EventsApiListEventStreamsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listEventStreams(requestParameters.projectId, options).then((request) => request(axios, basePath)); }, /** @@ -11691,7 +12149,7 @@ export const EventsApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setEventStream(requestParameters: EventsApiSetEventStreamRequest, options?: AxiosRequestConfig): AxiosPromise { + setEventStream(requestParameters: EventsApiSetEventStreamRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setEventStream(requestParameters.projectId, requestParameters.eventStreamId, requestParameters.setEventStreamBody, options).then((request) => request(axios, basePath)); }, }; @@ -11796,7 +12254,7 @@ export class EventsApi extends BaseAPI { * @throws {RequiredError} * @memberof EventsApi */ - public createEventStream(requestParameters: EventsApiCreateEventStreamRequest, options?: AxiosRequestConfig) { + public createEventStream(requestParameters: EventsApiCreateEventStreamRequest, options?: RawAxiosRequestConfig) { return EventsApiFp(this.configuration).createEventStream(requestParameters.projectId, requestParameters.createEventStreamBody, options).then((request) => request(this.axios, this.basePath)); } @@ -11808,7 +12266,7 @@ export class EventsApi extends BaseAPI { * @throws {RequiredError} * @memberof EventsApi */ - public deleteEventStream(requestParameters: EventsApiDeleteEventStreamRequest, options?: AxiosRequestConfig) { + public deleteEventStream(requestParameters: EventsApiDeleteEventStreamRequest, options?: RawAxiosRequestConfig) { return EventsApiFp(this.configuration).deleteEventStream(requestParameters.projectId, requestParameters.eventStreamId, options).then((request) => request(this.axios, this.basePath)); } @@ -11820,7 +12278,7 @@ export class EventsApi extends BaseAPI { * @throws {RequiredError} * @memberof EventsApi */ - public listEventStreams(requestParameters: EventsApiListEventStreamsRequest, options?: AxiosRequestConfig) { + public listEventStreams(requestParameters: EventsApiListEventStreamsRequest, options?: RawAxiosRequestConfig) { return EventsApiFp(this.configuration).listEventStreams(requestParameters.projectId, options).then((request) => request(this.axios, this.basePath)); } @@ -11832,7 +12290,7 @@ export class EventsApi extends BaseAPI { * @throws {RequiredError} * @memberof EventsApi */ - public setEventStream(requestParameters: EventsApiSetEventStreamRequest, options?: AxiosRequestConfig) { + public setEventStream(requestParameters: EventsApiSetEventStreamRequest, options?: RawAxiosRequestConfig) { return EventsApiFp(this.configuration).setEventStream(requestParameters.projectId, requestParameters.eventStreamId, requestParameters.setEventStreamBody, options).then((request) => request(this.axios, this.basePath)); } } @@ -11854,10 +12312,11 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {string} [loginChallenge] An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). * @param {string} [organization] An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + * @param {string} [via] Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserLoginFlow: async (refresh?: boolean, aal?: string, returnTo?: string, cookie?: string, loginChallenge?: string, organization?: string, options: AxiosRequestConfig = {}): Promise => { + createBrowserLoginFlow: async (refresh?: boolean, aal?: string, returnTo?: string, cookie?: string, loginChallenge?: string, organization?: string, via?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/login/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11890,6 +12349,10 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat localVarQueryParameter['organization'] = organization; } + if (via !== undefined) { + localVarQueryParameter['via'] = via; + } + if (cookie != null) { localVarHeaderParameter['Cookie'] = String(cookie); } @@ -11913,7 +12376,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserLogoutFlow: async (cookie?: string, returnTo?: string, options: AxiosRequestConfig = {}): Promise => { + createBrowserLogoutFlow: async (cookie?: string, returnTo?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/logout/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11952,7 +12415,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserRecoveryFlow: async (returnTo?: string, options: AxiosRequestConfig = {}): Promise => { + createBrowserRecoveryFlow: async (returnTo?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/recovery/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -11990,7 +12453,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserRegistrationFlow: async (returnTo?: string, loginChallenge?: string, afterVerificationReturnTo?: string, organization?: string, options: AxiosRequestConfig = {}): Promise => { + createBrowserRegistrationFlow: async (returnTo?: string, loginChallenge?: string, afterVerificationReturnTo?: string, organization?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/registration/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12038,7 +12501,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserSettingsFlow: async (returnTo?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + createBrowserSettingsFlow: async (returnTo?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/settings/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12077,7 +12540,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserVerificationFlow: async (returnTo?: string, options: AxiosRequestConfig = {}): Promise => { + createBrowserVerificationFlow: async (returnTo?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/verification/browser`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12113,10 +12576,11 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {string} [xSessionToken] The Session Token of the Identity performing the settings flow. * @param {boolean} [returnSessionTokenExchangeCode] EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. * @param {string} [returnTo] The URL to return the browser to after the flow was completed. + * @param {string} [via] Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeLoginFlow: async (refresh?: boolean, aal?: string, xSessionToken?: string, returnSessionTokenExchangeCode?: boolean, returnTo?: string, options: AxiosRequestConfig = {}): Promise => { + createNativeLoginFlow: async (refresh?: boolean, aal?: string, xSessionToken?: string, returnSessionTokenExchangeCode?: boolean, returnTo?: string, via?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/login/api`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12145,6 +12609,10 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat localVarQueryParameter['return_to'] = returnTo; } + if (via !== undefined) { + localVarQueryParameter['via'] = via; + } + if (xSessionToken != null) { localVarHeaderParameter['X-Session-Token'] = String(xSessionToken); } @@ -12166,7 +12634,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeRecoveryFlow: async (options: AxiosRequestConfig = {}): Promise => { + createNativeRecoveryFlow: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/recovery/api`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12198,7 +12666,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeRegistrationFlow: async (returnSessionTokenExchangeCode?: boolean, returnTo?: string, options: AxiosRequestConfig = {}): Promise => { + createNativeRegistrationFlow: async (returnSessionTokenExchangeCode?: boolean, returnTo?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/registration/api`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12237,7 +12705,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeSettingsFlow: async (xSessionToken?: string, options: AxiosRequestConfig = {}): Promise => { + createNativeSettingsFlow: async (xSessionToken?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/settings/api`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12271,7 +12739,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeVerificationFlow: async (options: AxiosRequestConfig = {}): Promise => { + createNativeVerificationFlow: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/verification/api`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12303,7 +12771,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - disableMyOtherSessions: async (xSessionToken?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + disableMyOtherSessions: async (xSessionToken?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/sessions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12344,7 +12812,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - disableMySession: async (id: string, xSessionToken?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + disableMySession: async (id: string, xSessionToken?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('disableMySession', 'id', id) const localVarPath = `/sessions/{id}` @@ -12387,7 +12855,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - exchangeSessionToken: async (initCode: string, returnToCode: string, options: AxiosRequestConfig = {}): Promise => { + exchangeSessionToken: async (initCode: string, returnToCode: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'initCode' is not null or undefined assertParamExists('exchangeSessionToken', 'initCode', initCode) // verify required parameter 'returnToCode' is not null or undefined @@ -12430,7 +12898,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getFlowError: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getFlowError: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getFlowError', 'id', id) const localVarPath = `/self-service/errors`; @@ -12468,7 +12936,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLoginFlow: async (id: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + getLoginFlow: async (id: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getLoginFlow', 'id', id) const localVarPath = `/self-service/login/flows`; @@ -12510,7 +12978,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRecoveryFlow: async (id: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + getRecoveryFlow: async (id: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getRecoveryFlow', 'id', id) const localVarPath = `/self-service/recovery/flows`; @@ -12552,7 +13020,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRegistrationFlow: async (id: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + getRegistrationFlow: async (id: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getRegistrationFlow', 'id', id) const localVarPath = `/self-service/registration/flows`; @@ -12595,7 +13063,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSettingsFlow: async (id: string, xSessionToken?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + getSettingsFlow: async (id: string, xSessionToken?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getSettingsFlow', 'id', id) const localVarPath = `/self-service/settings/flows`; @@ -12641,7 +13109,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVerificationFlow: async (id: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + getVerificationFlow: async (id: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getVerificationFlow', 'id', id) const localVarPath = `/self-service/verification/flows`; @@ -12681,7 +13149,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getWebAuthnJavaScript: async (options: AxiosRequestConfig = {}): Promise => { + getWebAuthnJavaScript: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/.well-known/ory/webauthn.js`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12717,7 +13185,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listMySessions: async (perPage?: number, page?: number, pageSize?: number, pageToken?: string, xSessionToken?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + listMySessions: async (perPage?: number, page?: number, pageSize?: number, pageToken?: string, xSessionToken?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/sessions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12772,7 +13240,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - performNativeLogout: async (performNativeLogoutBody: PerformNativeLogoutBody, options: AxiosRequestConfig = {}): Promise => { + performNativeLogout: async (performNativeLogoutBody: PerformNativeLogoutBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'performNativeLogoutBody' is not null or undefined assertParamExists('performNativeLogout', 'performNativeLogoutBody', performNativeLogoutBody) const localVarPath = `/self-service/logout/api`; @@ -12810,7 +13278,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - toSession: async (xSessionToken?: string, cookie?: string, tokenizeAs?: string, options: AxiosRequestConfig = {}): Promise => { + toSession: async (xSessionToken?: string, cookie?: string, tokenizeAs?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/sessions/whoami`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12856,7 +13324,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateLoginFlow: async (flow: string, updateLoginFlowBody: UpdateLoginFlowBody, xSessionToken?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + updateLoginFlow: async (flow: string, updateLoginFlowBody: UpdateLoginFlowBody, xSessionToken?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'flow' is not null or undefined assertParamExists('updateLoginFlow', 'flow', flow) // verify required parameter 'updateLoginFlowBody' is not null or undefined @@ -12908,7 +13376,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateLogoutFlow: async (token?: string, returnTo?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + updateLogoutFlow: async (token?: string, returnTo?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/self-service/logout`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -12954,7 +13422,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecoveryFlow: async (flow: string, updateRecoveryFlowBody: UpdateRecoveryFlowBody, token?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + updateRecoveryFlow: async (flow: string, updateRecoveryFlowBody: UpdateRecoveryFlowBody, token?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'flow' is not null or undefined assertParamExists('updateRecoveryFlow', 'flow', flow) // verify required parameter 'updateRecoveryFlowBody' is not null or undefined @@ -13006,7 +13474,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRegistrationFlow: async (flow: string, updateRegistrationFlowBody: UpdateRegistrationFlowBody, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + updateRegistrationFlow: async (flow: string, updateRegistrationFlowBody: UpdateRegistrationFlowBody, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'flow' is not null or undefined assertParamExists('updateRegistrationFlow', 'flow', flow) // verify required parameter 'updateRegistrationFlowBody' is not null or undefined @@ -13055,7 +13523,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSettingsFlow: async (flow: string, updateSettingsFlowBody: UpdateSettingsFlowBody, xSessionToken?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + updateSettingsFlow: async (flow: string, updateSettingsFlowBody: UpdateSettingsFlowBody, xSessionToken?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'flow' is not null or undefined assertParamExists('updateSettingsFlow', 'flow', flow) // verify required parameter 'updateSettingsFlowBody' is not null or undefined @@ -13108,7 +13576,7 @@ export const FrontendApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateVerificationFlow: async (flow: string, updateVerificationFlowBody: UpdateVerificationFlowBody, token?: string, cookie?: string, options: AxiosRequestConfig = {}): Promise => { + updateVerificationFlow: async (flow: string, updateVerificationFlowBody: UpdateVerificationFlowBody, token?: string, cookie?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'flow' is not null or undefined assertParamExists('updateVerificationFlow', 'flow', flow) // verify required parameter 'updateVerificationFlowBody' is not null or undefined @@ -13170,11 +13638,12 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {string} [cookie] HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. * @param {string} [loginChallenge] An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). * @param {string} [organization] An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. + * @param {string} [via] Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBrowserLoginFlow(refresh?: boolean, aal?: string, returnTo?: string, cookie?: string, loginChallenge?: string, organization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, options); + async createBrowserLoginFlow(refresh?: boolean, aal?: string, returnTo?: string, cookie?: string, loginChallenge?: string, organization?: string, via?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization, via, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createBrowserLoginFlow']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -13187,7 +13656,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBrowserLogoutFlow(cookie?: string, returnTo?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createBrowserLogoutFlow(cookie?: string, returnTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserLogoutFlow(cookie, returnTo, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createBrowserLogoutFlow']?.[index]?.url; @@ -13200,7 +13669,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBrowserRecoveryFlow(returnTo?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createBrowserRecoveryFlow(returnTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserRecoveryFlow(returnTo, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createBrowserRecoveryFlow']?.[index]?.url; @@ -13216,7 +13685,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBrowserRegistrationFlow(returnTo?: string, loginChallenge?: string, afterVerificationReturnTo?: string, organization?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createBrowserRegistrationFlow(returnTo?: string, loginChallenge?: string, afterVerificationReturnTo?: string, organization?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo, organization, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createBrowserRegistrationFlow']?.[index]?.url; @@ -13230,7 +13699,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBrowserSettingsFlow(returnTo?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createBrowserSettingsFlow(returnTo?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserSettingsFlow(returnTo, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createBrowserSettingsFlow']?.[index]?.url; @@ -13243,7 +13712,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createBrowserVerificationFlow(returnTo?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createBrowserVerificationFlow(returnTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createBrowserVerificationFlow(returnTo, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createBrowserVerificationFlow']?.[index]?.url; @@ -13257,11 +13726,12 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {string} [xSessionToken] The Session Token of the Identity performing the settings flow. * @param {boolean} [returnSessionTokenExchangeCode] EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. * @param {string} [returnTo] The URL to return the browser to after the flow was completed. + * @param {string} [via] Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createNativeLoginFlow(refresh?: boolean, aal?: string, xSessionToken?: string, returnSessionTokenExchangeCode?: boolean, returnTo?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, options); + async createNativeLoginFlow(refresh?: boolean, aal?: string, xSessionToken?: string, returnSessionTokenExchangeCode?: boolean, returnTo?: string, via?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createNativeLoginFlow']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -13272,7 +13742,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createNativeRecoveryFlow(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createNativeRecoveryFlow(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createNativeRecoveryFlow(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createNativeRecoveryFlow']?.[index]?.url; @@ -13286,7 +13756,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createNativeRegistrationFlow(returnSessionTokenExchangeCode?: boolean, returnTo?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createNativeRegistrationFlow(returnSessionTokenExchangeCode?: boolean, returnTo?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createNativeRegistrationFlow(returnSessionTokenExchangeCode, returnTo, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createNativeRegistrationFlow']?.[index]?.url; @@ -13299,7 +13769,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createNativeSettingsFlow(xSessionToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createNativeSettingsFlow(xSessionToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createNativeSettingsFlow(xSessionToken, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createNativeSettingsFlow']?.[index]?.url; @@ -13311,7 +13781,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createNativeVerificationFlow(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createNativeVerificationFlow(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createNativeVerificationFlow(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.createNativeVerificationFlow']?.[index]?.url; @@ -13325,7 +13795,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async disableMyOtherSessions(xSessionToken?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async disableMyOtherSessions(xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.disableMyOtherSessions(xSessionToken, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.disableMyOtherSessions']?.[index]?.url; @@ -13340,7 +13810,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async disableMySession(id: string, xSessionToken?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async disableMySession(id: string, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.disableMySession(id, xSessionToken, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.disableMySession']?.[index]?.url; @@ -13354,7 +13824,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async exchangeSessionToken(initCode: string, returnToCode: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async exchangeSessionToken(initCode: string, returnToCode: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.exchangeSessionToken(initCode, returnToCode, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.exchangeSessionToken']?.[index]?.url; @@ -13367,7 +13837,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getFlowError(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getFlowError(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getFlowError(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getFlowError']?.[index]?.url; @@ -13381,7 +13851,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getLoginFlow(id: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getLoginFlow(id: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getLoginFlow(id, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getLoginFlow']?.[index]?.url; @@ -13395,7 +13865,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRecoveryFlow(id: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRecoveryFlow(id: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRecoveryFlow(id, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getRecoveryFlow']?.[index]?.url; @@ -13409,7 +13879,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRegistrationFlow(id: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRegistrationFlow(id: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRegistrationFlow(id, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getRegistrationFlow']?.[index]?.url; @@ -13424,7 +13894,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSettingsFlow(id: string, xSessionToken?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSettingsFlow(id: string, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSettingsFlow(id, xSessionToken, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getSettingsFlow']?.[index]?.url; @@ -13438,7 +13908,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVerificationFlow(id: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getVerificationFlow(id: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVerificationFlow(id, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getVerificationFlow']?.[index]?.url; @@ -13450,7 +13920,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getWebAuthnJavaScript(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getWebAuthnJavaScript(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getWebAuthnJavaScript(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.getWebAuthnJavaScript']?.[index]?.url; @@ -13468,7 +13938,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listMySessions(perPage?: number, page?: number, pageSize?: number, pageToken?: string, xSessionToken?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listMySessions(perPage?: number, page?: number, pageSize?: number, pageToken?: string, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listMySessions(perPage, page, pageSize, pageToken, xSessionToken, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.listMySessions']?.[index]?.url; @@ -13481,7 +13951,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async performNativeLogout(performNativeLogoutBody: PerformNativeLogoutBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async performNativeLogout(performNativeLogoutBody: PerformNativeLogoutBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.performNativeLogout(performNativeLogoutBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.performNativeLogout']?.[index]?.url; @@ -13496,7 +13966,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async toSession(xSessionToken?: string, cookie?: string, tokenizeAs?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async toSession(xSessionToken?: string, cookie?: string, tokenizeAs?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.toSession(xSessionToken, cookie, tokenizeAs, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.toSession']?.[index]?.url; @@ -13512,7 +13982,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateLoginFlow(flow: string, updateLoginFlowBody: UpdateLoginFlowBody, xSessionToken?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateLoginFlow(flow: string, updateLoginFlowBody: UpdateLoginFlowBody, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateLoginFlow(flow, updateLoginFlowBody, xSessionToken, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.updateLoginFlow']?.[index]?.url; @@ -13527,7 +13997,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateLogoutFlow(token?: string, returnTo?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateLogoutFlow(token?: string, returnTo?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateLogoutFlow(token, returnTo, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.updateLogoutFlow']?.[index]?.url; @@ -13543,7 +14013,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateRecoveryFlow(flow: string, updateRecoveryFlowBody: UpdateRecoveryFlowBody, token?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateRecoveryFlow(flow: string, updateRecoveryFlowBody: UpdateRecoveryFlowBody, token?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRecoveryFlow(flow, updateRecoveryFlowBody, token, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.updateRecoveryFlow']?.[index]?.url; @@ -13558,7 +14028,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateRegistrationFlow(flow: string, updateRegistrationFlowBody: UpdateRegistrationFlowBody, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateRegistrationFlow(flow: string, updateRegistrationFlowBody: UpdateRegistrationFlowBody, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateRegistrationFlow(flow, updateRegistrationFlowBody, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.updateRegistrationFlow']?.[index]?.url; @@ -13574,7 +14044,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateSettingsFlow(flow: string, updateSettingsFlowBody: UpdateSettingsFlowBody, xSessionToken?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateSettingsFlow(flow: string, updateSettingsFlowBody: UpdateSettingsFlowBody, xSessionToken?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateSettingsFlow(flow, updateSettingsFlowBody, xSessionToken, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.updateSettingsFlow']?.[index]?.url; @@ -13590,7 +14060,7 @@ export const FrontendApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateVerificationFlow(flow: string, updateVerificationFlowBody: UpdateVerificationFlowBody, token?: string, cookie?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateVerificationFlow(flow: string, updateVerificationFlowBody: UpdateVerificationFlowBody, token?: string, cookie?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateVerificationFlow(flow, updateVerificationFlowBody, token, cookie, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['FrontendApi.updateVerificationFlow']?.[index]?.url; @@ -13613,8 +14083,8 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserLoginFlow(requestParameters: FrontendApiCreateBrowserLoginFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { - return localVarFp.createBrowserLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.returnTo, requestParameters.cookie, requestParameters.loginChallenge, requestParameters.organization, options).then((request) => request(axios, basePath)); + createBrowserLoginFlow(requestParameters: FrontendApiCreateBrowserLoginFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createBrowserLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.returnTo, requestParameters.cookie, requestParameters.loginChallenge, requestParameters.organization, requestParameters.via, options).then((request) => request(axios, basePath)); }, /** * This endpoint initializes a browser-based user logout flow and a URL which can be used to log out the user. This endpoint is NOT INTENDED for API clients and only works with browsers (Chrome, Firefox, ...). For API clients you can call the `/self-service/logout/api` URL directly with the Ory Session Token. The URL is only valid for the currently signed in user. If no user is signed in, this endpoint returns a 401 error. When calling this endpoint from a backend, please ensure to properly forward the HTTP cookies. @@ -13623,7 +14093,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserLogoutFlow(requestParameters: FrontendApiCreateBrowserLogoutFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createBrowserLogoutFlow(requestParameters: FrontendApiCreateBrowserLogoutFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBrowserLogoutFlow(requestParameters.cookie, requestParameters.returnTo, options).then((request) => request(axios, basePath)); }, /** @@ -13633,7 +14103,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserRecoveryFlow(requestParameters: FrontendApiCreateBrowserRecoveryFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createBrowserRecoveryFlow(requestParameters: FrontendApiCreateBrowserRecoveryFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBrowserRecoveryFlow(requestParameters.returnTo, options).then((request) => request(axios, basePath)); }, /** @@ -13643,7 +14113,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserRegistrationFlow(requestParameters: FrontendApiCreateBrowserRegistrationFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createBrowserRegistrationFlow(requestParameters: FrontendApiCreateBrowserRegistrationFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBrowserRegistrationFlow(requestParameters.returnTo, requestParameters.loginChallenge, requestParameters.afterVerificationReturnTo, requestParameters.organization, options).then((request) => request(axios, basePath)); }, /** @@ -13653,7 +14123,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserSettingsFlow(requestParameters: FrontendApiCreateBrowserSettingsFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createBrowserSettingsFlow(requestParameters: FrontendApiCreateBrowserSettingsFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBrowserSettingsFlow(requestParameters.returnTo, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13663,7 +14133,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createBrowserVerificationFlow(requestParameters: FrontendApiCreateBrowserVerificationFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createBrowserVerificationFlow(requestParameters: FrontendApiCreateBrowserVerificationFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createBrowserVerificationFlow(requestParameters.returnTo, options).then((request) => request(axios, basePath)); }, /** @@ -13673,8 +14143,8 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeLoginFlow(requestParameters: FrontendApiCreateNativeLoginFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { - return localVarFp.createNativeLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.xSessionToken, requestParameters.returnSessionTokenExchangeCode, requestParameters.returnTo, options).then((request) => request(axios, basePath)); + createNativeLoginFlow(requestParameters: FrontendApiCreateNativeLoginFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createNativeLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.xSessionToken, requestParameters.returnSessionTokenExchangeCode, requestParameters.returnTo, requestParameters.via, options).then((request) => request(axios, basePath)); }, /** * This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). @@ -13682,7 +14152,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeRecoveryFlow(options?: AxiosRequestConfig): AxiosPromise { + createNativeRecoveryFlow(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createNativeRecoveryFlow(options).then((request) => request(axios, basePath)); }, /** @@ -13692,7 +14162,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeRegistrationFlow(requestParameters: FrontendApiCreateNativeRegistrationFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createNativeRegistrationFlow(requestParameters: FrontendApiCreateNativeRegistrationFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createNativeRegistrationFlow(requestParameters.returnSessionTokenExchangeCode, requestParameters.returnTo, options).then((request) => request(axios, basePath)); }, /** @@ -13702,7 +14172,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeSettingsFlow(requestParameters: FrontendApiCreateNativeSettingsFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createNativeSettingsFlow(requestParameters: FrontendApiCreateNativeSettingsFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createNativeSettingsFlow(requestParameters.xSessionToken, options).then((request) => request(axios, basePath)); }, /** @@ -13711,7 +14181,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createNativeVerificationFlow(options?: AxiosRequestConfig): AxiosPromise { + createNativeVerificationFlow(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createNativeVerificationFlow(options).then((request) => request(axios, basePath)); }, /** @@ -13721,7 +14191,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - disableMyOtherSessions(requestParameters: FrontendApiDisableMyOtherSessionsRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + disableMyOtherSessions(requestParameters: FrontendApiDisableMyOtherSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.disableMyOtherSessions(requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13731,7 +14201,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - disableMySession(requestParameters: FrontendApiDisableMySessionRequest, options?: AxiosRequestConfig): AxiosPromise { + disableMySession(requestParameters: FrontendApiDisableMySessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.disableMySession(requestParameters.id, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13741,7 +14211,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - exchangeSessionToken(requestParameters: FrontendApiExchangeSessionTokenRequest, options?: AxiosRequestConfig): AxiosPromise { + exchangeSessionToken(requestParameters: FrontendApiExchangeSessionTokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.exchangeSessionToken(requestParameters.initCode, requestParameters.returnToCode, options).then((request) => request(axios, basePath)); }, /** @@ -13751,7 +14221,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getFlowError(requestParameters: FrontendApiGetFlowErrorRequest, options?: AxiosRequestConfig): AxiosPromise { + getFlowError(requestParameters: FrontendApiGetFlowErrorRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getFlowError(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -13761,7 +14231,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getLoginFlow(requestParameters: FrontendApiGetLoginFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + getLoginFlow(requestParameters: FrontendApiGetLoginFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getLoginFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13771,7 +14241,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRecoveryFlow(requestParameters: FrontendApiGetRecoveryFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + getRecoveryFlow(requestParameters: FrontendApiGetRecoveryFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRecoveryFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13781,7 +14251,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRegistrationFlow(requestParameters: FrontendApiGetRegistrationFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + getRegistrationFlow(requestParameters: FrontendApiGetRegistrationFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRegistrationFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13791,7 +14261,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSettingsFlow(requestParameters: FrontendApiGetSettingsFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + getSettingsFlow(requestParameters: FrontendApiGetSettingsFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSettingsFlow(requestParameters.id, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13801,7 +14271,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVerificationFlow(requestParameters: FrontendApiGetVerificationFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + getVerificationFlow(requestParameters: FrontendApiGetVerificationFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVerificationFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13810,7 +14280,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getWebAuthnJavaScript(options?: AxiosRequestConfig): AxiosPromise { + getWebAuthnJavaScript(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getWebAuthnJavaScript(options).then((request) => request(axios, basePath)); }, /** @@ -13820,7 +14290,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listMySessions(requestParameters: FrontendApiListMySessionsRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + listMySessions(requestParameters: FrontendApiListMySessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listMySessions(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13830,7 +14300,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - performNativeLogout(requestParameters: FrontendApiPerformNativeLogoutRequest, options?: AxiosRequestConfig): AxiosPromise { + performNativeLogout(requestParameters: FrontendApiPerformNativeLogoutRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.performNativeLogout(requestParameters.performNativeLogoutBody, options).then((request) => request(axios, basePath)); }, /** @@ -13840,7 +14310,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - toSession(requestParameters: FrontendApiToSessionRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + toSession(requestParameters: FrontendApiToSessionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.toSession(requestParameters.xSessionToken, requestParameters.cookie, requestParameters.tokenizeAs, options).then((request) => request(axios, basePath)); }, /** @@ -13850,7 +14320,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateLoginFlow(requestParameters: FrontendApiUpdateLoginFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + updateLoginFlow(requestParameters: FrontendApiUpdateLoginFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateLoginFlow(requestParameters.flow, requestParameters.updateLoginFlowBody, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13860,7 +14330,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateLogoutFlow(requestParameters: FrontendApiUpdateLogoutFlowRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + updateLogoutFlow(requestParameters: FrontendApiUpdateLogoutFlowRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateLogoutFlow(requestParameters.token, requestParameters.returnTo, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13870,7 +14340,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRecoveryFlow(requestParameters: FrontendApiUpdateRecoveryFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + updateRecoveryFlow(requestParameters: FrontendApiUpdateRecoveryFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateRecoveryFlow(requestParameters.flow, requestParameters.updateRecoveryFlowBody, requestParameters.token, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13880,7 +14350,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateRegistrationFlow(requestParameters: FrontendApiUpdateRegistrationFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + updateRegistrationFlow(requestParameters: FrontendApiUpdateRegistrationFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateRegistrationFlow(requestParameters.flow, requestParameters.updateRegistrationFlowBody, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13890,7 +14360,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateSettingsFlow(requestParameters: FrontendApiUpdateSettingsFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + updateSettingsFlow(requestParameters: FrontendApiUpdateSettingsFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateSettingsFlow(requestParameters.flow, requestParameters.updateSettingsFlowBody, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, /** @@ -13900,7 +14370,7 @@ export const FrontendApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateVerificationFlow(requestParameters: FrontendApiUpdateVerificationFlowRequest, options?: AxiosRequestConfig): AxiosPromise { + updateVerificationFlow(requestParameters: FrontendApiUpdateVerificationFlowRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateVerificationFlow(requestParameters.flow, requestParameters.updateVerificationFlowBody, requestParameters.token, requestParameters.cookie, options).then((request) => request(axios, basePath)); }, }; @@ -13953,6 +14423,13 @@ export interface FrontendApiCreateBrowserLoginFlowRequest { * @memberof FrontendApiCreateBrowserLoginFlow */ readonly organization?: string + + /** + * Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. + * @type {string} + * @memberof FrontendApiCreateBrowserLoginFlow + */ + readonly via?: string } /** @@ -14100,6 +14577,13 @@ export interface FrontendApiCreateNativeLoginFlowRequest { * @memberof FrontendApiCreateNativeLoginFlow */ readonly returnTo?: string + + /** + * Via should contain the identity\'s credential the code should be sent to. Only relevant in aal2 flows. + * @type {string} + * @memberof FrontendApiCreateNativeLoginFlow + */ + readonly via?: string } /** @@ -14635,8 +15119,8 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createBrowserLoginFlow(requestParameters: FrontendApiCreateBrowserLoginFlowRequest = {}, options?: AxiosRequestConfig) { - return FrontendApiFp(this.configuration).createBrowserLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.returnTo, requestParameters.cookie, requestParameters.loginChallenge, requestParameters.organization, options).then((request) => request(this.axios, this.basePath)); + public createBrowserLoginFlow(requestParameters: FrontendApiCreateBrowserLoginFlowRequest = {}, options?: RawAxiosRequestConfig) { + return FrontendApiFp(this.configuration).createBrowserLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.returnTo, requestParameters.cookie, requestParameters.loginChallenge, requestParameters.organization, requestParameters.via, options).then((request) => request(this.axios, this.basePath)); } /** @@ -14647,7 +15131,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createBrowserLogoutFlow(requestParameters: FrontendApiCreateBrowserLogoutFlowRequest = {}, options?: AxiosRequestConfig) { + public createBrowserLogoutFlow(requestParameters: FrontendApiCreateBrowserLogoutFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createBrowserLogoutFlow(requestParameters.cookie, requestParameters.returnTo, options).then((request) => request(this.axios, this.basePath)); } @@ -14659,7 +15143,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createBrowserRecoveryFlow(requestParameters: FrontendApiCreateBrowserRecoveryFlowRequest = {}, options?: AxiosRequestConfig) { + public createBrowserRecoveryFlow(requestParameters: FrontendApiCreateBrowserRecoveryFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createBrowserRecoveryFlow(requestParameters.returnTo, options).then((request) => request(this.axios, this.basePath)); } @@ -14671,7 +15155,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createBrowserRegistrationFlow(requestParameters: FrontendApiCreateBrowserRegistrationFlowRequest = {}, options?: AxiosRequestConfig) { + public createBrowserRegistrationFlow(requestParameters: FrontendApiCreateBrowserRegistrationFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createBrowserRegistrationFlow(requestParameters.returnTo, requestParameters.loginChallenge, requestParameters.afterVerificationReturnTo, requestParameters.organization, options).then((request) => request(this.axios, this.basePath)); } @@ -14683,7 +15167,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createBrowserSettingsFlow(requestParameters: FrontendApiCreateBrowserSettingsFlowRequest = {}, options?: AxiosRequestConfig) { + public createBrowserSettingsFlow(requestParameters: FrontendApiCreateBrowserSettingsFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createBrowserSettingsFlow(requestParameters.returnTo, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14695,7 +15179,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createBrowserVerificationFlow(requestParameters: FrontendApiCreateBrowserVerificationFlowRequest = {}, options?: AxiosRequestConfig) { + public createBrowserVerificationFlow(requestParameters: FrontendApiCreateBrowserVerificationFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createBrowserVerificationFlow(requestParameters.returnTo, options).then((request) => request(this.axios, this.basePath)); } @@ -14707,8 +15191,8 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createNativeLoginFlow(requestParameters: FrontendApiCreateNativeLoginFlowRequest = {}, options?: AxiosRequestConfig) { - return FrontendApiFp(this.configuration).createNativeLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.xSessionToken, requestParameters.returnSessionTokenExchangeCode, requestParameters.returnTo, options).then((request) => request(this.axios, this.basePath)); + public createNativeLoginFlow(requestParameters: FrontendApiCreateNativeLoginFlowRequest = {}, options?: RawAxiosRequestConfig) { + return FrontendApiFp(this.configuration).createNativeLoginFlow(requestParameters.refresh, requestParameters.aal, requestParameters.xSessionToken, requestParameters.returnSessionTokenExchangeCode, requestParameters.returnTo, requestParameters.via, options).then((request) => request(this.axios, this.basePath)); } /** @@ -14718,7 +15202,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createNativeRecoveryFlow(options?: AxiosRequestConfig) { + public createNativeRecoveryFlow(options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createNativeRecoveryFlow(options).then((request) => request(this.axios, this.basePath)); } @@ -14730,7 +15214,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createNativeRegistrationFlow(requestParameters: FrontendApiCreateNativeRegistrationFlowRequest = {}, options?: AxiosRequestConfig) { + public createNativeRegistrationFlow(requestParameters: FrontendApiCreateNativeRegistrationFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createNativeRegistrationFlow(requestParameters.returnSessionTokenExchangeCode, requestParameters.returnTo, options).then((request) => request(this.axios, this.basePath)); } @@ -14742,7 +15226,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createNativeSettingsFlow(requestParameters: FrontendApiCreateNativeSettingsFlowRequest = {}, options?: AxiosRequestConfig) { + public createNativeSettingsFlow(requestParameters: FrontendApiCreateNativeSettingsFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createNativeSettingsFlow(requestParameters.xSessionToken, options).then((request) => request(this.axios, this.basePath)); } @@ -14753,7 +15237,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public createNativeVerificationFlow(options?: AxiosRequestConfig) { + public createNativeVerificationFlow(options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).createNativeVerificationFlow(options).then((request) => request(this.axios, this.basePath)); } @@ -14765,7 +15249,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public disableMyOtherSessions(requestParameters: FrontendApiDisableMyOtherSessionsRequest = {}, options?: AxiosRequestConfig) { + public disableMyOtherSessions(requestParameters: FrontendApiDisableMyOtherSessionsRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).disableMyOtherSessions(requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14777,7 +15261,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public disableMySession(requestParameters: FrontendApiDisableMySessionRequest, options?: AxiosRequestConfig) { + public disableMySession(requestParameters: FrontendApiDisableMySessionRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).disableMySession(requestParameters.id, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14789,7 +15273,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public exchangeSessionToken(requestParameters: FrontendApiExchangeSessionTokenRequest, options?: AxiosRequestConfig) { + public exchangeSessionToken(requestParameters: FrontendApiExchangeSessionTokenRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).exchangeSessionToken(requestParameters.initCode, requestParameters.returnToCode, options).then((request) => request(this.axios, this.basePath)); } @@ -14801,7 +15285,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getFlowError(requestParameters: FrontendApiGetFlowErrorRequest, options?: AxiosRequestConfig) { + public getFlowError(requestParameters: FrontendApiGetFlowErrorRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getFlowError(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -14813,7 +15297,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getLoginFlow(requestParameters: FrontendApiGetLoginFlowRequest, options?: AxiosRequestConfig) { + public getLoginFlow(requestParameters: FrontendApiGetLoginFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getLoginFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14825,7 +15309,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getRecoveryFlow(requestParameters: FrontendApiGetRecoveryFlowRequest, options?: AxiosRequestConfig) { + public getRecoveryFlow(requestParameters: FrontendApiGetRecoveryFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getRecoveryFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14837,7 +15321,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getRegistrationFlow(requestParameters: FrontendApiGetRegistrationFlowRequest, options?: AxiosRequestConfig) { + public getRegistrationFlow(requestParameters: FrontendApiGetRegistrationFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getRegistrationFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14849,7 +15333,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getSettingsFlow(requestParameters: FrontendApiGetSettingsFlowRequest, options?: AxiosRequestConfig) { + public getSettingsFlow(requestParameters: FrontendApiGetSettingsFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getSettingsFlow(requestParameters.id, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14861,7 +15345,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getVerificationFlow(requestParameters: FrontendApiGetVerificationFlowRequest, options?: AxiosRequestConfig) { + public getVerificationFlow(requestParameters: FrontendApiGetVerificationFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getVerificationFlow(requestParameters.id, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14872,7 +15356,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public getWebAuthnJavaScript(options?: AxiosRequestConfig) { + public getWebAuthnJavaScript(options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).getWebAuthnJavaScript(options).then((request) => request(this.axios, this.basePath)); } @@ -14884,7 +15368,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public listMySessions(requestParameters: FrontendApiListMySessionsRequest = {}, options?: AxiosRequestConfig) { + public listMySessions(requestParameters: FrontendApiListMySessionsRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).listMySessions(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14896,7 +15380,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public performNativeLogout(requestParameters: FrontendApiPerformNativeLogoutRequest, options?: AxiosRequestConfig) { + public performNativeLogout(requestParameters: FrontendApiPerformNativeLogoutRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).performNativeLogout(requestParameters.performNativeLogoutBody, options).then((request) => request(this.axios, this.basePath)); } @@ -14908,7 +15392,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public toSession(requestParameters: FrontendApiToSessionRequest = {}, options?: AxiosRequestConfig) { + public toSession(requestParameters: FrontendApiToSessionRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).toSession(requestParameters.xSessionToken, requestParameters.cookie, requestParameters.tokenizeAs, options).then((request) => request(this.axios, this.basePath)); } @@ -14920,7 +15404,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public updateLoginFlow(requestParameters: FrontendApiUpdateLoginFlowRequest, options?: AxiosRequestConfig) { + public updateLoginFlow(requestParameters: FrontendApiUpdateLoginFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).updateLoginFlow(requestParameters.flow, requestParameters.updateLoginFlowBody, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14932,7 +15416,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public updateLogoutFlow(requestParameters: FrontendApiUpdateLogoutFlowRequest = {}, options?: AxiosRequestConfig) { + public updateLogoutFlow(requestParameters: FrontendApiUpdateLogoutFlowRequest = {}, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).updateLogoutFlow(requestParameters.token, requestParameters.returnTo, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14944,7 +15428,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public updateRecoveryFlow(requestParameters: FrontendApiUpdateRecoveryFlowRequest, options?: AxiosRequestConfig) { + public updateRecoveryFlow(requestParameters: FrontendApiUpdateRecoveryFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).updateRecoveryFlow(requestParameters.flow, requestParameters.updateRecoveryFlowBody, requestParameters.token, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14956,7 +15440,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public updateRegistrationFlow(requestParameters: FrontendApiUpdateRegistrationFlowRequest, options?: AxiosRequestConfig) { + public updateRegistrationFlow(requestParameters: FrontendApiUpdateRegistrationFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).updateRegistrationFlow(requestParameters.flow, requestParameters.updateRegistrationFlowBody, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14968,7 +15452,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public updateSettingsFlow(requestParameters: FrontendApiUpdateSettingsFlowRequest, options?: AxiosRequestConfig) { + public updateSettingsFlow(requestParameters: FrontendApiUpdateSettingsFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).updateSettingsFlow(requestParameters.flow, requestParameters.updateSettingsFlowBody, requestParameters.xSessionToken, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } @@ -14980,7 +15464,7 @@ export class FrontendApi extends BaseAPI { * @throws {RequiredError} * @memberof FrontendApi */ - public updateVerificationFlow(requestParameters: FrontendApiUpdateVerificationFlowRequest, options?: AxiosRequestConfig) { + public updateVerificationFlow(requestParameters: FrontendApiUpdateVerificationFlowRequest, options?: RawAxiosRequestConfig) { return FrontendApiFp(this.configuration).updateVerificationFlow(requestParameters.flow, requestParameters.updateVerificationFlowBody, requestParameters.token, requestParameters.cookie, options).then((request) => request(this.axios, this.basePath)); } } @@ -15000,7 +15484,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - batchPatchIdentities: async (patchIdentitiesBody?: PatchIdentitiesBody, options: AxiosRequestConfig = {}): Promise => { + batchPatchIdentities: async (patchIdentitiesBody?: PatchIdentitiesBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/identities`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15038,7 +15522,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createIdentity: async (createIdentityBody?: CreateIdentityBody, options: AxiosRequestConfig = {}): Promise => { + createIdentity: async (createIdentityBody?: CreateIdentityBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/identities`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15076,7 +15560,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRecoveryCodeForIdentity: async (createRecoveryCodeForIdentityBody?: CreateRecoveryCodeForIdentityBody, options: AxiosRequestConfig = {}): Promise => { + createRecoveryCodeForIdentity: async (createRecoveryCodeForIdentityBody?: CreateRecoveryCodeForIdentityBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/recovery/code`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15110,11 +15594,12 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat /** * This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. * @summary Create a Recovery Link + * @param {string} [returnTo] * @param {CreateRecoveryLinkForIdentityBody} [createRecoveryLinkForIdentityBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRecoveryLinkForIdentity: async (createRecoveryLinkForIdentityBody?: CreateRecoveryLinkForIdentityBody, options: AxiosRequestConfig = {}): Promise => { + createRecoveryLinkForIdentity: async (returnTo?: string, createRecoveryLinkForIdentityBody?: CreateRecoveryLinkForIdentityBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/recovery/link`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15131,6 +15616,10 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat // http bearer authentication required await setBearerAuthToObject(localVarHeaderParameter, configuration) + if (returnTo !== undefined) { + localVarQueryParameter['return_to'] = returnTo; + } + localVarHeaderParameter['Content-Type'] = 'application/json'; @@ -15152,7 +15641,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteIdentity: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteIdentity: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteIdentity', 'id', id) const localVarPath = `/admin/identities/{id}` @@ -15187,11 +15676,11 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. * @summary Delete a credential for a specific identity * @param {string} id ID is the identity\'s ID. - * @param {DeleteIdentityCredentialsTypeEnum} type Type is the credential\'s Type. One of totp, webauthn, lookup + * @param {DeleteIdentityCredentialsTypeEnum} type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteIdentityCredentials: async (id: string, type: DeleteIdentityCredentialsTypeEnum, options: AxiosRequestConfig = {}): Promise => { + deleteIdentityCredentials: async (id: string, type: DeleteIdentityCredentialsTypeEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteIdentityCredentials', 'id', id) // verify required parameter 'type' is not null or undefined @@ -15232,7 +15721,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteIdentitySessions: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteIdentitySessions: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteIdentitySessions', 'id', id) const localVarPath = `/admin/identities/{id}/sessions` @@ -15270,7 +15759,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - disableSession: async (id: string, options: AxiosRequestConfig = {}): Promise => { + disableSession: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('disableSession', 'id', id) const localVarPath = `/admin/sessions/{id}` @@ -15308,7 +15797,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - extendSession: async (id: string, options: AxiosRequestConfig = {}): Promise => { + extendSession: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('extendSession', 'id', id) const localVarPath = `/admin/sessions/{id}/extend` @@ -15347,7 +15836,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getIdentity: async (id: string, includeCredential?: Array, options: AxiosRequestConfig = {}): Promise => { + getIdentity: async (id: string, includeCredential?: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getIdentity', 'id', id) const localVarPath = `/admin/identities/{id}` @@ -15389,7 +15878,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getIdentitySchema: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getIdentitySchema: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getIdentitySchema', 'id', id) const localVarPath = `/schemas/{id}` @@ -15424,7 +15913,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSession: async (id: string, expand?: GetSessionExpandEnum, options: AxiosRequestConfig = {}): Promise => { + getSession: async (id: string, expand?: GetSessionExpandEnum, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getSession', 'id', id) const localVarPath = `/admin/sessions/{id}` @@ -15467,13 +15956,14 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {number} [pageSize] Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). * @param {string} [pageToken] Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). * @param {ListIdentitiesConsistencyEnum} [consistency] Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace \'/previews/default_read_consistency_level=\"strong\"\'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - * @param {Array} [idsFilter] IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + * @param {Array} [ids] List of ids used to filter identities. If this list is empty, then no filter will be applied. * @param {string} [credentialsIdentifier] CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. * @param {string} [previewCredentialsIdentifierSimilar] This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + * @param {Array} [includeCredential] Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIdentities: async (perPage?: number, page?: number, pageSize?: number, pageToken?: string, consistency?: ListIdentitiesConsistencyEnum, idsFilter?: Array, credentialsIdentifier?: string, previewCredentialsIdentifierSimilar?: string, options: AxiosRequestConfig = {}): Promise => { + listIdentities: async (perPage?: number, page?: number, pageSize?: number, pageToken?: string, consistency?: ListIdentitiesConsistencyEnum, ids?: Array, credentialsIdentifier?: string, previewCredentialsIdentifierSimilar?: string, includeCredential?: Array, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/identities`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15510,8 +16000,8 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat localVarQueryParameter['consistency'] = consistency; } - if (idsFilter) { - localVarQueryParameter['ids_filter'] = idsFilter; + if (ids) { + localVarQueryParameter['ids'] = ids; } if (credentialsIdentifier !== undefined) { @@ -15522,6 +16012,10 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat localVarQueryParameter['preview_credentials_identifier_similar'] = previewCredentialsIdentifierSimilar; } + if (includeCredential) { + localVarQueryParameter['include_credential'] = includeCredential; + } + setSearchParams(localVarUrlObj, localVarQueryParameter); @@ -15543,7 +16037,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIdentitySchemas: async (perPage?: number, page?: number, pageSize?: number, pageToken?: string, options: AxiosRequestConfig = {}): Promise => { + listIdentitySchemas: async (perPage?: number, page?: number, pageSize?: number, pageToken?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/schemas`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15595,7 +16089,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIdentitySessions: async (id: string, perPage?: number, page?: number, pageSize?: number, pageToken?: string, active?: boolean, options: AxiosRequestConfig = {}): Promise => { + listIdentitySessions: async (id: string, perPage?: number, page?: number, pageSize?: number, pageToken?: string, active?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('listIdentitySessions', 'id', id) const localVarPath = `/admin/identities/{id}/sessions` @@ -15656,7 +16150,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessions: async (pageSize?: number, pageToken?: string, active?: boolean, expand?: ListSessionsExpandEnum, options: AxiosRequestConfig = {}): Promise => { + listSessions: async (pageSize?: number, pageToken?: string, active?: boolean, expand?: ListSessionsExpandEnum, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/sessions`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -15708,7 +16202,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchIdentity: async (id: string, jsonPatch?: Array, options: AxiosRequestConfig = {}): Promise => { + patchIdentity: async (id: string, jsonPatch?: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchIdentity', 'id', id) const localVarPath = `/admin/identities/{id}` @@ -15750,7 +16244,7 @@ export const IdentityApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateIdentity: async (id: string, updateIdentityBody?: UpdateIdentityBody, options: AxiosRequestConfig = {}): Promise => { + updateIdentity: async (id: string, updateIdentityBody?: UpdateIdentityBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('updateIdentity', 'id', id) const localVarPath = `/admin/identities/{id}` @@ -15801,7 +16295,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async batchPatchIdentities(patchIdentitiesBody?: PatchIdentitiesBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async batchPatchIdentities(patchIdentitiesBody?: PatchIdentitiesBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.batchPatchIdentities(patchIdentitiesBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.batchPatchIdentities']?.[index]?.url; @@ -15814,7 +16308,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createIdentity(createIdentityBody?: CreateIdentityBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createIdentity(createIdentityBody?: CreateIdentityBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createIdentity(createIdentityBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.createIdentity']?.[index]?.url; @@ -15827,7 +16321,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createRecoveryCodeForIdentity(createRecoveryCodeForIdentityBody?: CreateRecoveryCodeForIdentityBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createRecoveryCodeForIdentity(createRecoveryCodeForIdentityBody?: CreateRecoveryCodeForIdentityBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRecoveryCodeForIdentity(createRecoveryCodeForIdentityBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.createRecoveryCodeForIdentity']?.[index]?.url; @@ -15836,12 +16330,13 @@ export const IdentityApiFp = function(configuration?: Configuration) { /** * This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. * @summary Create a Recovery Link + * @param {string} [returnTo] * @param {CreateRecoveryLinkForIdentityBody} [createRecoveryLinkForIdentityBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody?: CreateRecoveryLinkForIdentityBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { - const localVarAxiosArgs = await localVarAxiosParamCreator.createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody, options); + async createRecoveryLinkForIdentity(returnTo?: string, createRecoveryLinkForIdentityBody?: CreateRecoveryLinkForIdentityBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.createRecoveryLinkForIdentity']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -15853,7 +16348,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteIdentity(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteIdentity(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteIdentity(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.deleteIdentity']?.[index]?.url; @@ -15863,11 +16358,11 @@ export const IdentityApiFp = function(configuration?: Configuration) { * Delete an [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) credential by its type You can only delete second factor (aal2) credentials. * @summary Delete a credential for a specific identity * @param {string} id ID is the identity\'s ID. - * @param {DeleteIdentityCredentialsTypeEnum} type Type is the credential\'s Type. One of totp, webauthn, lookup + * @param {DeleteIdentityCredentialsTypeEnum} type Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteIdentityCredentials(id: string, type: DeleteIdentityCredentialsTypeEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteIdentityCredentials(id: string, type: DeleteIdentityCredentialsTypeEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteIdentityCredentials(id, type, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.deleteIdentityCredentials']?.[index]?.url; @@ -15880,7 +16375,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteIdentitySessions(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteIdentitySessions(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteIdentitySessions(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.deleteIdentitySessions']?.[index]?.url; @@ -15893,7 +16388,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async disableSession(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async disableSession(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.disableSession(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.disableSession']?.[index]?.url; @@ -15906,7 +16401,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async extendSession(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async extendSession(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.extendSession(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.extendSession']?.[index]?.url; @@ -15920,7 +16415,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getIdentity(id: string, includeCredential?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getIdentity(id: string, includeCredential?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getIdentity(id, includeCredential, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.getIdentity']?.[index]?.url; @@ -15933,7 +16428,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getIdentitySchema(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getIdentitySchema(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getIdentitySchema(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.getIdentitySchema']?.[index]?.url; @@ -15947,7 +16442,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getSession(id: string, expand?: GetSessionExpandEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getSession(id: string, expand?: GetSessionExpandEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getSession(id, expand, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.getSession']?.[index]?.url; @@ -15961,14 +16456,15 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {number} [pageSize] Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). * @param {string} [pageToken] Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). * @param {ListIdentitiesConsistencyEnum} [consistency] Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace \'/previews/default_read_consistency_level=\"strong\"\'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. - * @param {Array} [idsFilter] IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + * @param {Array} [ids] List of ids used to filter identities. If this list is empty, then no filter will be applied. * @param {string} [credentialsIdentifier] CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. * @param {string} [previewCredentialsIdentifierSimilar] This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + * @param {Array} [includeCredential] Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listIdentities(perPage?: number, page?: number, pageSize?: number, pageToken?: string, consistency?: ListIdentitiesConsistencyEnum, idsFilter?: Array, credentialsIdentifier?: string, previewCredentialsIdentifierSimilar?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { - const localVarAxiosArgs = await localVarAxiosParamCreator.listIdentities(perPage, page, pageSize, pageToken, consistency, idsFilter, credentialsIdentifier, previewCredentialsIdentifierSimilar, options); + async listIdentities(perPage?: number, page?: number, pageSize?: number, pageToken?: string, consistency?: ListIdentitiesConsistencyEnum, ids?: Array, credentialsIdentifier?: string, previewCredentialsIdentifierSimilar?: string, includeCredential?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + const localVarAxiosArgs = await localVarAxiosParamCreator.listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, includeCredential, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.listIdentities']?.[index]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); @@ -15983,7 +16479,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listIdentitySchemas(perPage?: number, page?: number, pageSize?: number, pageToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listIdentitySchemas(perPage?: number, page?: number, pageSize?: number, pageToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listIdentitySchemas(perPage, page, pageSize, pageToken, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.listIdentitySchemas']?.[index]?.url; @@ -16001,7 +16497,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listIdentitySessions(id: string, perPage?: number, page?: number, pageSize?: number, pageToken?: string, active?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listIdentitySessions(id: string, perPage?: number, page?: number, pageSize?: number, pageToken?: string, active?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listIdentitySessions(id, perPage, page, pageSize, pageToken, active, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.listIdentitySessions']?.[index]?.url; @@ -16017,7 +16513,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listSessions(pageSize?: number, pageToken?: string, active?: boolean, expand?: ListSessionsExpandEnum, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listSessions(pageSize?: number, pageToken?: string, active?: boolean, expand?: ListSessionsExpandEnum, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listSessions(pageSize, pageToken, active, expand, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.listSessions']?.[index]?.url; @@ -16031,7 +16527,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchIdentity(id: string, jsonPatch?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchIdentity(id: string, jsonPatch?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchIdentity(id, jsonPatch, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.patchIdentity']?.[index]?.url; @@ -16045,7 +16541,7 @@ export const IdentityApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateIdentity(id: string, updateIdentityBody?: UpdateIdentityBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateIdentity(id: string, updateIdentityBody?: UpdateIdentityBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateIdentity(id, updateIdentityBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['IdentityApi.updateIdentity']?.[index]?.url; @@ -16068,7 +16564,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - batchPatchIdentities(requestParameters: IdentityApiBatchPatchIdentitiesRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + batchPatchIdentities(requestParameters: IdentityApiBatchPatchIdentitiesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.batchPatchIdentities(requestParameters.patchIdentitiesBody, options).then((request) => request(axios, basePath)); }, /** @@ -16078,7 +16574,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createIdentity(requestParameters: IdentityApiCreateIdentityRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createIdentity(requestParameters: IdentityApiCreateIdentityRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createIdentity(requestParameters.createIdentityBody, options).then((request) => request(axios, basePath)); }, /** @@ -16088,7 +16584,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRecoveryCodeForIdentity(requestParameters: IdentityApiCreateRecoveryCodeForIdentityRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createRecoveryCodeForIdentity(requestParameters: IdentityApiCreateRecoveryCodeForIdentityRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRecoveryCodeForIdentity(requestParameters.createRecoveryCodeForIdentityBody, options).then((request) => request(axios, basePath)); }, /** @@ -16098,8 +16594,8 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRecoveryLinkForIdentity(requestParameters: IdentityApiCreateRecoveryLinkForIdentityRequest = {}, options?: AxiosRequestConfig): AxiosPromise { - return localVarFp.createRecoveryLinkForIdentity(requestParameters.createRecoveryLinkForIdentityBody, options).then((request) => request(axios, basePath)); + createRecoveryLinkForIdentity(requestParameters: IdentityApiCreateRecoveryLinkForIdentityRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createRecoveryLinkForIdentity(requestParameters.returnTo, requestParameters.createRecoveryLinkForIdentityBody, options).then((request) => request(axios, basePath)); }, /** * Calling this endpoint irrecoverably and permanently deletes the [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) given its ID. This action can not be undone. This endpoint returns 204 when the identity was deleted or when the identity was not found, in which case it is assumed that is has been deleted already. @@ -16108,7 +16604,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteIdentity(requestParameters: IdentityApiDeleteIdentityRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteIdentity(requestParameters: IdentityApiDeleteIdentityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteIdentity(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -16118,7 +16614,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteIdentityCredentials(requestParameters: IdentityApiDeleteIdentityCredentialsRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteIdentityCredentials(requestParameters: IdentityApiDeleteIdentityCredentialsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteIdentityCredentials(requestParameters.id, requestParameters.type, options).then((request) => request(axios, basePath)); }, /** @@ -16128,7 +16624,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteIdentitySessions(requestParameters: IdentityApiDeleteIdentitySessionsRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteIdentitySessions(requestParameters: IdentityApiDeleteIdentitySessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteIdentitySessions(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -16138,7 +16634,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - disableSession(requestParameters: IdentityApiDisableSessionRequest, options?: AxiosRequestConfig): AxiosPromise { + disableSession(requestParameters: IdentityApiDisableSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.disableSession(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -16148,7 +16644,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - extendSession(requestParameters: IdentityApiExtendSessionRequest, options?: AxiosRequestConfig): AxiosPromise { + extendSession(requestParameters: IdentityApiExtendSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.extendSession(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -16158,7 +16654,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getIdentity(requestParameters: IdentityApiGetIdentityRequest, options?: AxiosRequestConfig): AxiosPromise { + getIdentity(requestParameters: IdentityApiGetIdentityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getIdentity(requestParameters.id, requestParameters.includeCredential, options).then((request) => request(axios, basePath)); }, /** @@ -16168,7 +16664,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getIdentitySchema(requestParameters: IdentityApiGetIdentitySchemaRequest, options?: AxiosRequestConfig): AxiosPromise { + getIdentitySchema(requestParameters: IdentityApiGetIdentitySchemaRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getIdentitySchema(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -16178,7 +16674,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getSession(requestParameters: IdentityApiGetSessionRequest, options?: AxiosRequestConfig): AxiosPromise { + getSession(requestParameters: IdentityApiGetSessionRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getSession(requestParameters.id, requestParameters.expand, options).then((request) => request(axios, basePath)); }, /** @@ -16188,8 +16684,8 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIdentities(requestParameters: IdentityApiListIdentitiesRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { - return localVarFp.listIdentities(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.consistency, requestParameters.idsFilter, requestParameters.credentialsIdentifier, requestParameters.previewCredentialsIdentifierSimilar, options).then((request) => request(axios, basePath)); + listIdentities(requestParameters: IdentityApiListIdentitiesRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.listIdentities(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.consistency, requestParameters.ids, requestParameters.credentialsIdentifier, requestParameters.previewCredentialsIdentifierSimilar, requestParameters.includeCredential, options).then((request) => request(axios, basePath)); }, /** * Returns a list of all identity schemas currently in use. @@ -16198,7 +16694,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIdentitySchemas(requestParameters: IdentityApiListIdentitySchemasRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + listIdentitySchemas(requestParameters: IdentityApiListIdentitySchemasRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listIdentitySchemas(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, options).then((request) => request(axios, basePath)); }, /** @@ -16208,7 +16704,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listIdentitySessions(requestParameters: IdentityApiListIdentitySessionsRequest, options?: AxiosRequestConfig): AxiosPromise> { + listIdentitySessions(requestParameters: IdentityApiListIdentitySessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listIdentitySessions(requestParameters.id, requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.active, options).then((request) => request(axios, basePath)); }, /** @@ -16218,7 +16714,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listSessions(requestParameters: IdentityApiListSessionsRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + listSessions(requestParameters: IdentityApiListSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listSessions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.active, requestParameters.expand, options).then((request) => request(axios, basePath)); }, /** @@ -16228,7 +16724,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchIdentity(requestParameters: IdentityApiPatchIdentityRequest, options?: AxiosRequestConfig): AxiosPromise { + patchIdentity(requestParameters: IdentityApiPatchIdentityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchIdentity(requestParameters.id, requestParameters.jsonPatch, options).then((request) => request(axios, basePath)); }, /** @@ -16238,7 +16734,7 @@ export const IdentityApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateIdentity(requestParameters: IdentityApiUpdateIdentityRequest, options?: AxiosRequestConfig): AxiosPromise { + updateIdentity(requestParameters: IdentityApiUpdateIdentityRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateIdentity(requestParameters.id, requestParameters.updateIdentityBody, options).then((request) => request(axios, basePath)); }, }; @@ -16292,6 +16788,13 @@ export interface IdentityApiCreateRecoveryCodeForIdentityRequest { * @interface IdentityApiCreateRecoveryLinkForIdentityRequest */ export interface IdentityApiCreateRecoveryLinkForIdentityRequest { + /** + * + * @type {string} + * @memberof IdentityApiCreateRecoveryLinkForIdentity + */ + readonly returnTo?: string + /** * * @type {CreateRecoveryLinkForIdentityBody} @@ -16328,8 +16831,8 @@ export interface IdentityApiDeleteIdentityCredentialsRequest { readonly id: string /** - * Type is the credential\'s Type. One of totp, webauthn, lookup - * @type {'totp' | 'webauthn' | 'lookup'} + * Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + * @type {'password' | 'oidc' | 'totp' | 'lookup_secret' | 'webauthn' | 'code' | 'link_recovery' | 'code_recovery'} * @memberof IdentityApiDeleteIdentityCredentials */ readonly type: DeleteIdentityCredentialsTypeEnum @@ -16392,7 +16895,7 @@ export interface IdentityApiGetIdentityRequest { /** * Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. - * @type {Array<'password' | 'totp' | 'oidc' | 'webauthn' | 'lookup_secret' | 'code'>} + * @type {Array<'password' | 'oidc' | 'totp' | 'lookup_secret' | 'webauthn' | 'code' | 'link_recovery' | 'code_recovery'>} * @memberof IdentityApiGetIdentity */ readonly includeCredential?: Array @@ -16475,11 +16978,11 @@ export interface IdentityApiListIdentitiesRequest { readonly consistency?: ListIdentitiesConsistencyEnum /** - * IdsFilter is list of ids used to filter identities. If this list is empty, then no filter will be applied. + * List of ids used to filter identities. If this list is empty, then no filter will be applied. * @type {Array} * @memberof IdentityApiListIdentities */ - readonly idsFilter?: Array + readonly ids?: Array /** * CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. @@ -16494,6 +16997,13 @@ export interface IdentityApiListIdentitiesRequest { * @memberof IdentityApiListIdentities */ readonly previewCredentialsIdentifierSimilar?: string + + /** + * Include Credentials in Response Include any credential, for example `password` or `oidc`, in the response. When set to `oidc`, This will return the initial OAuth 2.0 Access Token, OAuth 2.0 Refresh Token and the OpenID Connect ID Token if available. + * @type {Array} + * @memberof IdentityApiListIdentities + */ + readonly includeCredential?: Array } /** @@ -16672,7 +17182,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public batchPatchIdentities(requestParameters: IdentityApiBatchPatchIdentitiesRequest = {}, options?: AxiosRequestConfig) { + public batchPatchIdentities(requestParameters: IdentityApiBatchPatchIdentitiesRequest = {}, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).batchPatchIdentities(requestParameters.patchIdentitiesBody, options).then((request) => request(this.axios, this.basePath)); } @@ -16684,7 +17194,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public createIdentity(requestParameters: IdentityApiCreateIdentityRequest = {}, options?: AxiosRequestConfig) { + public createIdentity(requestParameters: IdentityApiCreateIdentityRequest = {}, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).createIdentity(requestParameters.createIdentityBody, options).then((request) => request(this.axios, this.basePath)); } @@ -16696,7 +17206,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public createRecoveryCodeForIdentity(requestParameters: IdentityApiCreateRecoveryCodeForIdentityRequest = {}, options?: AxiosRequestConfig) { + public createRecoveryCodeForIdentity(requestParameters: IdentityApiCreateRecoveryCodeForIdentityRequest = {}, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).createRecoveryCodeForIdentity(requestParameters.createRecoveryCodeForIdentityBody, options).then((request) => request(this.axios, this.basePath)); } @@ -16708,8 +17218,8 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public createRecoveryLinkForIdentity(requestParameters: IdentityApiCreateRecoveryLinkForIdentityRequest = {}, options?: AxiosRequestConfig) { - return IdentityApiFp(this.configuration).createRecoveryLinkForIdentity(requestParameters.createRecoveryLinkForIdentityBody, options).then((request) => request(this.axios, this.basePath)); + public createRecoveryLinkForIdentity(requestParameters: IdentityApiCreateRecoveryLinkForIdentityRequest = {}, options?: RawAxiosRequestConfig) { + return IdentityApiFp(this.configuration).createRecoveryLinkForIdentity(requestParameters.returnTo, requestParameters.createRecoveryLinkForIdentityBody, options).then((request) => request(this.axios, this.basePath)); } /** @@ -16720,7 +17230,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public deleteIdentity(requestParameters: IdentityApiDeleteIdentityRequest, options?: AxiosRequestConfig) { + public deleteIdentity(requestParameters: IdentityApiDeleteIdentityRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).deleteIdentity(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -16732,7 +17242,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public deleteIdentityCredentials(requestParameters: IdentityApiDeleteIdentityCredentialsRequest, options?: AxiosRequestConfig) { + public deleteIdentityCredentials(requestParameters: IdentityApiDeleteIdentityCredentialsRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).deleteIdentityCredentials(requestParameters.id, requestParameters.type, options).then((request) => request(this.axios, this.basePath)); } @@ -16744,7 +17254,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public deleteIdentitySessions(requestParameters: IdentityApiDeleteIdentitySessionsRequest, options?: AxiosRequestConfig) { + public deleteIdentitySessions(requestParameters: IdentityApiDeleteIdentitySessionsRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).deleteIdentitySessions(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -16756,7 +17266,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public disableSession(requestParameters: IdentityApiDisableSessionRequest, options?: AxiosRequestConfig) { + public disableSession(requestParameters: IdentityApiDisableSessionRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).disableSession(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -16768,7 +17278,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public extendSession(requestParameters: IdentityApiExtendSessionRequest, options?: AxiosRequestConfig) { + public extendSession(requestParameters: IdentityApiExtendSessionRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).extendSession(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -16780,7 +17290,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public getIdentity(requestParameters: IdentityApiGetIdentityRequest, options?: AxiosRequestConfig) { + public getIdentity(requestParameters: IdentityApiGetIdentityRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).getIdentity(requestParameters.id, requestParameters.includeCredential, options).then((request) => request(this.axios, this.basePath)); } @@ -16792,7 +17302,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public getIdentitySchema(requestParameters: IdentityApiGetIdentitySchemaRequest, options?: AxiosRequestConfig) { + public getIdentitySchema(requestParameters: IdentityApiGetIdentitySchemaRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).getIdentitySchema(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -16804,7 +17314,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public getSession(requestParameters: IdentityApiGetSessionRequest, options?: AxiosRequestConfig) { + public getSession(requestParameters: IdentityApiGetSessionRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).getSession(requestParameters.id, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); } @@ -16816,8 +17326,8 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public listIdentities(requestParameters: IdentityApiListIdentitiesRequest = {}, options?: AxiosRequestConfig) { - return IdentityApiFp(this.configuration).listIdentities(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.consistency, requestParameters.idsFilter, requestParameters.credentialsIdentifier, requestParameters.previewCredentialsIdentifierSimilar, options).then((request) => request(this.axios, this.basePath)); + public listIdentities(requestParameters: IdentityApiListIdentitiesRequest = {}, options?: RawAxiosRequestConfig) { + return IdentityApiFp(this.configuration).listIdentities(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.consistency, requestParameters.ids, requestParameters.credentialsIdentifier, requestParameters.previewCredentialsIdentifierSimilar, requestParameters.includeCredential, options).then((request) => request(this.axios, this.basePath)); } /** @@ -16828,7 +17338,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public listIdentitySchemas(requestParameters: IdentityApiListIdentitySchemasRequest = {}, options?: AxiosRequestConfig) { + public listIdentitySchemas(requestParameters: IdentityApiListIdentitySchemasRequest = {}, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).listIdentitySchemas(requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, options).then((request) => request(this.axios, this.basePath)); } @@ -16840,7 +17350,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public listIdentitySessions(requestParameters: IdentityApiListIdentitySessionsRequest, options?: AxiosRequestConfig) { + public listIdentitySessions(requestParameters: IdentityApiListIdentitySessionsRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).listIdentitySessions(requestParameters.id, requestParameters.perPage, requestParameters.page, requestParameters.pageSize, requestParameters.pageToken, requestParameters.active, options).then((request) => request(this.axios, this.basePath)); } @@ -16852,7 +17362,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public listSessions(requestParameters: IdentityApiListSessionsRequest = {}, options?: AxiosRequestConfig) { + public listSessions(requestParameters: IdentityApiListSessionsRequest = {}, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).listSessions(requestParameters.pageSize, requestParameters.pageToken, requestParameters.active, requestParameters.expand, options).then((request) => request(this.axios, this.basePath)); } @@ -16864,7 +17374,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public patchIdentity(requestParameters: IdentityApiPatchIdentityRequest, options?: AxiosRequestConfig) { + public patchIdentity(requestParameters: IdentityApiPatchIdentityRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).patchIdentity(requestParameters.id, requestParameters.jsonPatch, options).then((request) => request(this.axios, this.basePath)); } @@ -16876,7 +17386,7 @@ export class IdentityApi extends BaseAPI { * @throws {RequiredError} * @memberof IdentityApi */ - public updateIdentity(requestParameters: IdentityApiUpdateIdentityRequest, options?: AxiosRequestConfig) { + public updateIdentity(requestParameters: IdentityApiUpdateIdentityRequest, options?: RawAxiosRequestConfig) { return IdentityApiFp(this.configuration).updateIdentity(requestParameters.id, requestParameters.updateIdentityBody, options).then((request) => request(this.axios, this.basePath)); } } @@ -16885,9 +17395,14 @@ export class IdentityApi extends BaseAPI { * @export */ export const DeleteIdentityCredentialsTypeEnum = { + Password: 'password', + Oidc: 'oidc', Totp: 'totp', + LookupSecret: 'lookup_secret', Webauthn: 'webauthn', - Lookup: 'lookup' + Code: 'code', + LinkRecovery: 'link_recovery', + CodeRecovery: 'code_recovery' } as const; export type DeleteIdentityCredentialsTypeEnum = typeof DeleteIdentityCredentialsTypeEnum[keyof typeof DeleteIdentityCredentialsTypeEnum]; /** @@ -16895,11 +17410,13 @@ export type DeleteIdentityCredentialsTypeEnum = typeof DeleteIdentityCredentials */ export const GetIdentityIncludeCredentialEnum = { Password: 'password', - Totp: 'totp', Oidc: 'oidc', - Webauthn: 'webauthn', + Totp: 'totp', LookupSecret: 'lookup_secret', - Code: 'code' + Webauthn: 'webauthn', + Code: 'code', + LinkRecovery: 'link_recovery', + CodeRecovery: 'code_recovery' } as const; export type GetIdentityIncludeCredentialEnum = typeof GetIdentityIncludeCredentialEnum[keyof typeof GetIdentityIncludeCredentialEnum]; /** @@ -16939,7 +17456,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createJsonWebKeySet: async (set: string, createJsonWebKeySet: CreateJsonWebKeySet, options: AxiosRequestConfig = {}): Promise => { + createJsonWebKeySet: async (set: string, createJsonWebKeySet: CreateJsonWebKeySet, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('createJsonWebKeySet', 'set', set) // verify required parameter 'createJsonWebKeySet' is not null or undefined @@ -16983,7 +17500,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKey: async (set: string, kid: string, options: AxiosRequestConfig = {}): Promise => { + deleteJsonWebKey: async (set: string, kid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('deleteJsonWebKey', 'set', set) // verify required parameter 'kid' is not null or undefined @@ -17024,7 +17541,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKeySet: async (set: string, options: AxiosRequestConfig = {}): Promise => { + deleteJsonWebKeySet: async (set: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('deleteJsonWebKeySet', 'set', set) const localVarPath = `/admin/keys/{set}` @@ -17063,7 +17580,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKey: async (set: string, kid: string, options: AxiosRequestConfig = {}): Promise => { + getJsonWebKey: async (set: string, kid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('getJsonWebKey', 'set', set) // verify required parameter 'kid' is not null or undefined @@ -17104,7 +17621,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKeySet: async (set: string, options: AxiosRequestConfig = {}): Promise => { + getJsonWebKeySet: async (set: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('getJsonWebKeySet', 'set', set) const localVarPath = `/admin/keys/{set}` @@ -17144,7 +17661,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKey: async (set: string, kid: string, jsonWebKey?: JsonWebKey, options: AxiosRequestConfig = {}): Promise => { + setJsonWebKey: async (set: string, kid: string, jsonWebKey?: JsonWebKey, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('setJsonWebKey', 'set', set) // verify required parameter 'kid' is not null or undefined @@ -17189,7 +17706,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKeySet: async (set: string, jsonWebKeySet?: JsonWebKeySet, options: AxiosRequestConfig = {}): Promise => { + setJsonWebKeySet: async (set: string, jsonWebKeySet?: JsonWebKeySet, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('setJsonWebKeySet', 'set', set) const localVarPath = `/admin/keys/{set}` @@ -17241,7 +17758,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createJsonWebKeySet(set: string, createJsonWebKeySet: CreateJsonWebKeySet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createJsonWebKeySet(set: string, createJsonWebKeySet: CreateJsonWebKeySet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createJsonWebKeySet(set, createJsonWebKeySet, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.createJsonWebKeySet']?.[index]?.url; @@ -17255,7 +17772,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteJsonWebKey(set: string, kid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteJsonWebKey(set: string, kid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteJsonWebKey(set, kid, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.deleteJsonWebKey']?.[index]?.url; @@ -17268,7 +17785,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteJsonWebKeySet(set: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteJsonWebKeySet(set: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteJsonWebKeySet(set, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.deleteJsonWebKeySet']?.[index]?.url; @@ -17282,7 +17799,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getJsonWebKey(set: string, kid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getJsonWebKey(set: string, kid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJsonWebKey(set, kid, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.getJsonWebKey']?.[index]?.url; @@ -17295,7 +17812,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getJsonWebKeySet(set: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getJsonWebKeySet(set: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJsonWebKeySet(set, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.getJsonWebKeySet']?.[index]?.url; @@ -17310,7 +17827,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setJsonWebKey(set: string, kid: string, jsonWebKey?: JsonWebKey, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setJsonWebKey(set: string, kid: string, jsonWebKey?: JsonWebKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setJsonWebKey(set, kid, jsonWebKey, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.setJsonWebKey']?.[index]?.url; @@ -17324,7 +17841,7 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setJsonWebKeySet(set: string, jsonWebKeySet?: JsonWebKeySet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setJsonWebKeySet(set: string, jsonWebKeySet?: JsonWebKeySet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setJsonWebKeySet(set, jsonWebKeySet, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['JwkApi.setJsonWebKeySet']?.[index]?.url; @@ -17347,7 +17864,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: AxiosRequestConfig): AxiosPromise { + createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createJsonWebKeySet(requestParameters.set, requestParameters.createJsonWebKeySet, options).then((request) => request(axios, basePath)); }, /** @@ -17357,7 +17874,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(axios, basePath)); }, /** @@ -17367,7 +17884,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteJsonWebKeySet(requestParameters.set, options).then((request) => request(axios, basePath)); }, /** @@ -17377,7 +17894,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: AxiosRequestConfig): AxiosPromise { + getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(axios, basePath)); }, /** @@ -17387,7 +17904,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: AxiosRequestConfig): AxiosPromise { + getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getJsonWebKeySet(requestParameters.set, options).then((request) => request(axios, basePath)); }, /** @@ -17397,7 +17914,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: AxiosRequestConfig): AxiosPromise { + setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setJsonWebKey(requestParameters.set, requestParameters.kid, requestParameters.jsonWebKey, options).then((request) => request(axios, basePath)); }, /** @@ -17407,7 +17924,7 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: AxiosRequestConfig): AxiosPromise { + setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setJsonWebKeySet(requestParameters.set, requestParameters.jsonWebKeySet, options).then((request) => request(axios, basePath)); }, }; @@ -17568,7 +18085,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).createJsonWebKeySet(requestParameters.set, requestParameters.createJsonWebKeySet, options).then((request) => request(this.axios, this.basePath)); } @@ -17580,7 +18097,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: AxiosRequestConfig) { + public deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).deleteJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(this.axios, this.basePath)); } @@ -17592,7 +18109,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).deleteJsonWebKeySet(requestParameters.set, options).then((request) => request(this.axios, this.basePath)); } @@ -17604,7 +18121,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: AxiosRequestConfig) { + public getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).getJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(this.axios, this.basePath)); } @@ -17616,7 +18133,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).getJsonWebKeySet(requestParameters.set, options).then((request) => request(this.axios, this.basePath)); } @@ -17628,7 +18145,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: AxiosRequestConfig) { + public setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).setJsonWebKey(requestParameters.set, requestParameters.kid, requestParameters.jsonWebKey, options).then((request) => request(this.axios, this.basePath)); } @@ -17640,7 +18157,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).setJsonWebKeySet(requestParameters.set, requestParameters.jsonWebKeySet, options).then((request) => request(this.axios, this.basePath)); } } @@ -17659,7 +18176,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVersion: async (options: AxiosRequestConfig = {}): Promise => { + getVersion: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/version`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -17693,7 +18210,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isAlive: async (options: AxiosRequestConfig = {}): Promise => { + isAlive: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/health/alive`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -17727,7 +18244,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isReady: async (options: AxiosRequestConfig = {}): Promise => { + isReady: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/health/ready`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -17771,7 +18288,7 @@ export const MetadataApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getVersion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVersion(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['MetadataApi.getVersion']?.[index]?.url; @@ -17783,7 +18300,7 @@ export const MetadataApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async isAlive(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async isAlive(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.isAlive(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['MetadataApi.isAlive']?.[index]?.url; @@ -17795,7 +18312,7 @@ export const MetadataApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async isReady(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async isReady(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.isReady(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['MetadataApi.isReady']?.[index]?.url; @@ -17817,7 +18334,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVersion(options?: AxiosRequestConfig): AxiosPromise { + getVersion(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVersion(options).then((request) => request(axios, basePath)); }, /** @@ -17826,7 +18343,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isAlive(options?: AxiosRequestConfig): AxiosPromise { + isAlive(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.isAlive(options).then((request) => request(axios, basePath)); }, /** @@ -17835,7 +18352,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isReady(options?: AxiosRequestConfig): AxiosPromise { + isReady(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.isReady(options).then((request) => request(axios, basePath)); }, }; @@ -17855,7 +18372,7 @@ export class MetadataApi extends BaseAPI { * @throws {RequiredError} * @memberof MetadataApi */ - public getVersion(options?: AxiosRequestConfig) { + public getVersion(options?: RawAxiosRequestConfig) { return MetadataApiFp(this.configuration).getVersion(options).then((request) => request(this.axios, this.basePath)); } @@ -17866,7 +18383,7 @@ export class MetadataApi extends BaseAPI { * @throws {RequiredError} * @memberof MetadataApi */ - public isAlive(options?: AxiosRequestConfig) { + public isAlive(options?: RawAxiosRequestConfig) { return MetadataApiFp(this.configuration).isAlive(options).then((request) => request(this.axios, this.basePath)); } @@ -17877,7 +18394,7 @@ export class MetadataApi extends BaseAPI { * @throws {RequiredError} * @memberof MetadataApi */ - public isReady(options?: AxiosRequestConfig) { + public isReady(options?: RawAxiosRequestConfig) { return MetadataApiFp(this.configuration).isReady(options).then((request) => request(this.axios, this.basePath)); } } @@ -17898,7 +18415,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2ConsentRequest: async (consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options: AxiosRequestConfig = {}): Promise => { + acceptOAuth2ConsentRequest: async (consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'consentChallenge' is not null or undefined assertParamExists('acceptOAuth2ConsentRequest', 'consentChallenge', consentChallenge) const localVarPath = `/admin/oauth2/auth/requests/consent/accept`; @@ -17943,7 +18460,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LoginRequest: async (loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options: AxiosRequestConfig = {}): Promise => { + acceptOAuth2LoginRequest: async (loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'loginChallenge' is not null or undefined assertParamExists('acceptOAuth2LoginRequest', 'loginChallenge', loginChallenge) const localVarPath = `/admin/oauth2/auth/requests/login/accept`; @@ -17987,7 +18504,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LogoutRequest: async (logoutChallenge: string, options: AxiosRequestConfig = {}): Promise => { + acceptOAuth2LogoutRequest: async (logoutChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'logoutChallenge' is not null or undefined assertParamExists('acceptOAuth2LogoutRequest', 'logoutChallenge', logoutChallenge) const localVarPath = `/admin/oauth2/auth/requests/logout/accept`; @@ -18028,7 +18545,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOAuth2Client: async (oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + createOAuth2Client: async (oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'oAuth2Client' is not null or undefined assertParamExists('createOAuth2Client', 'oAuth2Client', oAuth2Client) const localVarPath = `/admin/clients`; @@ -18068,7 +18585,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Client: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteOAuth2Client: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteOAuth2Client', 'id', id) const localVarPath = `/admin/clients/{id}` @@ -18106,7 +18623,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Token: async (clientId: string, options: AxiosRequestConfig = {}): Promise => { + deleteOAuth2Token: async (clientId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'clientId' is not null or undefined assertParamExists('deleteOAuth2Token', 'clientId', clientId) const localVarPath = `/admin/oauth2/tokens`; @@ -18147,7 +18664,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTrustedOAuth2JwtGrantIssuer: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteTrustedOAuth2JwtGrantIssuer: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteTrustedOAuth2JwtGrantIssuer', 'id', id) const localVarPath = `/admin/trust/grants/jwt-bearer/issuers/{id}` @@ -18185,7 +18702,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2Client: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2Client: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getOAuth2Client', 'id', id) const localVarPath = `/admin/clients/{id}` @@ -18223,7 +18740,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2ConsentRequest: async (consentChallenge: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2ConsentRequest: async (consentChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'consentChallenge' is not null or undefined assertParamExists('getOAuth2ConsentRequest', 'consentChallenge', consentChallenge) const localVarPath = `/admin/oauth2/auth/requests/consent`; @@ -18264,7 +18781,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LoginRequest: async (loginChallenge: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2LoginRequest: async (loginChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'loginChallenge' is not null or undefined assertParamExists('getOAuth2LoginRequest', 'loginChallenge', loginChallenge) const localVarPath = `/admin/oauth2/auth/requests/login`; @@ -18305,7 +18822,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LogoutRequest: async (logoutChallenge: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2LogoutRequest: async (logoutChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'logoutChallenge' is not null or undefined assertParamExists('getOAuth2LogoutRequest', 'logoutChallenge', logoutChallenge) const localVarPath = `/admin/oauth2/auth/requests/logout`; @@ -18346,7 +18863,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTrustedOAuth2JwtGrantIssuer: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getTrustedOAuth2JwtGrantIssuer: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getTrustedOAuth2JwtGrantIssuer', 'id', id) const localVarPath = `/admin/trust/grants/jwt-bearer/issuers/{id}` @@ -18385,7 +18902,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - introspectOAuth2Token: async (token: string, scope?: string, options: AxiosRequestConfig = {}): Promise => { + introspectOAuth2Token: async (token: string, scope?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'token' is not null or undefined assertParamExists('introspectOAuth2Token', 'token', token) const localVarPath = `/admin/oauth2/introspect`; @@ -18437,7 +18954,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2Clients: async (pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options: AxiosRequestConfig = {}): Promise => { + listOAuth2Clients: async (pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/clients`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -18491,7 +19008,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2ConsentSessions: async (subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options: AxiosRequestConfig = {}): Promise => { + listOAuth2ConsentSessions: async (subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'subject' is not null or undefined assertParamExists('listOAuth2ConsentSessions', 'subject', subject) const localVarPath = `/admin/oauth2/auth/sessions/consent`; @@ -18546,7 +19063,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listTrustedOAuth2JwtGrantIssuers: async (maxItems?: number, defaultItems?: number, issuer?: string, options: AxiosRequestConfig = {}): Promise => { + listTrustedOAuth2JwtGrantIssuers: async (maxItems?: number, defaultItems?: number, issuer?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/trust/grants/jwt-bearer/issuers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -18592,7 +19109,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oAuth2Authorize: async (options: AxiosRequestConfig = {}): Promise => { + oAuth2Authorize: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/oauth2/auth`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -18627,7 +19144,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oauth2TokenExchange: async (grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options: AxiosRequestConfig = {}): Promise => { + oauth2TokenExchange: async (grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'grantType' is not null or undefined assertParamExists('oauth2TokenExchange', 'grantType', grantType) const localVarPath = `/oauth2/token`; @@ -18693,7 +19210,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchOAuth2Client: async (id: string, jsonPatch: Array, options: AxiosRequestConfig = {}): Promise => { + patchOAuth2Client: async (id: string, jsonPatch: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchOAuth2Client', 'id', id) // verify required parameter 'jsonPatch' is not null or undefined @@ -18737,7 +19254,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2ConsentRequest: async (consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: AxiosRequestConfig = {}): Promise => { + rejectOAuth2ConsentRequest: async (consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'consentChallenge' is not null or undefined assertParamExists('rejectOAuth2ConsentRequest', 'consentChallenge', consentChallenge) const localVarPath = `/admin/oauth2/auth/requests/consent/reject`; @@ -18782,7 +19299,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LoginRequest: async (loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: AxiosRequestConfig = {}): Promise => { + rejectOAuth2LoginRequest: async (loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'loginChallenge' is not null or undefined assertParamExists('rejectOAuth2LoginRequest', 'loginChallenge', loginChallenge) const localVarPath = `/admin/oauth2/auth/requests/login/reject`; @@ -18826,7 +19343,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LogoutRequest: async (logoutChallenge: string, options: AxiosRequestConfig = {}): Promise => { + rejectOAuth2LogoutRequest: async (logoutChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'logoutChallenge' is not null or undefined assertParamExists('rejectOAuth2LogoutRequest', 'logoutChallenge', logoutChallenge) const localVarPath = `/admin/oauth2/auth/requests/logout/reject`; @@ -18869,7 +19386,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2ConsentSessions: async (subject: string, client?: string, all?: boolean, options: AxiosRequestConfig = {}): Promise => { + revokeOAuth2ConsentSessions: async (subject: string, client?: string, all?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'subject' is not null or undefined assertParamExists('revokeOAuth2ConsentSessions', 'subject', subject) const localVarPath = `/admin/oauth2/auth/sessions/consent`; @@ -18919,7 +19436,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2LoginSessions: async (subject?: string, sid?: string, options: AxiosRequestConfig = {}): Promise => { + revokeOAuth2LoginSessions: async (subject?: string, sid?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/oauth2/auth/sessions/login`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -18964,7 +19481,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2Token: async (token: string, clientId?: string, clientSecret?: string, options: AxiosRequestConfig = {}): Promise => { + revokeOAuth2Token: async (token: string, clientId?: string, clientSecret?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'token' is not null or undefined assertParamExists('revokeOAuth2Token', 'token', token) const localVarPath = `/oauth2/revoke`; @@ -19022,7 +19539,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2Client: async (id: string, oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + setOAuth2Client: async (id: string, oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('setOAuth2Client', 'id', id) // verify required parameter 'oAuth2Client' is not null or undefined @@ -19066,7 +19583,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2ClientLifespans: async (id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options: AxiosRequestConfig = {}): Promise => { + setOAuth2ClientLifespans: async (id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('setOAuth2ClientLifespans', 'id', id) const localVarPath = `/admin/clients/{id}/lifespans` @@ -19107,7 +19624,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - trustOAuth2JwtGrantIssuer: async (trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options: AxiosRequestConfig = {}): Promise => { + trustOAuth2JwtGrantIssuer: async (trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/trust/grants/jwt-bearer/issuers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -19156,7 +19673,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async acceptOAuth2ConsentRequest(consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async acceptOAuth2ConsentRequest(consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOAuth2ConsentRequest(consentChallenge, acceptOAuth2ConsentRequest, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.acceptOAuth2ConsentRequest']?.[index]?.url; @@ -19170,7 +19687,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async acceptOAuth2LoginRequest(loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async acceptOAuth2LoginRequest(loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOAuth2LoginRequest(loginChallenge, acceptOAuth2LoginRequest, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.acceptOAuth2LoginRequest']?.[index]?.url; @@ -19183,7 +19700,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async acceptOAuth2LogoutRequest(logoutChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async acceptOAuth2LogoutRequest(logoutChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOAuth2LogoutRequest(logoutChallenge, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.acceptOAuth2LogoutRequest']?.[index]?.url; @@ -19196,7 +19713,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOAuth2Client(oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createOAuth2Client(oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOAuth2Client(oAuth2Client, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.createOAuth2Client']?.[index]?.url; @@ -19209,7 +19726,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOAuth2Client(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOAuth2Client(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOAuth2Client(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.deleteOAuth2Client']?.[index]?.url; @@ -19222,7 +19739,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOAuth2Token(clientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOAuth2Token(clientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOAuth2Token(clientId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.deleteOAuth2Token']?.[index]?.url; @@ -19235,7 +19752,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteTrustedOAuth2JwtGrantIssuer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteTrustedOAuth2JwtGrantIssuer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTrustedOAuth2JwtGrantIssuer(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.deleteTrustedOAuth2JwtGrantIssuer']?.[index]?.url; @@ -19248,7 +19765,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2Client(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2Client(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2Client(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.getOAuth2Client']?.[index]?.url; @@ -19261,7 +19778,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2ConsentRequest(consentChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2ConsentRequest(consentChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2ConsentRequest(consentChallenge, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.getOAuth2ConsentRequest']?.[index]?.url; @@ -19274,7 +19791,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2LoginRequest(loginChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2LoginRequest(loginChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2LoginRequest(loginChallenge, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.getOAuth2LoginRequest']?.[index]?.url; @@ -19287,7 +19804,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2LogoutRequest(logoutChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2LogoutRequest(logoutChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2LogoutRequest(logoutChallenge, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.getOAuth2LogoutRequest']?.[index]?.url; @@ -19300,7 +19817,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTrustedOAuth2JwtGrantIssuer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTrustedOAuth2JwtGrantIssuer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTrustedOAuth2JwtGrantIssuer(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.getTrustedOAuth2JwtGrantIssuer']?.[index]?.url; @@ -19314,7 +19831,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async introspectOAuth2Token(token: string, scope?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async introspectOAuth2Token(token: string, scope?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.introspectOAuth2Token(token, scope, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.introspectOAuth2Token']?.[index]?.url; @@ -19330,7 +19847,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOAuth2Clients(pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listOAuth2Clients(pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOAuth2Clients(pageSize, pageToken, clientName, owner, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.listOAuth2Clients']?.[index]?.url; @@ -19346,7 +19863,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOAuth2ConsentSessions(subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listOAuth2ConsentSessions(subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOAuth2ConsentSessions(subject, pageSize, pageToken, loginSessionId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.listOAuth2ConsentSessions']?.[index]?.url; @@ -19361,7 +19878,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listTrustedOAuth2JwtGrantIssuers(maxItems?: number, defaultItems?: number, issuer?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listTrustedOAuth2JwtGrantIssuers(maxItems?: number, defaultItems?: number, issuer?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listTrustedOAuth2JwtGrantIssuers(maxItems, defaultItems, issuer, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.listTrustedOAuth2JwtGrantIssuers']?.[index]?.url; @@ -19373,7 +19890,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async oAuth2Authorize(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async oAuth2Authorize(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.oAuth2Authorize(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.oAuth2Authorize']?.[index]?.url; @@ -19390,7 +19907,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async oauth2TokenExchange(grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async oauth2TokenExchange(grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.oauth2TokenExchange(grantType, clientId, code, redirectUri, refreshToken, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.oauth2TokenExchange']?.[index]?.url; @@ -19404,7 +19921,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchOAuth2Client(id: string, jsonPatch: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchOAuth2Client(id: string, jsonPatch: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchOAuth2Client(id, jsonPatch, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.patchOAuth2Client']?.[index]?.url; @@ -19418,7 +19935,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async rejectOAuth2ConsentRequest(consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async rejectOAuth2ConsentRequest(consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOAuth2ConsentRequest(consentChallenge, rejectOAuth2Request, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.rejectOAuth2ConsentRequest']?.[index]?.url; @@ -19432,7 +19949,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async rejectOAuth2LoginRequest(loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async rejectOAuth2LoginRequest(loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOAuth2LoginRequest(loginChallenge, rejectOAuth2Request, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.rejectOAuth2LoginRequest']?.[index]?.url; @@ -19445,7 +19962,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async rejectOAuth2LogoutRequest(logoutChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async rejectOAuth2LogoutRequest(logoutChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOAuth2LogoutRequest(logoutChallenge, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.rejectOAuth2LogoutRequest']?.[index]?.url; @@ -19460,7 +19977,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOAuth2ConsentSessions(subject: string, client?: string, all?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOAuth2ConsentSessions(subject: string, client?: string, all?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOAuth2ConsentSessions(subject, client, all, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.revokeOAuth2ConsentSessions']?.[index]?.url; @@ -19474,7 +19991,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOAuth2LoginSessions(subject?: string, sid?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOAuth2LoginSessions(subject?: string, sid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOAuth2LoginSessions(subject, sid, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.revokeOAuth2LoginSessions']?.[index]?.url; @@ -19489,7 +20006,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOAuth2Token(token: string, clientId?: string, clientSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOAuth2Token(token: string, clientId?: string, clientSecret?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOAuth2Token(token, clientId, clientSecret, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.revokeOAuth2Token']?.[index]?.url; @@ -19503,7 +20020,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setOAuth2Client(id: string, oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setOAuth2Client(id: string, oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setOAuth2Client(id, oAuth2Client, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.setOAuth2Client']?.[index]?.url; @@ -19517,7 +20034,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setOAuth2ClientLifespans(id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setOAuth2ClientLifespans(id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setOAuth2ClientLifespans(id, oAuth2ClientTokenLifespans, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.setOAuth2ClientLifespans']?.[index]?.url; @@ -19530,7 +20047,7 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OAuth2Api.trustOAuth2JwtGrantIssuer']?.[index]?.url; @@ -19553,7 +20070,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acceptOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.acceptOAuth2ConsentRequest, options).then((request) => request(axios, basePath)); }, /** @@ -19563,7 +20080,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acceptOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.acceptOAuth2LoginRequest, options).then((request) => request(axios, basePath)); }, /** @@ -19573,7 +20090,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.acceptOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(axios, basePath)); }, /** @@ -19583,7 +20100,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: AxiosRequestConfig): AxiosPromise { + createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createOAuth2Client(requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, /** @@ -19593,7 +20110,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOAuth2Client(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -19603,7 +20120,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOAuth2Token(requestParameters.clientId, options).then((request) => request(axios, basePath)); }, /** @@ -19613,7 +20130,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -19623,7 +20140,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: AxiosRequestConfig): AxiosPromise { + getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOAuth2Client(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -19633,7 +20150,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOAuth2ConsentRequest(requestParameters.consentChallenge, options).then((request) => request(axios, basePath)); }, /** @@ -19643,7 +20160,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOAuth2LoginRequest(requestParameters.loginChallenge, options).then((request) => request(axios, basePath)); }, /** @@ -19653,7 +20170,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(axios, basePath)); }, /** @@ -19663,7 +20180,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: AxiosRequestConfig): AxiosPromise { + getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -19673,7 +20190,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: AxiosRequestConfig): AxiosPromise { + introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.introspectOAuth2Token(requestParameters.token, requestParameters.scope, options).then((request) => request(axios, basePath)); }, /** @@ -19683,7 +20200,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listOAuth2Clients(requestParameters.pageSize, requestParameters.pageToken, requestParameters.clientName, requestParameters.owner, options).then((request) => request(axios, basePath)); }, /** @@ -19693,7 +20210,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: AxiosRequestConfig): AxiosPromise> { + listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listOAuth2ConsentSessions(requestParameters.subject, requestParameters.pageSize, requestParameters.pageToken, requestParameters.loginSessionId, options).then((request) => request(axios, basePath)); }, /** @@ -19703,7 +20220,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: AxiosRequestConfig): AxiosPromise> { + listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listTrustedOAuth2JwtGrantIssuers(requestParameters.maxItems, requestParameters.defaultItems, requestParameters.issuer, options).then((request) => request(axios, basePath)); }, /** @@ -19712,7 +20229,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oAuth2Authorize(options?: AxiosRequestConfig): AxiosPromise { + oAuth2Authorize(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.oAuth2Authorize(options).then((request) => request(axios, basePath)); }, /** @@ -19722,7 +20239,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: AxiosRequestConfig): AxiosPromise { + oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.oauth2TokenExchange(requestParameters.grantType, requestParameters.clientId, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options).then((request) => request(axios, basePath)); }, /** @@ -19732,7 +20249,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: AxiosRequestConfig): AxiosPromise { + patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchOAuth2Client(requestParameters.id, requestParameters.jsonPatch, options).then((request) => request(axios, basePath)); }, /** @@ -19742,7 +20259,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rejectOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(axios, basePath)); }, /** @@ -19752,7 +20269,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rejectOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(axios, basePath)); }, /** @@ -19762,7 +20279,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: AxiosRequestConfig): AxiosPromise { + rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.rejectOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(axios, basePath)); }, /** @@ -19772,7 +20289,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: AxiosRequestConfig): AxiosPromise { + revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeOAuth2ConsentSessions(requestParameters.subject, requestParameters.client, requestParameters.all, options).then((request) => request(axios, basePath)); }, /** @@ -19782,7 +20299,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeOAuth2LoginSessions(requestParameters.subject, requestParameters.sid, options).then((request) => request(axios, basePath)); }, /** @@ -19792,7 +20309,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: AxiosRequestConfig): AxiosPromise { + revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeOAuth2Token(requestParameters.token, requestParameters.clientId, requestParameters.clientSecret, options).then((request) => request(axios, basePath)); }, /** @@ -19802,7 +20319,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: AxiosRequestConfig): AxiosPromise { + setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setOAuth2Client(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, /** @@ -19812,7 +20329,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: AxiosRequestConfig): AxiosPromise { + setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setOAuth2ClientLifespans(requestParameters.id, requestParameters.oAuth2ClientTokenLifespans, options).then((request) => request(axios, basePath)); }, /** @@ -19822,7 +20339,7 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.trustOAuth2JwtGrantIssuer(requestParameters.trustOAuth2JwtGrantIssuer, options).then((request) => request(axios, basePath)); }, }; @@ -20396,7 +20913,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: AxiosRequestConfig) { + public acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).acceptOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.acceptOAuth2ConsentRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -20408,7 +20925,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: AxiosRequestConfig) { + public acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).acceptOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.acceptOAuth2LoginRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -20420,7 +20937,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: AxiosRequestConfig) { + public acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).acceptOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -20432,7 +20949,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: AxiosRequestConfig) { + public createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).createOAuth2Client(requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } @@ -20444,7 +20961,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: AxiosRequestConfig) { + public deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).deleteOAuth2Client(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -20456,7 +20973,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: AxiosRequestConfig) { + public deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).deleteOAuth2Token(requestParameters.clientId, options).then((request) => request(this.axios, this.basePath)); } @@ -20468,7 +20985,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: AxiosRequestConfig) { + public deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).deleteTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -20480,7 +20997,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: AxiosRequestConfig) { + public getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2Client(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -20492,7 +21009,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: AxiosRequestConfig) { + public getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2ConsentRequest(requestParameters.consentChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -20504,7 +21021,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: AxiosRequestConfig) { + public getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2LoginRequest(requestParameters.loginChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -20516,7 +21033,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: AxiosRequestConfig) { + public getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -20528,7 +21045,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: AxiosRequestConfig) { + public getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -20540,7 +21057,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: AxiosRequestConfig) { + public introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).introspectOAuth2Token(requestParameters.token, requestParameters.scope, options).then((request) => request(this.axios, this.basePath)); } @@ -20552,7 +21069,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: AxiosRequestConfig) { + public listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).listOAuth2Clients(requestParameters.pageSize, requestParameters.pageToken, requestParameters.clientName, requestParameters.owner, options).then((request) => request(this.axios, this.basePath)); } @@ -20564,7 +21081,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: AxiosRequestConfig) { + public listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).listOAuth2ConsentSessions(requestParameters.subject, requestParameters.pageSize, requestParameters.pageToken, requestParameters.loginSessionId, options).then((request) => request(this.axios, this.basePath)); } @@ -20576,7 +21093,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: AxiosRequestConfig) { + public listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).listTrustedOAuth2JwtGrantIssuers(requestParameters.maxItems, requestParameters.defaultItems, requestParameters.issuer, options).then((request) => request(this.axios, this.basePath)); } @@ -20587,7 +21104,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public oAuth2Authorize(options?: AxiosRequestConfig) { + public oAuth2Authorize(options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).oAuth2Authorize(options).then((request) => request(this.axios, this.basePath)); } @@ -20599,7 +21116,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: AxiosRequestConfig) { + public oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).oauth2TokenExchange(requestParameters.grantType, requestParameters.clientId, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options).then((request) => request(this.axios, this.basePath)); } @@ -20611,7 +21128,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: AxiosRequestConfig) { + public patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).patchOAuth2Client(requestParameters.id, requestParameters.jsonPatch, options).then((request) => request(this.axios, this.basePath)); } @@ -20623,7 +21140,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: AxiosRequestConfig) { + public rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).rejectOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(this.axios, this.basePath)); } @@ -20635,7 +21152,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: AxiosRequestConfig) { + public rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).rejectOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(this.axios, this.basePath)); } @@ -20647,7 +21164,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: AxiosRequestConfig) { + public rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).rejectOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -20659,7 +21176,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: AxiosRequestConfig) { + public revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).revokeOAuth2ConsentSessions(requestParameters.subject, requestParameters.client, requestParameters.all, options).then((request) => request(this.axios, this.basePath)); } @@ -20671,7 +21188,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: AxiosRequestConfig) { + public revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).revokeOAuth2LoginSessions(requestParameters.subject, requestParameters.sid, options).then((request) => request(this.axios, this.basePath)); } @@ -20683,7 +21200,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: AxiosRequestConfig) { + public revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).revokeOAuth2Token(requestParameters.token, requestParameters.clientId, requestParameters.clientSecret, options).then((request) => request(this.axios, this.basePath)); } @@ -20695,7 +21212,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: AxiosRequestConfig) { + public setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).setOAuth2Client(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } @@ -20707,7 +21224,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: AxiosRequestConfig) { + public setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).setOAuth2ClientLifespans(requestParameters.id, requestParameters.oAuth2ClientTokenLifespans, options).then((request) => request(this.axios, this.basePath)); } @@ -20719,7 +21236,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: AxiosRequestConfig) { + public trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).trustOAuth2JwtGrantIssuer(requestParameters.trustOAuth2JwtGrantIssuer, options).then((request) => request(this.axios, this.basePath)); } } @@ -20739,7 +21256,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOidcDynamicClient: async (oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + createOidcDynamicClient: async (oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'oAuth2Client' is not null or undefined assertParamExists('createOidcDynamicClient', 'oAuth2Client', oAuth2Client) const localVarPath = `/oauth2/register`; @@ -20775,7 +21292,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createVerifiableCredential: async (createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options: AxiosRequestConfig = {}): Promise => { + createVerifiableCredential: async (createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/credentials`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -20809,7 +21326,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOidcDynamicClient: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteOidcDynamicClient: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteOidcDynamicClient', 'id', id) const localVarPath = `/oauth2/register/{id}` @@ -20846,7 +21363,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverOidcConfiguration: async (options: AxiosRequestConfig = {}): Promise => { + discoverOidcConfiguration: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/.well-known/openid-configuration`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -20877,7 +21394,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcDynamicClient: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getOidcDynamicClient: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getOidcDynamicClient', 'id', id) const localVarPath = `/oauth2/register/{id}` @@ -20914,7 +21431,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcUserInfo: async (options: AxiosRequestConfig = {}): Promise => { + getOidcUserInfo: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/userinfo`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -20948,7 +21465,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOidcSession: async (options: AxiosRequestConfig = {}): Promise => { + revokeOidcSession: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/oauth2/sessions/logout`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -20980,7 +21497,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOidcDynamicClient: async (id: string, oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + setOidcDynamicClient: async (id: string, oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('setOidcDynamicClient', 'id', id) // verify required parameter 'oAuth2Client' is not null or undefined @@ -21033,7 +21550,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOidcDynamicClient(oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createOidcDynamicClient(oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOidcDynamicClient(oAuth2Client, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.createOidcDynamicClient']?.[index]?.url; @@ -21046,7 +21563,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createVerifiableCredential(createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createVerifiableCredential(createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createVerifiableCredential(createVerifiableCredentialRequestBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.createVerifiableCredential']?.[index]?.url; @@ -21059,7 +21576,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOidcDynamicClient(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOidcDynamicClient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOidcDynamicClient(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.deleteOidcDynamicClient']?.[index]?.url; @@ -21071,7 +21588,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async discoverOidcConfiguration(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async discoverOidcConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.discoverOidcConfiguration(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.discoverOidcConfiguration']?.[index]?.url; @@ -21084,7 +21601,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOidcDynamicClient(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOidcDynamicClient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOidcDynamicClient(id, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.getOidcDynamicClient']?.[index]?.url; @@ -21096,7 +21613,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOidcUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOidcUserInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOidcUserInfo(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.getOidcUserInfo']?.[index]?.url; @@ -21108,7 +21625,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOidcSession(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOidcSession(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOidcSession(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.revokeOidcSession']?.[index]?.url; @@ -21122,7 +21639,7 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setOidcDynamicClient(id: string, oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setOidcDynamicClient(id: string, oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setOidcDynamicClient(id, oAuth2Client, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['OidcApi.setOidcDynamicClient']?.[index]?.url; @@ -21145,7 +21662,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: AxiosRequestConfig): AxiosPromise { + createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createOidcDynamicClient(requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, /** @@ -21155,7 +21672,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createVerifiableCredential(requestParameters.createVerifiableCredentialRequestBody, options).then((request) => request(axios, basePath)); }, /** @@ -21165,7 +21682,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOidcDynamicClient(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -21174,7 +21691,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverOidcConfiguration(options?: AxiosRequestConfig): AxiosPromise { + discoverOidcConfiguration(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.discoverOidcConfiguration(options).then((request) => request(axios, basePath)); }, /** @@ -21184,7 +21701,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: AxiosRequestConfig): AxiosPromise { + getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOidcDynamicClient(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** @@ -21193,7 +21710,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcUserInfo(options?: AxiosRequestConfig): AxiosPromise { + getOidcUserInfo(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOidcUserInfo(options).then((request) => request(axios, basePath)); }, /** @@ -21202,7 +21719,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOidcSession(options?: AxiosRequestConfig): AxiosPromise { + revokeOidcSession(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeOidcSession(options).then((request) => request(axios, basePath)); }, /** @@ -21212,7 +21729,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: AxiosRequestConfig): AxiosPromise { + setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setOidcDynamicClient(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, }; @@ -21310,7 +21827,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).createOidcDynamicClient(requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } @@ -21322,7 +21839,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: AxiosRequestConfig) { + public createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).createVerifiableCredential(requestParameters.createVerifiableCredentialRequestBody, options).then((request) => request(this.axios, this.basePath)); } @@ -21334,7 +21851,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).deleteOidcDynamicClient(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -21345,7 +21862,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public discoverOidcConfiguration(options?: AxiosRequestConfig) { + public discoverOidcConfiguration(options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).discoverOidcConfiguration(options).then((request) => request(this.axios, this.basePath)); } @@ -21357,7 +21874,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).getOidcDynamicClient(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -21368,7 +21885,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public getOidcUserInfo(options?: AxiosRequestConfig) { + public getOidcUserInfo(options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).getOidcUserInfo(options).then((request) => request(this.axios, this.basePath)); } @@ -21379,7 +21896,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public revokeOidcSession(options?: AxiosRequestConfig) { + public revokeOidcSession(options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).revokeOidcSession(options).then((request) => request(this.axios, this.basePath)); } @@ -21391,7 +21908,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).setOidcDynamicClient(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } } @@ -21418,7 +21935,7 @@ export const PermissionApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkPermission: async (namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options: AxiosRequestConfig = {}): Promise => { + checkPermission: async (namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/relation-tuples/check/openapi`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -21492,7 +22009,7 @@ export const PermissionApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkPermissionOrError: async (namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options: AxiosRequestConfig = {}): Promise => { + checkPermissionOrError: async (namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/relation-tuples/check`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -21562,7 +22079,7 @@ export const PermissionApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - expandPermissions: async (namespace: string, object: string, relation: string, maxDepth?: number, options: AxiosRequestConfig = {}): Promise => { + expandPermissions: async (namespace: string, object: string, relation: string, maxDepth?: number, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'namespace' is not null or undefined assertParamExists('expandPermissions', 'namespace', namespace) // verify required parameter 'object' is not null or undefined @@ -21620,7 +22137,7 @@ export const PermissionApiAxiosParamCreator = function (configuration?: Configur * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCheckPermission: async (maxDepth?: number, postCheckPermissionBody?: PostCheckPermissionBody, options: AxiosRequestConfig = {}): Promise => { + postCheckPermission: async (maxDepth?: number, postCheckPermissionBody?: PostCheckPermissionBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/relation-tuples/check/openapi`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -21658,12 +22175,12 @@ export const PermissionApiAxiosParamCreator = function (configuration?: Configur /** * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). * @summary Check a permission - * @param {number} [maxDepth] nolint:deadcode,unused + * @param {number} [maxDepth] * @param {PostCheckPermissionOrErrorBody} [postCheckPermissionOrErrorBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCheckPermissionOrError: async (maxDepth?: number, postCheckPermissionOrErrorBody?: PostCheckPermissionOrErrorBody, options: AxiosRequestConfig = {}): Promise => { + postCheckPermissionOrError: async (maxDepth?: number, postCheckPermissionOrErrorBody?: PostCheckPermissionOrErrorBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/relation-tuples/check`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -21722,7 +22239,7 @@ export const PermissionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async checkPermission(namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async checkPermission(namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkPermission(namespace, object, relation, subjectId, subjectSetNamespace, subjectSetObject, subjectSetRelation, maxDepth, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PermissionApi.checkPermission']?.[index]?.url; @@ -21742,7 +22259,7 @@ export const PermissionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async checkPermissionOrError(namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async checkPermissionOrError(namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, maxDepth?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkPermissionOrError(namespace, object, relation, subjectId, subjectSetNamespace, subjectSetObject, subjectSetRelation, maxDepth, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PermissionApi.checkPermissionOrError']?.[index]?.url; @@ -21758,7 +22275,7 @@ export const PermissionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async expandPermissions(namespace: string, object: string, relation: string, maxDepth?: number, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async expandPermissions(namespace: string, object: string, relation: string, maxDepth?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.expandPermissions(namespace, object, relation, maxDepth, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PermissionApi.expandPermissions']?.[index]?.url; @@ -21772,7 +22289,7 @@ export const PermissionApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postCheckPermission(maxDepth?: number, postCheckPermissionBody?: PostCheckPermissionBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postCheckPermission(maxDepth?: number, postCheckPermissionBody?: PostCheckPermissionBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postCheckPermission(maxDepth, postCheckPermissionBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PermissionApi.postCheckPermission']?.[index]?.url; @@ -21781,12 +22298,12 @@ export const PermissionApiFp = function(configuration?: Configuration) { /** * To learn how relationship tuples and the check works, head over to [the documentation](https://www.ory.sh/docs/keto/concepts/api-overview). * @summary Check a permission - * @param {number} [maxDepth] nolint:deadcode,unused + * @param {number} [maxDepth] * @param {PostCheckPermissionOrErrorBody} [postCheckPermissionOrErrorBody] * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async postCheckPermissionOrError(maxDepth?: number, postCheckPermissionOrErrorBody?: PostCheckPermissionOrErrorBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async postCheckPermissionOrError(maxDepth?: number, postCheckPermissionOrErrorBody?: PostCheckPermissionOrErrorBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.postCheckPermissionOrError(maxDepth, postCheckPermissionOrErrorBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['PermissionApi.postCheckPermissionOrError']?.[index]?.url; @@ -21809,7 +22326,7 @@ export const PermissionApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkPermission(requestParameters: PermissionApiCheckPermissionRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + checkPermission(requestParameters: PermissionApiCheckPermissionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkPermission(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, requestParameters.maxDepth, options).then((request) => request(axios, basePath)); }, /** @@ -21819,7 +22336,7 @@ export const PermissionApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkPermissionOrError(requestParameters: PermissionApiCheckPermissionOrErrorRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + checkPermissionOrError(requestParameters: PermissionApiCheckPermissionOrErrorRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkPermissionOrError(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, requestParameters.maxDepth, options).then((request) => request(axios, basePath)); }, /** @@ -21829,7 +22346,7 @@ export const PermissionApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - expandPermissions(requestParameters: PermissionApiExpandPermissionsRequest, options?: AxiosRequestConfig): AxiosPromise { + expandPermissions(requestParameters: PermissionApiExpandPermissionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.expandPermissions(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.maxDepth, options).then((request) => request(axios, basePath)); }, /** @@ -21839,7 +22356,7 @@ export const PermissionApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCheckPermission(requestParameters: PermissionApiPostCheckPermissionRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + postCheckPermission(requestParameters: PermissionApiPostCheckPermissionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postCheckPermission(requestParameters.maxDepth, requestParameters.postCheckPermissionBody, options).then((request) => request(axios, basePath)); }, /** @@ -21849,7 +22366,7 @@ export const PermissionApiFactory = function (configuration?: Configuration, bas * @param {*} [options] Override http request option. * @throws {RequiredError} */ - postCheckPermissionOrError(requestParameters: PermissionApiPostCheckPermissionOrErrorRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + postCheckPermissionOrError(requestParameters: PermissionApiPostCheckPermissionOrErrorRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.postCheckPermissionOrError(requestParameters.maxDepth, requestParameters.postCheckPermissionOrErrorBody, options).then((request) => request(axios, basePath)); }, }; @@ -22044,7 +22561,7 @@ export interface PermissionApiPostCheckPermissionRequest { */ export interface PermissionApiPostCheckPermissionOrErrorRequest { /** - * nolint:deadcode,unused + * * @type {number} * @memberof PermissionApiPostCheckPermissionOrError */ @@ -22073,7 +22590,7 @@ export class PermissionApi extends BaseAPI { * @throws {RequiredError} * @memberof PermissionApi */ - public checkPermission(requestParameters: PermissionApiCheckPermissionRequest = {}, options?: AxiosRequestConfig) { + public checkPermission(requestParameters: PermissionApiCheckPermissionRequest = {}, options?: RawAxiosRequestConfig) { return PermissionApiFp(this.configuration).checkPermission(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, requestParameters.maxDepth, options).then((request) => request(this.axios, this.basePath)); } @@ -22085,7 +22602,7 @@ export class PermissionApi extends BaseAPI { * @throws {RequiredError} * @memberof PermissionApi */ - public checkPermissionOrError(requestParameters: PermissionApiCheckPermissionOrErrorRequest = {}, options?: AxiosRequestConfig) { + public checkPermissionOrError(requestParameters: PermissionApiCheckPermissionOrErrorRequest = {}, options?: RawAxiosRequestConfig) { return PermissionApiFp(this.configuration).checkPermissionOrError(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, requestParameters.maxDepth, options).then((request) => request(this.axios, this.basePath)); } @@ -22097,7 +22614,7 @@ export class PermissionApi extends BaseAPI { * @throws {RequiredError} * @memberof PermissionApi */ - public expandPermissions(requestParameters: PermissionApiExpandPermissionsRequest, options?: AxiosRequestConfig) { + public expandPermissions(requestParameters: PermissionApiExpandPermissionsRequest, options?: RawAxiosRequestConfig) { return PermissionApiFp(this.configuration).expandPermissions(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.maxDepth, options).then((request) => request(this.axios, this.basePath)); } @@ -22109,7 +22626,7 @@ export class PermissionApi extends BaseAPI { * @throws {RequiredError} * @memberof PermissionApi */ - public postCheckPermission(requestParameters: PermissionApiPostCheckPermissionRequest = {}, options?: AxiosRequestConfig) { + public postCheckPermission(requestParameters: PermissionApiPostCheckPermissionRequest = {}, options?: RawAxiosRequestConfig) { return PermissionApiFp(this.configuration).postCheckPermission(requestParameters.maxDepth, requestParameters.postCheckPermissionBody, options).then((request) => request(this.axios, this.basePath)); } @@ -22121,7 +22638,7 @@ export class PermissionApi extends BaseAPI { * @throws {RequiredError} * @memberof PermissionApi */ - public postCheckPermissionOrError(requestParameters: PermissionApiPostCheckPermissionOrErrorRequest = {}, options?: AxiosRequestConfig) { + public postCheckPermissionOrError(requestParameters: PermissionApiPostCheckPermissionOrErrorRequest = {}, options?: RawAxiosRequestConfig) { return PermissionApiFp(this.configuration).postCheckPermissionOrError(requestParameters.maxDepth, requestParameters.postCheckPermissionOrErrorBody, options).then((request) => request(this.axios, this.basePath)); } } @@ -22141,7 +22658,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOrganization: async (projectId: string, organizationBody?: OrganizationBody, options: AxiosRequestConfig = {}): Promise => { + createOrganization: async (projectId: string, organizationBody?: OrganizationBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('createOrganization', 'projectId', projectId) const localVarPath = `/projects/{project_id}/organizations` @@ -22182,7 +22699,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createProject: async (createProjectBody?: CreateProjectBody, options: AxiosRequestConfig = {}): Promise => { + createProject: async (createProjectBody?: CreateProjectBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/projects`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -22221,7 +22738,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createProjectApiKey: async (project: string, createProjectApiKeyRequest?: CreateProjectApiKeyRequest, options: AxiosRequestConfig = {}): Promise => { + createProjectApiKey: async (project: string, createProjectApiKeyRequest?: CreateProjectApiKeyRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'project' is not null or undefined assertParamExists('createProjectApiKey', 'project', project) const localVarPath = `/projects/{project}/tokens` @@ -22263,7 +22780,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrganization: async (projectId: string, organizationId: string, options: AxiosRequestConfig = {}): Promise => { + deleteOrganization: async (projectId: string, organizationId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('deleteOrganization', 'projectId', projectId) // verify required parameter 'organizationId' is not null or undefined @@ -22305,7 +22822,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteProjectApiKey: async (project: string, tokenId: string, options: AxiosRequestConfig = {}): Promise => { + deleteProjectApiKey: async (project: string, tokenId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'project' is not null or undefined assertParamExists('deleteProjectApiKey', 'project', project) // verify required parameter 'tokenId' is not null or undefined @@ -22345,7 +22862,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getActiveProjectInConsole: async (options: AxiosRequestConfig = {}): Promise => { + getActiveProjectInConsole: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/console/active/project`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -22381,7 +22898,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrganization: async (projectId: string, organizationId: string, options: AxiosRequestConfig = {}): Promise => { + getOrganization: async (projectId: string, organizationId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getOrganization', 'projectId', projectId) // verify required parameter 'organizationId' is not null or undefined @@ -22422,7 +22939,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getProject: async (projectId: string, options: AxiosRequestConfig = {}): Promise => { + getProject: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProject', 'projectId', projectId) const localVarPath = `/projects/{project_id}` @@ -22460,7 +22977,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getProjectMembers: async (project: string, options: AxiosRequestConfig = {}): Promise => { + getProjectMembers: async (project: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'project' is not null or undefined assertParamExists('getProjectMembers', 'project', project) const localVarPath = `/projects/{project}/members` @@ -22495,13 +23012,13 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * Retrieves project metrics for the specified event type and time range * @param {string} projectId Project ID * @param {string} eventType The event type to query for - * @param {string} resolution The resolution of the buckets The minimum resolution is 1 hour. + * @param {string} resolution The resolution of the buckets The minimum resolution is 1 minute. * @param {string} from The start RFC3339 date of the time window * @param {string} to The end RFC3339 date of the time window * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getProjectMetrics: async (projectId: string, eventType: string, resolution: string, from: string, to: string, options: AxiosRequestConfig = {}): Promise => { + getProjectMetrics: async (projectId: string, eventType: string, resolution: string, from: string, to: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('getProjectMetrics', 'projectId', projectId) // verify required parameter 'eventType' is not null or undefined @@ -22566,7 +23083,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOrganizations: async (projectId: string, options: AxiosRequestConfig = {}): Promise => { + listOrganizations: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('listOrganizations', 'projectId', projectId) const localVarPath = `/projects/{project_id}/organizations` @@ -22604,7 +23121,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listProjectApiKeys: async (project: string, options: AxiosRequestConfig = {}): Promise => { + listProjectApiKeys: async (project: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'project' is not null or undefined assertParamExists('listProjectApiKeys', 'project', project) const localVarPath = `/projects/{project}/tokens` @@ -22641,7 +23158,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listProjects: async (options: AxiosRequestConfig = {}): Promise => { + listProjects: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/projects`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -22677,7 +23194,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchProject: async (projectId: string, jsonPatch?: Array, options: AxiosRequestConfig = {}): Promise => { + patchProject: async (projectId: string, jsonPatch?: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('patchProject', 'projectId', projectId) const localVarPath = `/projects/{project_id}` @@ -22718,7 +23235,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - purgeProject: async (projectId: string, options: AxiosRequestConfig = {}): Promise => { + purgeProject: async (projectId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('purgeProject', 'projectId', projectId) const localVarPath = `/projects/{project_id}` @@ -22757,7 +23274,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - removeProjectMember: async (project: string, member: string, options: AxiosRequestConfig = {}): Promise => { + removeProjectMember: async (project: string, member: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'project' is not null or undefined assertParamExists('removeProjectMember', 'project', project) // verify required parameter 'member' is not null or undefined @@ -22798,7 +23315,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setActiveProjectInConsole: async (setActiveProjectInConsoleBody?: SetActiveProjectInConsoleBody, options: AxiosRequestConfig = {}): Promise => { + setActiveProjectInConsole: async (setActiveProjectInConsoleBody?: SetActiveProjectInConsoleBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/console/active/project`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -22837,7 +23354,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setProject: async (projectId: string, setProject?: SetProject, options: AxiosRequestConfig = {}): Promise => { + setProject: async (projectId: string, setProject?: SetProject, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('setProject', 'projectId', projectId) const localVarPath = `/projects/{project_id}` @@ -22880,7 +23397,7 @@ export const ProjectApiAxiosParamCreator = function (configuration?: Configurati * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOrganization: async (projectId: string, organizationId: string, organizationBody?: OrganizationBody, options: AxiosRequestConfig = {}): Promise => { + updateOrganization: async (projectId: string, organizationId: string, organizationBody?: OrganizationBody, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'projectId' is not null or undefined assertParamExists('updateOrganization', 'projectId', projectId) // verify required parameter 'organizationId' is not null or undefined @@ -22934,7 +23451,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOrganization(projectId: string, organizationBody?: OrganizationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createOrganization(projectId: string, organizationBody?: OrganizationBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOrganization(projectId, organizationBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.createOrganization']?.[index]?.url; @@ -22947,7 +23464,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createProject(createProjectBody?: CreateProjectBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createProject(createProjectBody?: CreateProjectBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProject(createProjectBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.createProject']?.[index]?.url; @@ -22961,7 +23478,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createProjectApiKey(project: string, createProjectApiKeyRequest?: CreateProjectApiKeyRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createProjectApiKey(project: string, createProjectApiKeyRequest?: CreateProjectApiKeyRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createProjectApiKey(project, createProjectApiKeyRequest, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.createProjectApiKey']?.[index]?.url; @@ -22975,7 +23492,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOrganization(projectId: string, organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOrganization(projectId: string, organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrganization(projectId, organizationId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.deleteOrganization']?.[index]?.url; @@ -22989,7 +23506,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteProjectApiKey(project: string, tokenId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteProjectApiKey(project: string, tokenId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteProjectApiKey(project, tokenId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.deleteProjectApiKey']?.[index]?.url; @@ -23001,7 +23518,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getActiveProjectInConsole(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getActiveProjectInConsole(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getActiveProjectInConsole(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.getActiveProjectInConsole']?.[index]?.url; @@ -23015,7 +23532,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOrganization(projectId: string, organizationId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOrganization(projectId: string, organizationId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOrganization(projectId, organizationId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.getOrganization']?.[index]?.url; @@ -23028,7 +23545,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getProject(projectId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getProject(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProject(projectId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.getProject']?.[index]?.url; @@ -23041,7 +23558,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getProjectMembers(project: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async getProjectMembers(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectMembers(project, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.getProjectMembers']?.[index]?.url; @@ -23051,13 +23568,13 @@ export const ProjectApiFp = function(configuration?: Configuration) { * Retrieves project metrics for the specified event type and time range * @param {string} projectId Project ID * @param {string} eventType The event type to query for - * @param {string} resolution The resolution of the buckets The minimum resolution is 1 hour. + * @param {string} resolution The resolution of the buckets The minimum resolution is 1 minute. * @param {string} from The start RFC3339 date of the time window * @param {string} to The end RFC3339 date of the time window * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getProjectMetrics(projectId: string, eventType: string, resolution: string, from: string, to: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getProjectMetrics(projectId: string, eventType: string, resolution: string, from: string, to: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getProjectMetrics(projectId, eventType, resolution, from, to, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.getProjectMetrics']?.[index]?.url; @@ -23069,7 +23586,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOrganizations(projectId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listOrganizations(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOrganizations(projectId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.listOrganizations']?.[index]?.url; @@ -23082,7 +23599,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listProjectApiKeys(project: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listProjectApiKeys(project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listProjectApiKeys(project, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.listProjectApiKeys']?.[index]?.url; @@ -23094,7 +23611,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listProjects(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listProjects(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listProjects(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.listProjects']?.[index]?.url; @@ -23108,7 +23625,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchProject(projectId: string, jsonPatch?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchProject(projectId: string, jsonPatch?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchProject(projectId, jsonPatch, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.patchProject']?.[index]?.url; @@ -23121,7 +23638,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async purgeProject(projectId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async purgeProject(projectId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.purgeProject(projectId, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.purgeProject']?.[index]?.url; @@ -23135,7 +23652,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async removeProjectMember(project: string, member: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async removeProjectMember(project: string, member: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.removeProjectMember(project, member, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.removeProjectMember']?.[index]?.url; @@ -23148,7 +23665,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setActiveProjectInConsole(setActiveProjectInConsoleBody?: SetActiveProjectInConsoleBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setActiveProjectInConsole(setActiveProjectInConsoleBody?: SetActiveProjectInConsoleBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setActiveProjectInConsole(setActiveProjectInConsoleBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.setActiveProjectInConsole']?.[index]?.url; @@ -23162,7 +23679,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setProject(projectId: string, setProject?: SetProject, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setProject(projectId: string, setProject?: SetProject, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setProject(projectId, setProject, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.setProject']?.[index]?.url; @@ -23177,7 +23694,7 @@ export const ProjectApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async updateOrganization(projectId: string, organizationId: string, organizationBody?: OrganizationBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async updateOrganization(projectId: string, organizationId: string, organizationBody?: OrganizationBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.updateOrganization(projectId, organizationId, organizationBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['ProjectApi.updateOrganization']?.[index]?.url; @@ -23199,7 +23716,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOrganization(requestParameters: ProjectApiCreateOrganizationRequest, options?: AxiosRequestConfig): AxiosPromise { + createOrganization(requestParameters: ProjectApiCreateOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createOrganization(requestParameters.projectId, requestParameters.organizationBody, options).then((request) => request(axios, basePath)); }, /** @@ -23209,7 +23726,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createProject(requestParameters: ProjectApiCreateProjectRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createProject(requestParameters: ProjectApiCreateProjectRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProject(requestParameters.createProjectBody, options).then((request) => request(axios, basePath)); }, /** @@ -23219,7 +23736,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createProjectApiKey(requestParameters: ProjectApiCreateProjectApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise { + createProjectApiKey(requestParameters: ProjectApiCreateProjectApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createProjectApiKey(requestParameters.project, requestParameters.createProjectApiKeyRequest, options).then((request) => request(axios, basePath)); }, /** @@ -23229,7 +23746,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOrganization(requestParameters: ProjectApiDeleteOrganizationRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteOrganization(requestParameters: ProjectApiDeleteOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteOrganization(requestParameters.projectId, requestParameters.organizationId, options).then((request) => request(axios, basePath)); }, /** @@ -23239,7 +23756,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteProjectApiKey(requestParameters: ProjectApiDeleteProjectApiKeyRequest, options?: AxiosRequestConfig): AxiosPromise { + deleteProjectApiKey(requestParameters: ProjectApiDeleteProjectApiKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteProjectApiKey(requestParameters.project, requestParameters.tokenId, options).then((request) => request(axios, basePath)); }, /** @@ -23248,7 +23765,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getActiveProjectInConsole(options?: AxiosRequestConfig): AxiosPromise { + getActiveProjectInConsole(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getActiveProjectInConsole(options).then((request) => request(axios, basePath)); }, /** @@ -23258,7 +23775,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOrganization(requestParameters: ProjectApiGetOrganizationRequest, options?: AxiosRequestConfig): AxiosPromise { + getOrganization(requestParameters: ProjectApiGetOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOrganization(requestParameters.projectId, requestParameters.organizationId, options).then((request) => request(axios, basePath)); }, /** @@ -23268,7 +23785,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getProject(requestParameters: ProjectApiGetProjectRequest, options?: AxiosRequestConfig): AxiosPromise { + getProject(requestParameters: ProjectApiGetProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProject(requestParameters.projectId, options).then((request) => request(axios, basePath)); }, /** @@ -23278,7 +23795,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getProjectMembers(requestParameters: ProjectApiGetProjectMembersRequest, options?: AxiosRequestConfig): AxiosPromise> { + getProjectMembers(requestParameters: ProjectApiGetProjectMembersRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.getProjectMembers(requestParameters.project, options).then((request) => request(axios, basePath)); }, /** @@ -23287,7 +23804,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getProjectMetrics(requestParameters: ProjectApiGetProjectMetricsRequest, options?: AxiosRequestConfig): AxiosPromise { + getProjectMetrics(requestParameters: ProjectApiGetProjectMetricsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getProjectMetrics(requestParameters.projectId, requestParameters.eventType, requestParameters.resolution, requestParameters.from, requestParameters.to, options).then((request) => request(axios, basePath)); }, /** @@ -23296,7 +23813,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOrganizations(requestParameters: ProjectApiListOrganizationsRequest, options?: AxiosRequestConfig): AxiosPromise { + listOrganizations(requestParameters: ProjectApiListOrganizationsRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listOrganizations(requestParameters.projectId, options).then((request) => request(axios, basePath)); }, /** @@ -23306,7 +23823,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listProjectApiKeys(requestParameters: ProjectApiListProjectApiKeysRequest, options?: AxiosRequestConfig): AxiosPromise> { + listProjectApiKeys(requestParameters: ProjectApiListProjectApiKeysRequest, options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listProjectApiKeys(requestParameters.project, options).then((request) => request(axios, basePath)); }, /** @@ -23315,7 +23832,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listProjects(options?: AxiosRequestConfig): AxiosPromise> { + listProjects(options?: RawAxiosRequestConfig): AxiosPromise> { return localVarFp.listProjects(options).then((request) => request(axios, basePath)); }, /** @@ -23325,7 +23842,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchProject(requestParameters: ProjectApiPatchProjectRequest, options?: AxiosRequestConfig): AxiosPromise { + patchProject(requestParameters: ProjectApiPatchProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchProject(requestParameters.projectId, requestParameters.jsonPatch, options).then((request) => request(axios, basePath)); }, /** @@ -23335,7 +23852,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - purgeProject(requestParameters: ProjectApiPurgeProjectRequest, options?: AxiosRequestConfig): AxiosPromise { + purgeProject(requestParameters: ProjectApiPurgeProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.purgeProject(requestParameters.projectId, options).then((request) => request(axios, basePath)); }, /** @@ -23345,7 +23862,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - removeProjectMember(requestParameters: ProjectApiRemoveProjectMemberRequest, options?: AxiosRequestConfig): AxiosPromise { + removeProjectMember(requestParameters: ProjectApiRemoveProjectMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.removeProjectMember(requestParameters.project, requestParameters.member, options).then((request) => request(axios, basePath)); }, /** @@ -23355,7 +23872,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setActiveProjectInConsole(requestParameters: ProjectApiSetActiveProjectInConsoleRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + setActiveProjectInConsole(requestParameters: ProjectApiSetActiveProjectInConsoleRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setActiveProjectInConsole(requestParameters.setActiveProjectInConsoleBody, options).then((request) => request(axios, basePath)); }, /** @@ -23365,7 +23882,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setProject(requestParameters: ProjectApiSetProjectRequest, options?: AxiosRequestConfig): AxiosPromise { + setProject(requestParameters: ProjectApiSetProjectRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.setProject(requestParameters.projectId, requestParameters.setProject, options).then((request) => request(axios, basePath)); }, /** @@ -23375,7 +23892,7 @@ export const ProjectApiFactory = function (configuration?: Configuration, basePa * @param {*} [options] Override http request option. * @throws {RequiredError} */ - updateOrganization(requestParameters: ProjectApiUpdateOrganizationRequest, options?: AxiosRequestConfig): AxiosPromise { + updateOrganization(requestParameters: ProjectApiUpdateOrganizationRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.updateOrganization(requestParameters.projectId, requestParameters.organizationId, requestParameters.organizationBody, options).then((request) => request(axios, basePath)); }, }; @@ -23549,7 +24066,7 @@ export interface ProjectApiGetProjectMetricsRequest { readonly eventType: string /** - * The resolution of the buckets The minimum resolution is 1 hour. + * The resolution of the buckets The minimum resolution is 1 minute. * @type {string} * @memberof ProjectApiGetProjectMetrics */ @@ -23731,7 +24248,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public createOrganization(requestParameters: ProjectApiCreateOrganizationRequest, options?: AxiosRequestConfig) { + public createOrganization(requestParameters: ProjectApiCreateOrganizationRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).createOrganization(requestParameters.projectId, requestParameters.organizationBody, options).then((request) => request(this.axios, this.basePath)); } @@ -23743,7 +24260,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public createProject(requestParameters: ProjectApiCreateProjectRequest = {}, options?: AxiosRequestConfig) { + public createProject(requestParameters: ProjectApiCreateProjectRequest = {}, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).createProject(requestParameters.createProjectBody, options).then((request) => request(this.axios, this.basePath)); } @@ -23755,7 +24272,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public createProjectApiKey(requestParameters: ProjectApiCreateProjectApiKeyRequest, options?: AxiosRequestConfig) { + public createProjectApiKey(requestParameters: ProjectApiCreateProjectApiKeyRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).createProjectApiKey(requestParameters.project, requestParameters.createProjectApiKeyRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -23767,7 +24284,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public deleteOrganization(requestParameters: ProjectApiDeleteOrganizationRequest, options?: AxiosRequestConfig) { + public deleteOrganization(requestParameters: ProjectApiDeleteOrganizationRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).deleteOrganization(requestParameters.projectId, requestParameters.organizationId, options).then((request) => request(this.axios, this.basePath)); } @@ -23779,7 +24296,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public deleteProjectApiKey(requestParameters: ProjectApiDeleteProjectApiKeyRequest, options?: AxiosRequestConfig) { + public deleteProjectApiKey(requestParameters: ProjectApiDeleteProjectApiKeyRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).deleteProjectApiKey(requestParameters.project, requestParameters.tokenId, options).then((request) => request(this.axios, this.basePath)); } @@ -23790,7 +24307,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public getActiveProjectInConsole(options?: AxiosRequestConfig) { + public getActiveProjectInConsole(options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).getActiveProjectInConsole(options).then((request) => request(this.axios, this.basePath)); } @@ -23802,7 +24319,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public getOrganization(requestParameters: ProjectApiGetOrganizationRequest, options?: AxiosRequestConfig) { + public getOrganization(requestParameters: ProjectApiGetOrganizationRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).getOrganization(requestParameters.projectId, requestParameters.organizationId, options).then((request) => request(this.axios, this.basePath)); } @@ -23814,7 +24331,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public getProject(requestParameters: ProjectApiGetProjectRequest, options?: AxiosRequestConfig) { + public getProject(requestParameters: ProjectApiGetProjectRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).getProject(requestParameters.projectId, options).then((request) => request(this.axios, this.basePath)); } @@ -23826,7 +24343,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public getProjectMembers(requestParameters: ProjectApiGetProjectMembersRequest, options?: AxiosRequestConfig) { + public getProjectMembers(requestParameters: ProjectApiGetProjectMembersRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).getProjectMembers(requestParameters.project, options).then((request) => request(this.axios, this.basePath)); } @@ -23837,7 +24354,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public getProjectMetrics(requestParameters: ProjectApiGetProjectMetricsRequest, options?: AxiosRequestConfig) { + public getProjectMetrics(requestParameters: ProjectApiGetProjectMetricsRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).getProjectMetrics(requestParameters.projectId, requestParameters.eventType, requestParameters.resolution, requestParameters.from, requestParameters.to, options).then((request) => request(this.axios, this.basePath)); } @@ -23848,7 +24365,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public listOrganizations(requestParameters: ProjectApiListOrganizationsRequest, options?: AxiosRequestConfig) { + public listOrganizations(requestParameters: ProjectApiListOrganizationsRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).listOrganizations(requestParameters.projectId, options).then((request) => request(this.axios, this.basePath)); } @@ -23860,7 +24377,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public listProjectApiKeys(requestParameters: ProjectApiListProjectApiKeysRequest, options?: AxiosRequestConfig) { + public listProjectApiKeys(requestParameters: ProjectApiListProjectApiKeysRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).listProjectApiKeys(requestParameters.project, options).then((request) => request(this.axios, this.basePath)); } @@ -23871,7 +24388,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public listProjects(options?: AxiosRequestConfig) { + public listProjects(options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).listProjects(options).then((request) => request(this.axios, this.basePath)); } @@ -23883,7 +24400,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public patchProject(requestParameters: ProjectApiPatchProjectRequest, options?: AxiosRequestConfig) { + public patchProject(requestParameters: ProjectApiPatchProjectRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).patchProject(requestParameters.projectId, requestParameters.jsonPatch, options).then((request) => request(this.axios, this.basePath)); } @@ -23895,7 +24412,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public purgeProject(requestParameters: ProjectApiPurgeProjectRequest, options?: AxiosRequestConfig) { + public purgeProject(requestParameters: ProjectApiPurgeProjectRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).purgeProject(requestParameters.projectId, options).then((request) => request(this.axios, this.basePath)); } @@ -23907,7 +24424,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public removeProjectMember(requestParameters: ProjectApiRemoveProjectMemberRequest, options?: AxiosRequestConfig) { + public removeProjectMember(requestParameters: ProjectApiRemoveProjectMemberRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).removeProjectMember(requestParameters.project, requestParameters.member, options).then((request) => request(this.axios, this.basePath)); } @@ -23919,7 +24436,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public setActiveProjectInConsole(requestParameters: ProjectApiSetActiveProjectInConsoleRequest = {}, options?: AxiosRequestConfig) { + public setActiveProjectInConsole(requestParameters: ProjectApiSetActiveProjectInConsoleRequest = {}, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).setActiveProjectInConsole(requestParameters.setActiveProjectInConsoleBody, options).then((request) => request(this.axios, this.basePath)); } @@ -23931,7 +24448,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public setProject(requestParameters: ProjectApiSetProjectRequest, options?: AxiosRequestConfig) { + public setProject(requestParameters: ProjectApiSetProjectRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).setProject(requestParameters.projectId, requestParameters.setProject, options).then((request) => request(this.axios, this.basePath)); } @@ -23943,7 +24460,7 @@ export class ProjectApi extends BaseAPI { * @throws {RequiredError} * @memberof ProjectApi */ - public updateOrganization(requestParameters: ProjectApiUpdateOrganizationRequest, options?: AxiosRequestConfig) { + public updateOrganization(requestParameters: ProjectApiUpdateOrganizationRequest, options?: RawAxiosRequestConfig) { return ProjectApiFp(this.configuration).updateOrganization(requestParameters.projectId, requestParameters.organizationId, requestParameters.organizationBody, options).then((request) => request(this.axios, this.basePath)); } } @@ -23963,7 +24480,7 @@ export const RelationshipApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkOplSyntax: async (body?: string, options: AxiosRequestConfig = {}): Promise => { + checkOplSyntax: async (body?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/opl/syntax/check`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24001,7 +24518,7 @@ export const RelationshipApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRelationship: async (createRelationshipBody?: CreateRelationshipBody, options: AxiosRequestConfig = {}): Promise => { + createRelationship: async (createRelationshipBody?: CreateRelationshipBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/relation-tuples`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24045,7 +24562,7 @@ export const RelationshipApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRelationships: async (namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options: AxiosRequestConfig = {}): Promise => { + deleteRelationships: async (namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/relation-tuples`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24116,7 +24633,7 @@ export const RelationshipApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRelationships: async (pageToken?: string, pageSize?: number, namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options: AxiosRequestConfig = {}): Promise => { + getRelationships: async (pageToken?: string, pageSize?: number, namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/relation-tuples`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24186,7 +24703,7 @@ export const RelationshipApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listRelationshipNamespaces: async (options: AxiosRequestConfig = {}): Promise => { + listRelationshipNamespaces: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/namespaces`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24221,7 +24738,7 @@ export const RelationshipApiAxiosParamCreator = function (configuration?: Config * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchRelationships: async (relationshipPatch?: Array, options: AxiosRequestConfig = {}): Promise => { + patchRelationships: async (relationshipPatch?: Array, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/relation-tuples`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24269,7 +24786,7 @@ export const RelationshipApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async checkOplSyntax(body?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async checkOplSyntax(body?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.checkOplSyntax(body, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['RelationshipApi.checkOplSyntax']?.[index]?.url; @@ -24282,7 +24799,7 @@ export const RelationshipApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createRelationship(createRelationshipBody?: CreateRelationshipBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createRelationship(createRelationshipBody?: CreateRelationshipBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createRelationship(createRelationshipBody, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['RelationshipApi.createRelationship']?.[index]?.url; @@ -24301,7 +24818,7 @@ export const RelationshipApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteRelationships(namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteRelationships(namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteRelationships(namespace, object, relation, subjectId, subjectSetNamespace, subjectSetObject, subjectSetRelation, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['RelationshipApi.deleteRelationships']?.[index]?.url; @@ -24322,7 +24839,7 @@ export const RelationshipApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getRelationships(pageToken?: string, pageSize?: number, namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getRelationships(pageToken?: string, pageSize?: number, namespace?: string, object?: string, relation?: string, subjectId?: string, subjectSetNamespace?: string, subjectSetObject?: string, subjectSetRelation?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getRelationships(pageToken, pageSize, namespace, object, relation, subjectId, subjectSetNamespace, subjectSetObject, subjectSetRelation, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['RelationshipApi.getRelationships']?.[index]?.url; @@ -24334,7 +24851,7 @@ export const RelationshipApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listRelationshipNamespaces(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async listRelationshipNamespaces(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.listRelationshipNamespaces(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['RelationshipApi.listRelationshipNamespaces']?.[index]?.url; @@ -24347,7 +24864,7 @@ export const RelationshipApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchRelationships(relationshipPatch?: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchRelationships(relationshipPatch?: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchRelationships(relationshipPatch, options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['RelationshipApi.patchRelationships']?.[index]?.url; @@ -24370,7 +24887,7 @@ export const RelationshipApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - checkOplSyntax(requestParameters: RelationshipApiCheckOplSyntaxRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + checkOplSyntax(requestParameters: RelationshipApiCheckOplSyntaxRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.checkOplSyntax(requestParameters.body, options).then((request) => request(axios, basePath)); }, /** @@ -24380,7 +24897,7 @@ export const RelationshipApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createRelationship(requestParameters: RelationshipApiCreateRelationshipRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + createRelationship(requestParameters: RelationshipApiCreateRelationshipRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.createRelationship(requestParameters.createRelationshipBody, options).then((request) => request(axios, basePath)); }, /** @@ -24390,7 +24907,7 @@ export const RelationshipApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteRelationships(requestParameters: RelationshipApiDeleteRelationshipsRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + deleteRelationships(requestParameters: RelationshipApiDeleteRelationshipsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.deleteRelationships(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, options).then((request) => request(axios, basePath)); }, /** @@ -24400,7 +24917,7 @@ export const RelationshipApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getRelationships(requestParameters: RelationshipApiGetRelationshipsRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + getRelationships(requestParameters: RelationshipApiGetRelationshipsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getRelationships(requestParameters.pageToken, requestParameters.pageSize, requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, options).then((request) => request(axios, basePath)); }, /** @@ -24409,7 +24926,7 @@ export const RelationshipApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listRelationshipNamespaces(options?: AxiosRequestConfig): AxiosPromise { + listRelationshipNamespaces(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.listRelationshipNamespaces(options).then((request) => request(axios, basePath)); }, /** @@ -24419,7 +24936,7 @@ export const RelationshipApiFactory = function (configuration?: Configuration, b * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchRelationships(requestParameters: RelationshipApiPatchRelationshipsRequest = {}, options?: AxiosRequestConfig): AxiosPromise { + patchRelationships(requestParameters: RelationshipApiPatchRelationshipsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.patchRelationships(requestParameters.relationshipPatch, options).then((request) => request(axios, basePath)); }, }; @@ -24608,7 +25125,7 @@ export class RelationshipApi extends BaseAPI { * @throws {RequiredError} * @memberof RelationshipApi */ - public checkOplSyntax(requestParameters: RelationshipApiCheckOplSyntaxRequest = {}, options?: AxiosRequestConfig) { + public checkOplSyntax(requestParameters: RelationshipApiCheckOplSyntaxRequest = {}, options?: RawAxiosRequestConfig) { return RelationshipApiFp(this.configuration).checkOplSyntax(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } @@ -24620,7 +25137,7 @@ export class RelationshipApi extends BaseAPI { * @throws {RequiredError} * @memberof RelationshipApi */ - public createRelationship(requestParameters: RelationshipApiCreateRelationshipRequest = {}, options?: AxiosRequestConfig) { + public createRelationship(requestParameters: RelationshipApiCreateRelationshipRequest = {}, options?: RawAxiosRequestConfig) { return RelationshipApiFp(this.configuration).createRelationship(requestParameters.createRelationshipBody, options).then((request) => request(this.axios, this.basePath)); } @@ -24632,7 +25149,7 @@ export class RelationshipApi extends BaseAPI { * @throws {RequiredError} * @memberof RelationshipApi */ - public deleteRelationships(requestParameters: RelationshipApiDeleteRelationshipsRequest = {}, options?: AxiosRequestConfig) { + public deleteRelationships(requestParameters: RelationshipApiDeleteRelationshipsRequest = {}, options?: RawAxiosRequestConfig) { return RelationshipApiFp(this.configuration).deleteRelationships(requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, options).then((request) => request(this.axios, this.basePath)); } @@ -24644,7 +25161,7 @@ export class RelationshipApi extends BaseAPI { * @throws {RequiredError} * @memberof RelationshipApi */ - public getRelationships(requestParameters: RelationshipApiGetRelationshipsRequest = {}, options?: AxiosRequestConfig) { + public getRelationships(requestParameters: RelationshipApiGetRelationshipsRequest = {}, options?: RawAxiosRequestConfig) { return RelationshipApiFp(this.configuration).getRelationships(requestParameters.pageToken, requestParameters.pageSize, requestParameters.namespace, requestParameters.object, requestParameters.relation, requestParameters.subjectId, requestParameters.subjectSetNamespace, requestParameters.subjectSetObject, requestParameters.subjectSetRelation, options).then((request) => request(this.axios, this.basePath)); } @@ -24655,7 +25172,7 @@ export class RelationshipApi extends BaseAPI { * @throws {RequiredError} * @memberof RelationshipApi */ - public listRelationshipNamespaces(options?: AxiosRequestConfig) { + public listRelationshipNamespaces(options?: RawAxiosRequestConfig) { return RelationshipApiFp(this.configuration).listRelationshipNamespaces(options).then((request) => request(this.axios, this.basePath)); } @@ -24667,7 +25184,7 @@ export class RelationshipApi extends BaseAPI { * @throws {RequiredError} * @memberof RelationshipApi */ - public patchRelationships(requestParameters: RelationshipApiPatchRelationshipsRequest = {}, options?: AxiosRequestConfig) { + public patchRelationships(requestParameters: RelationshipApiPatchRelationshipsRequest = {}, options?: RawAxiosRequestConfig) { return RelationshipApiFp(this.configuration).patchRelationships(requestParameters.relationshipPatch, options).then((request) => request(this.axios, this.basePath)); } } @@ -24686,7 +25203,7 @@ export const WellknownApiAxiosParamCreator = function (configuration?: Configura * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverJsonWebKeys: async (options: AxiosRequestConfig = {}): Promise => { + discoverJsonWebKeys: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/.well-known/jwks.json`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -24726,7 +25243,7 @@ export const WellknownApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async discoverJsonWebKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async discoverJsonWebKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.discoverJsonWebKeys(options); const index = configuration?.serverIndex ?? 0; const operationBasePath = operationServerMap['WellknownApi.discoverJsonWebKeys']?.[index]?.url; @@ -24748,7 +25265,7 @@ export const WellknownApiFactory = function (configuration?: Configuration, base * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverJsonWebKeys(options?: AxiosRequestConfig): AxiosPromise { + discoverJsonWebKeys(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.discoverJsonWebKeys(options).then((request) => request(axios, basePath)); }, }; @@ -24768,7 +25285,7 @@ export class WellknownApi extends BaseAPI { * @throws {RequiredError} * @memberof WellknownApi */ - public discoverJsonWebKeys(options?: AxiosRequestConfig) { + public discoverJsonWebKeys(options?: RawAxiosRequestConfig) { return WellknownApiFp(this.configuration).discoverJsonWebKeys(options).then((request) => request(this.axios, this.basePath)); } } diff --git a/clients/client/typescript/base.ts b/clients/client/typescript/base.ts index 4d401d089a9..0f9331a9fcf 100644 --- a/clients/client/typescript/base.ts +++ b/clients/client/typescript/base.ts @@ -4,7 +4,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore -import type { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; export const BASE_PATH = "https://playground.projects.oryapis.com".replace(/\/+$/, ""); @@ -39,7 +39,7 @@ export const COLLECTION_FORMATS = { */ export interface RequestArgs { url: string; - options: AxiosRequestConfig; + options: RawAxiosRequestConfig; } /** diff --git a/clients/client/typescript/common.ts b/clients/client/typescript/common.ts index 8d88d83ab63..fa5c8e56b96 100644 --- a/clients/client/typescript/common.ts +++ b/clients/client/typescript/common.ts @@ -4,7 +4,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -144,7 +144,7 @@ export const toPathString = function (url: URL) { */ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || axios.defaults.baseURL || basePath) + axiosArgs.url}; + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; return axios.request(axiosRequestArgs); }; } diff --git a/clients/client/typescript/configuration.ts b/clients/client/typescript/configuration.ts index c6644e712e2..91d321483e3 100644 --- a/clients/client/typescript/configuration.ts +++ b/clients/client/typescript/configuration.ts @@ -4,7 +4,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/typescript/index.ts b/clients/client/typescript/index.ts index c23c1a79e4b..35f8d0ba7e9 100644 --- a/clients/client/typescript/index.ts +++ b/clients/client/typescript/index.ts @@ -4,7 +4,7 @@ * Ory APIs * Documentation for all public and administrative Ory APIs. Administrative APIs can only be accessed with a valid Personal Access Token. Public APIs are mostly used in browsers. * - * The version of the OpenAPI document: v1.5.1 + * The version of the OpenAPI document: v1.8.1 * Contact: support@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/client/typescript/package-lock.json b/clients/client/typescript/package-lock.json index d884c67e8a1..daaac659797 100644 --- a/clients/client/typescript/package-lock.json +++ b/clients/client/typescript/package-lock.json @@ -1,15 +1,15 @@ { "name": "@ory/client", - "version": "v1.5.1", + "version": "v1.8.1", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@ory/client", - "version": "v1.5.1", + "version": "v1.8.1", "license": "Apache-2.0", "dependencies": { - "axios": "^0.27.2" + "axios": "^1.6.1" }, "devDependencies": { "@types/node": "^12.11.5", @@ -28,12 +28,13 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "node_modules/axios": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", - "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", "dependencies": { - "follow-redirects": "^1.14.9", - "form-data": "^4.0.0" + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "node_modules/combined-stream": { @@ -56,9 +57,9 @@ } }, "node_modules/follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "funding": [ { "type": "individual", @@ -106,6 +107,11 @@ "node": ">= 0.6" } }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/typescript": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", @@ -133,12 +139,13 @@ "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, "axios": { - "version": "0.27.2", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.27.2.tgz", - "integrity": "sha512-t+yRIyySRTp/wua5xEr+z1q60QmLq8ABsS5O9Me1AsE5dfKqgnCFzwiCZZ/cGNd1lq4/7akDWMxdhVlucjmnOQ==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", "requires": { - "follow-redirects": "^1.14.9", - "form-data": "^4.0.0" + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" } }, "combined-stream": { @@ -155,9 +162,9 @@ "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" }, "follow-redirects": { - "version": "1.15.4", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.4.tgz", - "integrity": "sha512-Cr4D/5wlrb0z9dgERpUL3LrmPKVDsETIJhaCMeDfuFYcqa5bldGV6wBsAN6X/vxlXQtFBMrXdXxdL8CbDTGniw==" + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==" }, "form-data": { "version": "4.0.0", @@ -182,6 +189,11 @@ "mime-db": "1.52.0" } }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "typescript": { "version": "4.9.5", "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", diff --git a/clients/client/typescript/package.json b/clients/client/typescript/package.json index f1107fcaf51..3935283b59f 100644 --- a/clients/client/typescript/package.json +++ b/clients/client/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@ory/client", - "version": "v1.5.1", + "version": "v1.8.1", "description": "OpenAPI client for @ory/client", "author": "ORY GmbH", "repository": { @@ -24,7 +24,7 @@ "prepare": "npm run build" }, "dependencies": { - "axios": "^0.27.2" + "axios": "^1.6.1" }, "devDependencies": { "@types/node": "^12.11.5", diff --git a/clients/hydra/dart/README.md b/clients/hydra/dart/README.md index 320272946c0..2fba5564f55 100644 --- a/clients/hydra/dart/README.md +++ b/clients/hydra/dart/README.md @@ -4,7 +4,7 @@ Documentation for all of Ory Hydra's APIs. This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v2.2.0-rc.3 +- API version: v2.2.0 - Build package: org.openapitools.codegen.languages.DartDioClientCodegen ## Requirements @@ -18,7 +18,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https:// To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml ```yaml dependencies: - ory_hydra_client: 2.2.0-rc.3 + ory_hydra_client: 2.2.0 ``` ### Github diff --git a/clients/hydra/dart/doc/AcceptOAuth2ConsentRequest.md b/clients/hydra/dart/doc/AcceptOAuth2ConsentRequest.md index c7535b3bce7..38c3ff16810 100644 --- a/clients/hydra/dart/doc/AcceptOAuth2ConsentRequest.md +++ b/clients/hydra/dart/doc/AcceptOAuth2ConsentRequest.md @@ -8,6 +8,7 @@ import 'package:ory_hydra_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | [**JsonObject**](.md) | | [optional] **grantAccessTokenAudience** | **BuiltList<String>** | | [optional] **grantScope** | **BuiltList<String>** | | [optional] **handledAt** | [**DateTime**](DateTime.md) | | [optional] diff --git a/clients/hydra/dart/doc/OAuth2Api.md b/clients/hydra/dart/doc/OAuth2Api.md index 32cd082efba..9c45f7cb368 100644 --- a/clients/hydra/dart/doc/OAuth2Api.md +++ b/clients/hydra/dart/doc/OAuth2Api.md @@ -1069,7 +1069,7 @@ No authorization required Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Example ```dart diff --git a/clients/hydra/dart/doc/OAuth2Client.md b/clients/hydra/dart/doc/OAuth2Client.md index a81ba2a3689..5f734f592d2 100644 --- a/clients/hydra/dart/doc/OAuth2Client.md +++ b/clients/hydra/dart/doc/OAuth2Client.md @@ -17,7 +17,7 @@ Name | Type | Description | Notes **backchannelLogoutSessionRequired** | **bool** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **backchannelLogoutUri** | **String** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **clientCredentialsGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] -**clientId** | **String** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**clientId** | **String** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **clientName** | **String** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **clientSecret** | **String** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **clientSecretExpiresAt** | **int** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -49,6 +49,7 @@ Name | Type | Description | Notes **scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sectorIdentifierUri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subjectType** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **tokenEndpointAuthMethod** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to 'client_secret_basic'] **tokenEndpointAuthSigningAlg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/hydra/dart/doc/OAuth2ConsentSession.md b/clients/hydra/dart/doc/OAuth2ConsentSession.md index 2b0284c42a5..7f55f91c35f 100644 --- a/clients/hydra/dart/doc/OAuth2ConsentSession.md +++ b/clients/hydra/dart/doc/OAuth2ConsentSession.md @@ -9,6 +9,7 @@ import 'package:ory_hydra_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consentRequest** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**context** | [**JsonObject**](.md) | | [optional] **expiresAt** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **grantAccessTokenAudience** | **BuiltList<String>** | | [optional] **grantScope** | **BuiltList<String>** | | [optional] diff --git a/clients/hydra/dart/doc/OAuth2LoginRequest.md b/clients/hydra/dart/doc/OAuth2LoginRequest.md index 8bce661f47a..0a18e0dc398 100644 --- a/clients/hydra/dart/doc/OAuth2LoginRequest.md +++ b/clients/hydra/dart/doc/OAuth2LoginRequest.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **client** | [**OAuth2Client**](OAuth2Client.md) | | **oidcContext** | [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] **requestUrl** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | -**requestedAccessTokenAudience** | **BuiltList<String>** | | -**requestedScope** | **BuiltList<String>** | | +**requestedAccessTokenAudience** | **BuiltList<String>** | | [optional] +**requestedScope** | **BuiltList<String>** | | [optional] **sessionId** | **String** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] **skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | **subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | diff --git a/clients/hydra/dart/doc/OAuth2TokenExchange.md b/clients/hydra/dart/doc/OAuth2TokenExchange.md index b7be0de064f..235b89baa60 100644 --- a/clients/hydra/dart/doc/OAuth2TokenExchange.md +++ b/clients/hydra/dart/doc/OAuth2TokenExchange.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessToken** | **String** | The access token issued by the authorization server. | [optional] **expiresIn** | **int** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**idToken** | **int** | To retrieve a refresh token request the id_token scope. | [optional] +**idToken** | **String** | To retrieve a refresh token request the id_token scope. | [optional] **refreshToken** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] **scope** | **String** | The scope of the access token | [optional] **tokenType** | **String** | The type of the token issued | [optional] diff --git a/clients/hydra/dart/lib/src/api/o_auth2_api.dart b/clients/hydra/dart/lib/src/api/o_auth2_api.dart index 67094c76cf5..401eaf9df24 100644 --- a/clients/hydra/dart/lib/src/api/o_auth2_api.dart +++ b/clients/hydra/dart/lib/src/api/o_auth2_api.dart @@ -1919,7 +1919,7 @@ class OAuth2Api { } /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Parameters: /// * [subject] - OAuth 2.0 Subject The subject to revoke authentication sessions for. diff --git a/clients/hydra/dart/lib/src/model/accept_o_auth2_consent_request.dart b/clients/hydra/dart/lib/src/model/accept_o_auth2_consent_request.dart index 3aaa7491e1d..7deeb2eafa5 100644 --- a/clients/hydra/dart/lib/src/model/accept_o_auth2_consent_request.dart +++ b/clients/hydra/dart/lib/src/model/accept_o_auth2_consent_request.dart @@ -5,6 +5,7 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; import 'package:ory_hydra_client/src/model/accept_o_auth2_consent_request_session.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -13,6 +14,7 @@ part 'accept_o_auth2_consent_request.g.dart'; /// AcceptOAuth2ConsentRequest /// /// Properties: +/// * [context] /// * [grantAccessTokenAudience] /// * [grantScope] /// * [handledAt] @@ -21,6 +23,9 @@ part 'accept_o_auth2_consent_request.g.dart'; /// * [session] @BuiltValue() abstract class AcceptOAuth2ConsentRequest implements Built { + @BuiltValueField(wireName: r'context') + JsonObject? get context; + @BuiltValueField(wireName: r'grant_access_token_audience') BuiltList? get grantAccessTokenAudience; @@ -64,6 +69,13 @@ class _$AcceptOAuth2ConsentRequestSerializer implements PrimitiveSerializer? grantAccessTokenAudience; @override @@ -25,7 +27,8 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { (new AcceptOAuth2ConsentRequestBuilder()..update(updates))._build(); _$AcceptOAuth2ConsentRequest._( - {this.grantAccessTokenAudience, + {this.context, + this.grantAccessTokenAudience, this.grantScope, this.handledAt, this.remember, @@ -46,6 +49,7 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { bool operator ==(Object other) { if (identical(other, this)) return true; return other is AcceptOAuth2ConsentRequest && + context == other.context && grantAccessTokenAudience == other.grantAccessTokenAudience && grantScope == other.grantScope && handledAt == other.handledAt && @@ -57,6 +61,7 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { @override int get hashCode { var _$hash = 0; + _$hash = $jc(_$hash, context.hashCode); _$hash = $jc(_$hash, grantAccessTokenAudience.hashCode); _$hash = $jc(_$hash, grantScope.hashCode); _$hash = $jc(_$hash, handledAt.hashCode); @@ -70,6 +75,7 @@ class _$AcceptOAuth2ConsentRequest extends AcceptOAuth2ConsentRequest { @override String toString() { return (newBuiltValueToStringHelper(r'AcceptOAuth2ConsentRequest') + ..add('context', context) ..add('grantAccessTokenAudience', grantAccessTokenAudience) ..add('grantScope', grantScope) ..add('handledAt', handledAt) @@ -85,6 +91,10 @@ class AcceptOAuth2ConsentRequestBuilder Builder { _$AcceptOAuth2ConsentRequest? _$v; + JsonObject? _context; + JsonObject? get context => _$this._context; + set context(JsonObject? context) => _$this._context = context; + ListBuilder? _grantAccessTokenAudience; ListBuilder get grantAccessTokenAudience => _$this._grantAccessTokenAudience ??= new ListBuilder(); @@ -122,6 +132,7 @@ class AcceptOAuth2ConsentRequestBuilder AcceptOAuth2ConsentRequestBuilder get _$this { final $v = _$v; if ($v != null) { + _context = $v.context; _grantAccessTokenAudience = $v.grantAccessTokenAudience?.toBuilder(); _grantScope = $v.grantScope?.toBuilder(); _handledAt = $v.handledAt; @@ -152,6 +163,7 @@ class AcceptOAuth2ConsentRequestBuilder try { _$result = _$v ?? new _$AcceptOAuth2ConsentRequest._( + context: context, grantAccessTokenAudience: _grantAccessTokenAudience?.build(), grantScope: _grantScope?.build(), handledAt: handledAt, diff --git a/clients/hydra/dart/lib/src/model/o_auth2_client.dart b/clients/hydra/dart/lib/src/model/o_auth2_client.dart index e903079b961..df9f585fa7b 100644 --- a/clients/hydra/dart/lib/src/model/o_auth2_client.dart +++ b/clients/hydra/dart/lib/src/model/o_auth2_client.dart @@ -22,7 +22,7 @@ part 'o_auth2_client.g.dart'; /// * [backchannelLogoutSessionRequired] - OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. /// * [backchannelLogoutUri] - OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. /// * [clientCredentialsGrantAccessTokenLifespan] - Specify a time duration in milliseconds, seconds, minutes, hours. -/// * [clientId] - OAuth 2.0 Client ID The ID is autogenerated and immutable. +/// * [clientId] - OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. /// * [clientName] - OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. /// * [clientSecret] - OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. /// * [clientSecretExpiresAt] - OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. @@ -54,6 +54,7 @@ part 'o_auth2_client.g.dart'; /// * [scope] - OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. /// * [sectorIdentifierUri] - OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. /// * [skipConsent] - SkipConsent skips the consent screen for this client. This field can only be set from the admin API. +/// * [skipLogoutConsent] - SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. /// * [subjectType] - OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. /// * [tokenEndpointAuthMethod] - OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. /// * [tokenEndpointAuthSigningAlg] - OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. @@ -96,7 +97,7 @@ abstract class OAuth2Client implements Built @BuiltValueField(wireName: r'client_credentials_grant_access_token_lifespan') String? get clientCredentialsGrantAccessTokenLifespan; - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. @BuiltValueField(wireName: r'client_id') String? get clientId; @@ -217,6 +218,10 @@ abstract class OAuth2Client implements Built @BuiltValueField(wireName: r'skip_consent') bool? get skipConsent; + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + @BuiltValueField(wireName: r'skip_logout_consent') + bool? get skipLogoutConsent; + /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. @BuiltValueField(wireName: r'subject_type') String? get subjectType; @@ -552,6 +557,13 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { specifiedType: const FullType(bool), ); } + if (object.skipLogoutConsent != null) { + yield r'skip_logout_consent'; + yield serializers.serialize( + object.skipLogoutConsent, + specifiedType: const FullType(bool), + ); + } if (object.subjectType != null) { yield r'subject_type'; yield serializers.serialize( @@ -906,6 +918,13 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { ) as bool; result.skipConsent = valueDes; break; + case r'skip_logout_consent': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.skipLogoutConsent = valueDes; + break; case r'subject_type': final valueDes = serializers.deserialize( value, diff --git a/clients/hydra/dart/lib/src/model/o_auth2_client.g.dart b/clients/hydra/dart/lib/src/model/o_auth2_client.g.dart index c455437bb57..60e04cb59a6 100644 --- a/clients/hydra/dart/lib/src/model/o_auth2_client.g.dart +++ b/clients/hydra/dart/lib/src/model/o_auth2_client.g.dart @@ -90,6 +90,8 @@ class _$OAuth2Client extends OAuth2Client { @override final bool? skipConsent; @override + final bool? skipLogoutConsent; + @override final String? subjectType; @override final String? tokenEndpointAuthMethod; @@ -147,6 +149,7 @@ class _$OAuth2Client extends OAuth2Client { this.scope, this.sectorIdentifierUri, this.skipConsent, + this.skipLogoutConsent, this.subjectType, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, @@ -218,6 +221,7 @@ class _$OAuth2Client extends OAuth2Client { scope == other.scope && sectorIdentifierUri == other.sectorIdentifierUri && skipConsent == other.skipConsent && + skipLogoutConsent == other.skipLogoutConsent && subjectType == other.subjectType && tokenEndpointAuthMethod == other.tokenEndpointAuthMethod && tokenEndpointAuthSigningAlg == other.tokenEndpointAuthSigningAlg && @@ -270,6 +274,7 @@ class _$OAuth2Client extends OAuth2Client { _$hash = $jc(_$hash, scope.hashCode); _$hash = $jc(_$hash, sectorIdentifierUri.hashCode); _$hash = $jc(_$hash, skipConsent.hashCode); + _$hash = $jc(_$hash, skipLogoutConsent.hashCode); _$hash = $jc(_$hash, subjectType.hashCode); _$hash = $jc(_$hash, tokenEndpointAuthMethod.hashCode); _$hash = $jc(_$hash, tokenEndpointAuthSigningAlg.hashCode); @@ -335,6 +340,7 @@ class _$OAuth2Client extends OAuth2Client { ..add('scope', scope) ..add('sectorIdentifierUri', sectorIdentifierUri) ..add('skipConsent', skipConsent) + ..add('skipLogoutConsent', skipLogoutConsent) ..add('subjectType', subjectType) ..add('tokenEndpointAuthMethod', tokenEndpointAuthMethod) ..add('tokenEndpointAuthSigningAlg', tokenEndpointAuthSigningAlg) @@ -581,6 +587,11 @@ class OAuth2ClientBuilder bool? get skipConsent => _$this._skipConsent; set skipConsent(bool? skipConsent) => _$this._skipConsent = skipConsent; + bool? _skipLogoutConsent; + bool? get skipLogoutConsent => _$this._skipLogoutConsent; + set skipLogoutConsent(bool? skipLogoutConsent) => + _$this._skipLogoutConsent = skipLogoutConsent; + String? _subjectType; String? get subjectType => _$this._subjectType; set subjectType(String? subjectType) => _$this._subjectType = subjectType; @@ -663,6 +674,7 @@ class OAuth2ClientBuilder _scope = $v.scope; _sectorIdentifierUri = $v.sectorIdentifierUri; _skipConsent = $v.skipConsent; + _skipLogoutConsent = $v.skipLogoutConsent; _subjectType = $v.subjectType; _tokenEndpointAuthMethod = $v.tokenEndpointAuthMethod; _tokenEndpointAuthSigningAlg = $v.tokenEndpointAuthSigningAlg; @@ -745,6 +757,7 @@ class OAuth2ClientBuilder scope: scope, sectorIdentifierUri: sectorIdentifierUri, skipConsent: skipConsent, + skipLogoutConsent: skipLogoutConsent, subjectType: subjectType, tokenEndpointAuthMethod: tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg: tokenEndpointAuthSigningAlg, diff --git a/clients/hydra/dart/lib/src/model/o_auth2_consent_session.dart b/clients/hydra/dart/lib/src/model/o_auth2_consent_session.dart index 9f46362f5a2..785dce3ac14 100644 --- a/clients/hydra/dart/lib/src/model/o_auth2_consent_session.dart +++ b/clients/hydra/dart/lib/src/model/o_auth2_consent_session.dart @@ -7,6 +7,7 @@ import 'package:ory_hydra_client/src/model/o_auth2_consent_session_expires_at.da import 'package:built_collection/built_collection.dart'; import 'package:ory_hydra_client/src/model/accept_o_auth2_consent_request_session.dart'; import 'package:ory_hydra_client/src/model/o_auth2_consent_request.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -16,6 +17,7 @@ part 'o_auth2_consent_session.g.dart'; /// /// Properties: /// * [consentRequest] +/// * [context] /// * [expiresAt] /// * [grantAccessTokenAudience] /// * [grantScope] @@ -28,6 +30,9 @@ abstract class OAuth2ConsentSession implements Built? grantAccessTokenAudience; @@ -30,6 +32,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { _$OAuth2ConsentSession._( {this.consentRequest, + this.context, this.expiresAt, this.grantAccessTokenAudience, this.grantScope, @@ -53,6 +56,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { if (identical(other, this)) return true; return other is OAuth2ConsentSession && consentRequest == other.consentRequest && + context == other.context && expiresAt == other.expiresAt && grantAccessTokenAudience == other.grantAccessTokenAudience && grantScope == other.grantScope && @@ -66,6 +70,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, consentRequest.hashCode); + _$hash = $jc(_$hash, context.hashCode); _$hash = $jc(_$hash, expiresAt.hashCode); _$hash = $jc(_$hash, grantAccessTokenAudience.hashCode); _$hash = $jc(_$hash, grantScope.hashCode); @@ -81,6 +86,7 @@ class _$OAuth2ConsentSession extends OAuth2ConsentSession { String toString() { return (newBuiltValueToStringHelper(r'OAuth2ConsentSession') ..add('consentRequest', consentRequest) + ..add('context', context) ..add('expiresAt', expiresAt) ..add('grantAccessTokenAudience', grantAccessTokenAudience) ..add('grantScope', grantScope) @@ -102,6 +108,10 @@ class OAuth2ConsentSessionBuilder set consentRequest(OAuth2ConsentRequestBuilder? consentRequest) => _$this._consentRequest = consentRequest; + JsonObject? _context; + JsonObject? get context => _$this._context; + set context(JsonObject? context) => _$this._context = context; + OAuth2ConsentSessionExpiresAtBuilder? _expiresAt; OAuth2ConsentSessionExpiresAtBuilder get expiresAt => _$this._expiresAt ??= new OAuth2ConsentSessionExpiresAtBuilder(); @@ -146,6 +156,7 @@ class OAuth2ConsentSessionBuilder final $v = _$v; if ($v != null) { _consentRequest = $v.consentRequest?.toBuilder(); + _context = $v.context; _expiresAt = $v.expiresAt?.toBuilder(); _grantAccessTokenAudience = $v.grantAccessTokenAudience?.toBuilder(); _grantScope = $v.grantScope?.toBuilder(); @@ -178,6 +189,7 @@ class OAuth2ConsentSessionBuilder _$result = _$v ?? new _$OAuth2ConsentSession._( consentRequest: _consentRequest?.build(), + context: context, expiresAt: _expiresAt?.build(), grantAccessTokenAudience: _grantAccessTokenAudience?.build(), grantScope: _grantScope?.build(), @@ -190,6 +202,7 @@ class OAuth2ConsentSessionBuilder try { _$failedField = 'consentRequest'; _consentRequest?.build(); + _$failedField = 'expiresAt'; _expiresAt?.build(); _$failedField = 'grantAccessTokenAudience'; diff --git a/clients/hydra/dart/lib/src/model/o_auth2_login_request.dart b/clients/hydra/dart/lib/src/model/o_auth2_login_request.dart index b36e1ad039d..63f4507b8f6 100644 --- a/clients/hydra/dart/lib/src/model/o_auth2_login_request.dart +++ b/clients/hydra/dart/lib/src/model/o_auth2_login_request.dart @@ -40,10 +40,10 @@ abstract class OAuth2LoginRequest implements Built get requestedAccessTokenAudience; + BuiltList? get requestedAccessTokenAudience; @BuiltValueField(wireName: r'requested_scope') - BuiltList get requestedScope; + BuiltList? get requestedScope; /// SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. @BuiltValueField(wireName: r'session_id') @@ -102,16 +102,20 @@ class _$OAuth2LoginRequestSerializer implements PrimitiveSerializer requestedAccessTokenAudience; + final BuiltList? requestedAccessTokenAudience; @override - final BuiltList requestedScope; + final BuiltList? requestedScope; @override final String? sessionId; @override @@ -35,8 +35,8 @@ class _$OAuth2LoginRequest extends OAuth2LoginRequest { required this.client, this.oidcContext, required this.requestUrl, - required this.requestedAccessTokenAudience, - required this.requestedScope, + this.requestedAccessTokenAudience, + this.requestedScope, this.sessionId, required this.skip, required this.subject}) @@ -47,10 +47,6 @@ class _$OAuth2LoginRequest extends OAuth2LoginRequest { client, r'OAuth2LoginRequest', 'client'); BuiltValueNullFieldError.checkNotNull( requestUrl, r'OAuth2LoginRequest', 'requestUrl'); - BuiltValueNullFieldError.checkNotNull(requestedAccessTokenAudience, - r'OAuth2LoginRequest', 'requestedAccessTokenAudience'); - BuiltValueNullFieldError.checkNotNull( - requestedScope, r'OAuth2LoginRequest', 'requestedScope'); BuiltValueNullFieldError.checkNotNull(skip, r'OAuth2LoginRequest', 'skip'); BuiltValueNullFieldError.checkNotNull( subject, r'OAuth2LoginRequest', 'subject'); @@ -174,8 +170,8 @@ class OAuth2LoginRequestBuilder _oidcContext = $v.oidcContext?.toBuilder(); _requestUrl = $v.requestUrl; _requestedAccessTokenAudience = - $v.requestedAccessTokenAudience.toBuilder(); - _requestedScope = $v.requestedScope.toBuilder(); + $v.requestedAccessTokenAudience?.toBuilder(); + _requestedScope = $v.requestedScope?.toBuilder(); _sessionId = $v.sessionId; _skip = $v.skip; _subject = $v.subject; @@ -210,8 +206,8 @@ class OAuth2LoginRequestBuilder requestUrl: BuiltValueNullFieldError.checkNotNull( requestUrl, r'OAuth2LoginRequest', 'requestUrl'), requestedAccessTokenAudience: - requestedAccessTokenAudience.build(), - requestedScope: requestedScope.build(), + _requestedAccessTokenAudience?.build(), + requestedScope: _requestedScope?.build(), sessionId: sessionId, skip: BuiltValueNullFieldError.checkNotNull( skip, r'OAuth2LoginRequest', 'skip'), @@ -226,9 +222,9 @@ class OAuth2LoginRequestBuilder _oidcContext?.build(); _$failedField = 'requestedAccessTokenAudience'; - requestedAccessTokenAudience.build(); + _requestedAccessTokenAudience?.build(); _$failedField = 'requestedScope'; - requestedScope.build(); + _requestedScope?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'OAuth2LoginRequest', _$failedField, e.toString()); diff --git a/clients/hydra/dart/lib/src/model/o_auth2_token_exchange.dart b/clients/hydra/dart/lib/src/model/o_auth2_token_exchange.dart index fac5d9980ca..c92f90ec063 100644 --- a/clients/hydra/dart/lib/src/model/o_auth2_token_exchange.dart +++ b/clients/hydra/dart/lib/src/model/o_auth2_token_exchange.dart @@ -29,7 +29,7 @@ abstract class OAuth2TokenExchange implements Built _$this._expiresIn; set expiresIn(int? expiresIn) => _$this._expiresIn = expiresIn; - int? _idToken; - int? get idToken => _$this._idToken; - set idToken(int? idToken) => _$this._idToken = idToken; + String? _idToken; + String? get idToken => _$this._idToken; + set idToken(String? idToken) => _$this._idToken = idToken; String? _refreshToken; String? get refreshToken => _$this._refreshToken; diff --git a/clients/hydra/dart/pubspec.yaml b/clients/hydra/dart/pubspec.yaml index a0f653ab361..aa757968940 100644 --- a/clients/hydra/dart/pubspec.yaml +++ b/clients/hydra/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: ory_hydra_client -version: 2.2.0-rc.3 +version: 2.2.0 description: OpenAPI API client for Ory Hydra, Ory's open source OpenID Connect and OAuth provider. homepage: https://www.ory.sh repository: https://github.com/ory/sdk/tree/master/clients/hydra/dart diff --git a/clients/hydra/dart/test/accept_o_auth2_consent_request_test.dart b/clients/hydra/dart/test/accept_o_auth2_consent_request_test.dart index a287ebe8c14..fa8655532b5 100644 --- a/clients/hydra/dart/test/accept_o_auth2_consent_request_test.dart +++ b/clients/hydra/dart/test/accept_o_auth2_consent_request_test.dart @@ -7,6 +7,11 @@ void main() { // TODO add properties to the builder and call build() group(AcceptOAuth2ConsentRequest, () { + // JsonObject context + test('to test the property `context`', () async { + // TODO + }); + // BuiltList grantAccessTokenAudience test('to test the property `grantAccessTokenAudience`', () async { // TODO diff --git a/clients/hydra/dart/test/o_auth2_api_test.dart b/clients/hydra/dart/test/o_auth2_api_test.dart index ffee704b285..d464431465e 100644 --- a/clients/hydra/dart/test/o_auth2_api_test.dart +++ b/clients/hydra/dart/test/o_auth2_api_test.dart @@ -216,7 +216,7 @@ void main() { // Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID // - // This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + // This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. // //Future revokeOAuth2LoginSessions({ String subject, String sid }) async test('test revokeOAuth2LoginSessions', () async { diff --git a/clients/hydra/dart/test/o_auth2_client_test.dart b/clients/hydra/dart/test/o_auth2_client_test.dart index 87e1ce1f9fa..f7da4cfc6ed 100644 --- a/clients/hydra/dart/test/o_auth2_client_test.dart +++ b/clients/hydra/dart/test/o_auth2_client_test.dart @@ -59,7 +59,7 @@ void main() { // TODO }); - // OAuth 2.0 Client ID The ID is autogenerated and immutable. + // OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. // String clientId test('to test the property `clientId`', () async { // TODO @@ -244,6 +244,12 @@ void main() { // TODO }); + // SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + // bool skipLogoutConsent + test('to test the property `skipLogoutConsent`', () async { + // TODO + }); + // OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. // String subjectType test('to test the property `subjectType`', () async { diff --git a/clients/hydra/dart/test/o_auth2_consent_session_test.dart b/clients/hydra/dart/test/o_auth2_consent_session_test.dart index d8de7d46508..1fd762b4924 100644 --- a/clients/hydra/dart/test/o_auth2_consent_session_test.dart +++ b/clients/hydra/dart/test/o_auth2_consent_session_test.dart @@ -12,6 +12,11 @@ void main() { // TODO }); + // JsonObject context + test('to test the property `context`', () async { + // TODO + }); + // OAuth2ConsentSessionExpiresAt expiresAt test('to test the property `expiresAt`', () async { // TODO diff --git a/clients/hydra/dart/test/o_auth2_token_exchange_test.dart b/clients/hydra/dart/test/o_auth2_token_exchange_test.dart index e5f36da2862..ebea5fbb0de 100644 --- a/clients/hydra/dart/test/o_auth2_token_exchange_test.dart +++ b/clients/hydra/dart/test/o_auth2_token_exchange_test.dart @@ -20,7 +20,7 @@ void main() { }); // To retrieve a refresh token request the id_token scope. - // int idToken + // String idToken test('to test the property `idToken`', () async { // TODO }); diff --git a/clients/hydra/dotnet/Ory.Hydra.Client.sln b/clients/hydra/dotnet/Ory.Hydra.Client.sln index 9a15762c6d4..42fdf94723f 100644 --- a/clients/hydra/dotnet/Ory.Hydra.Client.sln +++ b/clients/hydra/dotnet/Ory.Hydra.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Hydra.Client", "src\Ory.Hydra.Client\Ory.Hydra.Client.csproj", "{FF1AB1FD-EE22-41C7-B7A4-067ED773E640}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Hydra.Client", "src\Ory.Hydra.Client\Ory.Hydra.Client.csproj", "{F1D5C4AB-ABA4-4D6F-9D91-6A1D8FD9C804}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Hydra.Client.Test", "src\Ory.Hydra.Client.Test\Ory.Hydra.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {FF1AB1FD-EE22-41C7-B7A4-067ED773E640}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {FF1AB1FD-EE22-41C7-B7A4-067ED773E640}.Debug|Any CPU.Build.0 = Debug|Any CPU - {FF1AB1FD-EE22-41C7-B7A4-067ED773E640}.Release|Any CPU.ActiveCfg = Release|Any CPU - {FF1AB1FD-EE22-41C7-B7A4-067ED773E640}.Release|Any CPU.Build.0 = Release|Any CPU + {F1D5C4AB-ABA4-4D6F-9D91-6A1D8FD9C804}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {F1D5C4AB-ABA4-4D6F-9D91-6A1D8FD9C804}.Debug|Any CPU.Build.0 = Debug|Any CPU + {F1D5C4AB-ABA4-4D6F-9D91-6A1D8FD9C804}.Release|Any CPU.ActiveCfg = Release|Any CPU + {F1D5C4AB-ABA4-4D6F-9D91-6A1D8FD9C804}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/clients/hydra/dotnet/README.md b/clients/hydra/dotnet/README.md index 8eabd2e6fb6..9788a2d85c3 100644 --- a/clients/hydra/dotnet/README.md +++ b/clients/hydra/dotnet/README.md @@ -5,8 +5,8 @@ Documentation for all of Ory Hydra's APIs. This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v2.2.0-rc.3 -- SDK version: 2.2.0-rc.3 +- API version: v2.2.0 +- SDK version: 2.2.0 - Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit [https://www.ory.sh](https://www.ory.sh) diff --git a/clients/hydra/dotnet/docs/HydraAcceptOAuth2ConsentRequest.md b/clients/hydra/dotnet/docs/HydraAcceptOAuth2ConsentRequest.md index 0531fca48e8..178c7455ab5 100644 --- a/clients/hydra/dotnet/docs/HydraAcceptOAuth2ConsentRequest.md +++ b/clients/hydra/dotnet/docs/HydraAcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Context** | **Object** | | [optional] **GrantAccessTokenAudience** | **List<string>** | | [optional] **GrantScope** | **List<string>** | | [optional] **HandledAt** | **DateTime** | | [optional] diff --git a/clients/hydra/dotnet/docs/HydraOAuth2Client.md b/clients/hydra/dotnet/docs/HydraOAuth2Client.md index ae82a7ad055..82a564d0c44 100644 --- a/clients/hydra/dotnet/docs/HydraOAuth2Client.md +++ b/clients/hydra/dotnet/docs/HydraOAuth2Client.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **BackchannelLogoutSessionRequired** | **bool** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **BackchannelLogoutUri** | **string** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **ClientCredentialsGrantAccessTokenLifespan** | **string** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] -**ClientId** | **string** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**ClientId** | **string** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **ClientName** | **string** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **ClientSecret** | **string** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **ClientSecretExpiresAt** | **long** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -46,6 +46,7 @@ Name | Type | Description | Notes **Scope** | **string** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **SectorIdentifierUri** | **string** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **SkipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**SkipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **SubjectType** | **string** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **TokenEndpointAuthMethod** | **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to "client_secret_basic"] **TokenEndpointAuthSigningAlg** | **string** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/hydra/dotnet/docs/HydraOAuth2ConsentSession.md b/clients/hydra/dotnet/docs/HydraOAuth2ConsentSession.md index 867dd60005c..b2ea4c453e8 100644 --- a/clients/hydra/dotnet/docs/HydraOAuth2ConsentSession.md +++ b/clients/hydra/dotnet/docs/HydraOAuth2ConsentSession.md @@ -6,6 +6,7 @@ A completed OAuth 2.0 Consent Session. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ConsentRequest** | [**HydraOAuth2ConsentRequest**](HydraOAuth2ConsentRequest.md) | | [optional] +**Context** | **Object** | | [optional] **ExpiresAt** | [**HydraOAuth2ConsentSessionExpiresAt**](HydraOAuth2ConsentSessionExpiresAt.md) | | [optional] **GrantAccessTokenAudience** | **List<string>** | | [optional] **GrantScope** | **List<string>** | | [optional] diff --git a/clients/hydra/dotnet/docs/HydraOAuth2LoginRequest.md b/clients/hydra/dotnet/docs/HydraOAuth2LoginRequest.md index 633f6d6eadd..0c3dbbb26a6 100644 --- a/clients/hydra/dotnet/docs/HydraOAuth2LoginRequest.md +++ b/clients/hydra/dotnet/docs/HydraOAuth2LoginRequest.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **_Client** | [**HydraOAuth2Client**](HydraOAuth2Client.md) | | **OidcContext** | [**HydraOAuth2ConsentRequestOpenIDConnectContext**](HydraOAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] **RequestUrl** | **string** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | -**RequestedAccessTokenAudience** | **List<string>** | | -**RequestedScope** | **List<string>** | | +**RequestedAccessTokenAudience** | **List<string>** | | [optional] +**RequestedScope** | **List<string>** | | [optional] **SessionId** | **string** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] **Skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | **Subject** | **string** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | diff --git a/clients/hydra/dotnet/docs/HydraOAuth2TokenExchange.md b/clients/hydra/dotnet/docs/HydraOAuth2TokenExchange.md index 17134371f43..dfc535e81bf 100644 --- a/clients/hydra/dotnet/docs/HydraOAuth2TokenExchange.md +++ b/clients/hydra/dotnet/docs/HydraOAuth2TokenExchange.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **AccessToken** | **string** | The access token issued by the authorization server. | [optional] **ExpiresIn** | **long** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**IdToken** | **long** | To retrieve a refresh token request the id_token scope. | [optional] +**IdToken** | **string** | To retrieve a refresh token request the id_token scope. | [optional] **RefreshToken** | **string** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] **Scope** | **string** | The scope of the access token | [optional] **TokenType** | **string** | The type of the token issued | [optional] diff --git a/clients/hydra/dotnet/docs/OAuth2Api.md b/clients/hydra/dotnet/docs/OAuth2Api.md index 15784c8982f..443c49f2a50 100644 --- a/clients/hydra/dotnet/docs/OAuth2Api.md +++ b/clients/hydra/dotnet/docs/OAuth2Api.md @@ -1738,7 +1738,7 @@ No authorization required Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Example ```csharp diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/JwkApiTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/JwkApiTests.cs index 0c4c0732209..83d7051a230 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/JwkApiTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/JwkApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/MetadataApiTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/MetadataApiTests.cs index c9d4bfdf57a..88619113b8e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/MetadataApiTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/MetadataApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OAuth2ApiTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OAuth2ApiTests.cs index 0ef835f4421..277f17ab033 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OAuth2ApiTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OAuth2ApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OidcApiTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OidcApiTests.cs index 9711d446023..6b8bed9a4ae 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OidcApiTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/OidcApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/WellknownApiTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/WellknownApiTests.cs index 6c5926135fe..4534022852b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/WellknownApiTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Api/WellknownApiTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestSessionTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestSessionTests.cs index 0be30e6ef27..5662fc7c03b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestSessionTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestSessionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestTests.cs index 8dfa3c080bc..f074666b889 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2ConsentRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -57,6 +57,14 @@ public void HydraAcceptOAuth2ConsentRequestInstanceTest() } + /// + /// Test the property 'Context' + /// + [Fact] + public void ContextTest() + { + // TODO unit test for the property 'Context' + } /// /// Test the property 'GrantAccessTokenAudience' /// diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2LoginRequestTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2LoginRequestTests.cs index 678938fa3de..13ca434644a 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2LoginRequestTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraAcceptOAuth2LoginRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateJsonWebKeySetTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateJsonWebKeySetTests.cs index 234b93ef73e..19b56cb9ae5 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateJsonWebKeySetTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateJsonWebKeySetTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateVerifiableCredentialRequestBodyTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateVerifiableCredentialRequestBodyTests.cs index 5ba1e51559c..5f6a2e34427 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateVerifiableCredentialRequestBodyTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCreateVerifiableCredentialRequestBodyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCredentialSupportedDraft00Tests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCredentialSupportedDraft00Tests.cs index d505cc2363a..95144c194af 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCredentialSupportedDraft00Tests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraCredentialSupportedDraft00Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraErrorOAuth2Tests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraErrorOAuth2Tests.cs index 7f0eab2d32b..ac807cb013d 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraErrorOAuth2Tests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraErrorOAuth2Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraGenericErrorTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraGenericErrorTests.cs index b6f022f023e..3236cbf773e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraGenericErrorTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraGenericErrorTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthNotReadyStatusTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthNotReadyStatusTests.cs index 2e82bde13f7..939119b2185 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthNotReadyStatusTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthNotReadyStatusTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthStatusTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthStatusTests.cs index 84f2c3d41bd..7c1ece0329e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthStatusTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraHealthStatusTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse2001Tests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse2001Tests.cs index 12c3cb91bd5..fe534650bd3 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse2001Tests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse2001Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse200Tests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse200Tests.cs index 35b8108cc74..3522c9c7bd1 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse200Tests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse200Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse503Tests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse503Tests.cs index 3b538f93c3a..1d135c2f7d3 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse503Tests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraInlineResponse503Tests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraIntrospectedOAuth2TokenTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraIntrospectedOAuth2TokenTests.cs index 160a33aeb9e..36e1cd2db33 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraIntrospectedOAuth2TokenTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraIntrospectedOAuth2TokenTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonPatchTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonPatchTests.cs index f41bb041935..923d5bc5ca9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonPatchTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonPatchTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeySetTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeySetTests.cs index d5635a43123..2e5a8ac337f 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeySetTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeySetTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeyTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeyTests.cs index 2cdfb08a152..f999b0a6c35 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeyTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraJsonWebKeyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTests.cs index aa959fbb5e0..57a264013d4 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -386,6 +386,14 @@ public void SkipConsentTest() // TODO unit test for the property 'SkipConsent' } /// + /// Test the property 'SkipLogoutConsent' + /// + [Fact] + public void SkipLogoutConsentTest() + { + // TODO unit test for the property 'SkipLogoutConsent' + } + /// /// Test the property 'SubjectType' /// [Fact] diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTokenLifespansTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTokenLifespansTests.cs index c287aa8b27f..3fa77154bd6 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTokenLifespansTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ClientTokenLifespansTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestOpenIDConnectContextTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestOpenIDConnectContextTests.cs index 4baed894080..8b7dedee0a9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestOpenIDConnectContextTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestOpenIDConnectContextTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestTests.cs index a5b050e6ec1..b8229ae4f5b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionExpiresAtTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionExpiresAtTests.cs index 876f3323e14..4a585d9bf64 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionExpiresAtTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionExpiresAtTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionTests.cs index b085527a12b..e420d9fc0fd 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2ConsentSessionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,14 @@ public void ConsentRequestTest() // TODO unit test for the property 'ConsentRequest' } /// + /// Test the property 'Context' + /// + [Fact] + public void ContextTest() + { + // TODO unit test for the property 'Context' + } + /// /// Test the property 'ExpiresAt' /// [Fact] diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LoginRequestTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LoginRequestTests.cs index b45a7bd9474..ae901c1d823 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LoginRequestTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LoginRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LogoutRequestTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LogoutRequestTests.cs index f8f9189276f..7133aafb74d 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LogoutRequestTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2LogoutRequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2RedirectToTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2RedirectToTests.cs index ba8cb64c7cb..f1b66ee5dd2 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2RedirectToTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2RedirectToTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2TokenExchangeTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2TokenExchangeTests.cs index 260beace866..790de4b4eec 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2TokenExchangeTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOAuth2TokenExchangeTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcConfigurationTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcConfigurationTests.cs index 100fabfbab9..9613914d92a 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcConfigurationTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcConfigurationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcUserInfoTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcUserInfoTests.cs index db8c1b9d9f6..02de9dd5f2e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcUserInfoTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraOidcUserInfoTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationHeadersTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationHeadersTests.cs index 082243eada5..45469f3b689 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationHeadersTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationHeadersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationTests.cs index 1d8d7b925bf..9cded71ded5 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraPaginationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRFC6749ErrorJsonTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRFC6749ErrorJsonTests.cs index a9d0bdef6f8..c44fb576a45 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRFC6749ErrorJsonTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRFC6749ErrorJsonTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRejectOAuth2RequestTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRejectOAuth2RequestTests.cs index ddfd7125f36..05291405368 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRejectOAuth2RequestTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraRejectOAuth2RequestTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationHeadersTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationHeadersTests.cs index 8ffbb9e4b38..27486132d87 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationHeadersTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationHeadersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationRequestParametersTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationRequestParametersTests.cs index 57fd62f50c9..597e9461cf9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationRequestParametersTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationRequestParametersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationResponseHeadersTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationResponseHeadersTests.cs index cbb46a71572..c691aab74f9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationResponseHeadersTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationResponseHeadersTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationTests.cs index 5836fc14ff2..5b067c923da 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTokenPaginationTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustOAuth2JwtGrantIssuerTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustOAuth2JwtGrantIssuerTests.cs index c7ed3155266..746217d3f33 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustOAuth2JwtGrantIssuerTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustOAuth2JwtGrantIssuerTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantIssuerTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantIssuerTests.cs index afe434455d4..ab42a4234e9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantIssuerTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantIssuerTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantJsonWebKeyTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantJsonWebKeyTests.cs index b92c443dcc2..cf1a990b0a9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantJsonWebKeyTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraTrustedOAuth2JwtGrantJsonWebKeyTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialPrimingResponseTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialPrimingResponseTests.cs index 22c000084a8..24d0da56a9e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialPrimingResponseTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialPrimingResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialProofTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialProofTests.cs index 24f5ea0e187..8b636cec265 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialProofTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialProofTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialResponseTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialResponseTests.cs index 3a6fc385268..d16f9e6c8f9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialResponseTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVerifiableCredentialResponseTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVersionTests.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVersionTests.cs index 5c1784ba163..7daa2ae5b26 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVersionTests.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client.Test/Model/HydraVersionTests.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/JwkApi.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/JwkApi.cs index f7bcb9f0023..cc76f4d016a 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/JwkApi.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/JwkApi.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/MetadataApi.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/MetadataApi.cs index 4354054c17c..c528ff10001 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/MetadataApi.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/MetadataApi.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OAuth2Api.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OAuth2Api.cs index c530eb05f26..8151637768c 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OAuth2Api.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OAuth2Api.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -552,7 +552,7 @@ public interface IOAuth2ApiSync : IApiAccessor /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID /// /// - /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -564,7 +564,7 @@ public interface IOAuth2ApiSync : IApiAccessor /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID /// /// - /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -1243,7 +1243,7 @@ public interface IOAuth2ApiAsync : IApiAccessor /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID /// /// - /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -1256,7 +1256,7 @@ public interface IOAuth2ApiAsync : IApiAccessor /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID /// /// - /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -4789,7 +4789,7 @@ public Ory.Hydra.Client.Client.ApiResponse RejectOAuth2LogoutRequestWith } /// - /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -4801,7 +4801,7 @@ public Ory.Hydra.Client.Client.ApiResponse RejectOAuth2LogoutRequestWith } /// - /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -4856,7 +4856,7 @@ public Ory.Hydra.Client.Client.ApiResponse RejectOAuth2LogoutRequestWith } /// - /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) @@ -4869,7 +4869,7 @@ public Ory.Hydra.Client.Client.ApiResponse RejectOAuth2LogoutRequestWith } /// - /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + /// Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. /// /// Thrown when fails to make API call /// OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OidcApi.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OidcApi.cs index dae30e29222..2dddc8f4504 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OidcApi.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/OidcApi.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/WellknownApi.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/WellknownApi.cs index 6577f43bce7..ce0b57474c2 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/WellknownApi.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Api/WellknownApi.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiClient.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiClient.cs index 32dc27b586a..ba4684e7ad8 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiClient.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiException.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiException.cs index 037ac8fcee2..58de728bf6f 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiException.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiException.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiResponse.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiResponse.cs index 887ae8832fb..fee54a1001c 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiResponse.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ClientUtils.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ClientUtils.cs index c7b0ef72cb0..71c6d156140 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ClientUtils.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Configuration.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Configuration.cs index cb71220de39..aa039650553 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Configuration.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Configuration.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "2.2.0-rc.3"; + public const string Version = "2.2.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -107,7 +107,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = "OpenAPI-Generator/2.2.0-rc.3/csharp"; + UserAgent = "OpenAPI-Generator/2.2.0/csharp"; BasePath = "http://localhost"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -451,8 +451,8 @@ public static string ToDebugReport() string report = "C# SDK (Ory.Hydra.Client) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: v2.2.0-rc.3\n"; - report += " SDK Package Version: 2.2.0-rc.3\n"; + report += " Version of the API: v2.2.0\n"; + report += " SDK Package Version: 2.2.0\n"; return report; } diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ExceptionFactory.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ExceptionFactory.cs index e534fee3357..3f3f231f7d9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ExceptionFactory.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/GlobalConfiguration.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/GlobalConfiguration.cs index 9a2dc197df8..f84aa3d8757 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/GlobalConfiguration.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/HttpMethod.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/HttpMethod.cs index 3da892cc1eb..30f31cdc969 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/HttpMethod.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IApiAccessor.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IApiAccessor.cs index ab22dc47247..085905ca103 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IApiAccessor.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IAsynchronousClient.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IAsynchronousClient.cs index 1368cfe00a4..09b7d10a29c 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IAsynchronousClient.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IReadableConfiguration.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IReadableConfiguration.cs index d6b3a28115a..0caeedb5e45 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IReadableConfiguration.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ISynchronousClient.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ISynchronousClient.cs index db64de6a73a..616a4e61464 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ISynchronousClient.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Multimap.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Multimap.cs index 371f9308f8f..b295720d882 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Multimap.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/Multimap.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/OpenAPIDateConverter.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/OpenAPIDateConverter.cs index 2a01765abc1..bbe51a976c5 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/OpenAPIDateConverter.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RequestOptions.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RequestOptions.cs index 979312205ba..4bdf84814f1 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RequestOptions.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RetryConfiguration.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RetryConfiguration.cs index 2f025131885..7a495448a94 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RetryConfiguration.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/AbstractOpenAPISchema.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/AbstractOpenAPISchema.cs index c8a8eba0bd6..8985537aa29 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/AbstractOpenAPISchema.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequest.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequest.cs index 9b03562733b..211929ebdc8 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequest.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,14 +35,16 @@ public partial class HydraAcceptOAuth2ConsentRequest : IEquatable /// Initializes a new instance of the class. /// + /// context. /// grantAccessTokenAudience. /// grantScope. /// handledAt. /// Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.. /// RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.. /// session. - public HydraAcceptOAuth2ConsentRequest(List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), HydraAcceptOAuth2ConsentRequestSession session = default(HydraAcceptOAuth2ConsentRequestSession)) + public HydraAcceptOAuth2ConsentRequest(Object context = default(Object), List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), HydraAcceptOAuth2ConsentRequestSession session = default(HydraAcceptOAuth2ConsentRequestSession)) { + this.Context = context; this.GrantAccessTokenAudience = grantAccessTokenAudience; this.GrantScope = grantScope; this.HandledAt = handledAt; @@ -52,6 +54,12 @@ public partial class HydraAcceptOAuth2ConsentRequest : IEquatable(); } + /// + /// Gets or Sets Context + /// + [DataMember(Name = "context", EmitDefaultValue = true)] + public Object Context { get; set; } + /// /// Gets or Sets GrantAccessTokenAudience /// @@ -104,6 +112,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class HydraAcceptOAuth2ConsentRequest {\n"); + sb.Append(" Context: ").Append(Context).Append("\n"); sb.Append(" GrantAccessTokenAudience: ").Append(GrantAccessTokenAudience).Append("\n"); sb.Append(" GrantScope: ").Append(GrantScope).Append("\n"); sb.Append(" HandledAt: ").Append(HandledAt).Append("\n"); @@ -146,6 +155,11 @@ public bool Equals(HydraAcceptOAuth2ConsentRequest input) return false; } return + ( + this.Context == input.Context || + (this.Context != null && + this.Context.Equals(input.Context)) + ) && ( this.GrantAccessTokenAudience == input.GrantAccessTokenAudience || this.GrantAccessTokenAudience != null && @@ -188,6 +202,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.Context != null) + { + hashCode = (hashCode * 59) + this.Context.GetHashCode(); + } if (this.GrantAccessTokenAudience != null) { hashCode = (hashCode * 59) + this.GrantAccessTokenAudience.GetHashCode(); diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequestSession.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequestSession.cs index 0b8280651fe..1be1742c0c5 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequestSession.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2ConsentRequestSession.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2LoginRequest.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2LoginRequest.cs index b47ecb34fb7..6c01fa7930e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2LoginRequest.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraAcceptOAuth2LoginRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateJsonWebKeySet.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateJsonWebKeySet.cs index 64f31ef5ad6..e18a18eb950 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateJsonWebKeySet.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateJsonWebKeySet.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateVerifiableCredentialRequestBody.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateVerifiableCredentialRequestBody.cs index c03ce27c308..78feed7a04c 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateVerifiableCredentialRequestBody.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCreateVerifiableCredentialRequestBody.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCredentialSupportedDraft00.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCredentialSupportedDraft00.cs index 5d34ea60e10..911ab754cf3 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCredentialSupportedDraft00.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraCredentialSupportedDraft00.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraErrorOAuth2.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraErrorOAuth2.cs index 32265b21102..00d0df3fbfc 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraErrorOAuth2.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraErrorOAuth2.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraGenericError.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraGenericError.cs index 5c6a8240588..e0b5c2b9f10 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraGenericError.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraGenericError.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthNotReadyStatus.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthNotReadyStatus.cs index 04eb47ee729..809595491b6 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthNotReadyStatus.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthNotReadyStatus.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthStatus.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthStatus.cs index 6a6ce4d4792..71f0b8e0038 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthStatus.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraHealthStatus.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse200.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse200.cs index ca970bf22f9..d83748d730d 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse200.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse200.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse2001.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse2001.cs index e7deb61cc9d..7237cf2dde3 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse2001.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse2001.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse503.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse503.cs index 9df0207f4dd..4d75f1db4e3 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse503.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraInlineResponse503.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraIntrospectedOAuth2Token.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraIntrospectedOAuth2Token.cs index 1c35c1202bc..5a8ef4680e7 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraIntrospectedOAuth2Token.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraIntrospectedOAuth2Token.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonPatch.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonPatch.cs index 0ccd23240ed..b0eac6bf547 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonPatch.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonPatch.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKey.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKey.cs index 4cfe232a082..efd56935b7f 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKey.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKey.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKeySet.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKeySet.cs index a156fc7e19a..3d3c4a2af74 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKeySet.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraJsonWebKeySet.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2Client.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2Client.cs index 239c8f66198..c011fd271e9 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2Client.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2Client.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,7 +44,7 @@ public partial class HydraOAuth2Client : IEquatable, IValidat /// OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.. /// OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.. /// Specify a time duration in milliseconds, seconds, minutes, hours.. - /// OAuth 2.0 Client ID The ID is autogenerated and immutable.. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated.. /// OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization.. /// OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost.. /// OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0.. @@ -76,13 +76,14 @@ public partial class HydraOAuth2Client : IEquatable, IValidat /// OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. /// OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. (default to "client_secret_basic"). /// OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. /// OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.. /// OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update.. /// OpenID Connect Request Userinfo Signed Response Algorithm JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.. - public HydraOAuth2Client(string accessTokenStrategy = default(string), List allowedCorsOrigins = default(List), List audience = default(List), string authorizationCodeGrantAccessTokenLifespan = default(string), string authorizationCodeGrantIdTokenLifespan = default(string), string authorizationCodeGrantRefreshTokenLifespan = default(string), bool backchannelLogoutSessionRequired = default(bool), string backchannelLogoutUri = default(string), string clientCredentialsGrantAccessTokenLifespan = default(string), string clientId = default(string), string clientName = default(string), string clientSecret = default(string), long clientSecretExpiresAt = default(long), string clientUri = default(string), List contacts = default(List), DateTime createdAt = default(DateTime), bool frontchannelLogoutSessionRequired = default(bool), string frontchannelLogoutUri = default(string), List grantTypes = default(List), string implicitGrantAccessTokenLifespan = default(string), string implicitGrantIdTokenLifespan = default(string), Object jwks = default(Object), string jwksUri = default(string), string jwtBearerGrantAccessTokenLifespan = default(string), string logoUri = default(string), Object metadata = default(Object), string owner = default(string), string policyUri = default(string), List postLogoutRedirectUris = default(List), List redirectUris = default(List), string refreshTokenGrantAccessTokenLifespan = default(string), string refreshTokenGrantIdTokenLifespan = default(string), string refreshTokenGrantRefreshTokenLifespan = default(string), string registrationAccessToken = default(string), string registrationClientUri = default(string), string requestObjectSigningAlg = default(string), List requestUris = default(List), List responseTypes = default(List), string scope = default(string), string sectorIdentifierUri = default(string), bool skipConsent = default(bool), string subjectType = default(string), string tokenEndpointAuthMethod = "client_secret_basic", string tokenEndpointAuthSigningAlg = default(string), string tosUri = default(string), DateTime updatedAt = default(DateTime), string userinfoSignedResponseAlg = default(string)) + public HydraOAuth2Client(string accessTokenStrategy = default(string), List allowedCorsOrigins = default(List), List audience = default(List), string authorizationCodeGrantAccessTokenLifespan = default(string), string authorizationCodeGrantIdTokenLifespan = default(string), string authorizationCodeGrantRefreshTokenLifespan = default(string), bool backchannelLogoutSessionRequired = default(bool), string backchannelLogoutUri = default(string), string clientCredentialsGrantAccessTokenLifespan = default(string), string clientId = default(string), string clientName = default(string), string clientSecret = default(string), long clientSecretExpiresAt = default(long), string clientUri = default(string), List contacts = default(List), DateTime createdAt = default(DateTime), bool frontchannelLogoutSessionRequired = default(bool), string frontchannelLogoutUri = default(string), List grantTypes = default(List), string implicitGrantAccessTokenLifespan = default(string), string implicitGrantIdTokenLifespan = default(string), Object jwks = default(Object), string jwksUri = default(string), string jwtBearerGrantAccessTokenLifespan = default(string), string logoUri = default(string), Object metadata = default(Object), string owner = default(string), string policyUri = default(string), List postLogoutRedirectUris = default(List), List redirectUris = default(List), string refreshTokenGrantAccessTokenLifespan = default(string), string refreshTokenGrantIdTokenLifespan = default(string), string refreshTokenGrantRefreshTokenLifespan = default(string), string registrationAccessToken = default(string), string registrationClientUri = default(string), string requestObjectSigningAlg = default(string), List requestUris = default(List), List responseTypes = default(List), string scope = default(string), string sectorIdentifierUri = default(string), bool skipConsent = default(bool), bool skipLogoutConsent = default(bool), string subjectType = default(string), string tokenEndpointAuthMethod = "client_secret_basic", string tokenEndpointAuthSigningAlg = default(string), string tosUri = default(string), DateTime updatedAt = default(DateTime), string userinfoSignedResponseAlg = default(string)) { this.AccessTokenStrategy = accessTokenStrategy; this.AllowedCorsOrigins = allowedCorsOrigins; @@ -125,6 +126,7 @@ public partial class HydraOAuth2Client : IEquatable, IValidat this.Scope = scope; this.SectorIdentifierUri = sectorIdentifierUri; this.SkipConsent = skipConsent; + this.SkipLogoutConsent = skipLogoutConsent; this.SubjectType = subjectType; // use default value if no "tokenEndpointAuthMethod" provided this.TokenEndpointAuthMethod = tokenEndpointAuthMethod ?? "client_secret_basic"; @@ -197,9 +199,9 @@ public partial class HydraOAuth2Client : IEquatable, IValidat public string ClientCredentialsGrantAccessTokenLifespan { get; set; } /// - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. /// - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. [DataMember(Name = "client_id", EmitDefaultValue = false)] public string ClientId { get; set; } @@ -413,6 +415,13 @@ public partial class HydraOAuth2Client : IEquatable, IValidat [DataMember(Name = "skip_consent", EmitDefaultValue = true)] public bool SkipConsent { get; set; } + /// + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + /// + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + [DataMember(Name = "skip_logout_consent", EmitDefaultValue = true)] + public bool SkipLogoutConsent { get; set; } + /// /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. /// @@ -510,6 +519,7 @@ public override string ToString() sb.Append(" Scope: ").Append(Scope).Append("\n"); sb.Append(" SectorIdentifierUri: ").Append(SectorIdentifierUri).Append("\n"); sb.Append(" SkipConsent: ").Append(SkipConsent).Append("\n"); + sb.Append(" SkipLogoutConsent: ").Append(SkipLogoutConsent).Append("\n"); sb.Append(" SubjectType: ").Append(SubjectType).Append("\n"); sb.Append(" TokenEndpointAuthMethod: ").Append(TokenEndpointAuthMethod).Append("\n"); sb.Append(" TokenEndpointAuthSigningAlg: ").Append(TokenEndpointAuthSigningAlg).Append("\n"); @@ -761,6 +771,10 @@ public bool Equals(HydraOAuth2Client input) this.SkipConsent == input.SkipConsent || this.SkipConsent.Equals(input.SkipConsent) ) && + ( + this.SkipLogoutConsent == input.SkipLogoutConsent || + this.SkipLogoutConsent.Equals(input.SkipLogoutConsent) + ) && ( this.SubjectType == input.SubjectType || (this.SubjectType != null && @@ -955,6 +969,7 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.SectorIdentifierUri.GetHashCode(); } hashCode = (hashCode * 59) + this.SkipConsent.GetHashCode(); + hashCode = (hashCode * 59) + this.SkipLogoutConsent.GetHashCode(); if (this.SubjectType != null) { hashCode = (hashCode * 59) + this.SubjectType.GetHashCode(); diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ClientTokenLifespans.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ClientTokenLifespans.cs index 4725af05d97..04a825eebdf 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ClientTokenLifespans.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ClientTokenLifespans.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequest.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequest.cs index 07a4286f0c9..69d401e478b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequest.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequestOpenIDConnectContext.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequestOpenIDConnectContext.cs index 8a627087c38..30c39cf5e45 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequestOpenIDConnectContext.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentRequestOpenIDConnectContext.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSession.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSession.cs index df3bf8ed501..2b8aa266b01 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSession.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSession.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -36,6 +36,7 @@ public partial class HydraOAuth2ConsentSession : IEquatable class. /// /// consentRequest. + /// context. /// expiresAt. /// grantAccessTokenAudience. /// grantScope. @@ -43,9 +44,10 @@ public partial class HydraOAuth2ConsentSession : IEquatableRemember Consent Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same client asks the same user for the same, or a subset of, scope.. /// Remember Consent For RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the authorization will be remembered indefinitely.. /// session. - public HydraOAuth2ConsentSession(HydraOAuth2ConsentRequest consentRequest = default(HydraOAuth2ConsentRequest), HydraOAuth2ConsentSessionExpiresAt expiresAt = default(HydraOAuth2ConsentSessionExpiresAt), List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), HydraAcceptOAuth2ConsentRequestSession session = default(HydraAcceptOAuth2ConsentRequestSession)) + public HydraOAuth2ConsentSession(HydraOAuth2ConsentRequest consentRequest = default(HydraOAuth2ConsentRequest), Object context = default(Object), HydraOAuth2ConsentSessionExpiresAt expiresAt = default(HydraOAuth2ConsentSessionExpiresAt), List grantAccessTokenAudience = default(List), List grantScope = default(List), DateTime handledAt = default(DateTime), bool remember = default(bool), long rememberFor = default(long), HydraAcceptOAuth2ConsentRequestSession session = default(HydraAcceptOAuth2ConsentRequestSession)) { this.ConsentRequest = consentRequest; + this.Context = context; this.ExpiresAt = expiresAt; this.GrantAccessTokenAudience = grantAccessTokenAudience; this.GrantScope = grantScope; @@ -62,6 +64,12 @@ public partial class HydraOAuth2ConsentSession : IEquatable + /// Gets or Sets Context + /// + [DataMember(Name = "context", EmitDefaultValue = true)] + public Object Context { get; set; } + /// /// Gets or Sets ExpiresAt /// @@ -121,6 +129,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class HydraOAuth2ConsentSession {\n"); sb.Append(" ConsentRequest: ").Append(ConsentRequest).Append("\n"); + sb.Append(" Context: ").Append(Context).Append("\n"); sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); sb.Append(" GrantAccessTokenAudience: ").Append(GrantAccessTokenAudience).Append("\n"); sb.Append(" GrantScope: ").Append(GrantScope).Append("\n"); @@ -169,6 +178,11 @@ public bool Equals(HydraOAuth2ConsentSession input) (this.ConsentRequest != null && this.ConsentRequest.Equals(input.ConsentRequest)) ) && + ( + this.Context == input.Context || + (this.Context != null && + this.Context.Equals(input.Context)) + ) && ( this.ExpiresAt == input.ExpiresAt || (this.ExpiresAt != null && @@ -220,6 +234,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.ConsentRequest.GetHashCode(); } + if (this.Context != null) + { + hashCode = (hashCode * 59) + this.Context.GetHashCode(); + } if (this.ExpiresAt != null) { hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSessionExpiresAt.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSessionExpiresAt.cs index 0a5df343c0d..903a83ecb35 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSessionExpiresAt.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2ConsentSessionExpiresAt.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LoginRequest.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LoginRequest.cs index 716c995c617..f6b8e4944a0 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LoginRequest.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LoginRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -47,8 +47,8 @@ protected HydraOAuth2LoginRequest() /// _client (required). /// oidcContext. /// RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. (required). - /// requestedAccessTokenAudience (required). - /// requestedScope (required). + /// requestedAccessTokenAudience. + /// requestedScope. /// SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user.. /// Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. (required). /// Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. (required). @@ -69,16 +69,6 @@ protected HydraOAuth2LoginRequest() throw new ArgumentNullException("requestUrl is a required property for HydraOAuth2LoginRequest and cannot be null"); } this.RequestUrl = requestUrl; - // to ensure "requestedAccessTokenAudience" is required (not null) - if (requestedAccessTokenAudience == null) { - throw new ArgumentNullException("requestedAccessTokenAudience is a required property for HydraOAuth2LoginRequest and cannot be null"); - } - this.RequestedAccessTokenAudience = requestedAccessTokenAudience; - // to ensure "requestedScope" is required (not null) - if (requestedScope == null) { - throw new ArgumentNullException("requestedScope is a required property for HydraOAuth2LoginRequest and cannot be null"); - } - this.RequestedScope = requestedScope; this.Skip = skip; // to ensure "subject" is required (not null) if (subject == null) { @@ -86,6 +76,8 @@ protected HydraOAuth2LoginRequest() } this.Subject = subject; this.OidcContext = oidcContext; + this.RequestedAccessTokenAudience = requestedAccessTokenAudience; + this.RequestedScope = requestedScope; this.SessionId = sessionId; this.AdditionalProperties = new Dictionary(); } @@ -119,13 +111,13 @@ protected HydraOAuth2LoginRequest() /// /// Gets or Sets RequestedAccessTokenAudience /// - [DataMember(Name = "requested_access_token_audience", IsRequired = true, EmitDefaultValue = false)] + [DataMember(Name = "requested_access_token_audience", EmitDefaultValue = false)] public List RequestedAccessTokenAudience { get; set; } /// /// Gets or Sets RequestedScope /// - [DataMember(Name = "requested_scope", IsRequired = true, EmitDefaultValue = false)] + [DataMember(Name = "requested_scope", EmitDefaultValue = false)] public List RequestedScope { get; set; } /// diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LogoutRequest.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LogoutRequest.cs index f332a97c667..8f6f810d461 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LogoutRequest.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2LogoutRequest.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2RedirectTo.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2RedirectTo.cs index 5de7c2949c4..d186777d84b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2RedirectTo.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2RedirectTo.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2TokenExchange.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2TokenExchange.cs index e298f66966a..5efa940c34e 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2TokenExchange.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOAuth2TokenExchange.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -41,7 +41,7 @@ public partial class HydraOAuth2TokenExchange : IEquatableThe refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request.. /// The scope of the access token. /// The type of the token issued. - public HydraOAuth2TokenExchange(string accessToken = default(string), long expiresIn = default(long), long idToken = default(long), string refreshToken = default(string), string scope = default(string), string tokenType = default(string)) + public HydraOAuth2TokenExchange(string accessToken = default(string), long expiresIn = default(long), string idToken = default(string), string refreshToken = default(string), string scope = default(string), string tokenType = default(string)) { this.AccessToken = accessToken; this.ExpiresIn = expiresIn; @@ -71,7 +71,7 @@ public partial class HydraOAuth2TokenExchange : IEquatable /// To retrieve a refresh token request the id_token scope. [DataMember(Name = "id_token", EmitDefaultValue = false)] - public long IdToken { get; set; } + public string IdToken { get; set; } /// /// The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. @@ -161,7 +161,8 @@ public bool Equals(HydraOAuth2TokenExchange input) ) && ( this.IdToken == input.IdToken || - this.IdToken.Equals(input.IdToken) + (this.IdToken != null && + this.IdToken.Equals(input.IdToken)) ) && ( this.RefreshToken == input.RefreshToken || @@ -195,7 +196,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.AccessToken.GetHashCode(); } hashCode = (hashCode * 59) + this.ExpiresIn.GetHashCode(); - hashCode = (hashCode * 59) + this.IdToken.GetHashCode(); + if (this.IdToken != null) + { + hashCode = (hashCode * 59) + this.IdToken.GetHashCode(); + } if (this.RefreshToken != null) { hashCode = (hashCode * 59) + this.RefreshToken.GetHashCode(); diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcConfiguration.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcConfiguration.cs index 6634ee1d7ba..e511065c27c 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcConfiguration.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcConfiguration.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcUserInfo.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcUserInfo.cs index fae4e1608cb..f121faeff1b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcUserInfo.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraOidcUserInfo.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPagination.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPagination.cs index 2943361ec2a..2318a527d47 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPagination.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPagination.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPaginationHeaders.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPaginationHeaders.cs index 7e81a73af41..2635ed014ab 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPaginationHeaders.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraPaginationHeaders.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRFC6749ErrorJson.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRFC6749ErrorJson.cs index 2d182c66df2..4f1f7524d70 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRFC6749ErrorJson.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRFC6749ErrorJson.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRejectOAuth2Request.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRejectOAuth2Request.cs index ee97c29982a..44a7721e569 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRejectOAuth2Request.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraRejectOAuth2Request.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPagination.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPagination.cs index f019c1592bb..64496070c6b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPagination.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPagination.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationHeaders.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationHeaders.cs index 4f601c27db2..dfd94bdaa76 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationHeaders.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationHeaders.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationRequestParameters.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationRequestParameters.cs index 54dbc62fe63..2d02c0606eb 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationRequestParameters.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationRequestParameters.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationResponseHeaders.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationResponseHeaders.cs index 1e68c00dbdc..46bb28fa051 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationResponseHeaders.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTokenPaginationResponseHeaders.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustOAuth2JwtGrantIssuer.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustOAuth2JwtGrantIssuer.cs index 0ff063a5093..8c089b5866f 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustOAuth2JwtGrantIssuer.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustOAuth2JwtGrantIssuer.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantIssuer.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantIssuer.cs index 254faa7fd14..9db6480871f 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantIssuer.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantIssuer.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantJsonWebKey.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantJsonWebKey.cs index e2e453d1909..8d691064c94 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantJsonWebKey.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraTrustedOAuth2JwtGrantJsonWebKey.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialPrimingResponse.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialPrimingResponse.cs index ffa2a394bad..cc296245c8b 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialPrimingResponse.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialPrimingResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialProof.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialProof.cs index 1357e525107..353b3e6a5fe 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialProof.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialProof.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialResponse.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialResponse.cs index 9acf3aed622..48552b5295d 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialResponse.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVerifiableCredentialResponse.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVersion.cs b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVersion.cs index 48f3abdc61b..d76c2f99ec8 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVersion.cs +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Model/HydraVersion.cs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/hydra/dotnet/src/Ory.Hydra.Client/Ory.Hydra.Client.csproj b/clients/hydra/dotnet/src/Ory.Hydra.Client/Ory.Hydra.Client.csproj index 273526240db..04e3f404c82 100644 --- a/clients/hydra/dotnet/src/Ory.Hydra.Client/Ory.Hydra.Client.csproj +++ b/clients/hydra/dotnet/src/Ory.Hydra.Client/Ory.Hydra.Client.csproj @@ -12,7 +12,7 @@ A library generated from a OpenAPI doc No Copyright Ory.Hydra.Client - 2.2.0-rc.3 + 2.2.0 bin\$(Configuration)\$(TargetFramework)\Ory.Hydra.Client.xml Apache-2.0 https://github.com/ory/sdk.git diff --git a/clients/hydra/elixir/.openapi-generator/VERSION b/clients/hydra/elixir/.openapi-generator/VERSION index cd802a1ec4e..4b49d9bb63e 100644 --- a/clients/hydra/elixir/.openapi-generator/VERSION +++ b/clients/hydra/elixir/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.2.0 \ No newline at end of file diff --git a/clients/hydra/elixir/README.md b/clients/hydra/elixir/README.md index 9e12bea8634..68d36332dca 100644 --- a/clients/hydra/elixir/README.md +++ b/clients/hydra/elixir/README.md @@ -18,7 +18,7 @@ your list of dependencies in `mix.exs`: ```elixir def deps do - [{:ory_hydra, "~> v2.2.0-rc.3"}] + [{:ory_hydra, "~> v2.2.0"}] end ``` diff --git a/clients/hydra/elixir/lib/ory/api/jwk.ex b/clients/hydra/elixir/lib/ory/api/jwk.ex index 1a0d920db23..0b92ed44980 100644 --- a/clients/hydra/elixir/lib/ory/api/jwk.ex +++ b/clients/hydra/elixir/lib/ory/api/jwk.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Jwk do @@ -37,8 +37,8 @@ defmodule Ory.Api.Jwk do connection |> Connection.request(request) |> evaluate_response([ - {201, %Ory.Model.JsonWebKeySet{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {201, Ory.Model.JsonWebKeySet}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -70,7 +70,7 @@ defmodule Ory.Api.Jwk do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -101,7 +101,7 @@ defmodule Ory.Api.Jwk do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -132,8 +132,8 @@ defmodule Ory.Api.Jwk do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.JsonWebKeySet{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.JsonWebKeySet}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -163,8 +163,8 @@ defmodule Ory.Api.Jwk do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.JsonWebKeySet{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.JsonWebKeySet}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -202,8 +202,8 @@ defmodule Ory.Api.Jwk do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.JsonWebKey{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.JsonWebKey}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -240,8 +240,8 @@ defmodule Ory.Api.Jwk do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.JsonWebKeySet{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.JsonWebKeySet}, + {:default, Ory.Model.ErrorOAuth2} ]) end end diff --git a/clients/hydra/elixir/lib/ory/api/metadata.ex b/clients/hydra/elixir/lib/ory/api/metadata.ex index 9c0a5f2219f..154f7d2005f 100644 --- a/clients/hydra/elixir/lib/ory/api/metadata.ex +++ b/clients/hydra/elixir/lib/ory/api/metadata.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Metadata do @@ -34,7 +34,7 @@ defmodule Ory.Api.Metadata do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.GetVersion200Response{}} + {200, Ory.Model.GetVersion200Response} ]) end @@ -63,8 +63,8 @@ defmodule Ory.Api.Metadata do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.HealthStatus{}}, - {500, %Ory.Model.GenericError{}} + {200, Ory.Model.HealthStatus}, + {500, Ory.Model.GenericError} ]) end @@ -93,8 +93,8 @@ defmodule Ory.Api.Metadata do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.IsReady200Response{}}, - {503, %Ory.Model.IsReady503Response{}} + {200, Ory.Model.IsReady200Response}, + {503, Ory.Model.IsReady503Response} ]) end end diff --git a/clients/hydra/elixir/lib/ory/api/o_auth2.ex b/clients/hydra/elixir/lib/ory/api/o_auth2.ex index 10602ddd2fd..264c6e8749b 100644 --- a/clients/hydra/elixir/lib/ory/api/o_auth2.ex +++ b/clients/hydra/elixir/lib/ory/api/o_auth2.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.OAuth2 do @@ -43,8 +43,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -82,8 +82,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -115,8 +115,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -147,9 +147,9 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {201, %Ory.Model.OAuth2Client{}}, - {400, %Ory.Model.ErrorOAuth2{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {201, Ory.Model.OAuth2Client}, + {400, Ory.Model.ErrorOAuth2}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -180,7 +180,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.GenericError{}} + {:default, Ory.Model.GenericError} ]) end @@ -212,7 +212,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -243,7 +243,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.GenericError{}} + {:default, Ory.Model.GenericError} ]) end @@ -273,8 +273,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2Client{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2Client}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -305,9 +305,9 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2ConsentRequest{}}, - {410, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2ConsentRequest}, + {410, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -338,9 +338,9 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2LoginRequest{}}, - {410, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2LoginRequest}, + {410, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -371,9 +371,9 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2LogoutRequest{}}, - {410, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2LogoutRequest}, + {410, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -403,8 +403,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.TrustedOAuth2JwtGrantIssuer{}}, - {:default, %Ory.Model.GenericError{}} + {200, Ory.Model.TrustedOAuth2JwtGrantIssuer}, + {:default, Ory.Model.GenericError} ]) end @@ -441,8 +441,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.IntrospectedOAuth2Token{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.IntrospectedOAuth2Token}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -483,8 +483,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.OAuth2Client{}]}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2Client}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -525,8 +525,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.OAuth2ConsentSession{}]}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2ConsentSession}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -565,8 +565,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.TrustedOAuth2JwtGrantIssuer{}]}, - {:default, %Ory.Model.GenericError{}} + {200, Ory.Model.TrustedOAuth2JwtGrantIssuer}, + {:default, Ory.Model.GenericError} ]) end @@ -596,7 +596,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {302, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -639,8 +639,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2TokenExchange{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2TokenExchange}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -672,9 +672,9 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2Client{}}, - {404, %Ory.Model.ErrorOAuth2{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2Client}, + {404, Ory.Model.ErrorOAuth2}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -712,8 +712,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -751,8 +751,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2RedirectTo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2RedirectTo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -785,7 +785,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -825,13 +825,13 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @doc """ Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Parameters @@ -863,7 +863,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -903,7 +903,7 @@ defmodule Ory.Api.OAuth2 do |> Connection.request(request) |> evaluate_response([ {200, false}, - {:default, %Ory.Model.ErrorOAuth2{}} + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -935,10 +935,10 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2Client{}}, - {400, %Ory.Model.ErrorOAuth2{}}, - {404, %Ory.Model.ErrorOAuth2{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2Client}, + {400, Ory.Model.ErrorOAuth2}, + {404, Ory.Model.ErrorOAuth2}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -975,8 +975,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2Client{}}, - {:default, %Ory.Model.GenericError{}} + {200, Ory.Model.OAuth2Client}, + {:default, Ory.Model.GenericError} ]) end @@ -1012,8 +1012,8 @@ defmodule Ory.Api.OAuth2 do connection |> Connection.request(request) |> evaluate_response([ - {201, %Ory.Model.TrustedOAuth2JwtGrantIssuer{}}, - {:default, %Ory.Model.GenericError{}} + {201, Ory.Model.TrustedOAuth2JwtGrantIssuer}, + {:default, Ory.Model.GenericError} ]) end end diff --git a/clients/hydra/elixir/lib/ory/api/oidc.ex b/clients/hydra/elixir/lib/ory/api/oidc.ex index 8e99896f99e..03806fb236a 100644 --- a/clients/hydra/elixir/lib/ory/api/oidc.ex +++ b/clients/hydra/elixir/lib/ory/api/oidc.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Oidc do @@ -36,9 +36,9 @@ defmodule Ory.Api.Oidc do connection |> Connection.request(request) |> evaluate_response([ - {201, %Ory.Model.OAuth2Client{}}, - {400, %Ory.Model.ErrorOAuth2{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {201, Ory.Model.OAuth2Client}, + {400, Ory.Model.ErrorOAuth2}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -74,9 +74,9 @@ defmodule Ory.Api.Oidc do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.VerifiableCredentialResponse{}}, - {400, %Ory.Model.VerifiableCredentialPrimingResponse{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.VerifiableCredentialResponse}, + {400, Ory.Model.VerifiableCredentialPrimingResponse}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -107,7 +107,7 @@ defmodule Ory.Api.Oidc do |> Connection.request(request) |> evaluate_response([ {204, false}, - {:default, %Ory.Model.GenericError{}} + {:default, Ory.Model.GenericError} ]) end @@ -136,8 +136,8 @@ defmodule Ory.Api.Oidc do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OidcConfiguration{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OidcConfiguration}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -167,8 +167,8 @@ defmodule Ory.Api.Oidc do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2Client{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2Client}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -197,8 +197,8 @@ defmodule Ory.Api.Oidc do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OidcUserInfo{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OidcUserInfo}, + {:default, Ory.Model.ErrorOAuth2} ]) end @@ -259,9 +259,9 @@ defmodule Ory.Api.Oidc do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.OAuth2Client{}}, - {404, %Ory.Model.ErrorOAuth2{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.OAuth2Client}, + {404, Ory.Model.ErrorOAuth2}, + {:default, Ory.Model.ErrorOAuth2} ]) end end diff --git a/clients/hydra/elixir/lib/ory/api/wellknown.ex b/clients/hydra/elixir/lib/ory/api/wellknown.ex index f8c59e6303c..583914bbfd0 100644 --- a/clients/hydra/elixir/lib/ory/api/wellknown.ex +++ b/clients/hydra/elixir/lib/ory/api/wellknown.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Wellknown do @@ -34,8 +34,8 @@ defmodule Ory.Api.Wellknown do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.JsonWebKeySet{}}, - {:default, %Ory.Model.ErrorOAuth2{}} + {200, Ory.Model.JsonWebKeySet}, + {:default, Ory.Model.ErrorOAuth2} ]) end end diff --git a/clients/hydra/elixir/lib/ory/connection.ex b/clients/hydra/elixir/lib/ory/connection.ex index 3caf4bbbf9f..dd989d83640 100644 --- a/clients/hydra/elixir/lib/ory/connection.ex +++ b/clients/hydra/elixir/lib/ory/connection.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Connection do @@ -155,7 +155,7 @@ defmodule Ory.Connection do tesla_options = Application.get_env(:tesla, __MODULE__, []) middleware = Keyword.get(tesla_options, :middleware, []) - json_engine = Keyword.get(tesla_options, :json, Poison) + json_engine = Keyword.get(tesla_options, :json, Jason) user_agent = Keyword.get( @@ -164,7 +164,7 @@ defmodule Ory.Connection do Keyword.get( tesla_options, :user_agent, - "openapi-generator - Ory v2.2.0-rc.3 - elixir" + "openapi-generator - Ory v2.2.0 - elixir" ) ) @@ -218,7 +218,7 @@ defmodule Ory.Connection do def authorization(token, scopes \\ @default_scopes) def authorization(token, _scopes) when is_binary(token) do - {Tesla.Middleware.Headers, ["authorization", token]} + {Tesla.Middleware.Headers, [{"authorization", token}]} end def authorization({module, function}, scopes) when is_atom(module) and is_atom(function) do diff --git a/clients/hydra/elixir/lib/ory/deserializer.ex b/clients/hydra/elixir/lib/ory/deserializer.ex index 8a1531ca00e..c1beab2b5fc 100644 --- a/clients/hydra/elixir/lib/ory/deserializer.ex +++ b/clients/hydra/elixir/lib/ory/deserializer.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Deserializer do @@ -6,37 +6,81 @@ defmodule Ory.Deserializer do Helper functions for deserializing responses into models """ + @jason_decode_opts [keys: :strings] + + def jason_decode(json) do + Jason.decode(json, @jason_decode_opts) + end + + def jason_decode(json, module) do + json + |> jason_decode() + |> case do + {:ok, decoded} -> {:ok, to_struct(decoded, module)} + {:error, _} = error -> error + end + end + @doc """ Update the provided model with a deserialization of a nested value """ - @spec deserialize(struct(), :atom, :atom, struct(), keyword()) :: struct() - def deserialize(model, field, :list, mod, options) do + @spec deserialize(struct(), atom(), :date | :datetime | :list | :map | :struct, module()) :: + struct() + def deserialize(model, field, :list, module) do model - |> Map.update!(field, &(Poison.Decode.decode(&1, Keyword.merge(options, [as: [struct(mod)]])))) + |> Map.update!(field, fn + nil -> + nil + + list -> + Enum.map(list, &to_struct(&1, module)) + end) end - def deserialize(model, field, :struct, mod, options) do + def deserialize(model, field, :struct, module) do model - |> Map.update!(field, &(Poison.Decode.decode(&1, Keyword.merge(options, [as: struct(mod)])))) + |> Map.update!(field, fn + nil -> + nil + + value -> + to_struct(value, module) + end) end - def deserialize(model, field, :map, mod, options) do + def deserialize(model, field, :map, module) do maybe_transform_map = fn nil -> nil existing_value -> Map.new(existing_value, fn - {key, val} -> - {key, Poison.Decode.decode(val, Keyword.merge(options, as: struct(mod)))} + {key, value} -> + {key, to_struct(value, module)} end) end Map.update!(model, field, maybe_transform_map) end - def deserialize(model, field, :date, _, _options) do + def deserialize(model, field, :date, _) do + value = Map.get(model, field) + + case is_binary(value) do + true -> + case Date.from_iso8601(value) do + {:ok, date} -> Map.put(model, field, date) + _ -> model + end + + false -> + model + end + end + + def deserialize(model, field, :datetime, _) do value = Map.get(model, field) + case is_binary(value) do true -> case DateTime.from_iso8601(value) do @@ -48,4 +92,23 @@ defmodule Ory.Deserializer do model end end + + defp to_struct(map_or_list, module) + defp to_struct(nil, _), do: nil + + defp to_struct(list, module) when is_list(list) and is_atom(module) do + Enum.map(list, &to_struct(&1, module)) + end + + defp to_struct(map, module) when is_map(map) and is_atom(module) do + model = struct(module) + + model + |> Map.keys() + |> List.delete(:__struct__) + |> Enum.reduce(model, fn field, acc -> + Map.replace(acc, field, Map.get(map, Atom.to_string(field))) + end) + |> module.decode() + end end diff --git a/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request.ex b/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request.ex index 77231018a2a..f889aecd765 100644 --- a/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request.ex +++ b/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.AcceptOAuth2ConsentRequest do @@ -6,8 +6,9 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequest do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ + :context, :grant_access_token_audience, :grant_scope, :handled_at, @@ -17,6 +18,7 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequest do ] @type t :: %__MODULE__{ + :context => any() | nil, :grant_access_token_audience => [String.t] | nil, :grant_scope => [String.t] | nil, :handled_at => DateTime.t | nil, @@ -24,13 +26,13 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequest do :remember_for => integer() | nil, :session => Ory.Model.AcceptOAuth2ConsentRequestSession.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.AcceptOAuth2ConsentRequest do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:session, :struct, Ory.Model.AcceptOAuth2ConsentRequestSession, options) + |> Deserializer.deserialize(:handled_at, :datetime, nil) + |> Deserializer.deserialize(:session, :struct, Ory.Model.AcceptOAuth2ConsentRequestSession) end end diff --git a/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request_session.ex b/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request_session.ex index 9eaad7d35c3..cecbf95c81f 100644 --- a/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request_session.ex +++ b/clients/hydra/elixir/lib/ory/model/accept_o_auth2_consent_request_session.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.AcceptOAuth2ConsentRequestSession do @@ -6,7 +6,7 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequestSession do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :access_token, :id_token @@ -16,10 +16,8 @@ defmodule Ory.Model.AcceptOAuth2ConsentRequestSession do :access_token => any() | nil, :id_token => any() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.AcceptOAuth2ConsentRequestSession do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/accept_o_auth2_login_request.ex b/clients/hydra/elixir/lib/ory/model/accept_o_auth2_login_request.ex index 5019c545d99..7e2b0030766 100644 --- a/clients/hydra/elixir/lib/ory/model/accept_o_auth2_login_request.ex +++ b/clients/hydra/elixir/lib/ory/model/accept_o_auth2_login_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.AcceptOAuth2LoginRequest do @@ -6,7 +6,7 @@ defmodule Ory.Model.AcceptOAuth2LoginRequest do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :acr, :amr, @@ -30,10 +30,8 @@ defmodule Ory.Model.AcceptOAuth2LoginRequest do :remember_for => integer() | nil, :subject => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.AcceptOAuth2LoginRequest do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/create_json_web_key_set.ex b/clients/hydra/elixir/lib/ory/model/create_json_web_key_set.ex index 5a154f59237..24abc2a5c6c 100644 --- a/clients/hydra/elixir/lib/ory/model/create_json_web_key_set.ex +++ b/clients/hydra/elixir/lib/ory/model/create_json_web_key_set.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CreateJsonWebKeySet do @@ -6,7 +6,7 @@ defmodule Ory.Model.CreateJsonWebKeySet do Create JSON Web Key Set Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :alg, :kid, @@ -18,10 +18,8 @@ defmodule Ory.Model.CreateJsonWebKeySet do :kid => String.t, :use => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.CreateJsonWebKeySet do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/create_verifiable_credential_request_body.ex b/clients/hydra/elixir/lib/ory/model/create_verifiable_credential_request_body.ex index 8c795a6edad..4a1e7ac9eb6 100644 --- a/clients/hydra/elixir/lib/ory/model/create_verifiable_credential_request_body.ex +++ b/clients/hydra/elixir/lib/ory/model/create_verifiable_credential_request_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CreateVerifiableCredentialRequestBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.CreateVerifiableCredentialRequestBody do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :format, :proof, @@ -18,13 +18,12 @@ defmodule Ory.Model.CreateVerifiableCredentialRequestBody do :proof => Ory.Model.VerifiableCredentialProof.t | nil, :types => [String.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.CreateVerifiableCredentialRequestBody do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:proof, :struct, Ory.Model.VerifiableCredentialProof, options) + |> Deserializer.deserialize(:proof, :struct, Ory.Model.VerifiableCredentialProof) end end diff --git a/clients/hydra/elixir/lib/ory/model/credential_supported_draft00.ex b/clients/hydra/elixir/lib/ory/model/credential_supported_draft00.ex index f4de6dbac2b..6bf2bf0dced 100644 --- a/clients/hydra/elixir/lib/ory/model/credential_supported_draft00.ex +++ b/clients/hydra/elixir/lib/ory/model/credential_supported_draft00.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CredentialSupportedDraft00 do @@ -6,7 +6,7 @@ defmodule Ory.Model.CredentialSupportedDraft00 do Includes information about the supported verifiable credentials. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :cryptographic_binding_methods_supported, :cryptographic_suites_supported, @@ -20,10 +20,8 @@ defmodule Ory.Model.CredentialSupportedDraft00 do :format => String.t | nil, :types => [String.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.CredentialSupportedDraft00 do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/error_o_auth2.ex b/clients/hydra/elixir/lib/ory/model/error_o_auth2.ex index cf9f62fe194..65387b964be 100644 --- a/clients/hydra/elixir/lib/ory/model/error_o_auth2.ex +++ b/clients/hydra/elixir/lib/ory/model/error_o_auth2.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ErrorOAuth2 do @@ -6,7 +6,7 @@ defmodule Ory.Model.ErrorOAuth2 do Error """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :error_debug, @@ -22,10 +22,8 @@ defmodule Ory.Model.ErrorOAuth2 do :error_hint => String.t | nil, :status_code => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.ErrorOAuth2 do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/generic_error.ex b/clients/hydra/elixir/lib/ory/model/generic_error.ex index 151f87c8f2e..23e88e22d4d 100644 --- a/clients/hydra/elixir/lib/ory/model/generic_error.ex +++ b/clients/hydra/elixir/lib/ory/model/generic_error.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.GenericError do @@ -6,7 +6,7 @@ defmodule Ory.Model.GenericError do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :code, :debug, @@ -28,10 +28,8 @@ defmodule Ory.Model.GenericError do :request => String.t | nil, :status => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.GenericError do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/get_version_200_response.ex b/clients/hydra/elixir/lib/ory/model/get_version_200_response.ex index e5ac13ceb97..07aa4dc6f3c 100644 --- a/clients/hydra/elixir/lib/ory/model/get_version_200_response.ex +++ b/clients/hydra/elixir/lib/ory/model/get_version_200_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.GetVersion200Response do @@ -6,7 +6,7 @@ defmodule Ory.Model.GetVersion200Response do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :version ] @@ -14,10 +14,8 @@ defmodule Ory.Model.GetVersion200Response do @type t :: %__MODULE__{ :version => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.GetVersion200Response do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/health_not_ready_status.ex b/clients/hydra/elixir/lib/ory/model/health_not_ready_status.ex index 2d38870947b..aacf7119326 100644 --- a/clients/hydra/elixir/lib/ory/model/health_not_ready_status.ex +++ b/clients/hydra/elixir/lib/ory/model/health_not_ready_status.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.HealthNotReadyStatus do @@ -6,7 +6,7 @@ defmodule Ory.Model.HealthNotReadyStatus do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :errors ] @@ -14,10 +14,8 @@ defmodule Ory.Model.HealthNotReadyStatus do @type t :: %__MODULE__{ :errors => %{optional(String.t) => String.t} | nil } -end -defimpl Poison.Decoder, for: Ory.Model.HealthNotReadyStatus do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/health_status.ex b/clients/hydra/elixir/lib/ory/model/health_status.ex index ce9ff5d6083..0571d7eea97 100644 --- a/clients/hydra/elixir/lib/ory/model/health_status.ex +++ b/clients/hydra/elixir/lib/ory/model/health_status.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.HealthStatus do @@ -6,7 +6,7 @@ defmodule Ory.Model.HealthStatus do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :status ] @@ -14,10 +14,8 @@ defmodule Ory.Model.HealthStatus do @type t :: %__MODULE__{ :status => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.HealthStatus do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/introspected_o_auth2_token.ex b/clients/hydra/elixir/lib/ory/model/introspected_o_auth2_token.ex index b3f2aebf959..99b5e35586b 100644 --- a/clients/hydra/elixir/lib/ory/model/introspected_o_auth2_token.ex +++ b/clients/hydra/elixir/lib/ory/model/introspected_o_auth2_token.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IntrospectedOAuth2Token do @@ -6,7 +6,7 @@ defmodule Ory.Model.IntrospectedOAuth2Token do Introspection contains an access token's session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, :aud, @@ -40,10 +40,8 @@ defmodule Ory.Model.IntrospectedOAuth2Token do :token_use => String.t | nil, :username => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IntrospectedOAuth2Token do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/is_ready_200_response.ex b/clients/hydra/elixir/lib/ory/model/is_ready_200_response.ex index 1c6ff9f91b2..5cf7cb9b01c 100644 --- a/clients/hydra/elixir/lib/ory/model/is_ready_200_response.ex +++ b/clients/hydra/elixir/lib/ory/model/is_ready_200_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IsReady200Response do @@ -6,7 +6,7 @@ defmodule Ory.Model.IsReady200Response do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :status ] @@ -14,10 +14,8 @@ defmodule Ory.Model.IsReady200Response do @type t :: %__MODULE__{ :status => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IsReady200Response do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/is_ready_503_response.ex b/clients/hydra/elixir/lib/ory/model/is_ready_503_response.ex index eddff70abd8..1a534404391 100644 --- a/clients/hydra/elixir/lib/ory/model/is_ready_503_response.ex +++ b/clients/hydra/elixir/lib/ory/model/is_ready_503_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IsReady503Response do @@ -6,7 +6,7 @@ defmodule Ory.Model.IsReady503Response do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :errors ] @@ -14,10 +14,8 @@ defmodule Ory.Model.IsReady503Response do @type t :: %__MODULE__{ :errors => %{optional(String.t) => String.t} | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IsReady503Response do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/json_patch.ex b/clients/hydra/elixir/lib/ory/model/json_patch.ex index 55db7ace8cd..4c4c52a7009 100644 --- a/clients/hydra/elixir/lib/ory/model/json_patch.ex +++ b/clients/hydra/elixir/lib/ory/model/json_patch.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.JsonPatch do @@ -6,7 +6,7 @@ defmodule Ory.Model.JsonPatch do A JSONPatch document as defined by RFC 6902 """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :from, :op, @@ -20,10 +20,8 @@ defmodule Ory.Model.JsonPatch do :path => String.t, :value => any() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.JsonPatch do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/json_web_key.ex b/clients/hydra/elixir/lib/ory/model/json_web_key.ex index d0a86f6ee6e..ca12c89a2e6 100644 --- a/clients/hydra/elixir/lib/ory/model/json_web_key.ex +++ b/clients/hydra/elixir/lib/ory/model/json_web_key.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.JsonWebKey do @@ -6,7 +6,7 @@ defmodule Ory.Model.JsonWebKey do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :alg, :crv, @@ -46,10 +46,8 @@ defmodule Ory.Model.JsonWebKey do :x5c => [String.t] | nil, :y => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.JsonWebKey do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/json_web_key_set.ex b/clients/hydra/elixir/lib/ory/model/json_web_key_set.ex index 885bddff505..f18fe65fa12 100644 --- a/clients/hydra/elixir/lib/ory/model/json_web_key_set.ex +++ b/clients/hydra/elixir/lib/ory/model/json_web_key_set.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.JsonWebKeySet do @@ -6,7 +6,7 @@ defmodule Ory.Model.JsonWebKeySet do JSON Web Key Set """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :keys ] @@ -14,13 +14,12 @@ defmodule Ory.Model.JsonWebKeySet do @type t :: %__MODULE__{ :keys => [Ory.Model.JsonWebKey.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.JsonWebKeySet do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:keys, :list, Ory.Model.JsonWebKey, options) + |> Deserializer.deserialize(:keys, :list, Ory.Model.JsonWebKey) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_client.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_client.ex index 96659c90f0a..96c2c6d329a 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_client.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_client.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2Client do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2Client do OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :access_token_strategy, :allowed_cors_origins, @@ -49,6 +49,7 @@ defmodule Ory.Model.OAuth2Client do :scope, :sector_identifier_uri, :skip_consent, + :skip_logout_consent, :subject_type, :token_endpoint_auth_method, :token_endpoint_auth_signing_alg, @@ -99,6 +100,7 @@ defmodule Ory.Model.OAuth2Client do :scope => String.t | nil, :sector_identifier_uri => String.t | nil, :skip_consent => boolean() | nil, + :skip_logout_consent => boolean() | nil, :subject_type => String.t | nil, :token_endpoint_auth_method => String.t | nil, :token_endpoint_auth_signing_alg => String.t | nil, @@ -106,11 +108,13 @@ defmodule Ory.Model.OAuth2Client do :updated_at => DateTime.t | nil, :userinfo_signed_response_alg => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2Client do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_client_token_lifespans.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_client_token_lifespans.ex index 5f767be3ff6..cf982123d79 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_client_token_lifespans.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_client_token_lifespans.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2ClientTokenLifespans do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2ClientTokenLifespans do Lifespans of different token types issued for this OAuth 2.0 Client. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :authorization_code_grant_access_token_lifespan, :authorization_code_grant_id_token_lifespan, @@ -32,10 +32,8 @@ defmodule Ory.Model.OAuth2ClientTokenLifespans do :refresh_token_grant_id_token_lifespan => String.t | nil, :refresh_token_grant_refresh_token_lifespan => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2ClientTokenLifespans do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request.ex index 601926ff845..ae8c4270b66 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2ConsentRequest do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2ConsentRequest do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :acr, :amr, @@ -38,14 +38,13 @@ defmodule Ory.Model.OAuth2ConsentRequest do :skip => boolean() | nil, :subject => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2ConsentRequest do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:client, :struct, Ory.Model.OAuth2Client, options) - |> deserialize(:oidc_context, :struct, Ory.Model.OAuth2ConsentRequestOpenIdConnectContext, options) + |> Deserializer.deserialize(:client, :struct, Ory.Model.OAuth2Client) + |> Deserializer.deserialize(:oidc_context, :struct, Ory.Model.OAuth2ConsentRequestOpenIdConnectContext) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex index 7c706179a90..8d79b78c659 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :acr_values, :display, @@ -22,10 +22,8 @@ defmodule Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do :login_hint => String.t | nil, :ui_locales => [String.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session.ex index 2a05130f9ac..6f635d5ba4a 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2ConsentSession do @@ -6,9 +6,10 @@ defmodule Ory.Model.OAuth2ConsentSession do A completed OAuth 2.0 Consent Session. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :consent_request, + :context, :expires_at, :grant_access_token_audience, :grant_scope, @@ -20,6 +21,7 @@ defmodule Ory.Model.OAuth2ConsentSession do @type t :: %__MODULE__{ :consent_request => Ory.Model.OAuth2ConsentRequest.t | nil, + :context => any() | nil, :expires_at => Ory.Model.OAuth2ConsentSessionExpiresAt.t | nil, :grant_access_token_audience => [String.t] | nil, :grant_scope => [String.t] | nil, @@ -28,15 +30,15 @@ defmodule Ory.Model.OAuth2ConsentSession do :remember_for => integer() | nil, :session => Ory.Model.AcceptOAuth2ConsentRequestSession.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2ConsentSession do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:consent_request, :struct, Ory.Model.OAuth2ConsentRequest, options) - |> deserialize(:expires_at, :struct, Ory.Model.OAuth2ConsentSessionExpiresAt, options) - |> deserialize(:session, :struct, Ory.Model.AcceptOAuth2ConsentRequestSession, options) + |> Deserializer.deserialize(:consent_request, :struct, Ory.Model.OAuth2ConsentRequest) + |> Deserializer.deserialize(:expires_at, :struct, Ory.Model.OAuth2ConsentSessionExpiresAt) + |> Deserializer.deserialize(:handled_at, :datetime, nil) + |> Deserializer.deserialize(:session, :struct, Ory.Model.AcceptOAuth2ConsentRequestSession) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session_expires_at.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session_expires_at.ex index 01d77d84a54..cde2e839935 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session_expires_at.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_consent_session_expires_at.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2ConsentSessionExpiresAt do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2ConsentSessionExpiresAt do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :access_token, :authorize_code, @@ -22,11 +22,16 @@ defmodule Ory.Model.OAuth2ConsentSessionExpiresAt do :par_context => DateTime.t | nil, :refresh_token => DateTime.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2ConsentSessionExpiresAt do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:access_token, :datetime, nil) + |> Deserializer.deserialize(:authorize_code, :datetime, nil) + |> Deserializer.deserialize(:id_token, :datetime, nil) + |> Deserializer.deserialize(:par_context, :datetime, nil) + |> Deserializer.deserialize(:refresh_token, :datetime, nil) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_login_request.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_login_request.ex index de369b746dd..2fde6e4849a 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_login_request.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_login_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2LoginRequest do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2LoginRequest do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :challenge, :client, @@ -24,20 +24,19 @@ defmodule Ory.Model.OAuth2LoginRequest do :client => Ory.Model.OAuth2Client.t, :oidc_context => Ory.Model.OAuth2ConsentRequestOpenIdConnectContext.t | nil, :request_url => String.t, - :requested_access_token_audience => [String.t], - :requested_scope => [String.t], + :requested_access_token_audience => [String.t] | nil, + :requested_scope => [String.t] | nil, :session_id => String.t | nil, :skip => boolean(), :subject => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2LoginRequest do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:client, :struct, Ory.Model.OAuth2Client, options) - |> deserialize(:oidc_context, :struct, Ory.Model.OAuth2ConsentRequestOpenIdConnectContext, options) + |> Deserializer.deserialize(:client, :struct, Ory.Model.OAuth2Client) + |> Deserializer.deserialize(:oidc_context, :struct, Ory.Model.OAuth2ConsentRequestOpenIdConnectContext) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_logout_request.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_logout_request.ex index 6498613a700..20761c47be1 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_logout_request.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_logout_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2LogoutRequest do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2LogoutRequest do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :challenge, :client, @@ -24,13 +24,12 @@ defmodule Ory.Model.OAuth2LogoutRequest do :sid => String.t | nil, :subject => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2LogoutRequest do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:client, :struct, Ory.Model.OAuth2Client, options) + |> Deserializer.deserialize(:client, :struct, Ory.Model.OAuth2Client) end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_redirect_to.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_redirect_to.ex index 237669192a9..a192ccfa78b 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_redirect_to.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_redirect_to.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2RedirectTo do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2RedirectTo do Contains a redirect URL used to complete a login, consent, or logout request. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :redirect_to ] @@ -14,10 +14,8 @@ defmodule Ory.Model.OAuth2RedirectTo do @type t :: %__MODULE__{ :redirect_to => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2RedirectTo do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/o_auth2_token_exchange.ex b/clients/hydra/elixir/lib/ory/model/o_auth2_token_exchange.ex index d7c36a8a218..8489b24d222 100644 --- a/clients/hydra/elixir/lib/ory/model/o_auth2_token_exchange.ex +++ b/clients/hydra/elixir/lib/ory/model/o_auth2_token_exchange.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2TokenExchange do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2TokenExchange do OAuth2 Token Exchange Result """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :access_token, :expires_in, @@ -19,15 +19,13 @@ defmodule Ory.Model.OAuth2TokenExchange do @type t :: %__MODULE__{ :access_token => String.t | nil, :expires_in => integer() | nil, - :id_token => integer() | nil, + :id_token => String.t | nil, :refresh_token => String.t | nil, :scope => String.t | nil, :token_type => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2TokenExchange do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/oidc_configuration.ex b/clients/hydra/elixir/lib/ory/model/oidc_configuration.ex index 96e191af9be..4d6d6ec8eda 100644 --- a/clients/hydra/elixir/lib/ory/model/oidc_configuration.ex +++ b/clients/hydra/elixir/lib/ory/model/oidc_configuration.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OidcConfiguration do @@ -6,7 +6,7 @@ defmodule Ory.Model.OidcConfiguration do Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :authorization_endpoint, :backchannel_logout_session_supported, @@ -74,13 +74,12 @@ defmodule Ory.Model.OidcConfiguration do :userinfo_signed_response_alg => [String.t], :userinfo_signing_alg_values_supported => [String.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OidcConfiguration do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:credentials_supported_draft_00, :list, Ory.Model.CredentialSupportedDraft00, options) + |> Deserializer.deserialize(:credentials_supported_draft_00, :list, Ory.Model.CredentialSupportedDraft00) end end diff --git a/clients/hydra/elixir/lib/ory/model/oidc_user_info.ex b/clients/hydra/elixir/lib/ory/model/oidc_user_info.ex index e847e76b750..4efc9d9a725 100644 --- a/clients/hydra/elixir/lib/ory/model/oidc_user_info.ex +++ b/clients/hydra/elixir/lib/ory/model/oidc_user_info.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OidcUserInfo do @@ -6,7 +6,7 @@ defmodule Ory.Model.OidcUserInfo do OpenID Connect Userinfo """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :birthdate, :email, @@ -50,10 +50,8 @@ defmodule Ory.Model.OidcUserInfo do :website => String.t | nil, :zoneinfo => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OidcUserInfo do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/pagination.ex b/clients/hydra/elixir/lib/ory/model/pagination.ex index 81dc656ca4e..38b59916bc1 100644 --- a/clients/hydra/elixir/lib/ory/model/pagination.ex +++ b/clients/hydra/elixir/lib/ory/model/pagination.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Pagination do @@ -6,7 +6,7 @@ defmodule Ory.Model.Pagination do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :page_size, :page_token @@ -16,10 +16,8 @@ defmodule Ory.Model.Pagination do :page_size => integer() | nil, :page_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.Pagination do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/pagination_headers.ex b/clients/hydra/elixir/lib/ory/model/pagination_headers.ex index e3797cafe7a..e4dceaccab7 100644 --- a/clients/hydra/elixir/lib/ory/model/pagination_headers.ex +++ b/clients/hydra/elixir/lib/ory/model/pagination_headers.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.PaginationHeaders do @@ -6,7 +6,7 @@ defmodule Ory.Model.PaginationHeaders do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :link, :"x-total-count" @@ -16,10 +16,8 @@ defmodule Ory.Model.PaginationHeaders do :link => String.t | nil, :"x-total-count" => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.PaginationHeaders do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/reject_o_auth2_request.ex b/clients/hydra/elixir/lib/ory/model/reject_o_auth2_request.ex index 2509c029255..934e4e295cc 100644 --- a/clients/hydra/elixir/lib/ory/model/reject_o_auth2_request.ex +++ b/clients/hydra/elixir/lib/ory/model/reject_o_auth2_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RejectOAuth2Request do @@ -6,7 +6,7 @@ defmodule Ory.Model.RejectOAuth2Request do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :error_debug, @@ -22,10 +22,8 @@ defmodule Ory.Model.RejectOAuth2Request do :error_hint => String.t | nil, :status_code => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.RejectOAuth2Request do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/rfc6749_error_json.ex b/clients/hydra/elixir/lib/ory/model/rfc6749_error_json.ex index a4f2f58738e..2954fb104be 100644 --- a/clients/hydra/elixir/lib/ory/model/rfc6749_error_json.ex +++ b/clients/hydra/elixir/lib/ory/model/rfc6749_error_json.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Rfc6749ErrorJson do @@ -6,7 +6,7 @@ defmodule Ory.Model.Rfc6749ErrorJson do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :error_debug, @@ -22,10 +22,8 @@ defmodule Ory.Model.Rfc6749ErrorJson do :error_hint => String.t | nil, :status_code => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.Rfc6749ErrorJson do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/token_pagination.ex b/clients/hydra/elixir/lib/ory/model/token_pagination.ex index 8f9f14e159f..45e3daf8919 100644 --- a/clients/hydra/elixir/lib/ory/model/token_pagination.ex +++ b/clients/hydra/elixir/lib/ory/model/token_pagination.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TokenPagination do @@ -6,7 +6,7 @@ defmodule Ory.Model.TokenPagination do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :page_size, :page_token @@ -16,10 +16,8 @@ defmodule Ory.Model.TokenPagination do :page_size => integer() | nil, :page_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TokenPagination do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/token_pagination_headers.ex b/clients/hydra/elixir/lib/ory/model/token_pagination_headers.ex index 4edc4cb82ca..80adca06ce6 100644 --- a/clients/hydra/elixir/lib/ory/model/token_pagination_headers.ex +++ b/clients/hydra/elixir/lib/ory/model/token_pagination_headers.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TokenPaginationHeaders do @@ -6,7 +6,7 @@ defmodule Ory.Model.TokenPaginationHeaders do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :link, :"x-total-count" @@ -16,10 +16,8 @@ defmodule Ory.Model.TokenPaginationHeaders do :link => String.t | nil, :"x-total-count" => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TokenPaginationHeaders do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/token_pagination_request_parameters.ex b/clients/hydra/elixir/lib/ory/model/token_pagination_request_parameters.ex index f189dca8f10..b265e233b5b 100644 --- a/clients/hydra/elixir/lib/ory/model/token_pagination_request_parameters.ex +++ b/clients/hydra/elixir/lib/ory/model/token_pagination_request_parameters.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TokenPaginationRequestParameters do @@ -6,7 +6,7 @@ defmodule Ory.Model.TokenPaginationRequestParameters do The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :page_size, :page_token @@ -16,10 +16,8 @@ defmodule Ory.Model.TokenPaginationRequestParameters do :page_size => integer() | nil, :page_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TokenPaginationRequestParameters do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/token_pagination_response_headers.ex b/clients/hydra/elixir/lib/ory/model/token_pagination_response_headers.ex index a9b20130606..348e4763af6 100644 --- a/clients/hydra/elixir/lib/ory/model/token_pagination_response_headers.ex +++ b/clients/hydra/elixir/lib/ory/model/token_pagination_response_headers.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TokenPaginationResponseHeaders do @@ -6,7 +6,7 @@ defmodule Ory.Model.TokenPaginationResponseHeaders do The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :link, :"x-total-count" @@ -16,10 +16,8 @@ defmodule Ory.Model.TokenPaginationResponseHeaders do :link => String.t | nil, :"x-total-count" => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TokenPaginationResponseHeaders do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/trust_o_auth2_jwt_grant_issuer.ex b/clients/hydra/elixir/lib/ory/model/trust_o_auth2_jwt_grant_issuer.ex index b6775182f46..cc581539241 100644 --- a/clients/hydra/elixir/lib/ory/model/trust_o_auth2_jwt_grant_issuer.ex +++ b/clients/hydra/elixir/lib/ory/model/trust_o_auth2_jwt_grant_issuer.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TrustOAuth2JwtGrantIssuer do @@ -6,7 +6,7 @@ defmodule Ory.Model.TrustOAuth2JwtGrantIssuer do Trust OAuth2 JWT Bearer Grant Type Issuer Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :allow_any_subject, :expires_at, @@ -24,13 +24,13 @@ defmodule Ory.Model.TrustOAuth2JwtGrantIssuer do :scope => [String.t], :subject => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TrustOAuth2JwtGrantIssuer do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:jwk, :struct, Ory.Model.JsonWebKey, options) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:jwk, :struct, Ory.Model.JsonWebKey) end end diff --git a/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_issuer.ex b/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_issuer.ex index e10a9429f35..4cb464f3750 100644 --- a/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_issuer.ex +++ b/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_issuer.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TrustedOAuth2JwtGrantIssuer do @@ -6,7 +6,7 @@ defmodule Ory.Model.TrustedOAuth2JwtGrantIssuer do OAuth2 JWT Bearer Grant Type Issuer Trust Relationship """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :allow_any_subject, :created_at, @@ -28,13 +28,14 @@ defmodule Ory.Model.TrustedOAuth2JwtGrantIssuer do :scope => [String.t] | nil, :subject => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TrustedOAuth2JwtGrantIssuer do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:public_key, :struct, Ory.Model.TrustedOAuth2JwtGrantJsonWebKey, options) + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:public_key, :struct, Ory.Model.TrustedOAuth2JwtGrantJsonWebKey) end end diff --git a/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_json_web_key.ex b/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_json_web_key.ex index 5c4012d7484..35b5ccca15a 100644 --- a/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_json_web_key.ex +++ b/clients/hydra/elixir/lib/ory/model/trusted_o_auth2_jwt_grant_json_web_key.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TrustedOAuth2JwtGrantJsonWebKey do @@ -6,7 +6,7 @@ defmodule Ory.Model.TrustedOAuth2JwtGrantJsonWebKey do OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :kid, :set @@ -16,10 +16,8 @@ defmodule Ory.Model.TrustedOAuth2JwtGrantJsonWebKey do :kid => String.t | nil, :set => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TrustedOAuth2JwtGrantJsonWebKey do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/verifiable_credential_priming_response.ex b/clients/hydra/elixir/lib/ory/model/verifiable_credential_priming_response.ex index b6ffdb782a4..07794b4275e 100644 --- a/clients/hydra/elixir/lib/ory/model/verifiable_credential_priming_response.ex +++ b/clients/hydra/elixir/lib/ory/model/verifiable_credential_priming_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.VerifiableCredentialPrimingResponse do @@ -6,7 +6,7 @@ defmodule Ory.Model.VerifiableCredentialPrimingResponse do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :c_nonce, :c_nonce_expires_in, @@ -28,10 +28,8 @@ defmodule Ory.Model.VerifiableCredentialPrimingResponse do :format => String.t | nil, :status_code => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.VerifiableCredentialPrimingResponse do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/verifiable_credential_proof.ex b/clients/hydra/elixir/lib/ory/model/verifiable_credential_proof.ex index e8d1297a9b4..fb8338489a3 100644 --- a/clients/hydra/elixir/lib/ory/model/verifiable_credential_proof.ex +++ b/clients/hydra/elixir/lib/ory/model/verifiable_credential_proof.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.VerifiableCredentialProof do @@ -6,7 +6,7 @@ defmodule Ory.Model.VerifiableCredentialProof do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :jwt, :proof_type @@ -16,10 +16,8 @@ defmodule Ory.Model.VerifiableCredentialProof do :jwt => String.t | nil, :proof_type => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.VerifiableCredentialProof do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/verifiable_credential_response.ex b/clients/hydra/elixir/lib/ory/model/verifiable_credential_response.ex index e95f3c3d18b..91d2ce13fbf 100644 --- a/clients/hydra/elixir/lib/ory/model/verifiable_credential_response.ex +++ b/clients/hydra/elixir/lib/ory/model/verifiable_credential_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.VerifiableCredentialResponse do @@ -6,7 +6,7 @@ defmodule Ory.Model.VerifiableCredentialResponse do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :credential_draft_00, :format @@ -16,10 +16,8 @@ defmodule Ory.Model.VerifiableCredentialResponse do :credential_draft_00 => String.t | nil, :format => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.VerifiableCredentialResponse do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/model/version.ex b/clients/hydra/elixir/lib/ory/model/version.ex index 4385e0756a1..023a927ddea 100644 --- a/clients/hydra/elixir/lib/ory/model/version.ex +++ b/clients/hydra/elixir/lib/ory/model/version.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Version do @@ -6,7 +6,7 @@ defmodule Ory.Model.Version do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :version ] @@ -14,10 +14,8 @@ defmodule Ory.Model.Version do @type t :: %__MODULE__{ :version => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.Version do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/hydra/elixir/lib/ory/request_builder.ex b/clients/hydra/elixir/lib/ory/request_builder.ex index 64956365c4c..47016a0e74f 100644 --- a/clients/hydra/elixir/lib/ory/request_builder.ex +++ b/clients/hydra/elixir/lib/ory/request_builder.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.RequestBuilder do @@ -96,7 +96,7 @@ defmodule Ory.RequestBuilder do Tesla.Multipart.add_field( multipart, key, - Poison.encode!(value), + Jason.encode!(value), headers: [{:"Content-Type", "application/json"}] ) end) @@ -148,8 +148,8 @@ defmodule Ory.RequestBuilder do Map.put_new(request, :body, "") end - @type status_code :: 100..599 - @type response_mapping :: [{status_code, struct() | false}] + @type status_code :: :default | 100..599 + @type response_mapping :: [{status_code, false | %{} | module()}] @doc """ Evaluate the response from a Tesla request. @@ -187,5 +187,11 @@ defmodule Ory.RequestBuilder do defp decode(%Tesla.Env{} = env, false), do: {:ok, env} - defp decode(%Tesla.Env{body: body}, struct), do: Poison.decode(body, as: struct) + defp decode(%Tesla.Env{body: body}, %{}) do + Ory.Deserializer.jason_decode(body) + end + + defp decode(%Tesla.Env{body: body}, module) do + Ory.Deserializer.jason_decode(body, module) + end end diff --git a/clients/hydra/elixir/mix.exs b/clients/hydra/elixir/mix.exs index 49f7a268cf8..ac3716cbaeb 100644 --- a/clients/hydra/elixir/mix.exs +++ b/clients/hydra/elixir/mix.exs @@ -4,12 +4,14 @@ defmodule Ory.Mixfile do def project do [ app: :ory_hydra, - version: "2.2.0-rc.3", + version: "2.2.0", elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), - description: "Documentation for all of Ory Hydra's APIs. ", + description: """ + Documentation for all of Ory Hydra's APIs. + """, deps: deps() ] end @@ -33,9 +35,10 @@ defmodule Ory.Mixfile do # Type "mix help deps" for more examples and options defp deps do [ - {:tesla, "~> 1.4"}, - {:poison, "~> 3.0"}, - {:ex_doc, "~> 0.28", only: :dev, runtime: false} + {:tesla, "~> 1.7"}, + {:jason, "~> 1.4"}, + {:ex_doc, "~> 0.30", only: :dev, runtime: false}, + {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false} ] end diff --git a/clients/hydra/elixir/mix.lock b/clients/hydra/elixir/mix.lock index 5b2d115c9fe..033fab83b7a 100644 --- a/clients/hydra/elixir/mix.lock +++ b/clients/hydra/elixir/mix.lock @@ -1,11 +1,13 @@ %{ - "earmark_parser": {:hex, :earmark_parser, "1.4.33", "3c3fd9673bb5dcc9edc28dd90f50c87ce506d1f71b70e3de69aa8154bc695d44", [:mix], [], "hexpm", "2d526833729b59b9fdb85785078697c72ac5e5066350663e5be6a1182da61b8f"}, - "ex_doc": {:hex, :ex_doc, "0.30.5", "aa6da96a5c23389d7dc7c381eba862710e108cee9cfdc629b7ec021313900e9e", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "88a1e115dcb91cefeef7e22df4a6ebbe4634fbf98b38adcbc25c9607d6d9d8e6"}, - "makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"}, + "dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, + "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, + "ex_doc": {:hex, :ex_doc, "0.31.1", "8a2355ac42b1cc7b2379da9e40243f2670143721dd50748bf6c3b1184dae2089", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "3178c3a407c557d8343479e1ff117a96fd31bafe52a039079593fb0524ef61b0"}, + "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, + "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"}, + "makeup_erlang": {:hex, :makeup_erlang, "0.1.4", "29563475afa9b8a2add1b7a9c8fb68d06ca7737648f28398e04461f008b69521", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f4ed47ecda66de70dd817698a703f8816daa91272e7e45812469498614ae8b29"}, "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"}, - "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm", "fec8660eb7733ee4117b85f55799fd3833eb769a6df71ccf8903e8dc5447cfce"}, - "tesla": {:hex, :tesla, "1.7.0", "a62dda2f80d4f8a925eb7b8c5b78c461e0eb996672719fe1a63b26321a5f8b4e", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, "~> 1.3", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.0", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "2e64f01ebfdb026209b47bc651a0e65203fcff4ae79c11efb73c4852b00dc313"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, + "tesla": {:hex, :tesla, "1.8.0", "d511a4f5c5e42538d97eef7c40ec4f3e44effdc5068206f42ed859e09e51d1fd", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, ">= 1.0.0", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.2", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "10501f360cd926a309501287470372af1a6e1cbed0f43949203a4c13300bc79f"}, } diff --git a/clients/hydra/go/.openapi-generator/FILES b/clients/hydra/go/.openapi-generator/FILES index 8fd9b406238..6a2fd7e0d69 100644 --- a/clients/hydra/go/.openapi-generator/FILES +++ b/clients/hydra/go/.openapi-generator/FILES @@ -27,9 +27,9 @@ docs/IsReady503Response.md docs/JsonPatch.md docs/JsonWebKey.md docs/JsonWebKeySet.md -docs/JwkApi.md -docs/MetadataApi.md -docs/OAuth2Api.md +docs/JwkAPI.md +docs/MetadataAPI.md +docs/OAuth2API.md docs/OAuth2Client.md docs/OAuth2ClientTokenLifespans.md docs/OAuth2ConsentRequest.md @@ -40,7 +40,7 @@ docs/OAuth2LoginRequest.md docs/OAuth2LogoutRequest.md docs/OAuth2RedirectTo.md docs/OAuth2TokenExchange.md -docs/OidcApi.md +docs/OidcAPI.md docs/OidcConfiguration.md docs/OidcUserInfo.md docs/Pagination.md @@ -58,7 +58,7 @@ docs/VerifiableCredentialPrimingResponse.md docs/VerifiableCredentialProof.md docs/VerifiableCredentialResponse.md docs/Version.md -docs/WellknownApi.md +docs/WellknownAPI.md git_push.sh go.mod go.sum @@ -107,4 +107,9 @@ model_verifiable_credential_proof.go model_verifiable_credential_response.go model_version.go response.go +test/api_jwk_test.go +test/api_metadata_test.go +test/api_o_auth2_test.go +test/api_oidc_test.go +test/api_wellknown_test.go utils.go diff --git a/clients/hydra/go/.openapi-generator/VERSION b/clients/hydra/go/.openapi-generator/VERSION index 6d54bbd7751..3769235d3e6 100644 --- a/clients/hydra/go/.openapi-generator/VERSION +++ b/clients/hydra/go/.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/clients/hydra/go/README.md b/clients/hydra/go/README.md index 2fc446bdaff..a693aff4083 100644 --- a/clients/hydra/go/README.md +++ b/clients/hydra/go/README.md @@ -6,7 +6,7 @@ Documentation for all of Ory Hydra's APIs. ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: v2.2.0-rc.3 +- API version: v2.2.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -38,7 +38,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `client.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1) @@ -46,7 +46,7 @@ ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `client.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), client.ContextServerVariables, map[string]string{ @@ -60,9 +60,9 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `client.ContextOperationServerIndices` and `client.ContextOperationServerVariables` context maps. -``` +```golang ctx := context.WithValue(context.Background(), client.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) @@ -79,53 +79,53 @@ All URIs are relative to *http://localhost* Class | Method | HTTP request | Description ------------ | ------------- | ------------- | ------------- -*JwkApi* | [**CreateJsonWebKeySet**](docs/JwkApi.md#createjsonwebkeyset) | **Post** /admin/keys/{set} | Create JSON Web Key -*JwkApi* | [**DeleteJsonWebKey**](docs/JwkApi.md#deletejsonwebkey) | **Delete** /admin/keys/{set}/{kid} | Delete JSON Web Key -*JwkApi* | [**DeleteJsonWebKeySet**](docs/JwkApi.md#deletejsonwebkeyset) | **Delete** /admin/keys/{set} | Delete JSON Web Key Set -*JwkApi* | [**GetJsonWebKey**](docs/JwkApi.md#getjsonwebkey) | **Get** /admin/keys/{set}/{kid} | Get JSON Web Key -*JwkApi* | [**GetJsonWebKeySet**](docs/JwkApi.md#getjsonwebkeyset) | **Get** /admin/keys/{set} | Retrieve a JSON Web Key Set -*JwkApi* | [**SetJsonWebKey**](docs/JwkApi.md#setjsonwebkey) | **Put** /admin/keys/{set}/{kid} | Set JSON Web Key -*JwkApi* | [**SetJsonWebKeySet**](docs/JwkApi.md#setjsonwebkeyset) | **Put** /admin/keys/{set} | Update a JSON Web Key Set -*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 -*OAuth2Api* | [**AcceptOAuth2ConsentRequest**](docs/OAuth2Api.md#acceptoauth2consentrequest) | **Put** /admin/oauth2/auth/requests/consent/accept | Accept OAuth 2.0 Consent Request -*OAuth2Api* | [**AcceptOAuth2LoginRequest**](docs/OAuth2Api.md#acceptoauth2loginrequest) | **Put** /admin/oauth2/auth/requests/login/accept | Accept OAuth 2.0 Login Request -*OAuth2Api* | [**AcceptOAuth2LogoutRequest**](docs/OAuth2Api.md#acceptoauth2logoutrequest) | **Put** /admin/oauth2/auth/requests/logout/accept | Accept OAuth 2.0 Session Logout Request -*OAuth2Api* | [**CreateOAuth2Client**](docs/OAuth2Api.md#createoauth2client) | **Post** /admin/clients | Create OAuth 2.0 Client -*OAuth2Api* | [**DeleteOAuth2Client**](docs/OAuth2Api.md#deleteoauth2client) | **Delete** /admin/clients/{id} | Delete OAuth 2.0 Client -*OAuth2Api* | [**DeleteOAuth2Token**](docs/OAuth2Api.md#deleteoauth2token) | **Delete** /admin/oauth2/tokens | Delete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client -*OAuth2Api* | [**DeleteTrustedOAuth2JwtGrantIssuer**](docs/OAuth2Api.md#deletetrustedoauth2jwtgrantissuer) | **Delete** /admin/trust/grants/jwt-bearer/issuers/{id} | Delete Trusted OAuth2 JWT Bearer Grant Type Issuer -*OAuth2Api* | [**GetOAuth2Client**](docs/OAuth2Api.md#getoauth2client) | **Get** /admin/clients/{id} | Get an OAuth 2.0 Client -*OAuth2Api* | [**GetOAuth2ConsentRequest**](docs/OAuth2Api.md#getoauth2consentrequest) | **Get** /admin/oauth2/auth/requests/consent | Get OAuth 2.0 Consent Request -*OAuth2Api* | [**GetOAuth2LoginRequest**](docs/OAuth2Api.md#getoauth2loginrequest) | **Get** /admin/oauth2/auth/requests/login | Get OAuth 2.0 Login Request -*OAuth2Api* | [**GetOAuth2LogoutRequest**](docs/OAuth2Api.md#getoauth2logoutrequest) | **Get** /admin/oauth2/auth/requests/logout | Get OAuth 2.0 Session Logout Request -*OAuth2Api* | [**GetTrustedOAuth2JwtGrantIssuer**](docs/OAuth2Api.md#gettrustedoauth2jwtgrantissuer) | **Get** /admin/trust/grants/jwt-bearer/issuers/{id} | Get Trusted OAuth2 JWT Bearer Grant Type Issuer -*OAuth2Api* | [**IntrospectOAuth2Token**](docs/OAuth2Api.md#introspectoauth2token) | **Post** /admin/oauth2/introspect | Introspect OAuth2 Access and Refresh Tokens -*OAuth2Api* | [**ListOAuth2Clients**](docs/OAuth2Api.md#listoauth2clients) | **Get** /admin/clients | List OAuth 2.0 Clients -*OAuth2Api* | [**ListOAuth2ConsentSessions**](docs/OAuth2Api.md#listoauth2consentsessions) | **Get** /admin/oauth2/auth/sessions/consent | List OAuth 2.0 Consent Sessions of a Subject -*OAuth2Api* | [**ListTrustedOAuth2JwtGrantIssuers**](docs/OAuth2Api.md#listtrustedoauth2jwtgrantissuers) | **Get** /admin/trust/grants/jwt-bearer/issuers | List Trusted OAuth2 JWT Bearer Grant Type Issuers -*OAuth2Api* | [**OAuth2Authorize**](docs/OAuth2Api.md#oauth2authorize) | **Get** /oauth2/auth | OAuth 2.0 Authorize Endpoint -*OAuth2Api* | [**Oauth2TokenExchange**](docs/OAuth2Api.md#oauth2tokenexchange) | **Post** /oauth2/token | The OAuth 2.0 Token Endpoint -*OAuth2Api* | [**PatchOAuth2Client**](docs/OAuth2Api.md#patchoauth2client) | **Patch** /admin/clients/{id} | Patch OAuth 2.0 Client -*OAuth2Api* | [**RejectOAuth2ConsentRequest**](docs/OAuth2Api.md#rejectoauth2consentrequest) | **Put** /admin/oauth2/auth/requests/consent/reject | Reject OAuth 2.0 Consent Request -*OAuth2Api* | [**RejectOAuth2LoginRequest**](docs/OAuth2Api.md#rejectoauth2loginrequest) | **Put** /admin/oauth2/auth/requests/login/reject | Reject OAuth 2.0 Login Request -*OAuth2Api* | [**RejectOAuth2LogoutRequest**](docs/OAuth2Api.md#rejectoauth2logoutrequest) | **Put** /admin/oauth2/auth/requests/logout/reject | Reject OAuth 2.0 Session Logout Request -*OAuth2Api* | [**RevokeOAuth2ConsentSessions**](docs/OAuth2Api.md#revokeoauth2consentsessions) | **Delete** /admin/oauth2/auth/sessions/consent | Revoke OAuth 2.0 Consent Sessions of a Subject -*OAuth2Api* | [**RevokeOAuth2LoginSessions**](docs/OAuth2Api.md#revokeoauth2loginsessions) | **Delete** /admin/oauth2/auth/sessions/login | Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -*OAuth2Api* | [**RevokeOAuth2Token**](docs/OAuth2Api.md#revokeoauth2token) | **Post** /oauth2/revoke | Revoke OAuth 2.0 Access or Refresh Token -*OAuth2Api* | [**SetOAuth2Client**](docs/OAuth2Api.md#setoauth2client) | **Put** /admin/clients/{id} | Set OAuth 2.0 Client -*OAuth2Api* | [**SetOAuth2ClientLifespans**](docs/OAuth2Api.md#setoauth2clientlifespans) | **Put** /admin/clients/{id}/lifespans | Set OAuth2 Client Token Lifespans -*OAuth2Api* | [**TrustOAuth2JwtGrantIssuer**](docs/OAuth2Api.md#trustoauth2jwtgrantissuer) | **Post** /admin/trust/grants/jwt-bearer/issuers | Trust OAuth2 JWT Bearer Grant Type Issuer -*OidcApi* | [**CreateOidcDynamicClient**](docs/OidcApi.md#createoidcdynamicclient) | **Post** /oauth2/register | Register OAuth2 Client using OpenID Dynamic Client Registration -*OidcApi* | [**CreateVerifiableCredential**](docs/OidcApi.md#createverifiablecredential) | **Post** /credentials | Issues a Verifiable Credential -*OidcApi* | [**DeleteOidcDynamicClient**](docs/OidcApi.md#deleteoidcdynamicclient) | **Delete** /oauth2/register/{id} | Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol -*OidcApi* | [**DiscoverOidcConfiguration**](docs/OidcApi.md#discoveroidcconfiguration) | **Get** /.well-known/openid-configuration | OpenID Connect Discovery -*OidcApi* | [**GetOidcDynamicClient**](docs/OidcApi.md#getoidcdynamicclient) | **Get** /oauth2/register/{id} | Get OAuth2 Client using OpenID Dynamic Client Registration -*OidcApi* | [**GetOidcUserInfo**](docs/OidcApi.md#getoidcuserinfo) | **Get** /userinfo | OpenID Connect Userinfo -*OidcApi* | [**RevokeOidcSession**](docs/OidcApi.md#revokeoidcsession) | **Get** /oauth2/sessions/logout | OpenID Connect Front- and Back-channel Enabled Logout -*OidcApi* | [**SetOidcDynamicClient**](docs/OidcApi.md#setoidcdynamicclient) | **Put** /oauth2/register/{id} | Set OAuth2 Client using OpenID Dynamic Client Registration -*WellknownApi* | [**DiscoverJsonWebKeys**](docs/WellknownApi.md#discoverjsonwebkeys) | **Get** /.well-known/jwks.json | Discover Well-Known JSON Web Keys +*JwkAPI* | [**CreateJsonWebKeySet**](docs/JwkAPI.md#createjsonwebkeyset) | **Post** /admin/keys/{set} | Create JSON Web Key +*JwkAPI* | [**DeleteJsonWebKey**](docs/JwkAPI.md#deletejsonwebkey) | **Delete** /admin/keys/{set}/{kid} | Delete JSON Web Key +*JwkAPI* | [**DeleteJsonWebKeySet**](docs/JwkAPI.md#deletejsonwebkeyset) | **Delete** /admin/keys/{set} | Delete JSON Web Key Set +*JwkAPI* | [**GetJsonWebKey**](docs/JwkAPI.md#getjsonwebkey) | **Get** /admin/keys/{set}/{kid} | Get JSON Web Key +*JwkAPI* | [**GetJsonWebKeySet**](docs/JwkAPI.md#getjsonwebkeyset) | **Get** /admin/keys/{set} | Retrieve a JSON Web Key Set +*JwkAPI* | [**SetJsonWebKey**](docs/JwkAPI.md#setjsonwebkey) | **Put** /admin/keys/{set}/{kid} | Set JSON Web Key +*JwkAPI* | [**SetJsonWebKeySet**](docs/JwkAPI.md#setjsonwebkeyset) | **Put** /admin/keys/{set} | Update a JSON Web Key Set +*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 +*OAuth2API* | [**AcceptOAuth2ConsentRequest**](docs/OAuth2API.md#acceptoauth2consentrequest) | **Put** /admin/oauth2/auth/requests/consent/accept | Accept OAuth 2.0 Consent Request +*OAuth2API* | [**AcceptOAuth2LoginRequest**](docs/OAuth2API.md#acceptoauth2loginrequest) | **Put** /admin/oauth2/auth/requests/login/accept | Accept OAuth 2.0 Login Request +*OAuth2API* | [**AcceptOAuth2LogoutRequest**](docs/OAuth2API.md#acceptoauth2logoutrequest) | **Put** /admin/oauth2/auth/requests/logout/accept | Accept OAuth 2.0 Session Logout Request +*OAuth2API* | [**CreateOAuth2Client**](docs/OAuth2API.md#createoauth2client) | **Post** /admin/clients | Create OAuth 2.0 Client +*OAuth2API* | [**DeleteOAuth2Client**](docs/OAuth2API.md#deleteoauth2client) | **Delete** /admin/clients/{id} | Delete OAuth 2.0 Client +*OAuth2API* | [**DeleteOAuth2Token**](docs/OAuth2API.md#deleteoauth2token) | **Delete** /admin/oauth2/tokens | Delete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client +*OAuth2API* | [**DeleteTrustedOAuth2JwtGrantIssuer**](docs/OAuth2API.md#deletetrustedoauth2jwtgrantissuer) | **Delete** /admin/trust/grants/jwt-bearer/issuers/{id} | Delete Trusted OAuth2 JWT Bearer Grant Type Issuer +*OAuth2API* | [**GetOAuth2Client**](docs/OAuth2API.md#getoauth2client) | **Get** /admin/clients/{id} | Get an OAuth 2.0 Client +*OAuth2API* | [**GetOAuth2ConsentRequest**](docs/OAuth2API.md#getoauth2consentrequest) | **Get** /admin/oauth2/auth/requests/consent | Get OAuth 2.0 Consent Request +*OAuth2API* | [**GetOAuth2LoginRequest**](docs/OAuth2API.md#getoauth2loginrequest) | **Get** /admin/oauth2/auth/requests/login | Get OAuth 2.0 Login Request +*OAuth2API* | [**GetOAuth2LogoutRequest**](docs/OAuth2API.md#getoauth2logoutrequest) | **Get** /admin/oauth2/auth/requests/logout | Get OAuth 2.0 Session Logout Request +*OAuth2API* | [**GetTrustedOAuth2JwtGrantIssuer**](docs/OAuth2API.md#gettrustedoauth2jwtgrantissuer) | **Get** /admin/trust/grants/jwt-bearer/issuers/{id} | Get Trusted OAuth2 JWT Bearer Grant Type Issuer +*OAuth2API* | [**IntrospectOAuth2Token**](docs/OAuth2API.md#introspectoauth2token) | **Post** /admin/oauth2/introspect | Introspect OAuth2 Access and Refresh Tokens +*OAuth2API* | [**ListOAuth2Clients**](docs/OAuth2API.md#listoauth2clients) | **Get** /admin/clients | List OAuth 2.0 Clients +*OAuth2API* | [**ListOAuth2ConsentSessions**](docs/OAuth2API.md#listoauth2consentsessions) | **Get** /admin/oauth2/auth/sessions/consent | List OAuth 2.0 Consent Sessions of a Subject +*OAuth2API* | [**ListTrustedOAuth2JwtGrantIssuers**](docs/OAuth2API.md#listtrustedoauth2jwtgrantissuers) | **Get** /admin/trust/grants/jwt-bearer/issuers | List Trusted OAuth2 JWT Bearer Grant Type Issuers +*OAuth2API* | [**OAuth2Authorize**](docs/OAuth2API.md#oauth2authorize) | **Get** /oauth2/auth | OAuth 2.0 Authorize Endpoint +*OAuth2API* | [**Oauth2TokenExchange**](docs/OAuth2API.md#oauth2tokenexchange) | **Post** /oauth2/token | The OAuth 2.0 Token Endpoint +*OAuth2API* | [**PatchOAuth2Client**](docs/OAuth2API.md#patchoauth2client) | **Patch** /admin/clients/{id} | Patch OAuth 2.0 Client +*OAuth2API* | [**RejectOAuth2ConsentRequest**](docs/OAuth2API.md#rejectoauth2consentrequest) | **Put** /admin/oauth2/auth/requests/consent/reject | Reject OAuth 2.0 Consent Request +*OAuth2API* | [**RejectOAuth2LoginRequest**](docs/OAuth2API.md#rejectoauth2loginrequest) | **Put** /admin/oauth2/auth/requests/login/reject | Reject OAuth 2.0 Login Request +*OAuth2API* | [**RejectOAuth2LogoutRequest**](docs/OAuth2API.md#rejectoauth2logoutrequest) | **Put** /admin/oauth2/auth/requests/logout/reject | Reject OAuth 2.0 Session Logout Request +*OAuth2API* | [**RevokeOAuth2ConsentSessions**](docs/OAuth2API.md#revokeoauth2consentsessions) | **Delete** /admin/oauth2/auth/sessions/consent | Revoke OAuth 2.0 Consent Sessions of a Subject +*OAuth2API* | [**RevokeOAuth2LoginSessions**](docs/OAuth2API.md#revokeoauth2loginsessions) | **Delete** /admin/oauth2/auth/sessions/login | Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID +*OAuth2API* | [**RevokeOAuth2Token**](docs/OAuth2API.md#revokeoauth2token) | **Post** /oauth2/revoke | Revoke OAuth 2.0 Access or Refresh Token +*OAuth2API* | [**SetOAuth2Client**](docs/OAuth2API.md#setoauth2client) | **Put** /admin/clients/{id} | Set OAuth 2.0 Client +*OAuth2API* | [**SetOAuth2ClientLifespans**](docs/OAuth2API.md#setoauth2clientlifespans) | **Put** /admin/clients/{id}/lifespans | Set OAuth2 Client Token Lifespans +*OAuth2API* | [**TrustOAuth2JwtGrantIssuer**](docs/OAuth2API.md#trustoauth2jwtgrantissuer) | **Post** /admin/trust/grants/jwt-bearer/issuers | Trust OAuth2 JWT Bearer Grant Type Issuer +*OidcAPI* | [**CreateOidcDynamicClient**](docs/OidcAPI.md#createoidcdynamicclient) | **Post** /oauth2/register | Register OAuth2 Client using OpenID Dynamic Client Registration +*OidcAPI* | [**CreateVerifiableCredential**](docs/OidcAPI.md#createverifiablecredential) | **Post** /credentials | Issues a Verifiable Credential +*OidcAPI* | [**DeleteOidcDynamicClient**](docs/OidcAPI.md#deleteoidcdynamicclient) | **Delete** /oauth2/register/{id} | Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol +*OidcAPI* | [**DiscoverOidcConfiguration**](docs/OidcAPI.md#discoveroidcconfiguration) | **Get** /.well-known/openid-configuration | OpenID Connect Discovery +*OidcAPI* | [**GetOidcDynamicClient**](docs/OidcAPI.md#getoidcdynamicclient) | **Get** /oauth2/register/{id} | Get OAuth2 Client using OpenID Dynamic Client Registration +*OidcAPI* | [**GetOidcUserInfo**](docs/OidcAPI.md#getoidcuserinfo) | **Get** /userinfo | OpenID Connect Userinfo +*OidcAPI* | [**RevokeOidcSession**](docs/OidcAPI.md#revokeoidcsession) | **Get** /oauth2/sessions/logout | OpenID Connect Front- and Back-channel Enabled Logout +*OidcAPI* | [**SetOidcDynamicClient**](docs/OidcAPI.md#setoidcdynamicclient) | **Put** /oauth2/register/{id} | Set OAuth2 Client using OpenID Dynamic Client Registration +*WellknownAPI* | [**DiscoverJsonWebKeys**](docs/WellknownAPI.md#discoverjsonwebkeys) | **Get** /.well-known/jwks.json | Discover Well-Known JSON Web Keys ## Documentation For Models @@ -179,7 +179,7 @@ Class | Method | HTTP request | Description ## Documentation For Authorization - +Authentication schemes defined for the API: ### basic - **Type**: HTTP basic authentication @@ -187,14 +187,13 @@ Class | Method | HTTP request | Description Example ```golang -auth := context.WithValue(context.Background(), sw.ContextBasicAuth, sw.BasicAuth{ +auth := context.WithValue(context.Background(), client.ContextBasicAuth, client.BasicAuth{ UserName: "username", Password: "password", }) r, err := client.Service.Operation(auth, args) ``` - ### bearer - **Type**: HTTP Bearer token authentication @@ -202,11 +201,10 @@ r, err := client.Service.Operation(auth, args) Example ```golang -auth := context.WithValue(context.Background(), sw.ContextAccessToken, "BEARER_TOKEN_STRING") +auth := context.WithValue(context.Background(), client.ContextAccessToken, "BEARER_TOKEN_STRING") r, err := client.Service.Operation(auth, args) ``` - ### oauth2 @@ -221,7 +219,7 @@ r, err := client.Service.Operation(auth, args) Example ```golang -auth := context.WithValue(context.Background(), sw.ContextAccessToken, "ACCESSTOKENSTRING") +auth := context.WithValue(context.Background(), client.ContextAccessToken, "ACCESSTOKENSTRING") r, err := client.Service.Operation(auth, args) ``` @@ -233,7 +231,7 @@ import "golang.org/x/oauth2" /* Perform OAuth2 round trip request and obtain a token */ tokenSource := oauth2cfg.TokenSource(createContext(httpClient), &token) -auth := context.WithValue(oauth2.NoContext, sw.ContextOAuth2, tokenSource) +auth := context.WithValue(oauth2.NoContext, client.ContextOAuth2, tokenSource) r, err := client.Service.Operation(auth, args) ``` diff --git a/clients/hydra/go/api/openapi.yaml b/clients/hydra/go/api/openapi.yaml index 635ac3ed1d5..7f53b57e229 100644 --- a/clients/hydra/go/api/openapi.yaml +++ b/clients/hydra/go/api/openapi.yaml @@ -7,7 +7,7 @@ info: license: name: Apache 2.0 title: Ory Hydra API - version: v2.2.0-rc.3 + version: v2.2.0 servers: - url: / tags: @@ -24,10 +24,10 @@ tags: paths: /.well-known/jwks.json: get: - description: "This endpoint returns JSON Web Keys required to verifying OpenID\ - \ Connect ID Tokens and,\nif enabled, OAuth 2.0 JWT Access Tokens. This endpoint\ - \ can be used with client libraries like\n[node-jwks-rsa](https://github.com/auth0/node-jwks-rsa)\ - \ among others." + description: |- + This endpoint returns JSON Web Keys required to verifying OpenID Connect ID Tokens and, + if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client libraries like + [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others. operationId: discoverJsonWebKeys responses: "200": @@ -47,11 +47,11 @@ paths: - wellknown /.well-known/openid-configuration: get: - description: "A mechanism for an OpenID Connect Relying Party to discover the\ - \ End-User's OpenID Provider and obtain information needed to interact with\ - \ it, including its OAuth 2.0 endpoint locations.\n\nPopular libraries for\ - \ OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang),\ - \ and others.\nFor a full list of clients go here: https://openid.net/developers/certified/" + description: |- + A mechanism for an OpenID Connect Relying Party to discover the End-User's OpenID Provider and obtain information needed to interact with it, including its OAuth 2.0 endpoint locations. + + Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang), and others. + For a full list of clients go here: https://openid.net/developers/certified/ operationId: discoverOidcConfiguration responses: "200": @@ -71,12 +71,16 @@ paths: - oidc /admin/clients: get: - description: "This endpoint lists all clients in the database, and never returns\ - \ client secrets.\nAs a default it lists the first 100 clients." + description: |- + This endpoint lists all clients in the database, and never returns client secrets. + As a default it lists the first 100 clients. operationId: listOAuth2Clients parameters: - - description: "Items per Page\n\nThis is the number of items per page to return.\n\ - For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + - description: |- + Items per Page + + This is the number of items per page to return. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). explode: true in: query name: page_size @@ -88,8 +92,11 @@ paths: minimum: 1 type: integer style: form - - description: "Next Page Token\n\nThe next page token.\nFor details on pagination\ - \ please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + - description: |- + Next Page Token + + The next page token. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). explode: true in: query name: page_token @@ -134,9 +141,9 @@ paths: tags: - oAuth2 post: - description: "Create a new OAuth 2.0 client. If you pass `client_secret` the\ - \ secret is used, otherwise a random secret\nis generated. The secret is echoed\ - \ in the response. It is not possible to retrieve it later on." + description: |- + Create a new OAuth 2.0 client. If you pass `client_secret` the secret is used, otherwise a random secret + is generated. The secret is echoed in the response. It is not possible to retrieve it later on. operationId: createOAuth2Client requestBody: content: @@ -170,11 +177,13 @@ paths: - oAuth2 /admin/clients/{id}: delete: - description: "Delete an existing OAuth 2.0 Client by its ID.\n\nOAuth 2.0 clients\ - \ are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0\ - \ clients are\ngenerated for applications which want to consume your OAuth\ - \ 2.0 or OpenID Connect capabilities.\n\nMake sure that this endpoint is well\ - \ protected and only callable by first-party components." + description: |- + Delete an existing OAuth 2.0 Client by its ID. + + OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. + + Make sure that this endpoint is well protected and only callable by first-party components. operationId: deleteOAuth2Client parameters: - description: The id of the OAuth 2.0 Client. @@ -187,8 +196,9 @@ paths: style: simple responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -199,10 +209,11 @@ paths: tags: - oAuth2 get: - description: "Get an OAuth 2.0 client by its ID. This endpoint never returns\ - \ the client secret.\n\nOAuth 2.0 clients are used to perform OAuth 2.0 and\ - \ OpenID Connect flows. Usually, OAuth 2.0 clients are\ngenerated for applications\ - \ which want to consume your OAuth 2.0 or OpenID Connect capabilities." + description: |- + Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. + + OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. operationId: getOAuth2Client parameters: - description: The id of the OAuth 2.0 Client. @@ -230,13 +241,13 @@ paths: tags: - oAuth2 patch: - description: "Patch an existing OAuth 2.0 Client using JSON Patch. If you pass\ - \ `client_secret`\nthe secret will be updated and returned via the API. This\ - \ is the\nonly time you will be able to retrieve the client secret, so write\ - \ it down and keep it safe.\n\nOAuth 2.0 clients are used to perform OAuth\ - \ 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are\ngenerated\ - \ for applications which want to consume your OAuth 2.0 or OpenID Connect\ - \ capabilities." + description: |- + Patch an existing OAuth 2.0 Client using JSON Patch. If you pass `client_secret` + the secret will be updated and returned via the API. This is the + only time you will be able to retrieve the client secret, so write it down and keep it safe. + + OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. operationId: patchOAuth2Client parameters: - description: The id of the OAuth 2.0 Client. @@ -278,13 +289,14 @@ paths: tags: - oAuth2 put: - description: "Replaces an existing OAuth 2.0 Client with the payload you send.\ - \ If you pass `client_secret` the secret is used,\notherwise the existing\ - \ secret is used.\n\nIf set, the secret is echoed in the response. It is not\ - \ possible to retrieve it later on.\n\nOAuth 2.0 Clients are used to perform\ - \ OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are\ngenerated\ - \ for applications which want to consume your OAuth 2.0 or OpenID Connect\ - \ capabilities." + description: |- + Replaces an existing OAuth 2.0 Client with the payload you send. If you pass `client_secret` the secret is used, + otherwise the existing secret is used. + + If set, the secret is echoed in the response. It is not possible to retrieve it later on. + + OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. operationId: setOAuth2Client parameters: - description: OAuth 2.0 Client ID @@ -369,13 +381,10 @@ paths: - oAuth2 /admin/keys/{set}: delete: - description: "Use this endpoint to delete a complete JSON Web Key Set and all\ - \ the keys in that set.\n\nA JSON Web Key (JWK) is a JavaScript Object Notation\ - \ (JSON) data structure that represents a cryptographic key. A JWK Set is\ - \ a JSON data structure that represents a set of JWKs. A JSON Web Key is identified\ - \ by its set and key id. ORY Hydra uses this functionality to store cryptographic\ - \ keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens),\ - \ and allows storing user-defined keys as well." + description: |- + Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. + + A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. operationId: deleteJsonWebKeySet parameters: - description: The JSON Web Key Set @@ -388,8 +397,9 @@ paths: style: simple responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -400,13 +410,10 @@ paths: tags: - jwk get: - description: "This endpoint can be used to retrieve JWK Sets stored in ORY Hydra.\n\ - \nA JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure\ - \ that represents a cryptographic key. A JWK Set is a JSON data structure\ - \ that represents a set of JWKs. A JSON Web Key is identified by its set and\ - \ key id. ORY Hydra uses this functionality to store cryptographic keys used\ - \ for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows\ - \ storing user-defined keys as well." + description: |- + This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. + + A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. operationId: getJsonWebKeySet parameters: - description: JSON Web Key Set ID @@ -434,16 +441,10 @@ paths: tags: - jwk post: - description: "This endpoint is capable of generating JSON Web Key Sets for you.\ - \ There a different strategies available, such as symmetric cryptographic\ - \ keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If\ - \ the specified JSON Web Key Set does not exist, it will be created.\n\nA\ - \ JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure\ - \ that represents a cryptographic key. A JWK Set is a JSON data structure\ - \ that represents a set of JWKs. A JSON Web Key is identified by its set and\ - \ key id. ORY Hydra uses this functionality to store cryptographic keys used\ - \ for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows\ - \ storing user-defined keys as well." + description: |- + This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. + + A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. operationId: createJsonWebKeySet parameters: - description: The JSON Web Key Set ID @@ -478,13 +479,10 @@ paths: tags: - jwk put: - description: "Use this method if you do not want to let Hydra generate the JWKs\ - \ for you, but instead save your own.\n\nA JSON Web Key (JWK) is a JavaScript\ - \ Object Notation (JSON) data structure that represents a cryptographic key.\ - \ A JWK Set is a JSON data structure that represents a set of JWKs. A JSON\ - \ Web Key is identified by its set and key id. ORY Hydra uses this functionality\ - \ to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID\ - \ Connect ID tokens), and allows storing user-defined keys as well." + description: |- + Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. + + A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. operationId: setJsonWebKeySet parameters: - description: The JSON Web Key Set ID @@ -519,13 +517,13 @@ paths: - jwk /admin/keys/{set}/{kid}: delete: - description: "Use this endpoint to delete a single JSON Web Key.\n\nA JSON Web\ - \ Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents\ - \ a cryptographic key. A\nJWK Set is a JSON data structure that represents\ - \ a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra\ - \ uses\nthis functionality to store cryptographic keys used for TLS and JSON\ - \ Web Tokens (such as OpenID Connect ID tokens),\nand allows storing user-defined\ - \ keys as well." + description: |- + Use this endpoint to delete a single JSON Web Key. + + A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A + JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses + this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), + and allows storing user-defined keys as well. operationId: deleteJsonWebKey parameters: - description: The JSON Web Key Set @@ -546,8 +544,9 @@ paths: style: simple responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -595,13 +594,10 @@ paths: tags: - jwk put: - description: "Use this method if you do not want to let Hydra generate the JWKs\ - \ for you, but instead save your own.\n\nA JSON Web Key (JWK) is a JavaScript\ - \ Object Notation (JSON) data structure that represents a cryptographic key.\ - \ A JWK Set is a JSON data structure that represents a set of JWKs. A JSON\ - \ Web Key is identified by its set and key id. ORY Hydra uses this functionality\ - \ to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID\ - \ Connect ID tokens), and allows storing user-defined keys as well." + description: |- + Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. + + A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. operationId: setJsonWebKey parameters: - description: The JSON Web Key Set ID @@ -644,17 +640,17 @@ paths: - jwk /admin/oauth2/auth/requests/consent: get: - description: "When an authorization code, hybrid, or implicit OAuth 2.0 Flow\ - \ is initiated, Ory asks the login provider\nto authenticate the subject and\ - \ then tell Ory now about it. If the subject authenticated, he/she must now\ - \ be asked if\nthe OAuth 2.0 Client which initiated the flow should be allowed\ - \ to access the resources on the subject's behalf.\n\nThe consent challenge\ - \ is appended to the consent provider's URL to which the subject's user-agent\ - \ (browser) is redirected to. The consent\nprovider uses that challenge to\ - \ fetch information on the OAuth2 request and then tells Ory if the subject\ - \ accepted\nor rejected the request.\n\nThe default consent provider is available\ - \ via the Ory Managed Account Experience. To customize the consent provider,\ - \ please\nhead over to the OAuth 2.0 documentation." + description: |- + When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider + to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if + the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. + + The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent + provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted + or rejected the request. + + The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please + head over to the OAuth 2.0 documentation. operationId: getOAuth2ConsentRequest parameters: - description: OAuth 2.0 Consent Request Challenge @@ -689,22 +685,23 @@ paths: - oAuth2 /admin/oauth2/auth/requests/consent/accept: put: - description: "When an authorization code, hybrid, or implicit OAuth 2.0 Flow\ - \ is initiated, Ory asks the login provider\nto authenticate the subject and\ - \ then tell Ory now about it. If the subject authenticated, he/she must now\ - \ be asked if\nthe OAuth 2.0 Client which initiated the flow should be allowed\ - \ to access the resources on the subject's behalf.\n\nThe consent challenge\ - \ is appended to the consent provider's URL to which the subject's user-agent\ - \ (browser) is redirected to. The consent\nprovider uses that challenge to\ - \ fetch information on the OAuth2 request and then tells Ory if the subject\ - \ accepted\nor rejected the request.\n\nThis endpoint tells Ory that the subject\ - \ has authorized the OAuth 2.0 client to access resources on his/her behalf.\n\ - The consent provider includes additional information, such as session data\ - \ for access and ID tokens, and if the\nconsent request should be used as\ - \ basis for future requests.\n\nThe response contains a redirect URL which\ - \ the consent provider should redirect the user-agent to.\n\nThe default consent\ - \ provider is available via the Ory Managed Account Experience. To customize\ - \ the consent provider, please\nhead over to the OAuth 2.0 documentation." + description: |- + When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider + to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if + the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. + + The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent + provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted + or rejected the request. + + This endpoint tells Ory that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. + The consent provider includes additional information, such as session data for access and ID tokens, and if the + consent request should be used as basis for future requests. + + The response contains a redirect URL which the consent provider should redirect the user-agent to. + + The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please + head over to the OAuth 2.0 documentation. operationId: acceptOAuth2ConsentRequest parameters: - description: OAuth 2.0 Consent Request Challenge @@ -739,21 +736,22 @@ paths: - oAuth2 /admin/oauth2/auth/requests/consent/reject: put: - description: "When an authorization code, hybrid, or implicit OAuth 2.0 Flow\ - \ is initiated, Ory asks the login provider\nto authenticate the subject and\ - \ then tell Ory now about it. If the subject authenticated, he/she must now\ - \ be asked if\nthe OAuth 2.0 Client which initiated the flow should be allowed\ - \ to access the resources on the subject's behalf.\n\nThe consent challenge\ - \ is appended to the consent provider's URL to which the subject's user-agent\ - \ (browser) is redirected to. The consent\nprovider uses that challenge to\ - \ fetch information on the OAuth2 request and then tells Ory if the subject\ - \ accepted\nor rejected the request.\n\nThis endpoint tells Ory that the subject\ - \ has not authorized the OAuth 2.0 client to access resources on his/her behalf.\n\ - The consent provider must include a reason why the consent was not granted.\n\ - \nThe response contains a redirect URL which the consent provider should redirect\ - \ the user-agent to.\n\nThe default consent provider is available via the\ - \ Ory Managed Account Experience. To customize the consent provider, please\n\ - head over to the OAuth 2.0 documentation." + description: |- + When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider + to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if + the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject's behalf. + + The consent challenge is appended to the consent provider's URL to which the subject's user-agent (browser) is redirected to. The consent + provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted + or rejected the request. + + This endpoint tells Ory that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. + The consent provider must include a reason why the consent was not granted. + + The response contains a redirect URL which the consent provider should redirect the user-agent to. + + The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please + head over to the OAuth 2.0 documentation. operationId: rejectOAuth2ConsentRequest parameters: - description: OAuth 2.0 Consent Request Challenge @@ -788,17 +786,16 @@ paths: - oAuth2 /admin/oauth2/auth/requests/login: get: - description: "When an authorization code, hybrid, or implicit OAuth 2.0 Flow\ - \ is initiated, Ory asks the login provider\nto authenticate the subject and\ - \ then tell the Ory OAuth2 Service about it.\n\nPer default, the login provider\ - \ is Ory itself. You may use a different login provider which needs to be\ - \ a web-app\nyou write and host, and it must be able to authenticate (\"show\ - \ the subject a login screen\")\na subject (in OAuth2 the proper name for\ - \ subject is \"resource owner\").\n\nThe authentication challenge is appended\ - \ to the login provider URL to which the subject's user-agent (browser) is\ - \ redirected to. The login\nprovider uses that challenge to fetch information\ - \ on the OAuth2 request and then accept or reject the requested authentication\ - \ process." + description: |- + When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider + to authenticate the subject and then tell the Ory OAuth2 Service about it. + + Per default, the login provider is Ory itself. You may use a different login provider which needs to be a web-app + you write and host, and it must be able to authenticate ("show the subject a login screen") + a subject (in OAuth2 the proper name for subject is "resource owner"). + + The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login + provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. operationId: getOAuth2LoginRequest parameters: - description: OAuth 2.0 Login Request Challenge @@ -833,17 +830,18 @@ paths: - oAuth2 /admin/oauth2/auth/requests/login/accept: put: - description: "When an authorization code, hybrid, or implicit OAuth 2.0 Flow\ - \ is initiated, Ory asks the login provider\nto authenticate the subject and\ - \ then tell the Ory OAuth2 Service about it.\n\nThe authentication challenge\ - \ is appended to the login provider URL to which the subject's user-agent\ - \ (browser) is redirected to. The login\nprovider uses that challenge to fetch\ - \ information on the OAuth2 request and then accept or reject the requested\ - \ authentication process.\n\nThis endpoint tells Ory that the subject has\ - \ successfully authenticated and includes additional information such as\n\ - the subject's ID and if Ory should remember the subject's subject agent for\ - \ future authentication attempts by setting\na cookie.\n\nThe response contains\ - \ a redirect URL which the login provider should redirect the user-agent to." + description: |- + When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider + to authenticate the subject and then tell the Ory OAuth2 Service about it. + + The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login + provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. + + This endpoint tells Ory that the subject has successfully authenticated and includes additional information such as + the subject's ID and if Ory should remember the subject's subject agent for future authentication attempts by setting + a cookie. + + The response contains a redirect URL which the login provider should redirect the user-agent to. operationId: acceptOAuth2LoginRequest parameters: - description: OAuth 2.0 Login Request Challenge @@ -878,16 +876,17 @@ paths: - oAuth2 /admin/oauth2/auth/requests/login/reject: put: - description: "When an authorization code, hybrid, or implicit OAuth 2.0 Flow\ - \ is initiated, Ory asks the login provider\nto authenticate the subject and\ - \ then tell the Ory OAuth2 Service about it.\n\nThe authentication challenge\ - \ is appended to the login provider URL to which the subject's user-agent\ - \ (browser) is redirected to. The login\nprovider uses that challenge to fetch\ - \ information on the OAuth2 request and then accept or reject the requested\ - \ authentication process.\n\nThis endpoint tells Ory that the subject has\ - \ not authenticated and includes a reason why the authentication\nwas denied.\n\ - \nThe response contains a redirect URL which the login provider should redirect\ - \ the user-agent to." + description: |- + When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider + to authenticate the subject and then tell the Ory OAuth2 Service about it. + + The authentication challenge is appended to the login provider URL to which the subject's user-agent (browser) is redirected to. The login + provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. + + This endpoint tells Ory that the subject has not authenticated and includes a reason why the authentication + was denied. + + The response contains a redirect URL which the login provider should redirect the user-agent to. operationId: rejectOAuth2LoginRequest parameters: - description: OAuth 2.0 Login Request Challenge @@ -956,10 +955,10 @@ paths: - oAuth2 /admin/oauth2/auth/requests/logout/accept: put: - description: "When a user or an application requests Ory OAuth 2.0 to remove\ - \ the session state of a subject, this endpoint is used to confirm that logout\ - \ request.\n\nThe response contains a redirect URL which the consent provider\ - \ should redirect the user-agent to." + description: |- + When a user or an application requests Ory OAuth 2.0 to remove the session state of a subject, this endpoint is used to confirm that logout request. + + The response contains a redirect URL which the consent provider should redirect the user-agent to. operationId: acceptOAuth2LogoutRequest parameters: - description: OAuth 2.0 Logout Request Challenge @@ -988,10 +987,11 @@ paths: - oAuth2 /admin/oauth2/auth/requests/logout/reject: put: - description: "When a user or an application requests Ory OAuth 2.0 to remove\ - \ the session state of a subject, this endpoint is used to deny that logout\ - \ request.\nNo HTTP request body is required.\n\nThe response is empty as\ - \ the logout provider has to chose what action to perform next." + description: |- + When a user or an application requests Ory OAuth 2.0 to remove the session state of a subject, this endpoint is used to deny that logout request. + No HTTP request body is required. + + The response is empty as the logout provider has to chose what action to perform next. operationId: rejectOAuth2LogoutRequest parameters: - explode: true @@ -1003,8 +1003,9 @@ paths: style: form responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1032,8 +1033,10 @@ paths: schema: type: string style: form - - description: "OAuth 2.0 Client ID\n\nIf set, deletes only those consent sessions\ - \ that have been granted to the specified OAuth 2.0 Client ID." + - description: |- + OAuth 2.0 Client ID + + If set, deletes only those consent sessions that have been granted to the specified OAuth 2.0 Client ID. explode: true in: query name: client @@ -1054,8 +1057,9 @@ paths: style: form responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1066,14 +1070,17 @@ paths: tags: - oAuth2 get: - description: "This endpoint lists all subject's granted consent sessions, including\ - \ client and granted scope.\nIf the subject is unknown or has not granted\ - \ any consent sessions yet, the endpoint returns an\nempty JSON array with\ - \ status code 200 OK." + description: |- + This endpoint lists all subject's granted consent sessions, including client and granted scope. + If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an + empty JSON array with status code 200 OK. operationId: listOAuth2ConsentSessions parameters: - - description: "Items per Page\n\nThis is the number of items per page to return.\n\ - For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + - description: |- + Items per Page + + This is the number of items per page to return. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). explode: true in: query name: page_size @@ -1085,8 +1092,11 @@ paths: minimum: 1 type: integer style: form - - description: "Next Page Token\n\nThe next page token.\nFor details on pagination\ - \ please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + - description: |- + Next Page Token + + The next page token. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). explode: true in: query name: page_token @@ -1130,15 +1140,15 @@ paths: - oAuth2 /admin/oauth2/auth/sessions/login: delete: - description: "This endpoint invalidates authentication sessions. After revoking\ - \ the authentication session(s), the subject\nhas to re-authenticate at the\ - \ Ory OAuth2 Provider. This endpoint does not invalidate any tokens.\n\nIf\ - \ you send the subject in a query param, all authentication sessions that\ - \ belong to that subject are revoked.\nNo OpennID Connect Front- or Back-channel\ - \ logout is performed in this case.\n\nAlternatively, you can send a SessionID\ - \ via `sid` query param, in which case, only the session that is connected\n\ - to that SessionID is revoked. OpenID Connect Back-channel logout is performed\ - \ in this case." + description: |- + This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject + has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. + + If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. + No OpenID Connect Front- or Back-channel logout is performed in this case. + + Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected + to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. operationId: revokeOAuth2LoginSessions parameters: - description: |- @@ -1165,8 +1175,9 @@ paths: style: form responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1178,11 +1189,10 @@ paths: - oAuth2 /admin/oauth2/introspect: post: - description: "The introspection endpoint allows to check if a token (both refresh\ - \ and access) is active or not. An active token\nis neither expired nor revoked.\ - \ If a token is active, additional information on the token will be included.\ - \ You can\nset additional data for a token by setting `session.access_token`\ - \ during the consent flow." + description: |- + The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token + is neither expired nor revoked. If a token is active, additional information on the token will be included. You can + set additional data for a token by setting `session.access_token` during the consent flow. operationId: introspectOAuth2Token requestBody: content: @@ -1221,8 +1231,9 @@ paths: style: form responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1279,9 +1290,10 @@ paths: tags: - oAuth2 post: - description: "Use this endpoint to establish a trust relationship for a JWT\ - \ issuer\nto perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication\n\ - and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523)." + description: |- + Use this endpoint to establish a trust relationship for a JWT issuer + to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication + and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). operationId: trustOAuth2JwtGrantIssuer requestBody: content: @@ -1307,11 +1319,12 @@ paths: - oAuth2 /admin/trust/grants/jwt-bearer/issuers/{id}: delete: - description: "Use this endpoint to delete trusted JWT Bearer Grant Type Issuer.\ - \ The ID is the one returned when you\ncreated the trust relationship.\n\n\ - Once deleted, the associated issuer will no longer be able to perform the\ - \ JSON Web Token (JWT) Profile\nfor OAuth 2.0 Client Authentication and Authorization\ - \ Grant." + description: |- + Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you + created the trust relationship. + + Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile + for OAuth 2.0 Client Authentication and Authorization Grant. operationId: deleteTrustedOAuth2JwtGrantIssuer parameters: - description: The id of the desired grant @@ -1324,8 +1337,9 @@ paths: style: simple responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1405,13 +1419,15 @@ paths: - oidc /health/alive: get: - description: "This endpoint returns a HTTP 200 status code when Ory Hydra is\ - \ accepting incoming\nHTTP requests. This status does currently not include\ - \ checks whether the database connection is working.\n\nIf the service supports\ - \ TLS Edge Termination, this endpoint does not require the\n`X-Forwarded-Proto`\ - \ header to be set.\n\nBe aware that if you are running multiple nodes of\ - \ this service, the health status will never\nrefer to the cluster state,\ - \ only to a single instance." + description: |- + This endpoint returns a HTTP 200 status code when Ory Hydra is accepting incoming + HTTP requests. This status does currently not include checks whether the database connection is working. + + If the service supports TLS Edge Termination, this endpoint does not require the + `X-Forwarded-Proto` header to be set. + + 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. operationId: isAlive responses: "200": @@ -1431,12 +1447,15 @@ paths: - metadata /health/ready: get: - description: "This endpoint returns a HTTP 200 status code when Ory Hydra is\ - \ up running and the environment dependencies (e.g.\nthe database) are responsive\ - \ as well.\n\nIf the service supports TLS Edge Termination, this endpoint\ - \ does not require the\n`X-Forwarded-Proto` header to be set.\n\nBe aware\ - \ that if you are running multiple nodes of Ory Hydra, the health status will\ - \ never\nrefer to the cluster state, only to a single instance." + description: |- + This endpoint returns a HTTP 200 status code when Ory Hydra is up running and the environment dependencies (e.g. + the database) are responsive as well. + + If the service supports TLS Edge Termination, this endpoint does not require the + `X-Forwarded-Proto` header to be set. + + Be aware that if you are running multiple nodes of Ory Hydra, the health status will never + refer to the cluster state, only to a single instance. operationId: isReady responses: "200": @@ -1464,8 +1483,9 @@ paths: operationId: oAuth2Authorize responses: "302": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1522,18 +1542,18 @@ paths: - oidc /oauth2/register/{id}: delete: - description: "This endpoint behaves like the administrative counterpart (`deleteOAuth2Client`)\ - \ but is capable of facing the\npublic internet directly and can be used in\ - \ self-service. It implements the OpenID Connect\nDynamic Client Registration\ - \ Protocol. This feature needs to be enabled in the configuration. This endpoint\n\ - is disabled by default. It can be enabled by an administrator.\n\nTo use this\ - \ endpoint, you will need to present the client's authentication credentials.\ - \ If the OAuth2 Client\nuses the Token Endpoint Authentication Method `client_secret_post`,\ - \ you need to present the client secret in the URL query.\nIf it uses `client_secret_basic`,\ - \ present the Client ID and the Client Secret in the Authorization header.\n\ - \nOAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows.\ - \ Usually, OAuth 2.0 clients are\ngenerated for applications which want to\ - \ consume your OAuth 2.0 or OpenID Connect capabilities." + description: |- + This endpoint behaves like the administrative counterpart (`deleteOAuth2Client`) but is capable of facing the + public internet directly and can be used in self-service. It implements the OpenID Connect + Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint + is disabled by default. It can be enabled by an administrator. + + To use this endpoint, you will need to present the client's authentication credentials. If the OAuth2 Client + uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. + If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. + + OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. operationId: deleteOidcDynamicClient parameters: - description: The id of the OAuth 2.0 Client. @@ -1546,8 +1566,9 @@ paths: style: simple responses: "204": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1561,14 +1582,14 @@ paths: tags: - oidc get: - description: "This endpoint behaves like the administrative counterpart (`getOAuth2Client`)\ - \ but is capable of facing the\npublic internet directly and can be used in\ - \ self-service. It implements the OpenID Connect\nDynamic Client Registration\ - \ Protocol.\n\nTo use this endpoint, you will need to present the client's\ - \ authentication credentials. If the OAuth2 Client\nuses the Token Endpoint\ - \ Authentication Method `client_secret_post`, you need to present the client\ - \ secret in the URL query.\nIf it uses `client_secret_basic`, present the\ - \ Client ID and the Client Secret in the Authorization header." + description: |- + This endpoint behaves like the administrative counterpart (`getOAuth2Client`) but is capable of facing the + public internet directly and can be used in self-service. It implements the OpenID Connect + Dynamic Client Registration Protocol. + + To use this endpoint, you will need to present the client's authentication credentials. If the OAuth2 Client + uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. + If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. operationId: getOidcDynamicClient parameters: - description: The id of the OAuth 2.0 Client. @@ -1598,20 +1619,22 @@ paths: tags: - oidc put: - description: "This endpoint behaves like the administrative counterpart (`setOAuth2Client`)\ - \ but is capable of facing the\npublic internet directly to be used by third\ - \ parties. It implements the OpenID Connect\nDynamic Client Registration Protocol.\n\ - \nThis feature is disabled per default. It can be enabled by a system administrator.\n\ - \nIf you pass `client_secret` the secret is used, otherwise the existing secret\ - \ is used. If set, the secret is echoed in the response.\nIt is not possible\ - \ to retrieve it later on.\n\nTo use this endpoint, you will need to present\ - \ the client's authentication credentials. If the OAuth2 Client\nuses the\ - \ Token Endpoint Authentication Method `client_secret_post`, you need to present\ - \ the client secret in the URL query.\nIf it uses `client_secret_basic`, present\ - \ the Client ID and the Client Secret in the Authorization header.\n\nOAuth\ - \ 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually,\ - \ OAuth 2.0 clients are\ngenerated for applications which want to consume\ - \ your OAuth 2.0 or OpenID Connect capabilities." + description: |- + This endpoint behaves like the administrative counterpart (`setOAuth2Client`) but is capable of facing the + public internet directly to be used by third parties. It implements the OpenID Connect + Dynamic Client Registration Protocol. + + This feature is disabled per default. It can be enabled by a system administrator. + + If you pass `client_secret` the secret is used, otherwise the existing secret is used. If set, the secret is echoed in the response. + It is not possible to retrieve it later on. + + To use this endpoint, you will need to present the client's authentication credentials. If the OAuth2 Client + uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. + If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. + + OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. operationId: setOidcDynamicClient parameters: - description: OAuth 2.0 Client ID @@ -1656,12 +1679,11 @@ paths: - oidc /oauth2/revoke: post: - description: "Revoking a token (both access and refresh) means that the tokens\ - \ will be invalid. A revoked access token can no\nlonger be used to make access\ - \ requests, and a revoked refresh token can no longer be used to refresh an\ - \ access token.\nRevoking a refresh token also invalidates the access token\ - \ that was created with it. A token may only be revoked by\nthe client the\ - \ token was generated for." + description: |- + Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no + longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. + Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by + the client the token was generated for. operationId: revokeOAuth2Token requestBody: content: @@ -1670,8 +1692,9 @@ paths: $ref: '#/components/schemas/revokeOAuth2Token_request' responses: "200": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. default: content: application/json: @@ -1696,8 +1719,9 @@ paths: operationId: revokeOidcSession responses: "302": - description: "Empty responses are sent when, for example, resources are\ - \ deleted. The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. summary: OpenID Connect Front- and Back-channel Enabled Logout tags: - oidc @@ -1735,11 +1759,13 @@ paths: - oAuth2 /userinfo: get: - description: "This endpoint returns the payload of the ID Token, including `session.id_token`\ - \ values, of\nthe provided OAuth 2.0 Access Token's consent request.\n\nIn\ - \ the case of authentication error, a WWW-Authenticate header might be set\ - \ in the response\nwith more information about the error. See [the spec](https://datatracker.ietf.org/doc/html/rfc6750#section-3)\n\ - for more details about header format." + description: |- + This endpoint returns the payload of the ID Token, including `session.id_token` values, of + the provided OAuth 2.0 Access Token's consent request. + + In the case of authentication error, a WWW-Authenticate header might be set in the response + with more information about the error. See [the spec](https://datatracker.ietf.org/doc/html/rfc6750#section-3) + for more details about header format. operationId: getOidcUserInfo responses: "200": @@ -1761,11 +1787,14 @@ paths: - oidc /version: get: - description: "This endpoint returns the version of Ory Hydra.\n\nIf the service\ - \ supports TLS Edge Termination, this endpoint does not require the\n`X-Forwarded-Proto`\ - \ header to be set.\n\nBe aware that if you are running multiple nodes of\ - \ this service, the version will never\nrefer to the cluster state, only to\ - \ a single instance." + description: |- + This endpoint returns the version of Ory Hydra. + + If the service supports TLS Edge Termination, this endpoint does not require the + `X-Forwarded-Proto` header to be set. + + 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. operationId: getVersion responses: "200": @@ -1780,8 +1809,9 @@ paths: components: responses: emptyResponse: - description: "Empty responses are sent when, for example, resources are deleted.\ - \ The HTTP status code for empty responses is\ntypically 201." + description: |- + Empty responses are sent when, for example, resources are deleted. The HTTP status code for empty responses is + typically 201. errorOAuth2BadRequest: content: application/json: @@ -1896,6 +1926,9 @@ components: type: object acceptOAuth2ConsentRequest: properties: + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." grant_access_token_audience: items: type: string @@ -1913,14 +1946,14 @@ components: title: NullTime implements sql.NullTime functionality. type: string remember: - description: "Remember, if set to true, tells ORY Hydra to remember this\ - \ consent authorization and reuse it if the same\nclient asks the same\ - \ user for the same, or a subset of, scope." + description: |- + Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same + client asks the same user for the same, or a subset of, scope. type: boolean remember_for: - description: "RememberFor sets how long the consent authorization should\ - \ be remembered for in seconds. If set to `0`, the\nauthorization will\ - \ be remembered indefinitely." + description: |- + RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the + authorization will be remembered indefinitely. format: int64 type: integer session: @@ -1933,13 +1966,11 @@ components: id_token: "" properties: access_token: - description: "AccessToken sets session data for the access and refresh token,\ - \ as well as any future tokens issued by the\nrefresh grant. Keep in mind\ - \ that this data will be available to anyone performing OAuth 2.0 Challenge\ - \ Introspection.\nIf only your services can perform OAuth 2.0 Challenge\ - \ Introspection, this is usually fine. But if third parties\ncan access\ - \ that endpoint as well, sensitive data from the session might be exposed\ - \ to them. Use with care!" + description: |- + AccessToken sets session data for the access and refresh token, as well as any future tokens issued by the + refresh grant. Keep in mind that this data will be available to anyone performing OAuth 2.0 Challenge Introspection. + If only your services can perform OAuth 2.0 Challenge Introspection, this is usually fine. But if third parties + can access that endpoint as well, sensitive data from the session might be exposed to them. Use with care! id_token: description: |- IDToken sets session data for the OpenID Connect ID token. Keep in mind that the session'id payloads are readable @@ -1949,9 +1980,9 @@ components: acceptOAuth2LoginRequest: properties: acr: - description: "ACR sets the Authentication AuthorizationContext Class Reference\ - \ value for this authentication session. You can use it\nto express that,\ - \ for example, a user authenticated using two factor authentication." + description: |- + ACR sets the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it + to express that, for example, a user authenticated using two factor authentication. type: string amr: items: @@ -1963,47 +1994,48 @@ components: title: "JSONRawMessage represents a json.RawMessage that works well with\ \ JSON, SQL, and Swagger." extend_session_lifespan: - description: "Extend OAuth2 authentication session lifespan\n\nIf set to\ - \ `true`, the OAuth2 authentication cookie lifespan is extended. This\ - \ is for example useful if you want the user to be able to use `prompt=none`\ - \ continuously.\n\nThis value can only be set to `true` if the user has\ - \ an authentication, which is the case if the `skip` value is `true`." + description: |- + Extend OAuth2 authentication session lifespan + + If set to `true`, the OAuth2 authentication cookie lifespan is extended. This is for example useful if you want the user to be able to use `prompt=none` continuously. + + This value can only be set to `true` if the user has an authentication, which is the case if the `skip` value is `true`. type: boolean force_subject_identifier: - description: "ForceSubjectIdentifier forces the \"pairwise\" user ID of\ - \ the end-user that authenticated. The \"pairwise\" user ID refers to\ - \ the\n(Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg]\ - \ of the OpenID\nConnect specification. It allows you to set an obfuscated\ - \ subject (\"user\") identifier that is unique to the client.\n\nPlease\ - \ note that this changes the user ID on endpoint /userinfo and sub claim\ - \ of the ID Token. It does not change the\nsub claim in the OAuth 2.0\ - \ Introspection.\n\nPer default, ORY Hydra handles this value with its\ - \ own algorithm. In case you want to set this yourself\nyou can use this\ - \ field. Please note that setting this field has no effect if `pairwise`\ - \ is not configured in\nORY Hydra or the OAuth 2.0 Client does not expect\ - \ a pairwise identifier (set via `subject_type` key in the client's\n\ - configuration).\n\nPlease also be aware that ORY Hydra is unable to properly\ - \ compute this value during authentication. This implies\nthat you have\ - \ to compute this value on every authentication process (probably depending\ - \ on the client ID or some\nother unique value).\n\nIf you fail to compute\ - \ the proper value, then authentication processes which have id_token_hint\ - \ set might fail." + description: |- + ForceSubjectIdentifier forces the "pairwise" user ID of the end-user that authenticated. The "pairwise" user ID refers to the + (Pairwise Identifier Algorithm)[http://openid.net/specs/openid-connect-core-1_0.html#PairwiseAlg] of the OpenID + Connect specification. It allows you to set an obfuscated subject ("user") identifier that is unique to the client. + + Please note that this changes the user ID on endpoint /userinfo and sub claim of the ID Token. It does not change the + sub claim in the OAuth 2.0 Introspection. + + Per default, ORY Hydra handles this value with its own algorithm. In case you want to set this yourself + you can use this field. Please note that setting this field has no effect if `pairwise` is not configured in + ORY Hydra or the OAuth 2.0 Client does not expect a pairwise identifier (set via `subject_type` key in the client's + configuration). + + Please also be aware that ORY Hydra is unable to properly compute this value during authentication. This implies + that you have to compute this value on every authentication process (probably depending on the client ID or some + other unique value). + + If you fail to compute the proper value, then authentication processes which have id_token_hint set might fail. type: string identity_provider_session_id: - description: "IdentityProviderSessionID is the session ID of the end-user\ - \ that authenticated.\nIf specified, we will use this value to propagate\ - \ the logout." + description: |- + IdentityProviderSessionID is the session ID of the end-user that authenticated. + If specified, we will use this value to propagate the logout. type: string remember: - description: "Remember, if set to true, tells ORY Hydra to remember this\ - \ user by telling the user agent (browser) to store\na cookie with authentication\ - \ data. If the same user performs another OAuth 2.0 Authorization Request,\ - \ he/she\nwill not be asked to log in again." + description: |- + Remember, if set to true, tells ORY Hydra to remember this user by telling the user agent (browser) to store + a cookie with authentication data. If the same user performs another OAuth 2.0 Authorization Request, he/she + will not be asked to log in again. type: boolean remember_for: - description: "RememberFor sets how long the authentication should be remembered\ - \ for in seconds. If set to `0`, the\nauthorization will be remembered\ - \ for the duration of the browser session (using a session cookie)." + description: |- + RememberFor sets how long the authentication should be remembered for in seconds. If set to `0`, the + authorization will be remembered for the duration of the browser session (using a session cookie). format: int64 type: integer subject: @@ -2017,8 +2049,10 @@ components: description: Create JSON Web Key Set Request Body properties: alg: - description: "JSON Web Key Algorithm\n\nThe algorithm to be used for creating\ - \ the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`." + description: |- + JSON Web Key Algorithm + + The algorithm to be used for creating the key. Supports `RS256`, `ES256`, `ES512`, `HS512`, and `HS256`. type: string kid: description: |- @@ -2187,8 +2221,9 @@ components: type: string type: object introspectedOAuth2Token: - description: "Introspection contains an access token's session data as specified\ - \ by\n[IETF RFC 7662](https://tools.ietf.org/html/rfc7662)" + description: |- + Introspection contains an access token's session data as specified by + [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) example: ext: key: "" @@ -2209,14 +2244,16 @@ components: username: username properties: active: - description: "Active is a boolean indicator of whether or not the presented\ - \ token\nis currently active. The specifics of a token's \"active\" state\n\ - will vary depending on the implementation of the authorization\nserver\ - \ and the information it keeps about its tokens, but a \"true\"\nvalue\ - \ return for the \"active\" property will generally indicate\nthat a given\ - \ token has been issued by this authorization server,\nhas not been revoked\ - \ by the resource owner, and is within its\ngiven time window of validity\ - \ (e.g., after its issuance time and\nbefore its expiration time)." + description: |- + Active is a boolean indicator of whether or not the presented token + is currently active. The specifics of a token's "active" state + will vary depending on the implementation of the authorization + server and the information it keeps about its tokens, but a "true" + value return for the "active" property will generally indicate + that a given token has been issued by this authorization server, + has not been revoked by the resource owner, and is within its + given time window of validity (e.g., after its issuance time and + before its expiration time). type: boolean aud: description: Audience contains a list of the token's intended audiences. @@ -2229,9 +2266,9 @@ components: requested this token. type: string exp: - description: "Expires at is an integer timestamp, measured in the number\ - \ of seconds\nsince January 1 1970 UTC, indicating when this token will\ - \ expire." + description: |- + Expires at is an integer timestamp, measured in the number of seconds + since January 1 1970 UTC, indicating when this token will expire. format: int64 type: integer ext: @@ -2239,18 +2276,20 @@ components: description: Extra is arbitrary data set by the session. type: object iat: - description: "Issued at is an integer timestamp, measured in the number\ - \ of seconds\nsince January 1 1970 UTC, indicating when this token was\n\ - originally issued." + description: |- + Issued at is an integer timestamp, measured in the number of seconds + since January 1 1970 UTC, indicating when this token was + originally issued. format: int64 type: integer iss: description: IssuerURL is a string representing the issuer of this token type: string nbf: - description: "NotBefore is an integer timestamp, measured in the number\ - \ of seconds\nsince January 1 1970 UTC, indicating when this token is\ - \ not to be\nused before." + description: |- + NotBefore is an integer timestamp, measured in the number of seconds + since January 1 1970 UTC, indicating when this token is not to be + used before. format: int64 type: integer obfuscated_subject: @@ -2264,9 +2303,10 @@ components: scopes associated with this token. type: string sub: - description: "Subject of the token, as defined in JWT [RFC7519].\nUsually\ - \ a machine-readable identifier of the resource owner who\nauthorized\ - \ this token." + description: |- + Subject of the token, as defined in JWT [RFC7519]. + Usually a machine-readable identifier of the resource owner who + authorized this token. type: string token_type: description: "TokenType is the introspected token's type, typically `Bearer`." @@ -2287,8 +2327,10 @@ components: description: A JSONPatch document as defined by RFC 6902 properties: from: - description: "This field is used together with operation \"move\" and uses\ - \ JSON Pointer notation.\n\nLearn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5)." + description: |- + This field is used together with operation "move" and uses JSON Pointer notation. + + Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). example: /name type: string op: @@ -2297,13 +2339,17 @@ components: example: replace type: string path: - description: "The path to the target path. Uses JSON pointer notation.\n\ - \nLearn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5)." + description: |- + The path to the target path. Uses JSON pointer notation. + + Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). example: /name type: string value: - description: "The value to be used within the operations.\n\nLearn more\ - \ [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5)." + description: |- + The value to be used within the operations. + + Learn more [about JSON Pointers](https://datatracker.ietf.org/doc/html/rfc6901#section-5). example: foobar required: - op @@ -2337,11 +2383,12 @@ components: alg: RS256 properties: alg: - description: "The \"alg\" (algorithm) parameter identifies the algorithm\ - \ intended for\nuse with the key. The values used should either be registered\ - \ in the\nIANA \"JSON Web Signature and Encryption Algorithms\" registry\n\ - established by [JWA] or be a value that contains a Collision-\nResistant\ - \ Name." + description: |- + The "alg" (algorithm) parameter identifies the algorithm intended for + use with the key. The values used should either be registered in the + IANA "JSON Web Signature and Encryption Algorithms" registry + established by [JWA] or be a value that contains a Collision- + Resistant Name. example: RS256 type: string crv: @@ -2363,23 +2410,25 @@ components: example: GawgguFyGrWKav7AX4VKUg type: string kid: - description: "The \"kid\" (key ID) parameter is used to match a specific\ - \ key. This\nis used, for instance, to choose among a set of keys within\ - \ a JWK Set\nduring key rollover. The structure of the \"kid\" value\ - \ is\nunspecified. When \"kid\" values are used within a JWK Set, different\n\ - keys within the JWK Set SHOULD use distinct \"kid\" values. (One\nexample\ - \ in which different keys might use the same \"kid\" value is if\nthey\ - \ have different \"kty\" (key type) values but are considered to be\n\ - equivalent alternatives by the application using them.) The \"kid\"\n\ - value is a case-sensitive string." + description: |- + The "kid" (key ID) parameter is used to match a specific key. This + is used, for instance, to choose among a set of keys within a JWK Set + during key rollover. The structure of the "kid" value is + unspecified. When "kid" values are used within a JWK Set, different + keys within the JWK Set SHOULD use distinct "kid" values. (One + example in which different keys might use the same "kid" value is if + they have different "kty" (key type) values but are considered to be + equivalent alternatives by the application using them.) The "kid" + value is a case-sensitive string. example: 1603dfe0af8f4596 type: string kty: - description: "The \"kty\" (key type) parameter identifies the cryptographic\ - \ algorithm\nfamily used with the key, such as \"RSA\" or \"EC\". \"kty\"\ - \ values should\neither be registered in the IANA \"JSON Web Key Types\"\ - \ registry\nestablished by [JWA] or be a value that contains a Collision-\n\ - Resistant Name. The \"kty\" value is a case-sensitive string." + description: |- + The "kty" (key type) parameter identifies the cryptographic algorithm + family used with the key, such as "RSA" or "EC". "kty" values should + either be registered in the IANA "JSON Web Key Types" registry + established by [JWA] or be a value that contains a Collision- + Resistant Name. The "kty" value is a case-sensitive string. example: RSA type: string "n": @@ -2406,12 +2455,14 @@ components: example: f83OJ3D2xF1Bg8vub9tLe1gHMzV76e8Tus9uPHvRVEU type: string x5c: - description: "The \"x5c\" (X.509 certificate chain) parameter contains a\ - \ chain of one\nor more PKIX certificates [RFC5280]. The certificate\ - \ chain is\nrepresented as a JSON array of certificate value strings.\ - \ Each\nstring in the array is a base64-encoded (Section 4 of [RFC4648]\ - \ --\nnot base64url-encoded) DER [ITU.X690.1994] PKIX certificate value.\n\ - The PKIX certificate containing the key value MUST be the first\ncertificate." + description: |- + The "x5c" (X.509 certificate chain) parameter contains a chain of one + or more PKIX certificates [RFC5280]. The certificate chain is + represented as a JSON array of certificate value strings. Each + string in the array is a base64-encoded (Section 4 of [RFC4648] -- + not base64url-encoded) DER [ITU.X690.1994] PKIX certificate value. + The PKIX certificate containing the key value MUST be the first + certificate. items: type: string type: array @@ -2468,11 +2519,14 @@ components: alg: RS256 properties: keys: - description: "List of JSON Web Keys\n\nThe value of the \"keys\" parameter\ - \ is an array of JSON Web Key (JWK)\nvalues. By default, the order of\ - \ the JWK values within the array does\nnot imply an order of preference\ - \ among them, although applications\nof JWK Sets can choose to assign\ - \ a meaning to the order for their\npurposes, if desired." + description: |- + List of JSON Web Keys + + The value of the "keys" parameter is an array of JSON Web Key (JWK) + values. By default, the order of the JWK values within the array does + not imply an order of preference among them, although applications + of JWK Sets can choose to assign a meaning to the order for their + purposes, if desired. items: $ref: '#/components/schemas/jsonWebKey' type: array @@ -2489,9 +2543,9 @@ components: title: NullTime implements sql.NullTime functionality. type: string oAuth2Client: - description: "OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect\ - \ flows. Usually, OAuth 2.0 clients are\ngenerated for applications which\ - \ want to consume your OAuth 2.0 or OpenID Connect capabilities." + description: |- + OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are + generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. example: metadata: "" token_endpoint_auth_signing_alg: token_endpoint_auth_signing_alg @@ -2542,6 +2596,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -2558,10 +2613,12 @@ components: - response_types properties: access_token_strategy: - description: "OAuth 2.0 Access Token Strategy\n\nAccessTokenStrategy is\ - \ the strategy used to generate access tokens.\nValid options are `jwt`\ - \ and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens\n\ - Setting the stragegy here overrides the global setting in `strategies.access_token`." + description: |- + OAuth 2.0 Access Token Strategy + + AccessTokenStrategy is the strategy used to generate access tokens. + Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens + Setting the stragegy here overrides the global setting in `strategies.access_token`. type: string allowed_cors_origins: items: @@ -2594,11 +2651,12 @@ components: title: Time duration type: string backchannel_logout_session_required: - description: "OpenID Connect Back-Channel Logout Session Required\n\nBoolean\ - \ value specifying whether the RP requires that a sid (session ID) Claim\ - \ be included in the Logout\nToken to identify the RP session with the\ - \ OP when the backchannel_logout_uri is used.\nIf omitted, the default\ - \ value is false." + description: |- + OpenID Connect Back-Channel Logout Session Required + + Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout + Token to identify the RP session with the OP when the backchannel_logout_uri is used. + If omitted, the default value is false. type: boolean backchannel_logout_uri: description: |- @@ -2616,7 +2674,7 @@ components: description: |- OAuth 2.0 Client ID - The ID is autogenerated and immutable. + The ID is immutable. If no ID is provided, a UUID4 will be generated. type: string client_name: description: |- @@ -2626,9 +2684,11 @@ components: end-user during authorization. type: string client_secret: - description: "OAuth 2.0 Client Secret\n\nThe secret will be included in\ - \ the create request as cleartext, and then\nnever again. The secret is\ - \ kept in hashed format and is not recoverable once lost." + description: |- + OAuth 2.0 Client Secret + + The secret will be included in the create request as cleartext, and then + never again. The secret is kept in hashed format and is not recoverable once lost. type: string client_secret_expires_at: description: |- @@ -2638,9 +2698,12 @@ components: format: int64 type: integer client_uri: - description: "OAuth 2.0 Client URI\n\nClientURI is a URL string of a web\ - \ page providing information about the client.\nIf present, the server\ - \ SHOULD display this URL to the end-user in\na clickable fashion." + description: |- + OAuth 2.0 Client URI + + ClientURI is a URL string of a web page providing information about the client. + If present, the server SHOULD display this URL to the end-user in + a clickable fashion. type: string contacts: items: @@ -2656,19 +2719,21 @@ components: format: date-time type: string frontchannel_logout_session_required: - description: "OpenID Connect Front-Channel Logout Session Required\n\nBoolean\ - \ value specifying whether the RP requires that iss (issuer) and sid (session\ - \ ID) query parameters be\nincluded to identify the RP session with the\ - \ OP when the frontchannel_logout_uri is used.\nIf omitted, the default\ - \ value is false." + description: |- + OpenID Connect Front-Channel Logout Session Required + + Boolean value specifying whether the RP requires that iss (issuer) and sid (session ID) query parameters be + included to identify the RP session with the OP when the frontchannel_logout_uri is used. + If omitted, the default value is false. type: boolean frontchannel_logout_uri: - description: "OpenID Connect Front-Channel Logout URI\n\nRP URL that will\ - \ cause the RP to log itself out when rendered in an iframe by the OP.\ - \ An iss (issuer) query\nparameter and a sid (session ID) query parameter\ - \ MAY be included by the OP to enable the RP to validate the\nrequest\ - \ and to determine which of the potentially multiple sessions is to be\ - \ logged out; if either is\nincluded, both MUST be." + description: |- + OpenID Connect Front-Channel Logout URI + + RP URL that will cause the RP to log itself out when rendered in an iframe by the OP. An iss (issuer) query + parameter and a sid (session ID) query parameter MAY be included by the OP to enable the RP to validate the + request and to determine which of the potentially multiple sessions is to be logged out; if either is + included, both MUST be. type: string grant_types: items: @@ -2689,31 +2754,28 @@ components: title: Time duration type: string jwks: - description: "OAuth 2.0 Client JSON Web Key Set\n\nClient's JSON Web Key\ - \ Set [JWK] document, passed by value. The semantics of the jwks parameter\ - \ are the same as\nthe jwks_uri parameter, other than that the JWK Set\ - \ is passed by value, rather than by reference. This parameter\nis intended\ - \ only to be used by Clients that, for some reason, are unable to use\ - \ the jwks_uri parameter, for\ninstance, by native applications that might\ - \ not have a location to host the contents of the JWK Set. If a Client\n\ - can use jwks_uri, it MUST NOT use jwks. One significant downside of jwks\ - \ is that it does not enable key rotation\n(which jwks_uri does, as described\ - \ in Section 10 of OpenID Connect Core 1.0 [OpenID.Core]). The jwks_uri\ - \ and jwks\nparameters MUST NOT be used together." + description: |- + OAuth 2.0 Client JSON Web Key Set + + Client's JSON Web Key Set [JWK] document, passed by value. The semantics of the jwks parameter are the same as + the jwks_uri parameter, other than that the JWK Set is passed by value, rather than by reference. This parameter + is intended only to be used by Clients that, for some reason, are unable to use the jwks_uri parameter, for + instance, by native applications that might not have a location to host the contents of the JWK Set. If a Client + can use jwks_uri, it MUST NOT use jwks. One significant downside of jwks is that it does not enable key rotation + (which jwks_uri does, as described in Section 10 of OpenID Connect Core 1.0 [OpenID.Core]). The jwks_uri and jwks + parameters MUST NOT be used together. jwks_uri: - description: "OAuth 2.0 Client JSON Web Key Set URL\n\nURL for the Client's\ - \ JSON Web Key Set [JWK] document. If the Client signs requests to the\ - \ Server, it contains\nthe signing key(s) the Server uses to validate\ - \ signatures from the Client. The JWK Set MAY also contain the\nClient's\ - \ encryption keys(s), which are used by the Server to encrypt responses\ - \ to the Client. When both signing\nand encryption keys are made available,\ - \ a use (Key Use) parameter value is REQUIRED for all keys in the referenced\n\ - JWK Set to indicate each key's intended usage. Although some algorithms\ - \ allow the same key to be used for both\nsignatures and encryption, doing\ - \ so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY\ - \ be used\nto provide X.509 representations of keys provided. When used,\ - \ the bare key values MUST still be present and MUST\nmatch those in the\ - \ certificate." + description: |- + OAuth 2.0 Client JSON Web Key Set URL + + URL for the Client's JSON Web Key Set [JWK] document. If the Client signs requests to the Server, it contains + the signing key(s) the Server uses to validate signatures from the Client. The JWK Set MAY also contain the + Client's encryption keys(s), which are used by the Server to encrypt responses to the Client. When both signing + and encryption keys are made available, a use (Key Use) parameter value is REQUIRED for all keys in the referenced + JWK Set to indicate each key's intended usage. Although some algorithms allow the same key to be used for both + signatures and encryption, doing so is NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used + to provide X.509 representations of keys provided. When used, the bare key values MUST still be present and MUST + match those in the certificate. type: string jwt_bearer_grant_access_token_lifespan: description: "Specify a time duration in milliseconds, seconds, minutes,\ @@ -2737,10 +2799,12 @@ components: Owner is a string identifying the owner of the OAuth 2.0 Client. type: string policy_uri: - description: "OAuth 2.0 Client Policy URI\n\nPolicyURI is a URL string that\ - \ points to a human-readable privacy policy document\nthat describes how\ - \ the deployment organization collects, uses,\nretains, and discloses\ - \ personal data." + description: |- + OAuth 2.0 Client Policy URI + + PolicyURI is a URL string that points to a human-readable privacy policy document + that describes how the deployment organization collects, uses, + retains, and discloses personal data. type: string post_logout_redirect_uris: items: @@ -2773,19 +2837,24 @@ components: title: Time duration type: string registration_access_token: - description: "OpenID Connect Dynamic Client Registration Access Token\n\n\ - RegistrationAccessToken can be used to update, get, or delete the OAuth2\ - \ Client. It is sent when creating a client\nusing Dynamic Client Registration." + description: |- + OpenID Connect Dynamic Client Registration Access Token + + RegistrationAccessToken can be used to update, get, or delete the OAuth2 Client. It is sent when creating a client + using Dynamic Client Registration. type: string registration_client_uri: - description: "OpenID Connect Dynamic Client Registration URL\n\nRegistrationClientURI\ - \ is the URL used to update, get, or delete the OAuth2 Client." + description: |- + OpenID Connect Dynamic Client Registration URL + + RegistrationClientURI is the URL used to update, get, or delete the OAuth2 Client. type: string request_object_signing_alg: - description: "OpenID Connect Request Object Signing Algorithm\n\nJWS [JWS]\ - \ alg algorithm [JWA] that MUST be used for signing Request Objects sent\ - \ to the OP. All Request Objects\nfrom this Client MUST be rejected, if\ - \ not signed with this algorithm." + description: |- + OpenID Connect Request Object Signing Algorithm + + JWS [JWS] alg algorithm [JWA] that MUST be used for signing Request Objects sent to the OP. All Request Objects + from this Client MUST be rejected, if not signed with this algorithm. type: string request_uris: items: @@ -2800,9 +2869,12 @@ components: \ JSON for SQL storage." type: array scope: - description: "OAuth 2.0 Client Scope\n\nScope is a string containing a space-separated\ - \ list of scope values (as\ndescribed in Section 3.3 of OAuth 2.0 [RFC6749])\ - \ that the client\ncan use when requesting access tokens." + description: |- + OAuth 2.0 Client Scope + + Scope is a string containing a space-separated list of scope values (as + described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client + can use when requesting access tokens. example: scope1 scope-2 scope.3 scope:4 type: string sector_identifier_uri: @@ -2817,6 +2889,11 @@ components: SkipConsent skips the consent screen for this client. This field can only be set from the admin API. type: boolean + skip_logout_consent: + description: |- + SkipLogoutConsent skips the logout consent screen for this client. This field can only + be set from the admin API. + type: boolean subject_type: description: |- OpenID Connect Subject Type @@ -2826,14 +2903,15 @@ components: type: string token_endpoint_auth_method: default: client_secret_basic - description: "OAuth 2.0 Token Endpoint Authentication Method\n\nRequested\ - \ Client Authentication method for the Token Endpoint. The options are:\n\ - \n`client_secret_basic`: (default) Send `client_id` and `client_secret`\ - \ as `application/x-www-form-urlencoded` encoded in the HTTP Authorization\ - \ header.\n`client_secret_post`: Send `client_id` and `client_secret`\ - \ as `application/x-www-form-urlencoded` in the HTTP body.\n`private_key_jwt`:\ - \ Use JSON Web Tokens to authenticate the client.\n`none`: Used for public\ - \ clients (native apps, mobile apps) which can not have secrets." + description: |- + OAuth 2.0 Token Endpoint Authentication Method + + Requested Client Authentication method for the Token Endpoint. The options are: + + `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. + `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. + `private_key_jwt`: Use JSON Web Tokens to authenticate the client. + `none`: Used for public clients (native apps, mobile apps) which can not have secrets. type: string token_endpoint_auth_signing_alg: description: |- @@ -2858,12 +2936,12 @@ components: format: date-time type: string userinfo_signed_response_alg: - description: "OpenID Connect Request Userinfo Signed Response Algorithm\n\ - \nJWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If\ - \ this is specified, the response will be JWT\n[JWT] serialized, and signed\ - \ using JWS. The default, if omitted, is for the UserInfo Response to\ - \ return the Claims\nas a UTF-8 encoded JSON object using the application/json\ - \ content-type." + description: |- + OpenID Connect Request Userinfo Signed Response Algorithm + + JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT + [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims + as a UTF-8 encoded JSON object using the application/json content-type. type: string title: OAuth 2.0 Client type: object @@ -3008,6 +3086,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3028,9 +3107,9 @@ components: - requested_scope properties: acr: - description: "ACR represents the Authentication AuthorizationContext Class\ - \ Reference value for this authentication session. You can use it\nto\ - \ express that, for example, a user authenticated using two factor authentication." + description: |- + ACR represents the Authentication AuthorizationContext Class Reference value for this authentication session. You can use it + to express that, for example, a user authenticated using two factor authentication. type: string amr: items: @@ -3063,11 +3142,10 @@ components: oidc_context: $ref: '#/components/schemas/oAuth2ConsentRequestOpenIDConnectContext' request_url: - description: "RequestURL is the original OAuth 2.0 Authorization URL requested\ - \ by the OAuth 2.0 client. It is the URL which\ninitiates the OAuth 2.0\ - \ Authorization Code or OAuth 2.0 Implicit flow. This URL is typically\ - \ not needed, but\nmight come in handy if you want to deal with additional\ - \ request parameters." + description: |- + RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which + initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but + might come in handy if you want to deal with additional request parameters. type: string requested_access_token_audience: items: @@ -3082,15 +3160,15 @@ components: \ JSON for SQL storage." type: array skip: - description: "Skip, if true, implies that the client has requested the same\ - \ scopes from the same user previously.\nIf true, you must not ask the\ - \ user to grant the requested scopes. You must however either allow or\ - \ deny the\nconsent request using the usual API call." + description: |- + Skip, if true, implies that the client has requested the same scopes from the same user previously. + If true, you must not ask the user to grant the requested scopes. You must however either allow or deny the + consent request using the usual API call. type: boolean subject: - description: "Subject is the user ID of the end-user that authenticated.\ - \ Now, that end user needs to grant or deny the scope\nrequested by the\ - \ OAuth 2.0 client." + description: |- + Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope + requested by the OAuth 2.0 client. type: string required: - challenge @@ -3110,36 +3188,29 @@ components: display: display properties: acr_values: - description: "ACRValues is the Authentication AuthorizationContext Class\ - \ Reference requested in the OAuth 2.0 Authorization request.\nIt is a\ - \ parameter defined by OpenID Connect and expresses which level of authentication\ - \ (e.g. 2FA) is required.\n\nOpenID Connect defines it as follows:\n>\ - \ Requested Authentication AuthorizationContext Class Reference values.\ - \ Space-separated string that specifies the acr values\nthat the Authorization\ - \ Server is being requested to use for processing this Authentication\ - \ Request, with the\nvalues appearing in order of preference. The Authentication\ - \ AuthorizationContext Class satisfied by the authentication\nperformed\ - \ is returned as the acr Claim Value, as specified in Section 2. The acr\ - \ Claim is requested as a\nVoluntary Claim by this parameter." + description: |- + ACRValues is the Authentication AuthorizationContext Class Reference requested in the OAuth 2.0 Authorization request. + It is a parameter defined by OpenID Connect and expresses which level of authentication (e.g. 2FA) is required. + + OpenID Connect defines it as follows: + > Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values + that the Authorization Server is being requested to use for processing this Authentication Request, with the + values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication + performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a + Voluntary Claim by this parameter. items: type: string type: array display: - description: "Display is a string value that specifies how the Authorization\ - \ Server displays the authentication and consent user interface pages\ - \ to the End-User.\nThe defined values are:\npage: The Authorization Server\ - \ SHOULD display the authentication and consent UI consistent with a full\ - \ User Agent page view. If the display parameter is not specified, this\ - \ is the default display mode.\npopup: The Authorization Server SHOULD\ - \ display the authentication and consent UI consistent with a popup User\ - \ Agent window. The popup User Agent window should be of an appropriate\ - \ size for a login-focused dialog and should not obscure the entire window\ - \ that it is popping up over.\ntouch: The Authorization Server SHOULD\ - \ display the authentication and consent UI consistent with a device that\ - \ leverages a touch interface.\nwap: The Authorization Server SHOULD display\ - \ the authentication and consent UI consistent with a \"feature phone\"\ - \ type display.\n\nThe Authorization Server MAY also attempt to detect\ - \ the capabilities of the User Agent and present an appropriate display." + description: |- + Display is a string value that specifies how the Authorization Server displays the authentication and consent user interface pages to the End-User. + The defined values are: + page: The Authorization Server SHOULD display the authentication and consent UI consistent with a full User Agent page view. If the display parameter is not specified, this is the default display mode. + popup: The Authorization Server SHOULD display the authentication and consent UI consistent with a popup User Agent window. The popup User Agent window should be of an appropriate size for a login-focused dialog and should not obscure the entire window that it is popping up over. + touch: The Authorization Server SHOULD display the authentication and consent UI consistent with a device that leverages a touch interface. + wap: The Authorization Server SHOULD display the authentication and consent UI consistent with a "feature phone" type display. + + The Authorization Server MAY also attempt to detect the capabilities of the User Agent and present an appropriate display. type: string id_token_hint_claims: additionalProperties: {} @@ -3155,14 +3226,12 @@ components: phone number in the format specified for the phone_number Claim. The use of this parameter is optional. type: string ui_locales: - description: "UILocales is the End-User'id preferred languages and scripts\ - \ for the user interface, represented as a\nspace-separated list of BCP47\ - \ [RFC5646] language tag values, ordered by preference. For instance,\ - \ the value\n\"fr-CA fr en\" represents a preference for French as spoken\ - \ in Canada, then French (without a region designation),\nfollowed by\ - \ English (without a region designation). An error SHOULD NOT result if\ - \ some or all of the requested\nlocales are not supported by the OpenID\ - \ Provider." + description: |- + UILocales is the End-User'id preferred languages and scripts for the user interface, represented as a + space-separated list of BCP47 [RFC5646] language tag values, ordered by preference. For instance, the value + "fr-CA fr en" represents a preference for French as spoken in Canada, then French (without a region designation), + followed by English (without a region designation). An error SHOULD NOT result if some or all of the requested + locales are not supported by the OpenID Provider. items: type: string type: array @@ -3247,6 +3316,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3274,6 +3344,7 @@ components: session: access_token: "" id_token: "" + context: "" grant_access_token_audience: - grant_access_token_audience - grant_access_token_audience @@ -3285,6 +3356,9 @@ components: properties: consent_request: $ref: '#/components/schemas/oAuth2ConsentRequest' + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." expires_at: $ref: '#/components/schemas/oAuth2ConsentSession_expires_at' grant_access_token_audience: @@ -3304,14 +3378,18 @@ components: title: NullTime implements sql.NullTime functionality. type: string remember: - description: "Remember Consent\n\nRemember, if set to true, tells ORY Hydra\ - \ to remember this consent authorization and reuse it if the same\nclient\ - \ asks the same user for the same, or a subset of, scope." + description: |- + Remember Consent + + Remember, if set to true, tells ORY Hydra to remember this consent authorization and reuse it if the same + client asks the same user for the same, or a subset of, scope. type: boolean remember_for: - description: "Remember Consent For\n\nRememberFor sets how long the consent\ - \ authorization should be remembered for in seconds. If set to `0`, the\n\ - authorization will be remembered indefinitely." + description: |- + Remember Consent For + + RememberFor sets how long the consent authorization should be remembered for in seconds. If set to `0`, the + authorization will be remembered indefinitely. format: int64 type: integer session: @@ -3391,6 +3469,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3422,11 +3501,10 @@ components: oidc_context: $ref: '#/components/schemas/oAuth2ConsentRequestOpenIDConnectContext' request_url: - description: "RequestURL is the original OAuth 2.0 Authorization URL requested\ - \ by the OAuth 2.0 client. It is the URL which\ninitiates the OAuth 2.0\ - \ Authorization Code or OAuth 2.0 Implicit flow. This URL is typically\ - \ not needed, but\nmight come in handy if you want to deal with additional\ - \ request parameters." + description: |- + RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which + initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but + might come in handy if you want to deal with additional request parameters. type: string requested_access_token_audience: items: @@ -3448,25 +3526,22 @@ components: channel logout. It's value can generally be used to associate consecutive login requests by a certain user. type: string skip: - description: "Skip, if true, implies that the client has requested the same\ - \ scopes from the same user previously.\nIf true, you can skip asking\ - \ the user to grant the requested scopes, and simply forward the user\ - \ to the redirect URL.\n\nThis feature allows you to update / set session\ - \ information." + description: |- + Skip, if true, implies that the client has requested the same scopes from the same user previously. + If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. + + This feature allows you to update / set session information. type: boolean subject: - description: "Subject is the user ID of the end-user that authenticated.\ - \ Now, that end user needs to grant or deny the scope\nrequested by the\ - \ OAuth 2.0 client. If this value is set and `skip` is true, you MUST\ - \ include this subject type\nwhen accepting the login request, or the\ - \ request will fail." + description: |- + Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope + requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type + when accepting the login request, or the request will fail. type: string required: - challenge - client - request_url - - requested_access_token_audience - - requested_scope - skip - subject title: Contains information on an ongoing login request. @@ -3525,6 +3600,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3586,7 +3662,7 @@ components: access_token: access_token refresh_token: refresh_token scope: scope - id_token: 6 + id_token: id_token token_type: token_type expires_in: 0 properties: @@ -3594,19 +3670,19 @@ components: description: The access token issued by the authorization server. type: string expires_in: - description: "The lifetime in seconds of the access token. For\nexample,\ - \ the value \"3600\" denotes that the access token will\nexpire in one\ - \ hour from the time the response was generated." + description: |- + The lifetime in seconds of the access token. For + example, the value "3600" denotes that the access token will + expire in one hour from the time the response was generated. format: int64 type: integer id_token: description: To retrieve a refresh token request the id_token scope. - format: int64 - type: integer + type: string refresh_token: - description: "The refresh token, which can be used to obtain new\naccess\ - \ tokens. To retrieve it add the scope \"offline\" to your access token\ - \ request." + description: |- + The refresh token, which can be used to obtain new + access tokens. To retrieve it add the scope "offline" to your access token request. type: string scope: description: The scope of the access token @@ -3703,33 +3779,39 @@ components: example: https://playground.ory.sh/ory-hydra/public/oauth2/auth type: string backchannel_logout_session_supported: - description: "OpenID Connect Back-Channel Logout Session Required\n\nBoolean\ - \ value specifying whether the OP can pass a sid (session ID) Claim in\ - \ the Logout Token to identify the RP\nsession with the OP. If supported,\ - \ the sid Claim is also included in ID Tokens issued by the OP" + description: |- + OpenID Connect Back-Channel Logout Session Required + + Boolean value specifying whether the OP can pass a sid (session ID) Claim in the Logout Token to identify the RP + session with the OP. If supported, the sid Claim is also included in ID Tokens issued by the OP type: boolean backchannel_logout_supported: - description: "OpenID Connect Back-Channel Logout Supported\n\nBoolean value\ - \ specifying whether the OP supports back-channel logout, with true indicating\ - \ support." + description: |- + OpenID Connect Back-Channel Logout Supported + + Boolean value specifying whether the OP supports back-channel logout, with true indicating support. type: boolean claims_parameter_supported: - description: "OpenID Connect Claims Parameter Parameter Supported\n\nBoolean\ - \ value specifying whether the OP supports use of the claims parameter,\ - \ with true indicating support." + description: |- + OpenID Connect Claims Parameter Parameter Supported + + Boolean value specifying whether the OP supports use of the claims parameter, with true indicating support. type: boolean claims_supported: - description: "OpenID Connect Supported Claims\n\nJSON array containing a\ - \ list of the Claim Names of the Claims that the OpenID Provider MAY be\ - \ able to supply\nvalues for. Note that for privacy or other reasons,\ - \ this might not be an exhaustive list." + description: |- + OpenID Connect Supported Claims + + JSON array containing a list of the Claim Names of the Claims that the OpenID Provider MAY be able to supply + values for. Note that for privacy or other reasons, this might not be an exhaustive list. items: type: string type: array code_challenge_methods_supported: - description: "OAuth 2.0 PKCE Supported Code Challenge Methods\n\nJSON array\ - \ containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code\ - \ challenge methods supported\nby this authorization server." + description: |- + OAuth 2.0 PKCE Supported Code Challenge Methods + + JSON array containing a list of Proof Key for Code Exchange (PKCE) [RFC7636] code challenge methods supported + by this authorization server. items: type: string type: array @@ -3754,16 +3836,18 @@ components: URL at the OP to which an RP can perform a redirect to request that the End-User be logged out at the OP. type: string frontchannel_logout_session_supported: - description: "OpenID Connect Front-Channel Logout Session Required\n\nBoolean\ - \ value specifying whether the OP can pass iss (issuer) and sid (session\ - \ ID) query parameters to identify\nthe RP session with the OP when the\ - \ frontchannel_logout_uri is used. If supported, the sid Claim is also\n\ - included in ID Tokens issued by the OP." + description: |- + OpenID Connect Front-Channel Logout Session Required + + Boolean value specifying whether the OP can pass iss (issuer) and sid (session ID) query parameters to identify + the RP session with the OP when the frontchannel_logout_uri is used. If supported, the sid Claim is also + included in ID Tokens issued by the OP. type: boolean frontchannel_logout_supported: - description: "OpenID Connect Front-Channel Logout Supported\n\nBoolean value\ - \ specifying whether the OP supports HTTP-based logout, with true indicating\ - \ support." + description: |- + OpenID Connect Front-Channel Logout Supported + + Boolean value specifying whether the OP supports HTTP-based logout, with true indicating support. type: boolean grant_types_supported: description: |- @@ -3791,26 +3875,25 @@ components: type: string type: array issuer: - description: "OpenID Connect Issuer URL\n\nAn URL using the https scheme\ - \ with no query or fragment component that the OP asserts as its IssuerURL\ - \ Identifier.\nIf IssuerURL discovery is supported , this value MUST be\ - \ identical to the issuer value returned\nby WebFinger. This also MUST\ - \ be identical to the iss Claim value in ID Tokens issued from this IssuerURL." + description: |- + OpenID Connect Issuer URL + + An URL using the https scheme with no query or fragment component that the OP asserts as its IssuerURL Identifier. + If IssuerURL discovery is supported , this value MUST be identical to the issuer value returned + by WebFinger. This also MUST be identical to the iss Claim value in ID Tokens issued from this IssuerURL. example: https://playground.ory.sh/ory-hydra/public/ type: string jwks_uri: - description: "OpenID Connect Well-Known JSON Web Keys URL\n\nURL of the\ - \ OP's JSON Web Key Set [JWK] document. This contains the signing key(s)\ - \ the RP uses to validate\nsignatures from the OP. The JWK Set MAY also\ - \ contain the Server's encryption key(s), which are used by RPs\nto encrypt\ - \ requests to the Server. When both signing and encryption keys are made\ - \ available, a use (Key Use)\nparameter value is REQUIRED for all keys\ - \ in the referenced JWK Set to indicate each key's intended usage.\nAlthough\ - \ some algorithms allow the same key to be used for both signatures and\ - \ encryption, doing so is\nNOT RECOMMENDED, as it is less secure. The\ - \ JWK x5c parameter MAY be used to provide X.509 representations of\n\ - keys provided. When used, the bare key values MUST still be present and\ - \ MUST match those in the certificate." + description: |- + OpenID Connect Well-Known JSON Web Keys URL + + URL of the OP's JSON Web Key Set [JWK] document. This contains the signing key(s) the RP uses to validate + signatures from the OP. The JWK Set MAY also contain the Server's encryption key(s), which are used by RPs + to encrypt requests to the Server. When both signing and encryption keys are made available, a use (Key Use) + parameter value is REQUIRED for all keys in the referenced JWK Set to indicate each key's intended usage. + Although some algorithms allow the same key to be used for both signatures and encryption, doing so is + NOT RECOMMENDED, as it is less secure. The JWK x5c parameter MAY be used to provide X.509 representations of + keys provided. When used, the bare key values MUST still be present and MUST match those in the certificate. example: "https://{slug}.projects.oryapis.com/.well-known/jwks.json" type: string registration_endpoint: @@ -3818,25 +3901,27 @@ components: example: https://playground.ory.sh/ory-hydra/admin/client type: string request_object_signing_alg_values_supported: - description: "OpenID Connect Supported Request Object Signing Algorithms\n\ - \nJSON array containing a list of the JWS signing algorithms (alg values)\ - \ supported by the OP for Request Objects,\nwhich are described in Section\ - \ 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used\ - \ both when\nthe Request Object is passed by value (using the request\ - \ parameter) and when it is passed by reference\n(using the request_uri\ - \ parameter)." + description: |- + OpenID Connect Supported Request Object Signing Algorithms + + JSON array containing a list of the JWS signing algorithms (alg values) supported by the OP for Request Objects, + which are described in Section 6.1 of OpenID Connect Core 1.0 [OpenID.Core]. These algorithms are used both when + the Request Object is passed by value (using the request parameter) and when it is passed by reference + (using the request_uri parameter). items: type: string type: array request_parameter_supported: - description: "OpenID Connect Request Parameter Supported\n\nBoolean value\ - \ specifying whether the OP supports use of the request parameter, with\ - \ true indicating support." + description: |- + OpenID Connect Request Parameter Supported + + Boolean value specifying whether the OP supports use of the request parameter, with true indicating support. type: boolean request_uri_parameter_supported: - description: "OpenID Connect Request URI Parameter Supported\n\nBoolean\ - \ value specifying whether the OP supports use of the request_uri parameter,\ - \ with true indicating support." + description: |- + OpenID Connect Request URI Parameter Supported + + Boolean value specifying whether the OP supports use of the request_uri parameter, with true indicating support. type: boolean require_request_uri_registration: description: |- @@ -3854,10 +3939,11 @@ components: type: string type: array response_types_supported: - description: "OAuth 2.0 Supported Response Types\n\nJSON array containing\ - \ a list of the OAuth 2.0 response_type values that this OP supports.\ - \ Dynamic OpenID\nProviders MUST support the code, id_token, and the token\ - \ id_token Response Type values." + description: |- + OAuth 2.0 Supported Response Types + + JSON array containing a list of the OAuth 2.0 response_type values that this OP supports. Dynamic OpenID + Providers MUST support the code, id_token, and the token id_token Response Type values. items: type: string type: array @@ -3868,11 +3954,11 @@ components: URL of the authorization server's OAuth 2.0 revocation endpoint. type: string scopes_supported: - description: "OAuth 2.0 Supported Scope Values\n\nJSON array containing\ - \ a list of the OAuth 2.0 [RFC6749] scope values that this server supports.\ - \ The server MUST\nsupport the openid scope value. Servers MAY choose\ - \ not to advertise some supported scope values even when this parameter\ - \ is used" + description: |- + OAuth 2.0 Supported Scope Values + + JSON array containing a list of the OAuth 2.0 [RFC6749] scope values that this server supports. The server MUST + support the openid scope value. Servers MAY choose not to advertise some supported scope values even when this parameter is used items: type: string type: array @@ -3890,11 +3976,11 @@ components: example: https://playground.ory.sh/ory-hydra/public/oauth2/token type: string token_endpoint_auth_methods_supported: - description: "OAuth 2.0 Supported Client Authentication Methods\n\nJSON\ - \ array containing a list of Client Authentication methods supported by\ - \ this Token Endpoint. The options are\nclient_secret_post, client_secret_basic,\ - \ client_secret_jwt, and private_key_jwt, as described in Section 9 of\ - \ OpenID Connect Core 1.0" + description: |- + OAuth 2.0 Supported Client Authentication Methods + + JSON array containing a list of Client Authentication methods supported by this Token Endpoint. The options are + client_secret_post, client_secret_basic, client_secret_jwt, and private_key_jwt, as described in Section 9 of OpenID Connect Core 1.0 items: type: string type: array @@ -3913,10 +3999,10 @@ components: type: string type: array userinfo_signing_alg_values_supported: - description: "OpenID Connect Supported Userinfo Signing Algorithm\n\nJSON\ - \ array containing a list of the JWS [JWS] signing algorithms (alg values)\ - \ [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT\ - \ [JWT]." + description: |- + OpenID Connect Supported Userinfo Signing Algorithm + + JSON array containing a list of the JWS [JWS] signing algorithms (alg values) [JWA] supported by the UserInfo Endpoint to encode the Claims in a JWT [JWT]. items: type: string type: array @@ -4074,36 +4160,49 @@ components: properties: page_size: default: 250 - description: "Items per page\n\nThis is the number of items per page to\ - \ return.\nFor details on pagination please head over to the [pagination\ - \ documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + Items per page + + This is the number of items per page to return. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). format: int64 maximum: 1000 minimum: 1 type: integer page_token: default: "1" - description: "Next Page Token\n\nThe next page token.\nFor details on pagination\ - \ please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + Next Page Token + + The next page token. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). minimum: 1 type: string type: object paginationHeaders: properties: link: - description: "The link header contains pagination links.\n\nFor details\ - \ on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).\n\ - \nin: header" + description: |- + The link header contains pagination links. + + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + + in: header type: string x-total-count: - description: "The total number of clients.\n\nin: header" + description: |- + The total number of clients. + + in: header type: string type: object rejectOAuth2Request: properties: error: - description: "The error should follow the OAuth2 error format (e.g. `invalid_request`,\ - \ `login_required`).\n\nDefaults to `request_denied`." + description: |- + The error should follow the OAuth2 error format (e.g. `invalid_request`, `login_required`). + + Defaults to `request_denied`. type: string error_debug: description: |- @@ -4129,69 +4228,92 @@ components: properties: page_size: default: 250 - description: "Items per page\n\nThis is the number of items per page to\ - \ return.\nFor details on pagination please head over to the [pagination\ - \ documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + Items per page + + This is the number of items per page to return. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). format: int64 maximum: 1000 minimum: 1 type: integer page_token: default: "1" - description: "Next Page Token\n\nThe next page token.\nFor details on pagination\ - \ please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + Next Page Token + + The next page token. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). minimum: 1 type: string type: object tokenPaginationHeaders: properties: link: - description: "The link header contains pagination links.\n\nFor details\ - \ on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).\n\ - \nin: header" + description: |- + The link header contains pagination links. + + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + + in: header type: string x-total-count: - description: "The total number of clients.\n\nin: header" + description: |- + The total number of clients. + + in: header type: string type: object tokenPaginationRequestParameters: - description: "The `Link` HTTP header contains multiple links (`first`, `next`,\ - \ `last`, `previous`) formatted as:\n`;\ - \ rel=\"{page}\"`\n\nFor details on pagination please head over to the [pagination\ - \ documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: + `; rel="{page}"` + + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). properties: page_size: default: 250 - description: "Items per Page\n\nThis is the number of items per page to\ - \ return.\nFor details on pagination please head over to the [pagination\ - \ documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + Items per Page + + This is the number of items per page to return. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). format: int64 maximum: 500 minimum: 1 type: integer page_token: default: "1" - description: "Next Page Token\n\nThe next page token.\nFor details on pagination\ - \ please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + Next Page Token + + The next page token. + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). minimum: 1 type: string title: Pagination Request Parameters type: object tokenPaginationResponseHeaders: - description: "The `Link` HTTP header contains multiple links (`first`, `next`,\ - \ `last`, `previous`) formatted as:\n`;\ - \ rel=\"{page}\"`\n\nFor details on pagination please head over to the [pagination\ - \ documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination)." + description: |- + The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: + `; rel="{page}"` + + For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). properties: link: - description: "The Link HTTP Header\n\nThe `Link` header contains a comma-delimited\ - \ list of links to the following pages:\n\nfirst: The first page of results.\n\ - next: The next page of results.\nprev: The previous page of results.\n\ - last: The last page of results.\n\nPages are omitted if they do not exist.\ - \ For example, if there is no next page, the `next` link is omitted. Examples:\n\ - \n; rel=\"first\",;\ - \ rel=\"next\",; rel=\"prev\",;\ - \ rel=\"last\"" + description: |- + The Link HTTP Header + + The `Link` header contains a comma-delimited list of links to the following pages: + + first: The first page of results. + next: The next page of results. + prev: The previous page of results. + last: The last page of results. + + Pages are omitted if they do not exist. For example, if there is no next page, the `next` link is omitted. Examples: + + ; rel="first",; rel="next",; rel="prev",; rel="last" type: string x-total-count: description: |- @@ -4362,16 +4484,17 @@ components: introspectOAuth2Token_request: properties: scope: - description: "An optional, space separated list of required scopes. If the\ - \ access token was not granted one of the\nscopes, the result of active\ - \ will be false." + description: |- + An optional, space separated list of required scopes. If the access token was not granted one of the + scopes, the result of active will be false. type: string x-formData-name: scope token: - description: "The string value of the token. For access tokens, this\nis\ - \ the \"access_token\" value returned from the token endpoint\ndefined\ - \ in OAuth 2.0. For refresh tokens, this is the \"refresh_token\"\nvalue\ - \ returned." + description: |- + The string value of the token. For access tokens, this + is the "access_token" value returned from the token endpoint + defined in OAuth 2.0. For refresh tokens, this is the "refresh_token" + value returned. required: - token type: string diff --git a/clients/hydra/go/api_jwk.go b/clients/hydra/go/api_jwk.go index a9c48857152..d2b9ce2753d 100644 --- a/clients/hydra/go/api_jwk.go +++ b/clients/hydra/go/api_jwk.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -14,14 +14,14 @@ package client import ( "bytes" "context" - "io/ioutil" + "io" "net/http" "net/url" "strings" ) -type JwkApi interface { +type JwkAPI interface { /* CreateJsonWebKeySet Create JSON Web Key @@ -32,13 +32,13 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set ID - @return JwkApiCreateJsonWebKeySetRequest + @return JwkAPICreateJsonWebKeySetRequest */ - CreateJsonWebKeySet(ctx context.Context, set string) JwkApiCreateJsonWebKeySetRequest + CreateJsonWebKeySet(ctx context.Context, set string) JwkAPICreateJsonWebKeySetRequest // CreateJsonWebKeySetExecute executes the request // @return JsonWebKeySet - CreateJsonWebKeySetExecute(r JwkApiCreateJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) + CreateJsonWebKeySetExecute(r JwkAPICreateJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) /* DeleteJsonWebKey Delete JSON Web Key @@ -53,12 +53,12 @@ and allows storing user-defined keys as well. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set @param kid The JSON Web Key ID (kid) - @return JwkApiDeleteJsonWebKeyRequest + @return JwkAPIDeleteJsonWebKeyRequest */ - DeleteJsonWebKey(ctx context.Context, set string, kid string) JwkApiDeleteJsonWebKeyRequest + DeleteJsonWebKey(ctx context.Context, set string, kid string) JwkAPIDeleteJsonWebKeyRequest // DeleteJsonWebKeyExecute executes the request - DeleteJsonWebKeyExecute(r JwkApiDeleteJsonWebKeyRequest) (*http.Response, error) + DeleteJsonWebKeyExecute(r JwkAPIDeleteJsonWebKeyRequest) (*http.Response, error) /* DeleteJsonWebKeySet Delete JSON Web Key Set @@ -69,12 +69,12 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set - @return JwkApiDeleteJsonWebKeySetRequest + @return JwkAPIDeleteJsonWebKeySetRequest */ - DeleteJsonWebKeySet(ctx context.Context, set string) JwkApiDeleteJsonWebKeySetRequest + DeleteJsonWebKeySet(ctx context.Context, set string) JwkAPIDeleteJsonWebKeySetRequest // DeleteJsonWebKeySetExecute executes the request - DeleteJsonWebKeySetExecute(r JwkApiDeleteJsonWebKeySetRequest) (*http.Response, error) + DeleteJsonWebKeySetExecute(r JwkAPIDeleteJsonWebKeySetRequest) (*http.Response, error) /* GetJsonWebKey Get JSON Web Key @@ -84,13 +84,13 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set JSON Web Key Set ID @param kid JSON Web Key ID - @return JwkApiGetJsonWebKeyRequest + @return JwkAPIGetJsonWebKeyRequest */ - GetJsonWebKey(ctx context.Context, set string, kid string) JwkApiGetJsonWebKeyRequest + GetJsonWebKey(ctx context.Context, set string, kid string) JwkAPIGetJsonWebKeyRequest // GetJsonWebKeyExecute executes the request // @return JsonWebKeySet - GetJsonWebKeyExecute(r JwkApiGetJsonWebKeyRequest) (*JsonWebKeySet, *http.Response, error) + GetJsonWebKeyExecute(r JwkAPIGetJsonWebKeyRequest) (*JsonWebKeySet, *http.Response, error) /* GetJsonWebKeySet Retrieve a JSON Web Key Set @@ -101,13 +101,13 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set JSON Web Key Set ID - @return JwkApiGetJsonWebKeySetRequest + @return JwkAPIGetJsonWebKeySetRequest */ - GetJsonWebKeySet(ctx context.Context, set string) JwkApiGetJsonWebKeySetRequest + GetJsonWebKeySet(ctx context.Context, set string) JwkAPIGetJsonWebKeySetRequest // GetJsonWebKeySetExecute executes the request // @return JsonWebKeySet - GetJsonWebKeySetExecute(r JwkApiGetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) + GetJsonWebKeySetExecute(r JwkAPIGetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) /* SetJsonWebKey Set JSON Web Key @@ -119,13 +119,13 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set ID @param kid JSON Web Key ID - @return JwkApiSetJsonWebKeyRequest + @return JwkAPISetJsonWebKeyRequest */ - SetJsonWebKey(ctx context.Context, set string, kid string) JwkApiSetJsonWebKeyRequest + SetJsonWebKey(ctx context.Context, set string, kid string) JwkAPISetJsonWebKeyRequest // SetJsonWebKeyExecute executes the request // @return JsonWebKey - SetJsonWebKeyExecute(r JwkApiSetJsonWebKeyRequest) (*JsonWebKey, *http.Response, error) + SetJsonWebKeyExecute(r JwkAPISetJsonWebKeyRequest) (*JsonWebKey, *http.Response, error) /* SetJsonWebKeySet Update a JSON Web Key Set @@ -136,31 +136,31 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set ID - @return JwkApiSetJsonWebKeySetRequest + @return JwkAPISetJsonWebKeySetRequest */ - SetJsonWebKeySet(ctx context.Context, set string) JwkApiSetJsonWebKeySetRequest + SetJsonWebKeySet(ctx context.Context, set string) JwkAPISetJsonWebKeySetRequest // SetJsonWebKeySetExecute executes the request // @return JsonWebKeySet - SetJsonWebKeySetExecute(r JwkApiSetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) + SetJsonWebKeySetExecute(r JwkAPISetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) } -// JwkApiService JwkApi service -type JwkApiService service +// JwkAPIService JwkAPI service +type JwkAPIService service -type JwkApiCreateJsonWebKeySetRequest struct { +type JwkAPICreateJsonWebKeySetRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string createJsonWebKeySet *CreateJsonWebKeySet } -func (r JwkApiCreateJsonWebKeySetRequest) CreateJsonWebKeySet(createJsonWebKeySet CreateJsonWebKeySet) JwkApiCreateJsonWebKeySetRequest { +func (r JwkAPICreateJsonWebKeySetRequest) CreateJsonWebKeySet(createJsonWebKeySet CreateJsonWebKeySet) JwkAPICreateJsonWebKeySetRequest { r.createJsonWebKeySet = &createJsonWebKeySet return r } -func (r JwkApiCreateJsonWebKeySetRequest) Execute() (*JsonWebKeySet, *http.Response, error) { +func (r JwkAPICreateJsonWebKeySetRequest) Execute() (*JsonWebKeySet, *http.Response, error) { return r.ApiService.CreateJsonWebKeySetExecute(r) } @@ -173,10 +173,10 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set ID - @return JwkApiCreateJsonWebKeySetRequest + @return JwkAPICreateJsonWebKeySetRequest */ -func (a *JwkApiService) CreateJsonWebKeySet(ctx context.Context, set string) JwkApiCreateJsonWebKeySetRequest { - return JwkApiCreateJsonWebKeySetRequest{ +func (a *JwkAPIService) CreateJsonWebKeySet(ctx context.Context, set string) JwkAPICreateJsonWebKeySetRequest { + return JwkAPICreateJsonWebKeySetRequest{ ApiService: a, ctx: ctx, set: set, @@ -185,7 +185,7 @@ func (a *JwkApiService) CreateJsonWebKeySet(ctx context.Context, set string) Jwk // Execute executes the request // @return JsonWebKeySet -func (a *JwkApiService) CreateJsonWebKeySetExecute(r JwkApiCreateJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) { +func (a *JwkAPIService) CreateJsonWebKeySetExecute(r JwkAPICreateJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -193,13 +193,13 @@ func (a *JwkApiService) CreateJsonWebKeySetExecute(r JwkApiCreateJsonWebKeySetRe localVarReturnValue *JsonWebKeySet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.CreateJsonWebKeySet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.CreateJsonWebKeySet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -237,9 +237,9 @@ func (a *JwkApiService) CreateJsonWebKeySetExecute(r JwkApiCreateJsonWebKeySetRe return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -255,7 +255,8 @@ func (a *JwkApiService) CreateJsonWebKeySetExecute(r JwkApiCreateJsonWebKeySetRe newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -271,14 +272,14 @@ func (a *JwkApiService) CreateJsonWebKeySetExecute(r JwkApiCreateJsonWebKeySetRe return localVarReturnValue, localVarHTTPResponse, nil } -type JwkApiDeleteJsonWebKeyRequest struct { +type JwkAPIDeleteJsonWebKeyRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string kid string } -func (r JwkApiDeleteJsonWebKeyRequest) Execute() (*http.Response, error) { +func (r JwkAPIDeleteJsonWebKeyRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteJsonWebKeyExecute(r) } @@ -295,10 +296,10 @@ and allows storing user-defined keys as well. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set @param kid The JSON Web Key ID (kid) - @return JwkApiDeleteJsonWebKeyRequest + @return JwkAPIDeleteJsonWebKeyRequest */ -func (a *JwkApiService) DeleteJsonWebKey(ctx context.Context, set string, kid string) JwkApiDeleteJsonWebKeyRequest { - return JwkApiDeleteJsonWebKeyRequest{ +func (a *JwkAPIService) DeleteJsonWebKey(ctx context.Context, set string, kid string) JwkAPIDeleteJsonWebKeyRequest { + return JwkAPIDeleteJsonWebKeyRequest{ ApiService: a, ctx: ctx, set: set, @@ -307,21 +308,21 @@ func (a *JwkApiService) DeleteJsonWebKey(ctx context.Context, set string, kid st } // Execute executes the request -func (a *JwkApiService) DeleteJsonWebKeyExecute(r JwkApiDeleteJsonWebKeyRequest) (*http.Response, error) { +func (a *JwkAPIService) DeleteJsonWebKeyExecute(r JwkAPIDeleteJsonWebKeyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.DeleteJsonWebKey") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.DeleteJsonWebKey") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}/{kid}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"kid"+"}", url.PathEscape(parameterToString(r.kid, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"kid"+"}", url.PathEscape(parameterValueToString(r.kid, "kid")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -354,9 +355,9 @@ func (a *JwkApiService) DeleteJsonWebKeyExecute(r JwkApiDeleteJsonWebKeyRequest) return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -372,20 +373,21 @@ func (a *JwkApiService) DeleteJsonWebKeyExecute(r JwkApiDeleteJsonWebKeyRequest) newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type JwkApiDeleteJsonWebKeySetRequest struct { +type JwkAPIDeleteJsonWebKeySetRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string } -func (r JwkApiDeleteJsonWebKeySetRequest) Execute() (*http.Response, error) { +func (r JwkAPIDeleteJsonWebKeySetRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteJsonWebKeySetExecute(r) } @@ -398,10 +400,10 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set - @return JwkApiDeleteJsonWebKeySetRequest + @return JwkAPIDeleteJsonWebKeySetRequest */ -func (a *JwkApiService) DeleteJsonWebKeySet(ctx context.Context, set string) JwkApiDeleteJsonWebKeySetRequest { - return JwkApiDeleteJsonWebKeySetRequest{ +func (a *JwkAPIService) DeleteJsonWebKeySet(ctx context.Context, set string) JwkAPIDeleteJsonWebKeySetRequest { + return JwkAPIDeleteJsonWebKeySetRequest{ ApiService: a, ctx: ctx, set: set, @@ -409,20 +411,20 @@ func (a *JwkApiService) DeleteJsonWebKeySet(ctx context.Context, set string) Jwk } // Execute executes the request -func (a *JwkApiService) DeleteJsonWebKeySetExecute(r JwkApiDeleteJsonWebKeySetRequest) (*http.Response, error) { +func (a *JwkAPIService) DeleteJsonWebKeySetExecute(r JwkAPIDeleteJsonWebKeySetRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.DeleteJsonWebKeySet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.DeleteJsonWebKeySet") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -455,9 +457,9 @@ func (a *JwkApiService) DeleteJsonWebKeySetExecute(r JwkApiDeleteJsonWebKeySetRe return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -473,21 +475,22 @@ func (a *JwkApiService) DeleteJsonWebKeySetExecute(r JwkApiDeleteJsonWebKeySetRe newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type JwkApiGetJsonWebKeyRequest struct { +type JwkAPIGetJsonWebKeyRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string kid string } -func (r JwkApiGetJsonWebKeyRequest) Execute() (*JsonWebKeySet, *http.Response, error) { +func (r JwkAPIGetJsonWebKeyRequest) Execute() (*JsonWebKeySet, *http.Response, error) { return r.ApiService.GetJsonWebKeyExecute(r) } @@ -499,10 +502,10 @@ This endpoint returns a singular JSON Web Key contained in a set. It is identifi @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set JSON Web Key Set ID @param kid JSON Web Key ID - @return JwkApiGetJsonWebKeyRequest + @return JwkAPIGetJsonWebKeyRequest */ -func (a *JwkApiService) GetJsonWebKey(ctx context.Context, set string, kid string) JwkApiGetJsonWebKeyRequest { - return JwkApiGetJsonWebKeyRequest{ +func (a *JwkAPIService) GetJsonWebKey(ctx context.Context, set string, kid string) JwkAPIGetJsonWebKeyRequest { + return JwkAPIGetJsonWebKeyRequest{ ApiService: a, ctx: ctx, set: set, @@ -512,7 +515,7 @@ func (a *JwkApiService) GetJsonWebKey(ctx context.Context, set string, kid strin // Execute executes the request // @return JsonWebKeySet -func (a *JwkApiService) GetJsonWebKeyExecute(r JwkApiGetJsonWebKeyRequest) (*JsonWebKeySet, *http.Response, error) { +func (a *JwkAPIService) GetJsonWebKeyExecute(r JwkAPIGetJsonWebKeyRequest) (*JsonWebKeySet, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -520,14 +523,14 @@ func (a *JwkApiService) GetJsonWebKeyExecute(r JwkApiGetJsonWebKeyRequest) (*Jso localVarReturnValue *JsonWebKeySet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.GetJsonWebKey") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.GetJsonWebKey") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}/{kid}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"kid"+"}", url.PathEscape(parameterToString(r.kid, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"kid"+"}", url.PathEscape(parameterValueToString(r.kid, "kid")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -560,9 +563,9 @@ func (a *JwkApiService) GetJsonWebKeyExecute(r JwkApiGetJsonWebKeyRequest) (*Jso return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -578,7 +581,8 @@ func (a *JwkApiService) GetJsonWebKeyExecute(r JwkApiGetJsonWebKeyRequest) (*Jso newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -594,13 +598,13 @@ func (a *JwkApiService) GetJsonWebKeyExecute(r JwkApiGetJsonWebKeyRequest) (*Jso return localVarReturnValue, localVarHTTPResponse, nil } -type JwkApiGetJsonWebKeySetRequest struct { +type JwkAPIGetJsonWebKeySetRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string } -func (r JwkApiGetJsonWebKeySetRequest) Execute() (*JsonWebKeySet, *http.Response, error) { +func (r JwkAPIGetJsonWebKeySetRequest) Execute() (*JsonWebKeySet, *http.Response, error) { return r.ApiService.GetJsonWebKeySetExecute(r) } @@ -613,10 +617,10 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set JSON Web Key Set ID - @return JwkApiGetJsonWebKeySetRequest + @return JwkAPIGetJsonWebKeySetRequest */ -func (a *JwkApiService) GetJsonWebKeySet(ctx context.Context, set string) JwkApiGetJsonWebKeySetRequest { - return JwkApiGetJsonWebKeySetRequest{ +func (a *JwkAPIService) GetJsonWebKeySet(ctx context.Context, set string) JwkAPIGetJsonWebKeySetRequest { + return JwkAPIGetJsonWebKeySetRequest{ ApiService: a, ctx: ctx, set: set, @@ -625,7 +629,7 @@ func (a *JwkApiService) GetJsonWebKeySet(ctx context.Context, set string) JwkApi // Execute executes the request // @return JsonWebKeySet -func (a *JwkApiService) GetJsonWebKeySetExecute(r JwkApiGetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) { +func (a *JwkAPIService) GetJsonWebKeySetExecute(r JwkAPIGetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -633,13 +637,13 @@ func (a *JwkApiService) GetJsonWebKeySetExecute(r JwkApiGetJsonWebKeySetRequest) localVarReturnValue *JsonWebKeySet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.GetJsonWebKeySet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.GetJsonWebKeySet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -672,9 +676,9 @@ func (a *JwkApiService) GetJsonWebKeySetExecute(r JwkApiGetJsonWebKeySetRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -690,7 +694,8 @@ func (a *JwkApiService) GetJsonWebKeySetExecute(r JwkApiGetJsonWebKeySetRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -706,20 +711,20 @@ func (a *JwkApiService) GetJsonWebKeySetExecute(r JwkApiGetJsonWebKeySetRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type JwkApiSetJsonWebKeyRequest struct { +type JwkAPISetJsonWebKeyRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string kid string jsonWebKey *JsonWebKey } -func (r JwkApiSetJsonWebKeyRequest) JsonWebKey(jsonWebKey JsonWebKey) JwkApiSetJsonWebKeyRequest { +func (r JwkAPISetJsonWebKeyRequest) JsonWebKey(jsonWebKey JsonWebKey) JwkAPISetJsonWebKeyRequest { r.jsonWebKey = &jsonWebKey return r } -func (r JwkApiSetJsonWebKeyRequest) Execute() (*JsonWebKey, *http.Response, error) { +func (r JwkAPISetJsonWebKeyRequest) Execute() (*JsonWebKey, *http.Response, error) { return r.ApiService.SetJsonWebKeyExecute(r) } @@ -733,10 +738,10 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set ID @param kid JSON Web Key ID - @return JwkApiSetJsonWebKeyRequest + @return JwkAPISetJsonWebKeyRequest */ -func (a *JwkApiService) SetJsonWebKey(ctx context.Context, set string, kid string) JwkApiSetJsonWebKeyRequest { - return JwkApiSetJsonWebKeyRequest{ +func (a *JwkAPIService) SetJsonWebKey(ctx context.Context, set string, kid string) JwkAPISetJsonWebKeyRequest { + return JwkAPISetJsonWebKeyRequest{ ApiService: a, ctx: ctx, set: set, @@ -746,7 +751,7 @@ func (a *JwkApiService) SetJsonWebKey(ctx context.Context, set string, kid strin // Execute executes the request // @return JsonWebKey -func (a *JwkApiService) SetJsonWebKeyExecute(r JwkApiSetJsonWebKeyRequest) (*JsonWebKey, *http.Response, error) { +func (a *JwkAPIService) SetJsonWebKeyExecute(r JwkAPISetJsonWebKeyRequest) (*JsonWebKey, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -754,14 +759,14 @@ func (a *JwkApiService) SetJsonWebKeyExecute(r JwkApiSetJsonWebKeyRequest) (*Jso localVarReturnValue *JsonWebKey ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.SetJsonWebKey") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.SetJsonWebKey") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}/{kid}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) - localVarPath = strings.Replace(localVarPath, "{"+"kid"+"}", url.PathEscape(parameterToString(r.kid, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"kid"+"}", url.PathEscape(parameterValueToString(r.kid, "kid")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -796,9 +801,9 @@ func (a *JwkApiService) SetJsonWebKeyExecute(r JwkApiSetJsonWebKeyRequest) (*Jso return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -814,7 +819,8 @@ func (a *JwkApiService) SetJsonWebKeyExecute(r JwkApiSetJsonWebKeyRequest) (*Jso newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -830,19 +836,19 @@ func (a *JwkApiService) SetJsonWebKeyExecute(r JwkApiSetJsonWebKeyRequest) (*Jso return localVarReturnValue, localVarHTTPResponse, nil } -type JwkApiSetJsonWebKeySetRequest struct { +type JwkAPISetJsonWebKeySetRequest struct { ctx context.Context - ApiService JwkApi + ApiService JwkAPI set string jsonWebKeySet *JsonWebKeySet } -func (r JwkApiSetJsonWebKeySetRequest) JsonWebKeySet(jsonWebKeySet JsonWebKeySet) JwkApiSetJsonWebKeySetRequest { +func (r JwkAPISetJsonWebKeySetRequest) JsonWebKeySet(jsonWebKeySet JsonWebKeySet) JwkAPISetJsonWebKeySetRequest { r.jsonWebKeySet = &jsonWebKeySet return r } -func (r JwkApiSetJsonWebKeySetRequest) Execute() (*JsonWebKeySet, *http.Response, error) { +func (r JwkAPISetJsonWebKeySetRequest) Execute() (*JsonWebKeySet, *http.Response, error) { return r.ApiService.SetJsonWebKeySetExecute(r) } @@ -855,10 +861,10 @@ A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param set The JSON Web Key Set ID - @return JwkApiSetJsonWebKeySetRequest + @return JwkAPISetJsonWebKeySetRequest */ -func (a *JwkApiService) SetJsonWebKeySet(ctx context.Context, set string) JwkApiSetJsonWebKeySetRequest { - return JwkApiSetJsonWebKeySetRequest{ +func (a *JwkAPIService) SetJsonWebKeySet(ctx context.Context, set string) JwkAPISetJsonWebKeySetRequest { + return JwkAPISetJsonWebKeySetRequest{ ApiService: a, ctx: ctx, set: set, @@ -867,7 +873,7 @@ func (a *JwkApiService) SetJsonWebKeySet(ctx context.Context, set string) JwkApi // Execute executes the request // @return JsonWebKeySet -func (a *JwkApiService) SetJsonWebKeySetExecute(r JwkApiSetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) { +func (a *JwkAPIService) SetJsonWebKeySetExecute(r JwkAPISetJsonWebKeySetRequest) (*JsonWebKeySet, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -875,13 +881,13 @@ func (a *JwkApiService) SetJsonWebKeySetExecute(r JwkApiSetJsonWebKeySetRequest) localVarReturnValue *JsonWebKeySet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkApiService.SetJsonWebKeySet") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "JwkAPIService.SetJsonWebKeySet") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/keys/{set}" - localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterToString(r.set, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"set"+"}", url.PathEscape(parameterValueToString(r.set, "set")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -916,9 +922,9 @@ func (a *JwkApiService) SetJsonWebKeySetExecute(r JwkApiSetJsonWebKeySetRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -934,7 +940,8 @@ func (a *JwkApiService) SetJsonWebKeySetExecute(r JwkApiSetJsonWebKeySetRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/clients/hydra/go/api_metadata.go b/clients/hydra/go/api_metadata.go index 8d06abc7148..c1dee5bf308 100644 --- a/clients/hydra/go/api_metadata.go +++ b/clients/hydra/go/api_metadata.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -14,13 +14,13 @@ package client import ( "bytes" "context" - "io/ioutil" + "io" "net/http" "net/url" ) -type MetadataApi interface { +type MetadataAPI interface { /* GetVersion Return Running Software Version. @@ -34,13 +34,13 @@ Be aware that if you are running multiple nodes of this service, the version wil 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 MetadataApiGetVersionRequest + @return MetadataAPIGetVersionRequest */ - GetVersion(ctx context.Context) MetadataApiGetVersionRequest + GetVersion(ctx context.Context) MetadataAPIGetVersionRequest // GetVersionExecute executes the request // @return GetVersion200Response - GetVersionExecute(r MetadataApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) + GetVersionExecute(r MetadataAPIGetVersionRequest) (*GetVersion200Response, *http.Response, error) /* IsAlive Check HTTP Server Status @@ -55,13 +55,13 @@ Be aware that if you are running multiple nodes of this service, the health stat 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 MetadataApiIsAliveRequest + @return MetadataAPIIsAliveRequest */ - IsAlive(ctx context.Context) MetadataApiIsAliveRequest + IsAlive(ctx context.Context) MetadataAPIIsAliveRequest // IsAliveExecute executes the request // @return HealthStatus - IsAliveExecute(r MetadataApiIsAliveRequest) (*HealthStatus, *http.Response, error) + IsAliveExecute(r MetadataAPIIsAliveRequest) (*HealthStatus, *http.Response, error) /* IsReady Check HTTP Server and Database Status @@ -76,24 +76,24 @@ Be aware that if you are running multiple nodes of Ory Hydra, the health status 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 MetadataApiIsReadyRequest + @return MetadataAPIIsReadyRequest */ - IsReady(ctx context.Context) MetadataApiIsReadyRequest + IsReady(ctx context.Context) MetadataAPIIsReadyRequest // IsReadyExecute executes the request // @return IsReady200Response - IsReadyExecute(r MetadataApiIsReadyRequest) (*IsReady200Response, *http.Response, error) + IsReadyExecute(r MetadataAPIIsReadyRequest) (*IsReady200Response, *http.Response, error) } -// MetadataApiService MetadataApi service -type MetadataApiService service +// MetadataAPIService MetadataAPI service +type MetadataAPIService service -type MetadataApiGetVersionRequest struct { +type MetadataAPIGetVersionRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiGetVersionRequest) Execute() (*GetVersion200Response, *http.Response, error) { +func (r MetadataAPIGetVersionRequest) Execute() (*GetVersion200Response, *http.Response, error) { return r.ApiService.GetVersionExecute(r) } @@ -109,10 +109,10 @@ Be aware that if you are running multiple nodes of this service, the version wil 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 MetadataApiGetVersionRequest + @return MetadataAPIGetVersionRequest */ -func (a *MetadataApiService) GetVersion(ctx context.Context) MetadataApiGetVersionRequest { - return MetadataApiGetVersionRequest{ +func (a *MetadataAPIService) GetVersion(ctx context.Context) MetadataAPIGetVersionRequest { + return MetadataAPIGetVersionRequest{ ApiService: a, ctx: ctx, } @@ -120,7 +120,7 @@ func (a *MetadataApiService) GetVersion(ctx context.Context) MetadataApiGetVersi // Execute executes the request // @return GetVersion200Response -func (a *MetadataApiService) GetVersionExecute(r MetadataApiGetVersionRequest) (*GetVersion200Response, *http.Response, error) { +func (a *MetadataAPIService) GetVersionExecute(r MetadataAPIGetVersionRequest) (*GetVersion200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -128,7 +128,7 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiGetVersionRequest) ( 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()} } @@ -166,9 +166,9 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiGetVersionRequest) ( return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -193,12 +193,12 @@ func (a *MetadataApiService) GetVersionExecute(r MetadataApiGetVersionRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } -type MetadataApiIsAliveRequest struct { +type MetadataAPIIsAliveRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiIsAliveRequest) Execute() (*HealthStatus, *http.Response, error) { +func (r MetadataAPIIsAliveRequest) Execute() (*HealthStatus, *http.Response, error) { return r.ApiService.IsAliveExecute(r) } @@ -215,10 +215,10 @@ Be aware that if you are running multiple nodes of this service, the health stat 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 MetadataApiIsAliveRequest + @return MetadataAPIIsAliveRequest */ -func (a *MetadataApiService) IsAlive(ctx context.Context) MetadataApiIsAliveRequest { - return MetadataApiIsAliveRequest{ +func (a *MetadataAPIService) IsAlive(ctx context.Context) MetadataAPIIsAliveRequest { + return MetadataAPIIsAliveRequest{ ApiService: a, ctx: ctx, } @@ -226,7 +226,7 @@ func (a *MetadataApiService) IsAlive(ctx context.Context) MetadataApiIsAliveRequ // Execute executes the request // @return HealthStatus -func (a *MetadataApiService) IsAliveExecute(r MetadataApiIsAliveRequest) (*HealthStatus, *http.Response, error) { +func (a *MetadataAPIService) IsAliveExecute(r MetadataAPIIsAliveRequest) (*HealthStatus, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -234,7 +234,7 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiIsAliveRequest) (*Healt localVarReturnValue *HealthStatus ) - 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()} } @@ -272,9 +272,9 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiIsAliveRequest) (*Healt return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -291,7 +291,8 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiIsAliveRequest) (*Healt newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } @@ -308,12 +309,12 @@ func (a *MetadataApiService) IsAliveExecute(r MetadataApiIsAliveRequest) (*Healt return localVarReturnValue, localVarHTTPResponse, nil } -type MetadataApiIsReadyRequest struct { +type MetadataAPIIsReadyRequest struct { ctx context.Context - ApiService MetadataApi + ApiService MetadataAPI } -func (r MetadataApiIsReadyRequest) Execute() (*IsReady200Response, *http.Response, error) { +func (r MetadataAPIIsReadyRequest) Execute() (*IsReady200Response, *http.Response, error) { return r.ApiService.IsReadyExecute(r) } @@ -330,10 +331,10 @@ Be aware that if you are running multiple nodes of Ory Hydra, the health status 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 MetadataApiIsReadyRequest + @return MetadataAPIIsReadyRequest */ -func (a *MetadataApiService) IsReady(ctx context.Context) MetadataApiIsReadyRequest { - return MetadataApiIsReadyRequest{ +func (a *MetadataAPIService) IsReady(ctx context.Context) MetadataAPIIsReadyRequest { + return MetadataAPIIsReadyRequest{ ApiService: a, ctx: ctx, } @@ -341,7 +342,7 @@ func (a *MetadataApiService) IsReady(ctx context.Context) MetadataApiIsReadyRequ // Execute executes the request // @return IsReady200Response -func (a *MetadataApiService) IsReadyExecute(r MetadataApiIsReadyRequest) (*IsReady200Response, *http.Response, error) { +func (a *MetadataAPIService) IsReadyExecute(r MetadataAPIIsReadyRequest) (*IsReady200Response, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -349,7 +350,7 @@ func (a *MetadataApiService) IsReadyExecute(r MetadataApiIsReadyRequest) (*IsRea localVarReturnValue *IsReady200Response ) - 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()} } @@ -387,9 +388,9 @@ func (a *MetadataApiService) IsReadyExecute(r MetadataApiIsReadyRequest) (*IsRea return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -406,7 +407,8 @@ func (a *MetadataApiService) IsReadyExecute(r MetadataApiIsReadyRequest) (*IsRea newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v } return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/clients/hydra/go/api_o_auth2.go b/clients/hydra/go/api_o_auth2.go index 065c9f533ee..6e6a326ce77 100644 --- a/clients/hydra/go/api_o_auth2.go +++ b/clients/hydra/go/api_o_auth2.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -14,14 +14,14 @@ package client import ( "bytes" "context" - "io/ioutil" + "io" "net/http" "net/url" "strings" ) -type OAuth2Api interface { +type OAuth2API interface { /* AcceptOAuth2ConsentRequest Accept OAuth 2.0 Consent Request @@ -44,13 +44,13 @@ The default consent provider is available via the Ory Managed Account Experience head over to the OAuth 2.0 documentation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiAcceptOAuth2ConsentRequestRequest + @return OAuth2APIAcceptOAuth2ConsentRequestRequest */ - AcceptOAuth2ConsentRequest(ctx context.Context) OAuth2ApiAcceptOAuth2ConsentRequestRequest + AcceptOAuth2ConsentRequest(ctx context.Context) OAuth2APIAcceptOAuth2ConsentRequestRequest // AcceptOAuth2ConsentRequestExecute executes the request // @return OAuth2RedirectTo - AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) + AcceptOAuth2ConsentRequestExecute(r OAuth2APIAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) /* AcceptOAuth2LoginRequest Accept OAuth 2.0 Login Request @@ -68,13 +68,13 @@ a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiAcceptOAuth2LoginRequestRequest + @return OAuth2APIAcceptOAuth2LoginRequestRequest */ - AcceptOAuth2LoginRequest(ctx context.Context) OAuth2ApiAcceptOAuth2LoginRequestRequest + AcceptOAuth2LoginRequest(ctx context.Context) OAuth2APIAcceptOAuth2LoginRequestRequest // AcceptOAuth2LoginRequestExecute executes the request // @return OAuth2RedirectTo - AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) + AcceptOAuth2LoginRequestExecute(r OAuth2APIAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) /* AcceptOAuth2LogoutRequest Accept OAuth 2.0 Session Logout Request @@ -84,13 +84,13 @@ The response contains a redirect URL which the login provider should redirect th The response contains a redirect URL which the consent provider should redirect the user-agent to. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiAcceptOAuth2LogoutRequestRequest + @return OAuth2APIAcceptOAuth2LogoutRequestRequest */ - AcceptOAuth2LogoutRequest(ctx context.Context) OAuth2ApiAcceptOAuth2LogoutRequestRequest + AcceptOAuth2LogoutRequest(ctx context.Context) OAuth2APIAcceptOAuth2LogoutRequestRequest // AcceptOAuth2LogoutRequestExecute executes the request // @return OAuth2RedirectTo - AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAuth2LogoutRequestRequest) (*OAuth2RedirectTo, *http.Response, error) + AcceptOAuth2LogoutRequestExecute(r OAuth2APIAcceptOAuth2LogoutRequestRequest) (*OAuth2RedirectTo, *http.Response, error) /* CreateOAuth2Client Create OAuth 2.0 Client @@ -99,13 +99,13 @@ The response contains a redirect URL which the consent provider should redirect is generated. The secret is echoed in the response. It is not possible to retrieve it later on. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiCreateOAuth2ClientRequest + @return OAuth2APICreateOAuth2ClientRequest */ - CreateOAuth2Client(ctx context.Context) OAuth2ApiCreateOAuth2ClientRequest + CreateOAuth2Client(ctx context.Context) OAuth2APICreateOAuth2ClientRequest // CreateOAuth2ClientExecute executes the request // @return OAuth2Client - CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) + CreateOAuth2ClientExecute(r OAuth2APICreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) /* DeleteOAuth2Client Delete OAuth 2.0 Client @@ -119,12 +119,12 @@ Make sure that this endpoint is well protected and only callable by first-party @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OAuth2ApiDeleteOAuth2ClientRequest + @return OAuth2APIDeleteOAuth2ClientRequest */ - DeleteOAuth2Client(ctx context.Context, id string) OAuth2ApiDeleteOAuth2ClientRequest + DeleteOAuth2Client(ctx context.Context, id string) OAuth2APIDeleteOAuth2ClientRequest // DeleteOAuth2ClientExecute executes the request - DeleteOAuth2ClientExecute(r OAuth2ApiDeleteOAuth2ClientRequest) (*http.Response, error) + DeleteOAuth2ClientExecute(r OAuth2APIDeleteOAuth2ClientRequest) (*http.Response, error) /* DeleteOAuth2Token Delete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client @@ -132,12 +132,12 @@ Make sure that this endpoint is well protected and only callable by first-party This endpoint deletes OAuth2 access tokens issued to an OAuth 2.0 Client from the database. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiDeleteOAuth2TokenRequest + @return OAuth2APIDeleteOAuth2TokenRequest */ - DeleteOAuth2Token(ctx context.Context) OAuth2ApiDeleteOAuth2TokenRequest + DeleteOAuth2Token(ctx context.Context) OAuth2APIDeleteOAuth2TokenRequest // DeleteOAuth2TokenExecute executes the request - DeleteOAuth2TokenExecute(r OAuth2ApiDeleteOAuth2TokenRequest) (*http.Response, error) + DeleteOAuth2TokenExecute(r OAuth2APIDeleteOAuth2TokenRequest) (*http.Response, error) /* DeleteTrustedOAuth2JwtGrantIssuer Delete Trusted OAuth2 JWT Bearer Grant Type Issuer @@ -150,12 +150,12 @@ for OAuth 2.0 Client Authentication and Authorization Grant. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the desired grant - @return OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest + @return OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest */ - DeleteTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest + DeleteTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest // DeleteTrustedOAuth2JwtGrantIssuerExecute executes the request - DeleteTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) + DeleteTrustedOAuth2JwtGrantIssuerExecute(r OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) /* GetOAuth2Client Get an OAuth 2.0 Client @@ -167,13 +167,13 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OAuth2ApiGetOAuth2ClientRequest + @return OAuth2APIGetOAuth2ClientRequest */ - GetOAuth2Client(ctx context.Context, id string) OAuth2ApiGetOAuth2ClientRequest + GetOAuth2Client(ctx context.Context, id string) OAuth2APIGetOAuth2ClientRequest // GetOAuth2ClientExecute executes the request // @return OAuth2Client - GetOAuth2ClientExecute(r OAuth2ApiGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) + GetOAuth2ClientExecute(r OAuth2APIGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) /* GetOAuth2ConsentRequest Get OAuth 2.0 Consent Request @@ -190,13 +190,13 @@ The default consent provider is available via the Ory Managed Account Experience head over to the OAuth 2.0 documentation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiGetOAuth2ConsentRequestRequest + @return OAuth2APIGetOAuth2ConsentRequestRequest */ - GetOAuth2ConsentRequest(ctx context.Context) OAuth2ApiGetOAuth2ConsentRequestRequest + GetOAuth2ConsentRequest(ctx context.Context) OAuth2APIGetOAuth2ConsentRequestRequest // GetOAuth2ConsentRequestExecute executes the request // @return OAuth2ConsentRequest - GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) + GetOAuth2ConsentRequestExecute(r OAuth2APIGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) /* GetOAuth2LoginRequest Get OAuth 2.0 Login Request @@ -212,13 +212,13 @@ The authentication challenge is appended to the login provider URL to which the provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiGetOAuth2LoginRequestRequest + @return OAuth2APIGetOAuth2LoginRequestRequest */ - GetOAuth2LoginRequest(ctx context.Context) OAuth2ApiGetOAuth2LoginRequestRequest + GetOAuth2LoginRequest(ctx context.Context) OAuth2APIGetOAuth2LoginRequestRequest // GetOAuth2LoginRequestExecute executes the request // @return OAuth2LoginRequest - GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) + GetOAuth2LoginRequestExecute(r OAuth2APIGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) /* GetOAuth2LogoutRequest Get OAuth 2.0 Session Logout Request @@ -226,13 +226,13 @@ provider uses that challenge to fetch information on the OAuth2 request and then Use this endpoint to fetch an Ory OAuth 2.0 logout request. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiGetOAuth2LogoutRequestRequest + @return OAuth2APIGetOAuth2LogoutRequestRequest */ - GetOAuth2LogoutRequest(ctx context.Context) OAuth2ApiGetOAuth2LogoutRequestRequest + GetOAuth2LogoutRequest(ctx context.Context) OAuth2APIGetOAuth2LogoutRequestRequest // GetOAuth2LogoutRequestExecute executes the request // @return OAuth2LogoutRequest - GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) + GetOAuth2LogoutRequestExecute(r OAuth2APIGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) /* GetTrustedOAuth2JwtGrantIssuer Get Trusted OAuth2 JWT Bearer Grant Type Issuer @@ -242,13 +242,13 @@ created the trust relationship. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the desired grant - @return OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest + @return OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest */ - GetTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest + GetTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest // GetTrustedOAuth2JwtGrantIssuerExecute executes the request // @return TrustedOAuth2JwtGrantIssuer - GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) + GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) /* IntrospectOAuth2Token Introspect OAuth2 Access and Refresh Tokens @@ -258,13 +258,13 @@ is neither expired nor revoked. If a token is active, additional information on set additional data for a token by setting `session.access_token` during the consent flow. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiIntrospectOAuth2TokenRequest + @return OAuth2APIIntrospectOAuth2TokenRequest */ - IntrospectOAuth2Token(ctx context.Context) OAuth2ApiIntrospectOAuth2TokenRequest + IntrospectOAuth2Token(ctx context.Context) OAuth2APIIntrospectOAuth2TokenRequest // IntrospectOAuth2TokenExecute executes the request // @return IntrospectedOAuth2Token - IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAuth2TokenRequest) (*IntrospectedOAuth2Token, *http.Response, error) + IntrospectOAuth2TokenExecute(r OAuth2APIIntrospectOAuth2TokenRequest) (*IntrospectedOAuth2Token, *http.Response, error) /* ListOAuth2Clients List OAuth 2.0 Clients @@ -273,13 +273,13 @@ set additional data for a token by setting `session.access_token` during the con As a default it lists the first 100 clients. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiListOAuth2ClientsRequest + @return OAuth2APIListOAuth2ClientsRequest */ - ListOAuth2Clients(ctx context.Context) OAuth2ApiListOAuth2ClientsRequest + ListOAuth2Clients(ctx context.Context) OAuth2APIListOAuth2ClientsRequest // ListOAuth2ClientsExecute executes the request // @return []OAuth2Client - ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2ClientsRequest) ([]OAuth2Client, *http.Response, error) + ListOAuth2ClientsExecute(r OAuth2APIListOAuth2ClientsRequest) ([]OAuth2Client, *http.Response, error) /* ListOAuth2ConsentSessions List OAuth 2.0 Consent Sessions of a Subject @@ -289,13 +289,13 @@ If the subject is unknown or has not granted any consent sessions yet, the endpo empty JSON array with status code 200 OK. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiListOAuth2ConsentSessionsRequest + @return OAuth2APIListOAuth2ConsentSessionsRequest */ - ListOAuth2ConsentSessions(ctx context.Context) OAuth2ApiListOAuth2ConsentSessionsRequest + ListOAuth2ConsentSessions(ctx context.Context) OAuth2APIListOAuth2ConsentSessionsRequest // ListOAuth2ConsentSessionsExecute executes the request // @return []OAuth2ConsentSession - ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth2ConsentSessionsRequest) ([]OAuth2ConsentSession, *http.Response, error) + ListOAuth2ConsentSessionsExecute(r OAuth2APIListOAuth2ConsentSessionsRequest) ([]OAuth2ConsentSession, *http.Response, error) /* ListTrustedOAuth2JwtGrantIssuers List Trusted OAuth2 JWT Bearer Grant Type Issuers @@ -303,13 +303,13 @@ empty JSON array with status code 200 OK. Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest + @return OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest */ - ListTrustedOAuth2JwtGrantIssuers(ctx context.Context) OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest + ListTrustedOAuth2JwtGrantIssuers(ctx context.Context) OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest // ListTrustedOAuth2JwtGrantIssuersExecute executes the request // @return []TrustedOAuth2JwtGrantIssuer - ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) + ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) /* OAuth2Authorize OAuth 2.0 Authorize Endpoint @@ -320,13 +320,13 @@ available for any programming language. You can find a list of libraries at http The Ory SDK is not yet able to this endpoint properly. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiOAuth2AuthorizeRequest + @return OAuth2APIOAuth2AuthorizeRequest */ - OAuth2Authorize(ctx context.Context) OAuth2ApiOAuth2AuthorizeRequest + OAuth2Authorize(ctx context.Context) OAuth2APIOAuth2AuthorizeRequest // OAuth2AuthorizeExecute executes the request // @return ErrorOAuth2 - OAuth2AuthorizeExecute(r OAuth2ApiOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) + OAuth2AuthorizeExecute(r OAuth2APIOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) /* Oauth2TokenExchange The OAuth 2.0 Token Endpoint @@ -337,13 +337,13 @@ available for any programming language. You can find a list of libraries here ht The Ory SDK is not yet able to this endpoint properly. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiOauth2TokenExchangeRequest + @return OAuth2APIOauth2TokenExchangeRequest */ - Oauth2TokenExchange(ctx context.Context) OAuth2ApiOauth2TokenExchangeRequest + Oauth2TokenExchange(ctx context.Context) OAuth2APIOauth2TokenExchangeRequest // Oauth2TokenExchangeExecute executes the request // @return OAuth2TokenExchange - Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExchangeRequest) (*OAuth2TokenExchange, *http.Response, error) + Oauth2TokenExchangeExecute(r OAuth2APIOauth2TokenExchangeRequest) (*OAuth2TokenExchange, *http.Response, error) /* PatchOAuth2Client Patch OAuth 2.0 Client @@ -357,13 +357,13 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OAuth2ApiPatchOAuth2ClientRequest + @return OAuth2APIPatchOAuth2ClientRequest */ - PatchOAuth2Client(ctx context.Context, id string) OAuth2ApiPatchOAuth2ClientRequest + PatchOAuth2Client(ctx context.Context, id string) OAuth2APIPatchOAuth2ClientRequest // PatchOAuth2ClientExecute executes the request // @return OAuth2Client - PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) + PatchOAuth2ClientExecute(r OAuth2APIPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) /* RejectOAuth2ConsentRequest Reject OAuth 2.0 Consent Request @@ -385,13 +385,13 @@ The default consent provider is available via the Ory Managed Account Experience head over to the OAuth 2.0 documentation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRejectOAuth2ConsentRequestRequest + @return OAuth2APIRejectOAuth2ConsentRequestRequest */ - RejectOAuth2ConsentRequest(ctx context.Context) OAuth2ApiRejectOAuth2ConsentRequestRequest + RejectOAuth2ConsentRequest(ctx context.Context) OAuth2APIRejectOAuth2ConsentRequestRequest // RejectOAuth2ConsentRequestExecute executes the request // @return OAuth2RedirectTo - RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) + RejectOAuth2ConsentRequestExecute(r OAuth2APIRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) /* RejectOAuth2LoginRequest Reject OAuth 2.0 Login Request @@ -408,13 +408,13 @@ was denied. The response contains a redirect URL which the login provider should redirect the user-agent to. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRejectOAuth2LoginRequestRequest + @return OAuth2APIRejectOAuth2LoginRequestRequest */ - RejectOAuth2LoginRequest(ctx context.Context) OAuth2ApiRejectOAuth2LoginRequestRequest + RejectOAuth2LoginRequest(ctx context.Context) OAuth2APIRejectOAuth2LoginRequestRequest // RejectOAuth2LoginRequestExecute executes the request // @return OAuth2RedirectTo - RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) + RejectOAuth2LoginRequestExecute(r OAuth2APIRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) /* RejectOAuth2LogoutRequest Reject OAuth 2.0 Session Logout Request @@ -425,12 +425,12 @@ No HTTP request body is required. The response is empty as the logout provider has to chose what action to perform next. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRejectOAuth2LogoutRequestRequest + @return OAuth2APIRejectOAuth2LogoutRequestRequest */ - RejectOAuth2LogoutRequest(ctx context.Context) OAuth2ApiRejectOAuth2LogoutRequestRequest + RejectOAuth2LogoutRequest(ctx context.Context) OAuth2APIRejectOAuth2LogoutRequestRequest // RejectOAuth2LogoutRequestExecute executes the request - RejectOAuth2LogoutRequestExecute(r OAuth2ApiRejectOAuth2LogoutRequestRequest) (*http.Response, error) + RejectOAuth2LogoutRequestExecute(r OAuth2APIRejectOAuth2LogoutRequestRequest) (*http.Response, error) /* RevokeOAuth2ConsentSessions Revoke OAuth 2.0 Consent Sessions of a Subject @@ -439,12 +439,12 @@ The response is empty as the logout provider has to chose what action to perform associated OAuth 2.0 Access Tokens. You may also only revoke sessions for a specific OAuth 2.0 Client ID. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRevokeOAuth2ConsentSessionsRequest + @return OAuth2APIRevokeOAuth2ConsentSessionsRequest */ - RevokeOAuth2ConsentSessions(ctx context.Context) OAuth2ApiRevokeOAuth2ConsentSessionsRequest + RevokeOAuth2ConsentSessions(ctx context.Context) OAuth2APIRevokeOAuth2ConsentSessionsRequest // RevokeOAuth2ConsentSessionsExecute executes the request - RevokeOAuth2ConsentSessionsExecute(r OAuth2ApiRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) + RevokeOAuth2ConsentSessionsExecute(r OAuth2APIRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) /* RevokeOAuth2LoginSessions Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID @@ -453,18 +453,18 @@ associated OAuth 2.0 Access Tokens. You may also only revoke sessions for a spec has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. -No OpennID Connect Front- or Back-channel logout is performed in this case. +No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRevokeOAuth2LoginSessionsRequest + @return OAuth2APIRevokeOAuth2LoginSessionsRequest */ - RevokeOAuth2LoginSessions(ctx context.Context) OAuth2ApiRevokeOAuth2LoginSessionsRequest + RevokeOAuth2LoginSessions(ctx context.Context) OAuth2APIRevokeOAuth2LoginSessionsRequest // RevokeOAuth2LoginSessionsExecute executes the request - RevokeOAuth2LoginSessionsExecute(r OAuth2ApiRevokeOAuth2LoginSessionsRequest) (*http.Response, error) + RevokeOAuth2LoginSessionsExecute(r OAuth2APIRevokeOAuth2LoginSessionsRequest) (*http.Response, error) /* RevokeOAuth2Token Revoke OAuth 2.0 Access or Refresh Token @@ -475,12 +475,12 @@ Revoking a refresh token also invalidates the access token that was created with the client the token was generated for. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRevokeOAuth2TokenRequest + @return OAuth2APIRevokeOAuth2TokenRequest */ - RevokeOAuth2Token(ctx context.Context) OAuth2ApiRevokeOAuth2TokenRequest + RevokeOAuth2Token(ctx context.Context) OAuth2APIRevokeOAuth2TokenRequest // RevokeOAuth2TokenExecute executes the request - RevokeOAuth2TokenExecute(r OAuth2ApiRevokeOAuth2TokenRequest) (*http.Response, error) + RevokeOAuth2TokenExecute(r OAuth2APIRevokeOAuth2TokenRequest) (*http.Response, error) /* SetOAuth2Client Set OAuth 2.0 Client @@ -495,13 +495,13 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id OAuth 2.0 Client ID - @return OAuth2ApiSetOAuth2ClientRequest + @return OAuth2APISetOAuth2ClientRequest */ - SetOAuth2Client(ctx context.Context, id string) OAuth2ApiSetOAuth2ClientRequest + SetOAuth2Client(ctx context.Context, id string) OAuth2APISetOAuth2ClientRequest // SetOAuth2ClientExecute executes the request // @return OAuth2Client - SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) + SetOAuth2ClientExecute(r OAuth2APISetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) /* SetOAuth2ClientLifespans Set OAuth2 Client Token Lifespans @@ -510,13 +510,13 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id OAuth 2.0 Client ID - @return OAuth2ApiSetOAuth2ClientLifespansRequest + @return OAuth2APISetOAuth2ClientLifespansRequest */ - SetOAuth2ClientLifespans(ctx context.Context, id string) OAuth2ApiSetOAuth2ClientLifespansRequest + SetOAuth2ClientLifespans(ctx context.Context, id string) OAuth2APISetOAuth2ClientLifespansRequest // SetOAuth2ClientLifespansExecute executes the request // @return OAuth2Client - SetOAuth2ClientLifespansExecute(r OAuth2ApiSetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) + SetOAuth2ClientLifespansExecute(r OAuth2APISetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) /* TrustOAuth2JwtGrantIssuer Trust OAuth2 JWT Bearer Grant Type Issuer @@ -526,37 +526,37 @@ to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiTrustOAuth2JwtGrantIssuerRequest + @return OAuth2APITrustOAuth2JwtGrantIssuerRequest */ - TrustOAuth2JwtGrantIssuer(ctx context.Context) OAuth2ApiTrustOAuth2JwtGrantIssuerRequest + TrustOAuth2JwtGrantIssuer(ctx context.Context) OAuth2APITrustOAuth2JwtGrantIssuerRequest // TrustOAuth2JwtGrantIssuerExecute executes the request // @return TrustedOAuth2JwtGrantIssuer - TrustOAuth2JwtGrantIssuerExecute(r OAuth2ApiTrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) + TrustOAuth2JwtGrantIssuerExecute(r OAuth2APITrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) } -// OAuth2ApiService OAuth2Api service -type OAuth2ApiService service +// OAuth2APIService OAuth2API service +type OAuth2APIService service -type OAuth2ApiAcceptOAuth2ConsentRequestRequest struct { +type OAuth2APIAcceptOAuth2ConsentRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API consentChallenge *string acceptOAuth2ConsentRequest *AcceptOAuth2ConsentRequest } // OAuth 2.0 Consent Request Challenge -func (r OAuth2ApiAcceptOAuth2ConsentRequestRequest) ConsentChallenge(consentChallenge string) OAuth2ApiAcceptOAuth2ConsentRequestRequest { +func (r OAuth2APIAcceptOAuth2ConsentRequestRequest) ConsentChallenge(consentChallenge string) OAuth2APIAcceptOAuth2ConsentRequestRequest { r.consentChallenge = &consentChallenge return r } -func (r OAuth2ApiAcceptOAuth2ConsentRequestRequest) AcceptOAuth2ConsentRequest(acceptOAuth2ConsentRequest AcceptOAuth2ConsentRequest) OAuth2ApiAcceptOAuth2ConsentRequestRequest { +func (r OAuth2APIAcceptOAuth2ConsentRequestRequest) AcceptOAuth2ConsentRequest(acceptOAuth2ConsentRequest AcceptOAuth2ConsentRequest) OAuth2APIAcceptOAuth2ConsentRequestRequest { r.acceptOAuth2ConsentRequest = &acceptOAuth2ConsentRequest return r } -func (r OAuth2ApiAcceptOAuth2ConsentRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { +func (r OAuth2APIAcceptOAuth2ConsentRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { return r.ApiService.AcceptOAuth2ConsentRequestExecute(r) } @@ -581,10 +581,10 @@ The default consent provider is available via the Ory Managed Account Experience head over to the OAuth 2.0 documentation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiAcceptOAuth2ConsentRequestRequest + @return OAuth2APIAcceptOAuth2ConsentRequestRequest */ -func (a *OAuth2ApiService) AcceptOAuth2ConsentRequest(ctx context.Context) OAuth2ApiAcceptOAuth2ConsentRequestRequest { - return OAuth2ApiAcceptOAuth2ConsentRequestRequest{ +func (a *OAuth2APIService) AcceptOAuth2ConsentRequest(ctx context.Context) OAuth2APIAcceptOAuth2ConsentRequestRequest { + return OAuth2APIAcceptOAuth2ConsentRequestRequest{ ApiService: a, ctx: ctx, } @@ -592,7 +592,7 @@ func (a *OAuth2ApiService) AcceptOAuth2ConsentRequest(ctx context.Context) OAuth // Execute executes the request // @return OAuth2RedirectTo -func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { +func (a *OAuth2APIService) AcceptOAuth2ConsentRequestExecute(r OAuth2APIAcceptOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -600,7 +600,7 @@ func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOA localVarReturnValue *OAuth2RedirectTo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.AcceptOAuth2ConsentRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.AcceptOAuth2ConsentRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -614,7 +614,7 @@ func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOA return localVarReturnValue, nil, reportError("consentChallenge is required and must be specified") } - localVarQueryParams.Add("consent_challenge", parameterToString(*r.consentChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "consent_challenge", r.consentChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -644,9 +644,9 @@ func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOA return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -662,7 +662,8 @@ func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOA newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -678,25 +679,25 @@ func (a *OAuth2ApiService) AcceptOAuth2ConsentRequestExecute(r OAuth2ApiAcceptOA return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiAcceptOAuth2LoginRequestRequest struct { +type OAuth2APIAcceptOAuth2LoginRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API loginChallenge *string acceptOAuth2LoginRequest *AcceptOAuth2LoginRequest } // OAuth 2.0 Login Request Challenge -func (r OAuth2ApiAcceptOAuth2LoginRequestRequest) LoginChallenge(loginChallenge string) OAuth2ApiAcceptOAuth2LoginRequestRequest { +func (r OAuth2APIAcceptOAuth2LoginRequestRequest) LoginChallenge(loginChallenge string) OAuth2APIAcceptOAuth2LoginRequestRequest { r.loginChallenge = &loginChallenge return r } -func (r OAuth2ApiAcceptOAuth2LoginRequestRequest) AcceptOAuth2LoginRequest(acceptOAuth2LoginRequest AcceptOAuth2LoginRequest) OAuth2ApiAcceptOAuth2LoginRequestRequest { +func (r OAuth2APIAcceptOAuth2LoginRequestRequest) AcceptOAuth2LoginRequest(acceptOAuth2LoginRequest AcceptOAuth2LoginRequest) OAuth2APIAcceptOAuth2LoginRequestRequest { r.acceptOAuth2LoginRequest = &acceptOAuth2LoginRequest return r } -func (r OAuth2ApiAcceptOAuth2LoginRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { +func (r OAuth2APIAcceptOAuth2LoginRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { return r.ApiService.AcceptOAuth2LoginRequestExecute(r) } @@ -716,10 +717,10 @@ a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiAcceptOAuth2LoginRequestRequest + @return OAuth2APIAcceptOAuth2LoginRequestRequest */ -func (a *OAuth2ApiService) AcceptOAuth2LoginRequest(ctx context.Context) OAuth2ApiAcceptOAuth2LoginRequestRequest { - return OAuth2ApiAcceptOAuth2LoginRequestRequest{ +func (a *OAuth2APIService) AcceptOAuth2LoginRequest(ctx context.Context) OAuth2APIAcceptOAuth2LoginRequestRequest { + return OAuth2APIAcceptOAuth2LoginRequestRequest{ ApiService: a, ctx: ctx, } @@ -727,7 +728,7 @@ func (a *OAuth2ApiService) AcceptOAuth2LoginRequest(ctx context.Context) OAuth2A // Execute executes the request // @return OAuth2RedirectTo -func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { +func (a *OAuth2APIService) AcceptOAuth2LoginRequestExecute(r OAuth2APIAcceptOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -735,7 +736,7 @@ func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAut localVarReturnValue *OAuth2RedirectTo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.AcceptOAuth2LoginRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.AcceptOAuth2LoginRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -749,7 +750,7 @@ func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAut return localVarReturnValue, nil, reportError("loginChallenge is required and must be specified") } - localVarQueryParams.Add("login_challenge", parameterToString(*r.loginChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "login_challenge", r.loginChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -779,9 +780,9 @@ func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAut return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -797,7 +798,8 @@ func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAut newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -813,19 +815,19 @@ func (a *OAuth2ApiService) AcceptOAuth2LoginRequestExecute(r OAuth2ApiAcceptOAut return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiAcceptOAuth2LogoutRequestRequest struct { +type OAuth2APIAcceptOAuth2LogoutRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API logoutChallenge *string } // OAuth 2.0 Logout Request Challenge -func (r OAuth2ApiAcceptOAuth2LogoutRequestRequest) LogoutChallenge(logoutChallenge string) OAuth2ApiAcceptOAuth2LogoutRequestRequest { +func (r OAuth2APIAcceptOAuth2LogoutRequestRequest) LogoutChallenge(logoutChallenge string) OAuth2APIAcceptOAuth2LogoutRequestRequest { r.logoutChallenge = &logoutChallenge return r } -func (r OAuth2ApiAcceptOAuth2LogoutRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { +func (r OAuth2APIAcceptOAuth2LogoutRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { return r.ApiService.AcceptOAuth2LogoutRequestExecute(r) } @@ -837,10 +839,10 @@ When a user or an application requests Ory OAuth 2.0 to remove the session state The response contains a redirect URL which the consent provider should redirect the user-agent to. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiAcceptOAuth2LogoutRequestRequest + @return OAuth2APIAcceptOAuth2LogoutRequestRequest */ -func (a *OAuth2ApiService) AcceptOAuth2LogoutRequest(ctx context.Context) OAuth2ApiAcceptOAuth2LogoutRequestRequest { - return OAuth2ApiAcceptOAuth2LogoutRequestRequest{ +func (a *OAuth2APIService) AcceptOAuth2LogoutRequest(ctx context.Context) OAuth2APIAcceptOAuth2LogoutRequestRequest { + return OAuth2APIAcceptOAuth2LogoutRequestRequest{ ApiService: a, ctx: ctx, } @@ -848,7 +850,7 @@ func (a *OAuth2ApiService) AcceptOAuth2LogoutRequest(ctx context.Context) OAuth2 // Execute executes the request // @return OAuth2RedirectTo -func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAuth2LogoutRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { +func (a *OAuth2APIService) AcceptOAuth2LogoutRequestExecute(r OAuth2APIAcceptOAuth2LogoutRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -856,7 +858,7 @@ func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAu localVarReturnValue *OAuth2RedirectTo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.AcceptOAuth2LogoutRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.AcceptOAuth2LogoutRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -870,7 +872,7 @@ func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAu return localVarReturnValue, nil, reportError("logoutChallenge is required and must be specified") } - localVarQueryParams.Add("logout_challenge", parameterToString(*r.logoutChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "logout_challenge", r.logoutChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -898,9 +900,9 @@ func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAu return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -916,7 +918,8 @@ func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAu newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -932,19 +935,19 @@ func (a *OAuth2ApiService) AcceptOAuth2LogoutRequestExecute(r OAuth2ApiAcceptOAu return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiCreateOAuth2ClientRequest struct { +type OAuth2APICreateOAuth2ClientRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API oAuth2Client *OAuth2Client } // OAuth 2.0 Client Request Body -func (r OAuth2ApiCreateOAuth2ClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OAuth2ApiCreateOAuth2ClientRequest { +func (r OAuth2APICreateOAuth2ClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OAuth2APICreateOAuth2ClientRequest { r.oAuth2Client = &oAuth2Client return r } -func (r OAuth2ApiCreateOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OAuth2APICreateOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.CreateOAuth2ClientExecute(r) } @@ -955,10 +958,10 @@ Create a new OAuth 2.0 client. If you pass `client_secret` the secret is used, o is generated. The secret is echoed in the response. It is not possible to retrieve it later on. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiCreateOAuth2ClientRequest + @return OAuth2APICreateOAuth2ClientRequest */ -func (a *OAuth2ApiService) CreateOAuth2Client(ctx context.Context) OAuth2ApiCreateOAuth2ClientRequest { - return OAuth2ApiCreateOAuth2ClientRequest{ +func (a *OAuth2APIService) CreateOAuth2Client(ctx context.Context) OAuth2APICreateOAuth2ClientRequest { + return OAuth2APICreateOAuth2ClientRequest{ ApiService: a, ctx: ctx, } @@ -966,7 +969,7 @@ func (a *OAuth2ApiService) CreateOAuth2Client(ctx context.Context) OAuth2ApiCrea // Execute executes the request // @return OAuth2Client -func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OAuth2APIService) CreateOAuth2ClientExecute(r OAuth2APICreateOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -974,7 +977,7 @@ func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2Clie localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.CreateOAuth2Client") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.CreateOAuth2Client") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1017,9 +1020,9 @@ func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2Clie return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1036,7 +1039,8 @@ func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2Clie newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -1045,7 +1049,8 @@ func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2Clie newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1061,13 +1066,13 @@ func (a *OAuth2ApiService) CreateOAuth2ClientExecute(r OAuth2ApiCreateOAuth2Clie return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiDeleteOAuth2ClientRequest struct { +type OAuth2APIDeleteOAuth2ClientRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string } -func (r OAuth2ApiDeleteOAuth2ClientRequest) Execute() (*http.Response, error) { +func (r OAuth2APIDeleteOAuth2ClientRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteOAuth2ClientExecute(r) } @@ -1083,10 +1088,10 @@ Make sure that this endpoint is well protected and only callable by first-party @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OAuth2ApiDeleteOAuth2ClientRequest + @return OAuth2APIDeleteOAuth2ClientRequest */ -func (a *OAuth2ApiService) DeleteOAuth2Client(ctx context.Context, id string) OAuth2ApiDeleteOAuth2ClientRequest { - return OAuth2ApiDeleteOAuth2ClientRequest{ +func (a *OAuth2APIService) DeleteOAuth2Client(ctx context.Context, id string) OAuth2APIDeleteOAuth2ClientRequest { + return OAuth2APIDeleteOAuth2ClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -1094,20 +1099,20 @@ func (a *OAuth2ApiService) DeleteOAuth2Client(ctx context.Context, id string) OA } // Execute executes the request -func (a *OAuth2ApiService) DeleteOAuth2ClientExecute(r OAuth2ApiDeleteOAuth2ClientRequest) (*http.Response, error) { +func (a *OAuth2APIService) DeleteOAuth2ClientExecute(r OAuth2APIDeleteOAuth2ClientRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.DeleteOAuth2Client") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.DeleteOAuth2Client") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/clients/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1140,9 +1145,9 @@ func (a *OAuth2ApiService) DeleteOAuth2ClientExecute(r OAuth2ApiDeleteOAuth2Clie return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -1158,26 +1163,27 @@ func (a *OAuth2ApiService) DeleteOAuth2ClientExecute(r OAuth2ApiDeleteOAuth2Clie newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiDeleteOAuth2TokenRequest struct { +type OAuth2APIDeleteOAuth2TokenRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API clientId *string } // OAuth 2.0 Client ID -func (r OAuth2ApiDeleteOAuth2TokenRequest) ClientId(clientId string) OAuth2ApiDeleteOAuth2TokenRequest { +func (r OAuth2APIDeleteOAuth2TokenRequest) ClientId(clientId string) OAuth2APIDeleteOAuth2TokenRequest { r.clientId = &clientId return r } -func (r OAuth2ApiDeleteOAuth2TokenRequest) Execute() (*http.Response, error) { +func (r OAuth2APIDeleteOAuth2TokenRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteOAuth2TokenExecute(r) } @@ -1187,24 +1193,24 @@ DeleteOAuth2Token Delete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client This endpoint deletes OAuth2 access tokens issued to an OAuth 2.0 Client from the database. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiDeleteOAuth2TokenRequest + @return OAuth2APIDeleteOAuth2TokenRequest */ -func (a *OAuth2ApiService) DeleteOAuth2Token(ctx context.Context) OAuth2ApiDeleteOAuth2TokenRequest { - return OAuth2ApiDeleteOAuth2TokenRequest{ +func (a *OAuth2APIService) DeleteOAuth2Token(ctx context.Context) OAuth2APIDeleteOAuth2TokenRequest { + return OAuth2APIDeleteOAuth2TokenRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r OAuth2ApiDeleteOAuth2TokenRequest) (*http.Response, error) { +func (a *OAuth2APIService) DeleteOAuth2TokenExecute(r OAuth2APIDeleteOAuth2TokenRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.DeleteOAuth2Token") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.DeleteOAuth2Token") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -1218,7 +1224,7 @@ func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r OAuth2ApiDeleteOAuth2Token return nil, reportError("clientId is required and must be specified") } - localVarQueryParams.Add("client_id", parameterToString(*r.clientId, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "client_id", r.clientId, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1246,9 +1252,9 @@ func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r OAuth2ApiDeleteOAuth2Token return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -1264,20 +1270,21 @@ func (a *OAuth2ApiService) DeleteOAuth2TokenExecute(r OAuth2ApiDeleteOAuth2Token newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest struct { +type OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string } -func (r OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest) Execute() (*http.Response, error) { +func (r OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteTrustedOAuth2JwtGrantIssuerExecute(r) } @@ -1292,10 +1299,10 @@ for OAuth 2.0 Client Authentication and Authorization Grant. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the desired grant - @return OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest + @return OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest */ -func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest { - return OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest{ +func (a *OAuth2APIService) DeleteTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest { + return OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest{ ApiService: a, ctx: ctx, id: id, @@ -1303,20 +1310,20 @@ func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuer(ctx context.Context } // Execute executes the request -func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) { +func (a *OAuth2APIService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r OAuth2APIDeleteTrustedOAuth2JwtGrantIssuerRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.DeleteTrustedOAuth2JwtGrantIssuer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.DeleteTrustedOAuth2JwtGrantIssuer") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/trust/grants/jwt-bearer/issuers/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1349,9 +1356,9 @@ func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiD return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -1367,20 +1374,21 @@ func (a *OAuth2ApiService) DeleteTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiD newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiGetOAuth2ClientRequest struct { +type OAuth2APIGetOAuth2ClientRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string } -func (r OAuth2ApiGetOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OAuth2APIGetOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.GetOAuth2ClientExecute(r) } @@ -1394,10 +1402,10 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OAuth2ApiGetOAuth2ClientRequest + @return OAuth2APIGetOAuth2ClientRequest */ -func (a *OAuth2ApiService) GetOAuth2Client(ctx context.Context, id string) OAuth2ApiGetOAuth2ClientRequest { - return OAuth2ApiGetOAuth2ClientRequest{ +func (a *OAuth2APIService) GetOAuth2Client(ctx context.Context, id string) OAuth2APIGetOAuth2ClientRequest { + return OAuth2APIGetOAuth2ClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -1406,7 +1414,7 @@ func (a *OAuth2ApiService) GetOAuth2Client(ctx context.Context, id string) OAuth // Execute executes the request // @return OAuth2Client -func (a *OAuth2ApiService) GetOAuth2ClientExecute(r OAuth2ApiGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OAuth2APIService) GetOAuth2ClientExecute(r OAuth2APIGetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1414,13 +1422,13 @@ func (a *OAuth2ApiService) GetOAuth2ClientExecute(r OAuth2ApiGetOAuth2ClientRequ localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.GetOAuth2Client") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.GetOAuth2Client") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/clients/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1453,9 +1461,9 @@ func (a *OAuth2ApiService) GetOAuth2ClientExecute(r OAuth2ApiGetOAuth2ClientRequ return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1471,7 +1479,8 @@ func (a *OAuth2ApiService) GetOAuth2ClientExecute(r OAuth2ApiGetOAuth2ClientRequ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1487,19 +1496,19 @@ func (a *OAuth2ApiService) GetOAuth2ClientExecute(r OAuth2ApiGetOAuth2ClientRequ return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiGetOAuth2ConsentRequestRequest struct { +type OAuth2APIGetOAuth2ConsentRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API consentChallenge *string } // OAuth 2.0 Consent Request Challenge -func (r OAuth2ApiGetOAuth2ConsentRequestRequest) ConsentChallenge(consentChallenge string) OAuth2ApiGetOAuth2ConsentRequestRequest { +func (r OAuth2APIGetOAuth2ConsentRequestRequest) ConsentChallenge(consentChallenge string) OAuth2APIGetOAuth2ConsentRequestRequest { r.consentChallenge = &consentChallenge return r } -func (r OAuth2ApiGetOAuth2ConsentRequestRequest) Execute() (*OAuth2ConsentRequest, *http.Response, error) { +func (r OAuth2APIGetOAuth2ConsentRequestRequest) Execute() (*OAuth2ConsentRequest, *http.Response, error) { return r.ApiService.GetOAuth2ConsentRequestExecute(r) } @@ -1518,10 +1527,10 @@ The default consent provider is available via the Ory Managed Account Experience head over to the OAuth 2.0 documentation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiGetOAuth2ConsentRequestRequest + @return OAuth2APIGetOAuth2ConsentRequestRequest */ -func (a *OAuth2ApiService) GetOAuth2ConsentRequest(ctx context.Context) OAuth2ApiGetOAuth2ConsentRequestRequest { - return OAuth2ApiGetOAuth2ConsentRequestRequest{ +func (a *OAuth2APIService) GetOAuth2ConsentRequest(ctx context.Context) OAuth2APIGetOAuth2ConsentRequestRequest { + return OAuth2APIGetOAuth2ConsentRequestRequest{ ApiService: a, ctx: ctx, } @@ -1529,7 +1538,7 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequest(ctx context.Context) OAuth2Ap // Execute executes the request // @return OAuth2ConsentRequest -func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) { +func (a *OAuth2APIService) GetOAuth2ConsentRequestExecute(r OAuth2APIGetOAuth2ConsentRequestRequest) (*OAuth2ConsentRequest, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1537,7 +1546,7 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2Co localVarReturnValue *OAuth2ConsentRequest ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.GetOAuth2ConsentRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.GetOAuth2ConsentRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1551,7 +1560,7 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2Co return localVarReturnValue, nil, reportError("consentChallenge is required and must be specified") } - localVarQueryParams.Add("consent_challenge", parameterToString(*r.consentChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "consent_challenge", r.consentChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1579,9 +1588,9 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2Co return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1598,7 +1607,8 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2Co newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -1607,7 +1617,8 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2Co newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1623,19 +1634,19 @@ func (a *OAuth2ApiService) GetOAuth2ConsentRequestExecute(r OAuth2ApiGetOAuth2Co return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiGetOAuth2LoginRequestRequest struct { +type OAuth2APIGetOAuth2LoginRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API loginChallenge *string } // OAuth 2.0 Login Request Challenge -func (r OAuth2ApiGetOAuth2LoginRequestRequest) LoginChallenge(loginChallenge string) OAuth2ApiGetOAuth2LoginRequestRequest { +func (r OAuth2APIGetOAuth2LoginRequestRequest) LoginChallenge(loginChallenge string) OAuth2APIGetOAuth2LoginRequestRequest { r.loginChallenge = &loginChallenge return r } -func (r OAuth2ApiGetOAuth2LoginRequestRequest) Execute() (*OAuth2LoginRequest, *http.Response, error) { +func (r OAuth2APIGetOAuth2LoginRequestRequest) Execute() (*OAuth2LoginRequest, *http.Response, error) { return r.ApiService.GetOAuth2LoginRequestExecute(r) } @@ -1653,10 +1664,10 @@ The authentication challenge is appended to the login provider URL to which the provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiGetOAuth2LoginRequestRequest + @return OAuth2APIGetOAuth2LoginRequestRequest */ -func (a *OAuth2ApiService) GetOAuth2LoginRequest(ctx context.Context) OAuth2ApiGetOAuth2LoginRequestRequest { - return OAuth2ApiGetOAuth2LoginRequestRequest{ +func (a *OAuth2APIService) GetOAuth2LoginRequest(ctx context.Context) OAuth2APIGetOAuth2LoginRequestRequest { + return OAuth2APIGetOAuth2LoginRequestRequest{ ApiService: a, ctx: ctx, } @@ -1664,7 +1675,7 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequest(ctx context.Context) OAuth2ApiG // Execute executes the request // @return OAuth2LoginRequest -func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) { +func (a *OAuth2APIService) GetOAuth2LoginRequestExecute(r OAuth2APIGetOAuth2LoginRequestRequest) (*OAuth2LoginRequest, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1672,7 +1683,7 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2Logi localVarReturnValue *OAuth2LoginRequest ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.GetOAuth2LoginRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.GetOAuth2LoginRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1686,7 +1697,7 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2Logi return localVarReturnValue, nil, reportError("loginChallenge is required and must be specified") } - localVarQueryParams.Add("login_challenge", parameterToString(*r.loginChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "login_challenge", r.loginChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1714,9 +1725,9 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2Logi return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1733,7 +1744,8 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2Logi newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -1742,7 +1754,8 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2Logi newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1758,18 +1771,18 @@ func (a *OAuth2ApiService) GetOAuth2LoginRequestExecute(r OAuth2ApiGetOAuth2Logi return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiGetOAuth2LogoutRequestRequest struct { +type OAuth2APIGetOAuth2LogoutRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API logoutChallenge *string } -func (r OAuth2ApiGetOAuth2LogoutRequestRequest) LogoutChallenge(logoutChallenge string) OAuth2ApiGetOAuth2LogoutRequestRequest { +func (r OAuth2APIGetOAuth2LogoutRequestRequest) LogoutChallenge(logoutChallenge string) OAuth2APIGetOAuth2LogoutRequestRequest { r.logoutChallenge = &logoutChallenge return r } -func (r OAuth2ApiGetOAuth2LogoutRequestRequest) Execute() (*OAuth2LogoutRequest, *http.Response, error) { +func (r OAuth2APIGetOAuth2LogoutRequestRequest) Execute() (*OAuth2LogoutRequest, *http.Response, error) { return r.ApiService.GetOAuth2LogoutRequestExecute(r) } @@ -1779,10 +1792,10 @@ GetOAuth2LogoutRequest Get OAuth 2.0 Session Logout Request Use this endpoint to fetch an Ory OAuth 2.0 logout request. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiGetOAuth2LogoutRequestRequest + @return OAuth2APIGetOAuth2LogoutRequestRequest */ -func (a *OAuth2ApiService) GetOAuth2LogoutRequest(ctx context.Context) OAuth2ApiGetOAuth2LogoutRequestRequest { - return OAuth2ApiGetOAuth2LogoutRequestRequest{ +func (a *OAuth2APIService) GetOAuth2LogoutRequest(ctx context.Context) OAuth2APIGetOAuth2LogoutRequestRequest { + return OAuth2APIGetOAuth2LogoutRequestRequest{ ApiService: a, ctx: ctx, } @@ -1790,7 +1803,7 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequest(ctx context.Context) OAuth2Api // Execute executes the request // @return OAuth2LogoutRequest -func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) { +func (a *OAuth2APIService) GetOAuth2LogoutRequestExecute(r OAuth2APIGetOAuth2LogoutRequestRequest) (*OAuth2LogoutRequest, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1798,7 +1811,7 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2Log localVarReturnValue *OAuth2LogoutRequest ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.GetOAuth2LogoutRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.GetOAuth2LogoutRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -1812,7 +1825,7 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2Log return localVarReturnValue, nil, reportError("logoutChallenge is required and must be specified") } - localVarQueryParams.Add("logout_challenge", parameterToString(*r.logoutChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "logout_challenge", r.logoutChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -1840,9 +1853,9 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2Log return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1859,7 +1872,8 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2Log newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -1868,7 +1882,8 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2Log newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1884,13 +1899,13 @@ func (a *OAuth2ApiService) GetOAuth2LogoutRequestExecute(r OAuth2ApiGetOAuth2Log return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest struct { +type OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string } -func (r OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest) Execute() (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { +func (r OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest) Execute() (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { return r.ApiService.GetTrustedOAuth2JwtGrantIssuerExecute(r) } @@ -1902,10 +1917,10 @@ created the trust relationship. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the desired grant - @return OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest + @return OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest */ -func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest { - return OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest{ +func (a *OAuth2APIService) GetTrustedOAuth2JwtGrantIssuer(ctx context.Context, id string) OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest { + return OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest{ ApiService: a, ctx: ctx, id: id, @@ -1914,7 +1929,7 @@ func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuer(ctx context.Context, i // Execute executes the request // @return TrustedOAuth2JwtGrantIssuer -func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { +func (a *OAuth2APIService) GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2APIGetTrustedOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -1922,13 +1937,13 @@ func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiGetT localVarReturnValue *TrustedOAuth2JwtGrantIssuer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.GetTrustedOAuth2JwtGrantIssuer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.GetTrustedOAuth2JwtGrantIssuer") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/trust/grants/jwt-bearer/issuers/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1961,9 +1976,9 @@ func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiGetT return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1979,7 +1994,8 @@ func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiGetT newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -1995,26 +2011,26 @@ func (a *OAuth2ApiService) GetTrustedOAuth2JwtGrantIssuerExecute(r OAuth2ApiGetT return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiIntrospectOAuth2TokenRequest struct { +type OAuth2APIIntrospectOAuth2TokenRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API token *string scope *string } // The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned. -func (r OAuth2ApiIntrospectOAuth2TokenRequest) Token(token string) OAuth2ApiIntrospectOAuth2TokenRequest { +func (r OAuth2APIIntrospectOAuth2TokenRequest) Token(token string) OAuth2APIIntrospectOAuth2TokenRequest { r.token = &token return r } // An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. -func (r OAuth2ApiIntrospectOAuth2TokenRequest) Scope(scope string) OAuth2ApiIntrospectOAuth2TokenRequest { +func (r OAuth2APIIntrospectOAuth2TokenRequest) Scope(scope string) OAuth2APIIntrospectOAuth2TokenRequest { r.scope = &scope return r } -func (r OAuth2ApiIntrospectOAuth2TokenRequest) Execute() (*IntrospectedOAuth2Token, *http.Response, error) { +func (r OAuth2APIIntrospectOAuth2TokenRequest) Execute() (*IntrospectedOAuth2Token, *http.Response, error) { return r.ApiService.IntrospectOAuth2TokenExecute(r) } @@ -2026,10 +2042,10 @@ is neither expired nor revoked. If a token is active, additional information on set additional data for a token by setting `session.access_token` during the consent flow. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiIntrospectOAuth2TokenRequest + @return OAuth2APIIntrospectOAuth2TokenRequest */ -func (a *OAuth2ApiService) IntrospectOAuth2Token(ctx context.Context) OAuth2ApiIntrospectOAuth2TokenRequest { - return OAuth2ApiIntrospectOAuth2TokenRequest{ +func (a *OAuth2APIService) IntrospectOAuth2Token(ctx context.Context) OAuth2APIIntrospectOAuth2TokenRequest { + return OAuth2APIIntrospectOAuth2TokenRequest{ ApiService: a, ctx: ctx, } @@ -2037,7 +2053,7 @@ func (a *OAuth2ApiService) IntrospectOAuth2Token(ctx context.Context) OAuth2ApiI // Execute executes the request // @return IntrospectedOAuth2Token -func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAuth2TokenRequest) (*IntrospectedOAuth2Token, *http.Response, error) { +func (a *OAuth2APIService) IntrospectOAuth2TokenExecute(r OAuth2APIIntrospectOAuth2TokenRequest) (*IntrospectedOAuth2Token, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -2045,7 +2061,7 @@ func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAu localVarReturnValue *IntrospectedOAuth2Token ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.IntrospectOAuth2Token") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.IntrospectOAuth2Token") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2077,9 +2093,9 @@ func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAu localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.scope != nil { - localVarFormParams.Add("scope", parameterToString(*r.scope, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "scope", r.scope, "") } - localVarFormParams.Add("token", parameterToString(*r.token, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "token", r.token, "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return localVarReturnValue, nil, err @@ -2090,9 +2106,9 @@ func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAu return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2108,7 +2124,8 @@ func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAu newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2124,9 +2141,9 @@ func (a *OAuth2ApiService) IntrospectOAuth2TokenExecute(r OAuth2ApiIntrospectOAu return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiListOAuth2ClientsRequest struct { +type OAuth2APIListOAuth2ClientsRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API pageSize *int64 pageToken *string clientName *string @@ -2134,30 +2151,30 @@ type OAuth2ApiListOAuth2ClientsRequest struct { } // Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). -func (r OAuth2ApiListOAuth2ClientsRequest) PageSize(pageSize int64) OAuth2ApiListOAuth2ClientsRequest { +func (r OAuth2APIListOAuth2ClientsRequest) PageSize(pageSize int64) OAuth2APIListOAuth2ClientsRequest { r.pageSize = &pageSize return r } // Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). -func (r OAuth2ApiListOAuth2ClientsRequest) PageToken(pageToken string) OAuth2ApiListOAuth2ClientsRequest { +func (r OAuth2APIListOAuth2ClientsRequest) PageToken(pageToken string) OAuth2APIListOAuth2ClientsRequest { r.pageToken = &pageToken return r } // The name of the clients to filter by. -func (r OAuth2ApiListOAuth2ClientsRequest) ClientName(clientName string) OAuth2ApiListOAuth2ClientsRequest { +func (r OAuth2APIListOAuth2ClientsRequest) ClientName(clientName string) OAuth2APIListOAuth2ClientsRequest { r.clientName = &clientName return r } // The owner of the clients to filter by. -func (r OAuth2ApiListOAuth2ClientsRequest) Owner(owner string) OAuth2ApiListOAuth2ClientsRequest { +func (r OAuth2APIListOAuth2ClientsRequest) Owner(owner string) OAuth2APIListOAuth2ClientsRequest { r.owner = &owner return r } -func (r OAuth2ApiListOAuth2ClientsRequest) Execute() ([]OAuth2Client, *http.Response, error) { +func (r OAuth2APIListOAuth2ClientsRequest) Execute() ([]OAuth2Client, *http.Response, error) { return r.ApiService.ListOAuth2ClientsExecute(r) } @@ -2168,10 +2185,10 @@ This endpoint lists all clients in the database, and never returns client secret As a default it lists the first 100 clients. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiListOAuth2ClientsRequest + @return OAuth2APIListOAuth2ClientsRequest */ -func (a *OAuth2ApiService) ListOAuth2Clients(ctx context.Context) OAuth2ApiListOAuth2ClientsRequest { - return OAuth2ApiListOAuth2ClientsRequest{ +func (a *OAuth2APIService) ListOAuth2Clients(ctx context.Context) OAuth2APIListOAuth2ClientsRequest { + return OAuth2APIListOAuth2ClientsRequest{ ApiService: a, ctx: ctx, } @@ -2179,7 +2196,7 @@ func (a *OAuth2ApiService) ListOAuth2Clients(ctx context.Context) OAuth2ApiListO // Execute executes the request // @return []OAuth2Client -func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2ClientsRequest) ([]OAuth2Client, *http.Response, error) { +func (a *OAuth2APIService) ListOAuth2ClientsExecute(r OAuth2APIListOAuth2ClientsRequest) ([]OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2187,7 +2204,7 @@ func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2Clients localVarReturnValue []OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.ListOAuth2Clients") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.ListOAuth2Clients") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2199,16 +2216,22 @@ func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2Clients localVarFormParams := url.Values{} if r.pageSize != nil { - localVarQueryParams.Add("page_size", parameterToString(*r.pageSize, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } else { + var defaultValue int64 = 250 + r.pageSize = &defaultValue } if r.pageToken != nil { - localVarQueryParams.Add("page_token", parameterToString(*r.pageToken, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "page_token", r.pageToken, "") + } else { + var defaultValue string = "1" + r.pageToken = &defaultValue } if r.clientName != nil { - localVarQueryParams.Add("client_name", parameterToString(*r.clientName, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "client_name", r.clientName, "") } if r.owner != nil { - localVarQueryParams.Add("owner", parameterToString(*r.owner, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "owner", r.owner, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2237,9 +2260,9 @@ func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2Clients return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2255,7 +2278,8 @@ func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2Clients newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2271,9 +2295,9 @@ func (a *OAuth2ApiService) ListOAuth2ClientsExecute(r OAuth2ApiListOAuth2Clients return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiListOAuth2ConsentSessionsRequest struct { +type OAuth2APIListOAuth2ConsentSessionsRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API subject *string pageSize *int64 pageToken *string @@ -2281,30 +2305,30 @@ type OAuth2ApiListOAuth2ConsentSessionsRequest struct { } // The subject to list the consent sessions for. -func (r OAuth2ApiListOAuth2ConsentSessionsRequest) Subject(subject string) OAuth2ApiListOAuth2ConsentSessionsRequest { +func (r OAuth2APIListOAuth2ConsentSessionsRequest) Subject(subject string) OAuth2APIListOAuth2ConsentSessionsRequest { r.subject = &subject return r } // Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). -func (r OAuth2ApiListOAuth2ConsentSessionsRequest) PageSize(pageSize int64) OAuth2ApiListOAuth2ConsentSessionsRequest { +func (r OAuth2APIListOAuth2ConsentSessionsRequest) PageSize(pageSize int64) OAuth2APIListOAuth2ConsentSessionsRequest { r.pageSize = &pageSize return r } // Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). -func (r OAuth2ApiListOAuth2ConsentSessionsRequest) PageToken(pageToken string) OAuth2ApiListOAuth2ConsentSessionsRequest { +func (r OAuth2APIListOAuth2ConsentSessionsRequest) PageToken(pageToken string) OAuth2APIListOAuth2ConsentSessionsRequest { r.pageToken = &pageToken return r } // The login session id to list the consent sessions for. -func (r OAuth2ApiListOAuth2ConsentSessionsRequest) LoginSessionId(loginSessionId string) OAuth2ApiListOAuth2ConsentSessionsRequest { +func (r OAuth2APIListOAuth2ConsentSessionsRequest) LoginSessionId(loginSessionId string) OAuth2APIListOAuth2ConsentSessionsRequest { r.loginSessionId = &loginSessionId return r } -func (r OAuth2ApiListOAuth2ConsentSessionsRequest) Execute() ([]OAuth2ConsentSession, *http.Response, error) { +func (r OAuth2APIListOAuth2ConsentSessionsRequest) Execute() ([]OAuth2ConsentSession, *http.Response, error) { return r.ApiService.ListOAuth2ConsentSessionsExecute(r) } @@ -2316,10 +2340,10 @@ If the subject is unknown or has not granted any consent sessions yet, the endpo empty JSON array with status code 200 OK. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiListOAuth2ConsentSessionsRequest + @return OAuth2APIListOAuth2ConsentSessionsRequest */ -func (a *OAuth2ApiService) ListOAuth2ConsentSessions(ctx context.Context) OAuth2ApiListOAuth2ConsentSessionsRequest { - return OAuth2ApiListOAuth2ConsentSessionsRequest{ +func (a *OAuth2APIService) ListOAuth2ConsentSessions(ctx context.Context) OAuth2APIListOAuth2ConsentSessionsRequest { + return OAuth2APIListOAuth2ConsentSessionsRequest{ ApiService: a, ctx: ctx, } @@ -2327,7 +2351,7 @@ func (a *OAuth2ApiService) ListOAuth2ConsentSessions(ctx context.Context) OAuth2 // Execute executes the request // @return []OAuth2ConsentSession -func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth2ConsentSessionsRequest) ([]OAuth2ConsentSession, *http.Response, error) { +func (a *OAuth2APIService) ListOAuth2ConsentSessionsExecute(r OAuth2APIListOAuth2ConsentSessionsRequest) ([]OAuth2ConsentSession, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2335,7 +2359,7 @@ func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth localVarReturnValue []OAuth2ConsentSession ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.ListOAuth2ConsentSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.ListOAuth2ConsentSessions") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2350,14 +2374,20 @@ func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth } if r.pageSize != nil { - localVarQueryParams.Add("page_size", parameterToString(*r.pageSize, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "page_size", r.pageSize, "") + } else { + var defaultValue int64 = 250 + r.pageSize = &defaultValue } if r.pageToken != nil { - localVarQueryParams.Add("page_token", parameterToString(*r.pageToken, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "page_token", r.pageToken, "") + } else { + var defaultValue string = "1" + r.pageToken = &defaultValue } - localVarQueryParams.Add("subject", parameterToString(*r.subject, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "subject", r.subject, "") if r.loginSessionId != nil { - localVarQueryParams.Add("login_session_id", parameterToString(*r.loginSessionId, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "login_session_id", r.loginSessionId, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2386,9 +2416,9 @@ func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2404,7 +2434,8 @@ func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2420,31 +2451,31 @@ func (a *OAuth2ApiService) ListOAuth2ConsentSessionsExecute(r OAuth2ApiListOAuth return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest struct { +type OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API maxItems *int64 defaultItems *int64 issuer *string } -func (r OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest) MaxItems(maxItems int64) OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest { +func (r OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest) MaxItems(maxItems int64) OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest { r.maxItems = &maxItems return r } -func (r OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest) DefaultItems(defaultItems int64) OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest { +func (r OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest) DefaultItems(defaultItems int64) OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest { r.defaultItems = &defaultItems return r } // If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned. -func (r OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest) Issuer(issuer string) OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest { +func (r OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest) Issuer(issuer string) OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest { r.issuer = &issuer return r } -func (r OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest) Execute() ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) { +func (r OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest) Execute() ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) { return r.ApiService.ListTrustedOAuth2JwtGrantIssuersExecute(r) } @@ -2454,10 +2485,10 @@ ListTrustedOAuth2JwtGrantIssuers List Trusted OAuth2 JWT Bearer Grant Type Issue Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest + @return OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest */ -func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuers(ctx context.Context) OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest { - return OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest{ +func (a *OAuth2APIService) ListTrustedOAuth2JwtGrantIssuers(ctx context.Context) OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest { + return OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest{ ApiService: a, ctx: ctx, } @@ -2465,7 +2496,7 @@ func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuers(ctx context.Context) // Execute executes the request // @return []TrustedOAuth2JwtGrantIssuer -func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) { +func (a *OAuth2APIService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2APIListTrustedOAuth2JwtGrantIssuersRequest) ([]TrustedOAuth2JwtGrantIssuer, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2473,7 +2504,7 @@ func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiLi localVarReturnValue []TrustedOAuth2JwtGrantIssuer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.ListTrustedOAuth2JwtGrantIssuers") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.ListTrustedOAuth2JwtGrantIssuers") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2485,13 +2516,13 @@ func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiLi localVarFormParams := url.Values{} if r.maxItems != nil { - localVarQueryParams.Add("MaxItems", parameterToString(*r.maxItems, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "MaxItems", r.maxItems, "") } if r.defaultItems != nil { - localVarQueryParams.Add("DefaultItems", parameterToString(*r.defaultItems, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "DefaultItems", r.defaultItems, "") } if r.issuer != nil { - localVarQueryParams.Add("issuer", parameterToString(*r.issuer, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "issuer", r.issuer, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2520,9 +2551,9 @@ func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiLi return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2538,7 +2569,8 @@ func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiLi newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2554,12 +2586,12 @@ func (a *OAuth2ApiService) ListTrustedOAuth2JwtGrantIssuersExecute(r OAuth2ApiLi return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiOAuth2AuthorizeRequest struct { +type OAuth2APIOAuth2AuthorizeRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API } -func (r OAuth2ApiOAuth2AuthorizeRequest) Execute() (*ErrorOAuth2, *http.Response, error) { +func (r OAuth2APIOAuth2AuthorizeRequest) Execute() (*ErrorOAuth2, *http.Response, error) { return r.ApiService.OAuth2AuthorizeExecute(r) } @@ -2572,10 +2604,10 @@ available for any programming language. You can find a list of libraries at http The Ory SDK is not yet able to this endpoint properly. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiOAuth2AuthorizeRequest + @return OAuth2APIOAuth2AuthorizeRequest */ -func (a *OAuth2ApiService) OAuth2Authorize(ctx context.Context) OAuth2ApiOAuth2AuthorizeRequest { - return OAuth2ApiOAuth2AuthorizeRequest{ +func (a *OAuth2APIService) OAuth2Authorize(ctx context.Context) OAuth2APIOAuth2AuthorizeRequest { + return OAuth2APIOAuth2AuthorizeRequest{ ApiService: a, ctx: ctx, } @@ -2583,7 +2615,7 @@ func (a *OAuth2ApiService) OAuth2Authorize(ctx context.Context) OAuth2ApiOAuth2A // Execute executes the request // @return ErrorOAuth2 -func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r OAuth2ApiOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) { +func (a *OAuth2APIService) OAuth2AuthorizeExecute(r OAuth2APIOAuth2AuthorizeRequest) (*ErrorOAuth2, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -2591,7 +2623,7 @@ func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r OAuth2ApiOAuth2AuthorizeRequ localVarReturnValue *ErrorOAuth2 ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.OAuth2Authorize") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.OAuth2Authorize") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2629,9 +2661,9 @@ func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r OAuth2ApiOAuth2AuthorizeRequ return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2647,7 +2679,8 @@ func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r OAuth2ApiOAuth2AuthorizeRequ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2663,9 +2696,9 @@ func (a *OAuth2ApiService) OAuth2AuthorizeExecute(r OAuth2ApiOAuth2AuthorizeRequ return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiOauth2TokenExchangeRequest struct { +type OAuth2APIOauth2TokenExchangeRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API grantType *string clientId *string code *string @@ -2673,32 +2706,32 @@ type OAuth2ApiOauth2TokenExchangeRequest struct { refreshToken *string } -func (r OAuth2ApiOauth2TokenExchangeRequest) GrantType(grantType string) OAuth2ApiOauth2TokenExchangeRequest { +func (r OAuth2APIOauth2TokenExchangeRequest) GrantType(grantType string) OAuth2APIOauth2TokenExchangeRequest { r.grantType = &grantType return r } -func (r OAuth2ApiOauth2TokenExchangeRequest) ClientId(clientId string) OAuth2ApiOauth2TokenExchangeRequest { +func (r OAuth2APIOauth2TokenExchangeRequest) ClientId(clientId string) OAuth2APIOauth2TokenExchangeRequest { r.clientId = &clientId return r } -func (r OAuth2ApiOauth2TokenExchangeRequest) Code(code string) OAuth2ApiOauth2TokenExchangeRequest { +func (r OAuth2APIOauth2TokenExchangeRequest) Code(code string) OAuth2APIOauth2TokenExchangeRequest { r.code = &code return r } -func (r OAuth2ApiOauth2TokenExchangeRequest) RedirectUri(redirectUri string) OAuth2ApiOauth2TokenExchangeRequest { +func (r OAuth2APIOauth2TokenExchangeRequest) RedirectUri(redirectUri string) OAuth2APIOauth2TokenExchangeRequest { r.redirectUri = &redirectUri return r } -func (r OAuth2ApiOauth2TokenExchangeRequest) RefreshToken(refreshToken string) OAuth2ApiOauth2TokenExchangeRequest { +func (r OAuth2APIOauth2TokenExchangeRequest) RefreshToken(refreshToken string) OAuth2APIOauth2TokenExchangeRequest { r.refreshToken = &refreshToken return r } -func (r OAuth2ApiOauth2TokenExchangeRequest) Execute() (*OAuth2TokenExchange, *http.Response, error) { +func (r OAuth2APIOauth2TokenExchangeRequest) Execute() (*OAuth2TokenExchange, *http.Response, error) { return r.ApiService.Oauth2TokenExchangeExecute(r) } @@ -2711,10 +2744,10 @@ available for any programming language. You can find a list of libraries here ht The Ory SDK is not yet able to this endpoint properly. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiOauth2TokenExchangeRequest + @return OAuth2APIOauth2TokenExchangeRequest */ -func (a *OAuth2ApiService) Oauth2TokenExchange(ctx context.Context) OAuth2ApiOauth2TokenExchangeRequest { - return OAuth2ApiOauth2TokenExchangeRequest{ +func (a *OAuth2APIService) Oauth2TokenExchange(ctx context.Context) OAuth2APIOauth2TokenExchangeRequest { + return OAuth2APIOauth2TokenExchangeRequest{ ApiService: a, ctx: ctx, } @@ -2722,7 +2755,7 @@ func (a *OAuth2ApiService) Oauth2TokenExchange(ctx context.Context) OAuth2ApiOau // Execute executes the request // @return OAuth2TokenExchange -func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExchangeRequest) (*OAuth2TokenExchange, *http.Response, error) { +func (a *OAuth2APIService) Oauth2TokenExchangeExecute(r OAuth2APIOauth2TokenExchangeRequest) (*OAuth2TokenExchange, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -2730,7 +2763,7 @@ func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExch localVarReturnValue *OAuth2TokenExchange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.Oauth2TokenExchange") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.Oauth2TokenExchange") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -2762,17 +2795,17 @@ func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExch localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.clientId != nil { - localVarFormParams.Add("client_id", parameterToString(*r.clientId, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "client_id", r.clientId, "") } if r.code != nil { - localVarFormParams.Add("code", parameterToString(*r.code, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "code", r.code, "") } - localVarFormParams.Add("grant_type", parameterToString(*r.grantType, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "grant_type", r.grantType, "") if r.redirectUri != nil { - localVarFormParams.Add("redirect_uri", parameterToString(*r.redirectUri, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "redirect_uri", r.redirectUri, "") } if r.refreshToken != nil { - localVarFormParams.Add("refresh_token", parameterToString(*r.refreshToken, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "refresh_token", r.refreshToken, "") } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { @@ -2784,9 +2817,9 @@ func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExch return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2802,7 +2835,8 @@ func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExch newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2818,20 +2852,20 @@ func (a *OAuth2ApiService) Oauth2TokenExchangeExecute(r OAuth2ApiOauth2TokenExch return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiPatchOAuth2ClientRequest struct { +type OAuth2APIPatchOAuth2ClientRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string jsonPatch *[]JsonPatch } // OAuth 2.0 Client JSON Patch Body -func (r OAuth2ApiPatchOAuth2ClientRequest) JsonPatch(jsonPatch []JsonPatch) OAuth2ApiPatchOAuth2ClientRequest { +func (r OAuth2APIPatchOAuth2ClientRequest) JsonPatch(jsonPatch []JsonPatch) OAuth2APIPatchOAuth2ClientRequest { r.jsonPatch = &jsonPatch return r } -func (r OAuth2ApiPatchOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OAuth2APIPatchOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.PatchOAuth2ClientExecute(r) } @@ -2847,10 +2881,10 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OAuth2ApiPatchOAuth2ClientRequest + @return OAuth2APIPatchOAuth2ClientRequest */ -func (a *OAuth2ApiService) PatchOAuth2Client(ctx context.Context, id string) OAuth2ApiPatchOAuth2ClientRequest { - return OAuth2ApiPatchOAuth2ClientRequest{ +func (a *OAuth2APIService) PatchOAuth2Client(ctx context.Context, id string) OAuth2APIPatchOAuth2ClientRequest { + return OAuth2APIPatchOAuth2ClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -2859,7 +2893,7 @@ func (a *OAuth2ApiService) PatchOAuth2Client(ctx context.Context, id string) OAu // Execute executes the request // @return OAuth2Client -func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OAuth2APIService) PatchOAuth2ClientExecute(r OAuth2APIPatchOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} @@ -2867,13 +2901,13 @@ func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2Client localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.PatchOAuth2Client") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.PatchOAuth2Client") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/clients/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -2911,9 +2945,9 @@ func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2Client return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -2930,7 +2964,8 @@ func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2Client newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -2939,7 +2974,8 @@ func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2Client newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -2955,25 +2991,25 @@ func (a *OAuth2ApiService) PatchOAuth2ClientExecute(r OAuth2ApiPatchOAuth2Client return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiRejectOAuth2ConsentRequestRequest struct { +type OAuth2APIRejectOAuth2ConsentRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API consentChallenge *string rejectOAuth2Request *RejectOAuth2Request } // OAuth 2.0 Consent Request Challenge -func (r OAuth2ApiRejectOAuth2ConsentRequestRequest) ConsentChallenge(consentChallenge string) OAuth2ApiRejectOAuth2ConsentRequestRequest { +func (r OAuth2APIRejectOAuth2ConsentRequestRequest) ConsentChallenge(consentChallenge string) OAuth2APIRejectOAuth2ConsentRequestRequest { r.consentChallenge = &consentChallenge return r } -func (r OAuth2ApiRejectOAuth2ConsentRequestRequest) RejectOAuth2Request(rejectOAuth2Request RejectOAuth2Request) OAuth2ApiRejectOAuth2ConsentRequestRequest { +func (r OAuth2APIRejectOAuth2ConsentRequestRequest) RejectOAuth2Request(rejectOAuth2Request RejectOAuth2Request) OAuth2APIRejectOAuth2ConsentRequestRequest { r.rejectOAuth2Request = &rejectOAuth2Request return r } -func (r OAuth2ApiRejectOAuth2ConsentRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { +func (r OAuth2APIRejectOAuth2ConsentRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { return r.ApiService.RejectOAuth2ConsentRequestExecute(r) } @@ -2997,10 +3033,10 @@ The default consent provider is available via the Ory Managed Account Experience head over to the OAuth 2.0 documentation. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRejectOAuth2ConsentRequestRequest + @return OAuth2APIRejectOAuth2ConsentRequestRequest */ -func (a *OAuth2ApiService) RejectOAuth2ConsentRequest(ctx context.Context) OAuth2ApiRejectOAuth2ConsentRequestRequest { - return OAuth2ApiRejectOAuth2ConsentRequestRequest{ +func (a *OAuth2APIService) RejectOAuth2ConsentRequest(ctx context.Context) OAuth2APIRejectOAuth2ConsentRequestRequest { + return OAuth2APIRejectOAuth2ConsentRequestRequest{ ApiService: a, ctx: ctx, } @@ -3008,7 +3044,7 @@ func (a *OAuth2ApiService) RejectOAuth2ConsentRequest(ctx context.Context) OAuth // Execute executes the request // @return OAuth2RedirectTo -func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { +func (a *OAuth2APIService) RejectOAuth2ConsentRequestExecute(r OAuth2APIRejectOAuth2ConsentRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3016,7 +3052,7 @@ func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOA localVarReturnValue *OAuth2RedirectTo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.RejectOAuth2ConsentRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.RejectOAuth2ConsentRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3030,7 +3066,7 @@ func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOA return localVarReturnValue, nil, reportError("consentChallenge is required and must be specified") } - localVarQueryParams.Add("consent_challenge", parameterToString(*r.consentChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "consent_challenge", r.consentChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -3060,9 +3096,9 @@ func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOA return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -3078,7 +3114,8 @@ func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOA newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3094,25 +3131,25 @@ func (a *OAuth2ApiService) RejectOAuth2ConsentRequestExecute(r OAuth2ApiRejectOA return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiRejectOAuth2LoginRequestRequest struct { +type OAuth2APIRejectOAuth2LoginRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API loginChallenge *string rejectOAuth2Request *RejectOAuth2Request } // OAuth 2.0 Login Request Challenge -func (r OAuth2ApiRejectOAuth2LoginRequestRequest) LoginChallenge(loginChallenge string) OAuth2ApiRejectOAuth2LoginRequestRequest { +func (r OAuth2APIRejectOAuth2LoginRequestRequest) LoginChallenge(loginChallenge string) OAuth2APIRejectOAuth2LoginRequestRequest { r.loginChallenge = &loginChallenge return r } -func (r OAuth2ApiRejectOAuth2LoginRequestRequest) RejectOAuth2Request(rejectOAuth2Request RejectOAuth2Request) OAuth2ApiRejectOAuth2LoginRequestRequest { +func (r OAuth2APIRejectOAuth2LoginRequestRequest) RejectOAuth2Request(rejectOAuth2Request RejectOAuth2Request) OAuth2APIRejectOAuth2LoginRequestRequest { r.rejectOAuth2Request = &rejectOAuth2Request return r } -func (r OAuth2ApiRejectOAuth2LoginRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { +func (r OAuth2APIRejectOAuth2LoginRequestRequest) Execute() (*OAuth2RedirectTo, *http.Response, error) { return r.ApiService.RejectOAuth2LoginRequestExecute(r) } @@ -3131,10 +3168,10 @@ was denied. The response contains a redirect URL which the login provider should redirect the user-agent to. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRejectOAuth2LoginRequestRequest + @return OAuth2APIRejectOAuth2LoginRequestRequest */ -func (a *OAuth2ApiService) RejectOAuth2LoginRequest(ctx context.Context) OAuth2ApiRejectOAuth2LoginRequestRequest { - return OAuth2ApiRejectOAuth2LoginRequestRequest{ +func (a *OAuth2APIService) RejectOAuth2LoginRequest(ctx context.Context) OAuth2APIRejectOAuth2LoginRequestRequest { + return OAuth2APIRejectOAuth2LoginRequestRequest{ ApiService: a, ctx: ctx, } @@ -3142,7 +3179,7 @@ func (a *OAuth2ApiService) RejectOAuth2LoginRequest(ctx context.Context) OAuth2A // Execute executes the request // @return OAuth2RedirectTo -func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { +func (a *OAuth2APIService) RejectOAuth2LoginRequestExecute(r OAuth2APIRejectOAuth2LoginRequestRequest) (*OAuth2RedirectTo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3150,7 +3187,7 @@ func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAut localVarReturnValue *OAuth2RedirectTo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.RejectOAuth2LoginRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.RejectOAuth2LoginRequest") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -3164,7 +3201,7 @@ func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAut return localVarReturnValue, nil, reportError("loginChallenge is required and must be specified") } - localVarQueryParams.Add("login_challenge", parameterToString(*r.loginChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "login_challenge", r.loginChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{"application/json"} @@ -3194,9 +3231,9 @@ func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAut return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -3212,7 +3249,8 @@ func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAut newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3228,18 +3266,18 @@ func (a *OAuth2ApiService) RejectOAuth2LoginRequestExecute(r OAuth2ApiRejectOAut return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiRejectOAuth2LogoutRequestRequest struct { +type OAuth2APIRejectOAuth2LogoutRequestRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API logoutChallenge *string } -func (r OAuth2ApiRejectOAuth2LogoutRequestRequest) LogoutChallenge(logoutChallenge string) OAuth2ApiRejectOAuth2LogoutRequestRequest { +func (r OAuth2APIRejectOAuth2LogoutRequestRequest) LogoutChallenge(logoutChallenge string) OAuth2APIRejectOAuth2LogoutRequestRequest { r.logoutChallenge = &logoutChallenge return r } -func (r OAuth2ApiRejectOAuth2LogoutRequestRequest) Execute() (*http.Response, error) { +func (r OAuth2APIRejectOAuth2LogoutRequestRequest) Execute() (*http.Response, error) { return r.ApiService.RejectOAuth2LogoutRequestExecute(r) } @@ -3252,24 +3290,24 @@ No HTTP request body is required. The response is empty as the logout provider has to chose what action to perform next. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRejectOAuth2LogoutRequestRequest + @return OAuth2APIRejectOAuth2LogoutRequestRequest */ -func (a *OAuth2ApiService) RejectOAuth2LogoutRequest(ctx context.Context) OAuth2ApiRejectOAuth2LogoutRequestRequest { - return OAuth2ApiRejectOAuth2LogoutRequestRequest{ +func (a *OAuth2APIService) RejectOAuth2LogoutRequest(ctx context.Context) OAuth2APIRejectOAuth2LogoutRequestRequest { + return OAuth2APIRejectOAuth2LogoutRequestRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r OAuth2ApiRejectOAuth2LogoutRequestRequest) (*http.Response, error) { +func (a *OAuth2APIService) RejectOAuth2LogoutRequestExecute(r OAuth2APIRejectOAuth2LogoutRequestRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.RejectOAuth2LogoutRequest") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.RejectOAuth2LogoutRequest") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3283,7 +3321,7 @@ func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r OAuth2ApiRejectOAu return nil, reportError("logoutChallenge is required and must be specified") } - localVarQueryParams.Add("logout_challenge", parameterToString(*r.logoutChallenge, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "logout_challenge", r.logoutChallenge, "") // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3311,9 +3349,9 @@ func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r OAuth2ApiRejectOAu return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -3329,40 +3367,41 @@ func (a *OAuth2ApiService) RejectOAuth2LogoutRequestExecute(r OAuth2ApiRejectOAu newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiRevokeOAuth2ConsentSessionsRequest struct { +type OAuth2APIRevokeOAuth2ConsentSessionsRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API subject *string client *string all *bool } // OAuth 2.0 Consent Subject The subject whose consent sessions should be deleted. -func (r OAuth2ApiRevokeOAuth2ConsentSessionsRequest) Subject(subject string) OAuth2ApiRevokeOAuth2ConsentSessionsRequest { +func (r OAuth2APIRevokeOAuth2ConsentSessionsRequest) Subject(subject string) OAuth2APIRevokeOAuth2ConsentSessionsRequest { r.subject = &subject return r } // OAuth 2.0 Client ID If set, deletes only those consent sessions that have been granted to the specified OAuth 2.0 Client ID. -func (r OAuth2ApiRevokeOAuth2ConsentSessionsRequest) Client(client string) OAuth2ApiRevokeOAuth2ConsentSessionsRequest { +func (r OAuth2APIRevokeOAuth2ConsentSessionsRequest) Client(client string) OAuth2APIRevokeOAuth2ConsentSessionsRequest { r.client = &client return r } // Revoke All Consent Sessions If set to `true` deletes all consent sessions by the Subject that have been granted. -func (r OAuth2ApiRevokeOAuth2ConsentSessionsRequest) All(all bool) OAuth2ApiRevokeOAuth2ConsentSessionsRequest { +func (r OAuth2APIRevokeOAuth2ConsentSessionsRequest) All(all bool) OAuth2APIRevokeOAuth2ConsentSessionsRequest { r.all = &all return r } -func (r OAuth2ApiRevokeOAuth2ConsentSessionsRequest) Execute() (*http.Response, error) { +func (r OAuth2APIRevokeOAuth2ConsentSessionsRequest) Execute() (*http.Response, error) { return r.ApiService.RevokeOAuth2ConsentSessionsExecute(r) } @@ -3373,24 +3412,24 @@ This endpoint revokes a subject's granted consent sessions and invalidates all associated OAuth 2.0 Access Tokens. You may also only revoke sessions for a specific OAuth 2.0 Client ID. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRevokeOAuth2ConsentSessionsRequest + @return OAuth2APIRevokeOAuth2ConsentSessionsRequest */ -func (a *OAuth2ApiService) RevokeOAuth2ConsentSessions(ctx context.Context) OAuth2ApiRevokeOAuth2ConsentSessionsRequest { - return OAuth2ApiRevokeOAuth2ConsentSessionsRequest{ +func (a *OAuth2APIService) RevokeOAuth2ConsentSessions(ctx context.Context) OAuth2APIRevokeOAuth2ConsentSessionsRequest { + return OAuth2APIRevokeOAuth2ConsentSessionsRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *OAuth2ApiService) RevokeOAuth2ConsentSessionsExecute(r OAuth2ApiRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) { +func (a *OAuth2APIService) RevokeOAuth2ConsentSessionsExecute(r OAuth2APIRevokeOAuth2ConsentSessionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.RevokeOAuth2ConsentSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.RevokeOAuth2ConsentSessions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3404,12 +3443,12 @@ func (a *OAuth2ApiService) RevokeOAuth2ConsentSessionsExecute(r OAuth2ApiRevokeO return nil, reportError("subject is required and must be specified") } - localVarQueryParams.Add("subject", parameterToString(*r.subject, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "subject", r.subject, "") if r.client != nil { - localVarQueryParams.Add("client", parameterToString(*r.client, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "client", r.client, "") } if r.all != nil { - localVarQueryParams.Add("all", parameterToString(*r.all, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "all", r.all, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3438,9 +3477,9 @@ func (a *OAuth2ApiService) RevokeOAuth2ConsentSessionsExecute(r OAuth2ApiRevokeO return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -3456,33 +3495,34 @@ func (a *OAuth2ApiService) RevokeOAuth2ConsentSessionsExecute(r OAuth2ApiRevokeO newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiRevokeOAuth2LoginSessionsRequest struct { +type OAuth2APIRevokeOAuth2LoginSessionsRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API subject *string sid *string } // OAuth 2.0 Subject The subject to revoke authentication sessions for. -func (r OAuth2ApiRevokeOAuth2LoginSessionsRequest) Subject(subject string) OAuth2ApiRevokeOAuth2LoginSessionsRequest { +func (r OAuth2APIRevokeOAuth2LoginSessionsRequest) Subject(subject string) OAuth2APIRevokeOAuth2LoginSessionsRequest { r.subject = &subject return r } // OAuth 2.0 Subject The subject to revoke authentication sessions for. -func (r OAuth2ApiRevokeOAuth2LoginSessionsRequest) Sid(sid string) OAuth2ApiRevokeOAuth2LoginSessionsRequest { +func (r OAuth2APIRevokeOAuth2LoginSessionsRequest) Sid(sid string) OAuth2APIRevokeOAuth2LoginSessionsRequest { r.sid = &sid return r } -func (r OAuth2ApiRevokeOAuth2LoginSessionsRequest) Execute() (*http.Response, error) { +func (r OAuth2APIRevokeOAuth2LoginSessionsRequest) Execute() (*http.Response, error) { return r.ApiService.RevokeOAuth2LoginSessionsExecute(r) } @@ -3493,30 +3533,30 @@ This endpoint invalidates authentication sessions. After revoking the authentica has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. -No OpennID Connect Front- or Back-channel logout is performed in this case. +No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRevokeOAuth2LoginSessionsRequest + @return OAuth2APIRevokeOAuth2LoginSessionsRequest */ -func (a *OAuth2ApiService) RevokeOAuth2LoginSessions(ctx context.Context) OAuth2ApiRevokeOAuth2LoginSessionsRequest { - return OAuth2ApiRevokeOAuth2LoginSessionsRequest{ +func (a *OAuth2APIService) RevokeOAuth2LoginSessions(ctx context.Context) OAuth2APIRevokeOAuth2LoginSessionsRequest { + return OAuth2APIRevokeOAuth2LoginSessionsRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *OAuth2ApiService) RevokeOAuth2LoginSessionsExecute(r OAuth2ApiRevokeOAuth2LoginSessionsRequest) (*http.Response, error) { +func (a *OAuth2APIService) RevokeOAuth2LoginSessionsExecute(r OAuth2APIRevokeOAuth2LoginSessionsRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.RevokeOAuth2LoginSessions") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.RevokeOAuth2LoginSessions") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3528,10 +3568,10 @@ func (a *OAuth2ApiService) RevokeOAuth2LoginSessionsExecute(r OAuth2ApiRevokeOAu localVarFormParams := url.Values{} if r.subject != nil { - localVarQueryParams.Add("subject", parameterToString(*r.subject, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "subject", r.subject, "") } if r.sid != nil { - localVarQueryParams.Add("sid", parameterToString(*r.sid, "")) + parameterAddToHeaderOrQuery(localVarQueryParams, "sid", r.sid, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -3560,9 +3600,9 @@ func (a *OAuth2ApiService) RevokeOAuth2LoginSessionsExecute(r OAuth2ApiRevokeOAu return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -3578,37 +3618,38 @@ func (a *OAuth2ApiService) RevokeOAuth2LoginSessionsExecute(r OAuth2ApiRevokeOAu newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiRevokeOAuth2TokenRequest struct { +type OAuth2APIRevokeOAuth2TokenRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API token *string clientId *string clientSecret *string } -func (r OAuth2ApiRevokeOAuth2TokenRequest) Token(token string) OAuth2ApiRevokeOAuth2TokenRequest { +func (r OAuth2APIRevokeOAuth2TokenRequest) Token(token string) OAuth2APIRevokeOAuth2TokenRequest { r.token = &token return r } -func (r OAuth2ApiRevokeOAuth2TokenRequest) ClientId(clientId string) OAuth2ApiRevokeOAuth2TokenRequest { +func (r OAuth2APIRevokeOAuth2TokenRequest) ClientId(clientId string) OAuth2APIRevokeOAuth2TokenRequest { r.clientId = &clientId return r } -func (r OAuth2ApiRevokeOAuth2TokenRequest) ClientSecret(clientSecret string) OAuth2ApiRevokeOAuth2TokenRequest { +func (r OAuth2APIRevokeOAuth2TokenRequest) ClientSecret(clientSecret string) OAuth2APIRevokeOAuth2TokenRequest { r.clientSecret = &clientSecret return r } -func (r OAuth2ApiRevokeOAuth2TokenRequest) Execute() (*http.Response, error) { +func (r OAuth2APIRevokeOAuth2TokenRequest) Execute() (*http.Response, error) { return r.ApiService.RevokeOAuth2TokenExecute(r) } @@ -3621,24 +3662,24 @@ Revoking a refresh token also invalidates the access token that was created with the client the token was generated for. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiRevokeOAuth2TokenRequest + @return OAuth2APIRevokeOAuth2TokenRequest */ -func (a *OAuth2ApiService) RevokeOAuth2Token(ctx context.Context) OAuth2ApiRevokeOAuth2TokenRequest { - return OAuth2ApiRevokeOAuth2TokenRequest{ +func (a *OAuth2APIService) RevokeOAuth2Token(ctx context.Context) OAuth2APIRevokeOAuth2TokenRequest { + return OAuth2APIRevokeOAuth2TokenRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *OAuth2ApiService) RevokeOAuth2TokenExecute(r OAuth2ApiRevokeOAuth2TokenRequest) (*http.Response, error) { +func (a *OAuth2APIService) RevokeOAuth2TokenExecute(r OAuth2APIRevokeOAuth2TokenRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.RevokeOAuth2Token") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.RevokeOAuth2Token") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -3670,12 +3711,12 @@ func (a *OAuth2ApiService) RevokeOAuth2TokenExecute(r OAuth2ApiRevokeOAuth2Token localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } if r.clientId != nil { - localVarFormParams.Add("client_id", parameterToString(*r.clientId, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "client_id", r.clientId, "") } if r.clientSecret != nil { - localVarFormParams.Add("client_secret", parameterToString(*r.clientSecret, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "client_secret", r.clientSecret, "") } - localVarFormParams.Add("token", parameterToString(*r.token, "")) + parameterAddToHeaderOrQuery(localVarFormParams, "token", r.token, "") req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { return nil, err @@ -3686,9 +3727,9 @@ func (a *OAuth2ApiService) RevokeOAuth2TokenExecute(r OAuth2ApiRevokeOAuth2Token return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -3704,27 +3745,28 @@ func (a *OAuth2ApiService) RevokeOAuth2TokenExecute(r OAuth2ApiRevokeOAuth2Token newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OAuth2ApiSetOAuth2ClientRequest struct { +type OAuth2APISetOAuth2ClientRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string oAuth2Client *OAuth2Client } // OAuth 2.0 Client Request Body -func (r OAuth2ApiSetOAuth2ClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OAuth2ApiSetOAuth2ClientRequest { +func (r OAuth2APISetOAuth2ClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OAuth2APISetOAuth2ClientRequest { r.oAuth2Client = &oAuth2Client return r } -func (r OAuth2ApiSetOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OAuth2APISetOAuth2ClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.SetOAuth2ClientExecute(r) } @@ -3741,10 +3783,10 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id OAuth 2.0 Client ID - @return OAuth2ApiSetOAuth2ClientRequest + @return OAuth2APISetOAuth2ClientRequest */ -func (a *OAuth2ApiService) SetOAuth2Client(ctx context.Context, id string) OAuth2ApiSetOAuth2ClientRequest { - return OAuth2ApiSetOAuth2ClientRequest{ +func (a *OAuth2APIService) SetOAuth2Client(ctx context.Context, id string) OAuth2APISetOAuth2ClientRequest { + return OAuth2APISetOAuth2ClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -3753,7 +3795,7 @@ func (a *OAuth2ApiService) SetOAuth2Client(ctx context.Context, id string) OAuth // Execute executes the request // @return OAuth2Client -func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OAuth2APIService) SetOAuth2ClientExecute(r OAuth2APISetOAuth2ClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3761,13 +3803,13 @@ func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequ localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.SetOAuth2Client") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.SetOAuth2Client") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/clients/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3805,9 +3847,9 @@ func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequ return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -3824,7 +3866,8 @@ func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } if localVarHTTPResponse.StatusCode == 404 { @@ -3834,7 +3877,8 @@ func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -3843,7 +3887,8 @@ func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3859,19 +3904,19 @@ func (a *OAuth2ApiService) SetOAuth2ClientExecute(r OAuth2ApiSetOAuth2ClientRequ return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiSetOAuth2ClientLifespansRequest struct { +type OAuth2APISetOAuth2ClientLifespansRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API id string oAuth2ClientTokenLifespans *OAuth2ClientTokenLifespans } -func (r OAuth2ApiSetOAuth2ClientLifespansRequest) OAuth2ClientTokenLifespans(oAuth2ClientTokenLifespans OAuth2ClientTokenLifespans) OAuth2ApiSetOAuth2ClientLifespansRequest { +func (r OAuth2APISetOAuth2ClientLifespansRequest) OAuth2ClientTokenLifespans(oAuth2ClientTokenLifespans OAuth2ClientTokenLifespans) OAuth2APISetOAuth2ClientLifespansRequest { r.oAuth2ClientTokenLifespans = &oAuth2ClientTokenLifespans return r } -func (r OAuth2ApiSetOAuth2ClientLifespansRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OAuth2APISetOAuth2ClientLifespansRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.SetOAuth2ClientLifespansExecute(r) } @@ -3882,10 +3927,10 @@ Set lifespans of different token types issued for this OAuth 2.0 client. Does no @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id OAuth 2.0 Client ID - @return OAuth2ApiSetOAuth2ClientLifespansRequest + @return OAuth2APISetOAuth2ClientLifespansRequest */ -func (a *OAuth2ApiService) SetOAuth2ClientLifespans(ctx context.Context, id string) OAuth2ApiSetOAuth2ClientLifespansRequest { - return OAuth2ApiSetOAuth2ClientLifespansRequest{ +func (a *OAuth2APIService) SetOAuth2ClientLifespans(ctx context.Context, id string) OAuth2APISetOAuth2ClientLifespansRequest { + return OAuth2APISetOAuth2ClientLifespansRequest{ ApiService: a, ctx: ctx, id: id, @@ -3894,7 +3939,7 @@ func (a *OAuth2ApiService) SetOAuth2ClientLifespans(ctx context.Context, id stri // Execute executes the request // @return OAuth2Client -func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r OAuth2ApiSetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) { +func (a *OAuth2APIService) SetOAuth2ClientLifespansExecute(r OAuth2APISetOAuth2ClientLifespansRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -3902,13 +3947,13 @@ func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r OAuth2ApiSetOAuth2C localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.SetOAuth2ClientLifespans") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.SetOAuth2ClientLifespans") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/admin/clients/{id}/lifespans" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -3943,9 +3988,9 @@ func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r OAuth2ApiSetOAuth2C return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -3961,7 +4006,8 @@ func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r OAuth2ApiSetOAuth2C newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -3977,18 +4023,18 @@ func (a *OAuth2ApiService) SetOAuth2ClientLifespansExecute(r OAuth2ApiSetOAuth2C return localVarReturnValue, localVarHTTPResponse, nil } -type OAuth2ApiTrustOAuth2JwtGrantIssuerRequest struct { +type OAuth2APITrustOAuth2JwtGrantIssuerRequest struct { ctx context.Context - ApiService OAuth2Api + ApiService OAuth2API trustOAuth2JwtGrantIssuer *TrustOAuth2JwtGrantIssuer } -func (r OAuth2ApiTrustOAuth2JwtGrantIssuerRequest) TrustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer TrustOAuth2JwtGrantIssuer) OAuth2ApiTrustOAuth2JwtGrantIssuerRequest { +func (r OAuth2APITrustOAuth2JwtGrantIssuerRequest) TrustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer TrustOAuth2JwtGrantIssuer) OAuth2APITrustOAuth2JwtGrantIssuerRequest { r.trustOAuth2JwtGrantIssuer = &trustOAuth2JwtGrantIssuer return r } -func (r OAuth2ApiTrustOAuth2JwtGrantIssuerRequest) Execute() (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { +func (r OAuth2APITrustOAuth2JwtGrantIssuerRequest) Execute() (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { return r.ApiService.TrustOAuth2JwtGrantIssuerExecute(r) } @@ -4000,10 +4046,10 @@ to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OAuth2ApiTrustOAuth2JwtGrantIssuerRequest + @return OAuth2APITrustOAuth2JwtGrantIssuerRequest */ -func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuer(ctx context.Context) OAuth2ApiTrustOAuth2JwtGrantIssuerRequest { - return OAuth2ApiTrustOAuth2JwtGrantIssuerRequest{ +func (a *OAuth2APIService) TrustOAuth2JwtGrantIssuer(ctx context.Context) OAuth2APITrustOAuth2JwtGrantIssuerRequest { + return OAuth2APITrustOAuth2JwtGrantIssuerRequest{ ApiService: a, ctx: ctx, } @@ -4011,7 +4057,7 @@ func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuer(ctx context.Context) OAuth2 // Execute executes the request // @return TrustedOAuth2JwtGrantIssuer -func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuerExecute(r OAuth2ApiTrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { +func (a *OAuth2APIService) TrustOAuth2JwtGrantIssuerExecute(r OAuth2APITrustOAuth2JwtGrantIssuerRequest) (*TrustedOAuth2JwtGrantIssuer, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -4019,7 +4065,7 @@ func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuerExecute(r OAuth2ApiTrustOAut localVarReturnValue *TrustedOAuth2JwtGrantIssuer ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2ApiService.TrustOAuth2JwtGrantIssuer") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OAuth2APIService.TrustOAuth2JwtGrantIssuer") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -4059,9 +4105,9 @@ func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuerExecute(r OAuth2ApiTrustOAut return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -4077,7 +4123,8 @@ func (a *OAuth2ApiService) TrustOAuth2JwtGrantIssuerExecute(r OAuth2ApiTrustOAut newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/clients/hydra/go/api_oidc.go b/clients/hydra/go/api_oidc.go index 40fb0b4160d..4bcf234482e 100644 --- a/clients/hydra/go/api_oidc.go +++ b/clients/hydra/go/api_oidc.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -14,14 +14,14 @@ package client import ( "bytes" "context" - "io/ioutil" + "io" "net/http" "net/url" "strings" ) -type OidcApi interface { +type OidcAPI interface { /* CreateOidcDynamicClient Register OAuth2 Client using OpenID Dynamic Client Registration @@ -39,13 +39,13 @@ The `client_secret` will be returned in the response and you will not be able to Write the secret down and keep it somewhere safe. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiCreateOidcDynamicClientRequest + @return OidcAPICreateOidcDynamicClientRequest */ - CreateOidcDynamicClient(ctx context.Context) OidcApiCreateOidcDynamicClientRequest + CreateOidcDynamicClient(ctx context.Context) OidcAPICreateOidcDynamicClientRequest // CreateOidcDynamicClientExecute executes the request // @return OAuth2Client - CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) + CreateOidcDynamicClientExecute(r OidcAPICreateOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) /* CreateVerifiableCredential Issues a Verifiable Credential @@ -58,13 +58,13 @@ More information can be found at https://openid.net/specs/openid-connect-userinfo-vc-1_0.html. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiCreateVerifiableCredentialRequest + @return OidcAPICreateVerifiableCredentialRequest */ - CreateVerifiableCredential(ctx context.Context) OidcApiCreateVerifiableCredentialRequest + CreateVerifiableCredential(ctx context.Context) OidcAPICreateVerifiableCredentialRequest // CreateVerifiableCredentialExecute executes the request // @return VerifiableCredentialResponse - CreateVerifiableCredentialExecute(r OidcApiCreateVerifiableCredentialRequest) (*VerifiableCredentialResponse, *http.Response, error) + CreateVerifiableCredentialExecute(r OidcAPICreateVerifiableCredentialRequest) (*VerifiableCredentialResponse, *http.Response, error) /* DeleteOidcDynamicClient Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol @@ -83,12 +83,12 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OidcApiDeleteOidcDynamicClientRequest + @return OidcAPIDeleteOidcDynamicClientRequest */ - DeleteOidcDynamicClient(ctx context.Context, id string) OidcApiDeleteOidcDynamicClientRequest + DeleteOidcDynamicClient(ctx context.Context, id string) OidcAPIDeleteOidcDynamicClientRequest // DeleteOidcDynamicClientExecute executes the request - DeleteOidcDynamicClientExecute(r OidcApiDeleteOidcDynamicClientRequest) (*http.Response, error) + DeleteOidcDynamicClientExecute(r OidcAPIDeleteOidcDynamicClientRequest) (*http.Response, error) /* DiscoverOidcConfiguration OpenID Connect Discovery @@ -99,13 +99,13 @@ Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript) For a full list of clients go here: https://openid.net/developers/certified/ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiDiscoverOidcConfigurationRequest + @return OidcAPIDiscoverOidcConfigurationRequest */ - DiscoverOidcConfiguration(ctx context.Context) OidcApiDiscoverOidcConfigurationRequest + DiscoverOidcConfiguration(ctx context.Context) OidcAPIDiscoverOidcConfigurationRequest // DiscoverOidcConfigurationExecute executes the request // @return OidcConfiguration - DiscoverOidcConfigurationExecute(r OidcApiDiscoverOidcConfigurationRequest) (*OidcConfiguration, *http.Response, error) + DiscoverOidcConfigurationExecute(r OidcAPIDiscoverOidcConfigurationRequest) (*OidcConfiguration, *http.Response, error) /* GetOidcDynamicClient Get OAuth2 Client using OpenID Dynamic Client Registration @@ -120,13 +120,13 @@ If it uses `client_secret_basic`, present the Client ID and the Client Secret in @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OidcApiGetOidcDynamicClientRequest + @return OidcAPIGetOidcDynamicClientRequest */ - GetOidcDynamicClient(ctx context.Context, id string) OidcApiGetOidcDynamicClientRequest + GetOidcDynamicClient(ctx context.Context, id string) OidcAPIGetOidcDynamicClientRequest // GetOidcDynamicClientExecute executes the request // @return OAuth2Client - GetOidcDynamicClientExecute(r OidcApiGetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) + GetOidcDynamicClientExecute(r OidcAPIGetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) /* GetOidcUserInfo OpenID Connect Userinfo @@ -139,13 +139,13 @@ with more information about the error. See [the spec](https://datatracker.ietf.o for more details about header format. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiGetOidcUserInfoRequest + @return OidcAPIGetOidcUserInfoRequest */ - GetOidcUserInfo(ctx context.Context) OidcApiGetOidcUserInfoRequest + GetOidcUserInfo(ctx context.Context) OidcAPIGetOidcUserInfoRequest // GetOidcUserInfoExecute executes the request // @return OidcUserInfo - GetOidcUserInfoExecute(r OidcApiGetOidcUserInfoRequest) (*OidcUserInfo, *http.Response, error) + GetOidcUserInfoExecute(r OidcAPIGetOidcUserInfoRequest) (*OidcUserInfo, *http.Response, error) /* RevokeOidcSession OpenID Connect Front- and Back-channel Enabled Logout @@ -158,12 +158,12 @@ https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiRevokeOidcSessionRequest + @return OidcAPIRevokeOidcSessionRequest */ - RevokeOidcSession(ctx context.Context) OidcApiRevokeOidcSessionRequest + RevokeOidcSession(ctx context.Context) OidcAPIRevokeOidcSessionRequest // RevokeOidcSessionExecute executes the request - RevokeOidcSessionExecute(r OidcApiRevokeOidcSessionRequest) (*http.Response, error) + RevokeOidcSessionExecute(r OidcAPIRevokeOidcSessionRequest) (*http.Response, error) /* SetOidcDynamicClient Set OAuth2 Client using OpenID Dynamic Client Registration @@ -186,31 +186,31 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id OAuth 2.0 Client ID - @return OidcApiSetOidcDynamicClientRequest + @return OidcAPISetOidcDynamicClientRequest */ - SetOidcDynamicClient(ctx context.Context, id string) OidcApiSetOidcDynamicClientRequest + SetOidcDynamicClient(ctx context.Context, id string) OidcAPISetOidcDynamicClientRequest // SetOidcDynamicClientExecute executes the request // @return OAuth2Client - SetOidcDynamicClientExecute(r OidcApiSetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) + SetOidcDynamicClientExecute(r OidcAPISetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) } -// OidcApiService OidcApi service -type OidcApiService service +// OidcAPIService OidcAPI service +type OidcAPIService service -type OidcApiCreateOidcDynamicClientRequest struct { +type OidcAPICreateOidcDynamicClientRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI oAuth2Client *OAuth2Client } // Dynamic Client Registration Request Body -func (r OidcApiCreateOidcDynamicClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OidcApiCreateOidcDynamicClientRequest { +func (r OidcAPICreateOidcDynamicClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OidcAPICreateOidcDynamicClientRequest { r.oAuth2Client = &oAuth2Client return r } -func (r OidcApiCreateOidcDynamicClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OidcAPICreateOidcDynamicClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.CreateOidcDynamicClientExecute(r) } @@ -230,10 +230,10 @@ The `client_secret` will be returned in the response and you will not be able to Write the secret down and keep it somewhere safe. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiCreateOidcDynamicClientRequest + @return OidcAPICreateOidcDynamicClientRequest */ -func (a *OidcApiService) CreateOidcDynamicClient(ctx context.Context) OidcApiCreateOidcDynamicClientRequest { - return OidcApiCreateOidcDynamicClientRequest{ +func (a *OidcAPIService) CreateOidcDynamicClient(ctx context.Context) OidcAPICreateOidcDynamicClientRequest { + return OidcAPICreateOidcDynamicClientRequest{ ApiService: a, ctx: ctx, } @@ -241,7 +241,7 @@ func (a *OidcApiService) CreateOidcDynamicClient(ctx context.Context) OidcApiCre // Execute executes the request // @return OAuth2Client -func (a *OidcApiService) CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OidcAPIService) CreateOidcDynamicClientExecute(r OidcAPICreateOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -249,7 +249,7 @@ func (a *OidcApiService) CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynam localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.CreateOidcDynamicClient") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.CreateOidcDynamicClient") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -292,9 +292,9 @@ func (a *OidcApiService) CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynam return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -311,7 +311,8 @@ func (a *OidcApiService) CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynam newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -320,7 +321,8 @@ func (a *OidcApiService) CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynam newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -336,18 +338,18 @@ func (a *OidcApiService) CreateOidcDynamicClientExecute(r OidcApiCreateOidcDynam return localVarReturnValue, localVarHTTPResponse, nil } -type OidcApiCreateVerifiableCredentialRequest struct { +type OidcAPICreateVerifiableCredentialRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI createVerifiableCredentialRequestBody *CreateVerifiableCredentialRequestBody } -func (r OidcApiCreateVerifiableCredentialRequest) CreateVerifiableCredentialRequestBody(createVerifiableCredentialRequestBody CreateVerifiableCredentialRequestBody) OidcApiCreateVerifiableCredentialRequest { +func (r OidcAPICreateVerifiableCredentialRequest) CreateVerifiableCredentialRequestBody(createVerifiableCredentialRequestBody CreateVerifiableCredentialRequestBody) OidcAPICreateVerifiableCredentialRequest { r.createVerifiableCredentialRequestBody = &createVerifiableCredentialRequestBody return r } -func (r OidcApiCreateVerifiableCredentialRequest) Execute() (*VerifiableCredentialResponse, *http.Response, error) { +func (r OidcAPICreateVerifiableCredentialRequest) Execute() (*VerifiableCredentialResponse, *http.Response, error) { return r.ApiService.CreateVerifiableCredentialExecute(r) } @@ -362,10 +364,10 @@ More information can be found at https://openid.net/specs/openid-connect-userinfo-vc-1_0.html. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiCreateVerifiableCredentialRequest + @return OidcAPICreateVerifiableCredentialRequest */ -func (a *OidcApiService) CreateVerifiableCredential(ctx context.Context) OidcApiCreateVerifiableCredentialRequest { - return OidcApiCreateVerifiableCredentialRequest{ +func (a *OidcAPIService) CreateVerifiableCredential(ctx context.Context) OidcAPICreateVerifiableCredentialRequest { + return OidcAPICreateVerifiableCredentialRequest{ ApiService: a, ctx: ctx, } @@ -373,7 +375,7 @@ func (a *OidcApiService) CreateVerifiableCredential(ctx context.Context) OidcApi // Execute executes the request // @return VerifiableCredentialResponse -func (a *OidcApiService) CreateVerifiableCredentialExecute(r OidcApiCreateVerifiableCredentialRequest) (*VerifiableCredentialResponse, *http.Response, error) { +func (a *OidcAPIService) CreateVerifiableCredentialExecute(r OidcAPICreateVerifiableCredentialRequest) (*VerifiableCredentialResponse, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} @@ -381,7 +383,7 @@ func (a *OidcApiService) CreateVerifiableCredentialExecute(r OidcApiCreateVerifi localVarReturnValue *VerifiableCredentialResponse ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.CreateVerifiableCredential") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.CreateVerifiableCredential") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -421,9 +423,9 @@ func (a *OidcApiService) CreateVerifiableCredentialExecute(r OidcApiCreateVerifi return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -440,7 +442,8 @@ func (a *OidcApiService) CreateVerifiableCredentialExecute(r OidcApiCreateVerifi newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -449,7 +452,8 @@ func (a *OidcApiService) CreateVerifiableCredentialExecute(r OidcApiCreateVerifi newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -465,13 +469,13 @@ func (a *OidcApiService) CreateVerifiableCredentialExecute(r OidcApiCreateVerifi return localVarReturnValue, localVarHTTPResponse, nil } -type OidcApiDeleteOidcDynamicClientRequest struct { +type OidcAPIDeleteOidcDynamicClientRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI id string } -func (r OidcApiDeleteOidcDynamicClientRequest) Execute() (*http.Response, error) { +func (r OidcAPIDeleteOidcDynamicClientRequest) Execute() (*http.Response, error) { return r.ApiService.DeleteOidcDynamicClientExecute(r) } @@ -492,10 +496,10 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OidcApiDeleteOidcDynamicClientRequest + @return OidcAPIDeleteOidcDynamicClientRequest */ -func (a *OidcApiService) DeleteOidcDynamicClient(ctx context.Context, id string) OidcApiDeleteOidcDynamicClientRequest { - return OidcApiDeleteOidcDynamicClientRequest{ +func (a *OidcAPIService) DeleteOidcDynamicClient(ctx context.Context, id string) OidcAPIDeleteOidcDynamicClientRequest { + return OidcAPIDeleteOidcDynamicClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -503,20 +507,20 @@ func (a *OidcApiService) DeleteOidcDynamicClient(ctx context.Context, id string) } // Execute executes the request -func (a *OidcApiService) DeleteOidcDynamicClientExecute(r OidcApiDeleteOidcDynamicClientRequest) (*http.Response, error) { +func (a *OidcAPIService) DeleteOidcDynamicClientExecute(r OidcAPIDeleteOidcDynamicClientRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.DeleteOidcDynamicClient") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.DeleteOidcDynamicClient") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/oauth2/register/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -549,9 +553,9 @@ func (a *OidcApiService) DeleteOidcDynamicClientExecute(r OidcApiDeleteOidcDynam return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -567,19 +571,20 @@ func (a *OidcApiService) DeleteOidcDynamicClientExecute(r OidcApiDeleteOidcDynam newErr.error = err.Error() return localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarHTTPResponse, newErr } return localVarHTTPResponse, nil } -type OidcApiDiscoverOidcConfigurationRequest struct { +type OidcAPIDiscoverOidcConfigurationRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI } -func (r OidcApiDiscoverOidcConfigurationRequest) Execute() (*OidcConfiguration, *http.Response, error) { +func (r OidcAPIDiscoverOidcConfigurationRequest) Execute() (*OidcConfiguration, *http.Response, error) { return r.ApiService.DiscoverOidcConfigurationExecute(r) } @@ -592,10 +597,10 @@ Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript) For a full list of clients go here: https://openid.net/developers/certified/ @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiDiscoverOidcConfigurationRequest + @return OidcAPIDiscoverOidcConfigurationRequest */ -func (a *OidcApiService) DiscoverOidcConfiguration(ctx context.Context) OidcApiDiscoverOidcConfigurationRequest { - return OidcApiDiscoverOidcConfigurationRequest{ +func (a *OidcAPIService) DiscoverOidcConfiguration(ctx context.Context) OidcAPIDiscoverOidcConfigurationRequest { + return OidcAPIDiscoverOidcConfigurationRequest{ ApiService: a, ctx: ctx, } @@ -603,7 +608,7 @@ func (a *OidcApiService) DiscoverOidcConfiguration(ctx context.Context) OidcApiD // Execute executes the request // @return OidcConfiguration -func (a *OidcApiService) DiscoverOidcConfigurationExecute(r OidcApiDiscoverOidcConfigurationRequest) (*OidcConfiguration, *http.Response, error) { +func (a *OidcAPIService) DiscoverOidcConfigurationExecute(r OidcAPIDiscoverOidcConfigurationRequest) (*OidcConfiguration, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -611,7 +616,7 @@ func (a *OidcApiService) DiscoverOidcConfigurationExecute(r OidcApiDiscoverOidcC localVarReturnValue *OidcConfiguration ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.DiscoverOidcConfiguration") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.DiscoverOidcConfiguration") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -649,9 +654,9 @@ func (a *OidcApiService) DiscoverOidcConfigurationExecute(r OidcApiDiscoverOidcC return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -667,7 +672,8 @@ func (a *OidcApiService) DiscoverOidcConfigurationExecute(r OidcApiDiscoverOidcC newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -683,13 +689,13 @@ func (a *OidcApiService) DiscoverOidcConfigurationExecute(r OidcApiDiscoverOidcC return localVarReturnValue, localVarHTTPResponse, nil } -type OidcApiGetOidcDynamicClientRequest struct { +type OidcAPIGetOidcDynamicClientRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI id string } -func (r OidcApiGetOidcDynamicClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OidcAPIGetOidcDynamicClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.GetOidcDynamicClientExecute(r) } @@ -706,10 +712,10 @@ If it uses `client_secret_basic`, present the Client ID and the Client Secret in @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id The id of the OAuth 2.0 Client. - @return OidcApiGetOidcDynamicClientRequest + @return OidcAPIGetOidcDynamicClientRequest */ -func (a *OidcApiService) GetOidcDynamicClient(ctx context.Context, id string) OidcApiGetOidcDynamicClientRequest { - return OidcApiGetOidcDynamicClientRequest{ +func (a *OidcAPIService) GetOidcDynamicClient(ctx context.Context, id string) OidcAPIGetOidcDynamicClientRequest { + return OidcAPIGetOidcDynamicClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -718,7 +724,7 @@ func (a *OidcApiService) GetOidcDynamicClient(ctx context.Context, id string) Oi // Execute executes the request // @return OAuth2Client -func (a *OidcApiService) GetOidcDynamicClientExecute(r OidcApiGetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OidcAPIService) GetOidcDynamicClientExecute(r OidcAPIGetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -726,13 +732,13 @@ func (a *OidcApiService) GetOidcDynamicClientExecute(r OidcApiGetOidcDynamicClie localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.GetOidcDynamicClient") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.GetOidcDynamicClient") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/oauth2/register/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -765,9 +771,9 @@ func (a *OidcApiService) GetOidcDynamicClientExecute(r OidcApiGetOidcDynamicClie return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -783,7 +789,8 @@ func (a *OidcApiService) GetOidcDynamicClientExecute(r OidcApiGetOidcDynamicClie newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -799,12 +806,12 @@ func (a *OidcApiService) GetOidcDynamicClientExecute(r OidcApiGetOidcDynamicClie return localVarReturnValue, localVarHTTPResponse, nil } -type OidcApiGetOidcUserInfoRequest struct { +type OidcAPIGetOidcUserInfoRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI } -func (r OidcApiGetOidcUserInfoRequest) Execute() (*OidcUserInfo, *http.Response, error) { +func (r OidcAPIGetOidcUserInfoRequest) Execute() (*OidcUserInfo, *http.Response, error) { return r.ApiService.GetOidcUserInfoExecute(r) } @@ -819,10 +826,10 @@ with more information about the error. See [the spec](https://datatracker.ietf.o for more details about header format. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiGetOidcUserInfoRequest + @return OidcAPIGetOidcUserInfoRequest */ -func (a *OidcApiService) GetOidcUserInfo(ctx context.Context) OidcApiGetOidcUserInfoRequest { - return OidcApiGetOidcUserInfoRequest{ +func (a *OidcAPIService) GetOidcUserInfo(ctx context.Context) OidcAPIGetOidcUserInfoRequest { + return OidcAPIGetOidcUserInfoRequest{ ApiService: a, ctx: ctx, } @@ -830,7 +837,7 @@ func (a *OidcApiService) GetOidcUserInfo(ctx context.Context) OidcApiGetOidcUser // Execute executes the request // @return OidcUserInfo -func (a *OidcApiService) GetOidcUserInfoExecute(r OidcApiGetOidcUserInfoRequest) (*OidcUserInfo, *http.Response, error) { +func (a *OidcAPIService) GetOidcUserInfoExecute(r OidcAPIGetOidcUserInfoRequest) (*OidcUserInfo, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -838,7 +845,7 @@ func (a *OidcApiService) GetOidcUserInfoExecute(r OidcApiGetOidcUserInfoRequest) localVarReturnValue *OidcUserInfo ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.GetOidcUserInfo") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.GetOidcUserInfo") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -876,9 +883,9 @@ func (a *OidcApiService) GetOidcUserInfoExecute(r OidcApiGetOidcUserInfoRequest) return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -894,7 +901,8 @@ func (a *OidcApiService) GetOidcUserInfoExecute(r OidcApiGetOidcUserInfoRequest) newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } @@ -910,12 +918,12 @@ func (a *OidcApiService) GetOidcUserInfoExecute(r OidcApiGetOidcUserInfoRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type OidcApiRevokeOidcSessionRequest struct { +type OidcAPIRevokeOidcSessionRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI } -func (r OidcApiRevokeOidcSessionRequest) Execute() (*http.Response, error) { +func (r OidcAPIRevokeOidcSessionRequest) Execute() (*http.Response, error) { return r.ApiService.RevokeOidcSessionExecute(r) } @@ -930,24 +938,24 @@ https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return OidcApiRevokeOidcSessionRequest + @return OidcAPIRevokeOidcSessionRequest */ -func (a *OidcApiService) RevokeOidcSession(ctx context.Context) OidcApiRevokeOidcSessionRequest { - return OidcApiRevokeOidcSessionRequest{ +func (a *OidcAPIService) RevokeOidcSession(ctx context.Context) OidcAPIRevokeOidcSessionRequest { + return OidcAPIRevokeOidcSessionRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *OidcApiService) RevokeOidcSessionExecute(r OidcApiRevokeOidcSessionRequest) (*http.Response, error) { +func (a *OidcAPIService) RevokeOidcSessionExecute(r OidcAPIRevokeOidcSessionRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.RevokeOidcSession") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.RevokeOidcSession") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } @@ -985,9 +993,9 @@ func (a *OidcApiService) RevokeOidcSessionExecute(r OidcApiRevokeOidcSessionRequ return localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarHTTPResponse, err } @@ -1003,20 +1011,20 @@ func (a *OidcApiService) RevokeOidcSessionExecute(r OidcApiRevokeOidcSessionRequ return localVarHTTPResponse, nil } -type OidcApiSetOidcDynamicClientRequest struct { +type OidcAPISetOidcDynamicClientRequest struct { ctx context.Context - ApiService OidcApi + ApiService OidcAPI id string oAuth2Client *OAuth2Client } // OAuth 2.0 Client Request Body -func (r OidcApiSetOidcDynamicClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OidcApiSetOidcDynamicClientRequest { +func (r OidcAPISetOidcDynamicClientRequest) OAuth2Client(oAuth2Client OAuth2Client) OidcAPISetOidcDynamicClientRequest { r.oAuth2Client = &oAuth2Client return r } -func (r OidcApiSetOidcDynamicClientRequest) Execute() (*OAuth2Client, *http.Response, error) { +func (r OidcAPISetOidcDynamicClientRequest) Execute() (*OAuth2Client, *http.Response, error) { return r.ApiService.SetOidcDynamicClientExecute(r) } @@ -1041,10 +1049,10 @@ generated for applications which want to consume your OAuth 2.0 or OpenID Connec @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). @param id OAuth 2.0 Client ID - @return OidcApiSetOidcDynamicClientRequest + @return OidcAPISetOidcDynamicClientRequest */ -func (a *OidcApiService) SetOidcDynamicClient(ctx context.Context, id string) OidcApiSetOidcDynamicClientRequest { - return OidcApiSetOidcDynamicClientRequest{ +func (a *OidcAPIService) SetOidcDynamicClient(ctx context.Context, id string) OidcAPISetOidcDynamicClientRequest { + return OidcAPISetOidcDynamicClientRequest{ ApiService: a, ctx: ctx, id: id, @@ -1053,7 +1061,7 @@ func (a *OidcApiService) SetOidcDynamicClient(ctx context.Context, id string) Oi // Execute executes the request // @return OAuth2Client -func (a *OidcApiService) SetOidcDynamicClientExecute(r OidcApiSetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) { +func (a *OidcAPIService) SetOidcDynamicClientExecute(r OidcAPISetOidcDynamicClientRequest) (*OAuth2Client, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} @@ -1061,13 +1069,13 @@ func (a *OidcApiService) SetOidcDynamicClientExecute(r OidcApiSetOidcDynamicClie localVarReturnValue *OAuth2Client ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcApiService.SetOidcDynamicClient") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "OidcAPIService.SetOidcDynamicClient") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } localVarPath := localBasePath + "/oauth2/register/{id}" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterToString(r.id, "")), -1) + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} @@ -1105,9 +1113,9 @@ func (a *OidcApiService) SetOidcDynamicClientExecute(r OidcApiSetOidcDynamicClie return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -1124,7 +1132,8 @@ func (a *OidcApiService) SetOidcDynamicClientExecute(r OidcApiSetOidcDynamicClie newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } var v ErrorOAuth2 @@ -1133,7 +1142,8 @@ func (a *OidcApiService) SetOidcDynamicClientExecute(r OidcApiSetOidcDynamicClie newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/clients/hydra/go/api_wellknown.go b/clients/hydra/go/api_wellknown.go index 005a19bf713..c307aaaa3bd 100644 --- a/clients/hydra/go/api_wellknown.go +++ b/clients/hydra/go/api_wellknown.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -14,13 +14,13 @@ package client import ( "bytes" "context" - "io/ioutil" + "io" "net/http" "net/url" ) -type WellknownApi interface { +type WellknownAPI interface { /* DiscoverJsonWebKeys Discover Well-Known JSON Web Keys @@ -30,24 +30,24 @@ if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client l [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return WellknownApiDiscoverJsonWebKeysRequest + @return WellknownAPIDiscoverJsonWebKeysRequest */ - DiscoverJsonWebKeys(ctx context.Context) WellknownApiDiscoverJsonWebKeysRequest + DiscoverJsonWebKeys(ctx context.Context) WellknownAPIDiscoverJsonWebKeysRequest // DiscoverJsonWebKeysExecute executes the request // @return JsonWebKeySet - DiscoverJsonWebKeysExecute(r WellknownApiDiscoverJsonWebKeysRequest) (*JsonWebKeySet, *http.Response, error) + DiscoverJsonWebKeysExecute(r WellknownAPIDiscoverJsonWebKeysRequest) (*JsonWebKeySet, *http.Response, error) } -// WellknownApiService WellknownApi service -type WellknownApiService service +// WellknownAPIService WellknownAPI service +type WellknownAPIService service -type WellknownApiDiscoverJsonWebKeysRequest struct { +type WellknownAPIDiscoverJsonWebKeysRequest struct { ctx context.Context - ApiService WellknownApi + ApiService WellknownAPI } -func (r WellknownApiDiscoverJsonWebKeysRequest) Execute() (*JsonWebKeySet, *http.Response, error) { +func (r WellknownAPIDiscoverJsonWebKeysRequest) Execute() (*JsonWebKeySet, *http.Response, error) { return r.ApiService.DiscoverJsonWebKeysExecute(r) } @@ -59,10 +59,10 @@ if enabled, OAuth 2.0 JWT Access Tokens. This endpoint can be used with client l [node-jwks-rsa](https://github.com/auth0/node-jwks-rsa) among others. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return WellknownApiDiscoverJsonWebKeysRequest + @return WellknownAPIDiscoverJsonWebKeysRequest */ -func (a *WellknownApiService) DiscoverJsonWebKeys(ctx context.Context) WellknownApiDiscoverJsonWebKeysRequest { - return WellknownApiDiscoverJsonWebKeysRequest{ +func (a *WellknownAPIService) DiscoverJsonWebKeys(ctx context.Context) WellknownAPIDiscoverJsonWebKeysRequest { + return WellknownAPIDiscoverJsonWebKeysRequest{ ApiService: a, ctx: ctx, } @@ -70,7 +70,7 @@ func (a *WellknownApiService) DiscoverJsonWebKeys(ctx context.Context) Wellknown // Execute executes the request // @return JsonWebKeySet -func (a *WellknownApiService) DiscoverJsonWebKeysExecute(r WellknownApiDiscoverJsonWebKeysRequest) (*JsonWebKeySet, *http.Response, error) { +func (a *WellknownAPIService) DiscoverJsonWebKeysExecute(r WellknownAPIDiscoverJsonWebKeysRequest) (*JsonWebKeySet, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} @@ -78,7 +78,7 @@ func (a *WellknownApiService) DiscoverJsonWebKeysExecute(r WellknownApiDiscoverJ localVarReturnValue *JsonWebKeySet ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WellknownApiService.DiscoverJsonWebKeys") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "WellknownAPIService.DiscoverJsonWebKeys") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } @@ -116,9 +116,9 @@ func (a *WellknownApiService) DiscoverJsonWebKeysExecute(r WellknownApiDiscoverJ return localVarReturnValue, localVarHTTPResponse, err } - localVarBody, err := ioutil.ReadAll(localVarHTTPResponse.Body) + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = ioutil.NopCloser(bytes.NewBuffer(localVarBody)) + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { return localVarReturnValue, localVarHTTPResponse, err } @@ -134,7 +134,8 @@ func (a *WellknownApiService) DiscoverJsonWebKeysExecute(r WellknownApiDiscoverJ newErr.error = err.Error() return localVarReturnValue, localVarHTTPResponse, newErr } - newErr.model = v + newErr.error = formatErrorMessage(localVarHTTPResponse.Status, &v) + newErr.model = v return localVarReturnValue, localVarHTTPResponse, newErr } diff --git a/clients/hydra/go/client.go b/clients/hydra/go/client.go index 9c338440eef..b61786126ca 100644 --- a/clients/hydra/go/client.go +++ b/clients/hydra/go/client.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -19,7 +19,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "log" "mime/multipart" "net/http" @@ -38,11 +37,13 @@ import ( ) var ( - jsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:vnd\.[^;]+\+)?json)`) - xmlCheck = regexp.MustCompile(`(?i:(?:application|text)/xml)`) + JsonCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?json)`) + XmlCheck = regexp.MustCompile(`(?i:(?:application|text)/(?:[^;]+\+)?xml)`) + queryParamSplit = regexp.MustCompile(`(^|&)([^&]+)`) + queryDescape = strings.NewReplacer( "%5B", "[", "%5D", "]" ) ) -// APIClient manages communication with the Ory Hydra API API vv2.2.0-rc.3 +// APIClient manages communication with the Ory Hydra API API vv2.2.0 // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration @@ -50,15 +51,15 @@ type APIClient struct { // API Services - JwkApi JwkApi + JwkAPI JwkAPI - MetadataApi MetadataApi + MetadataAPI MetadataAPI - OAuth2Api OAuth2Api + OAuth2API OAuth2API - OidcApi OidcApi + OidcAPI OidcAPI - WellknownApi WellknownApi + WellknownAPI WellknownAPI } type service struct { @@ -77,11 +78,11 @@ func NewAPIClient(cfg *Configuration) *APIClient { c.common.client = c // API Services - c.JwkApi = (*JwkApiService)(&c.common) - c.MetadataApi = (*MetadataApiService)(&c.common) - c.OAuth2Api = (*OAuth2ApiService)(&c.common) - c.OidcApi = (*OidcApiService)(&c.common) - c.WellknownApi = (*WellknownApiService)(&c.common) + c.JwkAPI = (*JwkAPIService)(&c.common) + c.MetadataAPI = (*MetadataAPIService)(&c.common) + c.OAuth2API = (*OAuth2APIService)(&c.common) + c.OidcAPI = (*OidcAPIService)(&c.common) + c.WellknownAPI = (*WellknownAPIService)(&c.common) return c } @@ -133,33 +134,111 @@ func typeCheckParameter(obj interface{}, expected string, name string) error { // Check the type is as expected. if reflect.TypeOf(obj).String() != expected { - return fmt.Errorf("Expected %s to be of type %s but received %s.", name, expected, reflect.TypeOf(obj).String()) + return fmt.Errorf("expected %s to be of type %s but received %s", name, expected, reflect.TypeOf(obj).String()) } return nil } -// parameterToString convert interface{} parameters to string, using a delimiter if format is provided. -func parameterToString(obj interface{}, collectionFormat string) string { - var delimiter string - - switch collectionFormat { - case "pipes": - delimiter = "|" - case "ssv": - delimiter = " " - case "tsv": - delimiter = "\t" - case "csv": - delimiter = "," +func parameterValueToString( obj interface{}, key string ) string { + if reflect.TypeOf(obj).Kind() != reflect.Ptr { + return fmt.Sprintf("%v", obj) + } + var param,ok = obj.(MappedNullable) + if !ok { + return "" + } + dataMap,err := param.ToMap() + if err != nil { + return "" } + return fmt.Sprintf("%v", dataMap[key]) +} + +// parameterAddToHeaderOrQuery adds the provided object to the request header or url query +// supporting deep object syntax +func parameterAddToHeaderOrQuery(headerOrQueryParams interface{}, keyPrefix string, obj interface{}, collectionType string) { + var v = reflect.ValueOf(obj) + var value = "" + if v == reflect.ValueOf(nil) { + value = "null" + } else { + switch v.Kind() { + case reflect.Invalid: + value = "invalid" + + case reflect.Struct: + if t,ok := obj.(MappedNullable); ok { + dataMap,err := t.ToMap() + if err != nil { + return + } + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, dataMap, collectionType) + return + } + if t, ok := obj.(time.Time); ok { + parameterAddToHeaderOrQuery(headerOrQueryParams, keyPrefix, t.Format(time.RFC3339), collectionType) + return + } + value = v.Type().String() + " value" + case reflect.Slice: + var indValue = reflect.ValueOf(obj) + if indValue == reflect.ValueOf(nil) { + return + } + var lenIndValue = indValue.Len() + for i:=0;i Requested Authentication AuthorizationContext Class Reference values. Space-separated string that specifies the acr values that the Authorization Server is being requested to use for processing this Authentication Request, with the values appearing in order of preference. The Authentication AuthorizationContext Class satisfied by the authentication performed is returned as the acr Claim Value, as specified in Section 2. The acr Claim is requested as a Voluntary Claim by this parameter. @@ -51,7 +54,7 @@ func NewOAuth2ConsentRequestOpenIDConnectContextWithDefaults() *OAuth2ConsentReq // GetAcrValues returns the AcrValues field value if set, zero value otherwise. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetAcrValues() []string { - if o == nil || o.AcrValues == nil { + if o == nil || IsNil(o.AcrValues) { var ret []string return ret } @@ -61,7 +64,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetAcrValues() []string { // GetAcrValuesOk returns a tuple with the AcrValues field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetAcrValuesOk() ([]string, bool) { - if o == nil || o.AcrValues == nil { + if o == nil || IsNil(o.AcrValues) { return nil, false } return o.AcrValues, true @@ -69,7 +72,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetAcrValuesOk() ([]string, b // HasAcrValues returns a boolean if a field has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) HasAcrValues() bool { - if o != nil && o.AcrValues != nil { + if o != nil && !IsNil(o.AcrValues) { return true } @@ -83,7 +86,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) SetAcrValues(v []string) { // GetDisplay returns the Display field value if set, zero value otherwise. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetDisplay() string { - if o == nil || o.Display == nil { + if o == nil || IsNil(o.Display) { var ret string return ret } @@ -93,7 +96,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetDisplay() string { // GetDisplayOk returns a tuple with the Display field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetDisplayOk() (*string, bool) { - if o == nil || o.Display == nil { + if o == nil || IsNil(o.Display) { return nil, false } return o.Display, true @@ -101,7 +104,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetDisplayOk() (*string, bool // HasDisplay returns a boolean if a field has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) HasDisplay() bool { - if o != nil && o.Display != nil { + if o != nil && !IsNil(o.Display) { return true } @@ -115,7 +118,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) SetDisplay(v string) { // GetIdTokenHintClaims returns the IdTokenHintClaims field value if set, zero value otherwise. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetIdTokenHintClaims() map[string]interface{} { - if o == nil || o.IdTokenHintClaims == nil { + if o == nil || IsNil(o.IdTokenHintClaims) { var ret map[string]interface{} return ret } @@ -125,15 +128,15 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetIdTokenHintClaims() map[st // GetIdTokenHintClaimsOk returns a tuple with the IdTokenHintClaims field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetIdTokenHintClaimsOk() (map[string]interface{}, bool) { - if o == nil || o.IdTokenHintClaims == nil { - return nil, false + if o == nil || IsNil(o.IdTokenHintClaims) { + return map[string]interface{}{}, false } return o.IdTokenHintClaims, true } // HasIdTokenHintClaims returns a boolean if a field has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) HasIdTokenHintClaims() bool { - if o != nil && o.IdTokenHintClaims != nil { + if o != nil && !IsNil(o.IdTokenHintClaims) { return true } @@ -147,7 +150,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) SetIdTokenHintClaims(v map[st // GetLoginHint returns the LoginHint field value if set, zero value otherwise. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetLoginHint() string { - if o == nil || o.LoginHint == nil { + if o == nil || IsNil(o.LoginHint) { var ret string return ret } @@ -157,7 +160,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetLoginHint() string { // GetLoginHintOk returns a tuple with the LoginHint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetLoginHintOk() (*string, bool) { - if o == nil || o.LoginHint == nil { + if o == nil || IsNil(o.LoginHint) { return nil, false } return o.LoginHint, true @@ -165,7 +168,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetLoginHintOk() (*string, bo // HasLoginHint returns a boolean if a field has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) HasLoginHint() bool { - if o != nil && o.LoginHint != nil { + if o != nil && !IsNil(o.LoginHint) { return true } @@ -179,7 +182,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) SetLoginHint(v string) { // GetUiLocales returns the UiLocales field value if set, zero value otherwise. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetUiLocales() []string { - if o == nil || o.UiLocales == nil { + if o == nil || IsNil(o.UiLocales) { var ret []string return ret } @@ -189,7 +192,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetUiLocales() []string { // GetUiLocalesOk returns a tuple with the UiLocales field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) GetUiLocalesOk() ([]string, bool) { - if o == nil || o.UiLocales == nil { + if o == nil || IsNil(o.UiLocales) { return nil, false } return o.UiLocales, true @@ -197,7 +200,7 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) GetUiLocalesOk() ([]string, b // HasUiLocales returns a boolean if a field has been set. func (o *OAuth2ConsentRequestOpenIDConnectContext) HasUiLocales() bool { - if o != nil && o.UiLocales != nil { + if o != nil && !IsNil(o.UiLocales) { return true } @@ -210,20 +213,28 @@ func (o *OAuth2ConsentRequestOpenIDConnectContext) SetUiLocales(v []string) { } func (o OAuth2ConsentRequestOpenIDConnectContext) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuth2ConsentRequestOpenIDConnectContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.AcrValues != nil { + if !IsNil(o.AcrValues) { toSerialize["acr_values"] = o.AcrValues } - if o.Display != nil { + if !IsNil(o.Display) { toSerialize["display"] = o.Display } - if o.IdTokenHintClaims != nil { + if !IsNil(o.IdTokenHintClaims) { toSerialize["id_token_hint_claims"] = o.IdTokenHintClaims } - if o.LoginHint != nil { + if !IsNil(o.LoginHint) { toSerialize["login_hint"] = o.LoginHint } - if o.UiLocales != nil { + if !IsNil(o.UiLocales) { toSerialize["ui_locales"] = o.UiLocales } @@ -231,16 +242,20 @@ func (o OAuth2ConsentRequestOpenIDConnectContext) MarshalJSON() ([]byte, error) toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2ConsentRequestOpenIDConnectContext) UnmarshalJSON(bytes []byte) (err error) { varOAuth2ConsentRequestOpenIDConnectContext := _OAuth2ConsentRequestOpenIDConnectContext{} - if err = json.Unmarshal(bytes, &varOAuth2ConsentRequestOpenIDConnectContext); err == nil { - *o = OAuth2ConsentRequestOpenIDConnectContext(varOAuth2ConsentRequestOpenIDConnectContext) + err = json.Unmarshal(bytes, &varOAuth2ConsentRequestOpenIDConnectContext) + + if err != nil { + return err } + *o = OAuth2ConsentRequestOpenIDConnectContext(varOAuth2ConsentRequestOpenIDConnectContext) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_o_auth2_consent_session.go b/clients/hydra/go/model_o_auth2_consent_session.go index 8ca02cba3ac..685d6c4f642 100644 --- a/clients/hydra/go/model_o_auth2_consent_session.go +++ b/clients/hydra/go/model_o_auth2_consent_session.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -16,9 +16,13 @@ import ( "time" ) +// checks if the OAuth2ConsentSession type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2ConsentSession{} + // OAuth2ConsentSession A completed OAuth 2.0 Consent Session. type OAuth2ConsentSession struct { ConsentRequest *OAuth2ConsentRequest `json:"consent_request,omitempty"` + Context interface{} `json:"context,omitempty"` ExpiresAt *OAuth2ConsentSessionExpiresAt `json:"expires_at,omitempty"` GrantAccessTokenAudience []string `json:"grant_access_token_audience,omitempty"` GrantScope []string `json:"grant_scope,omitempty"` @@ -52,7 +56,7 @@ func NewOAuth2ConsentSessionWithDefaults() *OAuth2ConsentSession { // GetConsentRequest returns the ConsentRequest field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetConsentRequest() OAuth2ConsentRequest { - if o == nil || o.ConsentRequest == nil { + if o == nil || IsNil(o.ConsentRequest) { var ret OAuth2ConsentRequest return ret } @@ -62,7 +66,7 @@ func (o *OAuth2ConsentSession) GetConsentRequest() OAuth2ConsentRequest { // GetConsentRequestOk returns a tuple with the ConsentRequest field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetConsentRequestOk() (*OAuth2ConsentRequest, bool) { - if o == nil || o.ConsentRequest == nil { + if o == nil || IsNil(o.ConsentRequest) { return nil, false } return o.ConsentRequest, true @@ -70,7 +74,7 @@ func (o *OAuth2ConsentSession) GetConsentRequestOk() (*OAuth2ConsentRequest, boo // HasConsentRequest returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasConsentRequest() bool { - if o != nil && o.ConsentRequest != nil { + if o != nil && !IsNil(o.ConsentRequest) { return true } @@ -82,9 +86,42 @@ func (o *OAuth2ConsentSession) SetConsentRequest(v OAuth2ConsentRequest) { o.ConsentRequest = &v } +// GetContext returns the Context field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *OAuth2ConsentSession) GetContext() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Context +} + +// GetContextOk returns a tuple with the Context field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *OAuth2ConsentSession) GetContextOk() (*interface{}, bool) { + if o == nil || IsNil(o.Context) { + return nil, false + } + return &o.Context, true +} + +// HasContext returns a boolean if a field has been set. +func (o *OAuth2ConsentSession) HasContext() bool { + if o != nil && IsNil(o.Context) { + return true + } + + return false +} + +// SetContext gets a reference to the given interface{} and assigns it to the Context field. +func (o *OAuth2ConsentSession) SetContext(v interface{}) { + o.Context = v +} + // GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetExpiresAt() OAuth2ConsentSessionExpiresAt { - if o == nil || o.ExpiresAt == nil { + if o == nil || IsNil(o.ExpiresAt) { var ret OAuth2ConsentSessionExpiresAt return ret } @@ -94,7 +131,7 @@ func (o *OAuth2ConsentSession) GetExpiresAt() OAuth2ConsentSessionExpiresAt { // GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetExpiresAtOk() (*OAuth2ConsentSessionExpiresAt, bool) { - if o == nil || o.ExpiresAt == nil { + if o == nil || IsNil(o.ExpiresAt) { return nil, false } return o.ExpiresAt, true @@ -102,7 +139,7 @@ func (o *OAuth2ConsentSession) GetExpiresAtOk() (*OAuth2ConsentSessionExpiresAt, // HasExpiresAt returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasExpiresAt() bool { - if o != nil && o.ExpiresAt != nil { + if o != nil && !IsNil(o.ExpiresAt) { return true } @@ -116,7 +153,7 @@ func (o *OAuth2ConsentSession) SetExpiresAt(v OAuth2ConsentSessionExpiresAt) { // GetGrantAccessTokenAudience returns the GrantAccessTokenAudience field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetGrantAccessTokenAudience() []string { - if o == nil || o.GrantAccessTokenAudience == nil { + if o == nil || IsNil(o.GrantAccessTokenAudience) { var ret []string return ret } @@ -126,7 +163,7 @@ func (o *OAuth2ConsentSession) GetGrantAccessTokenAudience() []string { // GetGrantAccessTokenAudienceOk returns a tuple with the GrantAccessTokenAudience field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetGrantAccessTokenAudienceOk() ([]string, bool) { - if o == nil || o.GrantAccessTokenAudience == nil { + if o == nil || IsNil(o.GrantAccessTokenAudience) { return nil, false } return o.GrantAccessTokenAudience, true @@ -134,7 +171,7 @@ func (o *OAuth2ConsentSession) GetGrantAccessTokenAudienceOk() ([]string, bool) // HasGrantAccessTokenAudience returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasGrantAccessTokenAudience() bool { - if o != nil && o.GrantAccessTokenAudience != nil { + if o != nil && !IsNil(o.GrantAccessTokenAudience) { return true } @@ -148,7 +185,7 @@ func (o *OAuth2ConsentSession) SetGrantAccessTokenAudience(v []string) { // GetGrantScope returns the GrantScope field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetGrantScope() []string { - if o == nil || o.GrantScope == nil { + if o == nil || IsNil(o.GrantScope) { var ret []string return ret } @@ -158,7 +195,7 @@ func (o *OAuth2ConsentSession) GetGrantScope() []string { // GetGrantScopeOk returns a tuple with the GrantScope field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetGrantScopeOk() ([]string, bool) { - if o == nil || o.GrantScope == nil { + if o == nil || IsNil(o.GrantScope) { return nil, false } return o.GrantScope, true @@ -166,7 +203,7 @@ func (o *OAuth2ConsentSession) GetGrantScopeOk() ([]string, bool) { // HasGrantScope returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasGrantScope() bool { - if o != nil && o.GrantScope != nil { + if o != nil && !IsNil(o.GrantScope) { return true } @@ -180,7 +217,7 @@ func (o *OAuth2ConsentSession) SetGrantScope(v []string) { // GetHandledAt returns the HandledAt field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetHandledAt() time.Time { - if o == nil || o.HandledAt == nil { + if o == nil || IsNil(o.HandledAt) { var ret time.Time return ret } @@ -190,7 +227,7 @@ func (o *OAuth2ConsentSession) GetHandledAt() time.Time { // GetHandledAtOk returns a tuple with the HandledAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetHandledAtOk() (*time.Time, bool) { - if o == nil || o.HandledAt == nil { + if o == nil || IsNil(o.HandledAt) { return nil, false } return o.HandledAt, true @@ -198,7 +235,7 @@ func (o *OAuth2ConsentSession) GetHandledAtOk() (*time.Time, bool) { // HasHandledAt returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasHandledAt() bool { - if o != nil && o.HandledAt != nil { + if o != nil && !IsNil(o.HandledAt) { return true } @@ -212,7 +249,7 @@ func (o *OAuth2ConsentSession) SetHandledAt(v time.Time) { // GetRemember returns the Remember field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetRemember() bool { - if o == nil || o.Remember == nil { + if o == nil || IsNil(o.Remember) { var ret bool return ret } @@ -222,7 +259,7 @@ func (o *OAuth2ConsentSession) GetRemember() bool { // GetRememberOk returns a tuple with the Remember field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetRememberOk() (*bool, bool) { - if o == nil || o.Remember == nil { + if o == nil || IsNil(o.Remember) { return nil, false } return o.Remember, true @@ -230,7 +267,7 @@ func (o *OAuth2ConsentSession) GetRememberOk() (*bool, bool) { // HasRemember returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasRemember() bool { - if o != nil && o.Remember != nil { + if o != nil && !IsNil(o.Remember) { return true } @@ -244,7 +281,7 @@ func (o *OAuth2ConsentSession) SetRemember(v bool) { // GetRememberFor returns the RememberFor field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetRememberFor() int64 { - if o == nil || o.RememberFor == nil { + if o == nil || IsNil(o.RememberFor) { var ret int64 return ret } @@ -254,7 +291,7 @@ func (o *OAuth2ConsentSession) GetRememberFor() int64 { // GetRememberForOk returns a tuple with the RememberFor field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetRememberForOk() (*int64, bool) { - if o == nil || o.RememberFor == nil { + if o == nil || IsNil(o.RememberFor) { return nil, false } return o.RememberFor, true @@ -262,7 +299,7 @@ func (o *OAuth2ConsentSession) GetRememberForOk() (*int64, bool) { // HasRememberFor returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasRememberFor() bool { - if o != nil && o.RememberFor != nil { + if o != nil && !IsNil(o.RememberFor) { return true } @@ -276,7 +313,7 @@ func (o *OAuth2ConsentSession) SetRememberFor(v int64) { // GetSession returns the Session field value if set, zero value otherwise. func (o *OAuth2ConsentSession) GetSession() AcceptOAuth2ConsentRequestSession { - if o == nil || o.Session == nil { + if o == nil || IsNil(o.Session) { var ret AcceptOAuth2ConsentRequestSession return ret } @@ -286,7 +323,7 @@ func (o *OAuth2ConsentSession) GetSession() AcceptOAuth2ConsentRequestSession { // GetSessionOk returns a tuple with the Session field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSession) GetSessionOk() (*AcceptOAuth2ConsentRequestSession, bool) { - if o == nil || o.Session == nil { + if o == nil || IsNil(o.Session) { return nil, false } return o.Session, true @@ -294,7 +331,7 @@ func (o *OAuth2ConsentSession) GetSessionOk() (*AcceptOAuth2ConsentRequestSessio // HasSession returns a boolean if a field has been set. func (o *OAuth2ConsentSession) HasSession() bool { - if o != nil && o.Session != nil { + if o != nil && !IsNil(o.Session) { return true } @@ -307,29 +344,40 @@ func (o *OAuth2ConsentSession) SetSession(v AcceptOAuth2ConsentRequestSession) { } func (o OAuth2ConsentSession) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuth2ConsentSession) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.ConsentRequest != nil { + if !IsNil(o.ConsentRequest) { toSerialize["consent_request"] = o.ConsentRequest } - if o.ExpiresAt != nil { + if o.Context != nil { + toSerialize["context"] = o.Context + } + if !IsNil(o.ExpiresAt) { toSerialize["expires_at"] = o.ExpiresAt } - if o.GrantAccessTokenAudience != nil { + if !IsNil(o.GrantAccessTokenAudience) { toSerialize["grant_access_token_audience"] = o.GrantAccessTokenAudience } - if o.GrantScope != nil { + if !IsNil(o.GrantScope) { toSerialize["grant_scope"] = o.GrantScope } - if o.HandledAt != nil { + if !IsNil(o.HandledAt) { toSerialize["handled_at"] = o.HandledAt } - if o.Remember != nil { + if !IsNil(o.Remember) { toSerialize["remember"] = o.Remember } - if o.RememberFor != nil { + if !IsNil(o.RememberFor) { toSerialize["remember_for"] = o.RememberFor } - if o.Session != nil { + if !IsNil(o.Session) { toSerialize["session"] = o.Session } @@ -337,20 +385,25 @@ func (o OAuth2ConsentSession) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2ConsentSession) UnmarshalJSON(bytes []byte) (err error) { varOAuth2ConsentSession := _OAuth2ConsentSession{} - if err = json.Unmarshal(bytes, &varOAuth2ConsentSession); err == nil { - *o = OAuth2ConsentSession(varOAuth2ConsentSession) + err = json.Unmarshal(bytes, &varOAuth2ConsentSession) + + if err != nil { + return err } + *o = OAuth2ConsentSession(varOAuth2ConsentSession) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { delete(additionalProperties, "consent_request") + delete(additionalProperties, "context") delete(additionalProperties, "expires_at") delete(additionalProperties, "grant_access_token_audience") delete(additionalProperties, "grant_scope") diff --git a/clients/hydra/go/model_o_auth2_consent_session_expires_at.go b/clients/hydra/go/model_o_auth2_consent_session_expires_at.go index 39e52108b19..d9969a63ca0 100644 --- a/clients/hydra/go/model_o_auth2_consent_session_expires_at.go +++ b/clients/hydra/go/model_o_auth2_consent_session_expires_at.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -16,6 +16,9 @@ import ( "time" ) +// checks if the OAuth2ConsentSessionExpiresAt type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2ConsentSessionExpiresAt{} + // OAuth2ConsentSessionExpiresAt struct for OAuth2ConsentSessionExpiresAt type OAuth2ConsentSessionExpiresAt struct { AccessToken *time.Time `json:"access_token,omitempty"` @@ -47,7 +50,7 @@ func NewOAuth2ConsentSessionExpiresAtWithDefaults() *OAuth2ConsentSessionExpires // GetAccessToken returns the AccessToken field value if set, zero value otherwise. func (o *OAuth2ConsentSessionExpiresAt) GetAccessToken() time.Time { - if o == nil || o.AccessToken == nil { + if o == nil || IsNil(o.AccessToken) { var ret time.Time return ret } @@ -57,7 +60,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetAccessToken() time.Time { // GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSessionExpiresAt) GetAccessTokenOk() (*time.Time, bool) { - if o == nil || o.AccessToken == nil { + if o == nil || IsNil(o.AccessToken) { return nil, false } return o.AccessToken, true @@ -65,7 +68,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetAccessTokenOk() (*time.Time, bool) { // HasAccessToken returns a boolean if a field has been set. func (o *OAuth2ConsentSessionExpiresAt) HasAccessToken() bool { - if o != nil && o.AccessToken != nil { + if o != nil && !IsNil(o.AccessToken) { return true } @@ -79,7 +82,7 @@ func (o *OAuth2ConsentSessionExpiresAt) SetAccessToken(v time.Time) { // GetAuthorizeCode returns the AuthorizeCode field value if set, zero value otherwise. func (o *OAuth2ConsentSessionExpiresAt) GetAuthorizeCode() time.Time { - if o == nil || o.AuthorizeCode == nil { + if o == nil || IsNil(o.AuthorizeCode) { var ret time.Time return ret } @@ -89,7 +92,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetAuthorizeCode() time.Time { // GetAuthorizeCodeOk returns a tuple with the AuthorizeCode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSessionExpiresAt) GetAuthorizeCodeOk() (*time.Time, bool) { - if o == nil || o.AuthorizeCode == nil { + if o == nil || IsNil(o.AuthorizeCode) { return nil, false } return o.AuthorizeCode, true @@ -97,7 +100,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetAuthorizeCodeOk() (*time.Time, bool) // HasAuthorizeCode returns a boolean if a field has been set. func (o *OAuth2ConsentSessionExpiresAt) HasAuthorizeCode() bool { - if o != nil && o.AuthorizeCode != nil { + if o != nil && !IsNil(o.AuthorizeCode) { return true } @@ -111,7 +114,7 @@ func (o *OAuth2ConsentSessionExpiresAt) SetAuthorizeCode(v time.Time) { // GetIdToken returns the IdToken field value if set, zero value otherwise. func (o *OAuth2ConsentSessionExpiresAt) GetIdToken() time.Time { - if o == nil || o.IdToken == nil { + if o == nil || IsNil(o.IdToken) { var ret time.Time return ret } @@ -121,7 +124,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetIdToken() time.Time { // GetIdTokenOk returns a tuple with the IdToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSessionExpiresAt) GetIdTokenOk() (*time.Time, bool) { - if o == nil || o.IdToken == nil { + if o == nil || IsNil(o.IdToken) { return nil, false } return o.IdToken, true @@ -129,7 +132,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetIdTokenOk() (*time.Time, bool) { // HasIdToken returns a boolean if a field has been set. func (o *OAuth2ConsentSessionExpiresAt) HasIdToken() bool { - if o != nil && o.IdToken != nil { + if o != nil && !IsNil(o.IdToken) { return true } @@ -143,7 +146,7 @@ func (o *OAuth2ConsentSessionExpiresAt) SetIdToken(v time.Time) { // GetParContext returns the ParContext field value if set, zero value otherwise. func (o *OAuth2ConsentSessionExpiresAt) GetParContext() time.Time { - if o == nil || o.ParContext == nil { + if o == nil || IsNil(o.ParContext) { var ret time.Time return ret } @@ -153,7 +156,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetParContext() time.Time { // GetParContextOk returns a tuple with the ParContext field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSessionExpiresAt) GetParContextOk() (*time.Time, bool) { - if o == nil || o.ParContext == nil { + if o == nil || IsNil(o.ParContext) { return nil, false } return o.ParContext, true @@ -161,7 +164,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetParContextOk() (*time.Time, bool) { // HasParContext returns a boolean if a field has been set. func (o *OAuth2ConsentSessionExpiresAt) HasParContext() bool { - if o != nil && o.ParContext != nil { + if o != nil && !IsNil(o.ParContext) { return true } @@ -175,7 +178,7 @@ func (o *OAuth2ConsentSessionExpiresAt) SetParContext(v time.Time) { // GetRefreshToken returns the RefreshToken field value if set, zero value otherwise. func (o *OAuth2ConsentSessionExpiresAt) GetRefreshToken() time.Time { - if o == nil || o.RefreshToken == nil { + if o == nil || IsNil(o.RefreshToken) { var ret time.Time return ret } @@ -185,7 +188,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetRefreshToken() time.Time { // GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2ConsentSessionExpiresAt) GetRefreshTokenOk() (*time.Time, bool) { - if o == nil || o.RefreshToken == nil { + if o == nil || IsNil(o.RefreshToken) { return nil, false } return o.RefreshToken, true @@ -193,7 +196,7 @@ func (o *OAuth2ConsentSessionExpiresAt) GetRefreshTokenOk() (*time.Time, bool) { // HasRefreshToken returns a boolean if a field has been set. func (o *OAuth2ConsentSessionExpiresAt) HasRefreshToken() bool { - if o != nil && o.RefreshToken != nil { + if o != nil && !IsNil(o.RefreshToken) { return true } @@ -206,20 +209,28 @@ func (o *OAuth2ConsentSessionExpiresAt) SetRefreshToken(v time.Time) { } func (o OAuth2ConsentSessionExpiresAt) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuth2ConsentSessionExpiresAt) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.AccessToken != nil { + if !IsNil(o.AccessToken) { toSerialize["access_token"] = o.AccessToken } - if o.AuthorizeCode != nil { + if !IsNil(o.AuthorizeCode) { toSerialize["authorize_code"] = o.AuthorizeCode } - if o.IdToken != nil { + if !IsNil(o.IdToken) { toSerialize["id_token"] = o.IdToken } - if o.ParContext != nil { + if !IsNil(o.ParContext) { toSerialize["par_context"] = o.ParContext } - if o.RefreshToken != nil { + if !IsNil(o.RefreshToken) { toSerialize["refresh_token"] = o.RefreshToken } @@ -227,16 +238,20 @@ func (o OAuth2ConsentSessionExpiresAt) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2ConsentSessionExpiresAt) UnmarshalJSON(bytes []byte) (err error) { varOAuth2ConsentSessionExpiresAt := _OAuth2ConsentSessionExpiresAt{} - if err = json.Unmarshal(bytes, &varOAuth2ConsentSessionExpiresAt); err == nil { - *o = OAuth2ConsentSessionExpiresAt(varOAuth2ConsentSessionExpiresAt) + err = json.Unmarshal(bytes, &varOAuth2ConsentSessionExpiresAt) + + if err != nil { + return err } + *o = OAuth2ConsentSessionExpiresAt(varOAuth2ConsentSessionExpiresAt) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_o_auth2_login_request.go b/clients/hydra/go/model_o_auth2_login_request.go index 0b0675b85b5..2842ec66a3b 100644 --- a/clients/hydra/go/model_o_auth2_login_request.go +++ b/clients/hydra/go/model_o_auth2_login_request.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -13,8 +13,12 @@ package client import ( "encoding/json" + "fmt" ) +// checks if the OAuth2LoginRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2LoginRequest{} + // OAuth2LoginRequest struct for OAuth2LoginRequest type OAuth2LoginRequest struct { // ID is the identifier (\"login challenge\") of the login request. It is used to identify the session. @@ -23,8 +27,8 @@ type OAuth2LoginRequest struct { OidcContext *OAuth2ConsentRequestOpenIDConnectContext `json:"oidc_context,omitempty"` // RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. RequestUrl string `json:"request_url"` - RequestedAccessTokenAudience []string `json:"requested_access_token_audience"` - RequestedScope []string `json:"requested_scope"` + RequestedAccessTokenAudience []string `json:"requested_access_token_audience,omitempty"` + RequestedScope []string `json:"requested_scope,omitempty"` // SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. SessionId *string `json:"session_id,omitempty"` // Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. @@ -40,13 +44,11 @@ type _OAuth2LoginRequest OAuth2LoginRequest // This constructor will assign default values to properties that have it defined, // and makes sure properties required by API are set, but the set of arguments // will change when the set of required properties is changed -func NewOAuth2LoginRequest(challenge string, client OAuth2Client, requestUrl string, requestedAccessTokenAudience []string, requestedScope []string, skip bool, subject string) *OAuth2LoginRequest { +func NewOAuth2LoginRequest(challenge string, client OAuth2Client, requestUrl string, skip bool, subject string) *OAuth2LoginRequest { this := OAuth2LoginRequest{} this.Challenge = challenge this.Client = client this.RequestUrl = requestUrl - this.RequestedAccessTokenAudience = requestedAccessTokenAudience - this.RequestedScope = requestedScope this.Skip = skip this.Subject = subject return &this @@ -110,7 +112,7 @@ func (o *OAuth2LoginRequest) SetClient(v OAuth2Client) { // GetOidcContext returns the OidcContext field value if set, zero value otherwise. func (o *OAuth2LoginRequest) GetOidcContext() OAuth2ConsentRequestOpenIDConnectContext { - if o == nil || o.OidcContext == nil { + if o == nil || IsNil(o.OidcContext) { var ret OAuth2ConsentRequestOpenIDConnectContext return ret } @@ -120,7 +122,7 @@ func (o *OAuth2LoginRequest) GetOidcContext() OAuth2ConsentRequestOpenIDConnectC // GetOidcContextOk returns a tuple with the OidcContext field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LoginRequest) GetOidcContextOk() (*OAuth2ConsentRequestOpenIDConnectContext, bool) { - if o == nil || o.OidcContext == nil { + if o == nil || IsNil(o.OidcContext) { return nil, false } return o.OidcContext, true @@ -128,7 +130,7 @@ func (o *OAuth2LoginRequest) GetOidcContextOk() (*OAuth2ConsentRequestOpenIDConn // HasOidcContext returns a boolean if a field has been set. func (o *OAuth2LoginRequest) HasOidcContext() bool { - if o != nil && o.OidcContext != nil { + if o != nil && !IsNil(o.OidcContext) { return true } @@ -164,57 +166,73 @@ func (o *OAuth2LoginRequest) SetRequestUrl(v string) { o.RequestUrl = v } -// GetRequestedAccessTokenAudience returns the RequestedAccessTokenAudience field value +// GetRequestedAccessTokenAudience returns the RequestedAccessTokenAudience field value if set, zero value otherwise. func (o *OAuth2LoginRequest) GetRequestedAccessTokenAudience() []string { - if o == nil { + if o == nil || IsNil(o.RequestedAccessTokenAudience) { var ret []string return ret } - return o.RequestedAccessTokenAudience } -// GetRequestedAccessTokenAudienceOk returns a tuple with the RequestedAccessTokenAudience field value +// GetRequestedAccessTokenAudienceOk returns a tuple with the RequestedAccessTokenAudience field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LoginRequest) GetRequestedAccessTokenAudienceOk() ([]string, bool) { - if o == nil { + if o == nil || IsNil(o.RequestedAccessTokenAudience) { return nil, false } return o.RequestedAccessTokenAudience, true } -// SetRequestedAccessTokenAudience sets field value +// HasRequestedAccessTokenAudience returns a boolean if a field has been set. +func (o *OAuth2LoginRequest) HasRequestedAccessTokenAudience() bool { + if o != nil && !IsNil(o.RequestedAccessTokenAudience) { + return true + } + + return false +} + +// SetRequestedAccessTokenAudience gets a reference to the given []string and assigns it to the RequestedAccessTokenAudience field. func (o *OAuth2LoginRequest) SetRequestedAccessTokenAudience(v []string) { o.RequestedAccessTokenAudience = v } -// GetRequestedScope returns the RequestedScope field value +// GetRequestedScope returns the RequestedScope field value if set, zero value otherwise. func (o *OAuth2LoginRequest) GetRequestedScope() []string { - if o == nil { + if o == nil || IsNil(o.RequestedScope) { var ret []string return ret } - return o.RequestedScope } -// GetRequestedScopeOk returns a tuple with the RequestedScope field value +// GetRequestedScopeOk returns a tuple with the RequestedScope field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LoginRequest) GetRequestedScopeOk() ([]string, bool) { - if o == nil { + if o == nil || IsNil(o.RequestedScope) { return nil, false } return o.RequestedScope, true } -// SetRequestedScope sets field value +// HasRequestedScope returns a boolean if a field has been set. +func (o *OAuth2LoginRequest) HasRequestedScope() bool { + if o != nil && !IsNil(o.RequestedScope) { + return true + } + + return false +} + +// SetRequestedScope gets a reference to the given []string and assigns it to the RequestedScope field. func (o *OAuth2LoginRequest) SetRequestedScope(v []string) { o.RequestedScope = v } // GetSessionId returns the SessionId field value if set, zero value otherwise. func (o *OAuth2LoginRequest) GetSessionId() string { - if o == nil || o.SessionId == nil { + if o == nil || IsNil(o.SessionId) { var ret string return ret } @@ -224,7 +242,7 @@ func (o *OAuth2LoginRequest) GetSessionId() string { // GetSessionIdOk returns a tuple with the SessionId field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LoginRequest) GetSessionIdOk() (*string, bool) { - if o == nil || o.SessionId == nil { + if o == nil || IsNil(o.SessionId) { return nil, false } return o.SessionId, true @@ -232,7 +250,7 @@ func (o *OAuth2LoginRequest) GetSessionIdOk() (*string, bool) { // HasSessionId returns a boolean if a field has been set. func (o *OAuth2LoginRequest) HasSessionId() bool { - if o != nil && o.SessionId != nil { + if o != nil && !IsNil(o.SessionId) { return true } @@ -293,49 +311,76 @@ func (o *OAuth2LoginRequest) SetSubject(v string) { } func (o OAuth2LoginRequest) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["challenge"] = o.Challenge + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err } - if true { - toSerialize["client"] = o.Client - } - if o.OidcContext != nil { + return json.Marshal(toSerialize) +} + +func (o OAuth2LoginRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["challenge"] = o.Challenge + toSerialize["client"] = o.Client + if !IsNil(o.OidcContext) { toSerialize["oidc_context"] = o.OidcContext } - if true { - toSerialize["request_url"] = o.RequestUrl - } - if true { + toSerialize["request_url"] = o.RequestUrl + if !IsNil(o.RequestedAccessTokenAudience) { toSerialize["requested_access_token_audience"] = o.RequestedAccessTokenAudience } - if true { + if !IsNil(o.RequestedScope) { toSerialize["requested_scope"] = o.RequestedScope } - if o.SessionId != nil { + if !IsNil(o.SessionId) { toSerialize["session_id"] = o.SessionId } - if true { - toSerialize["skip"] = o.Skip - } - if true { - toSerialize["subject"] = o.Subject - } + toSerialize["skip"] = o.Skip + toSerialize["subject"] = o.Subject for key, value := range o.AdditionalProperties { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2LoginRequest) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "challenge", + "client", + "request_url", + "skip", + "subject", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + varOAuth2LoginRequest := _OAuth2LoginRequest{} - if err = json.Unmarshal(bytes, &varOAuth2LoginRequest); err == nil { - *o = OAuth2LoginRequest(varOAuth2LoginRequest) + err = json.Unmarshal(bytes, &varOAuth2LoginRequest) + + if err != nil { + return err } + *o = OAuth2LoginRequest(varOAuth2LoginRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_o_auth2_logout_request.go b/clients/hydra/go/model_o_auth2_logout_request.go index 3879e3f24cd..468de71ef7c 100644 --- a/clients/hydra/go/model_o_auth2_logout_request.go +++ b/clients/hydra/go/model_o_auth2_logout_request.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the OAuth2LogoutRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2LogoutRequest{} + // OAuth2LogoutRequest struct for OAuth2LogoutRequest type OAuth2LogoutRequest struct { // Challenge is the identifier (\"logout challenge\") of the logout authentication request. It is used to identify the session. @@ -52,7 +55,7 @@ func NewOAuth2LogoutRequestWithDefaults() *OAuth2LogoutRequest { // GetChallenge returns the Challenge field value if set, zero value otherwise. func (o *OAuth2LogoutRequest) GetChallenge() string { - if o == nil || o.Challenge == nil { + if o == nil || IsNil(o.Challenge) { var ret string return ret } @@ -62,7 +65,7 @@ func (o *OAuth2LogoutRequest) GetChallenge() string { // GetChallengeOk returns a tuple with the Challenge field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LogoutRequest) GetChallengeOk() (*string, bool) { - if o == nil || o.Challenge == nil { + if o == nil || IsNil(o.Challenge) { return nil, false } return o.Challenge, true @@ -70,7 +73,7 @@ func (o *OAuth2LogoutRequest) GetChallengeOk() (*string, bool) { // HasChallenge returns a boolean if a field has been set. func (o *OAuth2LogoutRequest) HasChallenge() bool { - if o != nil && o.Challenge != nil { + if o != nil && !IsNil(o.Challenge) { return true } @@ -84,7 +87,7 @@ func (o *OAuth2LogoutRequest) SetChallenge(v string) { // GetClient returns the Client field value if set, zero value otherwise. func (o *OAuth2LogoutRequest) GetClient() OAuth2Client { - if o == nil || o.Client == nil { + if o == nil || IsNil(o.Client) { var ret OAuth2Client return ret } @@ -94,7 +97,7 @@ func (o *OAuth2LogoutRequest) GetClient() OAuth2Client { // GetClientOk returns a tuple with the Client field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LogoutRequest) GetClientOk() (*OAuth2Client, bool) { - if o == nil || o.Client == nil { + if o == nil || IsNil(o.Client) { return nil, false } return o.Client, true @@ -102,7 +105,7 @@ func (o *OAuth2LogoutRequest) GetClientOk() (*OAuth2Client, bool) { // HasClient returns a boolean if a field has been set. func (o *OAuth2LogoutRequest) HasClient() bool { - if o != nil && o.Client != nil { + if o != nil && !IsNil(o.Client) { return true } @@ -116,7 +119,7 @@ func (o *OAuth2LogoutRequest) SetClient(v OAuth2Client) { // GetRequestUrl returns the RequestUrl field value if set, zero value otherwise. func (o *OAuth2LogoutRequest) GetRequestUrl() string { - if o == nil || o.RequestUrl == nil { + if o == nil || IsNil(o.RequestUrl) { var ret string return ret } @@ -126,7 +129,7 @@ func (o *OAuth2LogoutRequest) GetRequestUrl() string { // GetRequestUrlOk returns a tuple with the RequestUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LogoutRequest) GetRequestUrlOk() (*string, bool) { - if o == nil || o.RequestUrl == nil { + if o == nil || IsNil(o.RequestUrl) { return nil, false } return o.RequestUrl, true @@ -134,7 +137,7 @@ func (o *OAuth2LogoutRequest) GetRequestUrlOk() (*string, bool) { // HasRequestUrl returns a boolean if a field has been set. func (o *OAuth2LogoutRequest) HasRequestUrl() bool { - if o != nil && o.RequestUrl != nil { + if o != nil && !IsNil(o.RequestUrl) { return true } @@ -148,7 +151,7 @@ func (o *OAuth2LogoutRequest) SetRequestUrl(v string) { // GetRpInitiated returns the RpInitiated field value if set, zero value otherwise. func (o *OAuth2LogoutRequest) GetRpInitiated() bool { - if o == nil || o.RpInitiated == nil { + if o == nil || IsNil(o.RpInitiated) { var ret bool return ret } @@ -158,7 +161,7 @@ func (o *OAuth2LogoutRequest) GetRpInitiated() bool { // GetRpInitiatedOk returns a tuple with the RpInitiated field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LogoutRequest) GetRpInitiatedOk() (*bool, bool) { - if o == nil || o.RpInitiated == nil { + if o == nil || IsNil(o.RpInitiated) { return nil, false } return o.RpInitiated, true @@ -166,7 +169,7 @@ func (o *OAuth2LogoutRequest) GetRpInitiatedOk() (*bool, bool) { // HasRpInitiated returns a boolean if a field has been set. func (o *OAuth2LogoutRequest) HasRpInitiated() bool { - if o != nil && o.RpInitiated != nil { + if o != nil && !IsNil(o.RpInitiated) { return true } @@ -180,7 +183,7 @@ func (o *OAuth2LogoutRequest) SetRpInitiated(v bool) { // GetSid returns the Sid field value if set, zero value otherwise. func (o *OAuth2LogoutRequest) GetSid() string { - if o == nil || o.Sid == nil { + if o == nil || IsNil(o.Sid) { var ret string return ret } @@ -190,7 +193,7 @@ func (o *OAuth2LogoutRequest) GetSid() string { // GetSidOk returns a tuple with the Sid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LogoutRequest) GetSidOk() (*string, bool) { - if o == nil || o.Sid == nil { + if o == nil || IsNil(o.Sid) { return nil, false } return o.Sid, true @@ -198,7 +201,7 @@ func (o *OAuth2LogoutRequest) GetSidOk() (*string, bool) { // HasSid returns a boolean if a field has been set. func (o *OAuth2LogoutRequest) HasSid() bool { - if o != nil && o.Sid != nil { + if o != nil && !IsNil(o.Sid) { return true } @@ -212,7 +215,7 @@ func (o *OAuth2LogoutRequest) SetSid(v string) { // GetSubject returns the Subject field value if set, zero value otherwise. func (o *OAuth2LogoutRequest) GetSubject() string { - if o == nil || o.Subject == nil { + if o == nil || IsNil(o.Subject) { var ret string return ret } @@ -222,7 +225,7 @@ func (o *OAuth2LogoutRequest) GetSubject() string { // GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2LogoutRequest) GetSubjectOk() (*string, bool) { - if o == nil || o.Subject == nil { + if o == nil || IsNil(o.Subject) { return nil, false } return o.Subject, true @@ -230,7 +233,7 @@ func (o *OAuth2LogoutRequest) GetSubjectOk() (*string, bool) { // HasSubject returns a boolean if a field has been set. func (o *OAuth2LogoutRequest) HasSubject() bool { - if o != nil && o.Subject != nil { + if o != nil && !IsNil(o.Subject) { return true } @@ -243,23 +246,31 @@ func (o *OAuth2LogoutRequest) SetSubject(v string) { } func (o OAuth2LogoutRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuth2LogoutRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Challenge != nil { + if !IsNil(o.Challenge) { toSerialize["challenge"] = o.Challenge } - if o.Client != nil { + if !IsNil(o.Client) { toSerialize["client"] = o.Client } - if o.RequestUrl != nil { + if !IsNil(o.RequestUrl) { toSerialize["request_url"] = o.RequestUrl } - if o.RpInitiated != nil { + if !IsNil(o.RpInitiated) { toSerialize["rp_initiated"] = o.RpInitiated } - if o.Sid != nil { + if !IsNil(o.Sid) { toSerialize["sid"] = o.Sid } - if o.Subject != nil { + if !IsNil(o.Subject) { toSerialize["subject"] = o.Subject } @@ -267,16 +278,20 @@ func (o OAuth2LogoutRequest) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2LogoutRequest) UnmarshalJSON(bytes []byte) (err error) { varOAuth2LogoutRequest := _OAuth2LogoutRequest{} - if err = json.Unmarshal(bytes, &varOAuth2LogoutRequest); err == nil { - *o = OAuth2LogoutRequest(varOAuth2LogoutRequest) + err = json.Unmarshal(bytes, &varOAuth2LogoutRequest) + + if err != nil { + return err } + *o = OAuth2LogoutRequest(varOAuth2LogoutRequest) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_o_auth2_redirect_to.go b/clients/hydra/go/model_o_auth2_redirect_to.go index 160bebb077a..c41d34b7e29 100644 --- a/clients/hydra/go/model_o_auth2_redirect_to.go +++ b/clients/hydra/go/model_o_auth2_redirect_to.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -13,8 +13,12 @@ package client import ( "encoding/json" + "fmt" ) +// checks if the OAuth2RedirectTo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2RedirectTo{} + // OAuth2RedirectTo Contains a redirect URL used to complete a login, consent, or logout request. type OAuth2RedirectTo struct { // RedirectURL is the URL which you should redirect the user's browser to once the authentication process is completed. @@ -67,25 +71,56 @@ func (o *OAuth2RedirectTo) SetRedirectTo(v string) { } func (o OAuth2RedirectTo) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["redirect_to"] = o.RedirectTo + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err } + return json.Marshal(toSerialize) +} + +func (o OAuth2RedirectTo) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["redirect_to"] = o.RedirectTo for key, value := range o.AdditionalProperties { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2RedirectTo) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "redirect_to", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + varOAuth2RedirectTo := _OAuth2RedirectTo{} - if err = json.Unmarshal(bytes, &varOAuth2RedirectTo); err == nil { - *o = OAuth2RedirectTo(varOAuth2RedirectTo) + err = json.Unmarshal(bytes, &varOAuth2RedirectTo) + + if err != nil { + return err } + *o = OAuth2RedirectTo(varOAuth2RedirectTo) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_o_auth2_token_exchange.go b/clients/hydra/go/model_o_auth2_token_exchange.go index 662a335fe8a..ecc41304adb 100644 --- a/clients/hydra/go/model_o_auth2_token_exchange.go +++ b/clients/hydra/go/model_o_auth2_token_exchange.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the OAuth2TokenExchange type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OAuth2TokenExchange{} + // OAuth2TokenExchange OAuth2 Token Exchange Result type OAuth2TokenExchange struct { // The access token issued by the authorization server. @@ -22,7 +25,7 @@ type OAuth2TokenExchange struct { // The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. ExpiresIn *int64 `json:"expires_in,omitempty"` // To retrieve a refresh token request the id_token scope. - IdToken *int64 `json:"id_token,omitempty"` + IdToken *string `json:"id_token,omitempty"` // The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. RefreshToken *string `json:"refresh_token,omitempty"` // The scope of the access token @@ -53,7 +56,7 @@ func NewOAuth2TokenExchangeWithDefaults() *OAuth2TokenExchange { // GetAccessToken returns the AccessToken field value if set, zero value otherwise. func (o *OAuth2TokenExchange) GetAccessToken() string { - if o == nil || o.AccessToken == nil { + if o == nil || IsNil(o.AccessToken) { var ret string return ret } @@ -63,7 +66,7 @@ func (o *OAuth2TokenExchange) GetAccessToken() string { // GetAccessTokenOk returns a tuple with the AccessToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2TokenExchange) GetAccessTokenOk() (*string, bool) { - if o == nil || o.AccessToken == nil { + if o == nil || IsNil(o.AccessToken) { return nil, false } return o.AccessToken, true @@ -71,7 +74,7 @@ func (o *OAuth2TokenExchange) GetAccessTokenOk() (*string, bool) { // HasAccessToken returns a boolean if a field has been set. func (o *OAuth2TokenExchange) HasAccessToken() bool { - if o != nil && o.AccessToken != nil { + if o != nil && !IsNil(o.AccessToken) { return true } @@ -85,7 +88,7 @@ func (o *OAuth2TokenExchange) SetAccessToken(v string) { // GetExpiresIn returns the ExpiresIn field value if set, zero value otherwise. func (o *OAuth2TokenExchange) GetExpiresIn() int64 { - if o == nil || o.ExpiresIn == nil { + if o == nil || IsNil(o.ExpiresIn) { var ret int64 return ret } @@ -95,7 +98,7 @@ func (o *OAuth2TokenExchange) GetExpiresIn() int64 { // GetExpiresInOk returns a tuple with the ExpiresIn field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2TokenExchange) GetExpiresInOk() (*int64, bool) { - if o == nil || o.ExpiresIn == nil { + if o == nil || IsNil(o.ExpiresIn) { return nil, false } return o.ExpiresIn, true @@ -103,7 +106,7 @@ func (o *OAuth2TokenExchange) GetExpiresInOk() (*int64, bool) { // HasExpiresIn returns a boolean if a field has been set. func (o *OAuth2TokenExchange) HasExpiresIn() bool { - if o != nil && o.ExpiresIn != nil { + if o != nil && !IsNil(o.ExpiresIn) { return true } @@ -116,9 +119,9 @@ func (o *OAuth2TokenExchange) SetExpiresIn(v int64) { } // GetIdToken returns the IdToken field value if set, zero value otherwise. -func (o *OAuth2TokenExchange) GetIdToken() int64 { - if o == nil || o.IdToken == nil { - var ret int64 +func (o *OAuth2TokenExchange) GetIdToken() string { + if o == nil || IsNil(o.IdToken) { + var ret string return ret } return *o.IdToken @@ -126,8 +129,8 @@ func (o *OAuth2TokenExchange) GetIdToken() int64 { // GetIdTokenOk returns a tuple with the IdToken field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *OAuth2TokenExchange) GetIdTokenOk() (*int64, bool) { - if o == nil || o.IdToken == nil { +func (o *OAuth2TokenExchange) GetIdTokenOk() (*string, bool) { + if o == nil || IsNil(o.IdToken) { return nil, false } return o.IdToken, true @@ -135,21 +138,21 @@ func (o *OAuth2TokenExchange) GetIdTokenOk() (*int64, bool) { // HasIdToken returns a boolean if a field has been set. func (o *OAuth2TokenExchange) HasIdToken() bool { - if o != nil && o.IdToken != nil { + if o != nil && !IsNil(o.IdToken) { return true } return false } -// SetIdToken gets a reference to the given int64 and assigns it to the IdToken field. -func (o *OAuth2TokenExchange) SetIdToken(v int64) { +// SetIdToken gets a reference to the given string and assigns it to the IdToken field. +func (o *OAuth2TokenExchange) SetIdToken(v string) { o.IdToken = &v } // GetRefreshToken returns the RefreshToken field value if set, zero value otherwise. func (o *OAuth2TokenExchange) GetRefreshToken() string { - if o == nil || o.RefreshToken == nil { + if o == nil || IsNil(o.RefreshToken) { var ret string return ret } @@ -159,7 +162,7 @@ func (o *OAuth2TokenExchange) GetRefreshToken() string { // GetRefreshTokenOk returns a tuple with the RefreshToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2TokenExchange) GetRefreshTokenOk() (*string, bool) { - if o == nil || o.RefreshToken == nil { + if o == nil || IsNil(o.RefreshToken) { return nil, false } return o.RefreshToken, true @@ -167,7 +170,7 @@ func (o *OAuth2TokenExchange) GetRefreshTokenOk() (*string, bool) { // HasRefreshToken returns a boolean if a field has been set. func (o *OAuth2TokenExchange) HasRefreshToken() bool { - if o != nil && o.RefreshToken != nil { + if o != nil && !IsNil(o.RefreshToken) { return true } @@ -181,7 +184,7 @@ func (o *OAuth2TokenExchange) SetRefreshToken(v string) { // GetScope returns the Scope field value if set, zero value otherwise. func (o *OAuth2TokenExchange) GetScope() string { - if o == nil || o.Scope == nil { + if o == nil || IsNil(o.Scope) { var ret string return ret } @@ -191,7 +194,7 @@ func (o *OAuth2TokenExchange) GetScope() string { // GetScopeOk returns a tuple with the Scope field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2TokenExchange) GetScopeOk() (*string, bool) { - if o == nil || o.Scope == nil { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -199,7 +202,7 @@ func (o *OAuth2TokenExchange) GetScopeOk() (*string, bool) { // HasScope returns a boolean if a field has been set. func (o *OAuth2TokenExchange) HasScope() bool { - if o != nil && o.Scope != nil { + if o != nil && !IsNil(o.Scope) { return true } @@ -213,7 +216,7 @@ func (o *OAuth2TokenExchange) SetScope(v string) { // GetTokenType returns the TokenType field value if set, zero value otherwise. func (o *OAuth2TokenExchange) GetTokenType() string { - if o == nil || o.TokenType == nil { + if o == nil || IsNil(o.TokenType) { var ret string return ret } @@ -223,7 +226,7 @@ func (o *OAuth2TokenExchange) GetTokenType() string { // GetTokenTypeOk returns a tuple with the TokenType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OAuth2TokenExchange) GetTokenTypeOk() (*string, bool) { - if o == nil || o.TokenType == nil { + if o == nil || IsNil(o.TokenType) { return nil, false } return o.TokenType, true @@ -231,7 +234,7 @@ func (o *OAuth2TokenExchange) GetTokenTypeOk() (*string, bool) { // HasTokenType returns a boolean if a field has been set. func (o *OAuth2TokenExchange) HasTokenType() bool { - if o != nil && o.TokenType != nil { + if o != nil && !IsNil(o.TokenType) { return true } @@ -244,23 +247,31 @@ func (o *OAuth2TokenExchange) SetTokenType(v string) { } func (o OAuth2TokenExchange) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OAuth2TokenExchange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.AccessToken != nil { + if !IsNil(o.AccessToken) { toSerialize["access_token"] = o.AccessToken } - if o.ExpiresIn != nil { + if !IsNil(o.ExpiresIn) { toSerialize["expires_in"] = o.ExpiresIn } - if o.IdToken != nil { + if !IsNil(o.IdToken) { toSerialize["id_token"] = o.IdToken } - if o.RefreshToken != nil { + if !IsNil(o.RefreshToken) { toSerialize["refresh_token"] = o.RefreshToken } - if o.Scope != nil { + if !IsNil(o.Scope) { toSerialize["scope"] = o.Scope } - if o.TokenType != nil { + if !IsNil(o.TokenType) { toSerialize["token_type"] = o.TokenType } @@ -268,16 +279,20 @@ func (o OAuth2TokenExchange) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OAuth2TokenExchange) UnmarshalJSON(bytes []byte) (err error) { varOAuth2TokenExchange := _OAuth2TokenExchange{} - if err = json.Unmarshal(bytes, &varOAuth2TokenExchange); err == nil { - *o = OAuth2TokenExchange(varOAuth2TokenExchange) + err = json.Unmarshal(bytes, &varOAuth2TokenExchange) + + if err != nil { + return err } + *o = OAuth2TokenExchange(varOAuth2TokenExchange) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_oidc_configuration.go b/clients/hydra/go/model_oidc_configuration.go index d6e0e01c78e..8fbe534e339 100644 --- a/clients/hydra/go/model_oidc_configuration.go +++ b/clients/hydra/go/model_oidc_configuration.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -13,8 +13,12 @@ package client import ( "encoding/json" + "fmt" ) +// checks if the OidcConfiguration type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OidcConfiguration{} + // OidcConfiguration Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others. type OidcConfiguration struct { // OAuth 2.0 Authorization Endpoint URL @@ -136,7 +140,7 @@ func (o *OidcConfiguration) SetAuthorizationEndpoint(v string) { // GetBackchannelLogoutSessionSupported returns the BackchannelLogoutSessionSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetBackchannelLogoutSessionSupported() bool { - if o == nil || o.BackchannelLogoutSessionSupported == nil { + if o == nil || IsNil(o.BackchannelLogoutSessionSupported) { var ret bool return ret } @@ -146,7 +150,7 @@ func (o *OidcConfiguration) GetBackchannelLogoutSessionSupported() bool { // GetBackchannelLogoutSessionSupportedOk returns a tuple with the BackchannelLogoutSessionSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetBackchannelLogoutSessionSupportedOk() (*bool, bool) { - if o == nil || o.BackchannelLogoutSessionSupported == nil { + if o == nil || IsNil(o.BackchannelLogoutSessionSupported) { return nil, false } return o.BackchannelLogoutSessionSupported, true @@ -154,7 +158,7 @@ func (o *OidcConfiguration) GetBackchannelLogoutSessionSupportedOk() (*bool, boo // HasBackchannelLogoutSessionSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasBackchannelLogoutSessionSupported() bool { - if o != nil && o.BackchannelLogoutSessionSupported != nil { + if o != nil && !IsNil(o.BackchannelLogoutSessionSupported) { return true } @@ -168,7 +172,7 @@ func (o *OidcConfiguration) SetBackchannelLogoutSessionSupported(v bool) { // GetBackchannelLogoutSupported returns the BackchannelLogoutSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetBackchannelLogoutSupported() bool { - if o == nil || o.BackchannelLogoutSupported == nil { + if o == nil || IsNil(o.BackchannelLogoutSupported) { var ret bool return ret } @@ -178,7 +182,7 @@ func (o *OidcConfiguration) GetBackchannelLogoutSupported() bool { // GetBackchannelLogoutSupportedOk returns a tuple with the BackchannelLogoutSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetBackchannelLogoutSupportedOk() (*bool, bool) { - if o == nil || o.BackchannelLogoutSupported == nil { + if o == nil || IsNil(o.BackchannelLogoutSupported) { return nil, false } return o.BackchannelLogoutSupported, true @@ -186,7 +190,7 @@ func (o *OidcConfiguration) GetBackchannelLogoutSupportedOk() (*bool, bool) { // HasBackchannelLogoutSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasBackchannelLogoutSupported() bool { - if o != nil && o.BackchannelLogoutSupported != nil { + if o != nil && !IsNil(o.BackchannelLogoutSupported) { return true } @@ -200,7 +204,7 @@ func (o *OidcConfiguration) SetBackchannelLogoutSupported(v bool) { // GetClaimsParameterSupported returns the ClaimsParameterSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetClaimsParameterSupported() bool { - if o == nil || o.ClaimsParameterSupported == nil { + if o == nil || IsNil(o.ClaimsParameterSupported) { var ret bool return ret } @@ -210,7 +214,7 @@ func (o *OidcConfiguration) GetClaimsParameterSupported() bool { // GetClaimsParameterSupportedOk returns a tuple with the ClaimsParameterSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetClaimsParameterSupportedOk() (*bool, bool) { - if o == nil || o.ClaimsParameterSupported == nil { + if o == nil || IsNil(o.ClaimsParameterSupported) { return nil, false } return o.ClaimsParameterSupported, true @@ -218,7 +222,7 @@ func (o *OidcConfiguration) GetClaimsParameterSupportedOk() (*bool, bool) { // HasClaimsParameterSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasClaimsParameterSupported() bool { - if o != nil && o.ClaimsParameterSupported != nil { + if o != nil && !IsNil(o.ClaimsParameterSupported) { return true } @@ -232,7 +236,7 @@ func (o *OidcConfiguration) SetClaimsParameterSupported(v bool) { // GetClaimsSupported returns the ClaimsSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetClaimsSupported() []string { - if o == nil || o.ClaimsSupported == nil { + if o == nil || IsNil(o.ClaimsSupported) { var ret []string return ret } @@ -242,7 +246,7 @@ func (o *OidcConfiguration) GetClaimsSupported() []string { // GetClaimsSupportedOk returns a tuple with the ClaimsSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetClaimsSupportedOk() ([]string, bool) { - if o == nil || o.ClaimsSupported == nil { + if o == nil || IsNil(o.ClaimsSupported) { return nil, false } return o.ClaimsSupported, true @@ -250,7 +254,7 @@ func (o *OidcConfiguration) GetClaimsSupportedOk() ([]string, bool) { // HasClaimsSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasClaimsSupported() bool { - if o != nil && o.ClaimsSupported != nil { + if o != nil && !IsNil(o.ClaimsSupported) { return true } @@ -264,7 +268,7 @@ func (o *OidcConfiguration) SetClaimsSupported(v []string) { // GetCodeChallengeMethodsSupported returns the CodeChallengeMethodsSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetCodeChallengeMethodsSupported() []string { - if o == nil || o.CodeChallengeMethodsSupported == nil { + if o == nil || IsNil(o.CodeChallengeMethodsSupported) { var ret []string return ret } @@ -274,7 +278,7 @@ func (o *OidcConfiguration) GetCodeChallengeMethodsSupported() []string { // GetCodeChallengeMethodsSupportedOk returns a tuple with the CodeChallengeMethodsSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetCodeChallengeMethodsSupportedOk() ([]string, bool) { - if o == nil || o.CodeChallengeMethodsSupported == nil { + if o == nil || IsNil(o.CodeChallengeMethodsSupported) { return nil, false } return o.CodeChallengeMethodsSupported, true @@ -282,7 +286,7 @@ func (o *OidcConfiguration) GetCodeChallengeMethodsSupportedOk() ([]string, bool // HasCodeChallengeMethodsSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasCodeChallengeMethodsSupported() bool { - if o != nil && o.CodeChallengeMethodsSupported != nil { + if o != nil && !IsNil(o.CodeChallengeMethodsSupported) { return true } @@ -296,7 +300,7 @@ func (o *OidcConfiguration) SetCodeChallengeMethodsSupported(v []string) { // GetCredentialsEndpointDraft00 returns the CredentialsEndpointDraft00 field value if set, zero value otherwise. func (o *OidcConfiguration) GetCredentialsEndpointDraft00() string { - if o == nil || o.CredentialsEndpointDraft00 == nil { + if o == nil || IsNil(o.CredentialsEndpointDraft00) { var ret string return ret } @@ -306,7 +310,7 @@ func (o *OidcConfiguration) GetCredentialsEndpointDraft00() string { // GetCredentialsEndpointDraft00Ok returns a tuple with the CredentialsEndpointDraft00 field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetCredentialsEndpointDraft00Ok() (*string, bool) { - if o == nil || o.CredentialsEndpointDraft00 == nil { + if o == nil || IsNil(o.CredentialsEndpointDraft00) { return nil, false } return o.CredentialsEndpointDraft00, true @@ -314,7 +318,7 @@ func (o *OidcConfiguration) GetCredentialsEndpointDraft00Ok() (*string, bool) { // HasCredentialsEndpointDraft00 returns a boolean if a field has been set. func (o *OidcConfiguration) HasCredentialsEndpointDraft00() bool { - if o != nil && o.CredentialsEndpointDraft00 != nil { + if o != nil && !IsNil(o.CredentialsEndpointDraft00) { return true } @@ -328,7 +332,7 @@ func (o *OidcConfiguration) SetCredentialsEndpointDraft00(v string) { // GetCredentialsSupportedDraft00 returns the CredentialsSupportedDraft00 field value if set, zero value otherwise. func (o *OidcConfiguration) GetCredentialsSupportedDraft00() []CredentialSupportedDraft00 { - if o == nil || o.CredentialsSupportedDraft00 == nil { + if o == nil || IsNil(o.CredentialsSupportedDraft00) { var ret []CredentialSupportedDraft00 return ret } @@ -338,7 +342,7 @@ func (o *OidcConfiguration) GetCredentialsSupportedDraft00() []CredentialSupport // GetCredentialsSupportedDraft00Ok returns a tuple with the CredentialsSupportedDraft00 field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetCredentialsSupportedDraft00Ok() ([]CredentialSupportedDraft00, bool) { - if o == nil || o.CredentialsSupportedDraft00 == nil { + if o == nil || IsNil(o.CredentialsSupportedDraft00) { return nil, false } return o.CredentialsSupportedDraft00, true @@ -346,7 +350,7 @@ func (o *OidcConfiguration) GetCredentialsSupportedDraft00Ok() ([]CredentialSupp // HasCredentialsSupportedDraft00 returns a boolean if a field has been set. func (o *OidcConfiguration) HasCredentialsSupportedDraft00() bool { - if o != nil && o.CredentialsSupportedDraft00 != nil { + if o != nil && !IsNil(o.CredentialsSupportedDraft00) { return true } @@ -360,7 +364,7 @@ func (o *OidcConfiguration) SetCredentialsSupportedDraft00(v []CredentialSupport // GetEndSessionEndpoint returns the EndSessionEndpoint field value if set, zero value otherwise. func (o *OidcConfiguration) GetEndSessionEndpoint() string { - if o == nil || o.EndSessionEndpoint == nil { + if o == nil || IsNil(o.EndSessionEndpoint) { var ret string return ret } @@ -370,7 +374,7 @@ func (o *OidcConfiguration) GetEndSessionEndpoint() string { // GetEndSessionEndpointOk returns a tuple with the EndSessionEndpoint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetEndSessionEndpointOk() (*string, bool) { - if o == nil || o.EndSessionEndpoint == nil { + if o == nil || IsNil(o.EndSessionEndpoint) { return nil, false } return o.EndSessionEndpoint, true @@ -378,7 +382,7 @@ func (o *OidcConfiguration) GetEndSessionEndpointOk() (*string, bool) { // HasEndSessionEndpoint returns a boolean if a field has been set. func (o *OidcConfiguration) HasEndSessionEndpoint() bool { - if o != nil && o.EndSessionEndpoint != nil { + if o != nil && !IsNil(o.EndSessionEndpoint) { return true } @@ -392,7 +396,7 @@ func (o *OidcConfiguration) SetEndSessionEndpoint(v string) { // GetFrontchannelLogoutSessionSupported returns the FrontchannelLogoutSessionSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetFrontchannelLogoutSessionSupported() bool { - if o == nil || o.FrontchannelLogoutSessionSupported == nil { + if o == nil || IsNil(o.FrontchannelLogoutSessionSupported) { var ret bool return ret } @@ -402,7 +406,7 @@ func (o *OidcConfiguration) GetFrontchannelLogoutSessionSupported() bool { // GetFrontchannelLogoutSessionSupportedOk returns a tuple with the FrontchannelLogoutSessionSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetFrontchannelLogoutSessionSupportedOk() (*bool, bool) { - if o == nil || o.FrontchannelLogoutSessionSupported == nil { + if o == nil || IsNil(o.FrontchannelLogoutSessionSupported) { return nil, false } return o.FrontchannelLogoutSessionSupported, true @@ -410,7 +414,7 @@ func (o *OidcConfiguration) GetFrontchannelLogoutSessionSupportedOk() (*bool, bo // HasFrontchannelLogoutSessionSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasFrontchannelLogoutSessionSupported() bool { - if o != nil && o.FrontchannelLogoutSessionSupported != nil { + if o != nil && !IsNil(o.FrontchannelLogoutSessionSupported) { return true } @@ -424,7 +428,7 @@ func (o *OidcConfiguration) SetFrontchannelLogoutSessionSupported(v bool) { // GetFrontchannelLogoutSupported returns the FrontchannelLogoutSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetFrontchannelLogoutSupported() bool { - if o == nil || o.FrontchannelLogoutSupported == nil { + if o == nil || IsNil(o.FrontchannelLogoutSupported) { var ret bool return ret } @@ -434,7 +438,7 @@ func (o *OidcConfiguration) GetFrontchannelLogoutSupported() bool { // GetFrontchannelLogoutSupportedOk returns a tuple with the FrontchannelLogoutSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetFrontchannelLogoutSupportedOk() (*bool, bool) { - if o == nil || o.FrontchannelLogoutSupported == nil { + if o == nil || IsNil(o.FrontchannelLogoutSupported) { return nil, false } return o.FrontchannelLogoutSupported, true @@ -442,7 +446,7 @@ func (o *OidcConfiguration) GetFrontchannelLogoutSupportedOk() (*bool, bool) { // HasFrontchannelLogoutSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasFrontchannelLogoutSupported() bool { - if o != nil && o.FrontchannelLogoutSupported != nil { + if o != nil && !IsNil(o.FrontchannelLogoutSupported) { return true } @@ -456,7 +460,7 @@ func (o *OidcConfiguration) SetFrontchannelLogoutSupported(v bool) { // GetGrantTypesSupported returns the GrantTypesSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetGrantTypesSupported() []string { - if o == nil || o.GrantTypesSupported == nil { + if o == nil || IsNil(o.GrantTypesSupported) { var ret []string return ret } @@ -466,7 +470,7 @@ func (o *OidcConfiguration) GetGrantTypesSupported() []string { // GetGrantTypesSupportedOk returns a tuple with the GrantTypesSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetGrantTypesSupportedOk() ([]string, bool) { - if o == nil || o.GrantTypesSupported == nil { + if o == nil || IsNil(o.GrantTypesSupported) { return nil, false } return o.GrantTypesSupported, true @@ -474,7 +478,7 @@ func (o *OidcConfiguration) GetGrantTypesSupportedOk() ([]string, bool) { // HasGrantTypesSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasGrantTypesSupported() bool { - if o != nil && o.GrantTypesSupported != nil { + if o != nil && !IsNil(o.GrantTypesSupported) { return true } @@ -584,7 +588,7 @@ func (o *OidcConfiguration) SetJwksUri(v string) { // GetRegistrationEndpoint returns the RegistrationEndpoint field value if set, zero value otherwise. func (o *OidcConfiguration) GetRegistrationEndpoint() string { - if o == nil || o.RegistrationEndpoint == nil { + if o == nil || IsNil(o.RegistrationEndpoint) { var ret string return ret } @@ -594,7 +598,7 @@ func (o *OidcConfiguration) GetRegistrationEndpoint() string { // GetRegistrationEndpointOk returns a tuple with the RegistrationEndpoint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetRegistrationEndpointOk() (*string, bool) { - if o == nil || o.RegistrationEndpoint == nil { + if o == nil || IsNil(o.RegistrationEndpoint) { return nil, false } return o.RegistrationEndpoint, true @@ -602,7 +606,7 @@ func (o *OidcConfiguration) GetRegistrationEndpointOk() (*string, bool) { // HasRegistrationEndpoint returns a boolean if a field has been set. func (o *OidcConfiguration) HasRegistrationEndpoint() bool { - if o != nil && o.RegistrationEndpoint != nil { + if o != nil && !IsNil(o.RegistrationEndpoint) { return true } @@ -616,7 +620,7 @@ func (o *OidcConfiguration) SetRegistrationEndpoint(v string) { // GetRequestObjectSigningAlgValuesSupported returns the RequestObjectSigningAlgValuesSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetRequestObjectSigningAlgValuesSupported() []string { - if o == nil || o.RequestObjectSigningAlgValuesSupported == nil { + if o == nil || IsNil(o.RequestObjectSigningAlgValuesSupported) { var ret []string return ret } @@ -626,7 +630,7 @@ func (o *OidcConfiguration) GetRequestObjectSigningAlgValuesSupported() []string // GetRequestObjectSigningAlgValuesSupportedOk returns a tuple with the RequestObjectSigningAlgValuesSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetRequestObjectSigningAlgValuesSupportedOk() ([]string, bool) { - if o == nil || o.RequestObjectSigningAlgValuesSupported == nil { + if o == nil || IsNil(o.RequestObjectSigningAlgValuesSupported) { return nil, false } return o.RequestObjectSigningAlgValuesSupported, true @@ -634,7 +638,7 @@ func (o *OidcConfiguration) GetRequestObjectSigningAlgValuesSupportedOk() ([]str // HasRequestObjectSigningAlgValuesSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasRequestObjectSigningAlgValuesSupported() bool { - if o != nil && o.RequestObjectSigningAlgValuesSupported != nil { + if o != nil && !IsNil(o.RequestObjectSigningAlgValuesSupported) { return true } @@ -648,7 +652,7 @@ func (o *OidcConfiguration) SetRequestObjectSigningAlgValuesSupported(v []string // GetRequestParameterSupported returns the RequestParameterSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetRequestParameterSupported() bool { - if o == nil || o.RequestParameterSupported == nil { + if o == nil || IsNil(o.RequestParameterSupported) { var ret bool return ret } @@ -658,7 +662,7 @@ func (o *OidcConfiguration) GetRequestParameterSupported() bool { // GetRequestParameterSupportedOk returns a tuple with the RequestParameterSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetRequestParameterSupportedOk() (*bool, bool) { - if o == nil || o.RequestParameterSupported == nil { + if o == nil || IsNil(o.RequestParameterSupported) { return nil, false } return o.RequestParameterSupported, true @@ -666,7 +670,7 @@ func (o *OidcConfiguration) GetRequestParameterSupportedOk() (*bool, bool) { // HasRequestParameterSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasRequestParameterSupported() bool { - if o != nil && o.RequestParameterSupported != nil { + if o != nil && !IsNil(o.RequestParameterSupported) { return true } @@ -680,7 +684,7 @@ func (o *OidcConfiguration) SetRequestParameterSupported(v bool) { // GetRequestUriParameterSupported returns the RequestUriParameterSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetRequestUriParameterSupported() bool { - if o == nil || o.RequestUriParameterSupported == nil { + if o == nil || IsNil(o.RequestUriParameterSupported) { var ret bool return ret } @@ -690,7 +694,7 @@ func (o *OidcConfiguration) GetRequestUriParameterSupported() bool { // GetRequestUriParameterSupportedOk returns a tuple with the RequestUriParameterSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetRequestUriParameterSupportedOk() (*bool, bool) { - if o == nil || o.RequestUriParameterSupported == nil { + if o == nil || IsNil(o.RequestUriParameterSupported) { return nil, false } return o.RequestUriParameterSupported, true @@ -698,7 +702,7 @@ func (o *OidcConfiguration) GetRequestUriParameterSupportedOk() (*bool, bool) { // HasRequestUriParameterSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasRequestUriParameterSupported() bool { - if o != nil && o.RequestUriParameterSupported != nil { + if o != nil && !IsNil(o.RequestUriParameterSupported) { return true } @@ -712,7 +716,7 @@ func (o *OidcConfiguration) SetRequestUriParameterSupported(v bool) { // GetRequireRequestUriRegistration returns the RequireRequestUriRegistration field value if set, zero value otherwise. func (o *OidcConfiguration) GetRequireRequestUriRegistration() bool { - if o == nil || o.RequireRequestUriRegistration == nil { + if o == nil || IsNil(o.RequireRequestUriRegistration) { var ret bool return ret } @@ -722,7 +726,7 @@ func (o *OidcConfiguration) GetRequireRequestUriRegistration() bool { // GetRequireRequestUriRegistrationOk returns a tuple with the RequireRequestUriRegistration field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetRequireRequestUriRegistrationOk() (*bool, bool) { - if o == nil || o.RequireRequestUriRegistration == nil { + if o == nil || IsNil(o.RequireRequestUriRegistration) { return nil, false } return o.RequireRequestUriRegistration, true @@ -730,7 +734,7 @@ func (o *OidcConfiguration) GetRequireRequestUriRegistrationOk() (*bool, bool) { // HasRequireRequestUriRegistration returns a boolean if a field has been set. func (o *OidcConfiguration) HasRequireRequestUriRegistration() bool { - if o != nil && o.RequireRequestUriRegistration != nil { + if o != nil && !IsNil(o.RequireRequestUriRegistration) { return true } @@ -744,7 +748,7 @@ func (o *OidcConfiguration) SetRequireRequestUriRegistration(v bool) { // GetResponseModesSupported returns the ResponseModesSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetResponseModesSupported() []string { - if o == nil || o.ResponseModesSupported == nil { + if o == nil || IsNil(o.ResponseModesSupported) { var ret []string return ret } @@ -754,7 +758,7 @@ func (o *OidcConfiguration) GetResponseModesSupported() []string { // GetResponseModesSupportedOk returns a tuple with the ResponseModesSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetResponseModesSupportedOk() ([]string, bool) { - if o == nil || o.ResponseModesSupported == nil { + if o == nil || IsNil(o.ResponseModesSupported) { return nil, false } return o.ResponseModesSupported, true @@ -762,7 +766,7 @@ func (o *OidcConfiguration) GetResponseModesSupportedOk() ([]string, bool) { // HasResponseModesSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasResponseModesSupported() bool { - if o != nil && o.ResponseModesSupported != nil { + if o != nil && !IsNil(o.ResponseModesSupported) { return true } @@ -800,7 +804,7 @@ func (o *OidcConfiguration) SetResponseTypesSupported(v []string) { // GetRevocationEndpoint returns the RevocationEndpoint field value if set, zero value otherwise. func (o *OidcConfiguration) GetRevocationEndpoint() string { - if o == nil || o.RevocationEndpoint == nil { + if o == nil || IsNil(o.RevocationEndpoint) { var ret string return ret } @@ -810,7 +814,7 @@ func (o *OidcConfiguration) GetRevocationEndpoint() string { // GetRevocationEndpointOk returns a tuple with the RevocationEndpoint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetRevocationEndpointOk() (*string, bool) { - if o == nil || o.RevocationEndpoint == nil { + if o == nil || IsNil(o.RevocationEndpoint) { return nil, false } return o.RevocationEndpoint, true @@ -818,7 +822,7 @@ func (o *OidcConfiguration) GetRevocationEndpointOk() (*string, bool) { // HasRevocationEndpoint returns a boolean if a field has been set. func (o *OidcConfiguration) HasRevocationEndpoint() bool { - if o != nil && o.RevocationEndpoint != nil { + if o != nil && !IsNil(o.RevocationEndpoint) { return true } @@ -832,7 +836,7 @@ func (o *OidcConfiguration) SetRevocationEndpoint(v string) { // GetScopesSupported returns the ScopesSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetScopesSupported() []string { - if o == nil || o.ScopesSupported == nil { + if o == nil || IsNil(o.ScopesSupported) { var ret []string return ret } @@ -842,7 +846,7 @@ func (o *OidcConfiguration) GetScopesSupported() []string { // GetScopesSupportedOk returns a tuple with the ScopesSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetScopesSupportedOk() ([]string, bool) { - if o == nil || o.ScopesSupported == nil { + if o == nil || IsNil(o.ScopesSupported) { return nil, false } return o.ScopesSupported, true @@ -850,7 +854,7 @@ func (o *OidcConfiguration) GetScopesSupportedOk() ([]string, bool) { // HasScopesSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasScopesSupported() bool { - if o != nil && o.ScopesSupported != nil { + if o != nil && !IsNil(o.ScopesSupported) { return true } @@ -912,7 +916,7 @@ func (o *OidcConfiguration) SetTokenEndpoint(v string) { // GetTokenEndpointAuthMethodsSupported returns the TokenEndpointAuthMethodsSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetTokenEndpointAuthMethodsSupported() []string { - if o == nil || o.TokenEndpointAuthMethodsSupported == nil { + if o == nil || IsNil(o.TokenEndpointAuthMethodsSupported) { var ret []string return ret } @@ -922,7 +926,7 @@ func (o *OidcConfiguration) GetTokenEndpointAuthMethodsSupported() []string { // GetTokenEndpointAuthMethodsSupportedOk returns a tuple with the TokenEndpointAuthMethodsSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetTokenEndpointAuthMethodsSupportedOk() ([]string, bool) { - if o == nil || o.TokenEndpointAuthMethodsSupported == nil { + if o == nil || IsNil(o.TokenEndpointAuthMethodsSupported) { return nil, false } return o.TokenEndpointAuthMethodsSupported, true @@ -930,7 +934,7 @@ func (o *OidcConfiguration) GetTokenEndpointAuthMethodsSupportedOk() ([]string, // HasTokenEndpointAuthMethodsSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasTokenEndpointAuthMethodsSupported() bool { - if o != nil && o.TokenEndpointAuthMethodsSupported != nil { + if o != nil && !IsNil(o.TokenEndpointAuthMethodsSupported) { return true } @@ -944,7 +948,7 @@ func (o *OidcConfiguration) SetTokenEndpointAuthMethodsSupported(v []string) { // GetUserinfoEndpoint returns the UserinfoEndpoint field value if set, zero value otherwise. func (o *OidcConfiguration) GetUserinfoEndpoint() string { - if o == nil || o.UserinfoEndpoint == nil { + if o == nil || IsNil(o.UserinfoEndpoint) { var ret string return ret } @@ -954,7 +958,7 @@ func (o *OidcConfiguration) GetUserinfoEndpoint() string { // GetUserinfoEndpointOk returns a tuple with the UserinfoEndpoint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetUserinfoEndpointOk() (*string, bool) { - if o == nil || o.UserinfoEndpoint == nil { + if o == nil || IsNil(o.UserinfoEndpoint) { return nil, false } return o.UserinfoEndpoint, true @@ -962,7 +966,7 @@ func (o *OidcConfiguration) GetUserinfoEndpointOk() (*string, bool) { // HasUserinfoEndpoint returns a boolean if a field has been set. func (o *OidcConfiguration) HasUserinfoEndpoint() bool { - if o != nil && o.UserinfoEndpoint != nil { + if o != nil && !IsNil(o.UserinfoEndpoint) { return true } @@ -1000,7 +1004,7 @@ func (o *OidcConfiguration) SetUserinfoSignedResponseAlg(v []string) { // GetUserinfoSigningAlgValuesSupported returns the UserinfoSigningAlgValuesSupported field value if set, zero value otherwise. func (o *OidcConfiguration) GetUserinfoSigningAlgValuesSupported() []string { - if o == nil || o.UserinfoSigningAlgValuesSupported == nil { + if o == nil || IsNil(o.UserinfoSigningAlgValuesSupported) { var ret []string return ret } @@ -1010,7 +1014,7 @@ func (o *OidcConfiguration) GetUserinfoSigningAlgValuesSupported() []string { // GetUserinfoSigningAlgValuesSupportedOk returns a tuple with the UserinfoSigningAlgValuesSupported field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcConfiguration) GetUserinfoSigningAlgValuesSupportedOk() ([]string, bool) { - if o == nil || o.UserinfoSigningAlgValuesSupported == nil { + if o == nil || IsNil(o.UserinfoSigningAlgValuesSupported) { return nil, false } return o.UserinfoSigningAlgValuesSupported, true @@ -1018,7 +1022,7 @@ func (o *OidcConfiguration) GetUserinfoSigningAlgValuesSupportedOk() ([]string, // HasUserinfoSigningAlgValuesSupported returns a boolean if a field has been set. func (o *OidcConfiguration) HasUserinfoSigningAlgValuesSupported() bool { - if o != nil && o.UserinfoSigningAlgValuesSupported != nil { + if o != nil && !IsNil(o.UserinfoSigningAlgValuesSupported) { return true } @@ -1031,98 +1035,88 @@ func (o *OidcConfiguration) SetUserinfoSigningAlgValuesSupported(v []string) { } func (o OidcConfiguration) MarshalJSON() ([]byte, error) { - toSerialize := map[string]interface{}{} - if true { - toSerialize["authorization_endpoint"] = o.AuthorizationEndpoint + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err } - if o.BackchannelLogoutSessionSupported != nil { + return json.Marshal(toSerialize) +} + +func (o OidcConfiguration) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["authorization_endpoint"] = o.AuthorizationEndpoint + if !IsNil(o.BackchannelLogoutSessionSupported) { toSerialize["backchannel_logout_session_supported"] = o.BackchannelLogoutSessionSupported } - if o.BackchannelLogoutSupported != nil { + if !IsNil(o.BackchannelLogoutSupported) { toSerialize["backchannel_logout_supported"] = o.BackchannelLogoutSupported } - if o.ClaimsParameterSupported != nil { + if !IsNil(o.ClaimsParameterSupported) { toSerialize["claims_parameter_supported"] = o.ClaimsParameterSupported } - if o.ClaimsSupported != nil { + if !IsNil(o.ClaimsSupported) { toSerialize["claims_supported"] = o.ClaimsSupported } - if o.CodeChallengeMethodsSupported != nil { + if !IsNil(o.CodeChallengeMethodsSupported) { toSerialize["code_challenge_methods_supported"] = o.CodeChallengeMethodsSupported } - if o.CredentialsEndpointDraft00 != nil { + if !IsNil(o.CredentialsEndpointDraft00) { toSerialize["credentials_endpoint_draft_00"] = o.CredentialsEndpointDraft00 } - if o.CredentialsSupportedDraft00 != nil { + if !IsNil(o.CredentialsSupportedDraft00) { toSerialize["credentials_supported_draft_00"] = o.CredentialsSupportedDraft00 } - if o.EndSessionEndpoint != nil { + if !IsNil(o.EndSessionEndpoint) { toSerialize["end_session_endpoint"] = o.EndSessionEndpoint } - if o.FrontchannelLogoutSessionSupported != nil { + if !IsNil(o.FrontchannelLogoutSessionSupported) { toSerialize["frontchannel_logout_session_supported"] = o.FrontchannelLogoutSessionSupported } - if o.FrontchannelLogoutSupported != nil { + if !IsNil(o.FrontchannelLogoutSupported) { toSerialize["frontchannel_logout_supported"] = o.FrontchannelLogoutSupported } - if o.GrantTypesSupported != nil { + if !IsNil(o.GrantTypesSupported) { toSerialize["grant_types_supported"] = o.GrantTypesSupported } - if true { - toSerialize["id_token_signed_response_alg"] = o.IdTokenSignedResponseAlg - } - if true { - toSerialize["id_token_signing_alg_values_supported"] = o.IdTokenSigningAlgValuesSupported - } - if true { - toSerialize["issuer"] = o.Issuer - } - if true { - toSerialize["jwks_uri"] = o.JwksUri - } - if o.RegistrationEndpoint != nil { + toSerialize["id_token_signed_response_alg"] = o.IdTokenSignedResponseAlg + toSerialize["id_token_signing_alg_values_supported"] = o.IdTokenSigningAlgValuesSupported + toSerialize["issuer"] = o.Issuer + toSerialize["jwks_uri"] = o.JwksUri + if !IsNil(o.RegistrationEndpoint) { toSerialize["registration_endpoint"] = o.RegistrationEndpoint } - if o.RequestObjectSigningAlgValuesSupported != nil { + if !IsNil(o.RequestObjectSigningAlgValuesSupported) { toSerialize["request_object_signing_alg_values_supported"] = o.RequestObjectSigningAlgValuesSupported } - if o.RequestParameterSupported != nil { + if !IsNil(o.RequestParameterSupported) { toSerialize["request_parameter_supported"] = o.RequestParameterSupported } - if o.RequestUriParameterSupported != nil { + if !IsNil(o.RequestUriParameterSupported) { toSerialize["request_uri_parameter_supported"] = o.RequestUriParameterSupported } - if o.RequireRequestUriRegistration != nil { + if !IsNil(o.RequireRequestUriRegistration) { toSerialize["require_request_uri_registration"] = o.RequireRequestUriRegistration } - if o.ResponseModesSupported != nil { + if !IsNil(o.ResponseModesSupported) { toSerialize["response_modes_supported"] = o.ResponseModesSupported } - if true { - toSerialize["response_types_supported"] = o.ResponseTypesSupported - } - if o.RevocationEndpoint != nil { + toSerialize["response_types_supported"] = o.ResponseTypesSupported + if !IsNil(o.RevocationEndpoint) { toSerialize["revocation_endpoint"] = o.RevocationEndpoint } - if o.ScopesSupported != nil { + if !IsNil(o.ScopesSupported) { toSerialize["scopes_supported"] = o.ScopesSupported } - if true { - toSerialize["subject_types_supported"] = o.SubjectTypesSupported - } - if true { - toSerialize["token_endpoint"] = o.TokenEndpoint - } - if o.TokenEndpointAuthMethodsSupported != nil { + toSerialize["subject_types_supported"] = o.SubjectTypesSupported + toSerialize["token_endpoint"] = o.TokenEndpoint + if !IsNil(o.TokenEndpointAuthMethodsSupported) { toSerialize["token_endpoint_auth_methods_supported"] = o.TokenEndpointAuthMethodsSupported } - if o.UserinfoEndpoint != nil { + if !IsNil(o.UserinfoEndpoint) { toSerialize["userinfo_endpoint"] = o.UserinfoEndpoint } - if true { - toSerialize["userinfo_signed_response_alg"] = o.UserinfoSignedResponseAlg - } - if o.UserinfoSigningAlgValuesSupported != nil { + toSerialize["userinfo_signed_response_alg"] = o.UserinfoSignedResponseAlg + if !IsNil(o.UserinfoSigningAlgValuesSupported) { toSerialize["userinfo_signing_alg_values_supported"] = o.UserinfoSigningAlgValuesSupported } @@ -1130,16 +1124,49 @@ func (o OidcConfiguration) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OidcConfiguration) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "authorization_endpoint", + "id_token_signed_response_alg", + "id_token_signing_alg_values_supported", + "issuer", + "jwks_uri", + "response_types_supported", + "subject_types_supported", + "token_endpoint", + "userinfo_signed_response_alg", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + varOidcConfiguration := _OidcConfiguration{} - if err = json.Unmarshal(bytes, &varOidcConfiguration); err == nil { - *o = OidcConfiguration(varOidcConfiguration) + err = json.Unmarshal(bytes, &varOidcConfiguration) + + if err != nil { + return err } + *o = OidcConfiguration(varOidcConfiguration) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_oidc_user_info.go b/clients/hydra/go/model_oidc_user_info.go index 876fd809bb9..771848818a1 100644 --- a/clients/hydra/go/model_oidc_user_info.go +++ b/clients/hydra/go/model_oidc_user_info.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the OidcUserInfo type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &OidcUserInfo{} + // OidcUserInfo OpenID Connect Userinfo type OidcUserInfo struct { // End-User's birthday, represented as an ISO 8601:2004 [ISO8601‑2004] YYYY-MM-DD format. The year MAY be 0000, indicating that it is omitted. To represent only the year, YYYY format is allowed. Note that depending on the underlying platform's date related function, providing just year can result in varying month and day, so the implementers need to take this factor into account to correctly process the dates. @@ -79,7 +82,7 @@ func NewOidcUserInfoWithDefaults() *OidcUserInfo { // GetBirthdate returns the Birthdate field value if set, zero value otherwise. func (o *OidcUserInfo) GetBirthdate() string { - if o == nil || o.Birthdate == nil { + if o == nil || IsNil(o.Birthdate) { var ret string return ret } @@ -89,7 +92,7 @@ func (o *OidcUserInfo) GetBirthdate() string { // GetBirthdateOk returns a tuple with the Birthdate field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetBirthdateOk() (*string, bool) { - if o == nil || o.Birthdate == nil { + if o == nil || IsNil(o.Birthdate) { return nil, false } return o.Birthdate, true @@ -97,7 +100,7 @@ func (o *OidcUserInfo) GetBirthdateOk() (*string, bool) { // HasBirthdate returns a boolean if a field has been set. func (o *OidcUserInfo) HasBirthdate() bool { - if o != nil && o.Birthdate != nil { + if o != nil && !IsNil(o.Birthdate) { return true } @@ -111,7 +114,7 @@ func (o *OidcUserInfo) SetBirthdate(v string) { // GetEmail returns the Email field value if set, zero value otherwise. func (o *OidcUserInfo) GetEmail() string { - if o == nil || o.Email == nil { + if o == nil || IsNil(o.Email) { var ret string return ret } @@ -121,7 +124,7 @@ func (o *OidcUserInfo) GetEmail() string { // GetEmailOk returns a tuple with the Email field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetEmailOk() (*string, bool) { - if o == nil || o.Email == nil { + if o == nil || IsNil(o.Email) { return nil, false } return o.Email, true @@ -129,7 +132,7 @@ func (o *OidcUserInfo) GetEmailOk() (*string, bool) { // HasEmail returns a boolean if a field has been set. func (o *OidcUserInfo) HasEmail() bool { - if o != nil && o.Email != nil { + if o != nil && !IsNil(o.Email) { return true } @@ -143,7 +146,7 @@ func (o *OidcUserInfo) SetEmail(v string) { // GetEmailVerified returns the EmailVerified field value if set, zero value otherwise. func (o *OidcUserInfo) GetEmailVerified() bool { - if o == nil || o.EmailVerified == nil { + if o == nil || IsNil(o.EmailVerified) { var ret bool return ret } @@ -153,7 +156,7 @@ func (o *OidcUserInfo) GetEmailVerified() bool { // GetEmailVerifiedOk returns a tuple with the EmailVerified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetEmailVerifiedOk() (*bool, bool) { - if o == nil || o.EmailVerified == nil { + if o == nil || IsNil(o.EmailVerified) { return nil, false } return o.EmailVerified, true @@ -161,7 +164,7 @@ func (o *OidcUserInfo) GetEmailVerifiedOk() (*bool, bool) { // HasEmailVerified returns a boolean if a field has been set. func (o *OidcUserInfo) HasEmailVerified() bool { - if o != nil && o.EmailVerified != nil { + if o != nil && !IsNil(o.EmailVerified) { return true } @@ -175,7 +178,7 @@ func (o *OidcUserInfo) SetEmailVerified(v bool) { // GetFamilyName returns the FamilyName field value if set, zero value otherwise. func (o *OidcUserInfo) GetFamilyName() string { - if o == nil || o.FamilyName == nil { + if o == nil || IsNil(o.FamilyName) { var ret string return ret } @@ -185,7 +188,7 @@ func (o *OidcUserInfo) GetFamilyName() string { // GetFamilyNameOk returns a tuple with the FamilyName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetFamilyNameOk() (*string, bool) { - if o == nil || o.FamilyName == nil { + if o == nil || IsNil(o.FamilyName) { return nil, false } return o.FamilyName, true @@ -193,7 +196,7 @@ func (o *OidcUserInfo) GetFamilyNameOk() (*string, bool) { // HasFamilyName returns a boolean if a field has been set. func (o *OidcUserInfo) HasFamilyName() bool { - if o != nil && o.FamilyName != nil { + if o != nil && !IsNil(o.FamilyName) { return true } @@ -207,7 +210,7 @@ func (o *OidcUserInfo) SetFamilyName(v string) { // GetGender returns the Gender field value if set, zero value otherwise. func (o *OidcUserInfo) GetGender() string { - if o == nil || o.Gender == nil { + if o == nil || IsNil(o.Gender) { var ret string return ret } @@ -217,7 +220,7 @@ func (o *OidcUserInfo) GetGender() string { // GetGenderOk returns a tuple with the Gender field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetGenderOk() (*string, bool) { - if o == nil || o.Gender == nil { + if o == nil || IsNil(o.Gender) { return nil, false } return o.Gender, true @@ -225,7 +228,7 @@ func (o *OidcUserInfo) GetGenderOk() (*string, bool) { // HasGender returns a boolean if a field has been set. func (o *OidcUserInfo) HasGender() bool { - if o != nil && o.Gender != nil { + if o != nil && !IsNil(o.Gender) { return true } @@ -239,7 +242,7 @@ func (o *OidcUserInfo) SetGender(v string) { // GetGivenName returns the GivenName field value if set, zero value otherwise. func (o *OidcUserInfo) GetGivenName() string { - if o == nil || o.GivenName == nil { + if o == nil || IsNil(o.GivenName) { var ret string return ret } @@ -249,7 +252,7 @@ func (o *OidcUserInfo) GetGivenName() string { // GetGivenNameOk returns a tuple with the GivenName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetGivenNameOk() (*string, bool) { - if o == nil || o.GivenName == nil { + if o == nil || IsNil(o.GivenName) { return nil, false } return o.GivenName, true @@ -257,7 +260,7 @@ func (o *OidcUserInfo) GetGivenNameOk() (*string, bool) { // HasGivenName returns a boolean if a field has been set. func (o *OidcUserInfo) HasGivenName() bool { - if o != nil && o.GivenName != nil { + if o != nil && !IsNil(o.GivenName) { return true } @@ -271,7 +274,7 @@ func (o *OidcUserInfo) SetGivenName(v string) { // GetLocale returns the Locale field value if set, zero value otherwise. func (o *OidcUserInfo) GetLocale() string { - if o == nil || o.Locale == nil { + if o == nil || IsNil(o.Locale) { var ret string return ret } @@ -281,7 +284,7 @@ func (o *OidcUserInfo) GetLocale() string { // GetLocaleOk returns a tuple with the Locale field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetLocaleOk() (*string, bool) { - if o == nil || o.Locale == nil { + if o == nil || IsNil(o.Locale) { return nil, false } return o.Locale, true @@ -289,7 +292,7 @@ func (o *OidcUserInfo) GetLocaleOk() (*string, bool) { // HasLocale returns a boolean if a field has been set. func (o *OidcUserInfo) HasLocale() bool { - if o != nil && o.Locale != nil { + if o != nil && !IsNil(o.Locale) { return true } @@ -303,7 +306,7 @@ func (o *OidcUserInfo) SetLocale(v string) { // GetMiddleName returns the MiddleName field value if set, zero value otherwise. func (o *OidcUserInfo) GetMiddleName() string { - if o == nil || o.MiddleName == nil { + if o == nil || IsNil(o.MiddleName) { var ret string return ret } @@ -313,7 +316,7 @@ func (o *OidcUserInfo) GetMiddleName() string { // GetMiddleNameOk returns a tuple with the MiddleName field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetMiddleNameOk() (*string, bool) { - if o == nil || o.MiddleName == nil { + if o == nil || IsNil(o.MiddleName) { return nil, false } return o.MiddleName, true @@ -321,7 +324,7 @@ func (o *OidcUserInfo) GetMiddleNameOk() (*string, bool) { // HasMiddleName returns a boolean if a field has been set. func (o *OidcUserInfo) HasMiddleName() bool { - if o != nil && o.MiddleName != nil { + if o != nil && !IsNil(o.MiddleName) { return true } @@ -335,7 +338,7 @@ func (o *OidcUserInfo) SetMiddleName(v string) { // GetName returns the Name field value if set, zero value otherwise. func (o *OidcUserInfo) GetName() string { - if o == nil || o.Name == nil { + if o == nil || IsNil(o.Name) { var ret string return ret } @@ -345,7 +348,7 @@ func (o *OidcUserInfo) GetName() string { // GetNameOk returns a tuple with the Name field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetNameOk() (*string, bool) { - if o == nil || o.Name == nil { + if o == nil || IsNil(o.Name) { return nil, false } return o.Name, true @@ -353,7 +356,7 @@ func (o *OidcUserInfo) GetNameOk() (*string, bool) { // HasName returns a boolean if a field has been set. func (o *OidcUserInfo) HasName() bool { - if o != nil && o.Name != nil { + if o != nil && !IsNil(o.Name) { return true } @@ -367,7 +370,7 @@ func (o *OidcUserInfo) SetName(v string) { // GetNickname returns the Nickname field value if set, zero value otherwise. func (o *OidcUserInfo) GetNickname() string { - if o == nil || o.Nickname == nil { + if o == nil || IsNil(o.Nickname) { var ret string return ret } @@ -377,7 +380,7 @@ func (o *OidcUserInfo) GetNickname() string { // GetNicknameOk returns a tuple with the Nickname field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetNicknameOk() (*string, bool) { - if o == nil || o.Nickname == nil { + if o == nil || IsNil(o.Nickname) { return nil, false } return o.Nickname, true @@ -385,7 +388,7 @@ func (o *OidcUserInfo) GetNicknameOk() (*string, bool) { // HasNickname returns a boolean if a field has been set. func (o *OidcUserInfo) HasNickname() bool { - if o != nil && o.Nickname != nil { + if o != nil && !IsNil(o.Nickname) { return true } @@ -399,7 +402,7 @@ func (o *OidcUserInfo) SetNickname(v string) { // GetPhoneNumber returns the PhoneNumber field value if set, zero value otherwise. func (o *OidcUserInfo) GetPhoneNumber() string { - if o == nil || o.PhoneNumber == nil { + if o == nil || IsNil(o.PhoneNumber) { var ret string return ret } @@ -409,7 +412,7 @@ func (o *OidcUserInfo) GetPhoneNumber() string { // GetPhoneNumberOk returns a tuple with the PhoneNumber field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetPhoneNumberOk() (*string, bool) { - if o == nil || o.PhoneNumber == nil { + if o == nil || IsNil(o.PhoneNumber) { return nil, false } return o.PhoneNumber, true @@ -417,7 +420,7 @@ func (o *OidcUserInfo) GetPhoneNumberOk() (*string, bool) { // HasPhoneNumber returns a boolean if a field has been set. func (o *OidcUserInfo) HasPhoneNumber() bool { - if o != nil && o.PhoneNumber != nil { + if o != nil && !IsNil(o.PhoneNumber) { return true } @@ -431,7 +434,7 @@ func (o *OidcUserInfo) SetPhoneNumber(v string) { // GetPhoneNumberVerified returns the PhoneNumberVerified field value if set, zero value otherwise. func (o *OidcUserInfo) GetPhoneNumberVerified() bool { - if o == nil || o.PhoneNumberVerified == nil { + if o == nil || IsNil(o.PhoneNumberVerified) { var ret bool return ret } @@ -441,7 +444,7 @@ func (o *OidcUserInfo) GetPhoneNumberVerified() bool { // GetPhoneNumberVerifiedOk returns a tuple with the PhoneNumberVerified field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetPhoneNumberVerifiedOk() (*bool, bool) { - if o == nil || o.PhoneNumberVerified == nil { + if o == nil || IsNil(o.PhoneNumberVerified) { return nil, false } return o.PhoneNumberVerified, true @@ -449,7 +452,7 @@ func (o *OidcUserInfo) GetPhoneNumberVerifiedOk() (*bool, bool) { // HasPhoneNumberVerified returns a boolean if a field has been set. func (o *OidcUserInfo) HasPhoneNumberVerified() bool { - if o != nil && o.PhoneNumberVerified != nil { + if o != nil && !IsNil(o.PhoneNumberVerified) { return true } @@ -463,7 +466,7 @@ func (o *OidcUserInfo) SetPhoneNumberVerified(v bool) { // GetPicture returns the Picture field value if set, zero value otherwise. func (o *OidcUserInfo) GetPicture() string { - if o == nil || o.Picture == nil { + if o == nil || IsNil(o.Picture) { var ret string return ret } @@ -473,7 +476,7 @@ func (o *OidcUserInfo) GetPicture() string { // GetPictureOk returns a tuple with the Picture field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetPictureOk() (*string, bool) { - if o == nil || o.Picture == nil { + if o == nil || IsNil(o.Picture) { return nil, false } return o.Picture, true @@ -481,7 +484,7 @@ func (o *OidcUserInfo) GetPictureOk() (*string, bool) { // HasPicture returns a boolean if a field has been set. func (o *OidcUserInfo) HasPicture() bool { - if o != nil && o.Picture != nil { + if o != nil && !IsNil(o.Picture) { return true } @@ -495,7 +498,7 @@ func (o *OidcUserInfo) SetPicture(v string) { // GetPreferredUsername returns the PreferredUsername field value if set, zero value otherwise. func (o *OidcUserInfo) GetPreferredUsername() string { - if o == nil || o.PreferredUsername == nil { + if o == nil || IsNil(o.PreferredUsername) { var ret string return ret } @@ -505,7 +508,7 @@ func (o *OidcUserInfo) GetPreferredUsername() string { // GetPreferredUsernameOk returns a tuple with the PreferredUsername field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetPreferredUsernameOk() (*string, bool) { - if o == nil || o.PreferredUsername == nil { + if o == nil || IsNil(o.PreferredUsername) { return nil, false } return o.PreferredUsername, true @@ -513,7 +516,7 @@ func (o *OidcUserInfo) GetPreferredUsernameOk() (*string, bool) { // HasPreferredUsername returns a boolean if a field has been set. func (o *OidcUserInfo) HasPreferredUsername() bool { - if o != nil && o.PreferredUsername != nil { + if o != nil && !IsNil(o.PreferredUsername) { return true } @@ -527,7 +530,7 @@ func (o *OidcUserInfo) SetPreferredUsername(v string) { // GetProfile returns the Profile field value if set, zero value otherwise. func (o *OidcUserInfo) GetProfile() string { - if o == nil || o.Profile == nil { + if o == nil || IsNil(o.Profile) { var ret string return ret } @@ -537,7 +540,7 @@ func (o *OidcUserInfo) GetProfile() string { // GetProfileOk returns a tuple with the Profile field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetProfileOk() (*string, bool) { - if o == nil || o.Profile == nil { + if o == nil || IsNil(o.Profile) { return nil, false } return o.Profile, true @@ -545,7 +548,7 @@ func (o *OidcUserInfo) GetProfileOk() (*string, bool) { // HasProfile returns a boolean if a field has been set. func (o *OidcUserInfo) HasProfile() bool { - if o != nil && o.Profile != nil { + if o != nil && !IsNil(o.Profile) { return true } @@ -559,7 +562,7 @@ func (o *OidcUserInfo) SetProfile(v string) { // GetSub returns the Sub field value if set, zero value otherwise. func (o *OidcUserInfo) GetSub() string { - if o == nil || o.Sub == nil { + if o == nil || IsNil(o.Sub) { var ret string return ret } @@ -569,7 +572,7 @@ func (o *OidcUserInfo) GetSub() string { // GetSubOk returns a tuple with the Sub field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetSubOk() (*string, bool) { - if o == nil || o.Sub == nil { + if o == nil || IsNil(o.Sub) { return nil, false } return o.Sub, true @@ -577,7 +580,7 @@ func (o *OidcUserInfo) GetSubOk() (*string, bool) { // HasSub returns a boolean if a field has been set. func (o *OidcUserInfo) HasSub() bool { - if o != nil && o.Sub != nil { + if o != nil && !IsNil(o.Sub) { return true } @@ -591,7 +594,7 @@ func (o *OidcUserInfo) SetSub(v string) { // GetUpdatedAt returns the UpdatedAt field value if set, zero value otherwise. func (o *OidcUserInfo) GetUpdatedAt() int64 { - if o == nil || o.UpdatedAt == nil { + if o == nil || IsNil(o.UpdatedAt) { var ret int64 return ret } @@ -601,7 +604,7 @@ func (o *OidcUserInfo) GetUpdatedAt() int64 { // GetUpdatedAtOk returns a tuple with the UpdatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetUpdatedAtOk() (*int64, bool) { - if o == nil || o.UpdatedAt == nil { + if o == nil || IsNil(o.UpdatedAt) { return nil, false } return o.UpdatedAt, true @@ -609,7 +612,7 @@ func (o *OidcUserInfo) GetUpdatedAtOk() (*int64, bool) { // HasUpdatedAt returns a boolean if a field has been set. func (o *OidcUserInfo) HasUpdatedAt() bool { - if o != nil && o.UpdatedAt != nil { + if o != nil && !IsNil(o.UpdatedAt) { return true } @@ -623,7 +626,7 @@ func (o *OidcUserInfo) SetUpdatedAt(v int64) { // GetWebsite returns the Website field value if set, zero value otherwise. func (o *OidcUserInfo) GetWebsite() string { - if o == nil || o.Website == nil { + if o == nil || IsNil(o.Website) { var ret string return ret } @@ -633,7 +636,7 @@ func (o *OidcUserInfo) GetWebsite() string { // GetWebsiteOk returns a tuple with the Website field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetWebsiteOk() (*string, bool) { - if o == nil || o.Website == nil { + if o == nil || IsNil(o.Website) { return nil, false } return o.Website, true @@ -641,7 +644,7 @@ func (o *OidcUserInfo) GetWebsiteOk() (*string, bool) { // HasWebsite returns a boolean if a field has been set. func (o *OidcUserInfo) HasWebsite() bool { - if o != nil && o.Website != nil { + if o != nil && !IsNil(o.Website) { return true } @@ -655,7 +658,7 @@ func (o *OidcUserInfo) SetWebsite(v string) { // GetZoneinfo returns the Zoneinfo field value if set, zero value otherwise. func (o *OidcUserInfo) GetZoneinfo() string { - if o == nil || o.Zoneinfo == nil { + if o == nil || IsNil(o.Zoneinfo) { var ret string return ret } @@ -665,7 +668,7 @@ func (o *OidcUserInfo) GetZoneinfo() string { // GetZoneinfoOk returns a tuple with the Zoneinfo field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *OidcUserInfo) GetZoneinfoOk() (*string, bool) { - if o == nil || o.Zoneinfo == nil { + if o == nil || IsNil(o.Zoneinfo) { return nil, false } return o.Zoneinfo, true @@ -673,7 +676,7 @@ func (o *OidcUserInfo) GetZoneinfoOk() (*string, bool) { // HasZoneinfo returns a boolean if a field has been set. func (o *OidcUserInfo) HasZoneinfo() bool { - if o != nil && o.Zoneinfo != nil { + if o != nil && !IsNil(o.Zoneinfo) { return true } @@ -686,62 +689,70 @@ func (o *OidcUserInfo) SetZoneinfo(v string) { } func (o OidcUserInfo) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o OidcUserInfo) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Birthdate != nil { + if !IsNil(o.Birthdate) { toSerialize["birthdate"] = o.Birthdate } - if o.Email != nil { + if !IsNil(o.Email) { toSerialize["email"] = o.Email } - if o.EmailVerified != nil { + if !IsNil(o.EmailVerified) { toSerialize["email_verified"] = o.EmailVerified } - if o.FamilyName != nil { + if !IsNil(o.FamilyName) { toSerialize["family_name"] = o.FamilyName } - if o.Gender != nil { + if !IsNil(o.Gender) { toSerialize["gender"] = o.Gender } - if o.GivenName != nil { + if !IsNil(o.GivenName) { toSerialize["given_name"] = o.GivenName } - if o.Locale != nil { + if !IsNil(o.Locale) { toSerialize["locale"] = o.Locale } - if o.MiddleName != nil { + if !IsNil(o.MiddleName) { toSerialize["middle_name"] = o.MiddleName } - if o.Name != nil { + if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if o.Nickname != nil { + if !IsNil(o.Nickname) { toSerialize["nickname"] = o.Nickname } - if o.PhoneNumber != nil { + if !IsNil(o.PhoneNumber) { toSerialize["phone_number"] = o.PhoneNumber } - if o.PhoneNumberVerified != nil { + if !IsNil(o.PhoneNumberVerified) { toSerialize["phone_number_verified"] = o.PhoneNumberVerified } - if o.Picture != nil { + if !IsNil(o.Picture) { toSerialize["picture"] = o.Picture } - if o.PreferredUsername != nil { + if !IsNil(o.PreferredUsername) { toSerialize["preferred_username"] = o.PreferredUsername } - if o.Profile != nil { + if !IsNil(o.Profile) { toSerialize["profile"] = o.Profile } - if o.Sub != nil { + if !IsNil(o.Sub) { toSerialize["sub"] = o.Sub } - if o.UpdatedAt != nil { + if !IsNil(o.UpdatedAt) { toSerialize["updated_at"] = o.UpdatedAt } - if o.Website != nil { + if !IsNil(o.Website) { toSerialize["website"] = o.Website } - if o.Zoneinfo != nil { + if !IsNil(o.Zoneinfo) { toSerialize["zoneinfo"] = o.Zoneinfo } @@ -749,16 +760,20 @@ func (o OidcUserInfo) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *OidcUserInfo) UnmarshalJSON(bytes []byte) (err error) { varOidcUserInfo := _OidcUserInfo{} - if err = json.Unmarshal(bytes, &varOidcUserInfo); err == nil { - *o = OidcUserInfo(varOidcUserInfo) + err = json.Unmarshal(bytes, &varOidcUserInfo) + + if err != nil { + return err } + *o = OidcUserInfo(varOidcUserInfo) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_pagination.go b/clients/hydra/go/model_pagination.go index 5eda3057e00..ab2274176fc 100644 --- a/clients/hydra/go/model_pagination.go +++ b/clients/hydra/go/model_pagination.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the Pagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Pagination{} + // Pagination struct for Pagination type Pagination struct { // Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). @@ -53,7 +56,7 @@ func NewPaginationWithDefaults() *Pagination { // GetPageSize returns the PageSize field value if set, zero value otherwise. func (o *Pagination) GetPageSize() int64 { - if o == nil || o.PageSize == nil { + if o == nil || IsNil(o.PageSize) { var ret int64 return ret } @@ -63,7 +66,7 @@ func (o *Pagination) GetPageSize() int64 { // GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Pagination) GetPageSizeOk() (*int64, bool) { - if o == nil || o.PageSize == nil { + if o == nil || IsNil(o.PageSize) { return nil, false } return o.PageSize, true @@ -71,7 +74,7 @@ func (o *Pagination) GetPageSizeOk() (*int64, bool) { // HasPageSize returns a boolean if a field has been set. func (o *Pagination) HasPageSize() bool { - if o != nil && o.PageSize != nil { + if o != nil && !IsNil(o.PageSize) { return true } @@ -85,7 +88,7 @@ func (o *Pagination) SetPageSize(v int64) { // GetPageToken returns the PageToken field value if set, zero value otherwise. func (o *Pagination) GetPageToken() string { - if o == nil || o.PageToken == nil { + if o == nil || IsNil(o.PageToken) { var ret string return ret } @@ -95,7 +98,7 @@ func (o *Pagination) GetPageToken() string { // GetPageTokenOk returns a tuple with the PageToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Pagination) GetPageTokenOk() (*string, bool) { - if o == nil || o.PageToken == nil { + if o == nil || IsNil(o.PageToken) { return nil, false } return o.PageToken, true @@ -103,7 +106,7 @@ func (o *Pagination) GetPageTokenOk() (*string, bool) { // HasPageToken returns a boolean if a field has been set. func (o *Pagination) HasPageToken() bool { - if o != nil && o.PageToken != nil { + if o != nil && !IsNil(o.PageToken) { return true } @@ -116,11 +119,19 @@ func (o *Pagination) SetPageToken(v string) { } func (o Pagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Pagination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.PageSize != nil { + if !IsNil(o.PageSize) { toSerialize["page_size"] = o.PageSize } - if o.PageToken != nil { + if !IsNil(o.PageToken) { toSerialize["page_token"] = o.PageToken } @@ -128,16 +139,20 @@ func (o Pagination) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *Pagination) UnmarshalJSON(bytes []byte) (err error) { varPagination := _Pagination{} - if err = json.Unmarshal(bytes, &varPagination); err == nil { - *o = Pagination(varPagination) + err = json.Unmarshal(bytes, &varPagination) + + if err != nil { + return err } + *o = Pagination(varPagination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_pagination_headers.go b/clients/hydra/go/model_pagination_headers.go index b9114d7bd3b..1778d7a8747 100644 --- a/clients/hydra/go/model_pagination_headers.go +++ b/clients/hydra/go/model_pagination_headers.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the PaginationHeaders type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginationHeaders{} + // PaginationHeaders struct for PaginationHeaders type PaginationHeaders struct { // The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). in: header @@ -45,7 +48,7 @@ func NewPaginationHeadersWithDefaults() *PaginationHeaders { // GetLink returns the Link field value if set, zero value otherwise. func (o *PaginationHeaders) GetLink() string { - if o == nil || o.Link == nil { + if o == nil || IsNil(o.Link) { var ret string return ret } @@ -55,7 +58,7 @@ func (o *PaginationHeaders) GetLink() string { // GetLinkOk returns a tuple with the Link field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PaginationHeaders) GetLinkOk() (*string, bool) { - if o == nil || o.Link == nil { + if o == nil || IsNil(o.Link) { return nil, false } return o.Link, true @@ -63,7 +66,7 @@ func (o *PaginationHeaders) GetLinkOk() (*string, bool) { // HasLink returns a boolean if a field has been set. func (o *PaginationHeaders) HasLink() bool { - if o != nil && o.Link != nil { + if o != nil && !IsNil(o.Link) { return true } @@ -77,7 +80,7 @@ func (o *PaginationHeaders) SetLink(v string) { // GetXTotalCount returns the XTotalCount field value if set, zero value otherwise. func (o *PaginationHeaders) GetXTotalCount() string { - if o == nil || o.XTotalCount == nil { + if o == nil || IsNil(o.XTotalCount) { var ret string return ret } @@ -87,7 +90,7 @@ func (o *PaginationHeaders) GetXTotalCount() string { // GetXTotalCountOk returns a tuple with the XTotalCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *PaginationHeaders) GetXTotalCountOk() (*string, bool) { - if o == nil || o.XTotalCount == nil { + if o == nil || IsNil(o.XTotalCount) { return nil, false } return o.XTotalCount, true @@ -95,7 +98,7 @@ func (o *PaginationHeaders) GetXTotalCountOk() (*string, bool) { // HasXTotalCount returns a boolean if a field has been set. func (o *PaginationHeaders) HasXTotalCount() bool { - if o != nil && o.XTotalCount != nil { + if o != nil && !IsNil(o.XTotalCount) { return true } @@ -108,11 +111,19 @@ func (o *PaginationHeaders) SetXTotalCount(v string) { } func (o PaginationHeaders) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginationHeaders) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Link != nil { + if !IsNil(o.Link) { toSerialize["link"] = o.Link } - if o.XTotalCount != nil { + if !IsNil(o.XTotalCount) { toSerialize["x-total-count"] = o.XTotalCount } @@ -120,16 +131,20 @@ func (o PaginationHeaders) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *PaginationHeaders) UnmarshalJSON(bytes []byte) (err error) { varPaginationHeaders := _PaginationHeaders{} - if err = json.Unmarshal(bytes, &varPaginationHeaders); err == nil { - *o = PaginationHeaders(varPaginationHeaders) + err = json.Unmarshal(bytes, &varPaginationHeaders) + + if err != nil { + return err } + *o = PaginationHeaders(varPaginationHeaders) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_reject_o_auth2_request.go b/clients/hydra/go/model_reject_o_auth2_request.go index ff036d15d2a..719d157d11b 100644 --- a/clients/hydra/go/model_reject_o_auth2_request.go +++ b/clients/hydra/go/model_reject_o_auth2_request.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the RejectOAuth2Request type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RejectOAuth2Request{} + // RejectOAuth2Request struct for RejectOAuth2Request type RejectOAuth2Request struct { // The error should follow the OAuth2 error format (e.g. `invalid_request`, `login_required`). Defaults to `request_denied`. @@ -51,7 +54,7 @@ func NewRejectOAuth2RequestWithDefaults() *RejectOAuth2Request { // GetError returns the Error field value if set, zero value otherwise. func (o *RejectOAuth2Request) GetError() string { - if o == nil || o.Error == nil { + if o == nil || IsNil(o.Error) { var ret string return ret } @@ -61,7 +64,7 @@ func (o *RejectOAuth2Request) GetError() string { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RejectOAuth2Request) GetErrorOk() (*string, bool) { - if o == nil || o.Error == nil { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error, true @@ -69,7 +72,7 @@ func (o *RejectOAuth2Request) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *RejectOAuth2Request) HasError() bool { - if o != nil && o.Error != nil { + if o != nil && !IsNil(o.Error) { return true } @@ -83,7 +86,7 @@ func (o *RejectOAuth2Request) SetError(v string) { // GetErrorDebug returns the ErrorDebug field value if set, zero value otherwise. func (o *RejectOAuth2Request) GetErrorDebug() string { - if o == nil || o.ErrorDebug == nil { + if o == nil || IsNil(o.ErrorDebug) { var ret string return ret } @@ -93,7 +96,7 @@ func (o *RejectOAuth2Request) GetErrorDebug() string { // GetErrorDebugOk returns a tuple with the ErrorDebug field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RejectOAuth2Request) GetErrorDebugOk() (*string, bool) { - if o == nil || o.ErrorDebug == nil { + if o == nil || IsNil(o.ErrorDebug) { return nil, false } return o.ErrorDebug, true @@ -101,7 +104,7 @@ func (o *RejectOAuth2Request) GetErrorDebugOk() (*string, bool) { // HasErrorDebug returns a boolean if a field has been set. func (o *RejectOAuth2Request) HasErrorDebug() bool { - if o != nil && o.ErrorDebug != nil { + if o != nil && !IsNil(o.ErrorDebug) { return true } @@ -115,7 +118,7 @@ func (o *RejectOAuth2Request) SetErrorDebug(v string) { // GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. func (o *RejectOAuth2Request) GetErrorDescription() string { - if o == nil || o.ErrorDescription == nil { + if o == nil || IsNil(o.ErrorDescription) { var ret string return ret } @@ -125,7 +128,7 @@ func (o *RejectOAuth2Request) GetErrorDescription() string { // GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RejectOAuth2Request) GetErrorDescriptionOk() (*string, bool) { - if o == nil || o.ErrorDescription == nil { + if o == nil || IsNil(o.ErrorDescription) { return nil, false } return o.ErrorDescription, true @@ -133,7 +136,7 @@ func (o *RejectOAuth2Request) GetErrorDescriptionOk() (*string, bool) { // HasErrorDescription returns a boolean if a field has been set. func (o *RejectOAuth2Request) HasErrorDescription() bool { - if o != nil && o.ErrorDescription != nil { + if o != nil && !IsNil(o.ErrorDescription) { return true } @@ -147,7 +150,7 @@ func (o *RejectOAuth2Request) SetErrorDescription(v string) { // GetErrorHint returns the ErrorHint field value if set, zero value otherwise. func (o *RejectOAuth2Request) GetErrorHint() string { - if o == nil || o.ErrorHint == nil { + if o == nil || IsNil(o.ErrorHint) { var ret string return ret } @@ -157,7 +160,7 @@ func (o *RejectOAuth2Request) GetErrorHint() string { // GetErrorHintOk returns a tuple with the ErrorHint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RejectOAuth2Request) GetErrorHintOk() (*string, bool) { - if o == nil || o.ErrorHint == nil { + if o == nil || IsNil(o.ErrorHint) { return nil, false } return o.ErrorHint, true @@ -165,7 +168,7 @@ func (o *RejectOAuth2Request) GetErrorHintOk() (*string, bool) { // HasErrorHint returns a boolean if a field has been set. func (o *RejectOAuth2Request) HasErrorHint() bool { - if o != nil && o.ErrorHint != nil { + if o != nil && !IsNil(o.ErrorHint) { return true } @@ -179,7 +182,7 @@ func (o *RejectOAuth2Request) SetErrorHint(v string) { // GetStatusCode returns the StatusCode field value if set, zero value otherwise. func (o *RejectOAuth2Request) GetStatusCode() int64 { - if o == nil || o.StatusCode == nil { + if o == nil || IsNil(o.StatusCode) { var ret int64 return ret } @@ -189,7 +192,7 @@ func (o *RejectOAuth2Request) GetStatusCode() int64 { // GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RejectOAuth2Request) GetStatusCodeOk() (*int64, bool) { - if o == nil || o.StatusCode == nil { + if o == nil || IsNil(o.StatusCode) { return nil, false } return o.StatusCode, true @@ -197,7 +200,7 @@ func (o *RejectOAuth2Request) GetStatusCodeOk() (*int64, bool) { // HasStatusCode returns a boolean if a field has been set. func (o *RejectOAuth2Request) HasStatusCode() bool { - if o != nil && o.StatusCode != nil { + if o != nil && !IsNil(o.StatusCode) { return true } @@ -210,20 +213,28 @@ func (o *RejectOAuth2Request) SetStatusCode(v int64) { } func (o RejectOAuth2Request) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RejectOAuth2Request) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Error != nil { + if !IsNil(o.Error) { toSerialize["error"] = o.Error } - if o.ErrorDebug != nil { + if !IsNil(o.ErrorDebug) { toSerialize["error_debug"] = o.ErrorDebug } - if o.ErrorDescription != nil { + if !IsNil(o.ErrorDescription) { toSerialize["error_description"] = o.ErrorDescription } - if o.ErrorHint != nil { + if !IsNil(o.ErrorHint) { toSerialize["error_hint"] = o.ErrorHint } - if o.StatusCode != nil { + if !IsNil(o.StatusCode) { toSerialize["status_code"] = o.StatusCode } @@ -231,16 +242,20 @@ func (o RejectOAuth2Request) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *RejectOAuth2Request) UnmarshalJSON(bytes []byte) (err error) { varRejectOAuth2Request := _RejectOAuth2Request{} - if err = json.Unmarshal(bytes, &varRejectOAuth2Request); err == nil { - *o = RejectOAuth2Request(varRejectOAuth2Request) + err = json.Unmarshal(bytes, &varRejectOAuth2Request) + + if err != nil { + return err } + *o = RejectOAuth2Request(varRejectOAuth2Request) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_rfc6749_error_json.go b/clients/hydra/go/model_rfc6749_error_json.go index 694b8ee8a6c..96b74f4232c 100644 --- a/clients/hydra/go/model_rfc6749_error_json.go +++ b/clients/hydra/go/model_rfc6749_error_json.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the RFC6749ErrorJson type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RFC6749ErrorJson{} + // RFC6749ErrorJson struct for RFC6749ErrorJson type RFC6749ErrorJson struct { Error *string `json:"error,omitempty"` @@ -46,7 +49,7 @@ func NewRFC6749ErrorJsonWithDefaults() *RFC6749ErrorJson { // GetError returns the Error field value if set, zero value otherwise. func (o *RFC6749ErrorJson) GetError() string { - if o == nil || o.Error == nil { + if o == nil || IsNil(o.Error) { var ret string return ret } @@ -56,7 +59,7 @@ func (o *RFC6749ErrorJson) GetError() string { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RFC6749ErrorJson) GetErrorOk() (*string, bool) { - if o == nil || o.Error == nil { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error, true @@ -64,7 +67,7 @@ func (o *RFC6749ErrorJson) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *RFC6749ErrorJson) HasError() bool { - if o != nil && o.Error != nil { + if o != nil && !IsNil(o.Error) { return true } @@ -78,7 +81,7 @@ func (o *RFC6749ErrorJson) SetError(v string) { // GetErrorDebug returns the ErrorDebug field value if set, zero value otherwise. func (o *RFC6749ErrorJson) GetErrorDebug() string { - if o == nil || o.ErrorDebug == nil { + if o == nil || IsNil(o.ErrorDebug) { var ret string return ret } @@ -88,7 +91,7 @@ func (o *RFC6749ErrorJson) GetErrorDebug() string { // GetErrorDebugOk returns a tuple with the ErrorDebug field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RFC6749ErrorJson) GetErrorDebugOk() (*string, bool) { - if o == nil || o.ErrorDebug == nil { + if o == nil || IsNil(o.ErrorDebug) { return nil, false } return o.ErrorDebug, true @@ -96,7 +99,7 @@ func (o *RFC6749ErrorJson) GetErrorDebugOk() (*string, bool) { // HasErrorDebug returns a boolean if a field has been set. func (o *RFC6749ErrorJson) HasErrorDebug() bool { - if o != nil && o.ErrorDebug != nil { + if o != nil && !IsNil(o.ErrorDebug) { return true } @@ -110,7 +113,7 @@ func (o *RFC6749ErrorJson) SetErrorDebug(v string) { // GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. func (o *RFC6749ErrorJson) GetErrorDescription() string { - if o == nil || o.ErrorDescription == nil { + if o == nil || IsNil(o.ErrorDescription) { var ret string return ret } @@ -120,7 +123,7 @@ func (o *RFC6749ErrorJson) GetErrorDescription() string { // GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RFC6749ErrorJson) GetErrorDescriptionOk() (*string, bool) { - if o == nil || o.ErrorDescription == nil { + if o == nil || IsNil(o.ErrorDescription) { return nil, false } return o.ErrorDescription, true @@ -128,7 +131,7 @@ func (o *RFC6749ErrorJson) GetErrorDescriptionOk() (*string, bool) { // HasErrorDescription returns a boolean if a field has been set. func (o *RFC6749ErrorJson) HasErrorDescription() bool { - if o != nil && o.ErrorDescription != nil { + if o != nil && !IsNil(o.ErrorDescription) { return true } @@ -142,7 +145,7 @@ func (o *RFC6749ErrorJson) SetErrorDescription(v string) { // GetErrorHint returns the ErrorHint field value if set, zero value otherwise. func (o *RFC6749ErrorJson) GetErrorHint() string { - if o == nil || o.ErrorHint == nil { + if o == nil || IsNil(o.ErrorHint) { var ret string return ret } @@ -152,7 +155,7 @@ func (o *RFC6749ErrorJson) GetErrorHint() string { // GetErrorHintOk returns a tuple with the ErrorHint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RFC6749ErrorJson) GetErrorHintOk() (*string, bool) { - if o == nil || o.ErrorHint == nil { + if o == nil || IsNil(o.ErrorHint) { return nil, false } return o.ErrorHint, true @@ -160,7 +163,7 @@ func (o *RFC6749ErrorJson) GetErrorHintOk() (*string, bool) { // HasErrorHint returns a boolean if a field has been set. func (o *RFC6749ErrorJson) HasErrorHint() bool { - if o != nil && o.ErrorHint != nil { + if o != nil && !IsNil(o.ErrorHint) { return true } @@ -174,7 +177,7 @@ func (o *RFC6749ErrorJson) SetErrorHint(v string) { // GetStatusCode returns the StatusCode field value if set, zero value otherwise. func (o *RFC6749ErrorJson) GetStatusCode() int64 { - if o == nil || o.StatusCode == nil { + if o == nil || IsNil(o.StatusCode) { var ret int64 return ret } @@ -184,7 +187,7 @@ func (o *RFC6749ErrorJson) GetStatusCode() int64 { // GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RFC6749ErrorJson) GetStatusCodeOk() (*int64, bool) { - if o == nil || o.StatusCode == nil { + if o == nil || IsNil(o.StatusCode) { return nil, false } return o.StatusCode, true @@ -192,7 +195,7 @@ func (o *RFC6749ErrorJson) GetStatusCodeOk() (*int64, bool) { // HasStatusCode returns a boolean if a field has been set. func (o *RFC6749ErrorJson) HasStatusCode() bool { - if o != nil && o.StatusCode != nil { + if o != nil && !IsNil(o.StatusCode) { return true } @@ -205,20 +208,28 @@ func (o *RFC6749ErrorJson) SetStatusCode(v int64) { } func (o RFC6749ErrorJson) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RFC6749ErrorJson) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Error != nil { + if !IsNil(o.Error) { toSerialize["error"] = o.Error } - if o.ErrorDebug != nil { + if !IsNil(o.ErrorDebug) { toSerialize["error_debug"] = o.ErrorDebug } - if o.ErrorDescription != nil { + if !IsNil(o.ErrorDescription) { toSerialize["error_description"] = o.ErrorDescription } - if o.ErrorHint != nil { + if !IsNil(o.ErrorHint) { toSerialize["error_hint"] = o.ErrorHint } - if o.StatusCode != nil { + if !IsNil(o.StatusCode) { toSerialize["status_code"] = o.StatusCode } @@ -226,16 +237,20 @@ func (o RFC6749ErrorJson) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *RFC6749ErrorJson) UnmarshalJSON(bytes []byte) (err error) { varRFC6749ErrorJson := _RFC6749ErrorJson{} - if err = json.Unmarshal(bytes, &varRFC6749ErrorJson); err == nil { - *o = RFC6749ErrorJson(varRFC6749ErrorJson) + err = json.Unmarshal(bytes, &varRFC6749ErrorJson) + + if err != nil { + return err } + *o = RFC6749ErrorJson(varRFC6749ErrorJson) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_token_pagination.go b/clients/hydra/go/model_token_pagination.go index ff677a7dcc0..b9af1a270a5 100644 --- a/clients/hydra/go/model_token_pagination.go +++ b/clients/hydra/go/model_token_pagination.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the TokenPagination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenPagination{} + // TokenPagination struct for TokenPagination type TokenPagination struct { // Items per page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). @@ -53,7 +56,7 @@ func NewTokenPaginationWithDefaults() *TokenPagination { // GetPageSize returns the PageSize field value if set, zero value otherwise. func (o *TokenPagination) GetPageSize() int64 { - if o == nil || o.PageSize == nil { + if o == nil || IsNil(o.PageSize) { var ret int64 return ret } @@ -63,7 +66,7 @@ func (o *TokenPagination) GetPageSize() int64 { // GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPagination) GetPageSizeOk() (*int64, bool) { - if o == nil || o.PageSize == nil { + if o == nil || IsNil(o.PageSize) { return nil, false } return o.PageSize, true @@ -71,7 +74,7 @@ func (o *TokenPagination) GetPageSizeOk() (*int64, bool) { // HasPageSize returns a boolean if a field has been set. func (o *TokenPagination) HasPageSize() bool { - if o != nil && o.PageSize != nil { + if o != nil && !IsNil(o.PageSize) { return true } @@ -85,7 +88,7 @@ func (o *TokenPagination) SetPageSize(v int64) { // GetPageToken returns the PageToken field value if set, zero value otherwise. func (o *TokenPagination) GetPageToken() string { - if o == nil || o.PageToken == nil { + if o == nil || IsNil(o.PageToken) { var ret string return ret } @@ -95,7 +98,7 @@ func (o *TokenPagination) GetPageToken() string { // GetPageTokenOk returns a tuple with the PageToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPagination) GetPageTokenOk() (*string, bool) { - if o == nil || o.PageToken == nil { + if o == nil || IsNil(o.PageToken) { return nil, false } return o.PageToken, true @@ -103,7 +106,7 @@ func (o *TokenPagination) GetPageTokenOk() (*string, bool) { // HasPageToken returns a boolean if a field has been set. func (o *TokenPagination) HasPageToken() bool { - if o != nil && o.PageToken != nil { + if o != nil && !IsNil(o.PageToken) { return true } @@ -116,11 +119,19 @@ func (o *TokenPagination) SetPageToken(v string) { } func (o TokenPagination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenPagination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.PageSize != nil { + if !IsNil(o.PageSize) { toSerialize["page_size"] = o.PageSize } - if o.PageToken != nil { + if !IsNil(o.PageToken) { toSerialize["page_token"] = o.PageToken } @@ -128,16 +139,20 @@ func (o TokenPagination) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TokenPagination) UnmarshalJSON(bytes []byte) (err error) { varTokenPagination := _TokenPagination{} - if err = json.Unmarshal(bytes, &varTokenPagination); err == nil { - *o = TokenPagination(varTokenPagination) + err = json.Unmarshal(bytes, &varTokenPagination) + + if err != nil { + return err } + *o = TokenPagination(varTokenPagination) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_token_pagination_headers.go b/clients/hydra/go/model_token_pagination_headers.go index 2959e41949c..cb35090bbe9 100644 --- a/clients/hydra/go/model_token_pagination_headers.go +++ b/clients/hydra/go/model_token_pagination_headers.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the TokenPaginationHeaders type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenPaginationHeaders{} + // TokenPaginationHeaders struct for TokenPaginationHeaders type TokenPaginationHeaders struct { // The link header contains pagination links. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). in: header @@ -45,7 +48,7 @@ func NewTokenPaginationHeadersWithDefaults() *TokenPaginationHeaders { // GetLink returns the Link field value if set, zero value otherwise. func (o *TokenPaginationHeaders) GetLink() string { - if o == nil || o.Link == nil { + if o == nil || IsNil(o.Link) { var ret string return ret } @@ -55,7 +58,7 @@ func (o *TokenPaginationHeaders) GetLink() string { // GetLinkOk returns a tuple with the Link field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPaginationHeaders) GetLinkOk() (*string, bool) { - if o == nil || o.Link == nil { + if o == nil || IsNil(o.Link) { return nil, false } return o.Link, true @@ -63,7 +66,7 @@ func (o *TokenPaginationHeaders) GetLinkOk() (*string, bool) { // HasLink returns a boolean if a field has been set. func (o *TokenPaginationHeaders) HasLink() bool { - if o != nil && o.Link != nil { + if o != nil && !IsNil(o.Link) { return true } @@ -77,7 +80,7 @@ func (o *TokenPaginationHeaders) SetLink(v string) { // GetXTotalCount returns the XTotalCount field value if set, zero value otherwise. func (o *TokenPaginationHeaders) GetXTotalCount() string { - if o == nil || o.XTotalCount == nil { + if o == nil || IsNil(o.XTotalCount) { var ret string return ret } @@ -87,7 +90,7 @@ func (o *TokenPaginationHeaders) GetXTotalCount() string { // GetXTotalCountOk returns a tuple with the XTotalCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPaginationHeaders) GetXTotalCountOk() (*string, bool) { - if o == nil || o.XTotalCount == nil { + if o == nil || IsNil(o.XTotalCount) { return nil, false } return o.XTotalCount, true @@ -95,7 +98,7 @@ func (o *TokenPaginationHeaders) GetXTotalCountOk() (*string, bool) { // HasXTotalCount returns a boolean if a field has been set. func (o *TokenPaginationHeaders) HasXTotalCount() bool { - if o != nil && o.XTotalCount != nil { + if o != nil && !IsNil(o.XTotalCount) { return true } @@ -108,11 +111,19 @@ func (o *TokenPaginationHeaders) SetXTotalCount(v string) { } func (o TokenPaginationHeaders) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenPaginationHeaders) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Link != nil { + if !IsNil(o.Link) { toSerialize["link"] = o.Link } - if o.XTotalCount != nil { + if !IsNil(o.XTotalCount) { toSerialize["x-total-count"] = o.XTotalCount } @@ -120,16 +131,20 @@ func (o TokenPaginationHeaders) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TokenPaginationHeaders) UnmarshalJSON(bytes []byte) (err error) { varTokenPaginationHeaders := _TokenPaginationHeaders{} - if err = json.Unmarshal(bytes, &varTokenPaginationHeaders); err == nil { - *o = TokenPaginationHeaders(varTokenPaginationHeaders) + err = json.Unmarshal(bytes, &varTokenPaginationHeaders) + + if err != nil { + return err } + *o = TokenPaginationHeaders(varTokenPaginationHeaders) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_token_pagination_request_parameters.go b/clients/hydra/go/model_token_pagination_request_parameters.go index fba6fa8126a..801d8ab390e 100644 --- a/clients/hydra/go/model_token_pagination_request_parameters.go +++ b/clients/hydra/go/model_token_pagination_request_parameters.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the TokenPaginationRequestParameters type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenPaginationRequestParameters{} + // TokenPaginationRequestParameters The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). type TokenPaginationRequestParameters struct { // Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). @@ -53,7 +56,7 @@ func NewTokenPaginationRequestParametersWithDefaults() *TokenPaginationRequestPa // GetPageSize returns the PageSize field value if set, zero value otherwise. func (o *TokenPaginationRequestParameters) GetPageSize() int64 { - if o == nil || o.PageSize == nil { + if o == nil || IsNil(o.PageSize) { var ret int64 return ret } @@ -63,7 +66,7 @@ func (o *TokenPaginationRequestParameters) GetPageSize() int64 { // GetPageSizeOk returns a tuple with the PageSize field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPaginationRequestParameters) GetPageSizeOk() (*int64, bool) { - if o == nil || o.PageSize == nil { + if o == nil || IsNil(o.PageSize) { return nil, false } return o.PageSize, true @@ -71,7 +74,7 @@ func (o *TokenPaginationRequestParameters) GetPageSizeOk() (*int64, bool) { // HasPageSize returns a boolean if a field has been set. func (o *TokenPaginationRequestParameters) HasPageSize() bool { - if o != nil && o.PageSize != nil { + if o != nil && !IsNil(o.PageSize) { return true } @@ -85,7 +88,7 @@ func (o *TokenPaginationRequestParameters) SetPageSize(v int64) { // GetPageToken returns the PageToken field value if set, zero value otherwise. func (o *TokenPaginationRequestParameters) GetPageToken() string { - if o == nil || o.PageToken == nil { + if o == nil || IsNil(o.PageToken) { var ret string return ret } @@ -95,7 +98,7 @@ func (o *TokenPaginationRequestParameters) GetPageToken() string { // GetPageTokenOk returns a tuple with the PageToken field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPaginationRequestParameters) GetPageTokenOk() (*string, bool) { - if o == nil || o.PageToken == nil { + if o == nil || IsNil(o.PageToken) { return nil, false } return o.PageToken, true @@ -103,7 +106,7 @@ func (o *TokenPaginationRequestParameters) GetPageTokenOk() (*string, bool) { // HasPageToken returns a boolean if a field has been set. func (o *TokenPaginationRequestParameters) HasPageToken() bool { - if o != nil && o.PageToken != nil { + if o != nil && !IsNil(o.PageToken) { return true } @@ -116,11 +119,19 @@ func (o *TokenPaginationRequestParameters) SetPageToken(v string) { } func (o TokenPaginationRequestParameters) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenPaginationRequestParameters) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.PageSize != nil { + if !IsNil(o.PageSize) { toSerialize["page_size"] = o.PageSize } - if o.PageToken != nil { + if !IsNil(o.PageToken) { toSerialize["page_token"] = o.PageToken } @@ -128,16 +139,20 @@ func (o TokenPaginationRequestParameters) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TokenPaginationRequestParameters) UnmarshalJSON(bytes []byte) (err error) { varTokenPaginationRequestParameters := _TokenPaginationRequestParameters{} - if err = json.Unmarshal(bytes, &varTokenPaginationRequestParameters); err == nil { - *o = TokenPaginationRequestParameters(varTokenPaginationRequestParameters) + err = json.Unmarshal(bytes, &varTokenPaginationRequestParameters) + + if err != nil { + return err } + *o = TokenPaginationRequestParameters(varTokenPaginationRequestParameters) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_token_pagination_response_headers.go b/clients/hydra/go/model_token_pagination_response_headers.go index 0a1d3a6a16e..a619a0b27d5 100644 --- a/clients/hydra/go/model_token_pagination_response_headers.go +++ b/clients/hydra/go/model_token_pagination_response_headers.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the TokenPaginationResponseHeaders type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TokenPaginationResponseHeaders{} + // TokenPaginationResponseHeaders The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). type TokenPaginationResponseHeaders struct { // The Link HTTP Header The `Link` header contains a comma-delimited list of links to the following pages: first: The first page of results. next: The next page of results. prev: The previous page of results. last: The last page of results. Pages are omitted if they do not exist. For example, if there is no next page, the `next` link is omitted. Examples: ; rel=\"first\",; rel=\"next\",; rel=\"prev\",; rel=\"last\" @@ -45,7 +48,7 @@ func NewTokenPaginationResponseHeadersWithDefaults() *TokenPaginationResponseHea // GetLink returns the Link field value if set, zero value otherwise. func (o *TokenPaginationResponseHeaders) GetLink() string { - if o == nil || o.Link == nil { + if o == nil || IsNil(o.Link) { var ret string return ret } @@ -55,7 +58,7 @@ func (o *TokenPaginationResponseHeaders) GetLink() string { // GetLinkOk returns a tuple with the Link field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPaginationResponseHeaders) GetLinkOk() (*string, bool) { - if o == nil || o.Link == nil { + if o == nil || IsNil(o.Link) { return nil, false } return o.Link, true @@ -63,7 +66,7 @@ func (o *TokenPaginationResponseHeaders) GetLinkOk() (*string, bool) { // HasLink returns a boolean if a field has been set. func (o *TokenPaginationResponseHeaders) HasLink() bool { - if o != nil && o.Link != nil { + if o != nil && !IsNil(o.Link) { return true } @@ -77,7 +80,7 @@ func (o *TokenPaginationResponseHeaders) SetLink(v string) { // GetXTotalCount returns the XTotalCount field value if set, zero value otherwise. func (o *TokenPaginationResponseHeaders) GetXTotalCount() int64 { - if o == nil || o.XTotalCount == nil { + if o == nil || IsNil(o.XTotalCount) { var ret int64 return ret } @@ -87,7 +90,7 @@ func (o *TokenPaginationResponseHeaders) GetXTotalCount() int64 { // GetXTotalCountOk returns a tuple with the XTotalCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TokenPaginationResponseHeaders) GetXTotalCountOk() (*int64, bool) { - if o == nil || o.XTotalCount == nil { + if o == nil || IsNil(o.XTotalCount) { return nil, false } return o.XTotalCount, true @@ -95,7 +98,7 @@ func (o *TokenPaginationResponseHeaders) GetXTotalCountOk() (*int64, bool) { // HasXTotalCount returns a boolean if a field has been set. func (o *TokenPaginationResponseHeaders) HasXTotalCount() bool { - if o != nil && o.XTotalCount != nil { + if o != nil && !IsNil(o.XTotalCount) { return true } @@ -108,11 +111,19 @@ func (o *TokenPaginationResponseHeaders) SetXTotalCount(v int64) { } func (o TokenPaginationResponseHeaders) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TokenPaginationResponseHeaders) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Link != nil { + if !IsNil(o.Link) { toSerialize["link"] = o.Link } - if o.XTotalCount != nil { + if !IsNil(o.XTotalCount) { toSerialize["x-total-count"] = o.XTotalCount } @@ -120,16 +131,20 @@ func (o TokenPaginationResponseHeaders) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TokenPaginationResponseHeaders) UnmarshalJSON(bytes []byte) (err error) { varTokenPaginationResponseHeaders := _TokenPaginationResponseHeaders{} - if err = json.Unmarshal(bytes, &varTokenPaginationResponseHeaders); err == nil { - *o = TokenPaginationResponseHeaders(varTokenPaginationResponseHeaders) + err = json.Unmarshal(bytes, &varTokenPaginationResponseHeaders) + + if err != nil { + return err } + *o = TokenPaginationResponseHeaders(varTokenPaginationResponseHeaders) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_trust_o_auth2_jwt_grant_issuer.go b/clients/hydra/go/model_trust_o_auth2_jwt_grant_issuer.go index 4b4b66f3cf5..9038213c84e 100644 --- a/clients/hydra/go/model_trust_o_auth2_jwt_grant_issuer.go +++ b/clients/hydra/go/model_trust_o_auth2_jwt_grant_issuer.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -14,8 +14,12 @@ package client import ( "encoding/json" "time" + "fmt" ) +// checks if the TrustOAuth2JwtGrantIssuer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrustOAuth2JwtGrantIssuer{} + // TrustOAuth2JwtGrantIssuer Trust OAuth2 JWT Bearer Grant Type Issuer Request Body type TrustOAuth2JwtGrantIssuer struct { // The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. @@ -57,7 +61,7 @@ func NewTrustOAuth2JwtGrantIssuerWithDefaults() *TrustOAuth2JwtGrantIssuer { // GetAllowAnySubject returns the AllowAnySubject field value if set, zero value otherwise. func (o *TrustOAuth2JwtGrantIssuer) GetAllowAnySubject() bool { - if o == nil || o.AllowAnySubject == nil { + if o == nil || IsNil(o.AllowAnySubject) { var ret bool return ret } @@ -67,7 +71,7 @@ func (o *TrustOAuth2JwtGrantIssuer) GetAllowAnySubject() bool { // GetAllowAnySubjectOk returns a tuple with the AllowAnySubject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustOAuth2JwtGrantIssuer) GetAllowAnySubjectOk() (*bool, bool) { - if o == nil || o.AllowAnySubject == nil { + if o == nil || IsNil(o.AllowAnySubject) { return nil, false } return o.AllowAnySubject, true @@ -75,7 +79,7 @@ func (o *TrustOAuth2JwtGrantIssuer) GetAllowAnySubjectOk() (*bool, bool) { // HasAllowAnySubject returns a boolean if a field has been set. func (o *TrustOAuth2JwtGrantIssuer) HasAllowAnySubject() bool { - if o != nil && o.AllowAnySubject != nil { + if o != nil && !IsNil(o.AllowAnySubject) { return true } @@ -185,7 +189,7 @@ func (o *TrustOAuth2JwtGrantIssuer) SetScope(v []string) { // GetSubject returns the Subject field value if set, zero value otherwise. func (o *TrustOAuth2JwtGrantIssuer) GetSubject() string { - if o == nil || o.Subject == nil { + if o == nil || IsNil(o.Subject) { var ret string return ret } @@ -195,7 +199,7 @@ func (o *TrustOAuth2JwtGrantIssuer) GetSubject() string { // GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustOAuth2JwtGrantIssuer) GetSubjectOk() (*string, bool) { - if o == nil || o.Subject == nil { + if o == nil || IsNil(o.Subject) { return nil, false } return o.Subject, true @@ -203,7 +207,7 @@ func (o *TrustOAuth2JwtGrantIssuer) GetSubjectOk() (*string, bool) { // HasSubject returns a boolean if a field has been set. func (o *TrustOAuth2JwtGrantIssuer) HasSubject() bool { - if o != nil && o.Subject != nil { + if o != nil && !IsNil(o.Subject) { return true } @@ -216,23 +220,23 @@ func (o *TrustOAuth2JwtGrantIssuer) SetSubject(v string) { } func (o TrustOAuth2JwtGrantIssuer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrustOAuth2JwtGrantIssuer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.AllowAnySubject != nil { + if !IsNil(o.AllowAnySubject) { toSerialize["allow_any_subject"] = o.AllowAnySubject } - if true { - toSerialize["expires_at"] = o.ExpiresAt - } - if true { - toSerialize["issuer"] = o.Issuer - } - if true { - toSerialize["jwk"] = o.Jwk - } - if true { - toSerialize["scope"] = o.Scope - } - if o.Subject != nil { + toSerialize["expires_at"] = o.ExpiresAt + toSerialize["issuer"] = o.Issuer + toSerialize["jwk"] = o.Jwk + toSerialize["scope"] = o.Scope + if !IsNil(o.Subject) { toSerialize["subject"] = o.Subject } @@ -240,16 +244,44 @@ func (o TrustOAuth2JwtGrantIssuer) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TrustOAuth2JwtGrantIssuer) UnmarshalJSON(bytes []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "expires_at", + "issuer", + "jwk", + "scope", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(bytes, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + varTrustOAuth2JwtGrantIssuer := _TrustOAuth2JwtGrantIssuer{} - if err = json.Unmarshal(bytes, &varTrustOAuth2JwtGrantIssuer); err == nil { - *o = TrustOAuth2JwtGrantIssuer(varTrustOAuth2JwtGrantIssuer) + err = json.Unmarshal(bytes, &varTrustOAuth2JwtGrantIssuer) + + if err != nil { + return err } + *o = TrustOAuth2JwtGrantIssuer(varTrustOAuth2JwtGrantIssuer) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_trusted_o_auth2_jwt_grant_issuer.go b/clients/hydra/go/model_trusted_o_auth2_jwt_grant_issuer.go index be13f0c62cc..e0f515bd869 100644 --- a/clients/hydra/go/model_trusted_o_auth2_jwt_grant_issuer.go +++ b/clients/hydra/go/model_trusted_o_auth2_jwt_grant_issuer.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -16,6 +16,9 @@ import ( "time" ) +// checks if the TrustedOAuth2JwtGrantIssuer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrustedOAuth2JwtGrantIssuer{} + // TrustedOAuth2JwtGrantIssuer OAuth2 JWT Bearer Grant Type Issuer Trust Relationship type TrustedOAuth2JwtGrantIssuer struct { // The \"allow_any_subject\" indicates that the issuer is allowed to have any principal as the subject of the JWT. @@ -56,7 +59,7 @@ func NewTrustedOAuth2JwtGrantIssuerWithDefaults() *TrustedOAuth2JwtGrantIssuer { // GetAllowAnySubject returns the AllowAnySubject field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetAllowAnySubject() bool { - if o == nil || o.AllowAnySubject == nil { + if o == nil || IsNil(o.AllowAnySubject) { var ret bool return ret } @@ -66,7 +69,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetAllowAnySubject() bool { // GetAllowAnySubjectOk returns a tuple with the AllowAnySubject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetAllowAnySubjectOk() (*bool, bool) { - if o == nil || o.AllowAnySubject == nil { + if o == nil || IsNil(o.AllowAnySubject) { return nil, false } return o.AllowAnySubject, true @@ -74,7 +77,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetAllowAnySubjectOk() (*bool, bool) { // HasAllowAnySubject returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasAllowAnySubject() bool { - if o != nil && o.AllowAnySubject != nil { + if o != nil && !IsNil(o.AllowAnySubject) { return true } @@ -88,7 +91,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetAllowAnySubject(v bool) { // GetCreatedAt returns the CreatedAt field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetCreatedAt() time.Time { - if o == nil || o.CreatedAt == nil { + if o == nil || IsNil(o.CreatedAt) { var ret time.Time return ret } @@ -98,7 +101,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetCreatedAt() time.Time { // GetCreatedAtOk returns a tuple with the CreatedAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetCreatedAtOk() (*time.Time, bool) { - if o == nil || o.CreatedAt == nil { + if o == nil || IsNil(o.CreatedAt) { return nil, false } return o.CreatedAt, true @@ -106,7 +109,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetCreatedAtOk() (*time.Time, bool) { // HasCreatedAt returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasCreatedAt() bool { - if o != nil && o.CreatedAt != nil { + if o != nil && !IsNil(o.CreatedAt) { return true } @@ -120,7 +123,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetCreatedAt(v time.Time) { // GetExpiresAt returns the ExpiresAt field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetExpiresAt() time.Time { - if o == nil || o.ExpiresAt == nil { + if o == nil || IsNil(o.ExpiresAt) { var ret time.Time return ret } @@ -130,7 +133,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetExpiresAt() time.Time { // GetExpiresAtOk returns a tuple with the ExpiresAt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetExpiresAtOk() (*time.Time, bool) { - if o == nil || o.ExpiresAt == nil { + if o == nil || IsNil(o.ExpiresAt) { return nil, false } return o.ExpiresAt, true @@ -138,7 +141,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetExpiresAtOk() (*time.Time, bool) { // HasExpiresAt returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasExpiresAt() bool { - if o != nil && o.ExpiresAt != nil { + if o != nil && !IsNil(o.ExpiresAt) { return true } @@ -152,7 +155,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetExpiresAt(v time.Time) { // GetId returns the Id field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetId() string { - if o == nil || o.Id == nil { + if o == nil || IsNil(o.Id) { var ret string return ret } @@ -162,7 +165,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetId() string { // GetIdOk returns a tuple with the Id field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetIdOk() (*string, bool) { - if o == nil || o.Id == nil { + if o == nil || IsNil(o.Id) { return nil, false } return o.Id, true @@ -170,7 +173,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetIdOk() (*string, bool) { // HasId returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasId() bool { - if o != nil && o.Id != nil { + if o != nil && !IsNil(o.Id) { return true } @@ -184,7 +187,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetId(v string) { // GetIssuer returns the Issuer field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetIssuer() string { - if o == nil || o.Issuer == nil { + if o == nil || IsNil(o.Issuer) { var ret string return ret } @@ -194,7 +197,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetIssuer() string { // GetIssuerOk returns a tuple with the Issuer field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetIssuerOk() (*string, bool) { - if o == nil || o.Issuer == nil { + if o == nil || IsNil(o.Issuer) { return nil, false } return o.Issuer, true @@ -202,7 +205,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetIssuerOk() (*string, bool) { // HasIssuer returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasIssuer() bool { - if o != nil && o.Issuer != nil { + if o != nil && !IsNil(o.Issuer) { return true } @@ -216,7 +219,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetIssuer(v string) { // GetPublicKey returns the PublicKey field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetPublicKey() TrustedOAuth2JwtGrantJsonWebKey { - if o == nil || o.PublicKey == nil { + if o == nil || IsNil(o.PublicKey) { var ret TrustedOAuth2JwtGrantJsonWebKey return ret } @@ -226,7 +229,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetPublicKey() TrustedOAuth2JwtGrantJsonWe // GetPublicKeyOk returns a tuple with the PublicKey field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetPublicKeyOk() (*TrustedOAuth2JwtGrantJsonWebKey, bool) { - if o == nil || o.PublicKey == nil { + if o == nil || IsNil(o.PublicKey) { return nil, false } return o.PublicKey, true @@ -234,7 +237,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetPublicKeyOk() (*TrustedOAuth2JwtGrantJs // HasPublicKey returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasPublicKey() bool { - if o != nil && o.PublicKey != nil { + if o != nil && !IsNil(o.PublicKey) { return true } @@ -248,7 +251,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetPublicKey(v TrustedOAuth2JwtGrantJsonWe // GetScope returns the Scope field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetScope() []string { - if o == nil || o.Scope == nil { + if o == nil || IsNil(o.Scope) { var ret []string return ret } @@ -258,7 +261,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetScope() []string { // GetScopeOk returns a tuple with the Scope field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetScopeOk() ([]string, bool) { - if o == nil || o.Scope == nil { + if o == nil || IsNil(o.Scope) { return nil, false } return o.Scope, true @@ -266,7 +269,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetScopeOk() ([]string, bool) { // HasScope returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasScope() bool { - if o != nil && o.Scope != nil { + if o != nil && !IsNil(o.Scope) { return true } @@ -280,7 +283,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetScope(v []string) { // GetSubject returns the Subject field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantIssuer) GetSubject() string { - if o == nil || o.Subject == nil { + if o == nil || IsNil(o.Subject) { var ret string return ret } @@ -290,7 +293,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetSubject() string { // GetSubjectOk returns a tuple with the Subject field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantIssuer) GetSubjectOk() (*string, bool) { - if o == nil || o.Subject == nil { + if o == nil || IsNil(o.Subject) { return nil, false } return o.Subject, true @@ -298,7 +301,7 @@ func (o *TrustedOAuth2JwtGrantIssuer) GetSubjectOk() (*string, bool) { // HasSubject returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantIssuer) HasSubject() bool { - if o != nil && o.Subject != nil { + if o != nil && !IsNil(o.Subject) { return true } @@ -311,29 +314,37 @@ func (o *TrustedOAuth2JwtGrantIssuer) SetSubject(v string) { } func (o TrustedOAuth2JwtGrantIssuer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrustedOAuth2JwtGrantIssuer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.AllowAnySubject != nil { + if !IsNil(o.AllowAnySubject) { toSerialize["allow_any_subject"] = o.AllowAnySubject } - if o.CreatedAt != nil { + if !IsNil(o.CreatedAt) { toSerialize["created_at"] = o.CreatedAt } - if o.ExpiresAt != nil { + if !IsNil(o.ExpiresAt) { toSerialize["expires_at"] = o.ExpiresAt } - if o.Id != nil { + if !IsNil(o.Id) { toSerialize["id"] = o.Id } - if o.Issuer != nil { + if !IsNil(o.Issuer) { toSerialize["issuer"] = o.Issuer } - if o.PublicKey != nil { + if !IsNil(o.PublicKey) { toSerialize["public_key"] = o.PublicKey } - if o.Scope != nil { + if !IsNil(o.Scope) { toSerialize["scope"] = o.Scope } - if o.Subject != nil { + if !IsNil(o.Subject) { toSerialize["subject"] = o.Subject } @@ -341,16 +352,20 @@ func (o TrustedOAuth2JwtGrantIssuer) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TrustedOAuth2JwtGrantIssuer) UnmarshalJSON(bytes []byte) (err error) { varTrustedOAuth2JwtGrantIssuer := _TrustedOAuth2JwtGrantIssuer{} - if err = json.Unmarshal(bytes, &varTrustedOAuth2JwtGrantIssuer); err == nil { - *o = TrustedOAuth2JwtGrantIssuer(varTrustedOAuth2JwtGrantIssuer) + err = json.Unmarshal(bytes, &varTrustedOAuth2JwtGrantIssuer) + + if err != nil { + return err } + *o = TrustedOAuth2JwtGrantIssuer(varTrustedOAuth2JwtGrantIssuer) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_trusted_o_auth2_jwt_grant_json_web_key.go b/clients/hydra/go/model_trusted_o_auth2_jwt_grant_json_web_key.go index c88006b1c79..f56805d9840 100644 --- a/clients/hydra/go/model_trusted_o_auth2_jwt_grant_json_web_key.go +++ b/clients/hydra/go/model_trusted_o_auth2_jwt_grant_json_web_key.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the TrustedOAuth2JwtGrantJsonWebKey type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TrustedOAuth2JwtGrantJsonWebKey{} + // TrustedOAuth2JwtGrantJsonWebKey OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key type TrustedOAuth2JwtGrantJsonWebKey struct { // The \"key_id\" is key unique identifier (same as kid header in jws/jwt). @@ -45,7 +48,7 @@ func NewTrustedOAuth2JwtGrantJsonWebKeyWithDefaults() *TrustedOAuth2JwtGrantJson // GetKid returns the Kid field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantJsonWebKey) GetKid() string { - if o == nil || o.Kid == nil { + if o == nil || IsNil(o.Kid) { var ret string return ret } @@ -55,7 +58,7 @@ func (o *TrustedOAuth2JwtGrantJsonWebKey) GetKid() string { // GetKidOk returns a tuple with the Kid field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantJsonWebKey) GetKidOk() (*string, bool) { - if o == nil || o.Kid == nil { + if o == nil || IsNil(o.Kid) { return nil, false } return o.Kid, true @@ -63,7 +66,7 @@ func (o *TrustedOAuth2JwtGrantJsonWebKey) GetKidOk() (*string, bool) { // HasKid returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantJsonWebKey) HasKid() bool { - if o != nil && o.Kid != nil { + if o != nil && !IsNil(o.Kid) { return true } @@ -77,7 +80,7 @@ func (o *TrustedOAuth2JwtGrantJsonWebKey) SetKid(v string) { // GetSet returns the Set field value if set, zero value otherwise. func (o *TrustedOAuth2JwtGrantJsonWebKey) GetSet() string { - if o == nil || o.Set == nil { + if o == nil || IsNil(o.Set) { var ret string return ret } @@ -87,7 +90,7 @@ func (o *TrustedOAuth2JwtGrantJsonWebKey) GetSet() string { // GetSetOk returns a tuple with the Set field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *TrustedOAuth2JwtGrantJsonWebKey) GetSetOk() (*string, bool) { - if o == nil || o.Set == nil { + if o == nil || IsNil(o.Set) { return nil, false } return o.Set, true @@ -95,7 +98,7 @@ func (o *TrustedOAuth2JwtGrantJsonWebKey) GetSetOk() (*string, bool) { // HasSet returns a boolean if a field has been set. func (o *TrustedOAuth2JwtGrantJsonWebKey) HasSet() bool { - if o != nil && o.Set != nil { + if o != nil && !IsNil(o.Set) { return true } @@ -108,11 +111,19 @@ func (o *TrustedOAuth2JwtGrantJsonWebKey) SetSet(v string) { } func (o TrustedOAuth2JwtGrantJsonWebKey) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TrustedOAuth2JwtGrantJsonWebKey) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Kid != nil { + if !IsNil(o.Kid) { toSerialize["kid"] = o.Kid } - if o.Set != nil { + if !IsNil(o.Set) { toSerialize["set"] = o.Set } @@ -120,16 +131,20 @@ func (o TrustedOAuth2JwtGrantJsonWebKey) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *TrustedOAuth2JwtGrantJsonWebKey) UnmarshalJSON(bytes []byte) (err error) { varTrustedOAuth2JwtGrantJsonWebKey := _TrustedOAuth2JwtGrantJsonWebKey{} - if err = json.Unmarshal(bytes, &varTrustedOAuth2JwtGrantJsonWebKey); err == nil { - *o = TrustedOAuth2JwtGrantJsonWebKey(varTrustedOAuth2JwtGrantJsonWebKey) + err = json.Unmarshal(bytes, &varTrustedOAuth2JwtGrantJsonWebKey) + + if err != nil { + return err } + *o = TrustedOAuth2JwtGrantJsonWebKey(varTrustedOAuth2JwtGrantJsonWebKey) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_verifiable_credential_priming_response.go b/clients/hydra/go/model_verifiable_credential_priming_response.go index a251aae093e..8e8f6fadeb0 100644 --- a/clients/hydra/go/model_verifiable_credential_priming_response.go +++ b/clients/hydra/go/model_verifiable_credential_priming_response.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the VerifiableCredentialPrimingResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VerifiableCredentialPrimingResponse{} + // VerifiableCredentialPrimingResponse struct for VerifiableCredentialPrimingResponse type VerifiableCredentialPrimingResponse struct { CNonce *string `json:"c_nonce,omitempty"` @@ -49,7 +52,7 @@ func NewVerifiableCredentialPrimingResponseWithDefaults() *VerifiableCredentialP // GetCNonce returns the CNonce field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetCNonce() string { - if o == nil || o.CNonce == nil { + if o == nil || IsNil(o.CNonce) { var ret string return ret } @@ -59,7 +62,7 @@ func (o *VerifiableCredentialPrimingResponse) GetCNonce() string { // GetCNonceOk returns a tuple with the CNonce field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetCNonceOk() (*string, bool) { - if o == nil || o.CNonce == nil { + if o == nil || IsNil(o.CNonce) { return nil, false } return o.CNonce, true @@ -67,7 +70,7 @@ func (o *VerifiableCredentialPrimingResponse) GetCNonceOk() (*string, bool) { // HasCNonce returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasCNonce() bool { - if o != nil && o.CNonce != nil { + if o != nil && !IsNil(o.CNonce) { return true } @@ -81,7 +84,7 @@ func (o *VerifiableCredentialPrimingResponse) SetCNonce(v string) { // GetCNonceExpiresIn returns the CNonceExpiresIn field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetCNonceExpiresIn() int64 { - if o == nil || o.CNonceExpiresIn == nil { + if o == nil || IsNil(o.CNonceExpiresIn) { var ret int64 return ret } @@ -91,7 +94,7 @@ func (o *VerifiableCredentialPrimingResponse) GetCNonceExpiresIn() int64 { // GetCNonceExpiresInOk returns a tuple with the CNonceExpiresIn field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetCNonceExpiresInOk() (*int64, bool) { - if o == nil || o.CNonceExpiresIn == nil { + if o == nil || IsNil(o.CNonceExpiresIn) { return nil, false } return o.CNonceExpiresIn, true @@ -99,7 +102,7 @@ func (o *VerifiableCredentialPrimingResponse) GetCNonceExpiresInOk() (*int64, bo // HasCNonceExpiresIn returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasCNonceExpiresIn() bool { - if o != nil && o.CNonceExpiresIn != nil { + if o != nil && !IsNil(o.CNonceExpiresIn) { return true } @@ -113,7 +116,7 @@ func (o *VerifiableCredentialPrimingResponse) SetCNonceExpiresIn(v int64) { // GetError returns the Error field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetError() string { - if o == nil || o.Error == nil { + if o == nil || IsNil(o.Error) { var ret string return ret } @@ -123,7 +126,7 @@ func (o *VerifiableCredentialPrimingResponse) GetError() string { // GetErrorOk returns a tuple with the Error field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetErrorOk() (*string, bool) { - if o == nil || o.Error == nil { + if o == nil || IsNil(o.Error) { return nil, false } return o.Error, true @@ -131,7 +134,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorOk() (*string, bool) { // HasError returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasError() bool { - if o != nil && o.Error != nil { + if o != nil && !IsNil(o.Error) { return true } @@ -145,7 +148,7 @@ func (o *VerifiableCredentialPrimingResponse) SetError(v string) { // GetErrorDebug returns the ErrorDebug field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetErrorDebug() string { - if o == nil || o.ErrorDebug == nil { + if o == nil || IsNil(o.ErrorDebug) { var ret string return ret } @@ -155,7 +158,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorDebug() string { // GetErrorDebugOk returns a tuple with the ErrorDebug field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetErrorDebugOk() (*string, bool) { - if o == nil || o.ErrorDebug == nil { + if o == nil || IsNil(o.ErrorDebug) { return nil, false } return o.ErrorDebug, true @@ -163,7 +166,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorDebugOk() (*string, bool) // HasErrorDebug returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasErrorDebug() bool { - if o != nil && o.ErrorDebug != nil { + if o != nil && !IsNil(o.ErrorDebug) { return true } @@ -177,7 +180,7 @@ func (o *VerifiableCredentialPrimingResponse) SetErrorDebug(v string) { // GetErrorDescription returns the ErrorDescription field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetErrorDescription() string { - if o == nil || o.ErrorDescription == nil { + if o == nil || IsNil(o.ErrorDescription) { var ret string return ret } @@ -187,7 +190,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorDescription() string { // GetErrorDescriptionOk returns a tuple with the ErrorDescription field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetErrorDescriptionOk() (*string, bool) { - if o == nil || o.ErrorDescription == nil { + if o == nil || IsNil(o.ErrorDescription) { return nil, false } return o.ErrorDescription, true @@ -195,7 +198,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorDescriptionOk() (*string, // HasErrorDescription returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasErrorDescription() bool { - if o != nil && o.ErrorDescription != nil { + if o != nil && !IsNil(o.ErrorDescription) { return true } @@ -209,7 +212,7 @@ func (o *VerifiableCredentialPrimingResponse) SetErrorDescription(v string) { // GetErrorHint returns the ErrorHint field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetErrorHint() string { - if o == nil || o.ErrorHint == nil { + if o == nil || IsNil(o.ErrorHint) { var ret string return ret } @@ -219,7 +222,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorHint() string { // GetErrorHintOk returns a tuple with the ErrorHint field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetErrorHintOk() (*string, bool) { - if o == nil || o.ErrorHint == nil { + if o == nil || IsNil(o.ErrorHint) { return nil, false } return o.ErrorHint, true @@ -227,7 +230,7 @@ func (o *VerifiableCredentialPrimingResponse) GetErrorHintOk() (*string, bool) { // HasErrorHint returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasErrorHint() bool { - if o != nil && o.ErrorHint != nil { + if o != nil && !IsNil(o.ErrorHint) { return true } @@ -241,7 +244,7 @@ func (o *VerifiableCredentialPrimingResponse) SetErrorHint(v string) { // GetFormat returns the Format field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetFormat() string { - if o == nil || o.Format == nil { + if o == nil || IsNil(o.Format) { var ret string return ret } @@ -251,7 +254,7 @@ func (o *VerifiableCredentialPrimingResponse) GetFormat() string { // GetFormatOk returns a tuple with the Format field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetFormatOk() (*string, bool) { - if o == nil || o.Format == nil { + if o == nil || IsNil(o.Format) { return nil, false } return o.Format, true @@ -259,7 +262,7 @@ func (o *VerifiableCredentialPrimingResponse) GetFormatOk() (*string, bool) { // HasFormat returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasFormat() bool { - if o != nil && o.Format != nil { + if o != nil && !IsNil(o.Format) { return true } @@ -273,7 +276,7 @@ func (o *VerifiableCredentialPrimingResponse) SetFormat(v string) { // GetStatusCode returns the StatusCode field value if set, zero value otherwise. func (o *VerifiableCredentialPrimingResponse) GetStatusCode() int64 { - if o == nil || o.StatusCode == nil { + if o == nil || IsNil(o.StatusCode) { var ret int64 return ret } @@ -283,7 +286,7 @@ func (o *VerifiableCredentialPrimingResponse) GetStatusCode() int64 { // GetStatusCodeOk returns a tuple with the StatusCode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialPrimingResponse) GetStatusCodeOk() (*int64, bool) { - if o == nil || o.StatusCode == nil { + if o == nil || IsNil(o.StatusCode) { return nil, false } return o.StatusCode, true @@ -291,7 +294,7 @@ func (o *VerifiableCredentialPrimingResponse) GetStatusCodeOk() (*int64, bool) { // HasStatusCode returns a boolean if a field has been set. func (o *VerifiableCredentialPrimingResponse) HasStatusCode() bool { - if o != nil && o.StatusCode != nil { + if o != nil && !IsNil(o.StatusCode) { return true } @@ -304,29 +307,37 @@ func (o *VerifiableCredentialPrimingResponse) SetStatusCode(v int64) { } func (o VerifiableCredentialPrimingResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VerifiableCredentialPrimingResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.CNonce != nil { + if !IsNil(o.CNonce) { toSerialize["c_nonce"] = o.CNonce } - if o.CNonceExpiresIn != nil { + if !IsNil(o.CNonceExpiresIn) { toSerialize["c_nonce_expires_in"] = o.CNonceExpiresIn } - if o.Error != nil { + if !IsNil(o.Error) { toSerialize["error"] = o.Error } - if o.ErrorDebug != nil { + if !IsNil(o.ErrorDebug) { toSerialize["error_debug"] = o.ErrorDebug } - if o.ErrorDescription != nil { + if !IsNil(o.ErrorDescription) { toSerialize["error_description"] = o.ErrorDescription } - if o.ErrorHint != nil { + if !IsNil(o.ErrorHint) { toSerialize["error_hint"] = o.ErrorHint } - if o.Format != nil { + if !IsNil(o.Format) { toSerialize["format"] = o.Format } - if o.StatusCode != nil { + if !IsNil(o.StatusCode) { toSerialize["status_code"] = o.StatusCode } @@ -334,16 +345,20 @@ func (o VerifiableCredentialPrimingResponse) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *VerifiableCredentialPrimingResponse) UnmarshalJSON(bytes []byte) (err error) { varVerifiableCredentialPrimingResponse := _VerifiableCredentialPrimingResponse{} - if err = json.Unmarshal(bytes, &varVerifiableCredentialPrimingResponse); err == nil { - *o = VerifiableCredentialPrimingResponse(varVerifiableCredentialPrimingResponse) + err = json.Unmarshal(bytes, &varVerifiableCredentialPrimingResponse) + + if err != nil { + return err } + *o = VerifiableCredentialPrimingResponse(varVerifiableCredentialPrimingResponse) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_verifiable_credential_proof.go b/clients/hydra/go/model_verifiable_credential_proof.go index 675796181e4..b17bca8da10 100644 --- a/clients/hydra/go/model_verifiable_credential_proof.go +++ b/clients/hydra/go/model_verifiable_credential_proof.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the VerifiableCredentialProof type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VerifiableCredentialProof{} + // VerifiableCredentialProof struct for VerifiableCredentialProof type VerifiableCredentialProof struct { Jwt *string `json:"jwt,omitempty"` @@ -43,7 +46,7 @@ func NewVerifiableCredentialProofWithDefaults() *VerifiableCredentialProof { // GetJwt returns the Jwt field value if set, zero value otherwise. func (o *VerifiableCredentialProof) GetJwt() string { - if o == nil || o.Jwt == nil { + if o == nil || IsNil(o.Jwt) { var ret string return ret } @@ -53,7 +56,7 @@ func (o *VerifiableCredentialProof) GetJwt() string { // GetJwtOk returns a tuple with the Jwt field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialProof) GetJwtOk() (*string, bool) { - if o == nil || o.Jwt == nil { + if o == nil || IsNil(o.Jwt) { return nil, false } return o.Jwt, true @@ -61,7 +64,7 @@ func (o *VerifiableCredentialProof) GetJwtOk() (*string, bool) { // HasJwt returns a boolean if a field has been set. func (o *VerifiableCredentialProof) HasJwt() bool { - if o != nil && o.Jwt != nil { + if o != nil && !IsNil(o.Jwt) { return true } @@ -75,7 +78,7 @@ func (o *VerifiableCredentialProof) SetJwt(v string) { // GetProofType returns the ProofType field value if set, zero value otherwise. func (o *VerifiableCredentialProof) GetProofType() string { - if o == nil || o.ProofType == nil { + if o == nil || IsNil(o.ProofType) { var ret string return ret } @@ -85,7 +88,7 @@ func (o *VerifiableCredentialProof) GetProofType() string { // GetProofTypeOk returns a tuple with the ProofType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialProof) GetProofTypeOk() (*string, bool) { - if o == nil || o.ProofType == nil { + if o == nil || IsNil(o.ProofType) { return nil, false } return o.ProofType, true @@ -93,7 +96,7 @@ func (o *VerifiableCredentialProof) GetProofTypeOk() (*string, bool) { // HasProofType returns a boolean if a field has been set. func (o *VerifiableCredentialProof) HasProofType() bool { - if o != nil && o.ProofType != nil { + if o != nil && !IsNil(o.ProofType) { return true } @@ -106,11 +109,19 @@ func (o *VerifiableCredentialProof) SetProofType(v string) { } func (o VerifiableCredentialProof) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VerifiableCredentialProof) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Jwt != nil { + if !IsNil(o.Jwt) { toSerialize["jwt"] = o.Jwt } - if o.ProofType != nil { + if !IsNil(o.ProofType) { toSerialize["proof_type"] = o.ProofType } @@ -118,16 +129,20 @@ func (o VerifiableCredentialProof) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *VerifiableCredentialProof) UnmarshalJSON(bytes []byte) (err error) { varVerifiableCredentialProof := _VerifiableCredentialProof{} - if err = json.Unmarshal(bytes, &varVerifiableCredentialProof); err == nil { - *o = VerifiableCredentialProof(varVerifiableCredentialProof) + err = json.Unmarshal(bytes, &varVerifiableCredentialProof) + + if err != nil { + return err } + *o = VerifiableCredentialProof(varVerifiableCredentialProof) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_verifiable_credential_response.go b/clients/hydra/go/model_verifiable_credential_response.go index 12a16f8ecb2..0ecbe61e8be 100644 --- a/clients/hydra/go/model_verifiable_credential_response.go +++ b/clients/hydra/go/model_verifiable_credential_response.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the VerifiableCredentialResponse type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &VerifiableCredentialResponse{} + // VerifiableCredentialResponse struct for VerifiableCredentialResponse type VerifiableCredentialResponse struct { CredentialDraft00 *string `json:"credential_draft_00,omitempty"` @@ -43,7 +46,7 @@ func NewVerifiableCredentialResponseWithDefaults() *VerifiableCredentialResponse // GetCredentialDraft00 returns the CredentialDraft00 field value if set, zero value otherwise. func (o *VerifiableCredentialResponse) GetCredentialDraft00() string { - if o == nil || o.CredentialDraft00 == nil { + if o == nil || IsNil(o.CredentialDraft00) { var ret string return ret } @@ -53,7 +56,7 @@ func (o *VerifiableCredentialResponse) GetCredentialDraft00() string { // GetCredentialDraft00Ok returns a tuple with the CredentialDraft00 field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialResponse) GetCredentialDraft00Ok() (*string, bool) { - if o == nil || o.CredentialDraft00 == nil { + if o == nil || IsNil(o.CredentialDraft00) { return nil, false } return o.CredentialDraft00, true @@ -61,7 +64,7 @@ func (o *VerifiableCredentialResponse) GetCredentialDraft00Ok() (*string, bool) // HasCredentialDraft00 returns a boolean if a field has been set. func (o *VerifiableCredentialResponse) HasCredentialDraft00() bool { - if o != nil && o.CredentialDraft00 != nil { + if o != nil && !IsNil(o.CredentialDraft00) { return true } @@ -75,7 +78,7 @@ func (o *VerifiableCredentialResponse) SetCredentialDraft00(v string) { // GetFormat returns the Format field value if set, zero value otherwise. func (o *VerifiableCredentialResponse) GetFormat() string { - if o == nil || o.Format == nil { + if o == nil || IsNil(o.Format) { var ret string return ret } @@ -85,7 +88,7 @@ func (o *VerifiableCredentialResponse) GetFormat() string { // GetFormatOk returns a tuple with the Format field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VerifiableCredentialResponse) GetFormatOk() (*string, bool) { - if o == nil || o.Format == nil { + if o == nil || IsNil(o.Format) { return nil, false } return o.Format, true @@ -93,7 +96,7 @@ func (o *VerifiableCredentialResponse) GetFormatOk() (*string, bool) { // HasFormat returns a boolean if a field has been set. func (o *VerifiableCredentialResponse) HasFormat() bool { - if o != nil && o.Format != nil { + if o != nil && !IsNil(o.Format) { return true } @@ -106,11 +109,19 @@ func (o *VerifiableCredentialResponse) SetFormat(v string) { } func (o VerifiableCredentialResponse) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o VerifiableCredentialResponse) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.CredentialDraft00 != nil { + if !IsNil(o.CredentialDraft00) { toSerialize["credential_draft_00"] = o.CredentialDraft00 } - if o.Format != nil { + if !IsNil(o.Format) { toSerialize["format"] = o.Format } @@ -118,16 +129,20 @@ func (o VerifiableCredentialResponse) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *VerifiableCredentialResponse) UnmarshalJSON(bytes []byte) (err error) { varVerifiableCredentialResponse := _VerifiableCredentialResponse{} - if err = json.Unmarshal(bytes, &varVerifiableCredentialResponse); err == nil { - *o = VerifiableCredentialResponse(varVerifiableCredentialResponse) + err = json.Unmarshal(bytes, &varVerifiableCredentialResponse) + + if err != nil { + return err } + *o = VerifiableCredentialResponse(varVerifiableCredentialResponse) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/model_version.go b/clients/hydra/go/model_version.go index e80d071d2aa..5975e723649 100644 --- a/clients/hydra/go/model_version.go +++ b/clients/hydra/go/model_version.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -15,6 +15,9 @@ import ( "encoding/json" ) +// checks if the Version type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Version{} + // Version struct for Version type Version struct { // Version is the service's version. @@ -43,7 +46,7 @@ func NewVersionWithDefaults() *Version { // GetVersion returns the Version field value if set, zero value otherwise. func (o *Version) GetVersion() string { - if o == nil || o.Version == nil { + if o == nil || IsNil(o.Version) { var ret string return ret } @@ -53,7 +56,7 @@ func (o *Version) GetVersion() string { // GetVersionOk returns a tuple with the Version field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Version) GetVersionOk() (*string, bool) { - if o == nil || o.Version == nil { + if o == nil || IsNil(o.Version) { return nil, false } return o.Version, true @@ -61,7 +64,7 @@ func (o *Version) GetVersionOk() (*string, bool) { // HasVersion returns a boolean if a field has been set. func (o *Version) HasVersion() bool { - if o != nil && o.Version != nil { + if o != nil && !IsNil(o.Version) { return true } @@ -74,8 +77,16 @@ func (o *Version) SetVersion(v string) { } func (o Version) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Version) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Version != nil { + if !IsNil(o.Version) { toSerialize["version"] = o.Version } @@ -83,16 +94,20 @@ func (o Version) MarshalJSON() ([]byte, error) { toSerialize[key] = value } - return json.Marshal(toSerialize) + return toSerialize, nil } func (o *Version) UnmarshalJSON(bytes []byte) (err error) { varVersion := _Version{} - if err = json.Unmarshal(bytes, &varVersion); err == nil { - *o = Version(varVersion) + err = json.Unmarshal(bytes, &varVersion) + + if err != nil { + return err } + *o = Version(varVersion) + additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(bytes, &additionalProperties); err == nil { diff --git a/clients/hydra/go/response.go b/clients/hydra/go/response.go index 96b859b2d2a..d42d346bf35 100644 --- a/clients/hydra/go/response.go +++ b/clients/hydra/go/response.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ diff --git a/clients/hydra/go/test/api_jwk_test.go b/clients/hydra/go/test/api_jwk_test.go new file mode 100644 index 00000000000..359b881c576 --- /dev/null +++ b/clients/hydra/go/test/api_jwk_test.go @@ -0,0 +1,124 @@ +/* +Ory Hydra API + +Testing JwkAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/ory/hydra-client-go" +) + +func Test_client_JwkAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test JwkAPIService CreateJsonWebKeySet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + + resp, httpRes, err := apiClient.JwkAPI.CreateJsonWebKeySet(context.Background(), set).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test JwkAPIService DeleteJsonWebKey", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + var kid string + + httpRes, err := apiClient.JwkAPI.DeleteJsonWebKey(context.Background(), set, kid).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test JwkAPIService DeleteJsonWebKeySet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + + httpRes, err := apiClient.JwkAPI.DeleteJsonWebKeySet(context.Background(), set).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test JwkAPIService GetJsonWebKey", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + var kid string + + resp, httpRes, err := apiClient.JwkAPI.GetJsonWebKey(context.Background(), set, kid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test JwkAPIService GetJsonWebKeySet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + + resp, httpRes, err := apiClient.JwkAPI.GetJsonWebKeySet(context.Background(), set).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test JwkAPIService SetJsonWebKey", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + var kid string + + resp, httpRes, err := apiClient.JwkAPI.SetJsonWebKey(context.Background(), set, kid).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test JwkAPIService SetJsonWebKeySet", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var set string + + resp, httpRes, err := apiClient.JwkAPI.SetJsonWebKeySet(context.Background(), set).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clients/hydra/go/test/api_metadata_test.go b/clients/hydra/go/test/api_metadata_test.go new file mode 100644 index 00000000000..222d32bdc6c --- /dev/null +++ b/clients/hydra/go/test/api_metadata_test.go @@ -0,0 +1,61 @@ +/* +Ory Hydra API + +Testing MetadataAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/ory/hydra-client-go" +) + +func Test_client_MetadataAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test MetadataAPIService GetVersion", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MetadataAPI.GetVersion(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataAPIService IsAlive", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MetadataAPI.IsAlive(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test MetadataAPIService IsReady", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.MetadataAPI.IsReady(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clients/hydra/go/test/api_o_auth2_test.go b/clients/hydra/go/test/api_o_auth2_test.go new file mode 100644 index 00000000000..a4d722e8888 --- /dev/null +++ b/clients/hydra/go/test/api_o_auth2_test.go @@ -0,0 +1,368 @@ +/* +Ory Hydra API + +Testing OAuth2APIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/ory/hydra-client-go" +) + +func Test_client_OAuth2APIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OAuth2APIService AcceptOAuth2ConsentRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.AcceptOAuth2ConsentRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService AcceptOAuth2LoginRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.AcceptOAuth2LoginRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService AcceptOAuth2LogoutRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.AcceptOAuth2LogoutRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService CreateOAuth2Client", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.CreateOAuth2Client(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService DeleteOAuth2Client", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.OAuth2API.DeleteOAuth2Client(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService DeleteOAuth2Token", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.OAuth2API.DeleteOAuth2Token(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService DeleteTrustedOAuth2JwtGrantIssuer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.OAuth2API.DeleteTrustedOAuth2JwtGrantIssuer(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService GetOAuth2Client", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OAuth2API.GetOAuth2Client(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService GetOAuth2ConsentRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.GetOAuth2ConsentRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService GetOAuth2LoginRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.GetOAuth2LoginRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService GetOAuth2LogoutRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.GetOAuth2LogoutRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService GetTrustedOAuth2JwtGrantIssuer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OAuth2API.GetTrustedOAuth2JwtGrantIssuer(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService IntrospectOAuth2Token", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.IntrospectOAuth2Token(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService ListOAuth2Clients", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.ListOAuth2Clients(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService ListOAuth2ConsentSessions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.ListOAuth2ConsentSessions(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService ListTrustedOAuth2JwtGrantIssuers", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.ListTrustedOAuth2JwtGrantIssuers(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService OAuth2Authorize", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.OAuth2Authorize(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService Oauth2TokenExchange", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.Oauth2TokenExchange(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService PatchOAuth2Client", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OAuth2API.PatchOAuth2Client(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService RejectOAuth2ConsentRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.RejectOAuth2ConsentRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService RejectOAuth2LoginRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.RejectOAuth2LoginRequest(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService RejectOAuth2LogoutRequest", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.OAuth2API.RejectOAuth2LogoutRequest(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService RevokeOAuth2ConsentSessions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.OAuth2API.RevokeOAuth2ConsentSessions(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService RevokeOAuth2LoginSessions", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.OAuth2API.RevokeOAuth2LoginSessions(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService RevokeOAuth2Token", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.OAuth2API.RevokeOAuth2Token(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService SetOAuth2Client", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OAuth2API.SetOAuth2Client(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService SetOAuth2ClientLifespans", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OAuth2API.SetOAuth2ClientLifespans(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OAuth2APIService TrustOAuth2JwtGrantIssuer", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OAuth2API.TrustOAuth2JwtGrantIssuer(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clients/hydra/go/test/api_oidc_test.go b/clients/hydra/go/test/api_oidc_test.go new file mode 100644 index 00000000000..373bd8d113b --- /dev/null +++ b/clients/hydra/go/test/api_oidc_test.go @@ -0,0 +1,125 @@ +/* +Ory Hydra API + +Testing OidcAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/ory/hydra-client-go" +) + +func Test_client_OidcAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test OidcAPIService CreateOidcDynamicClient", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OidcAPI.CreateOidcDynamicClient(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService CreateVerifiableCredential", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OidcAPI.CreateVerifiableCredential(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService DeleteOidcDynamicClient", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + httpRes, err := apiClient.OidcAPI.DeleteOidcDynamicClient(context.Background(), id).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService DiscoverOidcConfiguration", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OidcAPI.DiscoverOidcConfiguration(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService GetOidcDynamicClient", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OidcAPI.GetOidcDynamicClient(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService GetOidcUserInfo", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.OidcAPI.GetOidcUserInfo(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService RevokeOidcSession", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + httpRes, err := apiClient.OidcAPI.RevokeOidcSession(context.Background()).Execute() + + require.Nil(t, err) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + + t.Run("Test OidcAPIService SetOidcDynamicClient", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + var id string + + resp, httpRes, err := apiClient.OidcAPI.SetOidcDynamicClient(context.Background(), id).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clients/hydra/go/test/api_wellknown_test.go b/clients/hydra/go/test/api_wellknown_test.go new file mode 100644 index 00000000000..fb33c03de48 --- /dev/null +++ b/clients/hydra/go/test/api_wellknown_test.go @@ -0,0 +1,37 @@ +/* +Ory Hydra API + +Testing WellknownAPIService + +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); + +package client + +import ( + "context" + "github.com/stretchr/testify/assert" + "github.com/stretchr/testify/require" + "testing" + openapiclient "github.com/ory/hydra-client-go" +) + +func Test_client_WellknownAPIService(t *testing.T) { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + + t.Run("Test WellknownAPIService DiscoverJsonWebKeys", func(t *testing.T) { + + t.Skip("skip test") // remove to run test + + resp, httpRes, err := apiClient.WellknownAPI.DiscoverJsonWebKeys(context.Background()).Execute() + + require.Nil(t, err) + require.NotNil(t, resp) + assert.Equal(t, 200, httpRes.StatusCode) + + }) + +} diff --git a/clients/hydra/go/utils.go b/clients/hydra/go/utils.go index 878a6216148..25aa4c7b13d 100644 --- a/clients/hydra/go/utils.go +++ b/clients/hydra/go/utils.go @@ -3,7 +3,7 @@ Ory Hydra API Documentation for all of Ory Hydra's APIs. -API version: v2.2.0-rc.3 +API version: v2.2.0 Contact: hi@ory.sh */ @@ -13,6 +13,7 @@ package client import ( "encoding/json" + "reflect" "time" ) @@ -327,3 +328,21 @@ func (v *NullableTime) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } + +// IsNil checks if an input is nil +func IsNil(i interface{}) bool { + if i == nil { + return true + } + switch reflect.TypeOf(i).Kind() { + case reflect.Chan, reflect.Func, reflect.Map, reflect.Ptr, reflect.UnsafePointer, reflect.Interface, reflect.Slice: + return reflect.ValueOf(i).IsNil() + case reflect.Array: + return reflect.ValueOf(i).IsZero() + } + return false +} + +type MappedNullable interface { + ToMap() (map[string]interface{}, error) +} diff --git a/clients/hydra/java/README.md b/clients/hydra/java/README.md index 2db793c50a7..aa1f7db63c5 100644 --- a/clients/hydra/java/README.md +++ b/clients/hydra/java/README.md @@ -1,8 +1,8 @@ # hydra-client Ory Hydra API -- API version: v2.2.0-rc.3 - - Build date: 2023-08-16T21:14:30.471114291Z[Etc/UTC] +- API version: v2.2.0 + - Build date: 2024-02-12T11:42:01.945599172Z[Etc/UTC] Documentation for all of Ory Hydra's APIs. @@ -41,7 +41,7 @@ Add this dependency to your project's POM: sh.ory.hydra hydra-client - v2.2.0-rc.3 + v2.2.0 compile ``` @@ -57,7 +57,7 @@ Add this dependency to your project's build file: } dependencies { - implementation "sh.ory.hydra:hydra-client:v2.2.0-rc.3" + implementation "sh.ory.hydra:hydra-client:v2.2.0" } ``` @@ -71,7 +71,7 @@ mvn clean package Then manually install the following JARs: -* `target/hydra-client-v2.2.0-rc.3.jar` +* `target/hydra-client-v2.2.0.jar` * `target/lib/*.jar` ## Getting Started diff --git a/clients/hydra/java/api/openapi.yaml b/clients/hydra/java/api/openapi.yaml index e28eef97c2b..71d4887eee4 100644 --- a/clients/hydra/java/api/openapi.yaml +++ b/clients/hydra/java/api/openapi.yaml @@ -7,7 +7,7 @@ info: license: name: Apache 2.0 title: Ory Hydra API - version: v2.2.0-rc.3 + version: v2.2.0 servers: - url: / tags: @@ -1183,7 +1183,7 @@ paths: has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. - No OpennID Connect Front- or Back-channel logout is performed in this case. + No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. @@ -1991,6 +1991,9 @@ components: type: object acceptOAuth2ConsentRequest: properties: + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." grant_access_token_audience: items: type: string @@ -2658,6 +2661,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -2735,7 +2739,7 @@ components: description: |- OAuth 2.0 Client ID - The ID is autogenerated and immutable. + The ID is immutable. If no ID is provided, a UUID4 will be generated. type: string client_name: description: |- @@ -2950,6 +2954,11 @@ components: SkipConsent skips the consent screen for this client. This field can only be set from the admin API. type: boolean + skip_logout_consent: + description: |- + SkipLogoutConsent skips the logout consent screen for this client. This field can only + be set from the admin API. + type: boolean subject_type: description: |- OpenID Connect Subject Type @@ -3142,6 +3151,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3371,6 +3381,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3398,6 +3409,7 @@ components: session: access_token: "" id_token: "" + context: "" grant_access_token_audience: - grant_access_token_audience - grant_access_token_audience @@ -3409,6 +3421,9 @@ components: properties: consent_request: $ref: '#/components/schemas/oAuth2ConsentRequest' + context: + title: "JSONRawMessage represents a json.RawMessage that works well with\ + \ JSON, SQL, and Swagger." expires_at: $ref: '#/components/schemas/oAuth2ConsentSession_expires_at' grant_access_token_audience: @@ -3519,6 +3534,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3591,8 +3607,6 @@ components: - challenge - client - request_url - - requested_access_token_audience - - requested_scope - skip - subject title: Contains information on an ongoing login request. @@ -3651,6 +3665,7 @@ components: sector_identifier_uri: sector_identifier_uri frontchannel_logout_session_required: true frontchannel_logout_uri: frontchannel_logout_uri + skip_logout_consent: true refresh_token_grant_id_token_lifespan: refresh_token_grant_id_token_lifespan implicit_grant_id_token_lifespan: implicit_grant_id_token_lifespan client_secret_expires_at: 0 @@ -3712,7 +3727,7 @@ components: access_token: access_token refresh_token: refresh_token scope: scope - id_token: 6 + id_token: id_token token_type: token_type expires_in: 0 properties: @@ -3728,8 +3743,7 @@ components: type: integer id_token: description: To retrieve a refresh token request the id_token scope. - format: int64 - type: integer + type: string refresh_token: description: |- The refresh token, which can be used to obtain new diff --git a/clients/hydra/java/build.gradle b/clients/hydra/java/build.gradle index 1b39b7c5b03..5a28b0b3e1f 100644 --- a/clients/hydra/java/build.gradle +++ b/clients/hydra/java/build.gradle @@ -4,7 +4,7 @@ apply plugin: 'java' apply plugin: 'com.diffplug.spotless' group = 'sh.ory.hydra' -version = 'v2.2.0-rc.3' +version = 'v2.2.0' buildscript { repositories { diff --git a/clients/hydra/java/build.sbt b/clients/hydra/java/build.sbt index f8f871ad229..a0a75636223 100644 --- a/clients/hydra/java/build.sbt +++ b/clients/hydra/java/build.sbt @@ -2,7 +2,7 @@ lazy val root = (project in file(".")). settings( organization := "sh.ory.hydra", name := "hydra-client", - version := "v2.2.0-rc.3", + version := "v2.2.0", scalaVersion := "2.11.4", scalacOptions ++= Seq("-feature"), javacOptions in compile ++= Seq("-Xlint:deprecation"), diff --git a/clients/hydra/java/docs/AcceptOAuth2ConsentRequest.md b/clients/hydra/java/docs/AcceptOAuth2ConsentRequest.md index a73bc1094b4..c5bfadaffd4 100644 --- a/clients/hydra/java/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/hydra/java/docs/AcceptOAuth2ConsentRequest.md @@ -7,6 +7,7 @@ | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| +|**context** | **Object** | | [optional] | |**grantAccessTokenAudience** | **List<String>** | | [optional] | |**grantScope** | **List<String>** | | [optional] | |**handledAt** | **OffsetDateTime** | | [optional] | diff --git a/clients/hydra/java/docs/OAuth2Api.md b/clients/hydra/java/docs/OAuth2Api.md index 56c2d1b981b..5da37ce36e6 100644 --- a/clients/hydra/java/docs/OAuth2Api.md +++ b/clients/hydra/java/docs/OAuth2Api.md @@ -1535,7 +1535,7 @@ No authorization required Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Example ```java diff --git a/clients/hydra/java/docs/OAuth2Client.md b/clients/hydra/java/docs/OAuth2Client.md index 0f34ae4e029..a14b074a5f6 100644 --- a/clients/hydra/java/docs/OAuth2Client.md +++ b/clients/hydra/java/docs/OAuth2Client.md @@ -17,7 +17,7 @@ OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usuall |**backchannelLogoutSessionRequired** | **Boolean** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] | |**backchannelLogoutUri** | **String** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] | |**clientCredentialsGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | -|**clientId** | **String** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] | +|**clientId** | **String** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] | |**clientName** | **String** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] | |**clientSecret** | **String** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] | |**clientSecretExpiresAt** | **Long** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] | @@ -49,6 +49,7 @@ OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usuall |**scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] | |**sectorIdentifierUri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] | |**skipConsent** | **Boolean** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] | +|**skipLogoutConsent** | **Boolean** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] | |**subjectType** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] | |**tokenEndpointAuthMethod** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] | |**tokenEndpointAuthSigningAlg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] | diff --git a/clients/hydra/java/docs/OAuth2ConsentSession.md b/clients/hydra/java/docs/OAuth2ConsentSession.md index 56e5bf4261d..ec07011d9df 100644 --- a/clients/hydra/java/docs/OAuth2ConsentSession.md +++ b/clients/hydra/java/docs/OAuth2ConsentSession.md @@ -9,6 +9,7 @@ A completed OAuth 2.0 Consent Session. | Name | Type | Description | Notes | |------------ | ------------- | ------------- | -------------| |**consentRequest** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] | +|**context** | **Object** | | [optional] | |**expiresAt** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] | |**grantAccessTokenAudience** | **List<String>** | | [optional] | |**grantScope** | **List<String>** | | [optional] | diff --git a/clients/hydra/java/docs/OAuth2LoginRequest.md b/clients/hydra/java/docs/OAuth2LoginRequest.md index 54ccf2b689d..a7280f9ab19 100644 --- a/clients/hydra/java/docs/OAuth2LoginRequest.md +++ b/clients/hydra/java/docs/OAuth2LoginRequest.md @@ -11,8 +11,8 @@ |**client** | [**OAuth2Client**](OAuth2Client.md) | | | |**oidcContext** | [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] | |**requestUrl** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | | -|**requestedAccessTokenAudience** | **List<String>** | | | -|**requestedScope** | **List<String>** | | | +|**requestedAccessTokenAudience** | **List<String>** | | [optional] | +|**requestedScope** | **List<String>** | | [optional] | |**sessionId** | **String** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] | |**skip** | **Boolean** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | | |**subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | | diff --git a/clients/hydra/java/docs/OAuth2TokenExchange.md b/clients/hydra/java/docs/OAuth2TokenExchange.md index 2805eb824fc..37a8671996d 100644 --- a/clients/hydra/java/docs/OAuth2TokenExchange.md +++ b/clients/hydra/java/docs/OAuth2TokenExchange.md @@ -10,7 +10,7 @@ OAuth2 Token Exchange Result |------------ | ------------- | ------------- | -------------| |**accessToken** | **String** | The access token issued by the authorization server. | [optional] | |**expiresIn** | **Long** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] | -|**idToken** | **Long** | To retrieve a refresh token request the id_token scope. | [optional] | +|**idToken** | **String** | To retrieve a refresh token request the id_token scope. | [optional] | |**refreshToken** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] | |**scope** | **String** | The scope of the access token | [optional] | |**tokenType** | **String** | The type of the token issued | [optional] | diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiCallback.java b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiCallback.java index c1daef73793..96a3dfd5d91 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiCallback.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiCallback.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiClient.java b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiClient.java index f787d08cf52..846e95435f6 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiClient.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiClient.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -208,7 +208,7 @@ private void init() { json = new JSON(); // Set default User-Agent. - setUserAgent("OpenAPI-Generator/v2.2.0-rc.3/java"); + setUserAgent("OpenAPI-Generator/v2.2.0/java"); authentications = new HashMap(); } diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiException.java b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiException.java index d5761f8aa24..2bbd62ebef4 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiException.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiException.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -22,7 +22,7 @@ *

ApiException class.

*/ @SuppressWarnings("serial") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class ApiException extends Exception { private int code = 0; private Map> responseHeaders = null; diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiResponse.java b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiResponse.java index 177068af40d..722414e3a59 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/ApiResponse.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/ApiResponse.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/Configuration.java b/clients/hydra/java/src/main/java/sh/ory/hydra/Configuration.java index 9e2480366d4..ff160c18127 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/Configuration.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/Configuration.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package sh.ory.hydra; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class Configuration { private static ApiClient defaultApiClient = new ApiClient(); diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/GzipRequestInterceptor.java b/clients/hydra/java/src/main/java/sh/ory/hydra/GzipRequestInterceptor.java index c7f64e48cef..f539bacf3ac 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/GzipRequestInterceptor.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/GzipRequestInterceptor.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/JSON.java b/clients/hydra/java/src/main/java/sh/ory/hydra/JSON.java index 6e5c7bffcf1..15393aa5ffe 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/JSON.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/JSON.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/Pair.java b/clients/hydra/java/src/main/java/sh/ory/hydra/Pair.java index bbeec3657c7..76daeff3751 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/Pair.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/Pair.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,7 +13,7 @@ package sh.ory.hydra; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class Pair { private String name = ""; private String value = ""; diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressRequestBody.java b/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressRequestBody.java index d1a9f958d64..d7033324dad 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressRequestBody.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressRequestBody.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressResponseBody.java b/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressResponseBody.java index c4d8246cc48..3538d80fc5a 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressResponseBody.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/ProgressResponseBody.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/StringUtil.java b/clients/hydra/java/src/main/java/sh/ory/hydra/StringUtil.java index 5f33937677b..3ec770420d9 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/StringUtil.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/StringUtil.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ import java.util.Collection; import java.util.Iterator; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class StringUtil { /** * Check if the given array contains the given value (with case-insensitive comparison). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/api/JwkApi.java b/clients/hydra/java/src/main/java/sh/ory/hydra/api/JwkApi.java index 2107cbde787..335be974515 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/api/JwkApi.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/api/JwkApi.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/api/MetadataApi.java b/clients/hydra/java/src/main/java/sh/ory/hydra/api/MetadataApi.java index 41f4d7789d5..0cd2fc36038 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/api/MetadataApi.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/api/MetadataApi.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/api/OAuth2Api.java b/clients/hydra/java/src/main/java/sh/ory/hydra/api/OAuth2Api.java index f560c0141a6..3263184f55f 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/api/OAuth2Api.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/api/OAuth2Api.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -3264,7 +3264,7 @@ private okhttp3.Call revokeOAuth2LoginSessionsValidateBeforeCall(String subject, /** * Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @param subject OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) * @param sid OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) * @throws ApiException If fail to call the API, e.g. server error or cannot deserialize the response body @@ -3281,7 +3281,7 @@ public void revokeOAuth2LoginSessions(String subject, String sid) throws ApiExce /** * Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @param subject OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) * @param sid OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) * @return ApiResponse<Void> @@ -3300,7 +3300,7 @@ public ApiResponse revokeOAuth2LoginSessionsWithHttpInfo(String subject, S /** * Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID (asynchronously) - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @param subject OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) * @param sid OAuth 2.0 Subject The subject to revoke authentication sessions for. (optional) * @param _callback The callback to be executed when the API call finishes diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/api/OidcApi.java b/clients/hydra/java/src/main/java/sh/ory/hydra/api/OidcApi.java index 708e7ac5f65..20ab7220b57 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/api/OidcApi.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/api/OidcApi.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/api/WellknownApi.java b/clients/hydra/java/src/main/java/sh/ory/hydra/api/WellknownApi.java index 569ec9fd99d..c86426df85e 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/api/WellknownApi.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/api/WellknownApi.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/ApiKeyAuth.java b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/ApiKeyAuth.java index 9f52d311d51..ede3538f2d9 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/ApiKeyAuth.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/ApiKeyAuth.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class ApiKeyAuth implements Authentication { private final String location; private final String paramName; diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/Authentication.java b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/Authentication.java index 690d54e099b..43d341369a8 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/Authentication.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/Authentication.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBasicAuth.java b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBasicAuth.java index 1d8a99db672..8d7bf3628e2 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBasicAuth.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBasicAuth.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBearerAuth.java b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBearerAuth.java index 0282d80c6fa..2badaaf909c 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBearerAuth.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/HttpBearerAuth.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class HttpBearerAuth implements Authentication { private final String scheme; private String bearerToken; diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuth.java b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuth.java index 0ac20d7fa1a..44f170d8d1a 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuth.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuth.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -20,7 +20,7 @@ import java.util.Map; import java.util.List; -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth implements Authentication { private String accessToken; diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuthFlow.java b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuthFlow.java index 50bc5276540..6529b2ad99d 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuthFlow.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/auth/OAuthFlow.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -16,7 +16,7 @@ /** * OAuth flows that are supported by this client */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public enum OAuthFlow { ACCESS_CODE, //called authorizationCode in OpenAPI 3.0 IMPLICIT, diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AbstractOpenApiSchema.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AbstractOpenApiSchema.java index 08f4276c001..3dcd99ace48 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AbstractOpenApiSchema.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AbstractOpenApiSchema.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,7 +24,7 @@ /** * Abstract class for oneOf,anyOf schemas defined in OpenAPI spec */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public abstract class AbstractOpenApiSchema { // store the actual instance of the schema/object diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequest.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequest.java index 4f5965c911e..9ec54976d16 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequest.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,6 +26,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.hydra.model.AcceptOAuth2ConsentRequestSession; import com.google.gson.Gson; @@ -52,8 +53,12 @@ /** * AcceptOAuth2ConsentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class AcceptOAuth2ConsentRequest { + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private Object context = null; + public static final String SERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCE = "grant_access_token_audience"; @SerializedName(SERIALIZED_NAME_GRANT_ACCESS_TOKEN_AUDIENCE) private List grantAccessTokenAudience = null; @@ -81,6 +86,29 @@ public class AcceptOAuth2ConsentRequest { public AcceptOAuth2ConsentRequest() { } + public AcceptOAuth2ConsentRequest context(Object context) { + + this.context = context; + return this; + } + + /** + * Get context + * @return context + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getContext() { + return context; + } + + + public void setContext(Object context) { + this.context = context; + } + + public AcceptOAuth2ConsentRequest grantAccessTokenAudience(List grantAccessTokenAudience) { this.grantAccessTokenAudience = grantAccessTokenAudience; @@ -289,7 +317,8 @@ public boolean equals(Object o) { return false; } AcceptOAuth2ConsentRequest acceptOAuth2ConsentRequest = (AcceptOAuth2ConsentRequest) o; - return Objects.equals(this.grantAccessTokenAudience, acceptOAuth2ConsentRequest.grantAccessTokenAudience) && + return Objects.equals(this.context, acceptOAuth2ConsentRequest.context) && + Objects.equals(this.grantAccessTokenAudience, acceptOAuth2ConsentRequest.grantAccessTokenAudience) && Objects.equals(this.grantScope, acceptOAuth2ConsentRequest.grantScope) && Objects.equals(this.handledAt, acceptOAuth2ConsentRequest.handledAt) && Objects.equals(this.remember, acceptOAuth2ConsentRequest.remember) && @@ -298,15 +327,27 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, acceptOAuth2ConsentRequest.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); + return Objects.hash(context, grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AcceptOAuth2ConsentRequest {\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" grantAccessTokenAudience: ").append(toIndentedString(grantAccessTokenAudience)).append("\n"); sb.append(" grantScope: ").append(toIndentedString(grantScope)).append("\n"); sb.append(" handledAt: ").append(toIndentedString(handledAt)).append("\n"); @@ -336,6 +377,7 @@ private String toIndentedString(Object o) { static { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); + openapiFields.add("context"); openapiFields.add("grant_access_token_audience"); openapiFields.add("grant_scope"); openapiFields.add("handled_at"); diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSession.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSession.java index 3cf0e60fd46..1d7e890d676 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSession.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSession.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * AcceptOAuth2ConsentRequestSession */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class AcceptOAuth2ConsentRequestSession { public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2LoginRequest.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2LoginRequest.java index ccf79a56096..1f03b4323f3 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2LoginRequest.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/AcceptOAuth2LoginRequest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * AcceptOAuth2LoginRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class AcceptOAuth2LoginRequest { public static final String SERIALIZED_NAME_ACR = "acr"; @SerializedName(SERIALIZED_NAME_ACR) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateJsonWebKeySet.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateJsonWebKeySet.java index 52e0dce5388..04cfbf18f4f 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateJsonWebKeySet.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateJsonWebKeySet.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Create JSON Web Key Set Request Body */ @ApiModel(description = "Create JSON Web Key Set Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class CreateJsonWebKeySet { public static final String SERIALIZED_NAME_ALG = "alg"; @SerializedName(SERIALIZED_NAME_ALG) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBody.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBody.java index e5b718e7b0b..59d1b7fe954 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBody.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBody.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ /** * CreateVerifiableCredentialRequestBody */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class CreateVerifiableCredentialRequestBody { public static final String SERIALIZED_NAME_FORMAT = "format"; @SerializedName(SERIALIZED_NAME_FORMAT) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/CredentialSupportedDraft00.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/CredentialSupportedDraft00.java index d01319130a9..7dacef50c69 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/CredentialSupportedDraft00.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/CredentialSupportedDraft00.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -51,7 +51,7 @@ * Includes information about the supported verifiable credentials. */ @ApiModel(description = "Includes information about the supported verifiable credentials.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class CredentialSupportedDraft00 { public static final String SERIALIZED_NAME_CRYPTOGRAPHIC_BINDING_METHODS_SUPPORTED = "cryptographic_binding_methods_supported"; @SerializedName(SERIALIZED_NAME_CRYPTOGRAPHIC_BINDING_METHODS_SUPPORTED) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/ErrorOAuth2.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/ErrorOAuth2.java index ecba15052b2..b7cd64fdcae 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/ErrorOAuth2.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/ErrorOAuth2.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Error */ @ApiModel(description = "Error") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class ErrorOAuth2 { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/GenericError.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/GenericError.java index 6149bac5432..f49b81d0cee 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/GenericError.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/GenericError.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * GenericError */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class GenericError { public static final String SERIALIZED_NAME_CODE = "code"; @SerializedName(SERIALIZED_NAME_CODE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/GetVersion200Response.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/GetVersion200Response.java index 57ada54d077..e270dac215b 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/GetVersion200Response.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/GetVersion200Response.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * GetVersion200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class GetVersion200Response { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthNotReadyStatus.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthNotReadyStatus.java index f69f78040e2..f767b1241e3 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthNotReadyStatus.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthNotReadyStatus.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * HealthNotReadyStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class HealthNotReadyStatus { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthStatus.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthStatus.java index 7b14077ba11..f14d5388851 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthStatus.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/HealthStatus.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * HealthStatus */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class HealthStatus { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/IntrospectedOAuth2Token.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/IntrospectedOAuth2Token.java index 3f46488cedd..dbc1a8dfd97 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/IntrospectedOAuth2Token.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/IntrospectedOAuth2Token.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * Introspection contains an access token's session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) */ @ApiModel(description = "Introspection contains an access token's session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662)") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class IntrospectedOAuth2Token { public static final String SERIALIZED_NAME_ACTIVE = "active"; @SerializedName(SERIALIZED_NAME_ACTIVE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady200Response.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady200Response.java index 7297785cdd6..0f6b1246945 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady200Response.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady200Response.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * IsReady200Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class IsReady200Response { public static final String SERIALIZED_NAME_STATUS = "status"; @SerializedName(SERIALIZED_NAME_STATUS) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady503Response.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady503Response.java index 9c5d6c957d8..a32bcce5180 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady503Response.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/IsReady503Response.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * IsReady503Response */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class IsReady503Response { public static final String SERIALIZED_NAME_ERRORS = "errors"; @SerializedName(SERIALIZED_NAME_ERRORS) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonPatch.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonPatch.java index 3675f31c93f..e8e05135ead 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonPatch.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonPatch.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ * A JSONPatch document as defined by RFC 6902 */ @ApiModel(description = "A JSONPatch document as defined by RFC 6902") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class JsonPatch { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKey.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKey.java index 24ec040a156..49308befa05 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKey.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKey.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -50,7 +50,7 @@ /** * JsonWebKey */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class JsonWebKey { public static final String SERIALIZED_NAME_ALG = "alg"; @SerializedName(SERIALIZED_NAME_ALG) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKeySet.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKeySet.java index 437e5d5bda5..8f9d3c65d89 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKeySet.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/JsonWebKeySet.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * JSON Web Key Set */ @ApiModel(description = "JSON Web Key Set") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class JsonWebKeySet { public static final String SERIALIZED_NAME_KEYS = "keys"; @SerializedName(SERIALIZED_NAME_KEYS) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2Client.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2Client.java index 9fa8cca674b..618c14efbf7 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2Client.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2Client.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. */ @ApiModel(description = "OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2Client { public static final String SERIALIZED_NAME_ACCESS_TOKEN_STRATEGY = "access_token_strategy"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN_STRATEGY) @@ -219,6 +219,10 @@ public class OAuth2Client { @SerializedName(SERIALIZED_NAME_SKIP_CONSENT) private Boolean skipConsent; + public static final String SERIALIZED_NAME_SKIP_LOGOUT_CONSENT = "skip_logout_consent"; + @SerializedName(SERIALIZED_NAME_SKIP_LOGOUT_CONSENT) + private Boolean skipLogoutConsent; + public static final String SERIALIZED_NAME_SUBJECT_TYPE = "subject_type"; @SerializedName(SERIALIZED_NAME_SUBJECT_TYPE) private String subjectType; @@ -476,11 +480,11 @@ public OAuth2Client clientId(String clientId) { } /** - * OAuth 2.0 Client ID The ID is autogenerated and immutable. + * OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. * @return clientId **/ @javax.annotation.Nullable - @ApiModelProperty(value = "OAuth 2.0 Client ID The ID is autogenerated and immutable.") + @ApiModelProperty(value = "OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated.") public String getClientId() { return clientId; @@ -1253,6 +1257,29 @@ public void setSkipConsent(Boolean skipConsent) { } + public OAuth2Client skipLogoutConsent(Boolean skipLogoutConsent) { + + this.skipLogoutConsent = skipLogoutConsent; + return this; + } + + /** + * SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + * @return skipLogoutConsent + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.") + + public Boolean getSkipLogoutConsent() { + return skipLogoutConsent; + } + + + public void setSkipLogoutConsent(Boolean skipLogoutConsent) { + this.skipLogoutConsent = skipLogoutConsent; + } + + public OAuth2Client subjectType(String subjectType) { this.subjectType = subjectType; @@ -1486,6 +1513,7 @@ public boolean equals(Object o) { Objects.equals(this.scope, oAuth2Client.scope) && Objects.equals(this.sectorIdentifierUri, oAuth2Client.sectorIdentifierUri) && Objects.equals(this.skipConsent, oAuth2Client.skipConsent) && + Objects.equals(this.skipLogoutConsent, oAuth2Client.skipLogoutConsent) && Objects.equals(this.subjectType, oAuth2Client.subjectType) && Objects.equals(this.tokenEndpointAuthMethod, oAuth2Client.tokenEndpointAuthMethod) && Objects.equals(this.tokenEndpointAuthSigningAlg, oAuth2Client.tokenEndpointAuthSigningAlg) && @@ -1501,7 +1529,7 @@ private static boolean equalsNullable(JsonNullable a, JsonNullable b) @Override public int hashCode() { - return Objects.hash(accessTokenStrategy, allowedCorsOrigins, audience, authorizationCodeGrantAccessTokenLifespan, authorizationCodeGrantIdTokenLifespan, authorizationCodeGrantRefreshTokenLifespan, backchannelLogoutSessionRequired, backchannelLogoutUri, clientCredentialsGrantAccessTokenLifespan, clientId, clientName, clientSecret, clientSecretExpiresAt, clientUri, contacts, createdAt, frontchannelLogoutSessionRequired, frontchannelLogoutUri, grantTypes, implicitGrantAccessTokenLifespan, implicitGrantIdTokenLifespan, jwks, jwksUri, jwtBearerGrantAccessTokenLifespan, logoUri, metadata, owner, policyUri, postLogoutRedirectUris, redirectUris, refreshTokenGrantAccessTokenLifespan, refreshTokenGrantIdTokenLifespan, refreshTokenGrantRefreshTokenLifespan, registrationAccessToken, registrationClientUri, requestObjectSigningAlg, requestUris, responseTypes, scope, sectorIdentifierUri, skipConsent, subjectType, tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tosUri, updatedAt, userinfoSignedResponseAlg, additionalProperties); + return Objects.hash(accessTokenStrategy, allowedCorsOrigins, audience, authorizationCodeGrantAccessTokenLifespan, authorizationCodeGrantIdTokenLifespan, authorizationCodeGrantRefreshTokenLifespan, backchannelLogoutSessionRequired, backchannelLogoutUri, clientCredentialsGrantAccessTokenLifespan, clientId, clientName, clientSecret, clientSecretExpiresAt, clientUri, contacts, createdAt, frontchannelLogoutSessionRequired, frontchannelLogoutUri, grantTypes, implicitGrantAccessTokenLifespan, implicitGrantIdTokenLifespan, jwks, jwksUri, jwtBearerGrantAccessTokenLifespan, logoUri, metadata, owner, policyUri, postLogoutRedirectUris, redirectUris, refreshTokenGrantAccessTokenLifespan, refreshTokenGrantIdTokenLifespan, refreshTokenGrantRefreshTokenLifespan, registrationAccessToken, registrationClientUri, requestObjectSigningAlg, requestUris, responseTypes, scope, sectorIdentifierUri, skipConsent, skipLogoutConsent, subjectType, tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg, tosUri, updatedAt, userinfoSignedResponseAlg, additionalProperties); } private static int hashCodeNullable(JsonNullable a) { @@ -1556,6 +1584,7 @@ public String toString() { sb.append(" scope: ").append(toIndentedString(scope)).append("\n"); sb.append(" sectorIdentifierUri: ").append(toIndentedString(sectorIdentifierUri)).append("\n"); sb.append(" skipConsent: ").append(toIndentedString(skipConsent)).append("\n"); + sb.append(" skipLogoutConsent: ").append(toIndentedString(skipLogoutConsent)).append("\n"); sb.append(" subjectType: ").append(toIndentedString(subjectType)).append("\n"); sb.append(" tokenEndpointAuthMethod: ").append(toIndentedString(tokenEndpointAuthMethod)).append("\n"); sb.append(" tokenEndpointAuthSigningAlg: ").append(toIndentedString(tokenEndpointAuthSigningAlg)).append("\n"); @@ -1626,6 +1655,7 @@ private String toIndentedString(Object o) { openapiFields.add("scope"); openapiFields.add("sector_identifier_uri"); openapiFields.add("skip_consent"); + openapiFields.add("skip_logout_consent"); openapiFields.add("subject_type"); openapiFields.add("token_endpoint_auth_method"); openapiFields.add("token_endpoint_auth_signing_alg"); diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ClientTokenLifespans.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ClientTokenLifespans.java index 91e0ec8492e..d2fef9a8692 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ClientTokenLifespans.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ClientTokenLifespans.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Lifespans of different token types issued for this OAuth 2.0 Client. */ @ApiModel(description = "Lifespans of different token types issued for this OAuth 2.0 Client.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2ClientTokenLifespans { public static final String SERIALIZED_NAME_AUTHORIZATION_CODE_GRANT_ACCESS_TOKEN_LIFESPAN = "authorization_code_grant_access_token_lifespan"; @SerializedName(SERIALIZED_NAME_AUTHORIZATION_CODE_GRANT_ACCESS_TOKEN_LIFESPAN) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequest.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequest.java index e4417c643c6..922c989d1df 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequest.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ /** * OAuth2ConsentRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2ConsentRequest { public static final String SERIALIZED_NAME_ACR = "acr"; @SerializedName(SERIALIZED_NAME_ACR) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContext.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContext.java index 6c1c5dee164..a2980db6b96 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContext.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContext.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * OAuth2ConsentRequestOpenIDConnectContext */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2ConsentRequestOpenIDConnectContext { public static final String SERIALIZED_NAME_ACR_VALUES = "acr_values"; @SerializedName(SERIALIZED_NAME_ACR_VALUES) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSession.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSession.java index 94ce8b72d86..d166657d3d8 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSession.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSession.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -26,6 +26,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.hydra.model.AcceptOAuth2ConsentRequestSession; import sh.ory.hydra.model.OAuth2ConsentRequest; import sh.ory.hydra.model.OAuth2ConsentSessionExpiresAt; @@ -55,12 +56,16 @@ * A completed OAuth 2.0 Consent Session. */ @ApiModel(description = "A completed OAuth 2.0 Consent Session.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2ConsentSession { public static final String SERIALIZED_NAME_CONSENT_REQUEST = "consent_request"; @SerializedName(SERIALIZED_NAME_CONSENT_REQUEST) private OAuth2ConsentRequest consentRequest; + public static final String SERIALIZED_NAME_CONTEXT = "context"; + @SerializedName(SERIALIZED_NAME_CONTEXT) + private Object context = null; + public static final String SERIALIZED_NAME_EXPIRES_AT = "expires_at"; @SerializedName(SERIALIZED_NAME_EXPIRES_AT) private OAuth2ConsentSessionExpiresAt expiresAt; @@ -115,6 +120,29 @@ public void setConsentRequest(OAuth2ConsentRequest consentRequest) { } + public OAuth2ConsentSession context(Object context) { + + this.context = context; + return this; + } + + /** + * Get context + * @return context + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Object getContext() { + return context; + } + + + public void setContext(Object context) { + this.context = context; + } + + public OAuth2ConsentSession expiresAt(OAuth2ConsentSessionExpiresAt expiresAt) { this.expiresAt = expiresAt; @@ -347,6 +375,7 @@ public boolean equals(Object o) { } OAuth2ConsentSession oAuth2ConsentSession = (OAuth2ConsentSession) o; return Objects.equals(this.consentRequest, oAuth2ConsentSession.consentRequest) && + Objects.equals(this.context, oAuth2ConsentSession.context) && Objects.equals(this.expiresAt, oAuth2ConsentSession.expiresAt) && Objects.equals(this.grantAccessTokenAudience, oAuth2ConsentSession.grantAccessTokenAudience) && Objects.equals(this.grantScope, oAuth2ConsentSession.grantScope) && @@ -357,9 +386,20 @@ public boolean equals(Object o) { Objects.equals(this.additionalProperties, oAuth2ConsentSession.additionalProperties); } + private static boolean equalsNullable(JsonNullable a, JsonNullable b) { + return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && Objects.deepEquals(a.get(), b.get())); + } + @Override public int hashCode() { - return Objects.hash(consentRequest, expiresAt, grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); + return Objects.hash(consentRequest, context, expiresAt, grantAccessTokenAudience, grantScope, handledAt, remember, rememberFor, session, additionalProperties); + } + + private static int hashCodeNullable(JsonNullable a) { + if (a == null) { + return 1; + } + return a.isPresent() ? Arrays.deepHashCode(new Object[]{a.get()}) : 31; } @Override @@ -367,6 +407,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class OAuth2ConsentSession {\n"); sb.append(" consentRequest: ").append(toIndentedString(consentRequest)).append("\n"); + sb.append(" context: ").append(toIndentedString(context)).append("\n"); sb.append(" expiresAt: ").append(toIndentedString(expiresAt)).append("\n"); sb.append(" grantAccessTokenAudience: ").append(toIndentedString(grantAccessTokenAudience)).append("\n"); sb.append(" grantScope: ").append(toIndentedString(grantScope)).append("\n"); @@ -398,6 +439,7 @@ private String toIndentedString(Object o) { // a set of all properties/fields (JSON key names) openapiFields = new HashSet(); openapiFields.add("consent_request"); + openapiFields.add("context"); openapiFields.add("expires_at"); openapiFields.add("grant_access_token_audience"); openapiFields.add("grant_scope"); diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAt.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAt.java index 3d51943fb7e..3b22b87b2c2 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAt.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAt.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * OAuth2ConsentSessionExpiresAt */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2ConsentSessionExpiresAt { public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LoginRequest.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LoginRequest.java index 1e4c29680d3..79cd0c1d891 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LoginRequest.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LoginRequest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ /** * OAuth2LoginRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2LoginRequest { public static final String SERIALIZED_NAME_CHALLENGE = "challenge"; @SerializedName(SERIALIZED_NAME_CHALLENGE) @@ -72,11 +72,11 @@ public class OAuth2LoginRequest { public static final String SERIALIZED_NAME_REQUESTED_ACCESS_TOKEN_AUDIENCE = "requested_access_token_audience"; @SerializedName(SERIALIZED_NAME_REQUESTED_ACCESS_TOKEN_AUDIENCE) - private List requestedAccessTokenAudience = new ArrayList<>(); + private List requestedAccessTokenAudience = null; public static final String SERIALIZED_NAME_REQUESTED_SCOPE = "requested_scope"; @SerializedName(SERIALIZED_NAME_REQUESTED_SCOPE) - private List requestedScope = new ArrayList<>(); + private List requestedScope = null; public static final String SERIALIZED_NAME_SESSION_ID = "session_id"; @SerializedName(SERIALIZED_NAME_SESSION_ID) @@ -192,6 +192,9 @@ public OAuth2LoginRequest requestedAccessTokenAudience(List requestedAcc } public OAuth2LoginRequest addRequestedAccessTokenAudienceItem(String requestedAccessTokenAudienceItem) { + if (this.requestedAccessTokenAudience == null) { + this.requestedAccessTokenAudience = new ArrayList<>(); + } this.requestedAccessTokenAudience.add(requestedAccessTokenAudienceItem); return this; } @@ -200,8 +203,8 @@ public OAuth2LoginRequest addRequestedAccessTokenAudienceItem(String requestedAc * Get requestedAccessTokenAudience * @return requestedAccessTokenAudience **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public List getRequestedAccessTokenAudience() { return requestedAccessTokenAudience; @@ -220,6 +223,9 @@ public OAuth2LoginRequest requestedScope(List requestedScope) { } public OAuth2LoginRequest addRequestedScopeItem(String requestedScopeItem) { + if (this.requestedScope == null) { + this.requestedScope = new ArrayList<>(); + } this.requestedScope.add(requestedScopeItem); return this; } @@ -228,8 +234,8 @@ public OAuth2LoginRequest addRequestedScopeItem(String requestedScopeItem) { * Get requestedScope * @return requestedScope **/ - @javax.annotation.Nonnull - @ApiModelProperty(required = true, value = "") + @javax.annotation.Nullable + @ApiModelProperty(value = "") public List getRequestedScope() { return requestedScope; @@ -432,8 +438,6 @@ private String toIndentedString(Object o) { openapiRequiredFields.add("challenge"); openapiRequiredFields.add("client"); openapiRequiredFields.add("request_url"); - openapiRequiredFields.add("requested_access_token_audience"); - openapiRequiredFields.add("requested_scope"); openapiRequiredFields.add("skip"); openapiRequiredFields.add("subject"); } @@ -469,16 +473,12 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if (!jsonObj.get("request_url").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `request_url` to be a primitive type in the JSON string but got `%s`", jsonObj.get("request_url").toString())); } - // ensure the required json array is present - if (jsonObj.get("requested_access_token_audience") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("requested_access_token_audience").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("requested_access_token_audience") != null && !jsonObj.get("requested_access_token_audience").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `requested_access_token_audience` to be an array in the JSON string but got `%s`", jsonObj.get("requested_access_token_audience").toString())); } - // ensure the required json array is present - if (jsonObj.get("requested_scope") == null) { - throw new IllegalArgumentException("Expected the field `linkedContent` to be an array in the JSON string but got `null`"); - } else if (!jsonObj.get("requested_scope").isJsonArray()) { + // ensure the optional json data is an array if present + if (jsonObj.get("requested_scope") != null && !jsonObj.get("requested_scope").isJsonArray()) { throw new IllegalArgumentException(String.format("Expected the field `requested_scope` to be an array in the JSON string but got `%s`", jsonObj.get("requested_scope").toString())); } if ((jsonObj.get("session_id") != null && !jsonObj.get("session_id").isJsonNull()) && !jsonObj.get("session_id").isJsonPrimitive()) { diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LogoutRequest.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LogoutRequest.java index 387d8b9f451..1ce1dd464cf 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LogoutRequest.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2LogoutRequest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ /** * OAuth2LogoutRequest */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2LogoutRequest { public static final String SERIALIZED_NAME_CHALLENGE = "challenge"; @SerializedName(SERIALIZED_NAME_CHALLENGE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2RedirectTo.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2RedirectTo.java index 7fee6a9b0be..f1ac4e35369 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2RedirectTo.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2RedirectTo.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * Contains a redirect URL used to complete a login, consent, or logout request. */ @ApiModel(description = "Contains a redirect URL used to complete a login, consent, or logout request.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2RedirectTo { public static final String SERIALIZED_NAME_REDIRECT_TO = "redirect_to"; @SerializedName(SERIALIZED_NAME_REDIRECT_TO) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2TokenExchange.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2TokenExchange.java index f123faeaed8..26dd6e364f8 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2TokenExchange.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OAuth2TokenExchange.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * OAuth2 Token Exchange Result */ @ApiModel(description = "OAuth2 Token Exchange Result") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OAuth2TokenExchange { public static final String SERIALIZED_NAME_ACCESS_TOKEN = "access_token"; @SerializedName(SERIALIZED_NAME_ACCESS_TOKEN) @@ -61,7 +61,7 @@ public class OAuth2TokenExchange { public static final String SERIALIZED_NAME_ID_TOKEN = "id_token"; @SerializedName(SERIALIZED_NAME_ID_TOKEN) - private Long idToken; + private String idToken; public static final String SERIALIZED_NAME_REFRESH_TOKEN = "refresh_token"; @SerializedName(SERIALIZED_NAME_REFRESH_TOKEN) @@ -124,7 +124,7 @@ public void setExpiresIn(Long expiresIn) { } - public OAuth2TokenExchange idToken(Long idToken) { + public OAuth2TokenExchange idToken(String idToken) { this.idToken = idToken; return this; @@ -137,12 +137,12 @@ public OAuth2TokenExchange idToken(Long idToken) { @javax.annotation.Nullable @ApiModelProperty(value = "To retrieve a refresh token request the id_token scope.") - public Long getIdToken() { + public String getIdToken() { return idToken; } - public void setIdToken(Long idToken) { + public void setIdToken(String idToken) { this.idToken = idToken; } @@ -343,6 +343,9 @@ public static void validateJsonObject(JsonObject jsonObj) throws IOException { if ((jsonObj.get("access_token") != null && !jsonObj.get("access_token").isJsonNull()) && !jsonObj.get("access_token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `access_token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("access_token").toString())); } + if ((jsonObj.get("id_token") != null && !jsonObj.get("id_token").isJsonNull()) && !jsonObj.get("id_token").isJsonPrimitive()) { + throw new IllegalArgumentException(String.format("Expected the field `id_token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("id_token").toString())); + } if ((jsonObj.get("refresh_token") != null && !jsonObj.get("refresh_token").isJsonNull()) && !jsonObj.get("refresh_token").isJsonPrimitive()) { throw new IllegalArgumentException(String.format("Expected the field `refresh_token` to be a primitive type in the JSON string but got `%s`", jsonObj.get("refresh_token").toString())); } diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcConfiguration.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcConfiguration.java index cce6c02e85c..65f2b4b9342 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcConfiguration.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcConfiguration.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -52,7 +52,7 @@ * Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others. */ @ApiModel(description = "Includes links to several endpoints (for example `/oauth2/token`) and exposes information on supported signature algorithms among others.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OidcConfiguration { public static final String SERIALIZED_NAME_AUTHORIZATION_ENDPOINT = "authorization_endpoint"; @SerializedName(SERIALIZED_NAME_AUTHORIZATION_ENDPOINT) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcUserInfo.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcUserInfo.java index 225b82d8c2c..c2fd41e2e06 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcUserInfo.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/OidcUserInfo.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * OpenID Connect Userinfo */ @ApiModel(description = "OpenID Connect Userinfo") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class OidcUserInfo { public static final String SERIALIZED_NAME_BIRTHDATE = "birthdate"; @SerializedName(SERIALIZED_NAME_BIRTHDATE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/Pagination.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/Pagination.java index d0232c5d295..ddcb720b1ab 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/Pagination.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/Pagination.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Pagination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class Pagination { public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/PaginationHeaders.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/PaginationHeaders.java index 8f9a88ef72d..8dd2f269f9e 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/PaginationHeaders.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/PaginationHeaders.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * PaginationHeaders */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class PaginationHeaders { public static final String SERIALIZED_NAME_LINK = "link"; @SerializedName(SERIALIZED_NAME_LINK) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/RFC6749ErrorJson.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/RFC6749ErrorJson.java index 2a95b94f0c8..20470c88e3f 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/RFC6749ErrorJson.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/RFC6749ErrorJson.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * RFC6749ErrorJson */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class RFC6749ErrorJson { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/RejectOAuth2Request.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/RejectOAuth2Request.java index b8159ad5b79..7dc7cfa23ae 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/RejectOAuth2Request.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/RejectOAuth2Request.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * RejectOAuth2Request */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class RejectOAuth2Request { public static final String SERIALIZED_NAME_ERROR = "error"; @SerializedName(SERIALIZED_NAME_ERROR) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPagination.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPagination.java index 293389b7772..4d0b86fe4fa 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPagination.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPagination.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * TokenPagination */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TokenPagination { public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationHeaders.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationHeaders.java index f1cf7fcb131..4c0b63ff219 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationHeaders.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationHeaders.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * TokenPaginationHeaders */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TokenPaginationHeaders { public static final String SERIALIZED_NAME_LINK = "link"; @SerializedName(SERIALIZED_NAME_LINK) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationRequestParameters.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationRequestParameters.java index a49315b2c7d..4360b9e25f8 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationRequestParameters.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationRequestParameters.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `<https://{project-slug}.projects.oryapis.com/admin/clients?page_size={limit}&page_token={offset}>; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). */ @ApiModel(description = "The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TokenPaginationRequestParameters { public static final String SERIALIZED_NAME_PAGE_SIZE = "page_size"; @SerializedName(SERIALIZED_NAME_PAGE_SIZE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationResponseHeaders.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationResponseHeaders.java index 60587ea8f27..4b88eec0aeb 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationResponseHeaders.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TokenPaginationResponseHeaders.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `<https://{project-slug}.projects.oryapis.com/admin/clients?page_size={limit}&page_token={offset}>; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). */ @ApiModel(description = "The `Link` HTTP header contains multiple links (`first`, `next`, `last`, `previous`) formatted as: `; rel=\"{page}\"` For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination).") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TokenPaginationResponseHeaders { public static final String SERIALIZED_NAME_LINK = "link"; @SerializedName(SERIALIZED_NAME_LINK) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuer.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuer.java index 2dbd9a7f31e..883b4871c6f 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuer.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuer.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * Trust OAuth2 JWT Bearer Grant Type Issuer Request Body */ @ApiModel(description = "Trust OAuth2 JWT Bearer Grant Type Issuer Request Body") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TrustOAuth2JwtGrantIssuer { public static final String SERIALIZED_NAME_ALLOW_ANY_SUBJECT = "allow_any_subject"; @SerializedName(SERIALIZED_NAME_ALLOW_ANY_SUBJECT) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuer.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuer.java index 2b68cb9cbbd..e933ce30663 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuer.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuer.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -53,7 +53,7 @@ * OAuth2 JWT Bearer Grant Type Issuer Trust Relationship */ @ApiModel(description = "OAuth2 JWT Bearer Grant Type Issuer Trust Relationship") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TrustedOAuth2JwtGrantIssuer { public static final String SERIALIZED_NAME_ALLOW_ANY_SUBJECT = "allow_any_subject"; @SerializedName(SERIALIZED_NAME_ALLOW_ANY_SUBJECT) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKey.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKey.java index d35b888382c..f9f285368d7 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKey.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKey.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -49,7 +49,7 @@ * OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key */ @ApiModel(description = "OAuth2 JWT Bearer Grant Type Issuer Trusted JSON Web Key") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class TrustedOAuth2JwtGrantJsonWebKey { public static final String SERIALIZED_NAME_KID = "kid"; @SerializedName(SERIALIZED_NAME_KID) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponse.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponse.java index fb7966ba999..ff9f4317c30 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponse.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponse.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * VerifiableCredentialPrimingResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class VerifiableCredentialPrimingResponse { public static final String SERIALIZED_NAME_C_NONCE = "c_nonce"; @SerializedName(SERIALIZED_NAME_C_NONCE) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialProof.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialProof.java index 810253baa27..b2a728312e0 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialProof.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialProof.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * VerifiableCredentialProof */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class VerifiableCredentialProof { public static final String SERIALIZED_NAME_JWT = "jwt"; @SerializedName(SERIALIZED_NAME_JWT) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialResponse.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialResponse.java index 7b7fa9f9ece..867fdb934e8 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialResponse.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/VerifiableCredentialResponse.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * VerifiableCredentialResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class VerifiableCredentialResponse { public static final String SERIALIZED_NAME_CREDENTIAL_DRAFT00 = "credential_draft_00"; @SerializedName(SERIALIZED_NAME_CREDENTIAL_DRAFT00) diff --git a/clients/hydra/java/src/main/java/sh/ory/hydra/model/Version.java b/clients/hydra/java/src/main/java/sh/ory/hydra/model/Version.java index a265a73cb3b..9387243eb10 100644 --- a/clients/hydra/java/src/main/java/sh/ory/hydra/model/Version.java +++ b/clients/hydra/java/src/main/java/sh/ory/hydra/model/Version.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -48,7 +48,7 @@ /** * Version */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-08-16T21:14:30.471114291Z[Etc/UTC]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2024-02-12T11:42:01.945599172Z[Etc/UTC]") public class Version { public static final String SERIALIZED_NAME_VERSION = "version"; @SerializedName(SERIALIZED_NAME_VERSION) diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/api/JwkApiTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/api/JwkApiTest.java index db60d816ce4..f24cb165039 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/api/JwkApiTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/api/JwkApiTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/api/MetadataApiTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/api/MetadataApiTest.java index 956a6e7319b..195601d331a 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/api/MetadataApiTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/api/MetadataApiTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/api/OAuth2ApiTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/api/OAuth2ApiTest.java index b40b7ab0647..2d389a504ec 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/api/OAuth2ApiTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/api/OAuth2ApiTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -391,7 +391,7 @@ public void revokeOAuth2ConsentSessionsTest() throws ApiException { /** * Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID * - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * * @throws ApiException if the Api call fails */ diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/api/OidcApiTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/api/OidcApiTest.java index 246ef3f6333..9227d079f06 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/api/OidcApiTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/api/OidcApiTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/api/WellknownApiTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/api/WellknownApiTest.java index 6a72f051ef4..16ef74f4866 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/api/WellknownApiTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/api/WellknownApiTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSessionTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSessionTest.java index 01fbe3f3bd6..6fc2767573a 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSessionTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestSessionTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestTest.java index 0226129f136..d1580296a0a 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2ConsentRequestTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.hydra.model.AcceptOAuth2ConsentRequestSession; import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Test; @@ -43,6 +44,14 @@ public void testAcceptOAuth2ConsentRequest() { // TODO: test AcceptOAuth2ConsentRequest } + /** + * Test the property 'context' + */ + @Test + public void contextTest() { + // TODO: test context + } + /** * Test the property 'grantAccessTokenAudience' */ diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2LoginRequestTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2LoginRequestTest.java index 7592a0f31ca..f824a163820 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2LoginRequestTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/AcceptOAuth2LoginRequestTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateJsonWebKeySetTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateJsonWebKeySetTest.java index cdbd53aae76..3db4a2fbae7 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateJsonWebKeySetTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateJsonWebKeySetTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBodyTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBodyTest.java index 171853eeaa2..4b2eb0c86c7 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBodyTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/CreateVerifiableCredentialRequestBodyTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/CredentialSupportedDraft00Test.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/CredentialSupportedDraft00Test.java index 4b0e80984b4..9ba18802cb0 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/CredentialSupportedDraft00Test.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/CredentialSupportedDraft00Test.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/ErrorOAuth2Test.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/ErrorOAuth2Test.java index 670a049d8bd..f59eab82e41 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/ErrorOAuth2Test.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/ErrorOAuth2Test.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/GenericErrorTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/GenericErrorTest.java index feebfb1367b..2b873dd7b13 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/GenericErrorTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/GenericErrorTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/GetVersion200ResponseTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/GetVersion200ResponseTest.java index 1b9ad100896..15d726e6afa 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/GetVersion200ResponseTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/GetVersion200ResponseTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthNotReadyStatusTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthNotReadyStatusTest.java index 88b26fc0e5f..3c2cfdc7da7 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthNotReadyStatusTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthNotReadyStatusTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthStatusTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthStatusTest.java index 48d701b02a4..5c45a8bb634 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthStatusTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/HealthStatusTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/IntrospectedOAuth2TokenTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/IntrospectedOAuth2TokenTest.java index 34f041a345d..11e00e62f16 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/IntrospectedOAuth2TokenTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/IntrospectedOAuth2TokenTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady200ResponseTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady200ResponseTest.java index f6fbe8943b4..a4ab4d21416 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady200ResponseTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady200ResponseTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady503ResponseTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady503ResponseTest.java index a5187bbd930..f5c0f64264f 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady503ResponseTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/IsReady503ResponseTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonPatchTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonPatchTest.java index 5e1a1ebcf94..80abbc2930a 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonPatchTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonPatchTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeySetTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeySetTest.java index 5d9e6904d9d..f18e312734e 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeySetTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeySetTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeyTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeyTest.java index 0696d1aab15..8e2fb9277bf 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeyTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/JsonWebKeyTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTest.java index 332529b07aa..98471491405 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -371,6 +371,14 @@ public void skipConsentTest() { // TODO: test skipConsent } + /** + * Test the property 'skipLogoutConsent' + */ + @Test + public void skipLogoutConsentTest() { + // TODO: test skipLogoutConsent + } + /** * Test the property 'subjectType' */ diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTokenLifespansTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTokenLifespansTest.java index fab78484c94..b6b78860596 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTokenLifespansTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ClientTokenLifespansTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContextTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContextTest.java index 6e81f88ed7a..6c9b302c5eb 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContextTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestOpenIDConnectContextTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestTest.java index f19c1bae867..5d67062dc29 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentRequestTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAtTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAtTest.java index cb7d0c3703a..f819e55690b 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAtTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionExpiresAtTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionTest.java index 3aecbb61c00..266dbc35194 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2ConsentSessionTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -24,6 +24,7 @@ import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.List; +import org.openapitools.jackson.nullable.JsonNullable; import sh.ory.hydra.model.AcceptOAuth2ConsentRequestSession; import sh.ory.hydra.model.OAuth2ConsentRequest; import sh.ory.hydra.model.OAuth2ConsentSessionExpiresAt; @@ -53,6 +54,14 @@ public void consentRequestTest() { // TODO: test consentRequest } + /** + * Test the property 'context' + */ + @Test + public void contextTest() { + // TODO: test context + } + /** * Test the property 'expiresAt' */ diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LoginRequestTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LoginRequestTest.java index 41e958f12f5..3489fdded13 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LoginRequestTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LoginRequestTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LogoutRequestTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LogoutRequestTest.java index c155a56dd18..d99d50c289e 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LogoutRequestTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2LogoutRequestTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2RedirectToTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2RedirectToTest.java index c5aa10e2ab2..47dc59e8dec 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2RedirectToTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2RedirectToTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2TokenExchangeTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2TokenExchangeTest.java index d0c215e255a..466bd0ae770 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2TokenExchangeTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OAuth2TokenExchangeTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcConfigurationTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcConfigurationTest.java index eed310d2ac9..5168b02e26b 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcConfigurationTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcConfigurationTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcUserInfoTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcUserInfoTest.java index 00f7538b88f..0c57e00846d 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcUserInfoTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/OidcUserInfoTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationHeadersTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationHeadersTest.java index d7d6820d760..077fb6b4ab1 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationHeadersTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationHeadersTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationTest.java index c7b9713e4fe..83ce6a839ff 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/PaginationTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/RFC6749ErrorJsonTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/RFC6749ErrorJsonTest.java index 8ab7df7930a..5e12cd1c30d 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/RFC6749ErrorJsonTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/RFC6749ErrorJsonTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/RejectOAuth2RequestTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/RejectOAuth2RequestTest.java index 79eee0c4f56..1722e2b9afd 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/RejectOAuth2RequestTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/RejectOAuth2RequestTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationHeadersTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationHeadersTest.java index 265011af5e7..2148b901e19 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationHeadersTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationHeadersTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationRequestParametersTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationRequestParametersTest.java index d72cacfe6b7..2ea0969ad5b 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationRequestParametersTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationRequestParametersTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationResponseHeadersTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationResponseHeadersTest.java index e99d58f752d..04fb9a10bee 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationResponseHeadersTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationResponseHeadersTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationTest.java index e701f04d718..442e7c6920f 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TokenPaginationTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuerTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuerTest.java index 39ed7ec06b1..0ea8ad2892f 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuerTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustOAuth2JwtGrantIssuerTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuerTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuerTest.java index 87cad09f2a8..36d62a42d35 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuerTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantIssuerTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java index 6bd09e34ce1..1a6b82c5076 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/TrustedOAuth2JwtGrantJsonWebKeyTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponseTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponseTest.java index 3d92bf8af55..0224cca1d81 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponseTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialPrimingResponseTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialProofTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialProofTest.java index 23b42eb4465..bdef3453056 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialProofTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialProofTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialResponseTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialResponseTest.java index 21457c3349b..c2fc4b2be51 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialResponseTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VerifiableCredentialResponseTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VersionTest.java b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VersionTest.java index 69cbfc5faed..d84f3655730 100644 --- a/clients/hydra/java/src/test/java/sh/ory/hydra/model/VersionTest.java +++ b/clients/hydra/java/src/test/java/sh/ory/hydra/model/VersionTest.java @@ -2,7 +2,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/php/README.md b/clients/hydra/php/README.md index afdb08bd786..9735eb9087c 100644 --- a/clients/hydra/php/README.md +++ b/clients/hydra/php/README.md @@ -208,5 +208,5 @@ hi@ory.sh This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: `v2.2.0-rc.3` +- API version: `v2.2.0` - Build package: `org.openapitools.codegen.languages.PhpClientCodegen` diff --git a/clients/hydra/php/composer.lock b/clients/hydra/php/composer.lock index 59253d8db7d..9dabcc0f7b7 100644 --- a/clients/hydra/php/composer.lock +++ b/clients/hydra/php/composer.lock @@ -8,22 +8,22 @@ "packages": [ { "name": "guzzlehttp/guzzle", - "version": "7.7.0", + "version": "7.8.1", "source": { "type": "git", "url": "https://github.com/guzzle/guzzle.git", - "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5" + "reference": "41042bc7ab002487b876a0683fc8dce04ddce104" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/guzzle/zipball/fb7566caccf22d74d1ab270de3551f72a58399f5", - "reference": "fb7566caccf22d74d1ab270de3551f72a58399f5", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/41042bc7ab002487b876a0683fc8dce04ddce104", + "reference": "41042bc7ab002487b876a0683fc8dce04ddce104", "shasum": "" }, "require": { "ext-json": "*", - "guzzlehttp/promises": "^1.5.3 || ^2.0", - "guzzlehttp/psr7": "^1.9.1 || ^2.4.5", + "guzzlehttp/promises": "^1.5.3 || ^2.0.1", + "guzzlehttp/psr7": "^1.9.1 || ^2.5.1", "php": "^7.2.5 || ^8.0", "psr/http-client": "^1.0", "symfony/deprecation-contracts": "^2.2 || ^3.0" @@ -32,11 +32,11 @@ "psr/http-client-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", + "bamarni/composer-bin-plugin": "^1.8.2", "ext-curl": "*", "php-http/client-integration-tests": "dev-master#2c025848417c1135031fdf9c728ee53d0a7ceaee as 3.0.999", "php-http/message-factory": "^1.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23", + "phpunit/phpunit": "^8.5.36 || ^9.6.15", "psr/log": "^1.1 || ^2.0 || ^3.0" }, "suggest": { @@ -112,28 +112,28 @@ "rest", "web service" ], - "time": "2023-05-21T14:04:53+00:00" + "time": "2023-12-03T20:35:24+00:00" }, { "name": "guzzlehttp/promises", - "version": "2.0.1", + "version": "2.0.2", "source": { "type": "git", "url": "https://github.com/guzzle/promises.git", - "reference": "111166291a0f8130081195ac4556a5587d7f1b5d" + "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/promises/zipball/111166291a0f8130081195ac4556a5587d7f1b5d", - "reference": "111166291a0f8130081195ac4556a5587d7f1b5d", + "url": "https://api.github.com/repos/guzzle/promises/zipball/bbff78d96034045e58e13dedd6ad91b5d1253223", + "reference": "bbff78d96034045e58e13dedd6ad91b5d1253223", "shasum": "" }, "require": { "php": "^7.2.5 || ^8.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.36 || ^9.6.15" }, "type": "library", "extra": { @@ -177,20 +177,20 @@ "keywords": [ "promise" ], - "time": "2023-08-03T15:11:55+00:00" + "time": "2023-12-03T20:19:20+00:00" }, { "name": "guzzlehttp/psr7", - "version": "2.6.0", + "version": "2.6.2", "source": { "type": "git", "url": "https://github.com/guzzle/psr7.git", - "reference": "8bd7c33a0734ae1c5d074360512beb716bef3f77" + "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/guzzle/psr7/zipball/8bd7c33a0734ae1c5d074360512beb716bef3f77", - "reference": "8bd7c33a0734ae1c5d074360512beb716bef3f77", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/45b30f99ac27b5ca93cb4831afe16285f57b8221", + "reference": "45b30f99ac27b5ca93cb4831afe16285f57b8221", "shasum": "" }, "require": { @@ -204,9 +204,9 @@ "psr/http-message-implementation": "1.0" }, "require-dev": { - "bamarni/composer-bin-plugin": "^1.8.1", + "bamarni/composer-bin-plugin": "^1.8.2", "http-interop/http-factory-tests": "^0.9", - "phpunit/phpunit": "^8.5.29 || ^9.5.23" + "phpunit/phpunit": "^8.5.36 || ^9.6.15" }, "suggest": { "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" @@ -275,20 +275,20 @@ "uri", "url" ], - "time": "2023-08-03T15:06:02+00:00" + "time": "2023-12-03T20:05:35+00:00" }, { "name": "psr/http-client", - "version": "1.0.2", + "version": "1.0.3", "source": { "type": "git", "url": "https://github.com/php-fig/http-client.git", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31" + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/http-client/zipball/0955afe48220520692d2d09f7ab7e0f93ffd6a31", - "reference": "0955afe48220520692d2d09f7ab7e0f93ffd6a31", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", "shasum": "" }, "require": { @@ -324,7 +324,7 @@ "psr", "psr-18" ], - "time": "2023-04-10T20:12:12+00:00" + "time": "2023-09-23T14:17:50+00:00" }, { "name": "psr/http-factory", @@ -575,16 +575,16 @@ }, { "name": "composer/semver", - "version": "3.3.2", + "version": "3.4.0", "source": { "type": "git", "url": "https://github.com/composer/semver.git", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9" + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/composer/semver/zipball/3953f23262f2bff1919fc82183ad9acb13ff62c9", - "reference": "3953f23262f2bff1919fc82183ad9acb13ff62c9", + "url": "https://api.github.com/repos/composer/semver/zipball/35e8d0af4486141bc745f23a29cc2091eb624a32", + "reference": "35e8d0af4486141bc745f23a29cc2091eb624a32", "shasum": "" }, "require": { @@ -633,7 +633,7 @@ "validation", "versioning" ], - "time": "2022-04-01T19:23:25+00:00" + "time": "2023-08-31T09:50:34+00:00" }, { "name": "composer/xdebug-handler", @@ -756,16 +756,16 @@ }, { "name": "doctrine/deprecations", - "version": "v1.1.1", + "version": "1.1.3", "source": { "type": "git", "url": "https://github.com/doctrine/deprecations.git", - "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3" + "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/deprecations/zipball/612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", - "reference": "612a3ee5ab0d5dd97b7cf3874a6efe24325efac3", + "url": "https://api.github.com/repos/doctrine/deprecations/zipball/dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", + "reference": "dfbaa3c2d2e9a9df1118213f3b8b0c597bb99fab", "shasum": "" }, "require": { @@ -795,7 +795,7 @@ ], "description": "A small layer on top of trigger_error(E_USER_DEPRECATED) or PSR-3 logging with options to disable all deprecations or selectively for packages.", "homepage": "https://www.doctrine-project.org/", - "time": "2023-06-03T09:27:29+00:00" + "time": "2024-01-30T19:34:25+00:00" }, { "name": "doctrine/instantiator", @@ -851,16 +851,16 @@ }, { "name": "doctrine/lexer", - "version": "2.1.0", + "version": "2.1.1", "source": { "type": "git", "url": "https://github.com/doctrine/lexer.git", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124" + "reference": "861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/doctrine/lexer/zipball/39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", - "reference": "39ab8fcf5a51ce4b85ca97c7a7d033eb12831124", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6", + "reference": "861c870e8b75f7c8f69c146c7f89cc1c0f1b49b6", "shasum": "" }, "require": { @@ -868,11 +868,11 @@ "php": "^7.1 || ^8.0" }, "require-dev": { - "doctrine/coding-standard": "^9 || ^10", + "doctrine/coding-standard": "^9 || ^12", "phpstan/phpstan": "^1.3", - "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.6", "psalm/plugin-phpunit": "^0.18.3", - "vimeo/psalm": "^4.11 || ^5.0" + "vimeo/psalm": "^4.11 || ^5.21" }, "type": "library", "autoload": { @@ -907,7 +907,7 @@ "parser", "php" ], - "time": "2022-12-14T08:49:07+00:00" + "time": "2024-02-05T11:35:39+00:00" }, { "name": "friendsofphp/php-cs-fixer", @@ -1059,16 +1059,16 @@ }, { "name": "nikic/php-parser", - "version": "v4.17.1", + "version": "v4.18.0", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d" + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", - "reference": "a6303e50c90c355c7eeee2c4a8b27fe8dc8fef1d", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", "shasum": "" }, "require": { @@ -1107,7 +1107,7 @@ "parser", "php" ], - "time": "2023-08-13T19:53:39+00:00" + "time": "2023-12-10T21:03:43+00:00" }, { "name": "phar-io/manifest", @@ -1266,23 +1266,23 @@ }, { "name": "phpunit/php-code-coverage", - "version": "9.2.27", + "version": "9.2.30", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/php-code-coverage.git", - "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1" + "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/b0a88255cb70d52653d80c890bd7f38740ea50d1", - "reference": "b0a88255cb70d52653d80c890bd7f38740ea50d1", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/ca2bd87d2f9215904682a9cb9bb37dda98e76089", + "reference": "ca2bd87d2f9215904682a9cb9bb37dda98e76089", "shasum": "" }, "require": { "ext-dom": "*", "ext-libxml": "*", "ext-xmlwriter": "*", - "nikic/php-parser": "^4.15", + "nikic/php-parser": "^4.18 || ^5.0", "php": ">=7.3", "phpunit/php-file-iterator": "^3.0.3", "phpunit/php-text-template": "^2.0.2", @@ -1329,7 +1329,7 @@ "testing", "xunit" ], - "time": "2023-07-26T13:44:30+00:00" + "time": "2023-12-22T06:47:57+00:00" }, { "name": "phpunit/php-file-iterator", @@ -1534,16 +1534,16 @@ }, { "name": "phpunit/phpunit", - "version": "9.6.10", + "version": "9.6.16", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/phpunit.git", - "reference": "a6d351645c3fe5a30f5e86be6577d946af65a328" + "reference": "3767b2c56ce02d01e3491046f33466a1ae60a37f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/a6d351645c3fe5a30f5e86be6577d946af65a328", - "reference": "a6d351645c3fe5a30f5e86be6577d946af65a328", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/3767b2c56ce02d01e3491046f33466a1ae60a37f", + "reference": "3767b2c56ce02d01e3491046f33466a1ae60a37f", "shasum": "" }, "require": { @@ -1558,7 +1558,7 @@ "phar-io/manifest": "^2.0.3", "phar-io/version": "^3.0.2", "php": ">=7.3", - "phpunit/php-code-coverage": "^9.2.13", + "phpunit/php-code-coverage": "^9.2.28", "phpunit/php-file-iterator": "^3.0.5", "phpunit/php-invoker": "^3.1.1", "phpunit/php-text-template": "^2.0.3", @@ -1614,7 +1614,7 @@ "testing", "xunit" ], - "time": "2023-07-10T04:04:23+00:00" + "time": "2024-01-19T07:03:14+00:00" }, { "name": "psr/cache", @@ -2002,20 +2002,20 @@ }, { "name": "sebastian/complexity", - "version": "2.0.2", + "version": "2.0.3", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/complexity.git", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88" + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/739b35e53379900cc9ac327b2147867b8b6efd88", - "reference": "739b35e53379900cc9ac327b2147867b8b6efd88", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/25f207c40d62b8b7aa32f5ab026c53561964053a", + "reference": "25f207c40d62b8b7aa32f5ab026c53561964053a", "shasum": "" }, "require": { - "nikic/php-parser": "^4.7", + "nikic/php-parser": "^4.18 || ^5.0", "php": ">=7.3" }, "require-dev": { @@ -2045,7 +2045,7 @@ ], "description": "Library for calculating the complexity of PHP code units", "homepage": "https://github.com/sebastianbergmann/complexity", - "time": "2020-10-26T15:52:27+00:00" + "time": "2023-12-22T06:19:30+00:00" }, { "name": "sebastian/diff", @@ -2279,20 +2279,20 @@ }, { "name": "sebastian/lines-of-code", - "version": "1.0.3", + "version": "1.0.4", "source": { "type": "git", "url": "https://github.com/sebastianbergmann/lines-of-code.git", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc" + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/c1c2e997aa3146983ed888ad08b15470a2e22ecc", - "reference": "c1c2e997aa3146983ed888ad08b15470a2e22ecc", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/e1e4a170560925c26d424b6a03aed157e7dcc5c5", + "reference": "e1e4a170560925c26d424b6a03aed157e7dcc5c5", "shasum": "" }, "require": { - "nikic/php-parser": "^4.6", + "nikic/php-parser": "^4.18 || ^5.0", "php": ">=7.3" }, "require-dev": { @@ -2322,7 +2322,7 @@ ], "description": "Library for counting the lines of code in PHP source code", "homepage": "https://github.com/sebastianbergmann/lines-of-code", - "time": "2020-11-28T06:42:11+00:00" + "time": "2023-12-22T06:20:34+00:00" }, { "name": "sebastian/object-enumerator", @@ -2605,16 +2605,16 @@ }, { "name": "symfony/console", - "version": "v5.4.26", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/console.git", - "reference": "b504a3d266ad2bb632f196c0936ef2af5ff6e273" + "reference": "dbdf6adcb88d5f83790e1efb57ef4074309d3931" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/console/zipball/b504a3d266ad2bb632f196c0936ef2af5ff6e273", - "reference": "b504a3d266ad2bb632f196c0936ef2af5ff6e273", + "url": "https://api.github.com/repos/symfony/console/zipball/dbdf6adcb88d5f83790e1efb57ef4074309d3931", + "reference": "dbdf6adcb88d5f83790e1efb57ef4074309d3931", "shasum": "" }, "require": { @@ -2683,20 +2683,20 @@ "console", "terminal" ], - "time": "2023-07-19T20:11:33+00:00" + "time": "2024-01-23T14:28:09+00:00" }, { "name": "symfony/event-dispatcher", - "version": "v5.4.26", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/event-dispatcher.git", - "reference": "5dcc00e03413f05c1e7900090927bb7247cb0aac" + "reference": "7a69a85c7ea5bdd1e875806a99c51a87d3a74b38" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/5dcc00e03413f05c1e7900090927bb7247cb0aac", - "reference": "5dcc00e03413f05c1e7900090927bb7247cb0aac", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/7a69a85c7ea5bdd1e875806a99c51a87d3a74b38", + "reference": "7a69a85c7ea5bdd1e875806a99c51a87d3a74b38", "shasum": "" }, "require": { @@ -2751,7 +2751,7 @@ ], "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", "homepage": "https://symfony.com", - "time": "2023-07-06T06:34:20+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/event-dispatcher-contracts", @@ -2817,16 +2817,16 @@ }, { "name": "symfony/filesystem", - "version": "v5.4.25", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/filesystem.git", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364" + "reference": "5a553607d4ffbfa9c0ab62facadea296c9db7086" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/filesystem/zipball/0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", - "reference": "0ce3a62c9579a53358d3a7eb6b3dfb79789a6364", + "url": "https://api.github.com/repos/symfony/filesystem/zipball/5a553607d4ffbfa9c0ab62facadea296c9db7086", + "reference": "5a553607d4ffbfa9c0ab62facadea296c9db7086", "shasum": "" }, "require": { @@ -2860,20 +2860,20 @@ ], "description": "Provides basic utilities for the filesystem", "homepage": "https://symfony.com", - "time": "2023-05-31T13:04:02+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/finder", - "version": "v5.4.27", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/finder.git", - "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d" + "reference": "abe6d6f77d9465fed3cd2d029b29d03b56b56435" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/finder/zipball/ff4bce3c33451e7ec778070e45bd23f74214cd5d", - "reference": "ff4bce3c33451e7ec778070e45bd23f74214cd5d", + "url": "https://api.github.com/repos/symfony/finder/zipball/abe6d6f77d9465fed3cd2d029b29d03b56b56435", + "reference": "abe6d6f77d9465fed3cd2d029b29d03b56b56435", "shasum": "" }, "require": { @@ -2906,7 +2906,7 @@ ], "description": "Finds files and directories via an intuitive fluent interface", "homepage": "https://symfony.com", - "time": "2023-07-31T08:02:31+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/options-resolver", @@ -2962,16 +2962,16 @@ }, { "name": "symfony/polyfill-ctype", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-ctype.git", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a" + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/5bbc823adecdae860bb64756d639ecfec17b050a", - "reference": "5bbc823adecdae860bb64756d639ecfec17b050a", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/ef4d7e442ca910c4764bce785146269b30cb5fc4", + "reference": "ef4d7e442ca910c4764bce785146269b30cb5fc4", "shasum": "" }, "require": { @@ -2985,9 +2985,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3023,20 +3020,20 @@ "polyfill", "portable" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-grapheme", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-grapheme.git", - "reference": "511a08c03c1960e08a883f4cffcacd219b758354" + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/511a08c03c1960e08a883f4cffcacd219b758354", - "reference": "511a08c03c1960e08a883f4cffcacd219b758354", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/32a9da87d7b3245e09ac426c83d334ae9f06f80f", + "reference": "32a9da87d7b3245e09ac426c83d334ae9f06f80f", "shasum": "" }, "require": { @@ -3047,9 +3044,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3087,20 +3081,20 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-intl-normalizer", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-intl-normalizer.git", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6" + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/19bd1e4fcd5b91116f14d8533c57831ed00571b6", - "reference": "19bd1e4fcd5b91116f14d8533c57831ed00571b6", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/bc45c394692b948b4d383a08d7753968bed9a83d", + "reference": "bc45c394692b948b4d383a08d7753968bed9a83d", "shasum": "" }, "require": { @@ -3111,9 +3105,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3154,20 +3145,20 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-mbstring", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-mbstring.git", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534" + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/8ad114f6b39e2c98a8b0e3bd907732c207c2b534", - "reference": "8ad114f6b39e2c98a8b0e3bd907732c207c2b534", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/9773676c8a1bb1f8d4340a62efe641cf76eda7ec", + "reference": "9773676c8a1bb1f8d4340a62efe641cf76eda7ec", "shasum": "" }, "require": { @@ -3181,9 +3172,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3220,7 +3208,7 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-php70", @@ -3275,16 +3263,16 @@ }, { "name": "symfony/polyfill-php72", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php72.git", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97" + "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/869329b1e9894268a8a61dabb69153029b7a8c97", - "reference": "869329b1e9894268a8a61dabb69153029b7a8c97", + "url": "https://api.github.com/repos/symfony/polyfill-php72/zipball/861391a8da9a04cbad2d232ddd9e4893220d6e25", + "reference": "861391a8da9a04cbad2d232ddd9e4893220d6e25", "shasum": "" }, "require": { @@ -3292,9 +3280,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3330,20 +3315,20 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-php73", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php73.git", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9" + "reference": "21bd091060673a1177ae842c0ef8fe30893114d2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/9e8ecb5f92152187c4799efd3c96b78ccab18ff9", - "reference": "9e8ecb5f92152187c4799efd3c96b78ccab18ff9", + "url": "https://api.github.com/repos/symfony/polyfill-php73/zipball/21bd091060673a1177ae842c0ef8fe30893114d2", + "reference": "21bd091060673a1177ae842c0ef8fe30893114d2", "shasum": "" }, "require": { @@ -3351,9 +3336,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3392,20 +3374,20 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/polyfill-php80", - "version": "v1.27.0", + "version": "v1.29.0", "source": { "type": "git", "url": "https://github.com/symfony/polyfill-php80.git", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936" + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", - "reference": "7a6ff3f1959bb01aefccb463a0f2cd3d3d2fd936", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", + "reference": "87b68208d5c1188808dd7839ee1e6c8ec3b02f1b", "shasum": "" }, "require": { @@ -3413,9 +3395,6 @@ }, "type": "library", "extra": { - "branch-alias": { - "dev-main": "1.27-dev" - }, "thanks": { "name": "symfony/polyfill", "url": "https://github.com/symfony/polyfill" @@ -3458,20 +3437,20 @@ "portable", "shim" ], - "time": "2022-11-03T14:55:06+00:00" + "time": "2024-01-29T20:11:03+00:00" }, { "name": "symfony/process", - "version": "v5.4.26", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/process.git", - "reference": "1a44dc377ec86a50fab40d066cd061e28a6b482f" + "reference": "cbc28e34015ad50166fc2f9c8962d28d0fe861eb" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/process/zipball/1a44dc377ec86a50fab40d066cd061e28a6b482f", - "reference": "1a44dc377ec86a50fab40d066cd061e28a6b482f", + "url": "https://api.github.com/repos/symfony/process/zipball/cbc28e34015ad50166fc2f9c8962d28d0fe861eb", + "reference": "cbc28e34015ad50166fc2f9c8962d28d0fe861eb", "shasum": "" }, "require": { @@ -3503,7 +3482,7 @@ ], "description": "Executes commands in sub-processes", "homepage": "https://symfony.com", - "time": "2023-07-12T15:44:31+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/service-contracts", @@ -3573,16 +3552,16 @@ }, { "name": "symfony/stopwatch", - "version": "v5.4.21", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/stopwatch.git", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee" + "reference": "887762aa99ff16f65dc8b48aafead415f942d407" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/stopwatch/zipball/f83692cd869a6f2391691d40a01e8acb89e76fee", - "reference": "f83692cd869a6f2391691d40a01e8acb89e76fee", + "url": "https://api.github.com/repos/symfony/stopwatch/zipball/887762aa99ff16f65dc8b48aafead415f942d407", + "reference": "887762aa99ff16f65dc8b48aafead415f942d407", "shasum": "" }, "require": { @@ -3614,20 +3593,20 @@ ], "description": "Provides a way to profile code", "homepage": "https://symfony.com", - "time": "2023-02-14T08:03:56+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "symfony/string", - "version": "v5.4.26", + "version": "v5.4.35", "source": { "type": "git", "url": "https://github.com/symfony/string.git", - "reference": "1181fe9270e373537475e826873b5867b863883c" + "reference": "c209c4d0559acce1c9a2067612cfb5d35756edc2" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/symfony/string/zipball/1181fe9270e373537475e826873b5867b863883c", - "reference": "1181fe9270e373537475e826873b5867b863883c", + "url": "https://api.github.com/repos/symfony/string/zipball/c209c4d0559acce1c9a2067612cfb5d35756edc2", + "reference": "c209c4d0559acce1c9a2067612cfb5d35756edc2", "shasum": "" }, "require": { @@ -3683,20 +3662,20 @@ "utf-8", "utf8" ], - "time": "2023-06-28T12:46:07+00:00" + "time": "2024-01-23T13:51:25+00:00" }, { "name": "theseer/tokenizer", - "version": "1.2.1", + "version": "1.2.2", "source": { "type": "git", "url": "https://github.com/theseer/tokenizer.git", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e" + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/theseer/tokenizer/zipball/34a41e998c2183e22995f158c581e7b5e755ab9e", - "reference": "34a41e998c2183e22995f158c581e7b5e755ab9e", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/b2ad5003ca10d4ee50a12da31de12a5774ba6b96", + "reference": "b2ad5003ca10d4ee50a12da31de12a5774ba6b96", "shasum": "" }, "require": { @@ -3723,7 +3702,7 @@ } ], "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", - "time": "2021-07-28T10:34:58+00:00" + "time": "2023-11-20T00:12:19+00:00" } ], "aliases": [], diff --git a/clients/hydra/php/docs/Api/OAuth2Api.md b/clients/hydra/php/docs/Api/OAuth2Api.md index 394dd5a468c..317963fdcef 100644 --- a/clients/hydra/php/docs/Api/OAuth2Api.md +++ b/clients/hydra/php/docs/Api/OAuth2Api.md @@ -1371,7 +1371,7 @@ revokeOAuth2LoginSessions($subject, $sid) Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Example diff --git a/clients/hydra/php/docs/Model/AcceptOAuth2ConsentRequest.md b/clients/hydra/php/docs/Model/AcceptOAuth2ConsentRequest.md index 2fc777866ed..db5782c39b1 100644 --- a/clients/hydra/php/docs/Model/AcceptOAuth2ConsentRequest.md +++ b/clients/hydra/php/docs/Model/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | **mixed** | | [optional] **grantAccessTokenAudience** | **string[]** | | [optional] **grantScope** | **string[]** | | [optional] **handledAt** | **\DateTime** | | [optional] diff --git a/clients/hydra/php/docs/Model/OAuth2Client.md b/clients/hydra/php/docs/Model/OAuth2Client.md index 5d483ff95c4..206f0ae8f54 100644 --- a/clients/hydra/php/docs/Model/OAuth2Client.md +++ b/clients/hydra/php/docs/Model/OAuth2Client.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **backchannelLogoutSessionRequired** | **bool** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **backchannelLogoutUri** | **string** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **clientCredentialsGrantAccessTokenLifespan** | **string** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] -**clientId** | **string** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**clientId** | **string** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **clientName** | **string** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **clientSecret** | **string** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **clientSecretExpiresAt** | **int** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -45,6 +45,7 @@ Name | Type | Description | Notes **scope** | **string** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sectorIdentifierUri** | **string** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subjectType** | **string** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **tokenEndpointAuthMethod** | **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] [default to 'client_secret_basic'] **tokenEndpointAuthSigningAlg** | **string** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/hydra/php/docs/Model/OAuth2ConsentSession.md b/clients/hydra/php/docs/Model/OAuth2ConsentSession.md index dc749dc1833..0bd8152a023 100644 --- a/clients/hydra/php/docs/Model/OAuth2ConsentSession.md +++ b/clients/hydra/php/docs/Model/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consentRequest** | [**\Ory\Hydra\Client\Model\OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**context** | **mixed** | | [optional] **expiresAt** | [**\Ory\Hydra\Client\Model\OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **grantAccessTokenAudience** | **string[]** | | [optional] **grantScope** | **string[]** | | [optional] diff --git a/clients/hydra/php/docs/Model/OAuth2LoginRequest.md b/clients/hydra/php/docs/Model/OAuth2LoginRequest.md index 8a6f1c5babf..700da3493b7 100644 --- a/clients/hydra/php/docs/Model/OAuth2LoginRequest.md +++ b/clients/hydra/php/docs/Model/OAuth2LoginRequest.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **client** | [**\Ory\Hydra\Client\Model\OAuth2Client**](OAuth2Client.md) | | **oidcContext** | [**\Ory\Hydra\Client\Model\OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] **requestUrl** | **string** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | -**requestedAccessTokenAudience** | **string[]** | | -**requestedScope** | **string[]** | | +**requestedAccessTokenAudience** | **string[]** | | [optional] +**requestedScope** | **string[]** | | [optional] **sessionId** | **string** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] **skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | **subject** | **string** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | diff --git a/clients/hydra/php/docs/Model/OAuth2TokenExchange.md b/clients/hydra/php/docs/Model/OAuth2TokenExchange.md index d1deb09630a..ec35e860f2b 100644 --- a/clients/hydra/php/docs/Model/OAuth2TokenExchange.md +++ b/clients/hydra/php/docs/Model/OAuth2TokenExchange.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **accessToken** | **string** | The access token issued by the authorization server. | [optional] **expiresIn** | **int** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**idToken** | **int** | To retrieve a refresh token request the id_token scope. | [optional] +**idToken** | **string** | To retrieve a refresh token request the id_token scope. | [optional] **refreshToken** | **string** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] **scope** | **string** | The scope of the access token | [optional] **tokenType** | **string** | The type of the token issued | [optional] diff --git a/clients/hydra/php/lib/Api/JwkApi.php b/clients/hydra/php/lib/Api/JwkApi.php index c0717f2c105..bf1ec006d25 100644 --- a/clients/hydra/php/lib/Api/JwkApi.php +++ b/clients/hydra/php/lib/Api/JwkApi.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Api/MetadataApi.php b/clients/hydra/php/lib/Api/MetadataApi.php index 8e341e35727..f7889c91393 100644 --- a/clients/hydra/php/lib/Api/MetadataApi.php +++ b/clients/hydra/php/lib/Api/MetadataApi.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Api/OAuth2Api.php b/clients/hydra/php/lib/Api/OAuth2Api.php index 0f45589c552..5704ef7e065 100644 --- a/clients/hydra/php/lib/Api/OAuth2Api.php +++ b/clients/hydra/php/lib/Api/OAuth2Api.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Api/OidcApi.php b/clients/hydra/php/lib/Api/OidcApi.php index 62276595cdf..86b359610a1 100644 --- a/clients/hydra/php/lib/Api/OidcApi.php +++ b/clients/hydra/php/lib/Api/OidcApi.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Api/WellknownApi.php b/clients/hydra/php/lib/Api/WellknownApi.php index 7e9fbdd9319..53fd17178d4 100644 --- a/clients/hydra/php/lib/Api/WellknownApi.php +++ b/clients/hydra/php/lib/Api/WellknownApi.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/ApiException.php b/clients/hydra/php/lib/ApiException.php index 94316af8ade..d3a5efbba89 100644 --- a/clients/hydra/php/lib/ApiException.php +++ b/clients/hydra/php/lib/ApiException.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Configuration.php b/clients/hydra/php/lib/Configuration.php index 00456ff9734..fb22870ffb4 100644 --- a/clients/hydra/php/lib/Configuration.php +++ b/clients/hydra/php/lib/Configuration.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -399,7 +399,7 @@ public static function toDebugReport() $report = 'PHP SDK (Ory\Hydra\Client) Debug Report:' . PHP_EOL; $report .= ' OS: ' . php_uname() . PHP_EOL; $report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL; - $report .= ' The version of the OpenAPI document: v2.2.0-rc.3' . PHP_EOL; + $report .= ' The version of the OpenAPI document: v2.2.0' . PHP_EOL; $report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL; return $report; diff --git a/clients/hydra/php/lib/HeaderSelector.php b/clients/hydra/php/lib/HeaderSelector.php index 6a51b58f0b0..e7b6d2c19cc 100644 --- a/clients/hydra/php/lib/HeaderSelector.php +++ b/clients/hydra/php/lib/HeaderSelector.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequest.php b/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequest.php index ba679b13563..c82e59562a5 100644 --- a/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequest.php +++ b/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -60,6 +60,7 @@ class AcceptOAuth2ConsentRequest implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ + 'context' => 'mixed', 'grantAccessTokenAudience' => 'string[]', 'grantScope' => 'string[]', 'handledAt' => '\DateTime', @@ -76,6 +77,7 @@ class AcceptOAuth2ConsentRequest implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ + 'context' => null, 'grantAccessTokenAudience' => null, 'grantScope' => null, 'handledAt' => 'date-time', @@ -111,6 +113,7 @@ public static function openAPIFormats() * @var string[] */ protected static $attributeMap = [ + 'context' => 'context', 'grantAccessTokenAudience' => 'grant_access_token_audience', 'grantScope' => 'grant_scope', 'handledAt' => 'handled_at', @@ -125,6 +128,7 @@ public static function openAPIFormats() * @var string[] */ protected static $setters = [ + 'context' => 'setContext', 'grantAccessTokenAudience' => 'setGrantAccessTokenAudience', 'grantScope' => 'setGrantScope', 'handledAt' => 'setHandledAt', @@ -139,6 +143,7 @@ public static function openAPIFormats() * @var string[] */ protected static $getters = [ + 'context' => 'getContext', 'grantAccessTokenAudience' => 'getGrantAccessTokenAudience', 'grantScope' => 'getGrantScope', 'handledAt' => 'getHandledAt', @@ -204,6 +209,7 @@ public function getModelName() */ public function __construct(array $data = null) { + $this->container['context'] = $data['context'] ?? null; $this->container['grantAccessTokenAudience'] = $data['grantAccessTokenAudience'] ?? null; $this->container['grantScope'] = $data['grantScope'] ?? null; $this->container['handledAt'] = $data['handledAt'] ?? null; @@ -236,6 +242,30 @@ public function valid() } + /** + * Gets context + * + * @return mixed|null + */ + public function getContext() + { + return $this->container['context']; + } + + /** + * Sets context + * + * @param mixed|null $context context + * + * @return self + */ + public function setContext($context) + { + $this->container['context'] = $context; + + return $this; + } + /** * Gets grantAccessTokenAudience * diff --git a/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequestSession.php b/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequestSession.php index 0c92427b0b2..00cf00b3277 100644 --- a/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequestSession.php +++ b/clients/hydra/php/lib/Model/AcceptOAuth2ConsentRequestSession.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/AcceptOAuth2LoginRequest.php b/clients/hydra/php/lib/Model/AcceptOAuth2LoginRequest.php index 5209129e109..b7ce384e266 100644 --- a/clients/hydra/php/lib/Model/AcceptOAuth2LoginRequest.php +++ b/clients/hydra/php/lib/Model/AcceptOAuth2LoginRequest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/CreateJsonWebKeySet.php b/clients/hydra/php/lib/Model/CreateJsonWebKeySet.php index 0312d562c60..3f5fbb160c3 100644 --- a/clients/hydra/php/lib/Model/CreateJsonWebKeySet.php +++ b/clients/hydra/php/lib/Model/CreateJsonWebKeySet.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/CreateVerifiableCredentialRequestBody.php b/clients/hydra/php/lib/Model/CreateVerifiableCredentialRequestBody.php index a24051a1d7f..ab87e6b4e88 100644 --- a/clients/hydra/php/lib/Model/CreateVerifiableCredentialRequestBody.php +++ b/clients/hydra/php/lib/Model/CreateVerifiableCredentialRequestBody.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/CredentialSupportedDraft00.php b/clients/hydra/php/lib/Model/CredentialSupportedDraft00.php index 1fb77002a9b..2ad2bfce994 100644 --- a/clients/hydra/php/lib/Model/CredentialSupportedDraft00.php +++ b/clients/hydra/php/lib/Model/CredentialSupportedDraft00.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/ErrorOAuth2.php b/clients/hydra/php/lib/Model/ErrorOAuth2.php index ba0cde32ee2..234ad2e08b1 100644 --- a/clients/hydra/php/lib/Model/ErrorOAuth2.php +++ b/clients/hydra/php/lib/Model/ErrorOAuth2.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/GenericError.php b/clients/hydra/php/lib/Model/GenericError.php index 3e3aa350c49..8fe605ffb41 100644 --- a/clients/hydra/php/lib/Model/GenericError.php +++ b/clients/hydra/php/lib/Model/GenericError.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/HealthNotReadyStatus.php b/clients/hydra/php/lib/Model/HealthNotReadyStatus.php index 08197f35973..4f6060ecf5c 100644 --- a/clients/hydra/php/lib/Model/HealthNotReadyStatus.php +++ b/clients/hydra/php/lib/Model/HealthNotReadyStatus.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/HealthStatus.php b/clients/hydra/php/lib/Model/HealthStatus.php index 17ccd3df889..24f6d5b86fd 100644 --- a/clients/hydra/php/lib/Model/HealthStatus.php +++ b/clients/hydra/php/lib/Model/HealthStatus.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/InlineResponse200.php b/clients/hydra/php/lib/Model/InlineResponse200.php index a968fd6834f..d867b0548d2 100644 --- a/clients/hydra/php/lib/Model/InlineResponse200.php +++ b/clients/hydra/php/lib/Model/InlineResponse200.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/InlineResponse2001.php b/clients/hydra/php/lib/Model/InlineResponse2001.php index 5a65386c2e0..0ee0701dade 100644 --- a/clients/hydra/php/lib/Model/InlineResponse2001.php +++ b/clients/hydra/php/lib/Model/InlineResponse2001.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/InlineResponse503.php b/clients/hydra/php/lib/Model/InlineResponse503.php index 09640007945..aecf5653381 100644 --- a/clients/hydra/php/lib/Model/InlineResponse503.php +++ b/clients/hydra/php/lib/Model/InlineResponse503.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/IntrospectedOAuth2Token.php b/clients/hydra/php/lib/Model/IntrospectedOAuth2Token.php index d0846983286..025fc446974 100644 --- a/clients/hydra/php/lib/Model/IntrospectedOAuth2Token.php +++ b/clients/hydra/php/lib/Model/IntrospectedOAuth2Token.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/JsonPatch.php b/clients/hydra/php/lib/Model/JsonPatch.php index e6d92386877..a19a496f0c6 100644 --- a/clients/hydra/php/lib/Model/JsonPatch.php +++ b/clients/hydra/php/lib/Model/JsonPatch.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/JsonWebKey.php b/clients/hydra/php/lib/Model/JsonWebKey.php index f0e9f60d77f..87c1b0e75d0 100644 --- a/clients/hydra/php/lib/Model/JsonWebKey.php +++ b/clients/hydra/php/lib/Model/JsonWebKey.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/JsonWebKeySet.php b/clients/hydra/php/lib/Model/JsonWebKeySet.php index 202b5b229dd..a52fbc11c8d 100644 --- a/clients/hydra/php/lib/Model/JsonWebKeySet.php +++ b/clients/hydra/php/lib/Model/JsonWebKeySet.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/ModelInterface.php b/clients/hydra/php/lib/Model/ModelInterface.php index 8f108b359c5..0fac8f1563d 100644 --- a/clients/hydra/php/lib/Model/ModelInterface.php +++ b/clients/hydra/php/lib/Model/ModelInterface.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2Client.php b/clients/hydra/php/lib/Model/OAuth2Client.php index 1b3e2d64ba3..ebf4a110035 100644 --- a/clients/hydra/php/lib/Model/OAuth2Client.php +++ b/clients/hydra/php/lib/Model/OAuth2Client.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -102,6 +102,7 @@ class OAuth2Client implements ModelInterface, ArrayAccess, \JsonSerializable 'scope' => 'string', 'sectorIdentifierUri' => 'string', 'skipConsent' => 'bool', + 'skipLogoutConsent' => 'bool', 'subjectType' => 'string', 'tokenEndpointAuthMethod' => 'string', 'tokenEndpointAuthSigningAlg' => 'string', @@ -159,6 +160,7 @@ class OAuth2Client implements ModelInterface, ArrayAccess, \JsonSerializable 'scope' => null, 'sectorIdentifierUri' => null, 'skipConsent' => null, + 'skipLogoutConsent' => null, 'subjectType' => null, 'tokenEndpointAuthMethod' => null, 'tokenEndpointAuthSigningAlg' => null, @@ -235,6 +237,7 @@ public static function openAPIFormats() 'scope' => 'scope', 'sectorIdentifierUri' => 'sector_identifier_uri', 'skipConsent' => 'skip_consent', + 'skipLogoutConsent' => 'skip_logout_consent', 'subjectType' => 'subject_type', 'tokenEndpointAuthMethod' => 'token_endpoint_auth_method', 'tokenEndpointAuthSigningAlg' => 'token_endpoint_auth_signing_alg', @@ -290,6 +293,7 @@ public static function openAPIFormats() 'scope' => 'setScope', 'sectorIdentifierUri' => 'setSectorIdentifierUri', 'skipConsent' => 'setSkipConsent', + 'skipLogoutConsent' => 'setSkipLogoutConsent', 'subjectType' => 'setSubjectType', 'tokenEndpointAuthMethod' => 'setTokenEndpointAuthMethod', 'tokenEndpointAuthSigningAlg' => 'setTokenEndpointAuthSigningAlg', @@ -345,6 +349,7 @@ public static function openAPIFormats() 'scope' => 'getScope', 'sectorIdentifierUri' => 'getSectorIdentifierUri', 'skipConsent' => 'getSkipConsent', + 'skipLogoutConsent' => 'getSkipLogoutConsent', 'subjectType' => 'getSubjectType', 'tokenEndpointAuthMethod' => 'getTokenEndpointAuthMethod', 'tokenEndpointAuthSigningAlg' => 'getTokenEndpointAuthSigningAlg', @@ -451,6 +456,7 @@ public function __construct(array $data = null) $this->container['scope'] = $data['scope'] ?? null; $this->container['sectorIdentifierUri'] = $data['sectorIdentifierUri'] ?? null; $this->container['skipConsent'] = $data['skipConsent'] ?? null; + $this->container['skipLogoutConsent'] = $data['skipLogoutConsent'] ?? null; $this->container['subjectType'] = $data['subjectType'] ?? null; $this->container['tokenEndpointAuthMethod'] = $data['tokenEndpointAuthMethod'] ?? 'client_secret_basic'; $this->container['tokenEndpointAuthSigningAlg'] = $data['tokenEndpointAuthSigningAlg'] ?? null; @@ -772,7 +778,7 @@ public function getClientId() /** * Sets clientId * - * @param string|null $clientId OAuth 2.0 Client ID The ID is autogenerated and immutable. + * @param string|null $clientId OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. * * @return self */ @@ -1557,6 +1563,30 @@ public function setSkipConsent($skipConsent) return $this; } + /** + * Gets skipLogoutConsent + * + * @return bool|null + */ + public function getSkipLogoutConsent() + { + return $this->container['skipLogoutConsent']; + } + + /** + * Sets skipLogoutConsent + * + * @param bool|null $skipLogoutConsent SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + * + * @return self + */ + public function setSkipLogoutConsent($skipLogoutConsent) + { + $this->container['skipLogoutConsent'] = $skipLogoutConsent; + + return $this; + } + /** * Gets subjectType * diff --git a/clients/hydra/php/lib/Model/OAuth2ClientTokenLifespans.php b/clients/hydra/php/lib/Model/OAuth2ClientTokenLifespans.php index 4efeb30d3e1..0a91790fc12 100644 --- a/clients/hydra/php/lib/Model/OAuth2ClientTokenLifespans.php +++ b/clients/hydra/php/lib/Model/OAuth2ClientTokenLifespans.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2ConsentRequest.php b/clients/hydra/php/lib/Model/OAuth2ConsentRequest.php index 3ae5273c244..47464d69fdb 100644 --- a/clients/hydra/php/lib/Model/OAuth2ConsentRequest.php +++ b/clients/hydra/php/lib/Model/OAuth2ConsentRequest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php b/clients/hydra/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php index 089af3b93d6..bd8367edc3e 100644 --- a/clients/hydra/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php +++ b/clients/hydra/php/lib/Model/OAuth2ConsentRequestOpenIDConnectContext.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2ConsentSession.php b/clients/hydra/php/lib/Model/OAuth2ConsentSession.php index 035e5aad813..3d692e83093 100644 --- a/clients/hydra/php/lib/Model/OAuth2ConsentSession.php +++ b/clients/hydra/php/lib/Model/OAuth2ConsentSession.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -62,6 +62,7 @@ class OAuth2ConsentSession implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPITypes = [ 'consentRequest' => '\Ory\Hydra\Client\Model\OAuth2ConsentRequest', + 'context' => 'mixed', 'expiresAt' => '\Ory\Hydra\Client\Model\OAuth2ConsentSessionExpiresAt', 'grantAccessTokenAudience' => 'string[]', 'grantScope' => 'string[]', @@ -80,6 +81,7 @@ class OAuth2ConsentSession implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPIFormats = [ 'consentRequest' => null, + 'context' => null, 'expiresAt' => null, 'grantAccessTokenAudience' => null, 'grantScope' => null, @@ -117,6 +119,7 @@ public static function openAPIFormats() */ protected static $attributeMap = [ 'consentRequest' => 'consent_request', + 'context' => 'context', 'expiresAt' => 'expires_at', 'grantAccessTokenAudience' => 'grant_access_token_audience', 'grantScope' => 'grant_scope', @@ -133,6 +136,7 @@ public static function openAPIFormats() */ protected static $setters = [ 'consentRequest' => 'setConsentRequest', + 'context' => 'setContext', 'expiresAt' => 'setExpiresAt', 'grantAccessTokenAudience' => 'setGrantAccessTokenAudience', 'grantScope' => 'setGrantScope', @@ -149,6 +153,7 @@ public static function openAPIFormats() */ protected static $getters = [ 'consentRequest' => 'getConsentRequest', + 'context' => 'getContext', 'expiresAt' => 'getExpiresAt', 'grantAccessTokenAudience' => 'getGrantAccessTokenAudience', 'grantScope' => 'getGrantScope', @@ -216,6 +221,7 @@ public function getModelName() public function __construct(array $data = null) { $this->container['consentRequest'] = $data['consentRequest'] ?? null; + $this->container['context'] = $data['context'] ?? null; $this->container['expiresAt'] = $data['expiresAt'] ?? null; $this->container['grantAccessTokenAudience'] = $data['grantAccessTokenAudience'] ?? null; $this->container['grantScope'] = $data['grantScope'] ?? null; @@ -273,6 +279,30 @@ public function setConsentRequest($consentRequest) return $this; } + /** + * Gets context + * + * @return mixed|null + */ + public function getContext() + { + return $this->container['context']; + } + + /** + * Sets context + * + * @param mixed|null $context context + * + * @return self + */ + public function setContext($context) + { + $this->container['context'] = $context; + + return $this; + } + /** * Gets expiresAt * diff --git a/clients/hydra/php/lib/Model/OAuth2ConsentSessionExpiresAt.php b/clients/hydra/php/lib/Model/OAuth2ConsentSessionExpiresAt.php index 09d3b3774aa..89b6afb67ea 100644 --- a/clients/hydra/php/lib/Model/OAuth2ConsentSessionExpiresAt.php +++ b/clients/hydra/php/lib/Model/OAuth2ConsentSessionExpiresAt.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2LoginRequest.php b/clients/hydra/php/lib/Model/OAuth2LoginRequest.php index bb01d3a3409..3cebde64a26 100644 --- a/clients/hydra/php/lib/Model/OAuth2LoginRequest.php +++ b/clients/hydra/php/lib/Model/OAuth2LoginRequest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -248,12 +248,6 @@ public function listInvalidProperties() if ($this->container['requestUrl'] === null) { $invalidProperties[] = "'requestUrl' can't be null"; } - if ($this->container['requestedAccessTokenAudience'] === null) { - $invalidProperties[] = "'requestedAccessTokenAudience' can't be null"; - } - if ($this->container['requestedScope'] === null) { - $invalidProperties[] = "'requestedScope' can't be null"; - } if ($this->container['skip'] === null) { $invalidProperties[] = "'skip' can't be null"; } @@ -374,7 +368,7 @@ public function setRequestUrl($requestUrl) /** * Gets requestedAccessTokenAudience * - * @return string[] + * @return string[]|null */ public function getRequestedAccessTokenAudience() { @@ -384,7 +378,7 @@ public function getRequestedAccessTokenAudience() /** * Sets requestedAccessTokenAudience * - * @param string[] $requestedAccessTokenAudience requestedAccessTokenAudience + * @param string[]|null $requestedAccessTokenAudience requestedAccessTokenAudience * * @return self */ @@ -398,7 +392,7 @@ public function setRequestedAccessTokenAudience($requestedAccessTokenAudience) /** * Gets requestedScope * - * @return string[] + * @return string[]|null */ public function getRequestedScope() { @@ -408,7 +402,7 @@ public function getRequestedScope() /** * Sets requestedScope * - * @param string[] $requestedScope requestedScope + * @param string[]|null $requestedScope requestedScope * * @return self */ diff --git a/clients/hydra/php/lib/Model/OAuth2LogoutRequest.php b/clients/hydra/php/lib/Model/OAuth2LogoutRequest.php index 7b3a05ec2e8..af84b1a2448 100644 --- a/clients/hydra/php/lib/Model/OAuth2LogoutRequest.php +++ b/clients/hydra/php/lib/Model/OAuth2LogoutRequest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2RedirectTo.php b/clients/hydra/php/lib/Model/OAuth2RedirectTo.php index b0121f9cd28..d27790a9387 100644 --- a/clients/hydra/php/lib/Model/OAuth2RedirectTo.php +++ b/clients/hydra/php/lib/Model/OAuth2RedirectTo.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OAuth2TokenExchange.php b/clients/hydra/php/lib/Model/OAuth2TokenExchange.php index 06cc24779ef..00869b235a9 100644 --- a/clients/hydra/php/lib/Model/OAuth2TokenExchange.php +++ b/clients/hydra/php/lib/Model/OAuth2TokenExchange.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -63,7 +63,7 @@ class OAuth2TokenExchange implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPITypes = [ 'accessToken' => 'string', 'expiresIn' => 'int', - 'idToken' => 'int', + 'idToken' => 'string', 'refreshToken' => 'string', 'scope' => 'string', 'tokenType' => 'string' @@ -79,7 +79,7 @@ class OAuth2TokenExchange implements ModelInterface, ArrayAccess, \JsonSerializa protected static $openAPIFormats = [ 'accessToken' => null, 'expiresIn' => 'int64', - 'idToken' => 'int64', + 'idToken' => null, 'refreshToken' => null, 'scope' => null, 'tokenType' => null @@ -288,7 +288,7 @@ public function setExpiresIn($expiresIn) /** * Gets idToken * - * @return int|null + * @return string|null */ public function getIdToken() { @@ -298,7 +298,7 @@ public function getIdToken() /** * Sets idToken * - * @param int|null $idToken To retrieve a refresh token request the id_token scope. + * @param string|null $idToken To retrieve a refresh token request the id_token scope. * * @return self */ diff --git a/clients/hydra/php/lib/Model/OidcConfiguration.php b/clients/hydra/php/lib/Model/OidcConfiguration.php index dfc4cf599ca..6885b814b5e 100644 --- a/clients/hydra/php/lib/Model/OidcConfiguration.php +++ b/clients/hydra/php/lib/Model/OidcConfiguration.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/OidcUserInfo.php b/clients/hydra/php/lib/Model/OidcUserInfo.php index 5ce1081ac2e..2f849b549a6 100644 --- a/clients/hydra/php/lib/Model/OidcUserInfo.php +++ b/clients/hydra/php/lib/Model/OidcUserInfo.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/Pagination.php b/clients/hydra/php/lib/Model/Pagination.php index 461a4ed5a2c..dea697297d5 100644 --- a/clients/hydra/php/lib/Model/Pagination.php +++ b/clients/hydra/php/lib/Model/Pagination.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/PaginationHeaders.php b/clients/hydra/php/lib/Model/PaginationHeaders.php index 7d73f9554ae..c04e20a2ea4 100644 --- a/clients/hydra/php/lib/Model/PaginationHeaders.php +++ b/clients/hydra/php/lib/Model/PaginationHeaders.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/RFC6749ErrorJson.php b/clients/hydra/php/lib/Model/RFC6749ErrorJson.php index f044a6d24e9..96aca1eac5a 100644 --- a/clients/hydra/php/lib/Model/RFC6749ErrorJson.php +++ b/clients/hydra/php/lib/Model/RFC6749ErrorJson.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/RejectOAuth2Request.php b/clients/hydra/php/lib/Model/RejectOAuth2Request.php index 9972d8866ce..4577658f841 100644 --- a/clients/hydra/php/lib/Model/RejectOAuth2Request.php +++ b/clients/hydra/php/lib/Model/RejectOAuth2Request.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TokenPagination.php b/clients/hydra/php/lib/Model/TokenPagination.php index f8db3a39f43..33a58d18fb8 100644 --- a/clients/hydra/php/lib/Model/TokenPagination.php +++ b/clients/hydra/php/lib/Model/TokenPagination.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TokenPaginationHeaders.php b/clients/hydra/php/lib/Model/TokenPaginationHeaders.php index 423f676db62..a96d6888df8 100644 --- a/clients/hydra/php/lib/Model/TokenPaginationHeaders.php +++ b/clients/hydra/php/lib/Model/TokenPaginationHeaders.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TokenPaginationRequestParameters.php b/clients/hydra/php/lib/Model/TokenPaginationRequestParameters.php index 697deac1582..68bf8c17096 100644 --- a/clients/hydra/php/lib/Model/TokenPaginationRequestParameters.php +++ b/clients/hydra/php/lib/Model/TokenPaginationRequestParameters.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TokenPaginationResponseHeaders.php b/clients/hydra/php/lib/Model/TokenPaginationResponseHeaders.php index 02e6e007ed8..9acccdacc2a 100644 --- a/clients/hydra/php/lib/Model/TokenPaginationResponseHeaders.php +++ b/clients/hydra/php/lib/Model/TokenPaginationResponseHeaders.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TrustOAuth2JwtGrantIssuer.php b/clients/hydra/php/lib/Model/TrustOAuth2JwtGrantIssuer.php index d737042f3e8..152bcd7598c 100644 --- a/clients/hydra/php/lib/Model/TrustOAuth2JwtGrantIssuer.php +++ b/clients/hydra/php/lib/Model/TrustOAuth2JwtGrantIssuer.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php b/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php index 937512d97dc..e31535a1173 100644 --- a/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php +++ b/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantIssuer.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php b/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php index 4720cdae6e1..b1068417bf6 100644 --- a/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php +++ b/clients/hydra/php/lib/Model/TrustedOAuth2JwtGrantJsonWebKey.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/VerifiableCredentialPrimingResponse.php b/clients/hydra/php/lib/Model/VerifiableCredentialPrimingResponse.php index da923bcfa8e..f36fe659b8b 100644 --- a/clients/hydra/php/lib/Model/VerifiableCredentialPrimingResponse.php +++ b/clients/hydra/php/lib/Model/VerifiableCredentialPrimingResponse.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/VerifiableCredentialProof.php b/clients/hydra/php/lib/Model/VerifiableCredentialProof.php index bea87c08120..78f2ce82a03 100644 --- a/clients/hydra/php/lib/Model/VerifiableCredentialProof.php +++ b/clients/hydra/php/lib/Model/VerifiableCredentialProof.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/VerifiableCredentialResponse.php b/clients/hydra/php/lib/Model/VerifiableCredentialResponse.php index d3a12d695ea..66dd96147f1 100644 --- a/clients/hydra/php/lib/Model/VerifiableCredentialResponse.php +++ b/clients/hydra/php/lib/Model/VerifiableCredentialResponse.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/Model/Version.php b/clients/hydra/php/lib/Model/Version.php index c816bebdda1..f5dafef116d 100644 --- a/clients/hydra/php/lib/Model/Version.php +++ b/clients/hydra/php/lib/Model/Version.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/lib/ObjectSerializer.php b/clients/hydra/php/lib/ObjectSerializer.php index aaaa81838cd..8593d54f994 100644 --- a/clients/hydra/php/lib/ObjectSerializer.php +++ b/clients/hydra/php/lib/ObjectSerializer.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Api/JwkApiTest.php b/clients/hydra/php/test/Api/JwkApiTest.php index 0a1b8e8a76e..91bb728f8a3 100644 --- a/clients/hydra/php/test/Api/JwkApiTest.php +++ b/clients/hydra/php/test/Api/JwkApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Api/MetadataApiTest.php b/clients/hydra/php/test/Api/MetadataApiTest.php index 8050cb3c824..861d1b9a02e 100644 --- a/clients/hydra/php/test/Api/MetadataApiTest.php +++ b/clients/hydra/php/test/Api/MetadataApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Api/OAuth2ApiTest.php b/clients/hydra/php/test/Api/OAuth2ApiTest.php index 059b9548aeb..8cb8bd7037d 100644 --- a/clients/hydra/php/test/Api/OAuth2ApiTest.php +++ b/clients/hydra/php/test/Api/OAuth2ApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Api/OidcApiTest.php b/clients/hydra/php/test/Api/OidcApiTest.php index 619e0728df8..6e5d9fa1b49 100644 --- a/clients/hydra/php/test/Api/OidcApiTest.php +++ b/clients/hydra/php/test/Api/OidcApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Api/WellknownApiTest.php b/clients/hydra/php/test/Api/WellknownApiTest.php index 348056750a8..cac6f0ef786 100644 --- a/clients/hydra/php/test/Api/WellknownApiTest.php +++ b/clients/hydra/php/test/Api/WellknownApiTest.php @@ -14,7 +14,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php b/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php index f81a308af23..cf4881f617f 100644 --- a/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php +++ b/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestSessionTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestTest.php b/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestTest.php index 0d6bf64cf8f..7c2afd71d0a 100644 --- a/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestTest.php +++ b/clients/hydra/php/test/Model/AcceptOAuth2ConsentRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -80,6 +80,15 @@ public function testAcceptOAuth2ConsentRequest() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "context" + */ + public function testPropertyContext() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "grantAccessTokenAudience" */ diff --git a/clients/hydra/php/test/Model/AcceptOAuth2LoginRequestTest.php b/clients/hydra/php/test/Model/AcceptOAuth2LoginRequestTest.php index f0d1725a2e8..28115e0afca 100644 --- a/clients/hydra/php/test/Model/AcceptOAuth2LoginRequestTest.php +++ b/clients/hydra/php/test/Model/AcceptOAuth2LoginRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/CreateJsonWebKeySetTest.php b/clients/hydra/php/test/Model/CreateJsonWebKeySetTest.php index d0ac5165d3f..26146380626 100644 --- a/clients/hydra/php/test/Model/CreateJsonWebKeySetTest.php +++ b/clients/hydra/php/test/Model/CreateJsonWebKeySetTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php b/clients/hydra/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php index dd9c57eb924..f8d5d1eb9bd 100644 --- a/clients/hydra/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php +++ b/clients/hydra/php/test/Model/CreateVerifiableCredentialRequestBodyTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/CredentialSupportedDraft00Test.php b/clients/hydra/php/test/Model/CredentialSupportedDraft00Test.php index d0d92c65479..f5e2761dc0e 100644 --- a/clients/hydra/php/test/Model/CredentialSupportedDraft00Test.php +++ b/clients/hydra/php/test/Model/CredentialSupportedDraft00Test.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/ErrorOAuth2Test.php b/clients/hydra/php/test/Model/ErrorOAuth2Test.php index 48e35a01ad7..a10c97eee03 100644 --- a/clients/hydra/php/test/Model/ErrorOAuth2Test.php +++ b/clients/hydra/php/test/Model/ErrorOAuth2Test.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/GenericErrorTest.php b/clients/hydra/php/test/Model/GenericErrorTest.php index a8aa522f07c..6ad87653dff 100644 --- a/clients/hydra/php/test/Model/GenericErrorTest.php +++ b/clients/hydra/php/test/Model/GenericErrorTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/HealthNotReadyStatusTest.php b/clients/hydra/php/test/Model/HealthNotReadyStatusTest.php index 4c7f9feeacf..1eb84ccc483 100644 --- a/clients/hydra/php/test/Model/HealthNotReadyStatusTest.php +++ b/clients/hydra/php/test/Model/HealthNotReadyStatusTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/HealthStatusTest.php b/clients/hydra/php/test/Model/HealthStatusTest.php index f335220d7eb..8d1dd6fab10 100644 --- a/clients/hydra/php/test/Model/HealthStatusTest.php +++ b/clients/hydra/php/test/Model/HealthStatusTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/InlineResponse2001Test.php b/clients/hydra/php/test/Model/InlineResponse2001Test.php index bfeeea3e313..f6c156f72d9 100644 --- a/clients/hydra/php/test/Model/InlineResponse2001Test.php +++ b/clients/hydra/php/test/Model/InlineResponse2001Test.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/InlineResponse200Test.php b/clients/hydra/php/test/Model/InlineResponse200Test.php index 6a0432a70f7..6be7041259d 100644 --- a/clients/hydra/php/test/Model/InlineResponse200Test.php +++ b/clients/hydra/php/test/Model/InlineResponse200Test.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/InlineResponse503Test.php b/clients/hydra/php/test/Model/InlineResponse503Test.php index a08b391d6f3..83309a7b455 100644 --- a/clients/hydra/php/test/Model/InlineResponse503Test.php +++ b/clients/hydra/php/test/Model/InlineResponse503Test.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/IntrospectedOAuth2TokenTest.php b/clients/hydra/php/test/Model/IntrospectedOAuth2TokenTest.php index de8a54fd052..0b82fa1bbf7 100644 --- a/clients/hydra/php/test/Model/IntrospectedOAuth2TokenTest.php +++ b/clients/hydra/php/test/Model/IntrospectedOAuth2TokenTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/JsonPatchTest.php b/clients/hydra/php/test/Model/JsonPatchTest.php index 3bb5654dbd9..3e3dd8a6ff5 100644 --- a/clients/hydra/php/test/Model/JsonPatchTest.php +++ b/clients/hydra/php/test/Model/JsonPatchTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/JsonWebKeySetTest.php b/clients/hydra/php/test/Model/JsonWebKeySetTest.php index 9aa738548f7..4e68341356a 100644 --- a/clients/hydra/php/test/Model/JsonWebKeySetTest.php +++ b/clients/hydra/php/test/Model/JsonWebKeySetTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/JsonWebKeyTest.php b/clients/hydra/php/test/Model/JsonWebKeyTest.php index 0f9ca1de892..d8906deecf3 100644 --- a/clients/hydra/php/test/Model/JsonWebKeyTest.php +++ b/clients/hydra/php/test/Model/JsonWebKeyTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2ClientTest.php b/clients/hydra/php/test/Model/OAuth2ClientTest.php index c80f692bad3..43e8e36cf73 100644 --- a/clients/hydra/php/test/Model/OAuth2ClientTest.php +++ b/clients/hydra/php/test/Model/OAuth2ClientTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -449,6 +449,15 @@ public function testPropertySkipConsent() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "skipLogoutConsent" + */ + public function testPropertySkipLogoutConsent() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "subjectType" */ diff --git a/clients/hydra/php/test/Model/OAuth2ClientTokenLifespansTest.php b/clients/hydra/php/test/Model/OAuth2ClientTokenLifespansTest.php index 1e08da59fc8..dd72f2ad7a9 100644 --- a/clients/hydra/php/test/Model/OAuth2ClientTokenLifespansTest.php +++ b/clients/hydra/php/test/Model/OAuth2ClientTokenLifespansTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php b/clients/hydra/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php index 014c80eb22f..8de19d6054a 100644 --- a/clients/hydra/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php +++ b/clients/hydra/php/test/Model/OAuth2ConsentRequestOpenIDConnectContextTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2ConsentRequestTest.php b/clients/hydra/php/test/Model/OAuth2ConsentRequestTest.php index 90cd8a18445..ae60d311c6f 100644 --- a/clients/hydra/php/test/Model/OAuth2ConsentRequestTest.php +++ b/clients/hydra/php/test/Model/OAuth2ConsentRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php b/clients/hydra/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php index b95ccb1df1a..dc04d9d64fa 100644 --- a/clients/hydra/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php +++ b/clients/hydra/php/test/Model/OAuth2ConsentSessionExpiresAtTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2ConsentSessionTest.php b/clients/hydra/php/test/Model/OAuth2ConsentSessionTest.php index 397ac1c53a2..4d97ccd9074 100644 --- a/clients/hydra/php/test/Model/OAuth2ConsentSessionTest.php +++ b/clients/hydra/php/test/Model/OAuth2ConsentSessionTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 @@ -89,6 +89,15 @@ public function testPropertyConsentRequest() $this->markTestIncomplete('Not implemented'); } + /** + * Test attribute "context" + */ + public function testPropertyContext() + { + // TODO: implement + $this->markTestIncomplete('Not implemented'); + } + /** * Test attribute "expiresAt" */ diff --git a/clients/hydra/php/test/Model/OAuth2LoginRequestTest.php b/clients/hydra/php/test/Model/OAuth2LoginRequestTest.php index 9f75fbed41e..ae23d75a832 100644 --- a/clients/hydra/php/test/Model/OAuth2LoginRequestTest.php +++ b/clients/hydra/php/test/Model/OAuth2LoginRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2LogoutRequestTest.php b/clients/hydra/php/test/Model/OAuth2LogoutRequestTest.php index 88e43b55045..74acf4312af 100644 --- a/clients/hydra/php/test/Model/OAuth2LogoutRequestTest.php +++ b/clients/hydra/php/test/Model/OAuth2LogoutRequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2RedirectToTest.php b/clients/hydra/php/test/Model/OAuth2RedirectToTest.php index ebf9d1f9268..c34c144ff0a 100644 --- a/clients/hydra/php/test/Model/OAuth2RedirectToTest.php +++ b/clients/hydra/php/test/Model/OAuth2RedirectToTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OAuth2TokenExchangeTest.php b/clients/hydra/php/test/Model/OAuth2TokenExchangeTest.php index a7973cfff4a..3264bbce0a8 100644 --- a/clients/hydra/php/test/Model/OAuth2TokenExchangeTest.php +++ b/clients/hydra/php/test/Model/OAuth2TokenExchangeTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OidcConfigurationTest.php b/clients/hydra/php/test/Model/OidcConfigurationTest.php index 794558a8947..2ace7846745 100644 --- a/clients/hydra/php/test/Model/OidcConfigurationTest.php +++ b/clients/hydra/php/test/Model/OidcConfigurationTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/OidcUserInfoTest.php b/clients/hydra/php/test/Model/OidcUserInfoTest.php index d27d80f2a8f..aaba7a502ba 100644 --- a/clients/hydra/php/test/Model/OidcUserInfoTest.php +++ b/clients/hydra/php/test/Model/OidcUserInfoTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/PaginationHeadersTest.php b/clients/hydra/php/test/Model/PaginationHeadersTest.php index 2fec9337315..17cfbcb87a2 100644 --- a/clients/hydra/php/test/Model/PaginationHeadersTest.php +++ b/clients/hydra/php/test/Model/PaginationHeadersTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/PaginationTest.php b/clients/hydra/php/test/Model/PaginationTest.php index d2d133506d1..91f816f6614 100644 --- a/clients/hydra/php/test/Model/PaginationTest.php +++ b/clients/hydra/php/test/Model/PaginationTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/RFC6749ErrorJsonTest.php b/clients/hydra/php/test/Model/RFC6749ErrorJsonTest.php index b275d8ac533..faaf583b60b 100644 --- a/clients/hydra/php/test/Model/RFC6749ErrorJsonTest.php +++ b/clients/hydra/php/test/Model/RFC6749ErrorJsonTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/RejectOAuth2RequestTest.php b/clients/hydra/php/test/Model/RejectOAuth2RequestTest.php index 7384ecaaca8..febe3487458 100644 --- a/clients/hydra/php/test/Model/RejectOAuth2RequestTest.php +++ b/clients/hydra/php/test/Model/RejectOAuth2RequestTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TokenPaginationHeadersTest.php b/clients/hydra/php/test/Model/TokenPaginationHeadersTest.php index 4b6fb6564a2..5e749eac359 100644 --- a/clients/hydra/php/test/Model/TokenPaginationHeadersTest.php +++ b/clients/hydra/php/test/Model/TokenPaginationHeadersTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TokenPaginationRequestParametersTest.php b/clients/hydra/php/test/Model/TokenPaginationRequestParametersTest.php index 712f2387941..dda63a6ccbc 100644 --- a/clients/hydra/php/test/Model/TokenPaginationRequestParametersTest.php +++ b/clients/hydra/php/test/Model/TokenPaginationRequestParametersTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TokenPaginationResponseHeadersTest.php b/clients/hydra/php/test/Model/TokenPaginationResponseHeadersTest.php index 3adc90ff2e1..dc84042b67e 100644 --- a/clients/hydra/php/test/Model/TokenPaginationResponseHeadersTest.php +++ b/clients/hydra/php/test/Model/TokenPaginationResponseHeadersTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TokenPaginationTest.php b/clients/hydra/php/test/Model/TokenPaginationTest.php index b418540a094..62dc7832f1e 100644 --- a/clients/hydra/php/test/Model/TokenPaginationTest.php +++ b/clients/hydra/php/test/Model/TokenPaginationTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php b/clients/hydra/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php index 4d9e2f5c88d..f8e976972a3 100644 --- a/clients/hydra/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php +++ b/clients/hydra/php/test/Model/TrustOAuth2JwtGrantIssuerTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php b/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php index d719140fa9b..3b461ece062 100644 --- a/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php +++ b/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantIssuerTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php b/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php index 7cdd83ead16..a5ecc788604 100644 --- a/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php +++ b/clients/hydra/php/test/Model/TrustedOAuth2JwtGrantJsonWebKeyTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/VerifiableCredentialPrimingResponseTest.php b/clients/hydra/php/test/Model/VerifiableCredentialPrimingResponseTest.php index 1d9ddc2a65d..b120051fcf5 100644 --- a/clients/hydra/php/test/Model/VerifiableCredentialPrimingResponseTest.php +++ b/clients/hydra/php/test/Model/VerifiableCredentialPrimingResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/VerifiableCredentialProofTest.php b/clients/hydra/php/test/Model/VerifiableCredentialProofTest.php index f3beb8636ca..9c23dd4002a 100644 --- a/clients/hydra/php/test/Model/VerifiableCredentialProofTest.php +++ b/clients/hydra/php/test/Model/VerifiableCredentialProofTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/VerifiableCredentialResponseTest.php b/clients/hydra/php/test/Model/VerifiableCredentialResponseTest.php index 9f4ff3ccb7d..02e7e7fe16d 100644 --- a/clients/hydra/php/test/Model/VerifiableCredentialResponseTest.php +++ b/clients/hydra/php/test/Model/VerifiableCredentialResponseTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/php/test/Model/VersionTest.php b/clients/hydra/php/test/Model/VersionTest.php index c4e18af77fc..cbbf8993c9d 100644 --- a/clients/hydra/php/test/Model/VersionTest.php +++ b/clients/hydra/php/test/Model/VersionTest.php @@ -15,7 +15,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 5.4.0 diff --git a/clients/hydra/python/README.md b/clients/hydra/python/README.md index ecb99d6ec1d..81afe893b44 100644 --- a/clients/hydra/python/README.md +++ b/clients/hydra/python/README.md @@ -4,8 +4,8 @@ Documentation for all of Ory Hydra's APIs. This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v2.2.0-rc.3 -- Package version: v2.2.0-rc.3 +- API version: v2.2.0 +- Package version: v2.2.0 - Build package: org.openapitools.codegen.languages.PythonClientCodegen ## Requirements. diff --git a/clients/hydra/python/docs/AcceptOAuth2ConsentRequest.md b/clients/hydra/python/docs/AcceptOAuth2ConsentRequest.md index d871d7f7eef..9ee5fc58778 100644 --- a/clients/hydra/python/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/hydra/python/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] **grant_access_token_audience** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **grant_scope** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **handled_at** | **datetime** | | [optional] diff --git a/clients/hydra/python/docs/OAuth2Api.md b/clients/hydra/python/docs/OAuth2Api.md index 186c5185eed..3a2d9ea5032 100644 --- a/clients/hydra/python/docs/OAuth2Api.md +++ b/clients/hydra/python/docs/OAuth2Api.md @@ -65,6 +65,7 @@ with ory_hydra_client.ApiClient() as api_client: api_instance = o_auth2_api.OAuth2Api(api_client) consent_challenge = "consent_challenge_example" # str | OAuth 2.0 Consent Request Challenge accept_o_auth2_consent_request = AcceptOAuth2ConsentRequest( + context=None, grant_access_token_audience=StringSliceJSONFormat([ "grant_access_token_audience_example", ]), @@ -377,6 +378,7 @@ with ory_hydra_client.ApiClient() as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", @@ -1864,7 +1866,7 @@ No authorization required Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Example @@ -2113,6 +2115,7 @@ with ory_hydra_client.ApiClient() as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", diff --git a/clients/hydra/python/docs/OAuth2Client.md b/clients/hydra/python/docs/OAuth2Client.md index 2c166ea928c..a3c7708b493 100644 --- a/clients/hydra/python/docs/OAuth2Client.md +++ b/clients/hydra/python/docs/OAuth2Client.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **backchannel_logout_session_required** | **bool** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **backchannel_logout_uri** | **str** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **client_credentials_grant_access_token_lifespan** | [**NullDuration**](NullDuration.md) | | [optional] -**client_id** | **str** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**client_id** | **str** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **client_name** | **str** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **client_secret** | **str** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **client_secret_expires_at** | **int** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -46,6 +46,7 @@ Name | Type | Description | Notes **scope** | **str** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sector_identifier_uri** | **str** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skip_consent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skip_logout_consent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subject_type** | **str** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **token_endpoint_auth_method** | **str** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] if omitted the server will use the default value of "client_secret_basic" **token_endpoint_auth_signing_alg** | **str** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/hydra/python/docs/OAuth2ConsentSession.md b/clients/hydra/python/docs/OAuth2ConsentSession.md index 98fb32dcb36..12b8e77f2d0 100644 --- a/clients/hydra/python/docs/OAuth2ConsentSession.md +++ b/clients/hydra/python/docs/OAuth2ConsentSession.md @@ -6,6 +6,7 @@ A completed OAuth 2.0 Consent Session. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consent_request** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] +**context** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [optional] **expires_at** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] **grant_access_token_audience** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **grant_scope** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] diff --git a/clients/hydra/python/docs/OAuth2LoginRequest.md b/clients/hydra/python/docs/OAuth2LoginRequest.md index e3559bf5ecd..350d901fafc 100644 --- a/clients/hydra/python/docs/OAuth2LoginRequest.md +++ b/clients/hydra/python/docs/OAuth2LoginRequest.md @@ -7,11 +7,11 @@ Name | Type | Description | Notes **challenge** | **str** | ID is the identifier (\"login challenge\") of the login request. It is used to identify the session. | **client** | [**OAuth2Client**](OAuth2Client.md) | | **request_url** | **str** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | -**requested_access_token_audience** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | -**requested_scope** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | **skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | **subject** | **str** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | **oidc_context** | [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] +**requested_access_token_audience** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] +**requested_scope** | [**StringSliceJSONFormat**](StringSliceJSONFormat.md) | | [optional] **session_id** | **str** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] **any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional] diff --git a/clients/hydra/python/docs/OAuth2TokenExchange.md b/clients/hydra/python/docs/OAuth2TokenExchange.md index f034ac63dc4..cae3acbb08f 100644 --- a/clients/hydra/python/docs/OAuth2TokenExchange.md +++ b/clients/hydra/python/docs/OAuth2TokenExchange.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_token** | **str** | The access token issued by the authorization server. | [optional] **expires_in** | **int** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**id_token** | **int** | To retrieve a refresh token request the id_token scope. | [optional] +**id_token** | **str** | To retrieve a refresh token request the id_token scope. | [optional] **refresh_token** | **str** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] **scope** | **str** | The scope of the access token | [optional] **token_type** | **str** | The type of the token issued | [optional] diff --git a/clients/hydra/python/docs/OidcApi.md b/clients/hydra/python/docs/OidcApi.md index c9d4d4e6180..e1fcda2daf5 100644 --- a/clients/hydra/python/docs/OidcApi.md +++ b/clients/hydra/python/docs/OidcApi.md @@ -100,6 +100,7 @@ with ory_hydra_client.ApiClient() as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", @@ -685,6 +686,7 @@ with ory_hydra_client.ApiClient(configuration) as api_client: scope="scope1 scope-2 scope.3 scope:4", sector_identifier_uri="sector_identifier_uri_example", skip_consent=True, + skip_logout_consent=True, subject_type="subject_type_example", token_endpoint_auth_method="client_secret_basic", token_endpoint_auth_signing_alg="token_endpoint_auth_signing_alg_example", diff --git a/clients/hydra/python/ory_hydra_client/__init__.py b/clients/hydra/python/ory_hydra_client/__init__.py index 21bb599beb1..8d53ec25b72 100644 --- a/clients/hydra/python/ory_hydra_client/__init__.py +++ b/clients/hydra/python/ory_hydra_client/__init__.py @@ -5,13 +5,13 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ -__version__ = "v2.2.0-rc.3" +__version__ = "v2.2.0" # import ApiClient from ory_hydra_client.api_client import ApiClient diff --git a/clients/hydra/python/ory_hydra_client/api/jwk_api.py b/clients/hydra/python/ory_hydra_client/api/jwk_api.py index 18f1477cc88..a169f34b97a 100644 --- a/clients/hydra/python/ory_hydra_client/api/jwk_api.py +++ b/clients/hydra/python/ory_hydra_client/api/jwk_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/api/metadata_api.py b/clients/hydra/python/ory_hydra_client/api/metadata_api.py index f23127a74fb..7e50147d348 100644 --- a/clients/hydra/python/ory_hydra_client/api/metadata_api.py +++ b/clients/hydra/python/ory_hydra_client/api/metadata_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/api/o_auth2_api.py b/clients/hydra/python/ory_hydra_client/api/o_auth2_api.py index a47ce8f1e28..36105fd300d 100644 --- a/clients/hydra/python/ory_hydra_client/api/o_auth2_api.py +++ b/clients/hydra/python/ory_hydra_client/api/o_auth2_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -3504,7 +3504,7 @@ def revoke_o_auth2_login_sessions( ): """Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID # noqa: E501 - This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. # noqa: E501 + This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. # noqa: E501 This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please pass async_req=True diff --git a/clients/hydra/python/ory_hydra_client/api/oidc_api.py b/clients/hydra/python/ory_hydra_client/api/oidc_api.py index b61108aa626..6302612fc58 100644 --- a/clients/hydra/python/ory_hydra_client/api/oidc_api.py +++ b/clients/hydra/python/ory_hydra_client/api/oidc_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/api/wellknown_api.py b/clients/hydra/python/ory_hydra_client/api/wellknown_api.py index abf2ad6107d..700a27f8807 100644 --- a/clients/hydra/python/ory_hydra_client/api/wellknown_api.py +++ b/clients/hydra/python/ory_hydra_client/api/wellknown_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/api_client.py b/clients/hydra/python/ory_hydra_client/api_client.py index b36dfa81c00..fe92d2e62fb 100644 --- a/clients/hydra/python/ory_hydra_client/api_client.py +++ b/clients/hydra/python/ory_hydra_client/api_client.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -77,7 +77,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'OpenAPI-Generator/v2.2.0-rc.3/python' + self.user_agent = 'OpenAPI-Generator/v2.2.0/python' def __enter__(self): return self diff --git a/clients/hydra/python/ory_hydra_client/configuration.py b/clients/hydra/python/ory_hydra_client/configuration.py index cc2b02cd708..66b6e61108a 100644 --- a/clients/hydra/python/ory_hydra_client/configuration.py +++ b/clients/hydra/python/ory_hydra_client/configuration.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -418,8 +418,8 @@ def to_debug_report(self): return "Python SDK Debug Report:\n"\ "OS: {env}\n"\ "Python Version: {pyversion}\n"\ - "Version of the API: v2.2.0-rc.3\n"\ - "SDK Package Version: v2.2.0-rc.3".\ + "Version of the API: v2.2.0\n"\ + "SDK Package Version: v2.2.0".\ format(env=sys.platform, pyversion=sys.version) def get_host_settings(self): diff --git a/clients/hydra/python/ory_hydra_client/exceptions.py b/clients/hydra/python/ory_hydra_client/exceptions.py index 6db33fd093e..96681fc7fad 100644 --- a/clients/hydra/python/ory_hydra_client/exceptions.py +++ b/clients/hydra/python/ory_hydra_client/exceptions.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request.py b/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request.py index 56c0147b8aa..2cbe2c12936 100644 --- a/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request.py +++ b/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -90,6 +90,7 @@ def openapi_types(): """ lazy_import() return { + 'context': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'grant_access_token_audience': (StringSliceJSONFormat,), # noqa: E501 'grant_scope': (StringSliceJSONFormat,), # noqa: E501 'handled_at': (datetime,), # noqa: E501 @@ -104,6 +105,7 @@ def discriminator(): attribute_map = { + 'context': 'context', # noqa: E501 'grant_access_token_audience': 'grant_access_token_audience', # noqa: E501 'grant_scope': 'grant_scope', # noqa: E501 'handled_at': 'handled_at', # noqa: E501 @@ -153,6 +155,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + context (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 handled_at (datetime): [optional] # noqa: E501 @@ -244,6 +247,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 Animal class but this time we won't travel through its discriminator because we passed in _visited_composed_classes = (Animal,) + context (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 handled_at (datetime): [optional] # noqa: E501 diff --git a/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request_session.py b/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request_session.py index 3ace7b7accd..6640ca56f74 100644 --- a/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request_session.py +++ b/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_consent_request_session.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_login_request.py b/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_login_request.py index bf1aeaf051c..af41e1a604a 100644 --- a/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_login_request.py +++ b/clients/hydra/python/ory_hydra_client/model/accept_o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/create_json_web_key_set.py b/clients/hydra/python/ory_hydra_client/model/create_json_web_key_set.py index cd360fa04ac..cfbb2ac3881 100644 --- a/clients/hydra/python/ory_hydra_client/model/create_json_web_key_set.py +++ b/clients/hydra/python/ory_hydra_client/model/create_json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/create_verifiable_credential_request_body.py b/clients/hydra/python/ory_hydra_client/model/create_verifiable_credential_request_body.py index e87ea232af6..8375617557f 100644 --- a/clients/hydra/python/ory_hydra_client/model/create_verifiable_credential_request_body.py +++ b/clients/hydra/python/ory_hydra_client/model/create_verifiable_credential_request_body.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/credential_supported_draft00.py b/clients/hydra/python/ory_hydra_client/model/credential_supported_draft00.py index 30c6f12ca4d..d6d477982a3 100644 --- a/clients/hydra/python/ory_hydra_client/model/credential_supported_draft00.py +++ b/clients/hydra/python/ory_hydra_client/model/credential_supported_draft00.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/error_o_auth2.py b/clients/hydra/python/ory_hydra_client/model/error_o_auth2.py index 15981b77129..62f8ed451a6 100644 --- a/clients/hydra/python/ory_hydra_client/model/error_o_auth2.py +++ b/clients/hydra/python/ory_hydra_client/model/error_o_auth2.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/generic_error.py b/clients/hydra/python/ory_hydra_client/model/generic_error.py index 19c10c33b19..ac02890e1d3 100644 --- a/clients/hydra/python/ory_hydra_client/model/generic_error.py +++ b/clients/hydra/python/ory_hydra_client/model/generic_error.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/get_version200_response.py b/clients/hydra/python/ory_hydra_client/model/get_version200_response.py index e105b34afa6..829924cb598 100644 --- a/clients/hydra/python/ory_hydra_client/model/get_version200_response.py +++ b/clients/hydra/python/ory_hydra_client/model/get_version200_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/health_not_ready_status.py b/clients/hydra/python/ory_hydra_client/model/health_not_ready_status.py index dd5573f0975..254554469fd 100644 --- a/clients/hydra/python/ory_hydra_client/model/health_not_ready_status.py +++ b/clients/hydra/python/ory_hydra_client/model/health_not_ready_status.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/health_status.py b/clients/hydra/python/ory_hydra_client/model/health_status.py index 59cbf75377e..beec4a5b66c 100644 --- a/clients/hydra/python/ory_hydra_client/model/health_status.py +++ b/clients/hydra/python/ory_hydra_client/model/health_status.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/introspected_o_auth2_token.py b/clients/hydra/python/ory_hydra_client/model/introspected_o_auth2_token.py index abc9b7c392e..ba639d29bd8 100644 --- a/clients/hydra/python/ory_hydra_client/model/introspected_o_auth2_token.py +++ b/clients/hydra/python/ory_hydra_client/model/introspected_o_auth2_token.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/is_ready200_response.py b/clients/hydra/python/ory_hydra_client/model/is_ready200_response.py index 5deddacc01a..a2fdb512d57 100644 --- a/clients/hydra/python/ory_hydra_client/model/is_ready200_response.py +++ b/clients/hydra/python/ory_hydra_client/model/is_ready200_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/is_ready503_response.py b/clients/hydra/python/ory_hydra_client/model/is_ready503_response.py index 50aba2df6b2..a04b8f6f560 100644 --- a/clients/hydra/python/ory_hydra_client/model/is_ready503_response.py +++ b/clients/hydra/python/ory_hydra_client/model/is_ready503_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/json_patch.py b/clients/hydra/python/ory_hydra_client/model/json_patch.py index 0148554a34a..871290ec6a7 100644 --- a/clients/hydra/python/ory_hydra_client/model/json_patch.py +++ b/clients/hydra/python/ory_hydra_client/model/json_patch.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/json_patch_document.py b/clients/hydra/python/ory_hydra_client/model/json_patch_document.py index 5f40edfd4d1..a9d094141b5 100644 --- a/clients/hydra/python/ory_hydra_client/model/json_patch_document.py +++ b/clients/hydra/python/ory_hydra_client/model/json_patch_document.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/json_web_key.py b/clients/hydra/python/ory_hydra_client/model/json_web_key.py index d609d84ddfa..317da110604 100644 --- a/clients/hydra/python/ory_hydra_client/model/json_web_key.py +++ b/clients/hydra/python/ory_hydra_client/model/json_web_key.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/json_web_key_set.py b/clients/hydra/python/ory_hydra_client/model/json_web_key_set.py index 7cd5604ae4b..959f43efa88 100644 --- a/clients/hydra/python/ory_hydra_client/model/json_web_key_set.py +++ b/clients/hydra/python/ory_hydra_client/model/json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/null_duration.py b/clients/hydra/python/ory_hydra_client/model/null_duration.py index bd99dd46564..0b32b34a7ac 100644 --- a/clients/hydra/python/ory_hydra_client/model/null_duration.py +++ b/clients/hydra/python/ory_hydra_client/model/null_duration.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_client.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_client.py index 0dbe9c8bab9..68f92bc38a3 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_client.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_client.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -131,6 +131,7 @@ def openapi_types(): 'scope': (str,), # noqa: E501 'sector_identifier_uri': (str,), # noqa: E501 'skip_consent': (bool,), # noqa: E501 + 'skip_logout_consent': (bool,), # noqa: E501 'subject_type': (str,), # noqa: E501 'token_endpoint_auth_method': (str,), # noqa: E501 'token_endpoint_auth_signing_alg': (str,), # noqa: E501 @@ -186,6 +187,7 @@ def discriminator(): 'scope': 'scope', # noqa: E501 'sector_identifier_uri': 'sector_identifier_uri', # noqa: E501 'skip_consent': 'skip_consent', # noqa: E501 + 'skip_logout_consent': 'skip_logout_consent', # noqa: E501 'subject_type': 'subject_type', # noqa: E501 'token_endpoint_auth_method': 'token_endpoint_auth_method', # noqa: E501 'token_endpoint_auth_signing_alg': 'token_endpoint_auth_signing_alg', # noqa: E501 @@ -244,7 +246,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 backchannel_logout_session_required (bool): OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.. [optional] # noqa: E501 backchannel_logout_uri (str): OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.. [optional] # noqa: E501 client_credentials_grant_access_token_lifespan (NullDuration): [optional] # noqa: E501 - client_id (str): OAuth 2.0 Client ID The ID is autogenerated and immutable.. [optional] # noqa: E501 + client_id (str): OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated.. [optional] # noqa: E501 client_name (str): OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization.. [optional] # noqa: E501 client_secret (str): OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost.. [optional] # noqa: E501 client_secret_expires_at (int): OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0.. [optional] # noqa: E501 @@ -276,6 +278,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 scope (str): OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. [optional] # noqa: E501 sector_identifier_uri (str): OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. [optional] # noqa: E501 skip_consent (bool): SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 + skip_logout_consent (bool): SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 subject_type (str): OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. [optional] # noqa: E501 token_endpoint_auth_method (str): OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.. [optional] if omitted the server will use the default value of "client_secret_basic" # noqa: E501 token_endpoint_auth_signing_alg (str): OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. [optional] # noqa: E501 @@ -376,7 +379,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 backchannel_logout_session_required (bool): OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.. [optional] # noqa: E501 backchannel_logout_uri (str): OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.. [optional] # noqa: E501 client_credentials_grant_access_token_lifespan (NullDuration): [optional] # noqa: E501 - client_id (str): OAuth 2.0 Client ID The ID is autogenerated and immutable.. [optional] # noqa: E501 + client_id (str): OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated.. [optional] # noqa: E501 client_name (str): OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization.. [optional] # noqa: E501 client_secret (str): OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost.. [optional] # noqa: E501 client_secret_expires_at (int): OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0.. [optional] # noqa: E501 @@ -408,6 +411,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 scope (str): OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. [optional] # noqa: E501 sector_identifier_uri (str): OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. [optional] # noqa: E501 skip_consent (bool): SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 + skip_logout_consent (bool): SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. [optional] # noqa: E501 subject_type (str): OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. [optional] # noqa: E501 token_endpoint_auth_method (str): OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.. [optional] if omitted the server will use the default value of "client_secret_basic" # noqa: E501 token_endpoint_auth_signing_alg (str): OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. [optional] # noqa: E501 diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_client_token_lifespans.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_client_token_lifespans.py index 2b2bb0969db..3715cd017ac 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_client_token_lifespans.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_client_token_lifespans.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request.py index b6829e9ac80..f247ad3e36a 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request_open_id_connect_context.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request_open_id_connect_context.py index 6d0029b802f..597c72d159b 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request_open_id_connect_context.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_request_open_id_connect_context.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session.py index 2b9b8f7a9bf..f3cbbc2df57 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -95,6 +95,7 @@ def openapi_types(): lazy_import() return { 'consent_request': (OAuth2ConsentRequest,), # noqa: E501 + 'context': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501 'expires_at': (OAuth2ConsentSessionExpiresAt,), # noqa: E501 'grant_access_token_audience': (StringSliceJSONFormat,), # noqa: E501 'grant_scope': (StringSliceJSONFormat,), # noqa: E501 @@ -111,6 +112,7 @@ def discriminator(): attribute_map = { 'consent_request': 'consent_request', # noqa: E501 + 'context': 'context', # noqa: E501 'expires_at': 'expires_at', # noqa: E501 'grant_access_token_audience': 'grant_access_token_audience', # noqa: E501 'grant_scope': 'grant_scope', # noqa: E501 @@ -162,6 +164,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) consent_request (OAuth2ConsentRequest): [optional] # noqa: E501 + context (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 expires_at (OAuth2ConsentSessionExpiresAt): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 @@ -255,6 +258,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 through its discriminator because we passed in _visited_composed_classes = (Animal,) consent_request (OAuth2ConsentRequest): [optional] # noqa: E501 + context (bool, date, datetime, dict, float, int, list, str, none_type): [optional] # noqa: E501 expires_at (OAuth2ConsentSessionExpiresAt): [optional] # noqa: E501 grant_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 grant_scope (StringSliceJSONFormat): [optional] # noqa: E501 diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session_expires_at.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session_expires_at.py index d5d5b0da6b5..e071bfb070e 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session_expires_at.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_session_expires_at.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_sessions.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_sessions.py index 717fa6a9662..c4b29c53843 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_sessions.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_consent_sessions.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_login_request.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_login_request.py index 0f022cb4cb2..8450e8254bb 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_login_request.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -95,11 +95,11 @@ def openapi_types(): 'challenge': (str,), # noqa: E501 'client': (OAuth2Client,), # noqa: E501 'request_url': (str,), # noqa: E501 - 'requested_access_token_audience': (StringSliceJSONFormat,), # noqa: E501 - 'requested_scope': (StringSliceJSONFormat,), # noqa: E501 'skip': (bool,), # noqa: E501 'subject': (str,), # noqa: E501 'oidc_context': (OAuth2ConsentRequestOpenIDConnectContext,), # noqa: E501 + 'requested_access_token_audience': (StringSliceJSONFormat,), # noqa: E501 + 'requested_scope': (StringSliceJSONFormat,), # noqa: E501 'session_id': (str,), # noqa: E501 } @@ -112,11 +112,11 @@ def discriminator(): 'challenge': 'challenge', # noqa: E501 'client': 'client', # noqa: E501 'request_url': 'request_url', # noqa: E501 - 'requested_access_token_audience': 'requested_access_token_audience', # noqa: E501 - 'requested_scope': 'requested_scope', # noqa: E501 'skip': 'skip', # noqa: E501 'subject': 'subject', # noqa: E501 'oidc_context': 'oidc_context', # noqa: E501 + 'requested_access_token_audience': 'requested_access_token_audience', # noqa: E501 + 'requested_scope': 'requested_scope', # noqa: E501 'session_id': 'session_id', # noqa: E501 } @@ -127,15 +127,13 @@ def discriminator(): @classmethod @convert_js_args_to_python_args - def _from_openapi_data(cls, challenge, client, request_url, requested_access_token_audience, requested_scope, skip, subject, *args, **kwargs): # noqa: E501 + def _from_openapi_data(cls, challenge, client, request_url, skip, subject, *args, **kwargs): # noqa: E501 """OAuth2LoginRequest - a model defined in OpenAPI Args: challenge (str): ID is the identifier (\"login challenge\") of the login request. It is used to identify the session. client (OAuth2Client): request_url (str): RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. - requested_access_token_audience (StringSliceJSONFormat): - requested_scope (StringSliceJSONFormat): skip (bool): Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. subject (str): Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. @@ -171,6 +169,8 @@ def _from_openapi_data(cls, challenge, client, request_url, requested_access_tok through its discriminator because we passed in _visited_composed_classes = (Animal,) oidc_context (OAuth2ConsentRequestOpenIDConnectContext): [optional] # noqa: E501 + requested_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 + requested_scope (StringSliceJSONFormat): [optional] # noqa: E501 session_id (str): SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user.. [optional] # noqa: E501 """ @@ -206,8 +206,6 @@ def _from_openapi_data(cls, challenge, client, request_url, requested_access_tok self.challenge = challenge self.client = client self.request_url = request_url - self.requested_access_token_audience = requested_access_token_audience - self.requested_scope = requested_scope self.skip = skip self.subject = subject for var_name, var_value in kwargs.items(): @@ -230,15 +228,13 @@ def _from_openapi_data(cls, challenge, client, request_url, requested_access_tok ]) @convert_js_args_to_python_args - def __init__(self, challenge, client, request_url, requested_access_token_audience, requested_scope, skip, subject, *args, **kwargs): # noqa: E501 + def __init__(self, challenge, client, request_url, skip, subject, *args, **kwargs): # noqa: E501 """OAuth2LoginRequest - a model defined in OpenAPI Args: challenge (str): ID is the identifier (\"login challenge\") of the login request. It is used to identify the session. client (OAuth2Client): request_url (str): RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. - requested_access_token_audience (StringSliceJSONFormat): - requested_scope (StringSliceJSONFormat): skip (bool): Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. subject (str): Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. @@ -274,6 +270,8 @@ def __init__(self, challenge, client, request_url, requested_access_token_audien through its discriminator because we passed in _visited_composed_classes = (Animal,) oidc_context (OAuth2ConsentRequestOpenIDConnectContext): [optional] # noqa: E501 + requested_access_token_audience (StringSliceJSONFormat): [optional] # noqa: E501 + requested_scope (StringSliceJSONFormat): [optional] # noqa: E501 session_id (str): SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user.. [optional] # noqa: E501 """ @@ -307,8 +305,6 @@ def __init__(self, challenge, client, request_url, requested_access_token_audien self.challenge = challenge self.client = client self.request_url = request_url - self.requested_access_token_audience = requested_access_token_audience - self.requested_scope = requested_scope self.skip = skip self.subject = subject for var_name, var_value in kwargs.items(): diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_logout_request.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_logout_request.py index 8603b16e910..77dbcbf959c 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_logout_request.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_logout_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_redirect_to.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_redirect_to.py index b14d03ad620..7661e0b6671 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_redirect_to.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_redirect_to.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/o_auth2_token_exchange.py b/clients/hydra/python/ory_hydra_client/model/o_auth2_token_exchange.py index dbc8af7de13..98f0ab05518 100644 --- a/clients/hydra/python/ory_hydra_client/model/o_auth2_token_exchange.py +++ b/clients/hydra/python/ory_hydra_client/model/o_auth2_token_exchange.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -84,7 +84,7 @@ def openapi_types(): return { 'access_token': (str,), # noqa: E501 'expires_in': (int,), # noqa: E501 - 'id_token': (int,), # noqa: E501 + 'id_token': (str,), # noqa: E501 'refresh_token': (str,), # noqa: E501 'scope': (str,), # noqa: E501 'token_type': (str,), # noqa: E501 @@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) access_token (str): The access token issued by the authorization server.. [optional] # noqa: E501 expires_in (int): The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.. [optional] # noqa: E501 - id_token (int): To retrieve a refresh token request the id_token scope.. [optional] # noqa: E501 + id_token (str): To retrieve a refresh token request the id_token scope.. [optional] # noqa: E501 refresh_token (str): The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request.. [optional] # noqa: E501 scope (str): The scope of the access token. [optional] # noqa: E501 token_type (str): The type of the token issued. [optional] # noqa: E501 @@ -238,7 +238,7 @@ def __init__(self, *args, **kwargs): # noqa: E501 _visited_composed_classes = (Animal,) access_token (str): The access token issued by the authorization server.. [optional] # noqa: E501 expires_in (int): The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated.. [optional] # noqa: E501 - id_token (int): To retrieve a refresh token request the id_token scope.. [optional] # noqa: E501 + id_token (str): To retrieve a refresh token request the id_token scope.. [optional] # noqa: E501 refresh_token (str): The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request.. [optional] # noqa: E501 scope (str): The scope of the access token. [optional] # noqa: E501 token_type (str): The type of the token issued. [optional] # noqa: E501 diff --git a/clients/hydra/python/ory_hydra_client/model/oidc_configuration.py b/clients/hydra/python/ory_hydra_client/model/oidc_configuration.py index c2c8190c3e8..6fe3654e9da 100644 --- a/clients/hydra/python/ory_hydra_client/model/oidc_configuration.py +++ b/clients/hydra/python/ory_hydra_client/model/oidc_configuration.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/oidc_user_info.py b/clients/hydra/python/ory_hydra_client/model/oidc_user_info.py index 731b0adc597..3efe78010c4 100644 --- a/clients/hydra/python/ory_hydra_client/model/oidc_user_info.py +++ b/clients/hydra/python/ory_hydra_client/model/oidc_user_info.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/pagination.py b/clients/hydra/python/ory_hydra_client/model/pagination.py index 27a485f8ec3..3546c880822 100644 --- a/clients/hydra/python/ory_hydra_client/model/pagination.py +++ b/clients/hydra/python/ory_hydra_client/model/pagination.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/pagination_headers.py b/clients/hydra/python/ory_hydra_client/model/pagination_headers.py index 64868750aab..9b1d3da2499 100644 --- a/clients/hydra/python/ory_hydra_client/model/pagination_headers.py +++ b/clients/hydra/python/ory_hydra_client/model/pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/reject_o_auth2_request.py b/clients/hydra/python/ory_hydra_client/model/reject_o_auth2_request.py index c5a81f1f588..3d127b75d29 100644 --- a/clients/hydra/python/ory_hydra_client/model/reject_o_auth2_request.py +++ b/clients/hydra/python/ory_hydra_client/model/reject_o_auth2_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/rfc6749_error_json.py b/clients/hydra/python/ory_hydra_client/model/rfc6749_error_json.py index 2de9f85f8b7..df5e81b2909 100644 --- a/clients/hydra/python/ory_hydra_client/model/rfc6749_error_json.py +++ b/clients/hydra/python/ory_hydra_client/model/rfc6749_error_json.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/string_slice_json_format.py b/clients/hydra/python/ory_hydra_client/model/string_slice_json_format.py index d6f6e13eae2..a849301e9c6 100644 --- a/clients/hydra/python/ory_hydra_client/model/string_slice_json_format.py +++ b/clients/hydra/python/ory_hydra_client/model/string_slice_json_format.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/token_pagination.py b/clients/hydra/python/ory_hydra_client/model/token_pagination.py index 2f2a4865078..e40e6fec005 100644 --- a/clients/hydra/python/ory_hydra_client/model/token_pagination.py +++ b/clients/hydra/python/ory_hydra_client/model/token_pagination.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/token_pagination_headers.py b/clients/hydra/python/ory_hydra_client/model/token_pagination_headers.py index 9f6606180d6..5a1eda5cd83 100644 --- a/clients/hydra/python/ory_hydra_client/model/token_pagination_headers.py +++ b/clients/hydra/python/ory_hydra_client/model/token_pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/token_pagination_request_parameters.py b/clients/hydra/python/ory_hydra_client/model/token_pagination_request_parameters.py index 1ba72e99a01..47904cf96c4 100644 --- a/clients/hydra/python/ory_hydra_client/model/token_pagination_request_parameters.py +++ b/clients/hydra/python/ory_hydra_client/model/token_pagination_request_parameters.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/token_pagination_response_headers.py b/clients/hydra/python/ory_hydra_client/model/token_pagination_response_headers.py index 50a312f8b3d..f04897e29d0 100644 --- a/clients/hydra/python/ory_hydra_client/model/token_pagination_response_headers.py +++ b/clients/hydra/python/ory_hydra_client/model/token_pagination_response_headers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/trust_o_auth2_jwt_grant_issuer.py b/clients/hydra/python/ory_hydra_client/model/trust_o_auth2_jwt_grant_issuer.py index 700d2aacf17..1641e3613a5 100644 --- a/clients/hydra/python/ory_hydra_client/model/trust_o_auth2_jwt_grant_issuer.py +++ b/clients/hydra/python/ory_hydra_client/model/trust_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuer.py b/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuer.py index 9b2cd5f77d4..b684046f68c 100644 --- a/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuer.py +++ b/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuers.py b/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuers.py index 569e6cb10a2..4a439ae1e53 100644 --- a/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuers.py +++ b/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_issuers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_json_web_key.py b/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_json_web_key.py index c0c708d3ba1..987e5533d8e 100644 --- a/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_json_web_key.py +++ b/clients/hydra/python/ory_hydra_client/model/trusted_o_auth2_jwt_grant_json_web_key.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/verifiable_credential_priming_response.py b/clients/hydra/python/ory_hydra_client/model/verifiable_credential_priming_response.py index 678019186a7..3fbcb758282 100644 --- a/clients/hydra/python/ory_hydra_client/model/verifiable_credential_priming_response.py +++ b/clients/hydra/python/ory_hydra_client/model/verifiable_credential_priming_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/verifiable_credential_proof.py b/clients/hydra/python/ory_hydra_client/model/verifiable_credential_proof.py index 4ae3b3f9b3e..e5200e21660 100644 --- a/clients/hydra/python/ory_hydra_client/model/verifiable_credential_proof.py +++ b/clients/hydra/python/ory_hydra_client/model/verifiable_credential_proof.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/verifiable_credential_response.py b/clients/hydra/python/ory_hydra_client/model/verifiable_credential_response.py index 107a78d1122..f6126ef4b90 100644 --- a/clients/hydra/python/ory_hydra_client/model/verifiable_credential_response.py +++ b/clients/hydra/python/ory_hydra_client/model/verifiable_credential_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model/version.py b/clients/hydra/python/ory_hydra_client/model/version.py index 7991cc20fc3..b824392f989 100644 --- a/clients/hydra/python/ory_hydra_client/model/version.py +++ b/clients/hydra/python/ory_hydra_client/model/version.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/model_utils.py b/clients/hydra/python/ory_hydra_client/model_utils.py index a8df3d77182..82f2f09ba97 100644 --- a/clients/hydra/python/ory_hydra_client/model_utils.py +++ b/clients/hydra/python/ory_hydra_client/model_utils.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/ory_hydra_client/rest.py b/clients/hydra/python/ory_hydra_client/rest.py index 032e0a8d260..70f49b83d10 100644 --- a/clients/hydra/python/ory_hydra_client/rest.py +++ b/clients/hydra/python/ory_hydra_client/rest.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/setup.py b/clients/hydra/python/setup.py index 0d5634dfa3b..4b71f3e01d3 100644 --- a/clients/hydra/python/setup.py +++ b/clients/hydra/python/setup.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ @@ -12,7 +12,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "ory-hydra-client" -VERSION = "v2.2.0-rc.3" +VERSION = "v2.2.0" # To install the library, run the following # # python setup.py install diff --git a/clients/hydra/python/test/test_accept_o_auth2_consent_request.py b/clients/hydra/python/test/test_accept_o_auth2_consent_request.py index 3c29b031792..8f9b005ecea 100644 --- a/clients/hydra/python/test/test_accept_o_auth2_consent_request.py +++ b/clients/hydra/python/test/test_accept_o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_accept_o_auth2_consent_request_session.py b/clients/hydra/python/test/test_accept_o_auth2_consent_request_session.py index c81e9021e0f..ac851ad2fca 100644 --- a/clients/hydra/python/test/test_accept_o_auth2_consent_request_session.py +++ b/clients/hydra/python/test/test_accept_o_auth2_consent_request_session.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_accept_o_auth2_login_request.py b/clients/hydra/python/test/test_accept_o_auth2_login_request.py index da915d216d6..6a6b276a571 100644 --- a/clients/hydra/python/test/test_accept_o_auth2_login_request.py +++ b/clients/hydra/python/test/test_accept_o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_create_json_web_key_set.py b/clients/hydra/python/test/test_create_json_web_key_set.py index b904b16ab3b..f51e1d80c67 100644 --- a/clients/hydra/python/test/test_create_json_web_key_set.py +++ b/clients/hydra/python/test/test_create_json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_create_verifiable_credential_request_body.py b/clients/hydra/python/test/test_create_verifiable_credential_request_body.py index 01dfa6bfe10..a30642a9cad 100644 --- a/clients/hydra/python/test/test_create_verifiable_credential_request_body.py +++ b/clients/hydra/python/test/test_create_verifiable_credential_request_body.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_credential_supported_draft00.py b/clients/hydra/python/test/test_credential_supported_draft00.py index ffd8fae6b9f..89d543795ab 100644 --- a/clients/hydra/python/test/test_credential_supported_draft00.py +++ b/clients/hydra/python/test/test_credential_supported_draft00.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_error_o_auth2.py b/clients/hydra/python/test/test_error_o_auth2.py index 4e9ac18e12a..ea163527e46 100644 --- a/clients/hydra/python/test/test_error_o_auth2.py +++ b/clients/hydra/python/test/test_error_o_auth2.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_generic_error.py b/clients/hydra/python/test/test_generic_error.py index cc5f71a5953..9ff5ea373ed 100644 --- a/clients/hydra/python/test/test_generic_error.py +++ b/clients/hydra/python/test/test_generic_error.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_get_version200_response.py b/clients/hydra/python/test/test_get_version200_response.py index a545f3a573c..f1a245dfc0d 100644 --- a/clients/hydra/python/test/test_get_version200_response.py +++ b/clients/hydra/python/test/test_get_version200_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_health_not_ready_status.py b/clients/hydra/python/test/test_health_not_ready_status.py index 1ec4653bd9a..cf3471e9ac5 100644 --- a/clients/hydra/python/test/test_health_not_ready_status.py +++ b/clients/hydra/python/test/test_health_not_ready_status.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_health_status.py b/clients/hydra/python/test/test_health_status.py index 81b5d3d269b..277cd7b1fc7 100644 --- a/clients/hydra/python/test/test_health_status.py +++ b/clients/hydra/python/test/test_health_status.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_introspected_o_auth2_token.py b/clients/hydra/python/test/test_introspected_o_auth2_token.py index a0432d07b73..019067bf61d 100644 --- a/clients/hydra/python/test/test_introspected_o_auth2_token.py +++ b/clients/hydra/python/test/test_introspected_o_auth2_token.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_is_ready200_response.py b/clients/hydra/python/test/test_is_ready200_response.py index 703e166a1c6..791337c43a9 100644 --- a/clients/hydra/python/test/test_is_ready200_response.py +++ b/clients/hydra/python/test/test_is_ready200_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_is_ready503_response.py b/clients/hydra/python/test/test_is_ready503_response.py index 46118387cf1..1eaa2a806a9 100644 --- a/clients/hydra/python/test/test_is_ready503_response.py +++ b/clients/hydra/python/test/test_is_ready503_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_json_patch.py b/clients/hydra/python/test/test_json_patch.py index 3b7630cc1b4..a21b77614c5 100644 --- a/clients/hydra/python/test/test_json_patch.py +++ b/clients/hydra/python/test/test_json_patch.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_json_patch_document.py b/clients/hydra/python/test/test_json_patch_document.py index 15e5df1f274..93a48b5319c 100644 --- a/clients/hydra/python/test/test_json_patch_document.py +++ b/clients/hydra/python/test/test_json_patch_document.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_json_web_key.py b/clients/hydra/python/test/test_json_web_key.py index 2caeaadc4cd..0662dc926ba 100644 --- a/clients/hydra/python/test/test_json_web_key.py +++ b/clients/hydra/python/test/test_json_web_key.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_json_web_key_set.py b/clients/hydra/python/test/test_json_web_key_set.py index 0df17ab0b3a..dbf5d570fa9 100644 --- a/clients/hydra/python/test/test_json_web_key_set.py +++ b/clients/hydra/python/test/test_json_web_key_set.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_jwk_api.py b/clients/hydra/python/test/test_jwk_api.py index 46cd8c9a8d6..0db0d34b036 100644 --- a/clients/hydra/python/test/test_jwk_api.py +++ b/clients/hydra/python/test/test_jwk_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_metadata_api.py b/clients/hydra/python/test/test_metadata_api.py index 17d33f498c1..870eed30324 100644 --- a/clients/hydra/python/test/test_metadata_api.py +++ b/clients/hydra/python/test/test_metadata_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_null_duration.py b/clients/hydra/python/test/test_null_duration.py index fa3d1e818cc..547d55db98b 100644 --- a/clients/hydra/python/test/test_null_duration.py +++ b/clients/hydra/python/test/test_null_duration.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_api.py b/clients/hydra/python/test/test_o_auth2_api.py index 58b3059f4a8..349f15b6394 100644 --- a/clients/hydra/python/test/test_o_auth2_api.py +++ b/clients/hydra/python/test/test_o_auth2_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_client.py b/clients/hydra/python/test/test_o_auth2_client.py index 712dbbb5d4b..e8a64d17e58 100644 --- a/clients/hydra/python/test/test_o_auth2_client.py +++ b/clients/hydra/python/test/test_o_auth2_client.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_client_token_lifespans.py b/clients/hydra/python/test/test_o_auth2_client_token_lifespans.py index 167760d9f97..a5a780dae25 100644 --- a/clients/hydra/python/test/test_o_auth2_client_token_lifespans.py +++ b/clients/hydra/python/test/test_o_auth2_client_token_lifespans.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_consent_request.py b/clients/hydra/python/test/test_o_auth2_consent_request.py index 844f6a5a8e3..7acbe8239aa 100644 --- a/clients/hydra/python/test/test_o_auth2_consent_request.py +++ b/clients/hydra/python/test/test_o_auth2_consent_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_consent_request_open_id_connect_context.py b/clients/hydra/python/test/test_o_auth2_consent_request_open_id_connect_context.py index b87bec0eeb6..cf0f7194148 100644 --- a/clients/hydra/python/test/test_o_auth2_consent_request_open_id_connect_context.py +++ b/clients/hydra/python/test/test_o_auth2_consent_request_open_id_connect_context.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_consent_session.py b/clients/hydra/python/test/test_o_auth2_consent_session.py index 3c8ef7fd95b..df6210ccd97 100644 --- a/clients/hydra/python/test/test_o_auth2_consent_session.py +++ b/clients/hydra/python/test/test_o_auth2_consent_session.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_consent_session_expires_at.py b/clients/hydra/python/test/test_o_auth2_consent_session_expires_at.py index b546b1e3ca9..e700c9239d7 100644 --- a/clients/hydra/python/test/test_o_auth2_consent_session_expires_at.py +++ b/clients/hydra/python/test/test_o_auth2_consent_session_expires_at.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_consent_sessions.py b/clients/hydra/python/test/test_o_auth2_consent_sessions.py index 7f39090521e..c22909e9be1 100644 --- a/clients/hydra/python/test/test_o_auth2_consent_sessions.py +++ b/clients/hydra/python/test/test_o_auth2_consent_sessions.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_login_request.py b/clients/hydra/python/test/test_o_auth2_login_request.py index 1617e55a0a8..144a20b6614 100644 --- a/clients/hydra/python/test/test_o_auth2_login_request.py +++ b/clients/hydra/python/test/test_o_auth2_login_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_logout_request.py b/clients/hydra/python/test/test_o_auth2_logout_request.py index dda91d29b9d..f85507f929d 100644 --- a/clients/hydra/python/test/test_o_auth2_logout_request.py +++ b/clients/hydra/python/test/test_o_auth2_logout_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_redirect_to.py b/clients/hydra/python/test/test_o_auth2_redirect_to.py index e1a8d71c1b9..1f07c070d86 100644 --- a/clients/hydra/python/test/test_o_auth2_redirect_to.py +++ b/clients/hydra/python/test/test_o_auth2_redirect_to.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_o_auth2_token_exchange.py b/clients/hydra/python/test/test_o_auth2_token_exchange.py index afa4e529548..ef36c156165 100644 --- a/clients/hydra/python/test/test_o_auth2_token_exchange.py +++ b/clients/hydra/python/test/test_o_auth2_token_exchange.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_oidc_api.py b/clients/hydra/python/test/test_oidc_api.py index d7785a0b9ea..9b25ce3e541 100644 --- a/clients/hydra/python/test/test_oidc_api.py +++ b/clients/hydra/python/test/test_oidc_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_oidc_configuration.py b/clients/hydra/python/test/test_oidc_configuration.py index dc283893698..95b8692fd35 100644 --- a/clients/hydra/python/test/test_oidc_configuration.py +++ b/clients/hydra/python/test/test_oidc_configuration.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_oidc_user_info.py b/clients/hydra/python/test/test_oidc_user_info.py index d37a9812835..12f6560b5a3 100644 --- a/clients/hydra/python/test/test_oidc_user_info.py +++ b/clients/hydra/python/test/test_oidc_user_info.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_pagination.py b/clients/hydra/python/test/test_pagination.py index 12ce56688eb..fa01371297b 100644 --- a/clients/hydra/python/test/test_pagination.py +++ b/clients/hydra/python/test/test_pagination.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_pagination_headers.py b/clients/hydra/python/test/test_pagination_headers.py index 7b03d037cd8..c1031bbeb07 100644 --- a/clients/hydra/python/test/test_pagination_headers.py +++ b/clients/hydra/python/test/test_pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_reject_o_auth2_request.py b/clients/hydra/python/test/test_reject_o_auth2_request.py index 7f4eb7ec972..83f27305eff 100644 --- a/clients/hydra/python/test/test_reject_o_auth2_request.py +++ b/clients/hydra/python/test/test_reject_o_auth2_request.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_rfc6749_error_json.py b/clients/hydra/python/test/test_rfc6749_error_json.py index a492ac38777..da0ddeee67f 100644 --- a/clients/hydra/python/test/test_rfc6749_error_json.py +++ b/clients/hydra/python/test/test_rfc6749_error_json.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_string_slice_json_format.py b/clients/hydra/python/test/test_string_slice_json_format.py index 678e5347a27..2c067d85a8f 100644 --- a/clients/hydra/python/test/test_string_slice_json_format.py +++ b/clients/hydra/python/test/test_string_slice_json_format.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_token_pagination.py b/clients/hydra/python/test/test_token_pagination.py index b1452f17976..32cf75c6418 100644 --- a/clients/hydra/python/test/test_token_pagination.py +++ b/clients/hydra/python/test/test_token_pagination.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_token_pagination_headers.py b/clients/hydra/python/test/test_token_pagination_headers.py index f39b6aa236b..19e35ba780e 100644 --- a/clients/hydra/python/test/test_token_pagination_headers.py +++ b/clients/hydra/python/test/test_token_pagination_headers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_token_pagination_request_parameters.py b/clients/hydra/python/test/test_token_pagination_request_parameters.py index 6a88414b10b..9aa30a35754 100644 --- a/clients/hydra/python/test/test_token_pagination_request_parameters.py +++ b/clients/hydra/python/test/test_token_pagination_request_parameters.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_token_pagination_response_headers.py b/clients/hydra/python/test/test_token_pagination_response_headers.py index 54ea8c2b7c4..09d5ac02c21 100644 --- a/clients/hydra/python/test/test_token_pagination_response_headers.py +++ b/clients/hydra/python/test/test_token_pagination_response_headers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_trust_o_auth2_jwt_grant_issuer.py b/clients/hydra/python/test/test_trust_o_auth2_jwt_grant_issuer.py index a999f20646b..a82a225e6a6 100644 --- a/clients/hydra/python/test/test_trust_o_auth2_jwt_grant_issuer.py +++ b/clients/hydra/python/test/test_trust_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuer.py b/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuer.py index 9043934021b..536d2a80f3d 100644 --- a/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuer.py +++ b/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuer.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuers.py b/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuers.py index 737a769ae3d..f1b02cb1a96 100644 --- a/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuers.py +++ b/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_issuers.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py b/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py index 78308d37ea1..68fde939471 100644 --- a/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py +++ b/clients/hydra/python/test/test_trusted_o_auth2_jwt_grant_json_web_key.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_verifiable_credential_priming_response.py b/clients/hydra/python/test/test_verifiable_credential_priming_response.py index f7beceaf130..8bdfee02795 100644 --- a/clients/hydra/python/test/test_verifiable_credential_priming_response.py +++ b/clients/hydra/python/test/test_verifiable_credential_priming_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_verifiable_credential_proof.py b/clients/hydra/python/test/test_verifiable_credential_proof.py index e97b41221df..0f0b6bb5b2d 100644 --- a/clients/hydra/python/test/test_verifiable_credential_proof.py +++ b/clients/hydra/python/test/test_verifiable_credential_proof.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_verifiable_credential_response.py b/clients/hydra/python/test/test_verifiable_credential_response.py index d6921f3051e..d09e01a2152 100644 --- a/clients/hydra/python/test/test_verifiable_credential_response.py +++ b/clients/hydra/python/test/test_verifiable_credential_response.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_version.py b/clients/hydra/python/test/test_version.py index 78369e988cc..87b5e8a83c7 100644 --- a/clients/hydra/python/test/test_version.py +++ b/clients/hydra/python/test/test_version.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/python/test/test_wellknown_api.py b/clients/hydra/python/test/test_wellknown_api.py index 380596cc8e9..a3a4779bba8 100644 --- a/clients/hydra/python/test/test_wellknown_api.py +++ b/clients/hydra/python/test/test_wellknown_api.py @@ -3,7 +3,7 @@ Documentation for all of Ory Hydra's APIs. # noqa: E501 - The version of the OpenAPI document: v2.2.0-rc.3 + The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech """ diff --git a/clients/hydra/ruby/.openapi-generator/VERSION b/clients/hydra/ruby/.openapi-generator/VERSION index 6d54bbd7751..1502020768a 100644 --- a/clients/hydra/ruby/.openapi-generator/VERSION +++ b/clients/hydra/ruby/.openapi-generator/VERSION @@ -1 +1 @@ -6.0.1 \ No newline at end of file +7.3.0 diff --git a/clients/hydra/ruby/Gemfile.lock b/clients/hydra/ruby/Gemfile.lock index dad8e7ae978..5dc0d7830c3 100644 --- a/clients/hydra/ruby/Gemfile.lock +++ b/clients/hydra/ruby/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - ory-hydra-client (2.2.0.rc3) + ory-hydra-client (2.2.0) typhoeus (~> 1.0, >= 1.0.1) GEM @@ -10,14 +10,14 @@ GEM ast (2.4.2) byebug (11.1.3) coderay (1.1.3) - diff-lcs (1.5.0) + diff-lcs (1.5.1) ethon (0.16.0) ffi (>= 1.15.0) - ffi (1.15.5) + ffi (1.16.3) jaro_winkler (1.5.6) method_source (1.0.0) - parallel (1.23.0) - parser (3.2.2.3) + parallel (1.24.0) + parser (3.3.0.5) ast (~> 2.4.1) racc pry (0.13.1) @@ -28,22 +28,22 @@ GEM pry (~> 0.13.0) psych (4.0.6) stringio - racc (1.7.1) + racc (1.7.3) rainbow (3.1.1) rake (13.0.6) - rspec (3.12.0) - rspec-core (~> 3.12.0) - rspec-expectations (~> 3.12.0) - rspec-mocks (~> 3.12.0) - rspec-core (3.12.2) - rspec-support (~> 3.12.0) - rspec-expectations (3.12.3) + rspec (3.13.0) + rspec-core (~> 3.13.0) + rspec-expectations (~> 3.13.0) + rspec-mocks (~> 3.13.0) + rspec-core (3.13.0) + rspec-support (~> 3.13.0) + rspec-expectations (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-mocks (3.12.6) + rspec-support (~> 3.13.0) + rspec-mocks (3.13.0) diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.12.0) - rspec-support (3.12.1) + rspec-support (~> 3.13.0) + rspec-support (3.13.0) rubocop (0.66.0) jaro_winkler (~> 1.5.1) parallel (~> 1.10) @@ -54,7 +54,7 @@ GEM unicode-display_width (>= 1.4.0, < 1.6) ruby-progressbar (1.13.0) stringio (3.0.6) - typhoeus (1.4.0) + typhoeus (1.4.1) ethon (>= 0.9.0) unicode-display_width (1.5.0) diff --git a/clients/hydra/ruby/README.md b/clients/hydra/ruby/README.md index 0de09b020ab..d2f7655164d 100644 --- a/clients/hydra/ruby/README.md +++ b/clients/hydra/ruby/README.md @@ -7,8 +7,8 @@ Documentation for all of Ory Hydra's APIs. This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v2.2.0-rc.3 -- Package version: v2.2.0-rc.3 +- API version: v2.2.0 +- Package version: v2.2.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen ## Installation @@ -24,16 +24,16 @@ gem build ory-hydra-client.gemspec Then either install the gem locally: ```shell -gem install ./ory-hydra-client-v2.2.0-rc.3.gem +gem install ./ory-hydra-client-v2.2.0.gem ``` -(for development, run `gem install --dev ./ory-hydra-client-v2.2.0-rc.3.gem` to install the development dependencies) +(for development, run `gem install --dev ./ory-hydra-client-v2.2.0.gem` to install the development dependencies) or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/). Finally add this to the Gemfile: - gem 'ory-hydra-client', '~> v2.2.0-rc.3' + gem 'ory-hydra-client', '~> v2.2.0' ### Install from Git diff --git a/clients/hydra/ruby/docs/AcceptOAuth2ConsentRequest.md b/clients/hydra/ruby/docs/AcceptOAuth2ConsentRequest.md index 28c47d051f8..d8705853802 100644 --- a/clients/hydra/ruby/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/hydra/ruby/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **context** | **Object** | | [optional] | | **grant_access_token_audience** | **Array<String>** | | [optional] | | **grant_scope** | **Array<String>** | | [optional] | | **handled_at** | **Time** | | [optional] | @@ -17,6 +18,7 @@ require 'ory-hydra-client' instance = OryHydraClient::AcceptOAuth2ConsentRequest.new( + context: null, grant_access_token_audience: null, grant_scope: null, handled_at: null, diff --git a/clients/hydra/ruby/docs/OAuth2Api.md b/clients/hydra/ruby/docs/OAuth2Api.md index 2416e31f322..f80a400f294 100644 --- a/clients/hydra/ruby/docs/OAuth2Api.md +++ b/clients/hydra/ruby/docs/OAuth2Api.md @@ -1573,7 +1573,7 @@ No authorization required Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Examples diff --git a/clients/hydra/ruby/docs/OAuth2Client.md b/clients/hydra/ruby/docs/OAuth2Client.md index d935b597f80..4d5a1a620e6 100644 --- a/clients/hydra/ruby/docs/OAuth2Client.md +++ b/clients/hydra/ruby/docs/OAuth2Client.md @@ -13,7 +13,7 @@ | **backchannel_logout_session_required** | **Boolean** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] | | **backchannel_logout_uri** | **String** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] | | **client_credentials_grant_access_token_lifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] | -| **client_id** | **String** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] | +| **client_id** | **String** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] | | **client_name** | **String** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] | | **client_secret** | **String** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] | | **client_secret_expires_at** | **Integer** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] | @@ -45,6 +45,7 @@ | **scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] | | **sector_identifier_uri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] | | **skip_consent** | **Boolean** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] | +| **skip_logout_consent** | **Boolean** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] | | **subject_type** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] | | **token_endpoint_auth_method** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional][default to 'client_secret_basic'] | | **token_endpoint_auth_signing_alg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] | @@ -99,6 +100,7 @@ instance = OryHydraClient::OAuth2Client.new( scope: scope1 scope-2 scope.3 scope:4, sector_identifier_uri: null, skip_consent: null, + skip_logout_consent: null, subject_type: null, token_endpoint_auth_method: null, token_endpoint_auth_signing_alg: null, diff --git a/clients/hydra/ruby/docs/OAuth2ConsentSession.md b/clients/hydra/ruby/docs/OAuth2ConsentSession.md index e11e3d952e1..4f55a5a50d2 100644 --- a/clients/hydra/ruby/docs/OAuth2ConsentSession.md +++ b/clients/hydra/ruby/docs/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **consent_request** | [**OAuth2ConsentRequest**](OAuth2ConsentRequest.md) | | [optional] | +| **context** | **Object** | | [optional] | | **expires_at** | [**OAuth2ConsentSessionExpiresAt**](OAuth2ConsentSessionExpiresAt.md) | | [optional] | | **grant_access_token_audience** | **Array<String>** | | [optional] | | **grant_scope** | **Array<String>** | | [optional] | @@ -20,6 +21,7 @@ require 'ory-hydra-client' instance = OryHydraClient::OAuth2ConsentSession.new( consent_request: null, + context: null, expires_at: null, grant_access_token_audience: null, grant_scope: null, diff --git a/clients/hydra/ruby/docs/OAuth2LoginRequest.md b/clients/hydra/ruby/docs/OAuth2LoginRequest.md index 0926eb16c19..7cfdf1fffcf 100644 --- a/clients/hydra/ruby/docs/OAuth2LoginRequest.md +++ b/clients/hydra/ruby/docs/OAuth2LoginRequest.md @@ -8,8 +8,8 @@ | **client** | [**OAuth2Client**](OAuth2Client.md) | | | | **oidc_context** | [**OAuth2ConsentRequestOpenIDConnectContext**](OAuth2ConsentRequestOpenIDConnectContext.md) | | [optional] | | **request_url** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | | -| **requested_access_token_audience** | **Array<String>** | | | -| **requested_scope** | **Array<String>** | | | +| **requested_access_token_audience** | **Array<String>** | | [optional] | +| **requested_scope** | **Array<String>** | | [optional] | | **session_id** | **String** | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] | | **skip** | **Boolean** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | | | **subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | | diff --git a/clients/hydra/ruby/docs/OAuth2TokenExchange.md b/clients/hydra/ruby/docs/OAuth2TokenExchange.md index 8fdf2bd5f58..53bbdf5e030 100644 --- a/clients/hydra/ruby/docs/OAuth2TokenExchange.md +++ b/clients/hydra/ruby/docs/OAuth2TokenExchange.md @@ -6,7 +6,7 @@ | ---- | ---- | ----------- | ----- | | **access_token** | **String** | The access token issued by the authorization server. | [optional] | | **expires_in** | **Integer** | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] | -| **id_token** | **Integer** | To retrieve a refresh token request the id_token scope. | [optional] | +| **id_token** | **String** | To retrieve a refresh token request the id_token scope. | [optional] | | **refresh_token** | **String** | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] | | **scope** | **String** | The scope of the access token | [optional] | | **token_type** | **String** | The type of the token issued | [optional] | diff --git a/clients/hydra/ruby/lib/ory-hydra-client.rb b/clients/hydra/ruby/lib/ory-hydra-client.rb index 598a2a03245..18051fa8f5f 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api/jwk_api.rb b/clients/hydra/ruby/lib/ory-hydra-client/api/jwk_api.rb index d3e0bdc2411..9c07e52a546 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api/jwk_api.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api/jwk_api.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api/metadata_api.rb b/clients/hydra/ruby/lib/ory-hydra-client/api/metadata_api.rb index bd426b32e3f..cd5222051c2 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api/metadata_api.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api/metadata_api.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api/o_auth2_api.rb b/clients/hydra/ruby/lib/ory-hydra-client/api/o_auth2_api.rb index 9f8d160761e..aec6756aee3 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api/o_auth2_api.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api/o_auth2_api.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -1586,7 +1586,7 @@ def revoke_o_auth2_consent_sessions_with_http_info(subject, opts = {}) end # Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - # This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + # This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. # @param [Hash] opts the optional parameters # @option opts [String] :subject OAuth 2.0 Subject The subject to revoke authentication sessions for. # @option opts [String] :sid OAuth 2.0 Subject The subject to revoke authentication sessions for. @@ -1597,7 +1597,7 @@ def revoke_o_auth2_login_sessions(opts = {}) end # Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - # This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + # This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. # @param [Hash] opts the optional parameters # @option opts [String] :subject OAuth 2.0 Subject The subject to revoke authentication sessions for. # @option opts [String] :sid OAuth 2.0 Subject The subject to revoke authentication sessions for. diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api/oidc_api.rb b/clients/hydra/ruby/lib/ory-hydra-client/api/oidc_api.rb index 93049469617..8ed256abfc2 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api/oidc_api.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api/oidc_api.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api/wellknown_api.rb b/clients/hydra/ruby/lib/ory-hydra-client/api/wellknown_api.rb index e8a7eefe439..a685b4b90e0 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api/wellknown_api.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api/wellknown_api.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api_client.rb b/clients/hydra/ruby/lib/ory-hydra-client/api_client.rb index f983288cbf1..cdbb78cd315 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api_client.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api_client.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/api_error.rb b/clients/hydra/ruby/lib/ory-hydra-client/api_error.rb index 103379b9817..61d79d62550 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/api_error.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/api_error.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/configuration.rb b/clients/hydra/ruby/lib/ory-hydra-client/configuration.rb index b7fd2ddb419..c7b115e941b 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/configuration.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/configuration.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request.rb index ce074ae8319..6cf486b5ab3 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -15,6 +15,8 @@ module OryHydraClient class AcceptOAuth2ConsentRequest + attr_accessor :context + attr_accessor :grant_access_token_audience attr_accessor :grant_scope @@ -32,6 +34,7 @@ class AcceptOAuth2ConsentRequest # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'context' => :'context', :'grant_access_token_audience' => :'grant_access_token_audience', :'grant_scope' => :'grant_scope', :'handled_at' => :'handled_at', @@ -49,6 +52,7 @@ def self.acceptable_attributes # Attribute type mapping. def self.openapi_types { + :'context' => :'Object', :'grant_access_token_audience' => :'Array', :'grant_scope' => :'Array', :'handled_at' => :'Time', @@ -61,6 +65,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'context', ]) end @@ -79,6 +84,10 @@ def initialize(attributes = {}) h[k.to_sym] = v } + if attributes.key?(:'context') + self.context = attributes[:'context'] + end + if attributes.key?(:'grant_access_token_audience') if (value = attributes[:'grant_access_token_audience']).is_a?(Array) self.grant_access_token_audience = value @@ -126,6 +135,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + context == o.context && grant_access_token_audience == o.grant_access_token_audience && grant_scope == o.grant_scope && handled_at == o.handled_at && @@ -143,7 +153,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash + [context, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash end # Builds the object from hash diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request_session.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request_session.rb index a8d86ce494d..2209cf2952f 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request_session.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_consent_request_session.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_login_request.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_login_request.rb index d752a5fa223..16d6fc28bb1 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_login_request.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/accept_o_auth2_login_request.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/create_json_web_key_set.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/create_json_web_key_set.rb index 83411312498..fcea34a0f4d 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/create_json_web_key_set.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/create_json_web_key_set.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/create_verifiable_credential_request_body.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/create_verifiable_credential_request_body.rb index 788b1d0dc8e..448bf972132 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/create_verifiable_credential_request_body.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/create_verifiable_credential_request_body.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/credential_supported_draft00.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/credential_supported_draft00.rb index 90d425dd516..187c0419161 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/credential_supported_draft00.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/credential_supported_draft00.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/error_o_auth2.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/error_o_auth2.rb index 2c89221e100..3a7f25bc9ab 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/error_o_auth2.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/error_o_auth2.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/generic_error.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/generic_error.rb index 6611a8594cd..78a72a04171 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/generic_error.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/generic_error.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/get_version200_response.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/get_version200_response.rb index 385b8338b9f..3b4f24692e8 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/get_version200_response.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/get_version200_response.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/health_not_ready_status.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/health_not_ready_status.rb index d9be751c48a..cfb3452c55e 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/health_not_ready_status.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/health_not_ready_status.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/health_status.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/health_status.rb index cec2b5c4380..deffd2d414e 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/health_status.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/health_status.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/introspected_o_auth2_token.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/introspected_o_auth2_token.rb index 1b6641c16b5..996208a2954 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/introspected_o_auth2_token.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/introspected_o_auth2_token.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready200_response.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready200_response.rb index 58862295877..8f2f7f7203d 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready200_response.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready200_response.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready503_response.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready503_response.rb index d2cba33ae0a..d8e64df599b 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready503_response.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/is_ready503_response.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/json_patch.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/json_patch.rb index 6e5d9dc4ca6..c1cc9c5b297 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/json_patch.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/json_patch.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key.rb index cf67009dbca..d52bc746ddd 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key_set.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key_set.rb index 2b3ce2c17ee..58b6f59ed35 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key_set.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/json_web_key_set.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client.rb index 2d15f53c52e..985c679a6d6 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -41,7 +41,7 @@ class OAuth2Client # Specify a time duration in milliseconds, seconds, minutes, hours. attr_accessor :client_credentials_grant_access_token_lifespan - # OAuth 2.0 Client ID The ID is autogenerated and immutable. + # OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. attr_accessor :client_id # OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. @@ -130,6 +130,9 @@ class OAuth2Client # SkipConsent skips the consent screen for this client. This field can only be set from the admin API. attr_accessor :skip_consent + # SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + attr_accessor :skip_logout_consent + # OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. attr_accessor :subject_type @@ -192,6 +195,7 @@ def self.attribute_map :'scope' => :'scope', :'sector_identifier_uri' => :'sector_identifier_uri', :'skip_consent' => :'skip_consent', + :'skip_logout_consent' => :'skip_logout_consent', :'subject_type' => :'subject_type', :'token_endpoint_auth_method' => :'token_endpoint_auth_method', :'token_endpoint_auth_signing_alg' => :'token_endpoint_auth_signing_alg', @@ -250,6 +254,7 @@ def self.openapi_types :'scope' => :'String', :'sector_identifier_uri' => :'String', :'skip_consent' => :'Boolean', + :'skip_logout_consent' => :'Boolean', :'subject_type' => :'String', :'token_endpoint_auth_method' => :'String', :'token_endpoint_auth_signing_alg' => :'String', @@ -462,6 +467,10 @@ def initialize(attributes = {}) self.skip_consent = attributes[:'skip_consent'] end + if attributes.key?(:'skip_logout_consent') + self.skip_logout_consent = attributes[:'skip_logout_consent'] + end + if attributes.key?(:'subject_type') self.subject_type = attributes[:'subject_type'] end @@ -718,6 +727,7 @@ def ==(o) scope == o.scope && sector_identifier_uri == o.sector_identifier_uri && skip_consent == o.skip_consent && + skip_logout_consent == o.skip_logout_consent && subject_type == o.subject_type && token_endpoint_auth_method == o.token_endpoint_auth_method && token_endpoint_auth_signing_alg == o.token_endpoint_auth_signing_alg && @@ -735,7 +745,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [access_token_strategy, allowed_cors_origins, audience, authorization_code_grant_access_token_lifespan, authorization_code_grant_id_token_lifespan, authorization_code_grant_refresh_token_lifespan, backchannel_logout_session_required, backchannel_logout_uri, client_credentials_grant_access_token_lifespan, client_id, client_name, client_secret, client_secret_expires_at, client_uri, contacts, created_at, frontchannel_logout_session_required, frontchannel_logout_uri, grant_types, implicit_grant_access_token_lifespan, implicit_grant_id_token_lifespan, jwks, jwks_uri, jwt_bearer_grant_access_token_lifespan, logo_uri, metadata, owner, policy_uri, post_logout_redirect_uris, redirect_uris, refresh_token_grant_access_token_lifespan, refresh_token_grant_id_token_lifespan, refresh_token_grant_refresh_token_lifespan, registration_access_token, registration_client_uri, request_object_signing_alg, request_uris, response_types, scope, sector_identifier_uri, skip_consent, subject_type, token_endpoint_auth_method, token_endpoint_auth_signing_alg, tos_uri, updated_at, userinfo_signed_response_alg].hash + [access_token_strategy, allowed_cors_origins, audience, authorization_code_grant_access_token_lifespan, authorization_code_grant_id_token_lifespan, authorization_code_grant_refresh_token_lifespan, backchannel_logout_session_required, backchannel_logout_uri, client_credentials_grant_access_token_lifespan, client_id, client_name, client_secret, client_secret_expires_at, client_uri, contacts, created_at, frontchannel_logout_session_required, frontchannel_logout_uri, grant_types, implicit_grant_access_token_lifespan, implicit_grant_id_token_lifespan, jwks, jwks_uri, jwt_bearer_grant_access_token_lifespan, logo_uri, metadata, owner, policy_uri, post_logout_redirect_uris, redirect_uris, refresh_token_grant_access_token_lifespan, refresh_token_grant_id_token_lifespan, refresh_token_grant_refresh_token_lifespan, registration_access_token, registration_client_uri, request_object_signing_alg, request_uris, response_types, scope, sector_identifier_uri, skip_consent, skip_logout_consent, subject_type, token_endpoint_auth_method, token_endpoint_auth_signing_alg, tos_uri, updated_at, userinfo_signed_response_alg].hash end # Builds the object from hash diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client_token_lifespans.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client_token_lifespans.rb index 317270d5e6f..86f93d8bee5 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client_token_lifespans.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_client_token_lifespans.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request.rb index ff9893e6301..6ed3fe530bd 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request_open_id_connect_context.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request_open_id_connect_context.rb index 16eec63a377..c01c5ed33a0 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request_open_id_connect_context.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_request_open_id_connect_context.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session.rb index 3b304d1782c..afcce0fb9eb 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -18,6 +18,8 @@ module OryHydraClient class OAuth2ConsentSession attr_accessor :consent_request + attr_accessor :context + attr_accessor :expires_at attr_accessor :grant_access_token_audience @@ -38,6 +40,7 @@ class OAuth2ConsentSession def self.attribute_map { :'consent_request' => :'consent_request', + :'context' => :'context', :'expires_at' => :'expires_at', :'grant_access_token_audience' => :'grant_access_token_audience', :'grant_scope' => :'grant_scope', @@ -57,6 +60,7 @@ def self.acceptable_attributes def self.openapi_types { :'consent_request' => :'OAuth2ConsentRequest', + :'context' => :'Object', :'expires_at' => :'OAuth2ConsentSessionExpiresAt', :'grant_access_token_audience' => :'Array', :'grant_scope' => :'Array', @@ -70,6 +74,7 @@ def self.openapi_types # List of attributes with nullable: true def self.openapi_nullable Set.new([ + :'context', ]) end @@ -92,6 +97,10 @@ def initialize(attributes = {}) self.consent_request = attributes[:'consent_request'] end + if attributes.key?(:'context') + self.context = attributes[:'context'] + end + if attributes.key?(:'expires_at') self.expires_at = attributes[:'expires_at'] end @@ -144,6 +153,7 @@ def ==(o) return true if self.equal?(o) self.class == o.class && consent_request == o.consent_request && + context == o.context && expires_at == o.expires_at && grant_access_token_audience == o.grant_access_token_audience && grant_scope == o.grant_scope && @@ -162,7 +172,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [consent_request, expires_at, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash + [consent_request, context, expires_at, grant_access_token_audience, grant_scope, handled_at, remember, remember_for, session].hash end # Builds the object from hash diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session_expires_at.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session_expires_at.rb index eea34f90173..4f974f9553e 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session_expires_at.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_consent_session_expires_at.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_login_request.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_login_request.rb index bae3306afb9..f08d9d8f076 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_login_request.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_login_request.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -151,14 +151,6 @@ def list_invalid_properties invalid_properties.push('invalid value for "request_url", request_url cannot be nil.') end - if @requested_access_token_audience.nil? - invalid_properties.push('invalid value for "requested_access_token_audience", requested_access_token_audience cannot be nil.') - end - - if @requested_scope.nil? - invalid_properties.push('invalid value for "requested_scope", requested_scope cannot be nil.') - end - if @skip.nil? invalid_properties.push('invalid value for "skip", skip cannot be nil.') end @@ -176,8 +168,6 @@ def valid? return false if @challenge.nil? return false if @client.nil? return false if @request_url.nil? - return false if @requested_access_token_audience.nil? - return false if @requested_scope.nil? return false if @skip.nil? return false if @subject.nil? true diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_logout_request.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_logout_request.rb index 8d535d0f114..0c608cf7c07 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_logout_request.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_logout_request.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_redirect_to.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_redirect_to.rb index 67c7526411a..78945f07ec6 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_redirect_to.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_redirect_to.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_token_exchange.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_token_exchange.rb index 0f6d95b6d41..0c9ffdb16e2 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_token_exchange.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/o_auth2_token_exchange.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -56,7 +56,7 @@ def self.openapi_types { :'access_token' => :'String', :'expires_in' => :'Integer', - :'id_token' => :'Integer', + :'id_token' => :'String', :'refresh_token' => :'String', :'scope' => :'String', :'token_type' => :'String' diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_configuration.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_configuration.rb index 889c7ff164c..d79735c13e7 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_configuration.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_configuration.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_user_info.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_user_info.rb index 7101c1390fa..66f831439d8 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_user_info.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/oidc_user_info.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/pagination.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/pagination.rb index a6b0bb5c326..127d409669f 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/pagination.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/pagination.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/pagination_headers.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/pagination_headers.rb index 1b40b2fb806..9230e2845f8 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/pagination_headers.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/pagination_headers.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/reject_o_auth2_request.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/reject_o_auth2_request.rb index b9af8b64e37..d3ebd2cf82e 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/reject_o_auth2_request.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/reject_o_auth2_request.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/rfc6749_error_json.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/rfc6749_error_json.rb index 06136c0c74d..375b6367ea7 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/rfc6749_error_json.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/rfc6749_error_json.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination.rb index 08adcd981dd..65839162222 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_headers.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_headers.rb index 88407a2d978..060f82dacde 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_headers.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_headers.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_request_parameters.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_request_parameters.rb index a53dae04976..aeb0f15bbb0 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_request_parameters.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_request_parameters.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_response_headers.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_response_headers.rb index 0b68580cb11..2e2ea09db68 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_response_headers.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/token_pagination_response_headers.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/trust_o_auth2_jwt_grant_issuer.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/trust_o_auth2_jwt_grant_issuer.rb index ddbb64c563d..842daa60cb5 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/trust_o_auth2_jwt_grant_issuer.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/trust_o_auth2_jwt_grant_issuer.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_issuer.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_issuer.rb index dc9d7012167..5adfadbb5d4 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_issuer.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_issuer.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb index 27ec2c9b605..e2bc15bb761 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/trusted_o_auth2_jwt_grant_json_web_key.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_priming_response.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_priming_response.rb index c7569b75917..7eeab957f23 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_priming_response.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_priming_response.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_proof.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_proof.rb index 107e88f8246..f8da5b6a417 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_proof.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_proof.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_response.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_response.rb index 444fb89699c..9768e9d4c19 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_response.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/verifiable_credential_response.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/models/version.rb b/clients/hydra/ruby/lib/ory-hydra-client/models/version.rb index 1882de0a89f..69881793f31 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/models/version.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/models/version.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/lib/ory-hydra-client/version.rb b/clients/hydra/ruby/lib/ory-hydra-client/version.rb index e8b4d635379..c020154d21f 100644 --- a/clients/hydra/ruby/lib/ory-hydra-client/version.rb +++ b/clients/hydra/ruby/lib/ory-hydra-client/version.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: 2.2.0.rc3 +The version of the OpenAPI document: 2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -11,5 +11,5 @@ =end module OryHydraClient - VERSION = '2.2.0.rc3' + VERSION = '2.2.0' end diff --git a/clients/hydra/ruby/ory-hydra-client.gemspec b/clients/hydra/ruby/ory-hydra-client.gemspec index f31334a743e..30f1f62fab5 100644 --- a/clients/hydra/ruby/ory-hydra-client.gemspec +++ b/clients/hydra/ruby/ory-hydra-client.gemspec @@ -5,7 +5,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/api/jwk_api_spec.rb b/clients/hydra/ruby/spec/api/jwk_api_spec.rb index f5d976dcf45..1f0d2d1a487 100644 --- a/clients/hydra/ruby/spec/api/jwk_api_spec.rb +++ b/clients/hydra/ruby/spec/api/jwk_api_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/api/metadata_api_spec.rb b/clients/hydra/ruby/spec/api/metadata_api_spec.rb index 2c3039f7c77..359fe690378 100644 --- a/clients/hydra/ruby/spec/api/metadata_api_spec.rb +++ b/clients/hydra/ruby/spec/api/metadata_api_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/api/o_auth2_api_spec.rb b/clients/hydra/ruby/spec/api/o_auth2_api_spec.rb index e58a092afea..39a0bd1dca1 100644 --- a/clients/hydra/ruby/spec/api/o_auth2_api_spec.rb +++ b/clients/hydra/ruby/spec/api/o_auth2_api_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -329,7 +329,7 @@ # unit tests for revoke_o_auth2_login_sessions # Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - # This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + # This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. # @param [Hash] opts the optional parameters # @option opts [String] :subject OAuth 2.0 Subject The subject to revoke authentication sessions for. # @option opts [String] :sid OAuth 2.0 Subject The subject to revoke authentication sessions for. diff --git a/clients/hydra/ruby/spec/api/oidc_api_spec.rb b/clients/hydra/ruby/spec/api/oidc_api_spec.rb index 864dc692b85..660115d4f04 100644 --- a/clients/hydra/ruby/spec/api/oidc_api_spec.rb +++ b/clients/hydra/ruby/spec/api/oidc_api_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/api/wellknown_api_spec.rb b/clients/hydra/ruby/spec/api/wellknown_api_spec.rb index 4c919b55837..210acbe2c0e 100644 --- a/clients/hydra/ruby/spec/api/wellknown_api_spec.rb +++ b/clients/hydra/ruby/spec/api/wellknown_api_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/api_client_spec.rb b/clients/hydra/ruby/spec/api_client_spec.rb index 8615880b50d..6a2e5bfff5a 100644 --- a/clients/hydra/ruby/spec/api_client_spec.rb +++ b/clients/hydra/ruby/spec/api_client_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/configuration_spec.rb b/clients/hydra/ruby/spec/configuration_spec.rb index 6ed15a219f7..0fa7e54f288 100644 --- a/clients/hydra/ruby/spec/configuration_spec.rb +++ b/clients/hydra/ruby/spec/configuration_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb b/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb index e01f9896642..cd9b8625069 100644 --- a/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb +++ b/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_session_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_spec.rb b/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_spec.rb index 54caab5b025..2141d7a45c3 100644 --- a/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_spec.rb +++ b/clients/hydra/ruby/spec/models/accept_o_auth2_consent_request_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -25,6 +25,12 @@ expect(instance).to be_instance_of(OryHydraClient::AcceptOAuth2ConsentRequest) end end + describe 'test attribute "context"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "grant_access_token_audience"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/clients/hydra/ruby/spec/models/accept_o_auth2_login_request_spec.rb b/clients/hydra/ruby/spec/models/accept_o_auth2_login_request_spec.rb index cbdc0d1237a..562c526d090 100644 --- a/clients/hydra/ruby/spec/models/accept_o_auth2_login_request_spec.rb +++ b/clients/hydra/ruby/spec/models/accept_o_auth2_login_request_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/create_json_web_key_set_spec.rb b/clients/hydra/ruby/spec/models/create_json_web_key_set_spec.rb index a536f8e621a..87175c06478 100644 --- a/clients/hydra/ruby/spec/models/create_json_web_key_set_spec.rb +++ b/clients/hydra/ruby/spec/models/create_json_web_key_set_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/create_verifiable_credential_request_body_spec.rb b/clients/hydra/ruby/spec/models/create_verifiable_credential_request_body_spec.rb index 3d54e281b66..00c585e82a7 100644 --- a/clients/hydra/ruby/spec/models/create_verifiable_credential_request_body_spec.rb +++ b/clients/hydra/ruby/spec/models/create_verifiable_credential_request_body_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/credential_supported_draft00_spec.rb b/clients/hydra/ruby/spec/models/credential_supported_draft00_spec.rb index b0887190c03..d82420e8b81 100644 --- a/clients/hydra/ruby/spec/models/credential_supported_draft00_spec.rb +++ b/clients/hydra/ruby/spec/models/credential_supported_draft00_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/error_o_auth2_spec.rb b/clients/hydra/ruby/spec/models/error_o_auth2_spec.rb index 8bc3cb04ae6..0dec476e15f 100644 --- a/clients/hydra/ruby/spec/models/error_o_auth2_spec.rb +++ b/clients/hydra/ruby/spec/models/error_o_auth2_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/generic_error_spec.rb b/clients/hydra/ruby/spec/models/generic_error_spec.rb index 7aa5d4a5602..a87003cd81b 100644 --- a/clients/hydra/ruby/spec/models/generic_error_spec.rb +++ b/clients/hydra/ruby/spec/models/generic_error_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/get_version200_response_spec.rb b/clients/hydra/ruby/spec/models/get_version200_response_spec.rb index cef9288f3e7..9a3ea0d95dd 100644 --- a/clients/hydra/ruby/spec/models/get_version200_response_spec.rb +++ b/clients/hydra/ruby/spec/models/get_version200_response_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/health_not_ready_status_spec.rb b/clients/hydra/ruby/spec/models/health_not_ready_status_spec.rb index baa46410ef3..5f24c8b98b6 100644 --- a/clients/hydra/ruby/spec/models/health_not_ready_status_spec.rb +++ b/clients/hydra/ruby/spec/models/health_not_ready_status_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/health_status_spec.rb b/clients/hydra/ruby/spec/models/health_status_spec.rb index acc2a1c22ff..311fb60e4ce 100644 --- a/clients/hydra/ruby/spec/models/health_status_spec.rb +++ b/clients/hydra/ruby/spec/models/health_status_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/introspected_o_auth2_token_spec.rb b/clients/hydra/ruby/spec/models/introspected_o_auth2_token_spec.rb index 4c8d7695589..561d77214ff 100644 --- a/clients/hydra/ruby/spec/models/introspected_o_auth2_token_spec.rb +++ b/clients/hydra/ruby/spec/models/introspected_o_auth2_token_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/is_ready200_response_spec.rb b/clients/hydra/ruby/spec/models/is_ready200_response_spec.rb index 352c9af8ad5..72b56fe8a3e 100644 --- a/clients/hydra/ruby/spec/models/is_ready200_response_spec.rb +++ b/clients/hydra/ruby/spec/models/is_ready200_response_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/is_ready503_response_spec.rb b/clients/hydra/ruby/spec/models/is_ready503_response_spec.rb index 6ea5aaaa33d..e39308b0779 100644 --- a/clients/hydra/ruby/spec/models/is_ready503_response_spec.rb +++ b/clients/hydra/ruby/spec/models/is_ready503_response_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/json_patch_spec.rb b/clients/hydra/ruby/spec/models/json_patch_spec.rb index faab40671f6..20f6b860dc6 100644 --- a/clients/hydra/ruby/spec/models/json_patch_spec.rb +++ b/clients/hydra/ruby/spec/models/json_patch_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/json_web_key_set_spec.rb b/clients/hydra/ruby/spec/models/json_web_key_set_spec.rb index d3960dc5dab..56e62a90575 100644 --- a/clients/hydra/ruby/spec/models/json_web_key_set_spec.rb +++ b/clients/hydra/ruby/spec/models/json_web_key_set_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/json_web_key_spec.rb b/clients/hydra/ruby/spec/models/json_web_key_spec.rb index 6e17c818d12..af45ac2c2a2 100644 --- a/clients/hydra/ruby/spec/models/json_web_key_spec.rb +++ b/clients/hydra/ruby/spec/models/json_web_key_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_client_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_client_spec.rb index d67653a5a15..46542a03221 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_client_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_client_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -271,6 +271,12 @@ end end + describe 'test attribute "skip_logout_consent"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "subject_type"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/clients/hydra/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb index 0117041dcfa..c46f58fe5d6 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_client_token_lifespans_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb index 21e4d52d317..711965fae70 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_consent_request_open_id_connect_context_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_consent_request_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_consent_request_spec.rb index 2f9d4ad8eaf..93bc0bb859d 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_consent_request_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_consent_request_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb index 0c8945dc9bf..3f4427b8a3b 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_consent_session_expires_at_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_consent_session_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_consent_session_spec.rb index 8c4f553a161..c3556e3214f 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_consent_session_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_consent_session_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 @@ -31,6 +31,12 @@ end end + describe 'test attribute "context"' do + it 'should work' do + # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers + end + end + describe 'test attribute "expires_at"' do it 'should work' do # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers diff --git a/clients/hydra/ruby/spec/models/o_auth2_login_request_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_login_request_spec.rb index 2c462c09af8..59749303881 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_login_request_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_login_request_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_logout_request_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_logout_request_spec.rb index c1f8002da3d..a63215ecd75 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_logout_request_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_logout_request_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_redirect_to_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_redirect_to_spec.rb index 1b93f3b50d7..b2e060b458b 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_redirect_to_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_redirect_to_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/o_auth2_token_exchange_spec.rb b/clients/hydra/ruby/spec/models/o_auth2_token_exchange_spec.rb index ae31eec1b66..d2700379ab2 100644 --- a/clients/hydra/ruby/spec/models/o_auth2_token_exchange_spec.rb +++ b/clients/hydra/ruby/spec/models/o_auth2_token_exchange_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/oidc_configuration_spec.rb b/clients/hydra/ruby/spec/models/oidc_configuration_spec.rb index f88bc92fbb4..32004f3281e 100644 --- a/clients/hydra/ruby/spec/models/oidc_configuration_spec.rb +++ b/clients/hydra/ruby/spec/models/oidc_configuration_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/oidc_user_info_spec.rb b/clients/hydra/ruby/spec/models/oidc_user_info_spec.rb index aadc66629d4..4a90ba3a8ea 100644 --- a/clients/hydra/ruby/spec/models/oidc_user_info_spec.rb +++ b/clients/hydra/ruby/spec/models/oidc_user_info_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/pagination_headers_spec.rb b/clients/hydra/ruby/spec/models/pagination_headers_spec.rb index 20c21b1d5b4..c8f4cafc5fc 100644 --- a/clients/hydra/ruby/spec/models/pagination_headers_spec.rb +++ b/clients/hydra/ruby/spec/models/pagination_headers_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/pagination_spec.rb b/clients/hydra/ruby/spec/models/pagination_spec.rb index 769d4ddb8fa..ee71258a549 100644 --- a/clients/hydra/ruby/spec/models/pagination_spec.rb +++ b/clients/hydra/ruby/spec/models/pagination_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/reject_o_auth2_request_spec.rb b/clients/hydra/ruby/spec/models/reject_o_auth2_request_spec.rb index 1ef76c82733..928caccbe6e 100644 --- a/clients/hydra/ruby/spec/models/reject_o_auth2_request_spec.rb +++ b/clients/hydra/ruby/spec/models/reject_o_auth2_request_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/rfc6749_error_json_spec.rb b/clients/hydra/ruby/spec/models/rfc6749_error_json_spec.rb index 4f2b1fd9f5b..5ecd0ea0e14 100644 --- a/clients/hydra/ruby/spec/models/rfc6749_error_json_spec.rb +++ b/clients/hydra/ruby/spec/models/rfc6749_error_json_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/token_pagination_headers_spec.rb b/clients/hydra/ruby/spec/models/token_pagination_headers_spec.rb index 943d19e8b1e..1caf1220078 100644 --- a/clients/hydra/ruby/spec/models/token_pagination_headers_spec.rb +++ b/clients/hydra/ruby/spec/models/token_pagination_headers_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/token_pagination_request_parameters_spec.rb b/clients/hydra/ruby/spec/models/token_pagination_request_parameters_spec.rb index 30ad8f0b9cd..73c50e3d5ad 100644 --- a/clients/hydra/ruby/spec/models/token_pagination_request_parameters_spec.rb +++ b/clients/hydra/ruby/spec/models/token_pagination_request_parameters_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/token_pagination_response_headers_spec.rb b/clients/hydra/ruby/spec/models/token_pagination_response_headers_spec.rb index 8c8bb402067..3890278e1f7 100644 --- a/clients/hydra/ruby/spec/models/token_pagination_response_headers_spec.rb +++ b/clients/hydra/ruby/spec/models/token_pagination_response_headers_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/token_pagination_spec.rb b/clients/hydra/ruby/spec/models/token_pagination_spec.rb index 9a4f7c4fa1c..58fe8eb6cd1 100644 --- a/clients/hydra/ruby/spec/models/token_pagination_spec.rb +++ b/clients/hydra/ruby/spec/models/token_pagination_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb b/clients/hydra/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb index 7f5b734b285..e0ffc66573f 100644 --- a/clients/hydra/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb +++ b/clients/hydra/ruby/spec/models/trust_o_auth2_jwt_grant_issuer_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb b/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb index 482231b058d..0701b536490 100644 --- a/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb +++ b/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_issuer_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb b/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb index 5ee4d9621bc..b41b1d59ad8 100644 --- a/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb +++ b/clients/hydra/ruby/spec/models/trusted_o_auth2_jwt_grant_json_web_key_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/verifiable_credential_priming_response_spec.rb b/clients/hydra/ruby/spec/models/verifiable_credential_priming_response_spec.rb index e4a80c9b771..a8be049f1d0 100644 --- a/clients/hydra/ruby/spec/models/verifiable_credential_priming_response_spec.rb +++ b/clients/hydra/ruby/spec/models/verifiable_credential_priming_response_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/verifiable_credential_proof_spec.rb b/clients/hydra/ruby/spec/models/verifiable_credential_proof_spec.rb index f316b9e7f03..05f32587c7e 100644 --- a/clients/hydra/ruby/spec/models/verifiable_credential_proof_spec.rb +++ b/clients/hydra/ruby/spec/models/verifiable_credential_proof_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/verifiable_credential_response_spec.rb b/clients/hydra/ruby/spec/models/verifiable_credential_response_spec.rb index 2135737ab49..2e61243dac1 100644 --- a/clients/hydra/ruby/spec/models/verifiable_credential_response_spec.rb +++ b/clients/hydra/ruby/spec/models/verifiable_credential_response_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/models/version_spec.rb b/clients/hydra/ruby/spec/models/version_spec.rb index 44f1ecbd678..c600a9ff535 100644 --- a/clients/hydra/ruby/spec/models/version_spec.rb +++ b/clients/hydra/ruby/spec/models/version_spec.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/ruby/spec/spec_helper.rb b/clients/hydra/ruby/spec/spec_helper.rb index ef1820cebfd..a0a597e81d3 100644 --- a/clients/hydra/ruby/spec/spec_helper.rb +++ b/clients/hydra/ruby/spec/spec_helper.rb @@ -3,7 +3,7 @@ #Documentation for all of Ory Hydra's APIs. -The version of the OpenAPI document: v2.2.0-rc.3 +The version of the OpenAPI document: v2.2.0 Contact: hi@ory.sh Generated by: https://openapi-generator.tech OpenAPI Generator version: 6.0.1 diff --git a/clients/hydra/rust/Cargo.lock b/clients/hydra/rust/Cargo.lock index 79911d20f00..cd0afb94e2a 100644 --- a/clients/hydra/rust/Cargo.lock +++ b/clients/hydra/rust/Cargo.lock @@ -4,9 +4,9 @@ version = 3 [[package]] name = "addr2line" -version = "0.20.0" +version = "0.21.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f4fa78e18c64fce05e902adecd7a5eed15a5e0a3439f7b0e169f0252214865e3" +checksum = "8a30b2e23b9e17a9f90641c7ab1549cd9b44f296d3ccbf309d2863cfe398a0cb" dependencies = [ "gimli", ] @@ -25,9 +25,9 @@ checksum = "d468802bab17cbc0cc575e9b053f41e72aa36bfa6b7f55e3529ffa43161b97fa" [[package]] name = "backtrace" -version = "0.3.68" +version = "0.3.69" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4319208da049c43661739c5fade2ba182f09d1dc2299b32298d3a31692b17e12" +checksum = "2089b7e3f35b9dd2d0ed921ead4f6d318c27680d4a5bd167b3ee120edb105837" dependencies = [ "addr2line", "cc", @@ -40,27 +40,33 @@ dependencies = [ [[package]] name = "base64" -version = "0.21.2" +version = "0.21.7" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9d297deb1925b89f2ccc13d7635fa0714f12c87adce1c75356b39ca9b7178567" + +[[package]] +name = "bitflags" +version = "1.3.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "604178f6c5c21f02dc555784810edfb88d34ac2c73b2eae109655649ee73ce3d" +checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a" [[package]] name = "bumpalo" -version = "3.13.0" +version = "3.14.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a3e2c3daef883ecc1b5d58c15adae93470a91d425f3532ba1695849656af3fc1" +checksum = "7f30e7476521f6f8af1a1c4c0b8cc94f0bee37d91763d0ca2665f299b6cd8aec" [[package]] name = "bytes" -version = "1.4.0" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "89b2fd2a0dcf38d7971e2194b6b6eebab45ae01067456a7fd93d5547a61b70be" +checksum = "a2bd12c1caf447e69cd4528f47f94d203fd2582878ecb9e9465484c4148a8223" [[package]] name = "cc" -version = "1.0.82" +version = "1.0.83" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "305fe645edc1442a0fa8b6726ba61d422798d37a52e12eaecf4b022ebbb88f01" +checksum = "f1174fb0b6ec23863f8b971027804a42614e347eafb0a95bf0b12cdae21fc4d0" dependencies = [ "libc", ] @@ -71,15 +77,37 @@ version = "1.0.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "baf1de4339761588bc0619e3cbc0120ee582ebb74b53b4efbf79117bd2da40fd" +[[package]] +name = "core-foundation" +version = "0.9.4" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f" +dependencies = [ + "core-foundation-sys", + "libc", +] + +[[package]] +name = "core-foundation-sys" +version = "0.8.6" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "06ea2b9bc92be3c2baa9334a323ebca2d6f074ff852cd1d7b11064035cd3868f" + [[package]] name = "encoding_rs" -version = "0.8.32" +version = "0.8.33" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "071a31f4ee85403370b58aca746f01041ede6f0da2730960ad001edc2b71b394" +checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" dependencies = [ "cfg-if", ] +[[package]] +name = "equivalent" +version = "1.0.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "5443807d6dff69373d433ab9ef5378ad8df50ca6298caf15de6e52e24aaf54d5" + [[package]] name = "fnv" version = "1.0.7" @@ -88,45 +116,45 @@ checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1" [[package]] name = "form_urlencoded" -version = "1.2.0" +version = "1.2.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a62bc1cf6f830c2ec14a513a9fb124d0a213a629668a4186f329db21fe045652" +checksum = "e13624c2627564efccf4934284bdd98cbaa14e79b0b5a141218e507b3a823456" dependencies = [ "percent-encoding", ] [[package]] name = "futures-channel" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "955518d47e09b25bbebc7a18df10b81f0c766eaf4c4f1cccef2fca5f2a4fb5f2" +checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", ] [[package]] name = "futures-core" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4bca583b7e26f571124fe5b7561d49cb2868d79116cfa0eefce955557c6fee8c" +checksum = "dfc6580bb841c5a68e9ef15c77ccc837b40a7504914d52e47b8b0e9bbda25a1d" [[package]] name = "futures-sink" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f43be4fe21a13b9781a69afa4985b0f6ee0e1afab2c6f454a8cf30e2b2237b6e" +checksum = "9fb8e00e87438d937621c1c6269e53f536c14d3fbd6a042bb24879e57d474fb5" [[package]] name = "futures-task" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "76d3d132be6c0e6aa1534069c705a74a5997a356c0dc2f86a47765e5617c5b65" +checksum = "38d84fa142264698cdce1a9f9172cf383a0c82de1bddcf3092901442c4097004" [[package]] name = "futures-util" -version = "0.3.28" +version = "0.3.30" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26b01e40b772d54cf6c6d721c1d1abd0647a0106a12ecaa1c186273392a69533" +checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-core", "futures-task", @@ -136,15 +164,15 @@ dependencies = [ [[package]] name = "gimli" -version = "0.27.3" +version = "0.28.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b6c80984affa11d98d1b88b66ac8853f143217b399d3c74116778ff8fdb4ed2e" +checksum = "4271d37baee1b8c7e4b708028c57d816cf9d2434acb33a549475f78c181f6253" [[package]] name = "h2" -version = "0.3.20" +version = "0.3.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "97ec8491ebaf99c8eaa73058b045fe58073cd6be7f596ac993ced0b0a0c01049" +checksum = "bb2c4422095b67ee78da96fbb51a4cc413b3b25883c7717ff7ca1ab31022c9c9" dependencies = [ "bytes", "fnv", @@ -161,15 +189,15 @@ dependencies = [ [[package]] name = "hashbrown" -version = "0.12.3" +version = "0.14.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8a9ee70c43aaf417c914396645a0fa852624801b24ebb7ae78fe8272889ac888" +checksum = "290f1a1d9242c78d09ce40a5e87e7554ee637af1351968159f4952f028f75604" [[package]] name = "http" -version = "0.2.9" +version = "0.2.11" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd6effc99afb63425aff9b05836f029929e345a6148a14b7ecd5ab67af944482" +checksum = "8947b1a6fad4393052c7ba1f4cd97bed3e953a95c79c92ad9b051a04611d9fbb" dependencies = [ "bytes", "fnv", @@ -178,9 +206,9 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.5" +version = "0.4.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d5f38f16d184e36f2408a55281cd658ecbd3ca05cce6d6510a176eca393e26d1" +checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" dependencies = [ "bytes", "http", @@ -201,9 +229,9 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.14.27" +version = "0.14.28" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffb1cfd654a8219eaef89881fdb3bb3b1cdc5fa75ded05d6933b2b382e395468" +checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" dependencies = [ "bytes", "futures-channel", @@ -216,7 +244,7 @@ dependencies = [ "httpdate", "itoa", "pin-project-lite", - "socket2 0.4.9", + "socket2", "tokio", "tower-service", "tracing", @@ -225,9 +253,9 @@ dependencies = [ [[package]] name = "idna" -version = "0.4.0" +version = "0.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d20d6b07bfbc108882d88ed8e37d39636dcc260e15e30c45e6ba089610b917c" +checksum = "634d9b1461af396cad843f47fdba5597a4f9e6ddd4bfb6ff5d85028c25cb12f6" dependencies = [ "unicode-bidi", "unicode-normalization", @@ -235,40 +263,40 @@ dependencies = [ [[package]] name = "indexmap" -version = "1.9.3" +version = "2.2.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd070e393353796e801d209ad339e89596eb4c8d430d18ede6a1cced8fafbd99" +checksum = "233cf39063f058ea2caae4091bf4a3ef70a653afbc026f5c4a4135d114e3c177" dependencies = [ - "autocfg", + "equivalent", "hashbrown", ] [[package]] name = "ipnet" -version = "2.8.0" +version = "2.9.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "28b29a3cd74f0f4598934efe3aeba42bae0eb4680554128851ebbecb02af14e6" +checksum = "8f518f335dce6725a761382244631d86cf0ccb2863413590b31338feb467f9c3" [[package]] name = "itoa" -version = "1.0.9" +version = "1.0.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "af150ab688ff2122fcef229be89cb50dd66af9e01a4ff320cc137eecc9bacc38" +checksum = "b1a46d1a171d865aa5f83f92695765caa047a9b4cbae2cbf37dbd613a793fd4c" [[package]] name = "js-sys" -version = "0.3.64" +version = "0.3.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c5f195fe497f702db0f318b07fdd68edb16955aed830df8363d837542f8f935a" +checksum = "406cda4b368d531c842222cf9d2600a9a4acce8d29423695379c6868a143a9ee" dependencies = [ "wasm-bindgen", ] [[package]] name = "libc" -version = "0.2.147" +version = "0.2.153" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b4668fb0ea861c1df094127ac5f1da3409a82116a4ba74fca2e58ef927159bb3" +checksum = "9c198f91728a82281a64e1f4f9eeb25d82cb32a5de251c6bd1b5154d63a8e7bd" [[package]] name = "log" @@ -278,9 +306,9 @@ checksum = "b5e6163cb8c49088c2c36f57875e58ccd8c87c7427f7fbd50ea6710b2f3f2e8f" [[package]] name = "memchr" -version = "2.5.0" +version = "2.7.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2dffe52ecf27772e601905b7522cb4ef790d2cc203488bbd0e2fe85fcb74566d" +checksum = "523dc4f511e55ab87b694dc30d0f820d60906ef06413f93d4d7a1385599cc149" [[package]] name = "mime" @@ -300,18 +328,18 @@ dependencies = [ [[package]] name = "miniz_oxide" -version = "0.7.1" +version = "0.7.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e7810e0be55b428ada41041c41f32c9f1a42817901b4ccf45fa3d4b6561e74c7" +checksum = "9d811f3e15f28568be3407c8e7fdb6514c1cda3cb30683f15b6a1a1dc4ea14a7" dependencies = [ "adler", ] [[package]] name = "mio" -version = "0.8.8" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "927a765cd3fc26206e66b296465fa9d3e5ab003e651c1b3c060e7956d96b19d2" +checksum = "8f3d0b296e374a4e6f3c7b0a1f5a51d748a0d34c85e7dc48fc3fa9a87657fe09" dependencies = [ "libc", "wasi", @@ -320,31 +348,31 @@ dependencies = [ [[package]] name = "num-traits" -version = "0.2.16" +version = "0.2.18" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f30b0abd723be7e2ffca1272140fac1a2f084c77ec3e123c192b66af1ee9e6c2" +checksum = "da0df0e5185db44f69b44f26786fe401b6c293d1907744beaa7fa62b2e5a517a" dependencies = [ "autocfg", ] [[package]] name = "object" -version = "0.31.1" +version = "0.32.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8bda667d9f2b5051b8833f59f3bf748b28ef54f850f4fcb389a252aa383866d1" +checksum = "a6a622008b6e321afc04970976f62ee297fdbaa6f95318ca343e3eebb9648441" dependencies = [ "memchr", ] [[package]] name = "once_cell" -version = "1.18.0" +version = "1.19.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd8b5dd2ae5ed71462c540258bedcb51965123ad7e7ccf4b9a8cafaa4a63576d" +checksum = "3fdb12b2476b595f9358c5161aa467c2438859caa136dec86c26fdd2efe17b92" [[package]] name = "ory-hydra-client" -version = "2.2.0-rc.3" +version = "2.2.0" dependencies = [ "num-traits", "reqwest", @@ -356,15 +384,15 @@ dependencies = [ [[package]] name = "percent-encoding" -version = "2.3.0" +version = "2.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b2a4787296e9989611394c33f193f676704af1686e70b8f8033ab5ba9a35a94" +checksum = "e3148f5046208a5d56bcfc03053e3ca6334e51da8dfb19b6cdc8b306fae3283e" [[package]] name = "pin-project-lite" -version = "0.2.12" +version = "0.2.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "12cc1b0bf1727a77a54b6654e7b5f1af8604923edc8b81885f8ec92f9e3f0a05" +checksum = "8afb450f006bf6385ca15ef45d71d2288452bc3683ce2e2cacc0d18e4be60b58" [[package]] name = "pin-utils" @@ -374,27 +402,27 @@ checksum = "8b870d8c151b6f2fb93e84a13146138f05d02ed11c7e7c54f8826aaaf7c9f184" [[package]] name = "proc-macro2" -version = "1.0.66" +version = "1.0.78" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "18fb31db3f9bddb2ea821cde30a9f70117e3f119938b5ee630b7403aa6e2ead9" +checksum = "e2422ad645d89c99f8f3e6b88a9fdeca7fabeac836b1002371c4367c8f984aae" dependencies = [ "unicode-ident", ] [[package]] name = "quote" -version = "1.0.32" +version = "1.0.35" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f3b39ccfb720540debaa0164757101c08ecb8d326b15358ce76a62c7e85965" +checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" dependencies = [ "proc-macro2", ] [[package]] name = "reqwest" -version = "0.11.18" +version = "0.11.24" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cde824a14b7c14f85caff81225f411faacc04a2013f41670f41443742b1c1c55" +checksum = "c6920094eb85afde5e4a138be3f2de8bbdf28000f0029e72c45025a56b042251" dependencies = [ "base64", "bytes", @@ -416,6 +444,8 @@ dependencies = [ "serde", "serde_json", "serde_urlencoded", + "sync_wrapper", + "system-configuration", "tokio", "tower-service", "url", @@ -433,21 +463,24 @@ checksum = "d626bb9dae77e28219937af045c257c28bfd3f69333c512553507f5f9798cb76" [[package]] name = "ryu" -version = "1.0.15" +version = "1.0.16" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1ad4cc8da4ef723ed60bced201181d83791ad433213d8c24efffda1eec85d741" +checksum = "f98d2aa92eebf49b69786be48e4477826b256916e84a57ff2a4f21923b48eb4c" [[package]] name = "serde" -version = "1.0.183" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32ac8da02677876d532745a130fc9d8e6edfa81a269b107c5b00829b91d8eb3c" +checksum = "870026e60fa08c69f064aa766c10f10b1d62db9ccd4d0abb206472bee0ce3b32" +dependencies = [ + "serde_derive", +] [[package]] name = "serde_derive" -version = "1.0.183" +version = "1.0.196" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aafe972d60b0b9bee71a91b92fee2d4fb3c9d7e8f6b179aa99f27203d99a4816" +checksum = "33c85360c95e7d137454dc81d9a4ed2b8efd8fbe19cee57357b32b9771fccb67" dependencies = [ "proc-macro2", "quote", @@ -456,9 +489,9 @@ dependencies = [ [[package]] name = "serde_json" -version = "1.0.105" +version = "1.0.113" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "693151e1ac27563d6dbcec9dee9fbd5da8539b20fa14ad3752b2e6d363ace360" +checksum = "69801b70b1c3dac963ecb03a364ba0ceda9cf60c71cfe475e99864759c8b8a79" dependencies = [ "itoa", "ryu", @@ -479,28 +512,18 @@ dependencies = [ [[package]] name = "slab" -version = "0.4.8" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6528351c9bc8ab22353f9d776db39a20288e8d6c37ef8cfe3317cf875eecfc2d" -dependencies = [ - "autocfg", -] - -[[package]] -name = "socket2" version = "0.4.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "64a4a911eed85daf18834cfaa86a79b7d266ff93ff5ba14005426219480ed662" +checksum = "8f92a496fb766b417c996b9c5e57daf2f7ad3b0bebe1ccfca4856390e3d3bb67" dependencies = [ - "libc", - "winapi", + "autocfg", ] [[package]] name = "socket2" -version = "0.5.3" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2538b18701741680e0322a2302176d3253a35388e2e62f172f64f4f16605f877" +checksum = "7b5fac59a5cb5dd637972e5fca70daf0523c9067fcdc4842f053dae04a18f8e9" dependencies = [ "libc", "windows-sys", @@ -508,15 +531,42 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.28" +version = "2.0.48" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "04361975b3f5e348b2189d8dc55bc942f278b2d482a6a0365de5bdd62d351567" +checksum = "0f3531638e407dfc0814761abb7c00a5b54992b849452a0646b7f65c9f770f3f" dependencies = [ "proc-macro2", "quote", "unicode-ident", ] +[[package]] +name = "sync_wrapper" +version = "0.1.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" + +[[package]] +name = "system-configuration" +version = "0.5.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" +dependencies = [ + "bitflags", + "core-foundation", + "system-configuration-sys", +] + +[[package]] +name = "system-configuration-sys" +version = "0.5.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" +dependencies = [ + "core-foundation-sys", + "libc", +] + [[package]] name = "tinyvec" version = "1.6.0" @@ -534,24 +584,24 @@ checksum = "1f3ccbac311fea05f86f61904b462b55fb3df8837a366dfc601a0161d0532f20" [[package]] name = "tokio" -version = "1.32.0" +version = "1.36.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ed6077ed6cd6c74735e21f37eb16dc3935f96878b1fe961074089cc80893f9" +checksum = "61285f6515fa018fb2d1e46eb21223fff441ee8db5d0f1435e8ab4f5cdb80931" dependencies = [ "backtrace", "bytes", "libc", "mio", "pin-project-lite", - "socket2 0.5.3", + "socket2", "windows-sys", ] [[package]] name = "tokio-util" -version = "0.7.8" +version = "0.7.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" +checksum = "5419f34732d9eb6ee4c3578b7989078579b7f039cbbb9ca2c4da015749371e15" dependencies = [ "bytes", "futures-core", @@ -569,50 +619,49 @@ checksum = "b6bc1c9ce2b5135ac7f93c72918fc37feb872bdc6a5533a8b85eb4b86bfdae52" [[package]] name = "tracing" -version = "0.1.37" +version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8ce8c33a8d48bd45d624a6e523445fd21ec13d3653cd51f681abf67418f54eb8" +checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ - "cfg-if", "pin-project-lite", "tracing-core", ] [[package]] name = "tracing-core" -version = "0.1.31" +version = "0.1.32" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0955b8137a1df6f1a2e9a37d8a6656291ff0297c1a97c24e0d8425fe2312f79a" +checksum = "c06d3da6113f116aaee68e4d601191614c9053067f9ab7f6edbcb161237daa54" dependencies = [ "once_cell", ] [[package]] name = "try-lock" -version = "0.2.4" +version = "0.2.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3528ecfd12c466c6f163363caf2d02a71161dd5e1cc6ae7b34207ea2d42d81ed" +checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b" [[package]] name = "unicase" -version = "2.6.0" +version = "2.7.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50f37be617794602aabbeee0be4f259dc1778fabe05e2d67ee8f79326d5cb4f6" +checksum = "f7d2d4dafb69621809a81864c9c1b864479e1235c0dd4e199924b9742439ed89" dependencies = [ "version_check", ] [[package]] name = "unicode-bidi" -version = "0.3.13" +version = "0.3.15" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "92888ba5573ff080736b3648696b70cafad7d250551175acbaa4e0385b3e1460" +checksum = "08f95100a766bf4f8f28f90d77e0a5461bbdb219042e7679bebe79004fed8d75" [[package]] name = "unicode-ident" -version = "1.0.11" +version = "1.0.12" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "301abaae475aa91687eb82514b328ab47a211a533026cb25fc3e519b86adfc3c" +checksum = "3354b9ac3fae1ff6755cb6db53683adb661634f67557942dea4facebec0fee4b" [[package]] name = "unicode-normalization" @@ -625,9 +674,9 @@ dependencies = [ [[package]] name = "url" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "50bff7831e19200a85b17131d085c25d7811bc4e186efdaf54bbd132994a88cb" +checksum = "31e6302e3bb753d46e83516cae55ae196fc0c309407cf11ab35cc51a4c2a4633" dependencies = [ "form_urlencoded", "idna", @@ -657,9 +706,9 @@ checksum = "9c8d87e72b64a3b4db28d11ce29237c246188f4f51057d65a7eab63b7987e423" [[package]] name = "wasm-bindgen" -version = "0.2.87" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7706a72ab36d8cb1f80ffbf0e071533974a60d0a308d01a5d0375bf60499a342" +checksum = "c1e124130aee3fb58c5bdd6b639a0509486b0338acaaae0c84a5124b0f588b7f" dependencies = [ "cfg-if", "wasm-bindgen-macro", @@ -667,9 +716,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.87" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5ef2b6d3c510e9625e5fe6f509ab07d66a760f0885d858736483c32ed7809abd" +checksum = "c9e7e1900c352b609c8488ad12639a311045f40a35491fb69ba8c12f758af70b" dependencies = [ "bumpalo", "log", @@ -682,9 +731,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-futures" -version = "0.4.37" +version = "0.4.41" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c02dbc21516f9f1f04f187958890d7e6026df8d16540b7ad9492bc34a67cea03" +checksum = "877b9c3f61ceea0e56331985743b13f3d25c406a7098d45180fb5f09bc19ed97" dependencies = [ "cfg-if", "js-sys", @@ -694,9 +743,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.87" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dee495e55982a3bd48105a7b947fd2a9b4a8ae3010041b9e0faab3f9cd028f1d" +checksum = "b30af9e2d358182b5c7449424f017eba305ed32a7010509ede96cdc4696c46ed" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -704,9 +753,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.87" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "54681b18a46765f095758388f2d0cf16eb8d4169b639ab575a8f5693af210c7b" +checksum = "642f325be6301eb8107a83d12a8ac6c1e1c54345a7ef1a9261962dfefda09e66" dependencies = [ "proc-macro2", "quote", @@ -717,42 +766,20 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.87" +version = "0.2.91" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ca6ad05a4870b2bf5fe995117d3728437bd27d7cd5f06f13c17443ef369775a1" +checksum = "4f186bd2dcf04330886ce82d6f33dd75a7bfcf69ecf5763b89fcde53b6ac9838" [[package]] name = "web-sys" -version = "0.3.64" +version = "0.3.68" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b85cbef8c220a6abc02aefd892dfc0fc23afb1c6a426316ec33253a3877249b" +checksum = "96565907687f7aceb35bc5fc03770a8a0471d82e479f25832f54a0e3f4b28446" dependencies = [ "js-sys", "wasm-bindgen", ] -[[package]] -name = "winapi" -version = "0.3.9" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c839a674fcd7a98952e593242ea400abe93992746761e38641405d28b00f419" -dependencies = [ - "winapi-i686-pc-windows-gnu", - "winapi-x86_64-pc-windows-gnu", -] - -[[package]] -name = "winapi-i686-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" - -[[package]] -name = "winapi-x86_64-pc-windows-gnu" -version = "0.4.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" - [[package]] name = "windows-sys" version = "0.48.0" @@ -764,9 +791,9 @@ dependencies = [ [[package]] name = "windows-targets" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1eeca1c172a285ee6c2c84c341ccea837e7c01b12fbb2d0fe3c9e550ce49ec8" +checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c" dependencies = [ "windows_aarch64_gnullvm", "windows_aarch64_msvc", @@ -779,51 +806,52 @@ dependencies = [ [[package]] name = "windows_aarch64_gnullvm" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b10d0c968ba7f6166195e13d593af609ec2e3d24f916f081690695cf5eaffb2f" +checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8" [[package]] name = "windows_aarch64_msvc" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "571d8d4e62f26d4932099a9efe89660e8bd5087775a2ab5cdd8b747b811f1058" +checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc" [[package]] name = "windows_i686_gnu" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2229ad223e178db5fbbc8bd8d3835e51e566b8474bfca58d2e6150c48bb723cd" +checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e" [[package]] name = "windows_i686_msvc" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "600956e2d840c194eedfc5d18f8242bc2e17c7775b6684488af3a9fff6fe3287" +checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406" [[package]] name = "windows_x86_64_gnu" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ea99ff3f8b49fb7a8e0d305e5aec485bd068c2ba691b6e277d29eaeac945868a" +checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e" [[package]] name = "windows_x86_64_gnullvm" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8f1a05a1ece9a7a0d5a7ccf30ba2c33e3a61a30e042ffd247567d1de1d94120d" +checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc" [[package]] name = "windows_x86_64_msvc" -version = "0.48.2" +version = "0.48.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d419259aba16b663966e29e6d7c6ecfa0bb8425818bb96f6f1f3c3eb71a6e7b9" +checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538" [[package]] name = "winreg" -version = "0.10.1" +version = "0.50.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "80d0f4e272c85def139476380b12f9ac60926689dd2e01d4923222f40580869d" +checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" dependencies = [ - "winapi", + "cfg-if", + "windows-sys", ] diff --git a/clients/hydra/rust/Cargo.toml b/clients/hydra/rust/Cargo.toml index 2b81980a099..09a18d818a8 100644 --- a/clients/hydra/rust/Cargo.toml +++ b/clients/hydra/rust/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "ory-hydra-client" -version = "2.2.0-rc.3" +version = "2.2.0" description = "SDK Client for Ory Hydra" documentation = "https://www.ory.sh/hydra/docs/sdk" homepage = "https://www.ory.sh" diff --git a/clients/hydra/rust/README.md b/clients/hydra/rust/README.md index e35cd631977..8fde23248a9 100644 --- a/clients/hydra/rust/README.md +++ b/clients/hydra/rust/README.md @@ -8,8 +8,8 @@ Documentation for all of Ory Hydra's APIs. This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [openapi-spec](https://openapis.org) from a remote server, you can easily generate an API client. -- API version: v2.2.0-rc.3 -- Package version: v2.2.0-rc.3 +- API version: v2.2.0 +- Package version: v2.2.0 - Build package: `org.openapitools.codegen.languages.RustClientCodegen` ## Installation diff --git a/clients/hydra/rust/docs/AcceptOAuth2ConsentRequest.md b/clients/hydra/rust/docs/AcceptOAuth2ConsentRequest.md index 3a4c61ec078..eddf5ae468d 100644 --- a/clients/hydra/rust/docs/AcceptOAuth2ConsentRequest.md +++ b/clients/hydra/rust/docs/AcceptOAuth2ConsentRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**context** | Option<[**serde_json::Value**](.md)> | | [optional] **grant_access_token_audience** | Option<**Vec**> | | [optional] **grant_scope** | Option<**Vec**> | | [optional] **handled_at** | Option<**String**> | | [optional] diff --git a/clients/hydra/rust/docs/OAuth2Api.md b/clients/hydra/rust/docs/OAuth2Api.md index 24a632d3471..bf28be9efef 100644 --- a/clients/hydra/rust/docs/OAuth2Api.md +++ b/clients/hydra/rust/docs/OAuth2Api.md @@ -747,7 +747,7 @@ No authorization required > revoke_o_auth2_login_sessions(subject, sid) Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID -This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. ### Parameters diff --git a/clients/hydra/rust/docs/OAuth2Client.md b/clients/hydra/rust/docs/OAuth2Client.md index 0843feaa1e7..13248f2ab77 100644 --- a/clients/hydra/rust/docs/OAuth2Client.md +++ b/clients/hydra/rust/docs/OAuth2Client.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **backchannel_logout_session_required** | Option<**bool**> | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **backchannel_logout_uri** | Option<**String**> | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **client_credentials_grant_access_token_lifespan** | Option<**String**> | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] -**client_id** | Option<**String**> | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**client_id** | Option<**String**> | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **client_name** | Option<**String**> | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **client_secret** | Option<**String**> | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **client_secret_expires_at** | Option<**i64**> | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -45,6 +45,7 @@ Name | Type | Description | Notes **scope** | Option<**String**> | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sector_identifier_uri** | Option<**String**> | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] **skip_consent** | Option<**bool**> | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skip_logout_consent** | Option<**bool**> | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subject_type** | Option<**String**> | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] **token_endpoint_auth_method** | Option<**String**> | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional][default to client_secret_basic] **token_endpoint_auth_signing_alg** | Option<**String**> | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] diff --git a/clients/hydra/rust/docs/OAuth2ConsentSession.md b/clients/hydra/rust/docs/OAuth2ConsentSession.md index b39df0b6fb3..c28a3a163ff 100644 --- a/clients/hydra/rust/docs/OAuth2ConsentSession.md +++ b/clients/hydra/rust/docs/OAuth2ConsentSession.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **consent_request** | Option<[**crate::models::OAuth2ConsentRequest**](oAuth2ConsentRequest.md)> | | [optional] +**context** | Option<[**serde_json::Value**](.md)> | | [optional] **expires_at** | Option<[**crate::models::OAuth2ConsentSessionExpiresAt**](oAuth2ConsentSession_expires_at.md)> | | [optional] **grant_access_token_audience** | Option<**Vec**> | | [optional] **grant_scope** | Option<**Vec**> | | [optional] diff --git a/clients/hydra/rust/docs/OAuth2LoginRequest.md b/clients/hydra/rust/docs/OAuth2LoginRequest.md index edaa133f359..5a5e0c64b3c 100644 --- a/clients/hydra/rust/docs/OAuth2LoginRequest.md +++ b/clients/hydra/rust/docs/OAuth2LoginRequest.md @@ -8,8 +8,8 @@ Name | Type | Description | Notes **client** | [**crate::models::OAuth2Client**](oAuth2Client.md) | | **oidc_context** | Option<[**crate::models::OAuth2ConsentRequestOpenIdConnectContext**](oAuth2ConsentRequestOpenIDConnectContext.md)> | | [optional] **request_url** | **String** | RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. | -**requested_access_token_audience** | **Vec** | | -**requested_scope** | **Vec** | | +**requested_access_token_audience** | Option<**Vec**> | | [optional] +**requested_scope** | Option<**Vec**> | | [optional] **session_id** | Option<**String**> | SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. | [optional] **skip** | **bool** | Skip, if true, implies that the client has requested the same scopes from the same user previously. If true, you can skip asking the user to grant the requested scopes, and simply forward the user to the redirect URL. This feature allows you to update / set session information. | **subject** | **String** | Subject is the user ID of the end-user that authenticated. Now, that end user needs to grant or deny the scope requested by the OAuth 2.0 client. If this value is set and `skip` is true, you MUST include this subject type when accepting the login request, or the request will fail. | diff --git a/clients/hydra/rust/docs/OAuth2TokenExchange.md b/clients/hydra/rust/docs/OAuth2TokenExchange.md index d40774012cd..ba1698c685e 100644 --- a/clients/hydra/rust/docs/OAuth2TokenExchange.md +++ b/clients/hydra/rust/docs/OAuth2TokenExchange.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **access_token** | Option<**String**> | The access token issued by the authorization server. | [optional] **expires_in** | Option<**i64**> | The lifetime in seconds of the access token. For example, the value \"3600\" denotes that the access token will expire in one hour from the time the response was generated. | [optional] -**id_token** | Option<**i64**> | To retrieve a refresh token request the id_token scope. | [optional] +**id_token** | Option<**String**> | To retrieve a refresh token request the id_token scope. | [optional] **refresh_token** | Option<**String**> | The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. | [optional] **scope** | Option<**String**> | The scope of the access token | [optional] **token_type** | Option<**String**> | The type of the token issued | [optional] diff --git a/clients/hydra/rust/src/apis/configuration.rs b/clients/hydra/rust/src/apis/configuration.rs index 3834a704ef2..23628d51968 100644 --- a/clients/hydra/rust/src/apis/configuration.rs +++ b/clients/hydra/rust/src/apis/configuration.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -41,7 +41,7 @@ impl Default for Configuration { fn default() -> Self { Configuration { base_path: "http://localhost".to_owned(), - user_agent: Some("OpenAPI-Generator/v2.2.0-rc.3/rust".to_owned()), + user_agent: Some("OpenAPI-Generator/v2.2.0/rust".to_owned()), client: reqwest::Client::new(), basic_auth: None, oauth_access_token: None, diff --git a/clients/hydra/rust/src/apis/jwk_api.rs b/clients/hydra/rust/src/apis/jwk_api.rs index 01cf6ebc7bb..abfb62baed4 100644 --- a/clients/hydra/rust/src/apis/jwk_api.rs +++ b/clients/hydra/rust/src/apis/jwk_api.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/apis/metadata_api.rs b/clients/hydra/rust/src/apis/metadata_api.rs index d8bf8df6ccd..7423f3f447f 100644 --- a/clients/hydra/rust/src/apis/metadata_api.rs +++ b/clients/hydra/rust/src/apis/metadata_api.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/apis/o_auth2_api.rs b/clients/hydra/rust/src/apis/o_auth2_api.rs index 530ef796b70..e1c2fedccf3 100644 --- a/clients/hydra/rust/src/apis/o_auth2_api.rs +++ b/clients/hydra/rust/src/apis/o_auth2_api.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -965,7 +965,7 @@ pub async fn revoke_o_auth2_consent_sessions(configuration: &configuration::Conf } } -/// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. +/// This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. pub async fn revoke_o_auth2_login_sessions(configuration: &configuration::Configuration, subject: Option<&str>, sid: Option<&str>) -> Result<(), Error> { let local_var_client = &configuration.client; diff --git a/clients/hydra/rust/src/apis/oidc_api.rs b/clients/hydra/rust/src/apis/oidc_api.rs index 7d4368d41d3..f6e4c1d1ea2 100644 --- a/clients/hydra/rust/src/apis/oidc_api.rs +++ b/clients/hydra/rust/src/apis/oidc_api.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/apis/wellknown_api.rs b/clients/hydra/rust/src/apis/wellknown_api.rs index f1a89059872..1f67e833d84 100644 --- a/clients/hydra/rust/src/apis/wellknown_api.rs +++ b/clients/hydra/rust/src/apis/wellknown_api.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/accept_o_auth2_consent_request.rs b/clients/hydra/rust/src/models/accept_o_auth2_consent_request.rs index 9175d8634b3..567937df1f1 100644 --- a/clients/hydra/rust/src/models/accept_o_auth2_consent_request.rs +++ b/clients/hydra/rust/src/models/accept_o_auth2_consent_request.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -13,6 +13,8 @@ #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceptOAuth2ConsentRequest { + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option, #[serde(rename = "grant_access_token_audience", skip_serializing_if = "Option::is_none")] pub grant_access_token_audience: Option>, #[serde(rename = "grant_scope", skip_serializing_if = "Option::is_none")] @@ -38,6 +40,7 @@ impl Default for AcceptOAuth2ConsentRequest { impl AcceptOAuth2ConsentRequest { pub fn new() -> AcceptOAuth2ConsentRequest { AcceptOAuth2ConsentRequest { + context: None, grant_access_token_audience: None, grant_scope: None, handled_at: None, diff --git a/clients/hydra/rust/src/models/accept_o_auth2_consent_request_session.rs b/clients/hydra/rust/src/models/accept_o_auth2_consent_request_session.rs index 3f919518044..b53e2adca5c 100644 --- a/clients/hydra/rust/src/models/accept_o_auth2_consent_request_session.rs +++ b/clients/hydra/rust/src/models/accept_o_auth2_consent_request_session.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/accept_o_auth2_login_request.rs b/clients/hydra/rust/src/models/accept_o_auth2_login_request.rs index 0677e6237ff..77f856ca8b8 100644 --- a/clients/hydra/rust/src/models/accept_o_auth2_login_request.rs +++ b/clients/hydra/rust/src/models/accept_o_auth2_login_request.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/create_json_web_key_set.rs b/clients/hydra/rust/src/models/create_json_web_key_set.rs index 64fc63b19cd..b5d8a83cc6c 100644 --- a/clients/hydra/rust/src/models/create_json_web_key_set.rs +++ b/clients/hydra/rust/src/models/create_json_web_key_set.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/create_verifiable_credential_request_body.rs b/clients/hydra/rust/src/models/create_verifiable_credential_request_body.rs index be85e93eee8..5dd5c722068 100644 --- a/clients/hydra/rust/src/models/create_verifiable_credential_request_body.rs +++ b/clients/hydra/rust/src/models/create_verifiable_credential_request_body.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/credential_supported_draft00.rs b/clients/hydra/rust/src/models/credential_supported_draft00.rs index 97b801e299f..144c54d527a 100644 --- a/clients/hydra/rust/src/models/credential_supported_draft00.rs +++ b/clients/hydra/rust/src/models/credential_supported_draft00.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/error_o_auth2.rs b/clients/hydra/rust/src/models/error_o_auth2.rs index 5aafd29b326..0bfb87675e1 100644 --- a/clients/hydra/rust/src/models/error_o_auth2.rs +++ b/clients/hydra/rust/src/models/error_o_auth2.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/generic_error.rs b/clients/hydra/rust/src/models/generic_error.rs index c5c47c9da48..78c8692ebe5 100644 --- a/clients/hydra/rust/src/models/generic_error.rs +++ b/clients/hydra/rust/src/models/generic_error.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/get_version_200_response.rs b/clients/hydra/rust/src/models/get_version_200_response.rs index edf13e92c71..b1ea644c2eb 100644 --- a/clients/hydra/rust/src/models/get_version_200_response.rs +++ b/clients/hydra/rust/src/models/get_version_200_response.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/health_not_ready_status.rs b/clients/hydra/rust/src/models/health_not_ready_status.rs index f1b88322787..14e0dae7745 100644 --- a/clients/hydra/rust/src/models/health_not_ready_status.rs +++ b/clients/hydra/rust/src/models/health_not_ready_status.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/health_status.rs b/clients/hydra/rust/src/models/health_status.rs index 83aebe7417f..8f069581fba 100644 --- a/clients/hydra/rust/src/models/health_status.rs +++ b/clients/hydra/rust/src/models/health_status.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/introspected_o_auth2_token.rs b/clients/hydra/rust/src/models/introspected_o_auth2_token.rs index aec276c5a85..640e80dc94b 100644 --- a/clients/hydra/rust/src/models/introspected_o_auth2_token.rs +++ b/clients/hydra/rust/src/models/introspected_o_auth2_token.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/is_ready_200_response.rs b/clients/hydra/rust/src/models/is_ready_200_response.rs index 74206cda20a..42b86279aff 100644 --- a/clients/hydra/rust/src/models/is_ready_200_response.rs +++ b/clients/hydra/rust/src/models/is_ready_200_response.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/is_ready_503_response.rs b/clients/hydra/rust/src/models/is_ready_503_response.rs index 31978d3fb44..d1df243706c 100644 --- a/clients/hydra/rust/src/models/is_ready_503_response.rs +++ b/clients/hydra/rust/src/models/is_ready_503_response.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/json_patch.rs b/clients/hydra/rust/src/models/json_patch.rs index 2089c6f2937..cf998bab883 100644 --- a/clients/hydra/rust/src/models/json_patch.rs +++ b/clients/hydra/rust/src/models/json_patch.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/json_web_key.rs b/clients/hydra/rust/src/models/json_web_key.rs index 5975f61a3a2..999b2522e55 100644 --- a/clients/hydra/rust/src/models/json_web_key.rs +++ b/clients/hydra/rust/src/models/json_web_key.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/json_web_key_set.rs b/clients/hydra/rust/src/models/json_web_key_set.rs index 6c7d2d10223..ec14f9fc632 100644 --- a/clients/hydra/rust/src/models/json_web_key_set.rs +++ b/clients/hydra/rust/src/models/json_web_key_set.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_client.rs b/clients/hydra/rust/src/models/o_auth2_client.rs index bffddebaf5b..623fb2063d6 100644 --- a/clients/hydra/rust/src/models/o_auth2_client.rs +++ b/clients/hydra/rust/src/models/o_auth2_client.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -39,7 +39,7 @@ pub struct OAuth2Client { /// Specify a time duration in milliseconds, seconds, minutes, hours. #[serde(rename = "client_credentials_grant_access_token_lifespan", skip_serializing_if = "Option::is_none")] pub client_credentials_grant_access_token_lifespan: Option, - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. #[serde(rename = "client_id", skip_serializing_if = "Option::is_none")] pub client_id: Option, /// OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. @@ -128,6 +128,9 @@ pub struct OAuth2Client { /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API. #[serde(rename = "skip_consent", skip_serializing_if = "Option::is_none")] pub skip_consent: Option, + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + #[serde(rename = "skip_logout_consent", skip_serializing_if = "Option::is_none")] + pub skip_logout_consent: Option, /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. #[serde(rename = "subject_type", skip_serializing_if = "Option::is_none")] pub subject_type: Option, @@ -199,6 +202,7 @@ impl OAuth2Client { scope: None, sector_identifier_uri: None, skip_consent: None, + skip_logout_consent: None, subject_type: None, token_endpoint_auth_method: None, token_endpoint_auth_signing_alg: None, diff --git a/clients/hydra/rust/src/models/o_auth2_client_token_lifespans.rs b/clients/hydra/rust/src/models/o_auth2_client_token_lifespans.rs index 48b83d81cfc..be69bfa7148 100644 --- a/clients/hydra/rust/src/models/o_auth2_client_token_lifespans.rs +++ b/clients/hydra/rust/src/models/o_auth2_client_token_lifespans.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_consent_request.rs b/clients/hydra/rust/src/models/o_auth2_consent_request.rs index db084c74809..d76e808dc09 100644 --- a/clients/hydra/rust/src/models/o_auth2_consent_request.rs +++ b/clients/hydra/rust/src/models/o_auth2_consent_request.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs b/clients/hydra/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs index 474bf59c511..c6e65bc0d9c 100644 --- a/clients/hydra/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs +++ b/clients/hydra/rust/src/models/o_auth2_consent_request_open_id_connect_context.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_consent_session.rs b/clients/hydra/rust/src/models/o_auth2_consent_session.rs index f4cd799848d..67130fd10c3 100644 --- a/clients/hydra/rust/src/models/o_auth2_consent_session.rs +++ b/clients/hydra/rust/src/models/o_auth2_consent_session.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -16,6 +16,8 @@ pub struct OAuth2ConsentSession { #[serde(rename = "consent_request", skip_serializing_if = "Option::is_none")] pub consent_request: Option>, + #[serde(rename = "context", skip_serializing_if = "Option::is_none")] + pub context: Option, #[serde(rename = "expires_at", skip_serializing_if = "Option::is_none")] pub expires_at: Option>, #[serde(rename = "grant_access_token_audience", skip_serializing_if = "Option::is_none")] @@ -45,6 +47,7 @@ impl OAuth2ConsentSession { pub fn new() -> OAuth2ConsentSession { OAuth2ConsentSession { consent_request: None, + context: None, expires_at: None, grant_access_token_audience: None, grant_scope: None, diff --git a/clients/hydra/rust/src/models/o_auth2_consent_session_expires_at.rs b/clients/hydra/rust/src/models/o_auth2_consent_session_expires_at.rs index 6f673b10f8f..ceb8253833a 100644 --- a/clients/hydra/rust/src/models/o_auth2_consent_session_expires_at.rs +++ b/clients/hydra/rust/src/models/o_auth2_consent_session_expires_at.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_login_request.rs b/clients/hydra/rust/src/models/o_auth2_login_request.rs index 1d2b6dbf224..2cebd9b961e 100644 --- a/clients/hydra/rust/src/models/o_auth2_login_request.rs +++ b/clients/hydra/rust/src/models/o_auth2_login_request.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -23,10 +23,10 @@ pub struct OAuth2LoginRequest { /// RequestURL is the original OAuth 2.0 Authorization URL requested by the OAuth 2.0 client. It is the URL which initiates the OAuth 2.0 Authorization Code or OAuth 2.0 Implicit flow. This URL is typically not needed, but might come in handy if you want to deal with additional request parameters. #[serde(rename = "request_url")] pub request_url: String, - #[serde(rename = "requested_access_token_audience")] - pub requested_access_token_audience: Vec, - #[serde(rename = "requested_scope")] - pub requested_scope: Vec, + #[serde(rename = "requested_access_token_audience", skip_serializing_if = "Option::is_none")] + pub requested_access_token_audience: Option>, + #[serde(rename = "requested_scope", skip_serializing_if = "Option::is_none")] + pub requested_scope: Option>, /// SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It's value can generally be used to associate consecutive login requests by a certain user. #[serde(rename = "session_id", skip_serializing_if = "Option::is_none")] pub session_id: Option, @@ -40,14 +40,14 @@ pub struct OAuth2LoginRequest { impl OAuth2LoginRequest { - pub fn new(challenge: String, client: crate::models::OAuth2Client, request_url: String, requested_access_token_audience: Vec, requested_scope: Vec, skip: bool, subject: String) -> OAuth2LoginRequest { + pub fn new(challenge: String, client: crate::models::OAuth2Client, request_url: String, skip: bool, subject: String) -> OAuth2LoginRequest { OAuth2LoginRequest { challenge, client: Box::new(client), oidc_context: None, request_url, - requested_access_token_audience, - requested_scope, + requested_access_token_audience: None, + requested_scope: None, session_id: None, skip, subject, diff --git a/clients/hydra/rust/src/models/o_auth2_logout_request.rs b/clients/hydra/rust/src/models/o_auth2_logout_request.rs index 89e6e85159f..c8d844fcdf8 100644 --- a/clients/hydra/rust/src/models/o_auth2_logout_request.rs +++ b/clients/hydra/rust/src/models/o_auth2_logout_request.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_redirect_to.rs b/clients/hydra/rust/src/models/o_auth2_redirect_to.rs index 949d56f966d..c65cd07eddd 100644 --- a/clients/hydra/rust/src/models/o_auth2_redirect_to.rs +++ b/clients/hydra/rust/src/models/o_auth2_redirect_to.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/o_auth2_token_exchange.rs b/clients/hydra/rust/src/models/o_auth2_token_exchange.rs index aa43a0267a5..790d88e995b 100644 --- a/clients/hydra/rust/src/models/o_auth2_token_exchange.rs +++ b/clients/hydra/rust/src/models/o_auth2_token_exchange.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ @@ -22,7 +22,7 @@ pub struct OAuth2TokenExchange { pub expires_in: Option, /// To retrieve a refresh token request the id_token scope. #[serde(rename = "id_token", skip_serializing_if = "Option::is_none")] - pub id_token: Option, + pub id_token: Option, /// The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. #[serde(rename = "refresh_token", skip_serializing_if = "Option::is_none")] pub refresh_token: Option, diff --git a/clients/hydra/rust/src/models/oidc_configuration.rs b/clients/hydra/rust/src/models/oidc_configuration.rs index 1184fef31e0..39b8b8702a3 100644 --- a/clients/hydra/rust/src/models/oidc_configuration.rs +++ b/clients/hydra/rust/src/models/oidc_configuration.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/oidc_user_info.rs b/clients/hydra/rust/src/models/oidc_user_info.rs index e595f4a53d7..20715a73723 100644 --- a/clients/hydra/rust/src/models/oidc_user_info.rs +++ b/clients/hydra/rust/src/models/oidc_user_info.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/pagination.rs b/clients/hydra/rust/src/models/pagination.rs index fdc2b911881..fc235179e30 100644 --- a/clients/hydra/rust/src/models/pagination.rs +++ b/clients/hydra/rust/src/models/pagination.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/pagination_headers.rs b/clients/hydra/rust/src/models/pagination_headers.rs index 2b11e4d4840..d28492d9bbf 100644 --- a/clients/hydra/rust/src/models/pagination_headers.rs +++ b/clients/hydra/rust/src/models/pagination_headers.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/reject_o_auth2_request.rs b/clients/hydra/rust/src/models/reject_o_auth2_request.rs index 9914b8a063b..67e8e862e6b 100644 --- a/clients/hydra/rust/src/models/reject_o_auth2_request.rs +++ b/clients/hydra/rust/src/models/reject_o_auth2_request.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/rfc6749_error_json.rs b/clients/hydra/rust/src/models/rfc6749_error_json.rs index dff2ce1a1c9..7350244f547 100644 --- a/clients/hydra/rust/src/models/rfc6749_error_json.rs +++ b/clients/hydra/rust/src/models/rfc6749_error_json.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/token_pagination.rs b/clients/hydra/rust/src/models/token_pagination.rs index 18250c51f76..2c78be589ed 100644 --- a/clients/hydra/rust/src/models/token_pagination.rs +++ b/clients/hydra/rust/src/models/token_pagination.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/token_pagination_headers.rs b/clients/hydra/rust/src/models/token_pagination_headers.rs index cd8c7421867..b8b91935c13 100644 --- a/clients/hydra/rust/src/models/token_pagination_headers.rs +++ b/clients/hydra/rust/src/models/token_pagination_headers.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/token_pagination_request_parameters.rs b/clients/hydra/rust/src/models/token_pagination_request_parameters.rs index 28172077212..b663324bc83 100644 --- a/clients/hydra/rust/src/models/token_pagination_request_parameters.rs +++ b/clients/hydra/rust/src/models/token_pagination_request_parameters.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/token_pagination_response_headers.rs b/clients/hydra/rust/src/models/token_pagination_response_headers.rs index df3ef2c9ba7..dabbbcac0c8 100644 --- a/clients/hydra/rust/src/models/token_pagination_response_headers.rs +++ b/clients/hydra/rust/src/models/token_pagination_response_headers.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs b/clients/hydra/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs index 562f3ac8ed1..e4e86fde24d 100644 --- a/clients/hydra/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs +++ b/clients/hydra/rust/src/models/trust_o_auth2_jwt_grant_issuer.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs b/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs index 1f85499f10d..1a6e85841a4 100644 --- a/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs +++ b/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_issuer.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs b/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs index f08ad79e32c..5fd97b9b43b 100644 --- a/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs +++ b/clients/hydra/rust/src/models/trusted_o_auth2_jwt_grant_json_web_key.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/verifiable_credential_priming_response.rs b/clients/hydra/rust/src/models/verifiable_credential_priming_response.rs index 34d18e39752..04b0ee5c964 100644 --- a/clients/hydra/rust/src/models/verifiable_credential_priming_response.rs +++ b/clients/hydra/rust/src/models/verifiable_credential_priming_response.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/verifiable_credential_proof.rs b/clients/hydra/rust/src/models/verifiable_credential_proof.rs index 03a44b98ba6..04972be5009 100644 --- a/clients/hydra/rust/src/models/verifiable_credential_proof.rs +++ b/clients/hydra/rust/src/models/verifiable_credential_proof.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/verifiable_credential_response.rs b/clients/hydra/rust/src/models/verifiable_credential_response.rs index b90c9faadfb..8a9bdf27d64 100644 --- a/clients/hydra/rust/src/models/verifiable_credential_response.rs +++ b/clients/hydra/rust/src/models/verifiable_credential_response.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/rust/src/models/version.rs b/clients/hydra/rust/src/models/version.rs index 6a661e280a7..8c133efe56a 100644 --- a/clients/hydra/rust/src/models/version.rs +++ b/clients/hydra/rust/src/models/version.rs @@ -3,7 +3,7 @@ * * Documentation for all of Ory Hydra's APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * Generated by: https://openapi-generator.tech */ diff --git a/clients/hydra/typescript/.openapi-generator/FILES b/clients/hydra/typescript/.openapi-generator/FILES index 70c4a1c16d0..b616f87eaa2 100644 --- a/clients/hydra/typescript/.openapi-generator/FILES +++ b/clients/hydra/typescript/.openapi-generator/FILES @@ -9,4 +9,5 @@ configuration.ts git_push.sh index.ts package.json +tsconfig.esm.json tsconfig.json diff --git a/clients/hydra/typescript/.openapi-generator/VERSION b/clients/hydra/typescript/.openapi-generator/VERSION index 1e20ec35c64..4b49d9bb63e 100644 --- a/clients/hydra/typescript/.openapi-generator/VERSION +++ b/clients/hydra/typescript/.openapi-generator/VERSION @@ -1 +1 @@ -5.4.0 \ No newline at end of file +7.2.0 \ No newline at end of file diff --git a/clients/hydra/typescript/README.md b/clients/hydra/typescript/README.md index 6fa4c0225fe..2a5bad775a4 100644 --- a/clients/hydra/typescript/README.md +++ b/clients/hydra/typescript/README.md @@ -1,4 +1,4 @@ -## @ory/hydra-client@v2.2.0-rc.3 +## @ory/hydra-client@v2.2.0 This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments: @@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co _published:_ ``` -npm install @ory/hydra-client@v2.2.0-rc.3 --save +npm install @ory/hydra-client@v2.2.0 --save ``` _unPublished (not recommended):_ diff --git a/clients/hydra/typescript/api.ts b/clients/hydra/typescript/api.ts index d7f8c60c863..81d2e2f2830 100644 --- a/clients/hydra/typescript/api.ts +++ b/clients/hydra/typescript/api.ts @@ -4,7 +4,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra\'s APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,13 +13,15 @@ */ -import { Configuration } from './configuration'; -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { Configuration } from './configuration'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; // Some imports not used depending on template conditions // @ts-ignore import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common'; +import type { RequestArgs } from './base'; // @ts-ignore -import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } from './base'; +import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base'; /** * @@ -27,6 +29,12 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError } fr * @interface AcceptOAuth2ConsentRequest */ export interface AcceptOAuth2ConsentRequest { + /** + * + * @type {any} + * @memberof AcceptOAuth2ConsentRequest + */ + 'context'?: any; /** * * @type {Array} @@ -317,6 +325,19 @@ export interface GenericError { */ 'status'?: string; } +/** + * + * @export + * @interface GetVersion200Response + */ +export interface GetVersion200Response { + /** + * The version of Ory Hydra. + * @type {string} + * @memberof GetVersion200Response + */ + 'version'?: string; +} /** * * @export @@ -343,45 +364,6 @@ export interface HealthStatus { */ 'status'?: string; } -/** - * - * @export - * @interface InlineResponse200 - */ -export interface InlineResponse200 { - /** - * Always \"ok\". - * @type {string} - * @memberof InlineResponse200 - */ - 'status'?: string; -} -/** - * - * @export - * @interface InlineResponse2001 - */ -export interface InlineResponse2001 { - /** - * The version of Ory Hydra. - * @type {string} - * @memberof InlineResponse2001 - */ - 'version'?: string; -} -/** - * - * @export - * @interface InlineResponse503 - */ -export interface InlineResponse503 { - /** - * Errors contains a list of errors that caused the not ready status. - * @type {{ [key: string]: string; }} - * @memberof InlineResponse503 - */ - 'errors'?: { [key: string]: string; }; -} /** * Introspection contains an access token\'s session data as specified by [IETF RFC 7662](https://tools.ietf.org/html/rfc7662) * @export @@ -473,6 +455,32 @@ export interface IntrospectedOAuth2Token { */ 'username'?: string; } +/** + * + * @export + * @interface IsReady200Response + */ +export interface IsReady200Response { + /** + * Always \"ok\". + * @type {string} + * @memberof IsReady200Response + */ + 'status'?: string; +} +/** + * + * @export + * @interface IsReady503Response + */ +export interface IsReady503Response { + /** + * Errors contains a list of errors that caused the not ready status. + * @type {{ [key: string]: string; }} + * @memberof IsReady503Response + */ + 'errors'?: { [key: string]: string; }; +} /** * A JSONPatch document as defined by RFC 6902 * @export @@ -687,7 +695,7 @@ export interface OAuth2Client { */ 'client_credentials_grant_access_token_lifespan'?: string; /** - * OAuth 2.0 Client ID The ID is autogenerated and immutable. + * OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. * @type {string} * @memberof OAuth2Client */ @@ -878,6 +886,12 @@ export interface OAuth2Client { * @memberof OAuth2Client */ 'skip_consent'?: boolean; + /** + * SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + * @type {boolean} + * @memberof OAuth2Client + */ + 'skip_logout_consent'?: boolean; /** * OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. * @type {string} @@ -1116,6 +1130,12 @@ export interface OAuth2ConsentSession { * @memberof OAuth2ConsentSession */ 'consent_request'?: OAuth2ConsentRequest; + /** + * + * @type {any} + * @memberof OAuth2ConsentSession + */ + 'context'?: any; /** * * @type {OAuth2ConsentSessionExpiresAt} @@ -1231,13 +1251,13 @@ export interface OAuth2LoginRequest { * @type {Array} * @memberof OAuth2LoginRequest */ - 'requested_access_token_audience': Array; + 'requested_access_token_audience'?: Array; /** * * @type {Array} * @memberof OAuth2LoginRequest */ - 'requested_scope': Array; + 'requested_scope'?: Array; /** * SessionID is the login session ID. If the user-agent reuses a login session (via cookie / remember flag) this ID will remain the same. If the user-agent did not have an existing authentication session (e.g. remember is false) this will be a new random value. This value is used as the \"sid\" parameter in the ID Token and in OIDC Front-/Back- channel logout. It\'s value can generally be used to associate consecutive login requests by a certain user. * @type {string} @@ -1333,10 +1353,10 @@ export interface OAuth2TokenExchange { 'expires_in'?: number; /** * To retrieve a refresh token request the id_token scope. - * @type {number} + * @type {string} * @memberof OAuth2TokenExchange */ - 'id_token'?: number; + 'id_token'?: string; /** * The refresh token, which can be used to obtain new access tokens. To retrieve it add the scope \"offline\" to your access token request. * @type {string} @@ -2096,7 +2116,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createJsonWebKeySet: async (set: string, createJsonWebKeySet: CreateJsonWebKeySet, options: AxiosRequestConfig = {}): Promise => { + createJsonWebKeySet: async (set: string, createJsonWebKeySet: CreateJsonWebKeySet, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('createJsonWebKeySet', 'set', set) // verify required parameter 'createJsonWebKeySet' is not null or undefined @@ -2136,7 +2156,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKey: async (set: string, kid: string, options: AxiosRequestConfig = {}): Promise => { + deleteJsonWebKey: async (set: string, kid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('deleteJsonWebKey', 'set', set) // verify required parameter 'kid' is not null or undefined @@ -2173,7 +2193,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKeySet: async (set: string, options: AxiosRequestConfig = {}): Promise => { + deleteJsonWebKeySet: async (set: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('deleteJsonWebKeySet', 'set', set) const localVarPath = `/admin/keys/{set}` @@ -2208,7 +2228,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKey: async (set: string, kid: string, options: AxiosRequestConfig = {}): Promise => { + getJsonWebKey: async (set: string, kid: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('getJsonWebKey', 'set', set) // verify required parameter 'kid' is not null or undefined @@ -2245,7 +2265,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKeySet: async (set: string, options: AxiosRequestConfig = {}): Promise => { + getJsonWebKeySet: async (set: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('getJsonWebKeySet', 'set', set) const localVarPath = `/admin/keys/{set}` @@ -2281,7 +2301,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKey: async (set: string, kid: string, jsonWebKey?: JsonWebKey, options: AxiosRequestConfig = {}): Promise => { + setJsonWebKey: async (set: string, kid: string, jsonWebKey?: JsonWebKey, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('setJsonWebKey', 'set', set) // verify required parameter 'kid' is not null or undefined @@ -2322,7 +2342,7 @@ export const JwkApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKeySet: async (set: string, jsonWebKeySet?: JsonWebKeySet, options: AxiosRequestConfig = {}): Promise => { + setJsonWebKeySet: async (set: string, jsonWebKeySet?: JsonWebKeySet, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'set' is not null or undefined assertParamExists('setJsonWebKeySet', 'set', set) const localVarPath = `/admin/keys/{set}` @@ -2370,9 +2390,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createJsonWebKeySet(set: string, createJsonWebKeySet: CreateJsonWebKeySet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createJsonWebKeySet(set: string, createJsonWebKeySet: CreateJsonWebKeySet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createJsonWebKeySet(set, createJsonWebKeySet, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.createJsonWebKeySet']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. @@ -2382,9 +2404,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteJsonWebKey(set: string, kid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteJsonWebKey(set: string, kid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteJsonWebKey(set, kid, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.deleteJsonWebKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. @@ -2393,9 +2417,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteJsonWebKeySet(set: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteJsonWebKeySet(set: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteJsonWebKeySet(set, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.deleteJsonWebKeySet']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid). @@ -2405,9 +2431,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getJsonWebKey(set: string, kid: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getJsonWebKey(set: string, kid: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJsonWebKey(set, kid, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.getJsonWebKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. @@ -2416,9 +2444,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getJsonWebKeySet(set: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getJsonWebKeySet(set: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getJsonWebKeySet(set, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.getJsonWebKeySet']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. @@ -2429,9 +2459,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setJsonWebKey(set: string, kid: string, jsonWebKey?: JsonWebKey, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setJsonWebKey(set: string, kid: string, jsonWebKey?: JsonWebKey, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setJsonWebKey(set, kid, jsonWebKey, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.setJsonWebKey']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. @@ -2441,9 +2473,11 @@ export const JwkApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setJsonWebKeySet(set: string, jsonWebKeySet?: JsonWebKeySet, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setJsonWebKeySet(set: string, jsonWebKeySet?: JsonWebKeySet, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setJsonWebKeySet(set, jsonWebKeySet, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['JwkApi.setJsonWebKeySet']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; @@ -2458,78 +2492,72 @@ export const JwkApiFactory = function (configuration?: Configuration, basePath?: /** * This endpoint is capable of generating JSON Web Key Sets for you. There a different strategies available, such as symmetric cryptographic keys (HS256, HS512) and asymetric cryptographic keys (RS256, ECDSA). If the specified JSON Web Key Set does not exist, it will be created. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @summary Create JSON Web Key - * @param {string} set The JSON Web Key Set ID - * @param {CreateJsonWebKeySet} createJsonWebKeySet + * @param {JwkApiCreateJsonWebKeySetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createJsonWebKeySet(set: string, createJsonWebKeySet: CreateJsonWebKeySet, options?: any): AxiosPromise { - return localVarFp.createJsonWebKeySet(set, createJsonWebKeySet, options).then((request) => request(axios, basePath)); + createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createJsonWebKeySet(requestParameters.set, requestParameters.createJsonWebKeySet, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to delete a single JSON Web Key. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @summary Delete JSON Web Key - * @param {string} set The JSON Web Key Set - * @param {string} kid The JSON Web Key ID (kid) + * @param {JwkApiDeleteJsonWebKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKey(set: string, kid: string, options?: any): AxiosPromise { - return localVarFp.deleteJsonWebKey(set, kid, options).then((request) => request(axios, basePath)); + deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to delete a complete JSON Web Key Set and all the keys in that set. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @summary Delete JSON Web Key Set - * @param {string} set The JSON Web Key Set + * @param {JwkApiDeleteJsonWebKeySetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteJsonWebKeySet(set: string, options?: any): AxiosPromise { - return localVarFp.deleteJsonWebKeySet(set, options).then((request) => request(axios, basePath)); + deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteJsonWebKeySet(requestParameters.set, options).then((request) => request(axios, basePath)); }, /** * This endpoint returns a singular JSON Web Key contained in a set. It is identified by the set and the specific key ID (kid). * @summary Get JSON Web Key - * @param {string} set JSON Web Key Set ID - * @param {string} kid JSON Web Key ID + * @param {JwkApiGetJsonWebKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKey(set: string, kid: string, options?: any): AxiosPromise { - return localVarFp.getJsonWebKey(set, kid, options).then((request) => request(axios, basePath)); + getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(axios, basePath)); }, /** * This endpoint can be used to retrieve JWK Sets stored in ORY Hydra. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @summary Retrieve a JSON Web Key Set - * @param {string} set JSON Web Key Set ID + * @param {JwkApiGetJsonWebKeySetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getJsonWebKeySet(set: string, options?: any): AxiosPromise { - return localVarFp.getJsonWebKeySet(set, options).then((request) => request(axios, basePath)); + getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getJsonWebKeySet(requestParameters.set, options).then((request) => request(axios, basePath)); }, /** * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @summary Set JSON Web Key - * @param {string} set The JSON Web Key Set ID - * @param {string} kid JSON Web Key ID - * @param {JsonWebKey} [jsonWebKey] + * @param {JwkApiSetJsonWebKeyRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKey(set: string, kid: string, jsonWebKey?: JsonWebKey, options?: any): AxiosPromise { - return localVarFp.setJsonWebKey(set, kid, jsonWebKey, options).then((request) => request(axios, basePath)); + setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setJsonWebKey(requestParameters.set, requestParameters.kid, requestParameters.jsonWebKey, options).then((request) => request(axios, basePath)); }, /** * Use this method if you do not want to let Hydra generate the JWKs for you, but instead save your own. A JSON Web Key (JWK) is a JavaScript Object Notation (JSON) data structure that represents a cryptographic key. A JWK Set is a JSON data structure that represents a set of JWKs. A JSON Web Key is identified by its set and key id. ORY Hydra uses this functionality to store cryptographic keys used for TLS and JSON Web Tokens (such as OpenID Connect ID tokens), and allows storing user-defined keys as well. * @summary Update a JSON Web Key Set - * @param {string} set The JSON Web Key Set ID - * @param {JsonWebKeySet} [jsonWebKeySet] + * @param {JwkApiSetJsonWebKeySetRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setJsonWebKeySet(set: string, jsonWebKeySet?: JsonWebKeySet, options?: any): AxiosPromise { - return localVarFp.setJsonWebKeySet(set, jsonWebKeySet, options).then((request) => request(axios, basePath)); + setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setJsonWebKeySet(requestParameters.set, requestParameters.jsonWebKeySet, options).then((request) => request(axios, basePath)); }, }; }; @@ -2689,7 +2717,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public createJsonWebKeySet(requestParameters: JwkApiCreateJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).createJsonWebKeySet(requestParameters.set, requestParameters.createJsonWebKeySet, options).then((request) => request(this.axios, this.basePath)); } @@ -2701,7 +2729,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: AxiosRequestConfig) { + public deleteJsonWebKey(requestParameters: JwkApiDeleteJsonWebKeyRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).deleteJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(this.axios, this.basePath)); } @@ -2713,7 +2741,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public deleteJsonWebKeySet(requestParameters: JwkApiDeleteJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).deleteJsonWebKeySet(requestParameters.set, options).then((request) => request(this.axios, this.basePath)); } @@ -2725,7 +2753,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: AxiosRequestConfig) { + public getJsonWebKey(requestParameters: JwkApiGetJsonWebKeyRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).getJsonWebKey(requestParameters.set, requestParameters.kid, options).then((request) => request(this.axios, this.basePath)); } @@ -2737,7 +2765,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public getJsonWebKeySet(requestParameters: JwkApiGetJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).getJsonWebKeySet(requestParameters.set, options).then((request) => request(this.axios, this.basePath)); } @@ -2749,7 +2777,7 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: AxiosRequestConfig) { + public setJsonWebKey(requestParameters: JwkApiSetJsonWebKeyRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).setJsonWebKey(requestParameters.set, requestParameters.kid, requestParameters.jsonWebKey, options).then((request) => request(this.axios, this.basePath)); } @@ -2761,12 +2789,13 @@ export class JwkApi extends BaseAPI { * @throws {RequiredError} * @memberof JwkApi */ - public setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: AxiosRequestConfig) { + public setJsonWebKeySet(requestParameters: JwkApiSetJsonWebKeySetRequest, options?: RawAxiosRequestConfig) { return JwkApiFp(this.configuration).setJsonWebKeySet(requestParameters.set, requestParameters.jsonWebKeySet, options).then((request) => request(this.axios, this.basePath)); } } + /** * MetadataApi - axios parameter creator * @export @@ -2779,7 +2808,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVersion: async (options: AxiosRequestConfig = {}): Promise => { + getVersion: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/version`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2809,7 +2838,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isAlive: async (options: AxiosRequestConfig = {}): Promise => { + isAlive: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/health/alive`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2839,7 +2868,7 @@ export const MetadataApiAxiosParamCreator = function (configuration?: Configurat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isReady: async (options: AxiosRequestConfig = {}): Promise => { + isReady: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/health/ready`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -2879,9 +2908,11 @@ export const MetadataApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getVersion(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getVersion(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getVersion(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetadataApi.getVersion']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint returns a HTTP 200 status code when Ory Hydra is accepting incoming HTTP requests. This status does currently not include checks whether the database connection is working. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. 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. @@ -2889,9 +2920,11 @@ export const MetadataApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async isAlive(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async isAlive(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.isAlive(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetadataApi.isAlive']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint returns a HTTP 200 status code when Ory Hydra is up running and the environment dependencies (e.g. the database) are responsive as well. If the service supports TLS Edge Termination, this endpoint does not require the `X-Forwarded-Proto` header to be set. Be aware that if you are running multiple nodes of Ory Hydra, the health status will never refer to the cluster state, only to a single instance. @@ -2899,9 +2932,11 @@ export const MetadataApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async isReady(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async isReady(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.isReady(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['MetadataApi.isReady']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; @@ -2919,7 +2954,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getVersion(options?: any): AxiosPromise { + getVersion(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getVersion(options).then((request) => request(axios, basePath)); }, /** @@ -2928,7 +2963,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isAlive(options?: any): AxiosPromise { + isAlive(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.isAlive(options).then((request) => request(axios, basePath)); }, /** @@ -2937,7 +2972,7 @@ export const MetadataApiFactory = function (configuration?: Configuration, baseP * @param {*} [options] Override http request option. * @throws {RequiredError} */ - isReady(options?: any): AxiosPromise { + isReady(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.isReady(options).then((request) => request(axios, basePath)); }, }; @@ -2957,7 +2992,7 @@ export class MetadataApi extends BaseAPI { * @throws {RequiredError} * @memberof MetadataApi */ - public getVersion(options?: AxiosRequestConfig) { + public getVersion(options?: RawAxiosRequestConfig) { return MetadataApiFp(this.configuration).getVersion(options).then((request) => request(this.axios, this.basePath)); } @@ -2968,7 +3003,7 @@ export class MetadataApi extends BaseAPI { * @throws {RequiredError} * @memberof MetadataApi */ - public isAlive(options?: AxiosRequestConfig) { + public isAlive(options?: RawAxiosRequestConfig) { return MetadataApiFp(this.configuration).isAlive(options).then((request) => request(this.axios, this.basePath)); } @@ -2979,12 +3014,13 @@ export class MetadataApi extends BaseAPI { * @throws {RequiredError} * @memberof MetadataApi */ - public isReady(options?: AxiosRequestConfig) { + public isReady(options?: RawAxiosRequestConfig) { return MetadataApiFp(this.configuration).isReady(options).then((request) => request(this.axios, this.basePath)); } } + /** * OAuth2Api - axios parameter creator * @export @@ -2999,7 +3035,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2ConsentRequest: async (consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options: AxiosRequestConfig = {}): Promise => { + acceptOAuth2ConsentRequest: async (consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'consentChallenge' is not null or undefined assertParamExists('acceptOAuth2ConsentRequest', 'consentChallenge', consentChallenge) const localVarPath = `/admin/oauth2/auth/requests/consent/accept`; @@ -3040,7 +3076,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LoginRequest: async (loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options: AxiosRequestConfig = {}): Promise => { + acceptOAuth2LoginRequest: async (loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'loginChallenge' is not null or undefined assertParamExists('acceptOAuth2LoginRequest', 'loginChallenge', loginChallenge) const localVarPath = `/admin/oauth2/auth/requests/login/accept`; @@ -3080,7 +3116,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LogoutRequest: async (logoutChallenge: string, options: AxiosRequestConfig = {}): Promise => { + acceptOAuth2LogoutRequest: async (logoutChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'logoutChallenge' is not null or undefined assertParamExists('acceptOAuth2LogoutRequest', 'logoutChallenge', logoutChallenge) const localVarPath = `/admin/oauth2/auth/requests/logout/accept`; @@ -3117,7 +3153,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOAuth2Client: async (oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + createOAuth2Client: async (oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'oAuth2Client' is not null or undefined assertParamExists('createOAuth2Client', 'oAuth2Client', oAuth2Client) const localVarPath = `/admin/clients`; @@ -3153,7 +3189,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Client: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteOAuth2Client: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteOAuth2Client', 'id', id) const localVarPath = `/admin/clients/{id}` @@ -3187,7 +3223,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Token: async (clientId: string, options: AxiosRequestConfig = {}): Promise => { + deleteOAuth2Token: async (clientId: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'clientId' is not null or undefined assertParamExists('deleteOAuth2Token', 'clientId', clientId) const localVarPath = `/admin/oauth2/tokens`; @@ -3224,7 +3260,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTrustedOAuth2JwtGrantIssuer: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteTrustedOAuth2JwtGrantIssuer: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteTrustedOAuth2JwtGrantIssuer', 'id', id) const localVarPath = `/admin/trust/grants/jwt-bearer/issuers/{id}` @@ -3258,7 +3294,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2Client: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2Client: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getOAuth2Client', 'id', id) const localVarPath = `/admin/clients/{id}` @@ -3292,7 +3328,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2ConsentRequest: async (consentChallenge: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2ConsentRequest: async (consentChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'consentChallenge' is not null or undefined assertParamExists('getOAuth2ConsentRequest', 'consentChallenge', consentChallenge) const localVarPath = `/admin/oauth2/auth/requests/consent`; @@ -3329,7 +3365,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LoginRequest: async (loginChallenge: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2LoginRequest: async (loginChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'loginChallenge' is not null or undefined assertParamExists('getOAuth2LoginRequest', 'loginChallenge', loginChallenge) const localVarPath = `/admin/oauth2/auth/requests/login`; @@ -3366,7 +3402,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LogoutRequest: async (logoutChallenge: string, options: AxiosRequestConfig = {}): Promise => { + getOAuth2LogoutRequest: async (logoutChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'logoutChallenge' is not null or undefined assertParamExists('getOAuth2LogoutRequest', 'logoutChallenge', logoutChallenge) const localVarPath = `/admin/oauth2/auth/requests/logout`; @@ -3403,7 +3439,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTrustedOAuth2JwtGrantIssuer: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getTrustedOAuth2JwtGrantIssuer: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getTrustedOAuth2JwtGrantIssuer', 'id', id) const localVarPath = `/admin/trust/grants/jwt-bearer/issuers/{id}` @@ -3438,7 +3474,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - introspectOAuth2Token: async (token: string, scope?: string, options: AxiosRequestConfig = {}): Promise => { + introspectOAuth2Token: async (token: string, scope?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'token' is not null or undefined assertParamExists('introspectOAuth2Token', 'token', token) const localVarPath = `/admin/oauth2/introspect`; @@ -3486,7 +3522,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2Clients: async (pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options: AxiosRequestConfig = {}): Promise => { + listOAuth2Clients: async (pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/clients`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3536,7 +3572,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2ConsentSessions: async (subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options: AxiosRequestConfig = {}): Promise => { + listOAuth2ConsentSessions: async (subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'subject' is not null or undefined assertParamExists('listOAuth2ConsentSessions', 'subject', subject) const localVarPath = `/admin/oauth2/auth/sessions/consent`; @@ -3587,7 +3623,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listTrustedOAuth2JwtGrantIssuers: async (maxItems?: number, defaultItems?: number, issuer?: string, options: AxiosRequestConfig = {}): Promise => { + listTrustedOAuth2JwtGrantIssuers: async (maxItems?: number, defaultItems?: number, issuer?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/trust/grants/jwt-bearer/issuers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3629,7 +3665,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oAuth2Authorize: async (options: AxiosRequestConfig = {}): Promise => { + oAuth2Authorize: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/oauth2/auth`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3664,7 +3700,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oauth2TokenExchange: async (grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options: AxiosRequestConfig = {}): Promise => { + oauth2TokenExchange: async (grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'grantType' is not null or undefined assertParamExists('oauth2TokenExchange', 'grantType', grantType) const localVarPath = `/oauth2/token`; @@ -3730,7 +3766,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchOAuth2Client: async (id: string, jsonPatch: Array, options: AxiosRequestConfig = {}): Promise => { + patchOAuth2Client: async (id: string, jsonPatch: Array, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('patchOAuth2Client', 'id', id) // verify required parameter 'jsonPatch' is not null or undefined @@ -3770,7 +3806,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2ConsentRequest: async (consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: AxiosRequestConfig = {}): Promise => { + rejectOAuth2ConsentRequest: async (consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'consentChallenge' is not null or undefined assertParamExists('rejectOAuth2ConsentRequest', 'consentChallenge', consentChallenge) const localVarPath = `/admin/oauth2/auth/requests/consent/reject`; @@ -3811,7 +3847,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LoginRequest: async (loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: AxiosRequestConfig = {}): Promise => { + rejectOAuth2LoginRequest: async (loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'loginChallenge' is not null or undefined assertParamExists('rejectOAuth2LoginRequest', 'loginChallenge', loginChallenge) const localVarPath = `/admin/oauth2/auth/requests/login/reject`; @@ -3851,7 +3887,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LogoutRequest: async (logoutChallenge: string, options: AxiosRequestConfig = {}): Promise => { + rejectOAuth2LogoutRequest: async (logoutChallenge: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'logoutChallenge' is not null or undefined assertParamExists('rejectOAuth2LogoutRequest', 'logoutChallenge', logoutChallenge) const localVarPath = `/admin/oauth2/auth/requests/logout/reject`; @@ -3890,7 +3926,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2ConsentSessions: async (subject: string, client?: string, all?: boolean, options: AxiosRequestConfig = {}): Promise => { + revokeOAuth2ConsentSessions: async (subject: string, client?: string, all?: boolean, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'subject' is not null or undefined assertParamExists('revokeOAuth2ConsentSessions', 'subject', subject) const localVarPath = `/admin/oauth2/auth/sessions/consent`; @@ -3929,14 +3965,14 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio }; }, /** - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @summary Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID * @param {string} [subject] OAuth 2.0 Subject The subject to revoke authentication sessions for. * @param {string} [sid] OAuth 2.0 Subject The subject to revoke authentication sessions for. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2LoginSessions: async (subject?: string, sid?: string, options: AxiosRequestConfig = {}): Promise => { + revokeOAuth2LoginSessions: async (subject?: string, sid?: string, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/oauth2/auth/sessions/login`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -3977,7 +4013,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2Token: async (token: string, clientId?: string, clientSecret?: string, options: AxiosRequestConfig = {}): Promise => { + revokeOAuth2Token: async (token: string, clientId?: string, clientSecret?: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'token' is not null or undefined assertParamExists('revokeOAuth2Token', 'token', token) const localVarPath = `/oauth2/revoke`; @@ -4035,7 +4071,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2Client: async (id: string, oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + setOAuth2Client: async (id: string, oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('setOAuth2Client', 'id', id) // verify required parameter 'oAuth2Client' is not null or undefined @@ -4075,7 +4111,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2ClientLifespans: async (id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options: AxiosRequestConfig = {}): Promise => { + setOAuth2ClientLifespans: async (id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('setOAuth2ClientLifespans', 'id', id) const localVarPath = `/admin/clients/{id}/lifespans` @@ -4112,7 +4148,7 @@ export const OAuth2ApiAxiosParamCreator = function (configuration?: Configuratio * @param {*} [options] Override http request option. * @throws {RequiredError} */ - trustOAuth2JwtGrantIssuer: async (trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options: AxiosRequestConfig = {}): Promise => { + trustOAuth2JwtGrantIssuer: async (trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/admin/trust/grants/jwt-bearer/issuers`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -4157,9 +4193,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async acceptOAuth2ConsentRequest(consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async acceptOAuth2ConsentRequest(consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOAuth2ConsentRequest(consentChallenge, acceptOAuth2ConsentRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.acceptOAuth2ConsentRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it. The authentication challenge is appended to the login provider URL to which the subject\'s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells Ory that the subject has successfully authenticated and includes additional information such as the subject\'s ID and if Ory should remember the subject\'s subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. @@ -4169,9 +4207,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async acceptOAuth2LoginRequest(loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async acceptOAuth2LoginRequest(loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOAuth2LoginRequest(loginChallenge, acceptOAuth2LoginRequest, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.acceptOAuth2LoginRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When a user or an application requests Ory OAuth 2.0 to remove the session state of a subject, this endpoint is used to confirm that logout request. The response contains a redirect URL which the consent provider should redirect the user-agent to. @@ -4180,9 +4220,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async acceptOAuth2LogoutRequest(logoutChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async acceptOAuth2LogoutRequest(logoutChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.acceptOAuth2LogoutRequest(logoutChallenge, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.acceptOAuth2LogoutRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Create a new OAuth 2.0 client. If you pass `client_secret` the secret is used, otherwise a random secret is generated. The secret is echoed in the response. It is not possible to retrieve it later on. @@ -4191,9 +4233,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOAuth2Client(oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createOAuth2Client(oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOAuth2Client(oAuth2Client, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.createOAuth2Client']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components. @@ -4202,9 +4246,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOAuth2Client(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOAuth2Client(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOAuth2Client(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.deleteOAuth2Client']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint deletes OAuth2 access tokens issued to an OAuth 2.0 Client from the database. @@ -4213,9 +4259,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOAuth2Token(clientId: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOAuth2Token(clientId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOAuth2Token(clientId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.deleteOAuth2Token']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant. @@ -4224,9 +4272,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteTrustedOAuth2JwtGrantIssuer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteTrustedOAuth2JwtGrantIssuer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteTrustedOAuth2JwtGrantIssuer(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.deleteTrustedOAuth2JwtGrantIssuer']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. @@ -4235,9 +4285,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2Client(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2Client(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2Client(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.getOAuth2Client']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject\'s behalf. The consent challenge is appended to the consent provider\'s URL to which the subject\'s user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted or rejected the request. The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please head over to the OAuth 2.0 documentation. @@ -4246,9 +4298,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2ConsentRequest(consentChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2ConsentRequest(consentChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2ConsentRequest(consentChallenge, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.getOAuth2ConsentRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it. Per default, the login provider is Ory itself. You may use a different login provider which needs to be a web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject\'s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. @@ -4257,9 +4311,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2LoginRequest(loginChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2LoginRequest(loginChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2LoginRequest(loginChallenge, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.getOAuth2LoginRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to fetch an Ory OAuth 2.0 logout request. @@ -4268,9 +4324,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOAuth2LogoutRequest(logoutChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOAuth2LogoutRequest(logoutChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOAuth2LogoutRequest(logoutChallenge, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.getOAuth2LogoutRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. @@ -4279,9 +4337,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getTrustedOAuth2JwtGrantIssuer(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getTrustedOAuth2JwtGrantIssuer(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getTrustedOAuth2JwtGrantIssuer(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.getTrustedOAuth2JwtGrantIssuer']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `session.access_token` during the consent flow. @@ -4291,9 +4351,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async introspectOAuth2Token(token: string, scope?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async introspectOAuth2Token(token: string, scope?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.introspectOAuth2Token(token, scope, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.introspectOAuth2Token']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. @@ -4305,9 +4367,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOAuth2Clients(pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listOAuth2Clients(pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOAuth2Clients(pageSize, pageToken, clientName, owner, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.listOAuth2Clients']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint lists all subject\'s granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. @@ -4319,9 +4383,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listOAuth2ConsentSessions(subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listOAuth2ConsentSessions(subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listOAuth2ConsentSessions(subject, pageSize, pageToken, loginSessionId, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.listOAuth2ConsentSessions']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. @@ -4332,9 +4398,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async listTrustedOAuth2JwtGrantIssuers(maxItems?: number, defaultItems?: number, issuer?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { + async listTrustedOAuth2JwtGrantIssuers(maxItems?: number, defaultItems?: number, issuer?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise>> { const localVarAxiosArgs = await localVarAxiosParamCreator.listTrustedOAuth2JwtGrantIssuers(maxItems, defaultItems, issuer, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.listTrustedOAuth2JwtGrantIssuers']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly. @@ -4342,9 +4410,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async oAuth2Authorize(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async oAuth2Authorize(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.oAuth2Authorize(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.oAuth2Authorize']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly. @@ -4357,9 +4427,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async oauth2TokenExchange(grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async oauth2TokenExchange(grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.oauth2TokenExchange(grantType, clientId, code, redirectUri, refreshToken, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.oauth2TokenExchange']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Patch an existing OAuth 2.0 Client using JSON Patch. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. @@ -4369,9 +4441,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async patchOAuth2Client(id: string, jsonPatch: Array, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async patchOAuth2Client(id: string, jsonPatch: Array, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.patchOAuth2Client(id, jsonPatch, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.patchOAuth2Client']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject\'s behalf. The consent challenge is appended to the consent provider\'s URL to which the subject\'s user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted or rejected the request. This endpoint tells Ory that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to. The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please head over to the OAuth 2.0 documentation. @@ -4381,9 +4455,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async rejectOAuth2ConsentRequest(consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async rejectOAuth2ConsentRequest(consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOAuth2ConsentRequest(consentChallenge, rejectOAuth2Request, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.rejectOAuth2ConsentRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it. The authentication challenge is appended to the login provider URL to which the subject\'s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells Ory that the subject has not authenticated and includes a reason why the authentication was denied. The response contains a redirect URL which the login provider should redirect the user-agent to. @@ -4393,9 +4469,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async rejectOAuth2LoginRequest(loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async rejectOAuth2LoginRequest(loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOAuth2LoginRequest(loginChallenge, rejectOAuth2Request, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.rejectOAuth2LoginRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * When a user or an application requests Ory OAuth 2.0 to remove the session state of a subject, this endpoint is used to deny that logout request. No HTTP request body is required. The response is empty as the logout provider has to chose what action to perform next. @@ -4404,9 +4482,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async rejectOAuth2LogoutRequest(logoutChallenge: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async rejectOAuth2LogoutRequest(logoutChallenge: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.rejectOAuth2LogoutRequest(logoutChallenge, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.rejectOAuth2LogoutRequest']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint revokes a subject\'s granted consent sessions and invalidates all associated OAuth 2.0 Access Tokens. You may also only revoke sessions for a specific OAuth 2.0 Client ID. @@ -4417,21 +4497,25 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOAuth2ConsentSessions(subject: string, client?: string, all?: boolean, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOAuth2ConsentSessions(subject: string, client?: string, all?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOAuth2ConsentSessions(subject, client, all, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.revokeOAuth2ConsentSessions']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @summary Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID * @param {string} [subject] OAuth 2.0 Subject The subject to revoke authentication sessions for. * @param {string} [sid] OAuth 2.0 Subject The subject to revoke authentication sessions for. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOAuth2LoginSessions(subject?: string, sid?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOAuth2LoginSessions(subject?: string, sid?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOAuth2LoginSessions(subject, sid, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.revokeOAuth2LoginSessions']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for. @@ -4442,9 +4526,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOAuth2Token(token: string, clientId?: string, clientSecret?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOAuth2Token(token: string, clientId?: string, clientSecret?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOAuth2Token(token, clientId, clientSecret, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.revokeOAuth2Token']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Replaces an existing OAuth 2.0 Client with the payload you send. If you pass `client_secret` the secret is used, otherwise the existing secret is used. If set, the secret is echoed in the response. It is not possible to retrieve it later on. OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. @@ -4454,9 +4540,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setOAuth2Client(id: string, oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setOAuth2Client(id: string, oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setOAuth2Client(id, oAuth2Client, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.setOAuth2Client']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Set lifespans of different token types issued for this OAuth 2.0 client. Does not modify other fields. @@ -4466,9 +4554,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setOAuth2ClientLifespans(id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setOAuth2ClientLifespans(id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setOAuth2ClientLifespans(id, oAuth2ClientTokenLifespans, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.setOAuth2ClientLifespans']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). @@ -4477,9 +4567,11 @@ export const OAuth2ApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OAuth2Api.trustOAuth2JwtGrantIssuer']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; @@ -4494,173 +4586,162 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject\'s behalf. The consent challenge is appended to the consent provider\'s URL to which the subject\'s user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted or rejected the request. This endpoint tells Ory that the subject has authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider includes additional information, such as session data for access and ID tokens, and if the consent request should be used as basis for future requests. The response contains a redirect URL which the consent provider should redirect the user-agent to. The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please head over to the OAuth 2.0 documentation. * @summary Accept OAuth 2.0 Consent Request - * @param {string} consentChallenge OAuth 2.0 Consent Request Challenge - * @param {AcceptOAuth2ConsentRequest} [acceptOAuth2ConsentRequest] + * @param {OAuth2ApiAcceptOAuth2ConsentRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2ConsentRequest(consentChallenge: string, acceptOAuth2ConsentRequest?: AcceptOAuth2ConsentRequest, options?: any): AxiosPromise { - return localVarFp.acceptOAuth2ConsentRequest(consentChallenge, acceptOAuth2ConsentRequest, options).then((request) => request(axios, basePath)); + acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.acceptOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.acceptOAuth2ConsentRequest, options).then((request) => request(axios, basePath)); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it. The authentication challenge is appended to the login provider URL to which the subject\'s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells Ory that the subject has successfully authenticated and includes additional information such as the subject\'s ID and if Ory should remember the subject\'s subject agent for future authentication attempts by setting a cookie. The response contains a redirect URL which the login provider should redirect the user-agent to. * @summary Accept OAuth 2.0 Login Request - * @param {string} loginChallenge OAuth 2.0 Login Request Challenge - * @param {AcceptOAuth2LoginRequest} [acceptOAuth2LoginRequest] + * @param {OAuth2ApiAcceptOAuth2LoginRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LoginRequest(loginChallenge: string, acceptOAuth2LoginRequest?: AcceptOAuth2LoginRequest, options?: any): AxiosPromise { - return localVarFp.acceptOAuth2LoginRequest(loginChallenge, acceptOAuth2LoginRequest, options).then((request) => request(axios, basePath)); + acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.acceptOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.acceptOAuth2LoginRequest, options).then((request) => request(axios, basePath)); }, /** * When a user or an application requests Ory OAuth 2.0 to remove the session state of a subject, this endpoint is used to confirm that logout request. The response contains a redirect URL which the consent provider should redirect the user-agent to. * @summary Accept OAuth 2.0 Session Logout Request - * @param {string} logoutChallenge OAuth 2.0 Logout Request Challenge + * @param {OAuth2ApiAcceptOAuth2LogoutRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - acceptOAuth2LogoutRequest(logoutChallenge: string, options?: any): AxiosPromise { - return localVarFp.acceptOAuth2LogoutRequest(logoutChallenge, options).then((request) => request(axios, basePath)); + acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.acceptOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(axios, basePath)); }, /** * Create a new OAuth 2.0 client. If you pass `client_secret` the secret is used, otherwise a random secret is generated. The secret is echoed in the response. It is not possible to retrieve it later on. * @summary Create OAuth 2.0 Client - * @param {OAuth2Client} oAuth2Client OAuth 2.0 Client Request Body + * @param {OAuth2ApiCreateOAuth2ClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOAuth2Client(oAuth2Client: OAuth2Client, options?: any): AxiosPromise { - return localVarFp.createOAuth2Client(oAuth2Client, options).then((request) => request(axios, basePath)); + createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createOAuth2Client(requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, /** * Delete an existing OAuth 2.0 Client by its ID. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. Make sure that this endpoint is well protected and only callable by first-party components. * @summary Delete OAuth 2.0 Client - * @param {string} id The id of the OAuth 2.0 Client. + * @param {OAuth2ApiDeleteOAuth2ClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Client(id: string, options?: any): AxiosPromise { - return localVarFp.deleteOAuth2Client(id, options).then((request) => request(axios, basePath)); + deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteOAuth2Client(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * This endpoint deletes OAuth2 access tokens issued to an OAuth 2.0 Client from the database. * @summary Delete OAuth 2.0 Access Tokens from specific OAuth 2.0 Client - * @param {string} clientId OAuth 2.0 Client ID + * @param {OAuth2ApiDeleteOAuth2TokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOAuth2Token(clientId: string, options?: any): AxiosPromise { - return localVarFp.deleteOAuth2Token(clientId, options).then((request) => request(axios, basePath)); + deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteOAuth2Token(requestParameters.clientId, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to delete trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. Once deleted, the associated issuer will no longer be able to perform the JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grant. * @summary Delete Trusted OAuth2 JWT Bearer Grant Type Issuer - * @param {string} id The id of the desired grant + * @param {OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteTrustedOAuth2JwtGrantIssuer(id: string, options?: any): AxiosPromise { - return localVarFp.deleteTrustedOAuth2JwtGrantIssuer(id, options).then((request) => request(axios, basePath)); + deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * Get an OAuth 2.0 client by its ID. This endpoint never returns the client secret. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @summary Get an OAuth 2.0 Client - * @param {string} id The id of the OAuth 2.0 Client. + * @param {OAuth2ApiGetOAuth2ClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2Client(id: string, options?: any): AxiosPromise { - return localVarFp.getOAuth2Client(id, options).then((request) => request(axios, basePath)); + getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getOAuth2Client(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject\'s behalf. The consent challenge is appended to the consent provider\'s URL to which the subject\'s user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted or rejected the request. The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please head over to the OAuth 2.0 documentation. * @summary Get OAuth 2.0 Consent Request - * @param {string} consentChallenge OAuth 2.0 Consent Request Challenge + * @param {OAuth2ApiGetOAuth2ConsentRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2ConsentRequest(consentChallenge: string, options?: any): AxiosPromise { - return localVarFp.getOAuth2ConsentRequest(consentChallenge, options).then((request) => request(axios, basePath)); + getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getOAuth2ConsentRequest(requestParameters.consentChallenge, options).then((request) => request(axios, basePath)); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it. Per default, the login provider is Ory itself. You may use a different login provider which needs to be a web-app you write and host, and it must be able to authenticate (\"show the subject a login screen\") a subject (in OAuth2 the proper name for subject is \"resource owner\"). The authentication challenge is appended to the login provider URL to which the subject\'s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. * @summary Get OAuth 2.0 Login Request - * @param {string} loginChallenge OAuth 2.0 Login Request Challenge + * @param {OAuth2ApiGetOAuth2LoginRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LoginRequest(loginChallenge: string, options?: any): AxiosPromise { - return localVarFp.getOAuth2LoginRequest(loginChallenge, options).then((request) => request(axios, basePath)); + getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getOAuth2LoginRequest(requestParameters.loginChallenge, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to fetch an Ory OAuth 2.0 logout request. * @summary Get OAuth 2.0 Session Logout Request - * @param {string} logoutChallenge + * @param {OAuth2ApiGetOAuth2LogoutRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOAuth2LogoutRequest(logoutChallenge: string, options?: any): AxiosPromise { - return localVarFp.getOAuth2LogoutRequest(logoutChallenge, options).then((request) => request(axios, basePath)); + getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to get a trusted JWT Bearer Grant Type Issuer. The ID is the one returned when you created the trust relationship. * @summary Get Trusted OAuth2 JWT Bearer Grant Type Issuer - * @param {string} id The id of the desired grant + * @param {OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getTrustedOAuth2JwtGrantIssuer(id: string, options?: any): AxiosPromise { - return localVarFp.getTrustedOAuth2JwtGrantIssuer(id, options).then((request) => request(axios, basePath)); + getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * The introspection endpoint allows to check if a token (both refresh and access) is active or not. An active token is neither expired nor revoked. If a token is active, additional information on the token will be included. You can set additional data for a token by setting `session.access_token` during the consent flow. * @summary Introspect OAuth2 Access and Refresh Tokens - * @param {string} token The string value of the token. For access tokens, this is the \\\"access_token\\\" value returned from the token endpoint defined in OAuth 2.0. For refresh tokens, this is the \\\"refresh_token\\\" value returned. - * @param {string} [scope] An optional, space separated list of required scopes. If the access token was not granted one of the scopes, the result of active will be false. + * @param {OAuth2ApiIntrospectOAuth2TokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - introspectOAuth2Token(token: string, scope?: string, options?: any): AxiosPromise { - return localVarFp.introspectOAuth2Token(token, scope, options).then((request) => request(axios, basePath)); + introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.introspectOAuth2Token(requestParameters.token, requestParameters.scope, options).then((request) => request(axios, basePath)); }, /** * This endpoint lists all clients in the database, and never returns client secrets. As a default it lists the first 100 clients. * @summary List OAuth 2.0 Clients - * @param {number} [pageSize] Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - * @param {string} [pageToken] Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - * @param {string} [clientName] The name of the clients to filter by. - * @param {string} [owner] The owner of the clients to filter by. + * @param {OAuth2ApiListOAuth2ClientsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2Clients(pageSize?: number, pageToken?: string, clientName?: string, owner?: string, options?: any): AxiosPromise> { - return localVarFp.listOAuth2Clients(pageSize, pageToken, clientName, owner, options).then((request) => request(axios, basePath)); + listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.listOAuth2Clients(requestParameters.pageSize, requestParameters.pageToken, requestParameters.clientName, requestParameters.owner, options).then((request) => request(axios, basePath)); }, /** * This endpoint lists all subject\'s granted consent sessions, including client and granted scope. If the subject is unknown or has not granted any consent sessions yet, the endpoint returns an empty JSON array with status code 200 OK. * @summary List OAuth 2.0 Consent Sessions of a Subject - * @param {string} subject The subject to list the consent sessions for. - * @param {number} [pageSize] Items per Page This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - * @param {string} [pageToken] Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - * @param {string} [loginSessionId] The login session id to list the consent sessions for. + * @param {OAuth2ApiListOAuth2ConsentSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listOAuth2ConsentSessions(subject: string, pageSize?: number, pageToken?: string, loginSessionId?: string, options?: any): AxiosPromise> { - return localVarFp.listOAuth2ConsentSessions(subject, pageSize, pageToken, loginSessionId, options).then((request) => request(axios, basePath)); + listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.listOAuth2ConsentSessions(requestParameters.subject, requestParameters.pageSize, requestParameters.pageToken, requestParameters.loginSessionId, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to list all trusted JWT Bearer Grant Type Issuers. * @summary List Trusted OAuth2 JWT Bearer Grant Type Issuers - * @param {number} [maxItems] - * @param {number} [defaultItems] - * @param {string} [issuer] If optional \"issuer\" is supplied, only jwt-bearer grants with this issuer will be returned. + * @param {OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - listTrustedOAuth2JwtGrantIssuers(maxItems?: number, defaultItems?: number, issuer?: string, options?: any): AxiosPromise> { - return localVarFp.listTrustedOAuth2JwtGrantIssuers(maxItems, defaultItems, issuer, options).then((request) => request(axios, basePath)); + listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise> { + return localVarFp.listTrustedOAuth2JwtGrantIssuers(requestParameters.maxItems, requestParameters.defaultItems, requestParameters.issuer, options).then((request) => request(axios, basePath)); }, /** * Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries at https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly. @@ -4668,132 +4749,118 @@ export const OAuth2ApiFactory = function (configuration?: Configuration, basePat * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oAuth2Authorize(options?: any): AxiosPromise { + oAuth2Authorize(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.oAuth2Authorize(options).then((request) => request(axios, basePath)); }, /** * Use open source libraries to perform OAuth 2.0 and OpenID Connect available for any programming language. You can find a list of libraries here https://oauth.net/code/ The Ory SDK is not yet able to this endpoint properly. * @summary The OAuth 2.0 Token Endpoint - * @param {string} grantType - * @param {string} [clientId] - * @param {string} [code] - * @param {string} [redirectUri] - * @param {string} [refreshToken] + * @param {OAuth2ApiOauth2TokenExchangeRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - oauth2TokenExchange(grantType: string, clientId?: string, code?: string, redirectUri?: string, refreshToken?: string, options?: any): AxiosPromise { - return localVarFp.oauth2TokenExchange(grantType, clientId, code, redirectUri, refreshToken, options).then((request) => request(axios, basePath)); + oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.oauth2TokenExchange(requestParameters.grantType, requestParameters.clientId, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options).then((request) => request(axios, basePath)); }, /** * Patch an existing OAuth 2.0 Client using JSON Patch. If you pass `client_secret` the secret will be updated and returned via the API. This is the only time you will be able to retrieve the client secret, so write it down and keep it safe. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @summary Patch OAuth 2.0 Client - * @param {string} id The id of the OAuth 2.0 Client. - * @param {Array} jsonPatch OAuth 2.0 Client JSON Patch Body + * @param {OAuth2ApiPatchOAuth2ClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - patchOAuth2Client(id: string, jsonPatch: Array, options?: any): AxiosPromise { - return localVarFp.patchOAuth2Client(id, jsonPatch, options).then((request) => request(axios, basePath)); + patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.patchOAuth2Client(requestParameters.id, requestParameters.jsonPatch, options).then((request) => request(axios, basePath)); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell Ory now about it. If the subject authenticated, he/she must now be asked if the OAuth 2.0 Client which initiated the flow should be allowed to access the resources on the subject\'s behalf. The consent challenge is appended to the consent provider\'s URL to which the subject\'s user-agent (browser) is redirected to. The consent provider uses that challenge to fetch information on the OAuth2 request and then tells Ory if the subject accepted or rejected the request. This endpoint tells Ory that the subject has not authorized the OAuth 2.0 client to access resources on his/her behalf. The consent provider must include a reason why the consent was not granted. The response contains a redirect URL which the consent provider should redirect the user-agent to. The default consent provider is available via the Ory Managed Account Experience. To customize the consent provider, please head over to the OAuth 2.0 documentation. * @summary Reject OAuth 2.0 Consent Request - * @param {string} consentChallenge OAuth 2.0 Consent Request Challenge - * @param {RejectOAuth2Request} [rejectOAuth2Request] + * @param {OAuth2ApiRejectOAuth2ConsentRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2ConsentRequest(consentChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: any): AxiosPromise { - return localVarFp.rejectOAuth2ConsentRequest(consentChallenge, rejectOAuth2Request, options).then((request) => request(axios, basePath)); + rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.rejectOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(axios, basePath)); }, /** * When an authorization code, hybrid, or implicit OAuth 2.0 Flow is initiated, Ory asks the login provider to authenticate the subject and then tell the Ory OAuth2 Service about it. The authentication challenge is appended to the login provider URL to which the subject\'s user-agent (browser) is redirected to. The login provider uses that challenge to fetch information on the OAuth2 request and then accept or reject the requested authentication process. This endpoint tells Ory that the subject has not authenticated and includes a reason why the authentication was denied. The response contains a redirect URL which the login provider should redirect the user-agent to. * @summary Reject OAuth 2.0 Login Request - * @param {string} loginChallenge OAuth 2.0 Login Request Challenge - * @param {RejectOAuth2Request} [rejectOAuth2Request] + * @param {OAuth2ApiRejectOAuth2LoginRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LoginRequest(loginChallenge: string, rejectOAuth2Request?: RejectOAuth2Request, options?: any): AxiosPromise { - return localVarFp.rejectOAuth2LoginRequest(loginChallenge, rejectOAuth2Request, options).then((request) => request(axios, basePath)); + rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.rejectOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(axios, basePath)); }, /** * When a user or an application requests Ory OAuth 2.0 to remove the session state of a subject, this endpoint is used to deny that logout request. No HTTP request body is required. The response is empty as the logout provider has to chose what action to perform next. * @summary Reject OAuth 2.0 Session Logout Request - * @param {string} logoutChallenge + * @param {OAuth2ApiRejectOAuth2LogoutRequestRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - rejectOAuth2LogoutRequest(logoutChallenge: string, options?: any): AxiosPromise { - return localVarFp.rejectOAuth2LogoutRequest(logoutChallenge, options).then((request) => request(axios, basePath)); + rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.rejectOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(axios, basePath)); }, /** * This endpoint revokes a subject\'s granted consent sessions and invalidates all associated OAuth 2.0 Access Tokens. You may also only revoke sessions for a specific OAuth 2.0 Client ID. * @summary Revoke OAuth 2.0 Consent Sessions of a Subject - * @param {string} subject OAuth 2.0 Consent Subject The subject whose consent sessions should be deleted. - * @param {string} [client] OAuth 2.0 Client ID If set, deletes only those consent sessions that have been granted to the specified OAuth 2.0 Client ID. - * @param {boolean} [all] Revoke All Consent Sessions If set to `true` deletes all consent sessions by the Subject that have been granted. + * @param {OAuth2ApiRevokeOAuth2ConsentSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2ConsentSessions(subject: string, client?: string, all?: boolean, options?: any): AxiosPromise { - return localVarFp.revokeOAuth2ConsentSessions(subject, client, all, options).then((request) => request(axios, basePath)); + revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.revokeOAuth2ConsentSessions(requestParameters.subject, requestParameters.client, requestParameters.all, options).then((request) => request(axios, basePath)); }, /** - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @summary Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID - * @param {string} [subject] OAuth 2.0 Subject The subject to revoke authentication sessions for. - * @param {string} [sid] OAuth 2.0 Subject The subject to revoke authentication sessions for. + * @param {OAuth2ApiRevokeOAuth2LoginSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2LoginSessions(subject?: string, sid?: string, options?: any): AxiosPromise { - return localVarFp.revokeOAuth2LoginSessions(subject, sid, options).then((request) => request(axios, basePath)); + revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.revokeOAuth2LoginSessions(requestParameters.subject, requestParameters.sid, options).then((request) => request(axios, basePath)); }, /** * Revoking a token (both access and refresh) means that the tokens will be invalid. A revoked access token can no longer be used to make access requests, and a revoked refresh token can no longer be used to refresh an access token. Revoking a refresh token also invalidates the access token that was created with it. A token may only be revoked by the client the token was generated for. * @summary Revoke OAuth 2.0 Access or Refresh Token - * @param {string} token - * @param {string} [clientId] - * @param {string} [clientSecret] + * @param {OAuth2ApiRevokeOAuth2TokenRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOAuth2Token(token: string, clientId?: string, clientSecret?: string, options?: any): AxiosPromise { - return localVarFp.revokeOAuth2Token(token, clientId, clientSecret, options).then((request) => request(axios, basePath)); + revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.revokeOAuth2Token(requestParameters.token, requestParameters.clientId, requestParameters.clientSecret, options).then((request) => request(axios, basePath)); }, /** * Replaces an existing OAuth 2.0 Client with the payload you send. If you pass `client_secret` the secret is used, otherwise the existing secret is used. If set, the secret is echoed in the response. It is not possible to retrieve it later on. OAuth 2.0 Clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @summary Set OAuth 2.0 Client - * @param {string} id OAuth 2.0 Client ID - * @param {OAuth2Client} oAuth2Client OAuth 2.0 Client Request Body + * @param {OAuth2ApiSetOAuth2ClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2Client(id: string, oAuth2Client: OAuth2Client, options?: any): AxiosPromise { - return localVarFp.setOAuth2Client(id, oAuth2Client, options).then((request) => request(axios, basePath)); + setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setOAuth2Client(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, /** * Set lifespans of different token types issued for this OAuth 2.0 client. Does not modify other fields. * @summary Set OAuth2 Client Token Lifespans - * @param {string} id OAuth 2.0 Client ID - * @param {OAuth2ClientTokenLifespans} [oAuth2ClientTokenLifespans] + * @param {OAuth2ApiSetOAuth2ClientLifespansRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOAuth2ClientLifespans(id: string, oAuth2ClientTokenLifespans?: OAuth2ClientTokenLifespans, options?: any): AxiosPromise { - return localVarFp.setOAuth2ClientLifespans(id, oAuth2ClientTokenLifespans, options).then((request) => request(axios, basePath)); + setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setOAuth2ClientLifespans(requestParameters.id, requestParameters.oAuth2ClientTokenLifespans, options).then((request) => request(axios, basePath)); }, /** * Use this endpoint to establish a trust relationship for a JWT issuer to perform JSON Web Token (JWT) Profile for OAuth 2.0 Client Authentication and Authorization Grants [RFC7523](https://datatracker.ietf.org/doc/html/rfc7523). * @summary Trust OAuth2 JWT Bearer Grant Type Issuer - * @param {TrustOAuth2JwtGrantIssuer} [trustOAuth2JwtGrantIssuer] + * @param {OAuth2ApiTrustOAuth2JwtGrantIssuerRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer?: TrustOAuth2JwtGrantIssuer, options?: any): AxiosPromise { - return localVarFp.trustOAuth2JwtGrantIssuer(trustOAuth2JwtGrantIssuer, options).then((request) => request(axios, basePath)); + trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.trustOAuth2JwtGrantIssuer(requestParameters.trustOAuth2JwtGrantIssuer, options).then((request) => request(axios, basePath)); }, }; }; @@ -5366,7 +5433,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: AxiosRequestConfig) { + public acceptOAuth2ConsentRequest(requestParameters: OAuth2ApiAcceptOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).acceptOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.acceptOAuth2ConsentRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -5378,7 +5445,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: AxiosRequestConfig) { + public acceptOAuth2LoginRequest(requestParameters: OAuth2ApiAcceptOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).acceptOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.acceptOAuth2LoginRequest, options).then((request) => request(this.axios, this.basePath)); } @@ -5390,7 +5457,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: AxiosRequestConfig) { + public acceptOAuth2LogoutRequest(requestParameters: OAuth2ApiAcceptOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).acceptOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -5402,7 +5469,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: AxiosRequestConfig) { + public createOAuth2Client(requestParameters: OAuth2ApiCreateOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).createOAuth2Client(requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } @@ -5414,7 +5481,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: AxiosRequestConfig) { + public deleteOAuth2Client(requestParameters: OAuth2ApiDeleteOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).deleteOAuth2Client(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -5426,7 +5493,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: AxiosRequestConfig) { + public deleteOAuth2Token(requestParameters: OAuth2ApiDeleteOAuth2TokenRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).deleteOAuth2Token(requestParameters.clientId, options).then((request) => request(this.axios, this.basePath)); } @@ -5438,7 +5505,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: AxiosRequestConfig) { + public deleteTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiDeleteTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).deleteTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -5450,7 +5517,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: AxiosRequestConfig) { + public getOAuth2Client(requestParameters: OAuth2ApiGetOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2Client(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -5462,7 +5529,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: AxiosRequestConfig) { + public getOAuth2ConsentRequest(requestParameters: OAuth2ApiGetOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2ConsentRequest(requestParameters.consentChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -5474,7 +5541,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: AxiosRequestConfig) { + public getOAuth2LoginRequest(requestParameters: OAuth2ApiGetOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2LoginRequest(requestParameters.loginChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -5486,7 +5553,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: AxiosRequestConfig) { + public getOAuth2LogoutRequest(requestParameters: OAuth2ApiGetOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -5498,7 +5565,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: AxiosRequestConfig) { + public getTrustedOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiGetTrustedOAuth2JwtGrantIssuerRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).getTrustedOAuth2JwtGrantIssuer(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -5510,7 +5577,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: AxiosRequestConfig) { + public introspectOAuth2Token(requestParameters: OAuth2ApiIntrospectOAuth2TokenRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).introspectOAuth2Token(requestParameters.token, requestParameters.scope, options).then((request) => request(this.axios, this.basePath)); } @@ -5522,7 +5589,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: AxiosRequestConfig) { + public listOAuth2Clients(requestParameters: OAuth2ApiListOAuth2ClientsRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).listOAuth2Clients(requestParameters.pageSize, requestParameters.pageToken, requestParameters.clientName, requestParameters.owner, options).then((request) => request(this.axios, this.basePath)); } @@ -5534,7 +5601,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: AxiosRequestConfig) { + public listOAuth2ConsentSessions(requestParameters: OAuth2ApiListOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).listOAuth2ConsentSessions(requestParameters.subject, requestParameters.pageSize, requestParameters.pageToken, requestParameters.loginSessionId, options).then((request) => request(this.axios, this.basePath)); } @@ -5546,7 +5613,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: AxiosRequestConfig) { + public listTrustedOAuth2JwtGrantIssuers(requestParameters: OAuth2ApiListTrustedOAuth2JwtGrantIssuersRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).listTrustedOAuth2JwtGrantIssuers(requestParameters.maxItems, requestParameters.defaultItems, requestParameters.issuer, options).then((request) => request(this.axios, this.basePath)); } @@ -5557,7 +5624,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public oAuth2Authorize(options?: AxiosRequestConfig) { + public oAuth2Authorize(options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).oAuth2Authorize(options).then((request) => request(this.axios, this.basePath)); } @@ -5569,7 +5636,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: AxiosRequestConfig) { + public oauth2TokenExchange(requestParameters: OAuth2ApiOauth2TokenExchangeRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).oauth2TokenExchange(requestParameters.grantType, requestParameters.clientId, requestParameters.code, requestParameters.redirectUri, requestParameters.refreshToken, options).then((request) => request(this.axios, this.basePath)); } @@ -5581,7 +5648,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: AxiosRequestConfig) { + public patchOAuth2Client(requestParameters: OAuth2ApiPatchOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).patchOAuth2Client(requestParameters.id, requestParameters.jsonPatch, options).then((request) => request(this.axios, this.basePath)); } @@ -5593,7 +5660,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: AxiosRequestConfig) { + public rejectOAuth2ConsentRequest(requestParameters: OAuth2ApiRejectOAuth2ConsentRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).rejectOAuth2ConsentRequest(requestParameters.consentChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(this.axios, this.basePath)); } @@ -5605,7 +5672,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: AxiosRequestConfig) { + public rejectOAuth2LoginRequest(requestParameters: OAuth2ApiRejectOAuth2LoginRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).rejectOAuth2LoginRequest(requestParameters.loginChallenge, requestParameters.rejectOAuth2Request, options).then((request) => request(this.axios, this.basePath)); } @@ -5617,7 +5684,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: AxiosRequestConfig) { + public rejectOAuth2LogoutRequest(requestParameters: OAuth2ApiRejectOAuth2LogoutRequestRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).rejectOAuth2LogoutRequest(requestParameters.logoutChallenge, options).then((request) => request(this.axios, this.basePath)); } @@ -5629,19 +5696,19 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: AxiosRequestConfig) { + public revokeOAuth2ConsentSessions(requestParameters: OAuth2ApiRevokeOAuth2ConsentSessionsRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).revokeOAuth2ConsentSessions(requestParameters.subject, requestParameters.client, requestParameters.all, options).then((request) => request(this.axios, this.basePath)); } /** - * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpennID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. + * This endpoint invalidates authentication sessions. After revoking the authentication session(s), the subject has to re-authenticate at the Ory OAuth2 Provider. This endpoint does not invalidate any tokens. If you send the subject in a query param, all authentication sessions that belong to that subject are revoked. No OpenID Connect Front- or Back-channel logout is performed in this case. Alternatively, you can send a SessionID via `sid` query param, in which case, only the session that is connected to that SessionID is revoked. OpenID Connect Back-channel logout is performed in this case. * @summary Revokes OAuth 2.0 Login Sessions by either a Subject or a SessionID * @param {OAuth2ApiRevokeOAuth2LoginSessionsRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof OAuth2Api */ - public revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: AxiosRequestConfig) { + public revokeOAuth2LoginSessions(requestParameters: OAuth2ApiRevokeOAuth2LoginSessionsRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).revokeOAuth2LoginSessions(requestParameters.subject, requestParameters.sid, options).then((request) => request(this.axios, this.basePath)); } @@ -5653,7 +5720,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: AxiosRequestConfig) { + public revokeOAuth2Token(requestParameters: OAuth2ApiRevokeOAuth2TokenRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).revokeOAuth2Token(requestParameters.token, requestParameters.clientId, requestParameters.clientSecret, options).then((request) => request(this.axios, this.basePath)); } @@ -5665,7 +5732,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: AxiosRequestConfig) { + public setOAuth2Client(requestParameters: OAuth2ApiSetOAuth2ClientRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).setOAuth2Client(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } @@ -5677,7 +5744,7 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: AxiosRequestConfig) { + public setOAuth2ClientLifespans(requestParameters: OAuth2ApiSetOAuth2ClientLifespansRequest, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).setOAuth2ClientLifespans(requestParameters.id, requestParameters.oAuth2ClientTokenLifespans, options).then((request) => request(this.axios, this.basePath)); } @@ -5689,12 +5756,13 @@ export class OAuth2Api extends BaseAPI { * @throws {RequiredError} * @memberof OAuth2Api */ - public trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: AxiosRequestConfig) { + public trustOAuth2JwtGrantIssuer(requestParameters: OAuth2ApiTrustOAuth2JwtGrantIssuerRequest = {}, options?: RawAxiosRequestConfig) { return OAuth2ApiFp(this.configuration).trustOAuth2JwtGrantIssuer(requestParameters.trustOAuth2JwtGrantIssuer, options).then((request) => request(this.axios, this.basePath)); } } + /** * OidcApi - axios parameter creator * @export @@ -5708,7 +5776,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOidcDynamicClient: async (oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + createOidcDynamicClient: async (oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'oAuth2Client' is not null or undefined assertParamExists('createOidcDynamicClient', 'oAuth2Client', oAuth2Client) const localVarPath = `/oauth2/register`; @@ -5744,7 +5812,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createVerifiableCredential: async (createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options: AxiosRequestConfig = {}): Promise => { + createVerifiableCredential: async (createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/credentials`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5778,7 +5846,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOidcDynamicClient: async (id: string, options: AxiosRequestConfig = {}): Promise => { + deleteOidcDynamicClient: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('deleteOidcDynamicClient', 'id', id) const localVarPath = `/oauth2/register/{id}` @@ -5815,7 +5883,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverOidcConfiguration: async (options: AxiosRequestConfig = {}): Promise => { + discoverOidcConfiguration: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/.well-known/openid-configuration`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5846,7 +5914,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcDynamicClient: async (id: string, options: AxiosRequestConfig = {}): Promise => { + getOidcDynamicClient: async (id: string, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('getOidcDynamicClient', 'id', id) const localVarPath = `/oauth2/register/{id}` @@ -5883,7 +5951,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcUserInfo: async (options: AxiosRequestConfig = {}): Promise => { + getOidcUserInfo: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/userinfo`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5917,7 +5985,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOidcSession: async (options: AxiosRequestConfig = {}): Promise => { + revokeOidcSession: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/oauth2/sessions/logout`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -5949,7 +6017,7 @@ export const OidcApiAxiosParamCreator = function (configuration?: Configuration) * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOidcDynamicClient: async (id: string, oAuth2Client: OAuth2Client, options: AxiosRequestConfig = {}): Promise => { + setOidcDynamicClient: async (id: string, oAuth2Client: OAuth2Client, options: RawAxiosRequestConfig = {}): Promise => { // verify required parameter 'id' is not null or undefined assertParamExists('setOidcDynamicClient', 'id', id) // verify required parameter 'oAuth2Client' is not null or undefined @@ -6002,9 +6070,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createOidcDynamicClient(oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createOidcDynamicClient(oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createOidcDynamicClient(oAuth2Client, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.createOidcDynamicClient']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint creates a verifiable credential that attests that the user authenticated with the provided access token owns a certain public/private key pair. More information can be found at https://openid.net/specs/openid-connect-userinfo-vc-1_0.html. @@ -6013,9 +6083,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async createVerifiableCredential(createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async createVerifiableCredential(createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.createVerifiableCredential(createVerifiableCredentialRequestBody, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.createVerifiableCredential']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint behaves like the administrative counterpart (`deleteOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. To use this endpoint, you will need to present the client\'s authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. @@ -6024,9 +6096,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async deleteOidcDynamicClient(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async deleteOidcDynamicClient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOidcDynamicClient(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.deleteOidcDynamicClient']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * A mechanism for an OpenID Connect Relying Party to discover the End-User\'s OpenID Provider and obtain information needed to interact with it, including its OAuth 2.0 endpoint locations. Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang), and others. For a full list of clients go here: https://openid.net/developers/certified/ @@ -6034,9 +6108,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async discoverOidcConfiguration(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async discoverOidcConfiguration(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.discoverOidcConfiguration(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.discoverOidcConfiguration']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint behaves like the administrative counterpart (`getOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. To use this endpoint, you will need to present the client\'s authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. @@ -6045,9 +6121,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOidcDynamicClient(id: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOidcDynamicClient(id: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOidcDynamicClient(id, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.getOidcDynamicClient']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint returns the payload of the ID Token, including `session.id_token` values, of the provided OAuth 2.0 Access Token\'s consent request. In the case of authentication error, a WWW-Authenticate header might be set in the response with more information about the error. See [the spec](https://datatracker.ietf.org/doc/html/rfc6750#section-3) for more details about header format. @@ -6055,9 +6133,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async getOidcUserInfo(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async getOidcUserInfo(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.getOidcUserInfo(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.getOidcUserInfo']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint initiates and completes user logout at the Ory OAuth2 & OpenID provider and initiates OpenID Connect Front- / Back-channel logout: https://openid.net/specs/openid-connect-frontchannel-1_0.html https://openid.net/specs/openid-connect-backchannel-1_0.html Back-channel logout is performed asynchronously and does not affect logout flow. @@ -6065,9 +6145,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async revokeOidcSession(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async revokeOidcSession(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.revokeOidcSession(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.revokeOidcSession']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, /** * This endpoint behaves like the administrative counterpart (`setOAuth2Client`) but is capable of facing the public internet directly to be used by third parties. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature is disabled per default. It can be enabled by a system administrator. If you pass `client_secret` the secret is used, otherwise the existing secret is used. If set, the secret is echoed in the response. It is not possible to retrieve it later on. To use this endpoint, you will need to present the client\'s authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. @@ -6077,9 +6159,11 @@ export const OidcApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async setOidcDynamicClient(id: string, oAuth2Client: OAuth2Client, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async setOidcDynamicClient(id: string, oAuth2Client: OAuth2Client, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.setOidcDynamicClient(id, oAuth2Client, options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['OidcApi.setOidcDynamicClient']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; @@ -6094,32 +6178,32 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? /** * This endpoint behaves like the administrative counterpart (`createOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. Please note that using this endpoint you are not able to choose the `client_secret` nor the `client_id` as those values will be server generated when specifying `token_endpoint_auth_method` as `client_secret_basic` or `client_secret_post`. The `client_secret` will be returned in the response and you will not be able to retrieve it later on. Write the secret down and keep it somewhere safe. * @summary Register OAuth2 Client using OpenID Dynamic Client Registration - * @param {OAuth2Client} oAuth2Client Dynamic Client Registration Request Body + * @param {OidcApiCreateOidcDynamicClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createOidcDynamicClient(oAuth2Client: OAuth2Client, options?: any): AxiosPromise { - return localVarFp.createOidcDynamicClient(oAuth2Client, options).then((request) => request(axios, basePath)); + createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createOidcDynamicClient(requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, /** * This endpoint creates a verifiable credential that attests that the user authenticated with the provided access token owns a certain public/private key pair. More information can be found at https://openid.net/specs/openid-connect-userinfo-vc-1_0.html. * @summary Issues a Verifiable Credential - * @param {CreateVerifiableCredentialRequestBody} [createVerifiableCredentialRequestBody] + * @param {OidcApiCreateVerifiableCredentialRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - createVerifiableCredential(createVerifiableCredentialRequestBody?: CreateVerifiableCredentialRequestBody, options?: any): AxiosPromise { - return localVarFp.createVerifiableCredential(createVerifiableCredentialRequestBody, options).then((request) => request(axios, basePath)); + createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.createVerifiableCredential(requestParameters.createVerifiableCredentialRequestBody, options).then((request) => request(axios, basePath)); }, /** * This endpoint behaves like the administrative counterpart (`deleteOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature needs to be enabled in the configuration. This endpoint is disabled by default. It can be enabled by an administrator. To use this endpoint, you will need to present the client\'s authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @summary Delete OAuth 2.0 Client using the OpenID Dynamic Client Registration Management Protocol - * @param {string} id The id of the OAuth 2.0 Client. + * @param {OidcApiDeleteOidcDynamicClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - deleteOidcDynamicClient(id: string, options?: any): AxiosPromise { - return localVarFp.deleteOidcDynamicClient(id, options).then((request) => request(axios, basePath)); + deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.deleteOidcDynamicClient(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * A mechanism for an OpenID Connect Relying Party to discover the End-User\'s OpenID Provider and obtain information needed to interact with it, including its OAuth 2.0 endpoint locations. Popular libraries for OpenID Connect clients include oidc-client-js (JavaScript), go-oidc (Golang), and others. For a full list of clients go here: https://openid.net/developers/certified/ @@ -6127,18 +6211,18 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverOidcConfiguration(options?: any): AxiosPromise { + discoverOidcConfiguration(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.discoverOidcConfiguration(options).then((request) => request(axios, basePath)); }, /** * This endpoint behaves like the administrative counterpart (`getOAuth2Client`) but is capable of facing the public internet directly and can be used in self-service. It implements the OpenID Connect Dynamic Client Registration Protocol. To use this endpoint, you will need to present the client\'s authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. * @summary Get OAuth2 Client using OpenID Dynamic Client Registration - * @param {string} id The id of the OAuth 2.0 Client. + * @param {OidcApiGetOidcDynamicClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcDynamicClient(id: string, options?: any): AxiosPromise { - return localVarFp.getOidcDynamicClient(id, options).then((request) => request(axios, basePath)); + getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.getOidcDynamicClient(requestParameters.id, options).then((request) => request(axios, basePath)); }, /** * This endpoint returns the payload of the ID Token, including `session.id_token` values, of the provided OAuth 2.0 Access Token\'s consent request. In the case of authentication error, a WWW-Authenticate header might be set in the response with more information about the error. See [the spec](https://datatracker.ietf.org/doc/html/rfc6750#section-3) for more details about header format. @@ -6146,7 +6230,7 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - getOidcUserInfo(options?: any): AxiosPromise { + getOidcUserInfo(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.getOidcUserInfo(options).then((request) => request(axios, basePath)); }, /** @@ -6155,19 +6239,18 @@ export const OidcApiFactory = function (configuration?: Configuration, basePath? * @param {*} [options] Override http request option. * @throws {RequiredError} */ - revokeOidcSession(options?: any): AxiosPromise { + revokeOidcSession(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.revokeOidcSession(options).then((request) => request(axios, basePath)); }, /** * This endpoint behaves like the administrative counterpart (`setOAuth2Client`) but is capable of facing the public internet directly to be used by third parties. It implements the OpenID Connect Dynamic Client Registration Protocol. This feature is disabled per default. It can be enabled by a system administrator. If you pass `client_secret` the secret is used, otherwise the existing secret is used. If set, the secret is echoed in the response. It is not possible to retrieve it later on. To use this endpoint, you will need to present the client\'s authentication credentials. If the OAuth2 Client uses the Token Endpoint Authentication Method `client_secret_post`, you need to present the client secret in the URL query. If it uses `client_secret_basic`, present the Client ID and the Client Secret in the Authorization header. OAuth 2.0 clients are used to perform OAuth 2.0 and OpenID Connect flows. Usually, OAuth 2.0 clients are generated for applications which want to consume your OAuth 2.0 or OpenID Connect capabilities. * @summary Set OAuth2 Client using OpenID Dynamic Client Registration - * @param {string} id OAuth 2.0 Client ID - * @param {OAuth2Client} oAuth2Client OAuth 2.0 Client Request Body + * @param {OidcApiSetOidcDynamicClientRequest} requestParameters Request parameters. * @param {*} [options] Override http request option. * @throws {RequiredError} */ - setOidcDynamicClient(id: string, oAuth2Client: OAuth2Client, options?: any): AxiosPromise { - return localVarFp.setOidcDynamicClient(id, oAuth2Client, options).then((request) => request(axios, basePath)); + setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.setOidcDynamicClient(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(axios, basePath)); }, }; }; @@ -6264,7 +6347,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public createOidcDynamicClient(requestParameters: OidcApiCreateOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).createOidcDynamicClient(requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } @@ -6276,7 +6359,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: AxiosRequestConfig) { + public createVerifiableCredential(requestParameters: OidcApiCreateVerifiableCredentialRequest = {}, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).createVerifiableCredential(requestParameters.createVerifiableCredentialRequestBody, options).then((request) => request(this.axios, this.basePath)); } @@ -6288,7 +6371,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public deleteOidcDynamicClient(requestParameters: OidcApiDeleteOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).deleteOidcDynamicClient(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -6299,7 +6382,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public discoverOidcConfiguration(options?: AxiosRequestConfig) { + public discoverOidcConfiguration(options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).discoverOidcConfiguration(options).then((request) => request(this.axios, this.basePath)); } @@ -6311,7 +6394,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public getOidcDynamicClient(requestParameters: OidcApiGetOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).getOidcDynamicClient(requestParameters.id, options).then((request) => request(this.axios, this.basePath)); } @@ -6322,7 +6405,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public getOidcUserInfo(options?: AxiosRequestConfig) { + public getOidcUserInfo(options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).getOidcUserInfo(options).then((request) => request(this.axios, this.basePath)); } @@ -6333,7 +6416,7 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public revokeOidcSession(options?: AxiosRequestConfig) { + public revokeOidcSession(options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).revokeOidcSession(options).then((request) => request(this.axios, this.basePath)); } @@ -6345,12 +6428,13 @@ export class OidcApi extends BaseAPI { * @throws {RequiredError} * @memberof OidcApi */ - public setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: AxiosRequestConfig) { + public setOidcDynamicClient(requestParameters: OidcApiSetOidcDynamicClientRequest, options?: RawAxiosRequestConfig) { return OidcApiFp(this.configuration).setOidcDynamicClient(requestParameters.id, requestParameters.oAuth2Client, options).then((request) => request(this.axios, this.basePath)); } } + /** * WellknownApi - axios parameter creator * @export @@ -6363,7 +6447,7 @@ export const WellknownApiAxiosParamCreator = function (configuration?: Configura * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverJsonWebKeys: async (options: AxiosRequestConfig = {}): Promise => { + discoverJsonWebKeys: async (options: RawAxiosRequestConfig = {}): Promise => { const localVarPath = `/.well-known/jwks.json`; // use dummy base URL string because the URL constructor only accepts absolute URLs. const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); @@ -6403,9 +6487,11 @@ export const WellknownApiFp = function(configuration?: Configuration) { * @param {*} [options] Override http request option. * @throws {RequiredError} */ - async discoverJsonWebKeys(options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + async discoverJsonWebKeys(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { const localVarAxiosArgs = await localVarAxiosParamCreator.discoverJsonWebKeys(options); - return createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration); + const index = configuration?.serverIndex ?? 0; + const operationBasePath = operationServerMap['WellknownApi.discoverJsonWebKeys']?.[index]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath); }, } }; @@ -6423,7 +6509,7 @@ export const WellknownApiFactory = function (configuration?: Configuration, base * @param {*} [options] Override http request option. * @throws {RequiredError} */ - discoverJsonWebKeys(options?: any): AxiosPromise { + discoverJsonWebKeys(options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.discoverJsonWebKeys(options).then((request) => request(axios, basePath)); }, }; @@ -6443,9 +6529,10 @@ export class WellknownApi extends BaseAPI { * @throws {RequiredError} * @memberof WellknownApi */ - public discoverJsonWebKeys(options?: AxiosRequestConfig) { + public discoverJsonWebKeys(options?: RawAxiosRequestConfig) { return WellknownApiFp(this.configuration).discoverJsonWebKeys(options).then((request) => request(this.axios, this.basePath)); } } + diff --git a/clients/hydra/typescript/base.ts b/clients/hydra/typescript/base.ts index c5f171f6783..a67260616b9 100644 --- a/clients/hydra/typescript/base.ts +++ b/clients/hydra/typescript/base.ts @@ -4,7 +4,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra\'s APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,10 +13,11 @@ */ -import { Configuration } from "./configuration"; +import type { Configuration } from './configuration'; // Some imports not used depending on template conditions // @ts-ignore -import globalAxios, { AxiosPromise, AxiosInstance, AxiosRequestConfig } from 'axios'; +import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; +import globalAxios from 'axios'; export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); @@ -38,7 +39,7 @@ export const COLLECTION_FORMATS = { */ export interface RequestArgs { url: string; - options: AxiosRequestConfig; + options: RawAxiosRequestConfig; } /** @@ -52,7 +53,7 @@ export class BaseAPI { constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) { if (configuration) { this.configuration = configuration; - this.basePath = configuration.basePath || this.basePath; + this.basePath = configuration.basePath ?? basePath; } } }; @@ -64,8 +65,22 @@ export class BaseAPI { * @extends {Error} */ export class RequiredError extends Error { - name: "RequiredError" = "RequiredError"; constructor(public field: string, msg?: string) { super(msg); + this.name = "RequiredError" } } + +interface ServerMap { + [key: string]: { + url: string, + description: string, + }[]; +} + +/** + * + * @export + */ +export const operationServerMap: ServerMap = { +} diff --git a/clients/hydra/typescript/common.ts b/clients/hydra/typescript/common.ts index 0354fe1ea8e..80d63e4e59d 100644 --- a/clients/hydra/typescript/common.ts +++ b/clients/hydra/typescript/common.ts @@ -4,7 +4,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra\'s APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -13,9 +13,10 @@ */ -import { Configuration } from "./configuration"; -import { RequiredError, RequestArgs } from "./base"; -import { AxiosInstance, AxiosResponse } from 'axios'; +import type { Configuration } from "./configuration"; +import type { RequestArgs } from "./base"; +import type { AxiosInstance, AxiosResponse } from 'axios'; +import { RequiredError } from "./base"; /** * @@ -83,24 +84,35 @@ export const setOAuthToObject = async function (object: any, name: string, scope } } +function setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = ""): void { + if (parameter == null) return; + if (typeof parameter === "object") { + if (Array.isArray(parameter)) { + (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key)); + } + else { + Object.keys(parameter).forEach(currentKey => + setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`) + ); + } + } + else { + if (urlSearchParams.has(key)) { + urlSearchParams.append(key, parameter); + } + else { + urlSearchParams.set(key, parameter); + } + } +} + /** * * @export */ export const setSearchParams = function (url: URL, ...objects: any[]) { const searchParams = new URLSearchParams(url.search); - for (const object of objects) { - for (const key in object) { - if (Array.isArray(object[key])) { - searchParams.delete(key); - for (const item of object[key]) { - searchParams.append(key, item); - } - } else { - searchParams.set(key, object[key]); - } - } - } + setFlattenedQueryParams(searchParams, objects); url.search = searchParams.toString(); } @@ -132,7 +144,7 @@ export const toPathString = function (url: URL) { */ export const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) { return >(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => { - const axiosRequestArgs = {...axiosArgs.options, url: (configuration?.basePath || basePath) + axiosArgs.url}; + const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url}; return axios.request(axiosRequestArgs); }; } diff --git a/clients/hydra/typescript/configuration.ts b/clients/hydra/typescript/configuration.ts index 452a913dba2..939d51a9374 100644 --- a/clients/hydra/typescript/configuration.ts +++ b/clients/hydra/typescript/configuration.ts @@ -4,7 +4,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra\'s APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -19,6 +19,7 @@ export interface ConfigurationParameters { password?: string; accessToken?: string | Promise | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise); basePath?: string; + serverIndex?: number; baseOptions?: any; formDataCtor?: new () => any; } @@ -58,6 +59,13 @@ export class Configuration { * @memberof Configuration */ basePath?: string; + /** + * override server index + * + * @type {number} + * @memberof Configuration + */ + serverIndex?: number; /** * base options for axios calls * @@ -80,6 +88,7 @@ export class Configuration { this.password = param.password; this.accessToken = param.accessToken; this.basePath = param.basePath; + this.serverIndex = param.serverIndex; this.baseOptions = param.baseOptions; this.formDataCtor = param.formDataCtor; } diff --git a/clients/hydra/typescript/index.ts b/clients/hydra/typescript/index.ts index e103f3aa940..636e50747de 100644 --- a/clients/hydra/typescript/index.ts +++ b/clients/hydra/typescript/index.ts @@ -4,7 +4,7 @@ * Ory Hydra API * Documentation for all of Ory Hydra\'s APIs. * - * The version of the OpenAPI document: v2.2.0-rc.3 + * The version of the OpenAPI document: v2.2.0 * Contact: hi@ory.sh * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/clients/hydra/typescript/package-lock.json b/clients/hydra/typescript/package-lock.json index ebd9c01f601..cbe4ed185c2 100644 --- a/clients/hydra/typescript/package-lock.json +++ b/clients/hydra/typescript/package-lock.json @@ -1,19 +1,19 @@ { "name": "@ory/hydra-client", - "version": "v2.2.0-rc.3", + "version": "v2.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@ory/hydra-client", - "version": "v2.2.0-rc.3", + "version": "v2.2.0", "license": "Apache-2.0", "dependencies": { - "axios": "^0.21.4" + "axios": "^1.6.1" }, "devDependencies": { "@types/node": "^12.11.5", - "typescript": "^3.6.4" + "typescript": "^4.0" } }, "node_modules/@types/node": { @@ -22,18 +22,44 @@ "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", "dev": true }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, "node_modules/axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", "dependencies": { - "follow-redirects": "^1.14.0" + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" } }, "node_modules/follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==", + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==", "funding": [ { "type": "individual", @@ -49,10 +75,47 @@ } } }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, "node_modules/typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true, "bin": { "tsc": "bin/tsc", @@ -70,23 +133,71 @@ "integrity": "sha512-J8xLz7q2OFulZ2cyGTLE1TbbZcjpno7FaN6zdJNrgAdrJ+DZzh/uFR6YrTb4C+nXakvud8Q4+rbhoIWlYQbUFQ==", "dev": true }, + "asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, "axios": { - "version": "0.21.4", - "resolved": "https://registry.npmjs.org/axios/-/axios-0.21.4.tgz", - "integrity": "sha512-ut5vewkiu8jjGBdqpM44XxjuCjq9LAKeHVmoVfHVzy8eHgxxq8SbAVQNovDA8mVi05kP0Ea/n/UzcSHcTJQfNg==", + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.7.tgz", + "integrity": "sha512-/hDJGff6/c7u0hDkvkGxR/oy6CbCs8ziCsC7SqmhjfozqiJGc8Z11wrv9z9lYfY4K8l+H9TpjcMDX0xOZmx+RA==", + "requires": { + "follow-redirects": "^1.15.4", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", "requires": { - "follow-redirects": "^1.14.0" + "delayed-stream": "~1.0.0" } }, + "delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==" + }, "follow-redirects": { - "version": "1.15.2", - "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz", - "integrity": "sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==" + "version": "1.15.5", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.5.tgz", + "integrity": "sha512-vSFWUON1B+yAw1VN4xMfxgn5fTUiaOzAJCKBwIIgT/+7CuGy9+r+5gITvP62j3RmaD5Ph65UaERdOSRGUzZtgw==" + }, + "form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "requires": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + } + }, + "mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==" + }, + "mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "requires": { + "mime-db": "1.52.0" + } + }, + "proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" }, "typescript": { - "version": "3.9.10", - "resolved": "https://registry.npmjs.org/typescript/-/typescript-3.9.10.tgz", - "integrity": "sha512-w6fIxVE/H1PkLKcCPsFqKE7Kv7QUwhU8qQY2MueZXWx5cPZdwFupLgKK3vntcK98BtNHZtAF4LA/yl2a7k8R6Q==", + "version": "4.9.5", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-4.9.5.tgz", + "integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==", "dev": true } } diff --git a/clients/hydra/typescript/package.json b/clients/hydra/typescript/package.json index 9aecec81d79..829af4ba9ce 100644 --- a/clients/hydra/typescript/package.json +++ b/clients/hydra/typescript/package.json @@ -1,8 +1,12 @@ { "name": "@ory/hydra-client", - "version": "v2.2.0-rc.3", + "version": "v2.2.0", "description": "OpenAPI client for @ory/hydra-client", "author": "ORY GmbH", + "repository": { + "type": "git", + "url": "https://github.com/ory/sdk.git" + }, "keywords": [ "axios", "typescript", @@ -13,15 +17,17 @@ "license": "Apache-2.0", "main": "./dist/index.js", "typings": "./dist/index.d.ts", + "module": "./dist/esm/index.js", + "sideEffects": false, "scripts": { - "build": "tsc --outDir dist/", + "build": "tsc && tsc -p tsconfig.esm.json", "prepare": "npm run build" }, "dependencies": { - "axios": "^0.21.4" + "axios": "^1.6.1" }, "devDependencies": { "@types/node": "^12.11.5", - "typescript": "^3.6.4" + "typescript": "^4.0" } } diff --git a/clients/hydra/typescript/tsconfig.esm.json b/clients/hydra/typescript/tsconfig.esm.json new file mode 100644 index 00000000000..2c0331cce04 --- /dev/null +++ b/clients/hydra/typescript/tsconfig.esm.json @@ -0,0 +1,7 @@ +{ + "extends": "./tsconfig.json", + "compilerOptions": { + "module": "esnext", + "outDir": "dist/esm" + } +} diff --git a/clients/hydra/typescript/tsconfig.json b/clients/hydra/typescript/tsconfig.json index 2e9a191f8d3..30dc264ec73 100644 --- a/clients/hydra/typescript/tsconfig.json +++ b/clients/hydra/typescript/tsconfig.json @@ -1,11 +1,12 @@ { "compilerOptions": { "declaration": true, - "target": "es6", + "target": "ES6", "module": "commonjs", "noImplicitAny": true, "outDir": "dist", "rootDir": ".", + "moduleResolution": "node", "typeRoots": [ "node_modules/@types" ] diff --git a/clients/kratos/dart/.openapi-generator/FILES b/clients/kratos/dart/.openapi-generator/FILES index b820971ac05..2e52e855a46 100644 --- a/clients/kratos/dart/.openapi-generator/FILES +++ b/clients/kratos/dart/.openapi-generator/FILES @@ -4,8 +4,13 @@ README.md analysis_options.yaml doc/AuthenticatorAssuranceLevel.md doc/BatchPatchIdentitiesResponse.md +doc/ConsistencyRequestParameters.md doc/ContinueWith.md +doc/ContinueWithRecoveryUi.md +doc/ContinueWithRecoveryUiFlow.md doc/ContinueWithSetOrySessionToken.md +doc/ContinueWithSettingsUi.md +doc/ContinueWithSettingsUiFlow.md doc/ContinueWithVerificationUi.md doc/ContinueWithVerificationUiFlow.md doc/CourierApi.md @@ -28,14 +33,13 @@ doc/HealthStatus.md doc/Identity.md doc/IdentityApi.md doc/IdentityCredentials.md +doc/IdentityCredentialsCode.md doc/IdentityCredentialsOidc.md doc/IdentityCredentialsOidcProvider.md doc/IdentityCredentialsPassword.md -doc/IdentityCredentialsType.md doc/IdentityPatch.md doc/IdentityPatchResponse.md doc/IdentitySchemaContainer.md -doc/IdentityState.md doc/IdentityWithCredentials.md doc/IdentityWithCredentialsOidc.md doc/IdentityWithCredentialsOidcConfig.md @@ -46,6 +50,7 @@ doc/IsAlive200Response.md doc/IsReady503Response.md doc/JsonPatch.md doc/LoginFlow.md +doc/LoginFlowState.md doc/LogoutFlow.md doc/Message.md doc/MessageDispatch.md @@ -54,7 +59,6 @@ doc/NeedsPrivilegedSessionError.md doc/OAuth2Client.md doc/OAuth2ConsentRequestOpenIDConnectContext.md doc/OAuth2LoginRequest.md -doc/Pagination.md doc/PatchIdentitiesBody.md doc/PerformNativeLogoutBody.md doc/RecoveryCodeForIdentity.md @@ -63,6 +67,7 @@ doc/RecoveryFlowState.md doc/RecoveryIdentityAddress.md doc/RecoveryLinkForIdentity.md doc/RegistrationFlow.md +doc/RegistrationFlowState.md doc/SelfServiceFlowExpiredError.md doc/Session.md doc/SessionAuthenticationMethod.md @@ -86,6 +91,7 @@ doc/UiNodeTextAttributes.md doc/UiText.md doc/UpdateIdentityBody.md doc/UpdateLoginFlowBody.md +doc/UpdateLoginFlowWithCodeMethod.md doc/UpdateLoginFlowWithLookupSecretMethod.md doc/UpdateLoginFlowWithOidcMethod.md doc/UpdateLoginFlowWithPasswordMethod.md @@ -95,6 +101,7 @@ doc/UpdateRecoveryFlowBody.md doc/UpdateRecoveryFlowWithCodeMethod.md doc/UpdateRecoveryFlowWithLinkMethod.md doc/UpdateRegistrationFlowBody.md +doc/UpdateRegistrationFlowWithCodeMethod.md doc/UpdateRegistrationFlowWithOidcMethod.md doc/UpdateRegistrationFlowWithPasswordMethod.md doc/UpdateRegistrationFlowWithWebAuthnMethod.md @@ -127,8 +134,13 @@ lib/src/auth/oauth.dart lib/src/date_serializer.dart lib/src/model/authenticator_assurance_level.dart lib/src/model/batch_patch_identities_response.dart +lib/src/model/consistency_request_parameters.dart lib/src/model/continue_with.dart +lib/src/model/continue_with_recovery_ui.dart +lib/src/model/continue_with_recovery_ui_flow.dart lib/src/model/continue_with_set_ory_session_token.dart +lib/src/model/continue_with_settings_ui.dart +lib/src/model/continue_with_settings_ui_flow.dart lib/src/model/continue_with_verification_ui.dart lib/src/model/continue_with_verification_ui_flow.dart lib/src/model/courier_message_status.dart @@ -149,14 +161,13 @@ lib/src/model/health_not_ready_status.dart lib/src/model/health_status.dart lib/src/model/identity.dart lib/src/model/identity_credentials.dart +lib/src/model/identity_credentials_code.dart lib/src/model/identity_credentials_oidc.dart lib/src/model/identity_credentials_oidc_provider.dart lib/src/model/identity_credentials_password.dart -lib/src/model/identity_credentials_type.dart lib/src/model/identity_patch.dart lib/src/model/identity_patch_response.dart lib/src/model/identity_schema_container.dart -lib/src/model/identity_state.dart lib/src/model/identity_with_credentials.dart lib/src/model/identity_with_credentials_oidc.dart lib/src/model/identity_with_credentials_oidc_config.dart @@ -167,6 +178,7 @@ lib/src/model/is_alive200_response.dart lib/src/model/is_ready503_response.dart lib/src/model/json_patch.dart lib/src/model/login_flow.dart +lib/src/model/login_flow_state.dart lib/src/model/logout_flow.dart lib/src/model/message.dart lib/src/model/message_dispatch.dart @@ -174,7 +186,6 @@ lib/src/model/needs_privileged_session_error.dart lib/src/model/o_auth2_client.dart lib/src/model/o_auth2_consent_request_open_id_connect_context.dart lib/src/model/o_auth2_login_request.dart -lib/src/model/pagination.dart lib/src/model/patch_identities_body.dart lib/src/model/perform_native_logout_body.dart lib/src/model/recovery_code_for_identity.dart @@ -183,6 +194,7 @@ lib/src/model/recovery_flow_state.dart lib/src/model/recovery_identity_address.dart lib/src/model/recovery_link_for_identity.dart lib/src/model/registration_flow.dart +lib/src/model/registration_flow_state.dart lib/src/model/self_service_flow_expired_error.dart lib/src/model/session.dart lib/src/model/session_authentication_method.dart @@ -206,6 +218,7 @@ lib/src/model/ui_node_text_attributes.dart lib/src/model/ui_text.dart lib/src/model/update_identity_body.dart lib/src/model/update_login_flow_body.dart +lib/src/model/update_login_flow_with_code_method.dart lib/src/model/update_login_flow_with_lookup_secret_method.dart lib/src/model/update_login_flow_with_oidc_method.dart lib/src/model/update_login_flow_with_password_method.dart @@ -215,6 +228,7 @@ lib/src/model/update_recovery_flow_body.dart lib/src/model/update_recovery_flow_with_code_method.dart lib/src/model/update_recovery_flow_with_link_method.dart lib/src/model/update_registration_flow_body.dart +lib/src/model/update_registration_flow_with_code_method.dart lib/src/model/update_registration_flow_with_oidc_method.dart lib/src/model/update_registration_flow_with_password_method.dart lib/src/model/update_registration_flow_with_web_authn_method.dart @@ -236,7 +250,12 @@ lib/src/serializers.dart pubspec.yaml test/authenticator_assurance_level_test.dart test/batch_patch_identities_response_test.dart +test/consistency_request_parameters_test.dart +test/continue_with_recovery_ui_flow_test.dart +test/continue_with_recovery_ui_test.dart test/continue_with_set_ory_session_token_test.dart +test/continue_with_settings_ui_flow_test.dart +test/continue_with_settings_ui_test.dart test/continue_with_test.dart test/continue_with_verification_ui_flow_test.dart test/continue_with_verification_ui_test.dart @@ -258,15 +277,14 @@ test/get_version200_response_test.dart test/health_not_ready_status_test.dart test/health_status_test.dart test/identity_api_test.dart +test/identity_credentials_code_test.dart test/identity_credentials_oidc_provider_test.dart test/identity_credentials_oidc_test.dart test/identity_credentials_password_test.dart test/identity_credentials_test.dart -test/identity_credentials_type_test.dart test/identity_patch_response_test.dart test/identity_patch_test.dart test/identity_schema_container_test.dart -test/identity_state_test.dart test/identity_test.dart test/identity_with_credentials_oidc_config_provider_test.dart test/identity_with_credentials_oidc_config_test.dart @@ -277,6 +295,7 @@ test/identity_with_credentials_test.dart test/is_alive200_response_test.dart test/is_ready503_response_test.dart test/json_patch_test.dart +test/login_flow_state_test.dart test/login_flow_test.dart test/logout_flow_test.dart test/message_dispatch_test.dart @@ -286,7 +305,6 @@ test/needs_privileged_session_error_test.dart test/o_auth2_client_test.dart test/o_auth2_consent_request_open_id_connect_context_test.dart test/o_auth2_login_request_test.dart -test/pagination_test.dart test/patch_identities_body_test.dart test/perform_native_logout_body_test.dart test/recovery_code_for_identity_test.dart @@ -294,6 +312,7 @@ test/recovery_flow_state_test.dart test/recovery_flow_test.dart test/recovery_identity_address_test.dart test/recovery_link_for_identity_test.dart +test/registration_flow_state_test.dart test/registration_flow_test.dart test/self_service_flow_expired_error_test.dart test/session_authentication_method_test.dart @@ -318,6 +337,7 @@ test/ui_node_text_attributes_test.dart test/ui_text_test.dart test/update_identity_body_test.dart test/update_login_flow_body_test.dart +test/update_login_flow_with_code_method_test.dart test/update_login_flow_with_lookup_secret_method_test.dart test/update_login_flow_with_oidc_method_test.dart test/update_login_flow_with_password_method_test.dart @@ -327,6 +347,7 @@ test/update_recovery_flow_body_test.dart test/update_recovery_flow_with_code_method_test.dart test/update_recovery_flow_with_link_method_test.dart test/update_registration_flow_body_test.dart +test/update_registration_flow_with_code_method_test.dart test/update_registration_flow_with_oidc_method_test.dart test/update_registration_flow_with_password_method_test.dart test/update_registration_flow_with_web_authn_method_test.dart diff --git a/clients/kratos/dart/README.md b/clients/kratos/dart/README.md index 46c929c55b7..f2ffed3a42f 100644 --- a/clients/kratos/dart/README.md +++ b/clients/kratos/dart/README.md @@ -4,7 +4,7 @@ This is the API specification for Ory Identities with features such as registrat This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.0.0 +- API version: v1.1.0 - Build package: org.openapitools.codegen.languages.DartDioClientCodegen ## Requirements @@ -18,7 +18,7 @@ This Dart package is automatically generated by the [OpenAPI Generator](https:// To use the package from [pub.dev](https://pub.dev), please include the following in pubspec.yaml ```yaml dependencies: - ory_kratos_client: 1.0.0 + ory_kratos_client: 1.1.0 ``` ### Github @@ -93,7 +93,7 @@ Class | Method | HTTP request | Description [*FrontendApi*](doc/FrontendApi.md) | [**toSession**](doc/FrontendApi.md#tosession) | **GET** /sessions/whoami | Check Who the Current HTTP Session Belongs To [*FrontendApi*](doc/FrontendApi.md) | [**updateLoginFlow**](doc/FrontendApi.md#updateloginflow) | **POST** /self-service/login | Submit a Login Flow [*FrontendApi*](doc/FrontendApi.md) | [**updateLogoutFlow**](doc/FrontendApi.md#updatelogoutflow) | **GET** /self-service/logout | Update Logout Flow -[*FrontendApi*](doc/FrontendApi.md) | [**updateRecoveryFlow**](doc/FrontendApi.md#updaterecoveryflow) | **POST** /self-service/recovery | Complete Recovery Flow +[*FrontendApi*](doc/FrontendApi.md) | [**updateRecoveryFlow**](doc/FrontendApi.md#updaterecoveryflow) | **POST** /self-service/recovery | Update Recovery Flow [*FrontendApi*](doc/FrontendApi.md) | [**updateRegistrationFlow**](doc/FrontendApi.md#updateregistrationflow) | **POST** /self-service/registration | Update Registration Flow [*FrontendApi*](doc/FrontendApi.md) | [**updateSettingsFlow**](doc/FrontendApi.md#updatesettingsflow) | **POST** /self-service/settings | Complete Settings Flow [*FrontendApi*](doc/FrontendApi.md) | [**updateVerificationFlow**](doc/FrontendApi.md#updateverificationflow) | **POST** /self-service/verification | Complete Verification Flow @@ -124,8 +124,13 @@ Class | Method | HTTP request | Description - [AuthenticatorAssuranceLevel](doc/AuthenticatorAssuranceLevel.md) - [BatchPatchIdentitiesResponse](doc/BatchPatchIdentitiesResponse.md) + - [ConsistencyRequestParameters](doc/ConsistencyRequestParameters.md) - [ContinueWith](doc/ContinueWith.md) + - [ContinueWithRecoveryUi](doc/ContinueWithRecoveryUi.md) + - [ContinueWithRecoveryUiFlow](doc/ContinueWithRecoveryUiFlow.md) - [ContinueWithSetOrySessionToken](doc/ContinueWithSetOrySessionToken.md) + - [ContinueWithSettingsUi](doc/ContinueWithSettingsUi.md) + - [ContinueWithSettingsUiFlow](doc/ContinueWithSettingsUiFlow.md) - [ContinueWithVerificationUi](doc/ContinueWithVerificationUi.md) - [ContinueWithVerificationUiFlow](doc/ContinueWithVerificationUiFlow.md) - [CourierMessageStatus](doc/CourierMessageStatus.md) @@ -145,14 +150,13 @@ Class | Method | HTTP request | Description - [HealthStatus](doc/HealthStatus.md) - [Identity](doc/Identity.md) - [IdentityCredentials](doc/IdentityCredentials.md) + - [IdentityCredentialsCode](doc/IdentityCredentialsCode.md) - [IdentityCredentialsOidc](doc/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](doc/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](doc/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](doc/IdentityCredentialsType.md) - [IdentityPatch](doc/IdentityPatch.md) - [IdentityPatchResponse](doc/IdentityPatchResponse.md) - [IdentitySchemaContainer](doc/IdentitySchemaContainer.md) - - [IdentityState](doc/IdentityState.md) - [IdentityWithCredentials](doc/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](doc/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](doc/IdentityWithCredentialsOidcConfig.md) @@ -163,6 +167,7 @@ Class | Method | HTTP request | Description - [IsReady503Response](doc/IsReady503Response.md) - [JsonPatch](doc/JsonPatch.md) - [LoginFlow](doc/LoginFlow.md) + - [LoginFlowState](doc/LoginFlowState.md) - [LogoutFlow](doc/LogoutFlow.md) - [Message](doc/Message.md) - [MessageDispatch](doc/MessageDispatch.md) @@ -170,7 +175,6 @@ Class | Method | HTTP request | Description - [OAuth2Client](doc/OAuth2Client.md) - [OAuth2ConsentRequestOpenIDConnectContext](doc/OAuth2ConsentRequestOpenIDConnectContext.md) - [OAuth2LoginRequest](doc/OAuth2LoginRequest.md) - - [Pagination](doc/Pagination.md) - [PatchIdentitiesBody](doc/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](doc/PerformNativeLogoutBody.md) - [RecoveryCodeForIdentity](doc/RecoveryCodeForIdentity.md) @@ -179,6 +183,7 @@ Class | Method | HTTP request | Description - [RecoveryIdentityAddress](doc/RecoveryIdentityAddress.md) - [RecoveryLinkForIdentity](doc/RecoveryLinkForIdentity.md) - [RegistrationFlow](doc/RegistrationFlow.md) + - [RegistrationFlowState](doc/RegistrationFlowState.md) - [SelfServiceFlowExpiredError](doc/SelfServiceFlowExpiredError.md) - [Session](doc/Session.md) - [SessionAuthenticationMethod](doc/SessionAuthenticationMethod.md) @@ -202,6 +207,7 @@ Class | Method | HTTP request | Description - [UiText](doc/UiText.md) - [UpdateIdentityBody](doc/UpdateIdentityBody.md) - [UpdateLoginFlowBody](doc/UpdateLoginFlowBody.md) + - [UpdateLoginFlowWithCodeMethod](doc/UpdateLoginFlowWithCodeMethod.md) - [UpdateLoginFlowWithLookupSecretMethod](doc/UpdateLoginFlowWithLookupSecretMethod.md) - [UpdateLoginFlowWithOidcMethod](doc/UpdateLoginFlowWithOidcMethod.md) - [UpdateLoginFlowWithPasswordMethod](doc/UpdateLoginFlowWithPasswordMethod.md) @@ -211,6 +217,7 @@ Class | Method | HTTP request | Description - [UpdateRecoveryFlowWithCodeMethod](doc/UpdateRecoveryFlowWithCodeMethod.md) - [UpdateRecoveryFlowWithLinkMethod](doc/UpdateRecoveryFlowWithLinkMethod.md) - [UpdateRegistrationFlowBody](doc/UpdateRegistrationFlowBody.md) + - [UpdateRegistrationFlowWithCodeMethod](doc/UpdateRegistrationFlowWithCodeMethod.md) - [UpdateRegistrationFlowWithOidcMethod](doc/UpdateRegistrationFlowWithOidcMethod.md) - [UpdateRegistrationFlowWithPasswordMethod](doc/UpdateRegistrationFlowWithPasswordMethod.md) - [UpdateRegistrationFlowWithWebAuthnMethod](doc/UpdateRegistrationFlowWithWebAuthnMethod.md) diff --git a/clients/kratos/dart/doc/ConsistencyRequestParameters.md b/clients/kratos/dart/doc/ConsistencyRequestParameters.md new file mode 100644 index 00000000000..5b26afd22b0 --- /dev/null +++ b/clients/kratos/dart/doc/ConsistencyRequestParameters.md @@ -0,0 +1,15 @@ +# ory_kratos_client.model.ConsistencyRequestParameters + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**consistency** | **String** | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/ContinueWith.md b/clients/kratos/dart/doc/ContinueWith.md index cb134336762..586c28f75fa 100644 --- a/clients/kratos/dart/doc/ContinueWith.md +++ b/clients/kratos/dart/doc/ContinueWith.md @@ -8,8 +8,8 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | **String** | Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI | -**flow** | [**ContinueWithVerificationUiFlow**](ContinueWithVerificationUiFlow.md) | | +**action** | **String** | Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString | +**flow** | [**ContinueWithRecoveryUiFlow**](ContinueWithRecoveryUiFlow.md) | | **orySessionToken** | **String** | Token is the token of the session | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/ContinueWithRecoveryUi.md b/clients/kratos/dart/doc/ContinueWithRecoveryUi.md new file mode 100644 index 00000000000..4bdf1062c73 --- /dev/null +++ b/clients/kratos/dart/doc/ContinueWithRecoveryUi.md @@ -0,0 +1,16 @@ +# ory_kratos_client.model.ContinueWithRecoveryUi + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString | +**flow** | [**ContinueWithRecoveryUiFlow**](ContinueWithRecoveryUiFlow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/ContinueWithRecoveryUiFlow.md b/clients/kratos/dart/doc/ContinueWithRecoveryUiFlow.md new file mode 100644 index 00000000000..a8e0103b01f --- /dev/null +++ b/clients/kratos/dart/doc/ContinueWithRecoveryUiFlow.md @@ -0,0 +1,16 @@ +# ory_kratos_client.model.ContinueWithRecoveryUiFlow + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The ID of the recovery flow | +**url** | **String** | The URL of the recovery flow | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/ContinueWithSetOrySessionToken.md b/clients/kratos/dart/doc/ContinueWithSetOrySessionToken.md index e24a7a01c7e..d0f69f46713 100644 --- a/clients/kratos/dart/doc/ContinueWithSetOrySessionToken.md +++ b/clients/kratos/dart/doc/ContinueWithSetOrySessionToken.md @@ -8,7 +8,7 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | **String** | Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI | +**action** | **String** | Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString | **orySessionToken** | **String** | Token is the token of the session | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/ContinueWithSettingsUi.md b/clients/kratos/dart/doc/ContinueWithSettingsUi.md new file mode 100644 index 00000000000..b3f120efa55 --- /dev/null +++ b/clients/kratos/dart/doc/ContinueWithSettingsUi.md @@ -0,0 +1,16 @@ +# ory_kratos_client.model.ContinueWithSettingsUi + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**action** | **String** | Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString | +**flow** | [**ContinueWithSettingsUiFlow**](ContinueWithSettingsUiFlow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/ContinueWithSettingsUiFlow.md b/clients/kratos/dart/doc/ContinueWithSettingsUiFlow.md new file mode 100644 index 00000000000..1c6a0cbb0e7 --- /dev/null +++ b/clients/kratos/dart/doc/ContinueWithSettingsUiFlow.md @@ -0,0 +1,15 @@ +# ory_kratos_client.model.ContinueWithSettingsUiFlow + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**id** | **String** | The ID of the settings flow | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/ContinueWithVerificationUi.md b/clients/kratos/dart/doc/ContinueWithVerificationUi.md index c2a1aee6c9f..51c69d5f26c 100644 --- a/clients/kratos/dart/doc/ContinueWithVerificationUi.md +++ b/clients/kratos/dart/doc/ContinueWithVerificationUi.md @@ -8,7 +8,7 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**action** | **String** | Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI | +**action** | **String** | Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString | **flow** | [**ContinueWithVerificationUiFlow**](ContinueWithVerificationUiFlow.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/CreateIdentityBody.md b/clients/kratos/dart/doc/CreateIdentityBody.md index 579c31e896e..9386fbd138b 100644 --- a/clients/kratos/dart/doc/CreateIdentityBody.md +++ b/clients/kratos/dart/doc/CreateIdentityBody.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **metadataPublic** | [**JsonObject**](.md) | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **recoveryAddresses** | [**BuiltList<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**state** | [**IdentityState**](IdentityState.md) | | [optional] +**state** | **String** | State is the identity's state. active StateActive inactive StateInactive | [optional] **traits** | [**JsonObject**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **verifiableAddresses** | [**BuiltList<VerifiableIdentityAddress>**](VerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] diff --git a/clients/kratos/dart/doc/FrontendApi.md b/clients/kratos/dart/doc/FrontendApi.md index 1971313b270..abd6c4f9435 100644 --- a/clients/kratos/dart/doc/FrontendApi.md +++ b/clients/kratos/dart/doc/FrontendApi.md @@ -35,14 +35,14 @@ Method | HTTP request | Description [**toSession**](FrontendApi.md#tosession) | **GET** /sessions/whoami | Check Who the Current HTTP Session Belongs To [**updateLoginFlow**](FrontendApi.md#updateloginflow) | **POST** /self-service/login | Submit a Login Flow [**updateLogoutFlow**](FrontendApi.md#updatelogoutflow) | **GET** /self-service/logout | Update Logout Flow -[**updateRecoveryFlow**](FrontendApi.md#updaterecoveryflow) | **POST** /self-service/recovery | Complete Recovery Flow +[**updateRecoveryFlow**](FrontendApi.md#updaterecoveryflow) | **POST** /self-service/recovery | Update Recovery Flow [**updateRegistrationFlow**](FrontendApi.md#updateregistrationflow) | **POST** /self-service/registration | Update Registration Flow [**updateSettingsFlow**](FrontendApi.md#updatesettingsflow) | **POST** /self-service/settings | Complete Settings Flow [**updateVerificationFlow**](FrontendApi.md#updateverificationflow) | **POST** /self-service/verification | Complete Verification Flow # **createBrowserLoginFlow** -> LoginFlow createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge) +> LoginFlow createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization) Create Login Flow for Browsers @@ -58,9 +58,10 @@ final String aal = aal_example; // String | Request a Specific AuthenticationMet final String returnTo = returnTo_example; // String | The URL to return the browser to after the flow was completed. final String cookie = cookie_example; // String | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. final String loginChallenge = loginChallenge_example; // String | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). +final String organization = organization_example; // String | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. try { - final response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge); + final response = api.createBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->createBrowserLoginFlow: $e\n'); @@ -76,6 +77,7 @@ Name | Type | Description | Notes **returnTo** | **String**| The URL to return the browser to after the flow was completed. | [optional] **cookie** | **String**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] **loginChallenge** | **String**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] + **organization** | **String**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] ### Return type @@ -181,11 +183,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createBrowserRegistrationFlow** -> RegistrationFlow createBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo) +> RegistrationFlow createBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo, organization) Create Registration Flow for Browsers -This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). +This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). ### Example ```dart @@ -195,9 +197,10 @@ final api = OryKratosClient().getFrontendApi(); final String returnTo = returnTo_example; // String | The URL to return the browser to after the flow was completed. final String loginChallenge = loginChallenge_example; // String | Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. final String afterVerificationReturnTo = afterVerificationReturnTo_example; // String | The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. +final String organization = organization_example; // String | try { - final response = api.createBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo); + final response = api.createBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo, organization); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->createBrowserRegistrationFlow: $e\n'); @@ -211,6 +214,7 @@ Name | Type | Description | Notes **returnTo** | **String**| The URL to return the browser to after the flow was completed. | [optional] **loginChallenge** | **String**| Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. | [optional] **afterVerificationReturnTo** | **String**| The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. | [optional] + **organization** | **String**| | [optional] ### Return type @@ -316,7 +320,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createNativeLoginFlow** -> LoginFlow createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo) +> LoginFlow createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via) Create Login Flow for Native Apps @@ -332,9 +336,10 @@ final String aal = aal_example; // String | Request a Specific AuthenticationMet final String xSessionToken = xSessionToken_example; // String | The Session Token of the Identity performing the settings flow. final bool returnSessionTokenExchangeCode = true; // bool | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. final String returnTo = returnTo_example; // String | The URL to return the browser to after the flow was completed. +final String via = via_example; // String | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. try { - final response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + final response = api.createNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->createNativeLoginFlow: $e\n'); @@ -350,6 +355,7 @@ Name | Type | Description | Notes **xSessionToken** | **String**| The Session Token of the Identity performing the settings flow. | [optional] **returnSessionTokenExchangeCode** | **bool**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] **returnTo** | **String**| The URL to return the browser to after the flow was completed. | [optional] + **via** | **String**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type @@ -371,7 +377,7 @@ No authorization required Create Recovery Flow for Native Apps -This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). +This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). ### Example ```dart @@ -976,7 +982,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **listMySessions** -> BuiltList listMySessions(perPage, page, xSessionToken, cookie) +> BuiltList listMySessions(perPage, page, pageSize, pageToken, xSessionToken, cookie) Get My Active Sessions @@ -987,13 +993,15 @@ This endpoints returns all other active sessions that belong to the logged-in us import 'package:ory_kratos_client/api.dart'; final api = OryKratosClient().getFrontendApi(); -final int perPage = 789; // int | Items per Page This is the number of items per page. -final int page = 789; // int | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. +final int perPage = 789; // int | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. +final int page = 789; // int | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. +final int pageSize = 789; // int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). +final String pageToken = pageToken_example; // String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). final String xSessionToken = xSessionToken_example; // String | Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. final String cookie = cookie_example; // String | Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. try { - final response = api.listMySessions(perPage, page, xSessionToken, cookie); + final response = api.listMySessions(perPage, page, pageSize, pageToken, xSessionToken, cookie); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->listMySessions: $e\n'); @@ -1004,8 +1012,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **perPage** | **int**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **int**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] + **perPage** | **int**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **int**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **String**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to '1'] **xSessionToken** | **String**| Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. | [optional] **cookie** | **String**| Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. | [optional] @@ -1067,11 +1077,11 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **toSession** -> Session toSession(xSessionToken, cookie) +> Session toSession(xSessionToken, cookie, tokenizeAs) Check Who the Current HTTP Session Belongs To -Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. +Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. ### Example ```dart @@ -1080,9 +1090,10 @@ import 'package:ory_kratos_client/api.dart'; final api = OryKratosClient().getFrontendApi(); final String xSessionToken = MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj; // String | Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. final String cookie = ory_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==; // String | Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. +final String tokenizeAs = tokenizeAs_example; // String | Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). try { - final response = api.toSession(xSessionToken, cookie); + final response = api.toSession(xSessionToken, cookie, tokenizeAs); print(response); } catch on DioError (e) { print('Exception when calling FrontendApi->toSession: $e\n'); @@ -1095,6 +1106,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xSessionToken** | **String**| Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. | [optional] **cookie** | **String**| Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. | [optional] + **tokenizeAs** | **String**| Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). | [optional] ### Return type @@ -1116,7 +1128,7 @@ No authorization required Submit a Login Flow -:::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). +Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). ### Example ```dart @@ -1209,9 +1221,9 @@ No authorization required # **updateRecoveryFlow** > RecoveryFlow updateRecoveryFlow(flow, updateRecoveryFlowBody, token, cookie) -Complete Recovery Flow +Update Recovery Flow -Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). +Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). ### Example ```dart diff --git a/clients/kratos/dart/doc/Identity.md b/clients/kratos/dart/doc/Identity.md index bb5bf2e27db..6a4d50c64ed 100644 --- a/clients/kratos/dart/doc/Identity.md +++ b/clients/kratos/dart/doc/Identity.md @@ -13,10 +13,11 @@ Name | Type | Description | Notes **id** | **String** | ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB. | **metadataAdmin** | [**JsonObject**](.md) | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] **metadataPublic** | [**JsonObject**](.md) | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] +**organizationId** | **String** | | [optional] **recoveryAddresses** | [**BuiltList<RecoveryIdentityAddress>**](RecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **schemaUrl** | **String** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**state** | [**IdentityState**](IdentityState.md) | | [optional] +**state** | **String** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **stateChangedAt** | [**DateTime**](DateTime.md) | | [optional] **traits** | [**JsonObject**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/kratos/dart/doc/IdentityApi.md b/clients/kratos/dart/doc/IdentityApi.md index 337567d5738..11bfaa3a4cf 100644 --- a/clients/kratos/dart/doc/IdentityApi.md +++ b/clients/kratos/dart/doc/IdentityApi.md @@ -171,7 +171,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **createRecoveryLinkForIdentity** -> RecoveryLinkForIdentity createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody) +> RecoveryLinkForIdentity createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody) Create a Recovery Link @@ -186,10 +186,11 @@ import 'package:ory_kratos_client/api.dart'; //defaultApiClient.getAuthentication('oryAccessToken').apiKeyPrefix = 'Bearer'; final api = OryKratosClient().getIdentityApi(); +final String returnTo = returnTo_example; // String | final CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody = ; // CreateRecoveryLinkForIdentityBody | try { - final response = api.createRecoveryLinkForIdentity(createRecoveryLinkForIdentityBody); + final response = api.createRecoveryLinkForIdentity(returnTo, createRecoveryLinkForIdentityBody); print(response); } catch on DioError (e) { print('Exception when calling IdentityApi->createRecoveryLinkForIdentity: $e\n'); @@ -200,6 +201,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **returnTo** | **String**| | [optional] **createRecoveryLinkForIdentityBody** | [**CreateRecoveryLinkForIdentityBody**](CreateRecoveryLinkForIdentityBody.md)| | [optional] ### Return type @@ -280,7 +282,7 @@ import 'package:ory_kratos_client/api.dart'; final api = OryKratosClient().getIdentityApi(); final String id = id_example; // String | ID is the identity's ID. -final String type = type_example; // String | Type is the credential's Type. One of totp, webauthn, lookup +final String type = type_example; // String | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 try { api.deleteIdentityCredentials(id, type); @@ -294,7 +296,7 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| ID is the identity's ID. | - **type** | **String**| Type is the credential's Type. One of totp, webauthn, lookup | + **type** | **String**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -592,7 +594,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **listIdentities** -> BuiltList listIdentities(perPage, page, credentialsIdentifier) +> BuiltList listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar) List Identities @@ -607,12 +609,17 @@ import 'package:ory_kratos_client/api.dart'; //defaultApiClient.getAuthentication('oryAccessToken').apiKeyPrefix = 'Bearer'; final api = OryKratosClient().getIdentityApi(); -final int perPage = 789; // int | Items per Page This is the number of items per page. -final int page = 789; // int | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. -final String credentialsIdentifier = credentialsIdentifier_example; // String | CredentialsIdentifier is the identifier (username, email) of the credentials to look up. +final int perPage = 789; // int | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. +final int page = 789; // int | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. +final int pageSize = 789; // int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). +final String pageToken = pageToken_example; // String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). +final String consistency = consistency_example; // String | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. +final BuiltList ids = ; // BuiltList | List of ids used to filter identities. If this list is empty, then no filter will be applied. +final String credentialsIdentifier = credentialsIdentifier_example; // String | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. +final String previewCredentialsIdentifierSimilar = previewCredentialsIdentifierSimilar_example; // String | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. try { - final response = api.listIdentities(perPage, page, credentialsIdentifier); + final response = api.listIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar); print(response); } catch on DioError (e) { print('Exception when calling IdentityApi->listIdentities: $e\n'); @@ -623,9 +630,14 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **perPage** | **int**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **int**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] - **credentialsIdentifier** | **String**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up. | [optional] + **perPage** | **int**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **int**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **String**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to '1'] + **consistency** | **String**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] + **ids** | [**BuiltList<String>**](String.md)| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] + **credentialsIdentifier** | **String**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] + **previewCredentialsIdentifierSimilar** | **String**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] ### Return type @@ -643,7 +655,7 @@ Name | Type | Description | Notes [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **listIdentitySchemas** -> BuiltList listIdentitySchemas(perPage, page) +> BuiltList listIdentitySchemas(perPage, page, pageSize, pageToken) Get all Identity Schemas @@ -654,11 +666,13 @@ Returns a list of all identity schemas currently in use. import 'package:ory_kratos_client/api.dart'; final api = OryKratosClient().getIdentityApi(); -final int perPage = 789; // int | Items per Page This is the number of items per page. -final int page = 789; // int | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. +final int perPage = 789; // int | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. +final int page = 789; // int | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. +final int pageSize = 789; // int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). +final String pageToken = pageToken_example; // String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). try { - final response = api.listIdentitySchemas(perPage, page); + final response = api.listIdentitySchemas(perPage, page, pageSize, pageToken); print(response); } catch on DioError (e) { print('Exception when calling IdentityApi->listIdentitySchemas: $e\n'); @@ -669,8 +683,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **perPage** | **int**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **int**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] + **perPage** | **int**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **int**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **String**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to '1'] ### Return type @@ -688,7 +704,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **listIdentitySessions** -> BuiltList listIdentitySessions(id, perPage, page, active) +> BuiltList listIdentitySessions(id, perPage, page, pageSize, pageToken, active) List an Identity's Sessions @@ -704,12 +720,14 @@ import 'package:ory_kratos_client/api.dart'; final api = OryKratosClient().getIdentityApi(); final String id = id_example; // String | ID is the identity's ID. -final int perPage = 789; // int | Items per Page This is the number of items per page. -final int page = 789; // int | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. +final int perPage = 789; // int | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. +final int page = 789; // int | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. +final int pageSize = 789; // int | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). +final String pageToken = pageToken_example; // String | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). final bool active = true; // bool | Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. try { - final response = api.listIdentitySessions(id, perPage, page, active); + final response = api.listIdentitySessions(id, perPage, page, pageSize, pageToken, active); print(response); } catch on DioError (e) { print('Exception when calling IdentityApi->listIdentitySessions: $e\n'); @@ -721,8 +739,10 @@ try { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **String**| ID is the identity's ID. | - **perPage** | **int**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **int**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] + **perPage** | **int**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **int**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **int**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **String**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to '1'] **active** | **bool**| Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. | [optional] ### Return type diff --git a/clients/kratos/dart/doc/IdentityCredentials.md b/clients/kratos/dart/doc/IdentityCredentials.md index 7899dcb2386..b559835984d 100644 --- a/clients/kratos/dart/doc/IdentityCredentials.md +++ b/clients/kratos/dart/doc/IdentityCredentials.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **config** | [**JsonObject**](.md) | | [optional] **createdAt** | [**DateTime**](DateTime.md) | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **identifiers** | **BuiltList<String>** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**type** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**type** | **String** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **version** | **int** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] diff --git a/clients/kratos/dart/doc/IdentityCredentialsCode.md b/clients/kratos/dart/doc/IdentityCredentialsCode.md new file mode 100644 index 00000000000..ea13513d1d1 --- /dev/null +++ b/clients/kratos/dart/doc/IdentityCredentialsCode.md @@ -0,0 +1,16 @@ +# ory_kratos_client.model.IdentityCredentialsCode + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**addressType** | **String** | The type of the address for this code | [optional] +**usedAt** | [**DateTime**](DateTime.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/IdentityCredentialsOidcProvider.md b/clients/kratos/dart/doc/IdentityCredentialsOidcProvider.md index ae45154b0f8..d84034d079d 100644 --- a/clients/kratos/dart/doc/IdentityCredentialsOidcProvider.md +++ b/clients/kratos/dart/doc/IdentityCredentialsOidcProvider.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **initialAccessToken** | **String** | | [optional] **initialIdToken** | **String** | | [optional] **initialRefreshToken** | **String** | | [optional] +**organization** | **String** | | [optional] **provider** | **String** | | [optional] **subject** | **String** | | [optional] diff --git a/clients/kratos/dart/doc/IdentityWithCredentialsPasswordConfig.md b/clients/kratos/dart/doc/IdentityWithCredentialsPasswordConfig.md index a680834d8d7..fcd61382b7d 100644 --- a/clients/kratos/dart/doc/IdentityWithCredentialsPasswordConfig.md +++ b/clients/kratos/dart/doc/IdentityWithCredentialsPasswordConfig.md @@ -8,7 +8,7 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hashedPassword** | **String** | The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) | [optional] +**hashedPassword** | **String** | The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) | [optional] **password** | **String** | The password in plain text if no hash is available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/LoginFlow.md b/clients/kratos/dart/doc/LoginFlow.md index c68aca73fbc..520f0c60944 100644 --- a/clients/kratos/dart/doc/LoginFlow.md +++ b/clients/kratos/dart/doc/LoginFlow.md @@ -8,18 +8,20 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **String** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **createdAt** | [**DateTime**](DateTime.md) | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **String** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http:///?flow= | **issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the flow started. | **oauth2LoginChallenge** | **String** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional] **oauth2LoginRequest** | [**OAuth2LoginRequest**](OAuth2LoginRequest.md) | | [optional] +**organizationId** | **String** | | [optional] **refresh** | **bool** | Refresh stores whether this login flow should enforce re-authentication. | [optional] **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **requestedAal** | [**AuthenticatorAssuranceLevel**](AuthenticatorAssuranceLevel.md) | | [optional] **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] **sessionTokenExchangeCode** | **String** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] +**state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/kratos/dart/doc/IdentityState.md b/clients/kratos/dart/doc/LoginFlowState.md similarity index 89% rename from clients/kratos/dart/doc/IdentityState.md rename to clients/kratos/dart/doc/LoginFlowState.md index 9a4fc98de86..69438e33899 100644 --- a/clients/kratos/dart/doc/IdentityState.md +++ b/clients/kratos/dart/doc/LoginFlowState.md @@ -1,4 +1,4 @@ -# ory_kratos_client.model.IdentityState +# ory_kratos_client.model.LoginFlowState ## Load the model package ```dart diff --git a/clients/kratos/dart/doc/Message.md b/clients/kratos/dart/doc/Message.md index e75e02e0934..897b3244376 100644 --- a/clients/kratos/dart/doc/Message.md +++ b/clients/kratos/dart/doc/Message.md @@ -9,6 +9,7 @@ import 'package:ory_kratos_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **body** | **String** | | +**channel** | **String** | | [optional] **createdAt** | [**DateTime**](DateTime.md) | CreatedAt is a helper struct field for gobuffalo.pop. | **dispatches** | [**BuiltList<MessageDispatch>**](MessageDispatch.md) | Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the `success` state. | [optional] **id** | **String** | | @@ -16,7 +17,7 @@ Name | Type | Description | Notes **sendCount** | **int** | | **status** | [**CourierMessageStatus**](CourierMessageStatus.md) | | **subject** | **String** | | -**templateType** | **String** | recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub | +**templateType** | **String** | recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid | **type** | [**CourierMessageType**](CourierMessageType.md) | | **updatedAt** | [**DateTime**](DateTime.md) | UpdatedAt is a helper struct field for gobuffalo.pop. | diff --git a/clients/kratos/dart/doc/OAuth2Client.md b/clients/kratos/dart/doc/OAuth2Client.md index 501d35cef1d..8c8b81bbe02 100644 --- a/clients/kratos/dart/doc/OAuth2Client.md +++ b/clients/kratos/dart/doc/OAuth2Client.md @@ -8,6 +8,7 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**accessTokenStrategy** | **String** | OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. | [optional] **allowedCorsOrigins** | **BuiltList<String>** | | [optional] **audience** | **BuiltList<String>** | | [optional] **authorizationCodeGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] @@ -16,7 +17,7 @@ Name | Type | Description | Notes **backchannelLogoutSessionRequired** | **bool** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **backchannelLogoutUri** | **String** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **clientCredentialsGrantAccessTokenLifespan** | **String** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] -**clientId** | **String** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**clientId** | **String** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **clientName** | **String** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **clientSecret** | **String** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **clientSecretExpiresAt** | **int** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -47,8 +48,10 @@ Name | Type | Description | Notes **responseTypes** | **BuiltList<String>** | | [optional] **scope** | **String** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **sectorIdentifierUri** | **String** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] +**skipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**skipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **subjectType** | **String** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] -**tokenEndpointAuthMethod** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] +**tokenEndpointAuthMethod** | **String** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] **tokenEndpointAuthSigningAlg** | **String** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] **tosUri** | **String** | OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. | [optional] **updatedAt** | [**DateTime**](DateTime.md) | OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update. | [optional] diff --git a/clients/kratos/dart/doc/Pagination.md b/clients/kratos/dart/doc/Pagination.md deleted file mode 100644 index 55e4e2e1c98..00000000000 --- a/clients/kratos/dart/doc/Pagination.md +++ /dev/null @@ -1,16 +0,0 @@ -# ory_kratos_client.model.Pagination - -## Load the model package -```dart -import 'package:ory_kratos_client/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**page** | **int** | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] -**perPage** | **int** | Items per Page This is the number of items per page. | [optional] [default to 250] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/clients/kratos/dart/doc/RecoveryCodeForIdentity.md b/clients/kratos/dart/doc/RecoveryCodeForIdentity.md index 249a19fdcf3..cf938f250a9 100644 --- a/clients/kratos/dart/doc/RecoveryCodeForIdentity.md +++ b/clients/kratos/dart/doc/RecoveryCodeForIdentity.md @@ -8,7 +8,7 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**expiresAt** | [**DateTime**](DateTime.md) | Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. | [optional] +**expiresAt** | [**DateTime**](DateTime.md) | Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. | [optional] **recoveryCode** | **String** | RecoveryCode is the code that can be used to recover the account | **recoveryLink** | **String** | RecoveryLink with flow This link opens the recovery UI with an empty `code` field. | diff --git a/clients/kratos/dart/doc/RecoveryFlow.md b/clients/kratos/dart/doc/RecoveryFlow.md index 68e20bd1253..cf4ecabfe1c 100644 --- a/clients/kratos/dart/doc/RecoveryFlow.md +++ b/clients/kratos/dart/doc/RecoveryFlow.md @@ -9,12 +9,13 @@ import 'package:ory_kratos_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **active** | **String** | Active, if set, contains the recovery method that is being used. It is initially not set. | [optional] +**continueWith** | [**BuiltList<ContinueWith>**](ContinueWith.md) | Contains possible actions that could follow this flow | [optional] **expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. | **id** | **String** | ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://?request= | **issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the request occurred. | **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] -**state** | [**RecoveryFlowState**](RecoveryFlowState.md) | | +**state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/kratos/dart/doc/RegistrationFlow.md b/clients/kratos/dart/doc/RegistrationFlow.md index ffe5be53d76..3f74c41b581 100644 --- a/clients/kratos/dart/doc/RegistrationFlow.md +++ b/clients/kratos/dart/doc/RegistrationFlow.md @@ -8,15 +8,17 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**active** | [**IdentityCredentialsType**](IdentityCredentialsType.md) | | [optional] +**active** | **String** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **expiresAt** | [**DateTime**](DateTime.md) | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **id** | **String** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http:///?flow= | **issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the flow occurred. | **oauth2LoginChallenge** | **String** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional] **oauth2LoginRequest** | [**OAuth2LoginRequest**](OAuth2LoginRequest.md) | | [optional] +**organizationId** | **String** | | [optional] **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] **sessionTokenExchangeCode** | **String** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the flow. | [optional] +**state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. | **transientPayload** | [**JsonObject**](.md) | TransientPayload is used to pass data from the registration to a webhook | [optional] **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/kratos/dart/doc/IdentityCredentialsType.md b/clients/kratos/dart/doc/RegistrationFlowState.md similarity index 87% rename from clients/kratos/dart/doc/IdentityCredentialsType.md rename to clients/kratos/dart/doc/RegistrationFlowState.md index 39ca6c29c1f..a7e94e5e2a8 100644 --- a/clients/kratos/dart/doc/IdentityCredentialsType.md +++ b/clients/kratos/dart/doc/RegistrationFlowState.md @@ -1,4 +1,4 @@ -# ory_kratos_client.model.IdentityCredentialsType +# ory_kratos_client.model.RegistrationFlowState ## Load the model package ```dart diff --git a/clients/kratos/dart/doc/Session.md b/clients/kratos/dart/doc/Session.md index debac944c40..a0068aaa6d2 100644 --- a/clients/kratos/dart/doc/Session.md +++ b/clients/kratos/dart/doc/Session.md @@ -15,8 +15,9 @@ Name | Type | Description | Notes **devices** | [**BuiltList<SessionDevice>**](SessionDevice.md) | Devices has history of all endpoints where the session was used | [optional] **expiresAt** | [**DateTime**](DateTime.md) | The Session Expiry When this session expires at. | [optional] **id** | **String** | Session ID | -**identity** | [**Identity**](Identity.md) | | +**identity** | [**Identity**](Identity.md) | | [optional] **issuedAt** | [**DateTime**](DateTime.md) | The Session Issuance Timestamp When this session was issued at. Usually equal or close to `authenticated_at`. | [optional] +**tokenized** | **String** | Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/SessionAuthenticationMethod.md b/clients/kratos/dart/doc/SessionAuthenticationMethod.md index 370c219c372..59fabe43106 100644 --- a/clients/kratos/dart/doc/SessionAuthenticationMethod.md +++ b/clients/kratos/dart/doc/SessionAuthenticationMethod.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **aal** | [**AuthenticatorAssuranceLevel**](AuthenticatorAssuranceLevel.md) | | [optional] **completedAt** | [**DateTime**](DateTime.md) | When the authentication challenge was completed. | [optional] **method** | **String** | | [optional] +**organization** | **String** | The Organization id used for authentication | [optional] **provider** | **String** | OIDC or SAML provider id used for authentication | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/SettingsFlow.md b/clients/kratos/dart/doc/SettingsFlow.md index 179b2cf59e3..ab7b355e6e5 100644 --- a/clients/kratos/dart/doc/SettingsFlow.md +++ b/clients/kratos/dart/doc/SettingsFlow.md @@ -16,7 +16,7 @@ Name | Type | Description | Notes **issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the flow occurred. | **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] -**state** | [**SettingsFlowState**](SettingsFlowState.md) | | +**state** | [**JsonObject**](.md) | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/kratos/dart/doc/UpdateIdentityBody.md b/clients/kratos/dart/doc/UpdateIdentityBody.md index afb7eae1fb4..febe9cc4b69 100644 --- a/clients/kratos/dart/doc/UpdateIdentityBody.md +++ b/clients/kratos/dart/doc/UpdateIdentityBody.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **metadataAdmin** | [**JsonObject**](.md) | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. | [optional] **metadataPublic** | [**JsonObject**](.md) | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **schemaId** | **String** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**state** | [**IdentityState**](IdentityState.md) | | +**state** | **String** | State is the identity's state. active StateActive inactive StateInactive | **traits** | [**JsonObject**](.md) | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/UpdateLoginFlowBody.md b/clients/kratos/dart/doc/UpdateLoginFlowBody.md index a692b5fd5b0..4f6d20b9354 100644 --- a/clients/kratos/dart/doc/UpdateLoginFlowBody.md +++ b/clients/kratos/dart/doc/UpdateLoginFlowBody.md @@ -8,17 +8,21 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**csrfToken** | **String** | Sending the anti-csrf token is only required for browser login flows. | [optional] -**identifier** | **String** | Identifier is the email or username of the user trying to log in. | -**method** | **String** | Method should be set to \"lookup_secret\" when logging in using the lookup_secret strategy. | +**csrfToken** | **String** | CSRFToken is the anti-CSRF token | +**identifier** | **String** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | +**method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | **password** | **String** | The user's password. | **passwordIdentifier** | **String** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**idToken** | **String** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**idTokenNonce** | **String** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **provider** | **String** | The provider to register with | **traits** | [**JsonObject**](.md) | The identity traits. This is a placeholder for the registration flow. | [optional] **upstreamParameters** | [**JsonObject**](.md) | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] **totpCode** | **String** | The TOTP code. | **webauthnLogin** | **String** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] **lookupSecret** | **String** | The lookup secret. | +**code** | **String** | Code is the 6 digits code sent to the user | [optional] +**resend** | **String** | Resend is set when the user wants to resend the code | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/UpdateLoginFlowWithCodeMethod.md b/clients/kratos/dart/doc/UpdateLoginFlowWithCodeMethod.md new file mode 100644 index 00000000000..705dcaf5ecc --- /dev/null +++ b/clients/kratos/dart/doc/UpdateLoginFlowWithCodeMethod.md @@ -0,0 +1,19 @@ +# ory_kratos_client.model.UpdateLoginFlowWithCodeMethod + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | Code is the 6 digits code sent to the user | [optional] +**csrfToken** | **String** | CSRFToken is the anti-CSRF token | +**identifier** | **String** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] +**method** | **String** | Method should be set to \"code\" when logging in using the code strategy. | +**resend** | **String** | Resend is set when the user wants to resend the code | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/UpdateLoginFlowWithOidcMethod.md b/clients/kratos/dart/doc/UpdateLoginFlowWithOidcMethod.md index 334a745f4b5..df002efacfe 100644 --- a/clients/kratos/dart/doc/UpdateLoginFlowWithOidcMethod.md +++ b/clients/kratos/dart/doc/UpdateLoginFlowWithOidcMethod.md @@ -9,6 +9,8 @@ import 'package:ory_kratos_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **csrfToken** | **String** | The CSRF Token | [optional] +**idToken** | **String** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**idTokenNonce** | **String** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **method** | **String** | Method to use This field must be set to `oidc` when using the oidc method. | **provider** | **String** | The provider to register with | **traits** | [**JsonObject**](.md) | The identity traits. This is a placeholder for the registration flow. | [optional] diff --git a/clients/kratos/dart/doc/UpdateRegistrationFlowBody.md b/clients/kratos/dart/doc/UpdateRegistrationFlowBody.md index f0cc93276e0..e9383253336 100644 --- a/clients/kratos/dart/doc/UpdateRegistrationFlowBody.md +++ b/clients/kratos/dart/doc/UpdateRegistrationFlowBody.md @@ -8,15 +8,19 @@ import 'package:ory_kratos_client/api.dart'; ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**csrfToken** | **String** | CSRFToken is the anti-CSRF token | [optional] -**method** | **String** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**csrfToken** | **String** | The CSRF Token | [optional] +**method** | **String** | Method to use This field must be set to `code` when using the code method. | **password** | **String** | Password to sign the user up with | **traits** | [**JsonObject**](.md) | The identity's traits | **transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] +**idToken** | **String** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**idTokenNonce** | **String** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. | [optional] **provider** | **String** | The provider to register with | **upstreamParameters** | [**JsonObject**](.md) | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] **webauthnRegister** | **String** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **webauthnRegisterDisplayname** | **String** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] +**code** | **String** | The OTP Code sent to the user | [optional] +**resend** | **String** | Resend restarts the flow with a new code | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/UpdateRegistrationFlowWithCodeMethod.md b/clients/kratos/dart/doc/UpdateRegistrationFlowWithCodeMethod.md new file mode 100644 index 00000000000..07207350217 --- /dev/null +++ b/clients/kratos/dart/doc/UpdateRegistrationFlowWithCodeMethod.md @@ -0,0 +1,20 @@ +# ory_kratos_client.model.UpdateRegistrationFlowWithCodeMethod + +## Load the model package +```dart +import 'package:ory_kratos_client/api.dart'; +``` + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**code** | **String** | The OTP Code sent to the user | [optional] +**csrfToken** | **String** | The CSRF Token | [optional] +**method** | **String** | Method to use This field must be set to `code` when using the code method. | +**resend** | **String** | Resend restarts the flow with a new code | [optional] +**traits** | [**JsonObject**](.md) | The identity's traits | +**transientPayload** | [**JsonObject**](.md) | Transient data to pass along to any webhooks | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/clients/kratos/dart/doc/UpdateRegistrationFlowWithOidcMethod.md b/clients/kratos/dart/doc/UpdateRegistrationFlowWithOidcMethod.md index e39be96f70d..1dcbba1fd77 100644 --- a/clients/kratos/dart/doc/UpdateRegistrationFlowWithOidcMethod.md +++ b/clients/kratos/dart/doc/UpdateRegistrationFlowWithOidcMethod.md @@ -9,6 +9,8 @@ import 'package:ory_kratos_client/api.dart'; Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **csrfToken** | **String** | The CSRF Token | [optional] +**idToken** | **String** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**idTokenNonce** | **String** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. | [optional] **method** | **String** | Method to use This field must be set to `oidc` when using the oidc method. | **provider** | **String** | The provider to register with | **traits** | [**JsonObject**](.md) | The identity traits | [optional] diff --git a/clients/kratos/dart/doc/VerifiableIdentityAddress.md b/clients/kratos/dart/doc/VerifiableIdentityAddress.md index 10f11b1f1e9..73a0ace461b 100644 --- a/clients/kratos/dart/doc/VerifiableIdentityAddress.md +++ b/clients/kratos/dart/doc/VerifiableIdentityAddress.md @@ -15,7 +15,7 @@ Name | Type | Description | Notes **value** | **String** | The address value example foo@user.com | **verified** | **bool** | Indicates if the address has already been verified | **verifiedAt** | [**DateTime**](DateTime.md) | | [optional] -**via** | **String** | VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema | +**via** | **String** | The delivery method | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dart/doc/VerificationFlow.md b/clients/kratos/dart/doc/VerificationFlow.md index 6b5dde8fc6f..3bd9c44639d 100644 --- a/clients/kratos/dart/doc/VerificationFlow.md +++ b/clients/kratos/dart/doc/VerificationFlow.md @@ -14,7 +14,7 @@ Name | Type | Description | Notes **issuedAt** | [**DateTime**](DateTime.md) | IssuedAt is the time (UTC) when the request occurred. | [optional] **requestUrl** | **String** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **returnTo** | **String** | ReturnTo contains the requested return_to URL. | [optional] -**state** | [**VerificationFlowState**](VerificationFlowState.md) | | +**state** | [**JsonObject**](.md) | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | **type** | **String** | The flow type can either be `api` or `browser`. | **ui** | [**UiContainer**](UiContainer.md) | | diff --git a/clients/kratos/dart/lib/ory_kratos_client.dart b/clients/kratos/dart/lib/ory_kratos_client.dart index 720f0f8ef15..3c72d347e3c 100644 --- a/clients/kratos/dart/lib/ory_kratos_client.dart +++ b/clients/kratos/dart/lib/ory_kratos_client.dart @@ -16,8 +16,13 @@ export 'package:ory_kratos_client/src/api/metadata_api.dart'; export 'package:ory_kratos_client/src/model/authenticator_assurance_level.dart'; export 'package:ory_kratos_client/src/model/batch_patch_identities_response.dart'; +export 'package:ory_kratos_client/src/model/consistency_request_parameters.dart'; export 'package:ory_kratos_client/src/model/continue_with.dart'; +export 'package:ory_kratos_client/src/model/continue_with_recovery_ui.dart'; +export 'package:ory_kratos_client/src/model/continue_with_recovery_ui_flow.dart'; export 'package:ory_kratos_client/src/model/continue_with_set_ory_session_token.dart'; +export 'package:ory_kratos_client/src/model/continue_with_settings_ui.dart'; +export 'package:ory_kratos_client/src/model/continue_with_settings_ui_flow.dart'; export 'package:ory_kratos_client/src/model/continue_with_verification_ui.dart'; export 'package:ory_kratos_client/src/model/continue_with_verification_ui_flow.dart'; export 'package:ory_kratos_client/src/model/courier_message_status.dart'; @@ -37,14 +42,13 @@ export 'package:ory_kratos_client/src/model/health_not_ready_status.dart'; export 'package:ory_kratos_client/src/model/health_status.dart'; export 'package:ory_kratos_client/src/model/identity.dart'; export 'package:ory_kratos_client/src/model/identity_credentials.dart'; +export 'package:ory_kratos_client/src/model/identity_credentials_code.dart'; export 'package:ory_kratos_client/src/model/identity_credentials_oidc.dart'; export 'package:ory_kratos_client/src/model/identity_credentials_oidc_provider.dart'; export 'package:ory_kratos_client/src/model/identity_credentials_password.dart'; -export 'package:ory_kratos_client/src/model/identity_credentials_type.dart'; export 'package:ory_kratos_client/src/model/identity_patch.dart'; export 'package:ory_kratos_client/src/model/identity_patch_response.dart'; export 'package:ory_kratos_client/src/model/identity_schema_container.dart'; -export 'package:ory_kratos_client/src/model/identity_state.dart'; export 'package:ory_kratos_client/src/model/identity_with_credentials.dart'; export 'package:ory_kratos_client/src/model/identity_with_credentials_oidc.dart'; export 'package:ory_kratos_client/src/model/identity_with_credentials_oidc_config.dart'; @@ -55,6 +59,7 @@ export 'package:ory_kratos_client/src/model/is_alive200_response.dart'; export 'package:ory_kratos_client/src/model/is_ready503_response.dart'; export 'package:ory_kratos_client/src/model/json_patch.dart'; export 'package:ory_kratos_client/src/model/login_flow.dart'; +export 'package:ory_kratos_client/src/model/login_flow_state.dart'; export 'package:ory_kratos_client/src/model/logout_flow.dart'; export 'package:ory_kratos_client/src/model/message.dart'; export 'package:ory_kratos_client/src/model/message_dispatch.dart'; @@ -62,7 +67,6 @@ export 'package:ory_kratos_client/src/model/needs_privileged_session_error.dart' export 'package:ory_kratos_client/src/model/o_auth2_client.dart'; export 'package:ory_kratos_client/src/model/o_auth2_consent_request_open_id_connect_context.dart'; export 'package:ory_kratos_client/src/model/o_auth2_login_request.dart'; -export 'package:ory_kratos_client/src/model/pagination.dart'; export 'package:ory_kratos_client/src/model/patch_identities_body.dart'; export 'package:ory_kratos_client/src/model/perform_native_logout_body.dart'; export 'package:ory_kratos_client/src/model/recovery_code_for_identity.dart'; @@ -71,6 +75,7 @@ export 'package:ory_kratos_client/src/model/recovery_flow_state.dart'; export 'package:ory_kratos_client/src/model/recovery_identity_address.dart'; export 'package:ory_kratos_client/src/model/recovery_link_for_identity.dart'; export 'package:ory_kratos_client/src/model/registration_flow.dart'; +export 'package:ory_kratos_client/src/model/registration_flow_state.dart'; export 'package:ory_kratos_client/src/model/self_service_flow_expired_error.dart'; export 'package:ory_kratos_client/src/model/session.dart'; export 'package:ory_kratos_client/src/model/session_authentication_method.dart'; @@ -94,6 +99,7 @@ export 'package:ory_kratos_client/src/model/ui_node_text_attributes.dart'; export 'package:ory_kratos_client/src/model/ui_text.dart'; export 'package:ory_kratos_client/src/model/update_identity_body.dart'; export 'package:ory_kratos_client/src/model/update_login_flow_body.dart'; +export 'package:ory_kratos_client/src/model/update_login_flow_with_code_method.dart'; export 'package:ory_kratos_client/src/model/update_login_flow_with_lookup_secret_method.dart'; export 'package:ory_kratos_client/src/model/update_login_flow_with_oidc_method.dart'; export 'package:ory_kratos_client/src/model/update_login_flow_with_password_method.dart'; @@ -103,6 +109,7 @@ export 'package:ory_kratos_client/src/model/update_recovery_flow_body.dart'; export 'package:ory_kratos_client/src/model/update_recovery_flow_with_code_method.dart'; export 'package:ory_kratos_client/src/model/update_recovery_flow_with_link_method.dart'; export 'package:ory_kratos_client/src/model/update_registration_flow_body.dart'; +export 'package:ory_kratos_client/src/model/update_registration_flow_with_code_method.dart'; export 'package:ory_kratos_client/src/model/update_registration_flow_with_oidc_method.dart'; export 'package:ory_kratos_client/src/model/update_registration_flow_with_password_method.dart'; export 'package:ory_kratos_client/src/model/update_registration_flow_with_web_authn_method.dart'; diff --git a/clients/kratos/dart/lib/src/api/frontend_api.dart b/clients/kratos/dart/lib/src/api/frontend_api.dart index e904e543b95..73d6a5bbfa2 100644 --- a/clients/kratos/dart/lib/src/api/frontend_api.dart +++ b/clients/kratos/dart/lib/src/api/frontend_api.dart @@ -46,6 +46,7 @@ class FrontendApi { /// * [returnTo] - The URL to return the browser to after the flow was completed. /// * [cookie] - HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. /// * [loginChallenge] - An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). + /// * [organization] - An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -61,6 +62,7 @@ class FrontendApi { String? returnTo, String? cookie, String? loginChallenge, + String? organization, CancelToken? cancelToken, Map? headers, Map? extra, @@ -87,6 +89,7 @@ class FrontendApi { if (aal != null) r'aal': encodeQueryParameter(_serializers, aal, const FullType(String)), if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), if (loginChallenge != null) r'login_challenge': encodeQueryParameter(_serializers, loginChallenge, const FullType(String)), + if (organization != null) r'organization': encodeQueryParameter(_serializers, organization, const FullType(String)), }; final _response = await _dio.request( @@ -293,12 +296,13 @@ class FrontendApi { } /// Create Registration Flow for Browsers - /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Parameters: /// * [returnTo] - The URL to return the browser to after the flow was completed. /// * [loginChallenge] - Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. /// * [afterVerificationReturnTo] - The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. + /// * [organization] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -312,6 +316,7 @@ class FrontendApi { String? returnTo, String? loginChallenge, String? afterVerificationReturnTo, + String? organization, CancelToken? cancelToken, Map? headers, Map? extra, @@ -336,6 +341,7 @@ class FrontendApi { if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), if (loginChallenge != null) r'login_challenge': encodeQueryParameter(_serializers, loginChallenge, const FullType(String)), if (afterVerificationReturnTo != null) r'after_verification_return_to': encodeQueryParameter(_serializers, afterVerificationReturnTo, const FullType(String)), + if (organization != null) r'organization': encodeQueryParameter(_serializers, organization, const FullType(String)), }; final _response = await _dio.request( @@ -550,6 +556,7 @@ class FrontendApi { /// * [xSessionToken] - The Session Token of the Identity performing the settings flow. /// * [returnSessionTokenExchangeCode] - EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. /// * [returnTo] - The URL to return the browser to after the flow was completed. + /// * [via] - Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -565,6 +572,7 @@ class FrontendApi { String? xSessionToken, bool? returnSessionTokenExchangeCode, String? returnTo, + String? via, CancelToken? cancelToken, Map? headers, Map? extra, @@ -591,6 +599,7 @@ class FrontendApi { if (aal != null) r'aal': encodeQueryParameter(_serializers, aal, const FullType(String)), if (returnSessionTokenExchangeCode != null) r'return_session_token_exchange_code': encodeQueryParameter(_serializers, returnSessionTokenExchangeCode, const FullType(bool)), if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), + if (via != null) r'via': encodeQueryParameter(_serializers, via, const FullType(String)), }; final _response = await _dio.request( @@ -634,7 +643,7 @@ class FrontendApi { } /// Create Recovery Flow for Native Apps - /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Parameters: /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -1725,8 +1734,10 @@ class FrontendApi { /// 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. /// /// Parameters: - /// * [perPage] - Items per Page This is the number of items per page. - /// * [page] - Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + /// * [perPage] - Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + /// * [page] - Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + /// * [pageSize] - Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + /// * [pageToken] - Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). /// * [xSessionToken] - Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. /// * [cookie] - Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation @@ -1740,7 +1751,9 @@ class FrontendApi { /// Throws [DioError] if API call or serialization fails Future>> listMySessions({ int? perPage = 250, - int? page = 1, + int? page, + int? pageSize = 250, + String? pageToken = '1', String? xSessionToken, String? cookie, CancelToken? cancelToken, @@ -1768,6 +1781,8 @@ class FrontendApi { final _queryParameters = { if (perPage != null) r'per_page': encodeQueryParameter(_serializers, perPage, const FullType(int)), if (page != null) r'page': encodeQueryParameter(_serializers, page, const FullType(int)), + if (pageSize != null) r'page_size': encodeQueryParameter(_serializers, pageSize, const FullType(int)), + if (pageToken != null) r'page_token': encodeQueryParameter(_serializers, pageToken, const FullType(String)), }; final _response = await _dio.request( @@ -1878,11 +1893,12 @@ class FrontendApi { } /// Check Who the Current HTTP Session Belongs To - /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Parameters: /// * [xSessionToken] - Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. /// * [cookie] - Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. + /// * [tokenizeAs] - Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1895,6 +1911,7 @@ class FrontendApi { Future> toSession({ String? xSessionToken, String? cookie, + String? tokenizeAs, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1917,9 +1934,14 @@ class FrontendApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (tokenizeAs != null) r'tokenize_as': encodeQueryParameter(_serializers, tokenizeAs, const FullType(String)), + }; + final _response = await _dio.request( _path, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -1957,7 +1979,7 @@ class FrontendApi { } /// Submit a Login Flow - /// :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Parameters: /// * [flow] - The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -2123,8 +2145,8 @@ class FrontendApi { return _response; } - /// Complete Recovery Flow - /// Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Update Recovery Flow + /// Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Parameters: /// * [flow] - The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). diff --git a/clients/kratos/dart/lib/src/api/identity_api.dart b/clients/kratos/dart/lib/src/api/identity_api.dart index 107c89ee0c4..bc1f49c1040 100644 --- a/clients/kratos/dart/lib/src/api/identity_api.dart +++ b/clients/kratos/dart/lib/src/api/identity_api.dart @@ -342,6 +342,7 @@ class IdentityApi { /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Parameters: + /// * [returnTo] /// * [createRecoveryLinkForIdentityBody] /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -353,6 +354,7 @@ class IdentityApi { /// Returns a [Future] containing a [Response] with a [RecoveryLinkForIdentity] as data /// Throws [DioError] if API call or serialization fails Future> createRecoveryLinkForIdentity({ + String? returnTo, CreateRecoveryLinkForIdentityBody? createRecoveryLinkForIdentityBody, CancelToken? cancelToken, Map? headers, @@ -382,6 +384,10 @@ class IdentityApi { validateStatus: validateStatus, ); + final _queryParameters = { + if (returnTo != null) r'return_to': encodeQueryParameter(_serializers, returnTo, const FullType(String)), + }; + dynamic _bodyData; try { @@ -393,6 +399,7 @@ class IdentityApi { requestOptions: _options.compose( _dio.options, _path, + queryParameters: _queryParameters, ), type: DioErrorType.unknown, error: error, @@ -404,6 +411,7 @@ class IdentityApi { _path, data: _bodyData, options: _options, + queryParameters: _queryParameters, cancelToken: cancelToken, onSendProgress: onSendProgress, onReceiveProgress: onReceiveProgress, @@ -499,7 +507,7 @@ class IdentityApi { /// /// Parameters: /// * [id] - ID is the identity's ID. - /// * [type] - Type is the credential's Type. One of totp, webauthn, lookup + /// * [type] - Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -997,9 +1005,14 @@ class IdentityApi { /// Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Parameters: - /// * [perPage] - Items per Page This is the number of items per page. - /// * [page] - Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. - /// * [credentialsIdentifier] - CredentialsIdentifier is the identifier (username, email) of the credentials to look up. + /// * [perPage] - Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + /// * [page] - Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + /// * [pageSize] - Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + /// * [pageToken] - Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + /// * [consistency] - Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + /// * [ids] - List of ids used to filter identities. If this list is empty, then no filter will be applied. + /// * [credentialsIdentifier] - CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + /// * [previewCredentialsIdentifierSimilar] - This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1011,8 +1024,13 @@ class IdentityApi { /// Throws [DioError] if API call or serialization fails Future>> listIdentities({ int? perPage = 250, - int? page = 1, + int? page, + int? pageSize = 250, + String? pageToken = '1', + String? consistency, + BuiltList? ids, String? credentialsIdentifier, + String? previewCredentialsIdentifierSimilar, CancelToken? cancelToken, Map? headers, Map? extra, @@ -1043,7 +1061,12 @@ class IdentityApi { final _queryParameters = { if (perPage != null) r'per_page': encodeQueryParameter(_serializers, perPage, const FullType(int)), if (page != null) r'page': encodeQueryParameter(_serializers, page, const FullType(int)), + if (pageSize != null) r'page_size': encodeQueryParameter(_serializers, pageSize, const FullType(int)), + if (pageToken != null) r'page_token': encodeQueryParameter(_serializers, pageToken, const FullType(String)), + if (consistency != null) r'consistency': encodeQueryParameter(_serializers, consistency, const FullType(String)), + if (ids != null) r'ids': encodeCollectionQueryParameter(_serializers, ids, const FullType(BuiltList, [FullType(String)]), format: ListFormat.multi,), if (credentialsIdentifier != null) r'credentials_identifier': encodeQueryParameter(_serializers, credentialsIdentifier, const FullType(String)), + if (previewCredentialsIdentifierSimilar != null) r'preview_credentials_identifier_similar': encodeQueryParameter(_serializers, previewCredentialsIdentifierSimilar, const FullType(String)), }; final _response = await _dio.request( @@ -1090,8 +1113,10 @@ class IdentityApi { /// Returns a list of all identity schemas currently in use. /// /// Parameters: - /// * [perPage] - Items per Page This is the number of items per page. - /// * [page] - Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + /// * [perPage] - Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + /// * [page] - Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + /// * [pageSize] - Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + /// * [pageToken] - Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request /// * [extras] - Can be used to add flags to the request @@ -1103,7 +1128,9 @@ class IdentityApi { /// Throws [DioError] if API call or serialization fails Future>> listIdentitySchemas({ int? perPage = 250, - int? page = 1, + int? page, + int? pageSize = 250, + String? pageToken = '1', CancelToken? cancelToken, Map? headers, Map? extra, @@ -1127,6 +1154,8 @@ class IdentityApi { final _queryParameters = { if (perPage != null) r'per_page': encodeQueryParameter(_serializers, perPage, const FullType(int)), if (page != null) r'page': encodeQueryParameter(_serializers, page, const FullType(int)), + if (pageSize != null) r'page_size': encodeQueryParameter(_serializers, pageSize, const FullType(int)), + if (pageToken != null) r'page_token': encodeQueryParameter(_serializers, pageToken, const FullType(String)), }; final _response = await _dio.request( @@ -1174,8 +1203,10 @@ class IdentityApi { /// /// Parameters: /// * [id] - ID is the identity's ID. - /// * [perPage] - Items per Page This is the number of items per page. - /// * [page] - Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + /// * [perPage] - Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + /// * [page] - Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + /// * [pageSize] - Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + /// * [pageToken] - Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). /// * [active] - Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. /// * [cancelToken] - A [CancelToken] that can be used to cancel the operation /// * [headers] - Can be used to add additional headers to the request @@ -1189,7 +1220,9 @@ class IdentityApi { Future>> listIdentitySessions({ required String id, int? perPage = 250, - int? page = 1, + int? page, + int? pageSize = 250, + String? pageToken = '1', bool? active, CancelToken? cancelToken, Map? headers, @@ -1221,6 +1254,8 @@ class IdentityApi { final _queryParameters = { if (perPage != null) r'per_page': encodeQueryParameter(_serializers, perPage, const FullType(int)), if (page != null) r'page': encodeQueryParameter(_serializers, page, const FullType(int)), + if (pageSize != null) r'page_size': encodeQueryParameter(_serializers, pageSize, const FullType(int)), + if (pageToken != null) r'page_token': encodeQueryParameter(_serializers, pageToken, const FullType(String)), if (active != null) r'active': encodeQueryParameter(_serializers, active, const FullType(bool)), }; diff --git a/clients/kratos/dart/lib/src/model/consistency_request_parameters.dart b/clients/kratos/dart/lib/src/model/consistency_request_parameters.dart new file mode 100644 index 00000000000..c522f1680b5 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/consistency_request_parameters.dart @@ -0,0 +1,131 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'consistency_request_parameters.g.dart'; + +/// Control API consistency guarantees +/// +/// Properties: +/// * [consistency] - Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. +@BuiltValue() +abstract class ConsistencyRequestParameters implements Built { + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + @BuiltValueField(wireName: r'consistency') + ConsistencyRequestParametersConsistencyEnum? get consistency; + // enum consistencyEnum { , strong, eventual, }; + + ConsistencyRequestParameters._(); + + factory ConsistencyRequestParameters([void updates(ConsistencyRequestParametersBuilder b)]) = _$ConsistencyRequestParameters; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ConsistencyRequestParametersBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ConsistencyRequestParametersSerializer(); +} + +class _$ConsistencyRequestParametersSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ConsistencyRequestParameters, _$ConsistencyRequestParameters]; + + @override + final String wireName = r'ConsistencyRequestParameters'; + + Iterable _serializeProperties( + Serializers serializers, + ConsistencyRequestParameters object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.consistency != null) { + yield r'consistency'; + yield serializers.serialize( + object.consistency, + specifiedType: const FullType(ConsistencyRequestParametersConsistencyEnum), + ); + } + } + + @override + Object serialize( + Serializers serializers, + ConsistencyRequestParameters object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ConsistencyRequestParametersBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'consistency': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(ConsistencyRequestParametersConsistencyEnum), + ) as ConsistencyRequestParametersConsistencyEnum; + result.consistency = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ConsistencyRequestParameters deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ConsistencyRequestParametersBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + +class ConsistencyRequestParametersConsistencyEnum extends EnumClass { + + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + @BuiltValueEnumConst(wireName: r'') + static const ConsistencyRequestParametersConsistencyEnum empty = _$consistencyRequestParametersConsistencyEnum_empty; + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + @BuiltValueEnumConst(wireName: r'strong') + static const ConsistencyRequestParametersConsistencyEnum strong = _$consistencyRequestParametersConsistencyEnum_strong; + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + @BuiltValueEnumConst(wireName: r'eventual') + static const ConsistencyRequestParametersConsistencyEnum eventual = _$consistencyRequestParametersConsistencyEnum_eventual; + + static Serializer get serializer => _$consistencyRequestParametersConsistencyEnumSerializer; + + const ConsistencyRequestParametersConsistencyEnum._(String name): super(name); + + static BuiltSet get values => _$consistencyRequestParametersConsistencyEnumValues; + static ConsistencyRequestParametersConsistencyEnum valueOf(String name) => _$consistencyRequestParametersConsistencyEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/consistency_request_parameters.g.dart b/clients/kratos/dart/lib/src/model/consistency_request_parameters.g.dart new file mode 100644 index 00000000000..73eba5b62ec --- /dev/null +++ b/clients/kratos/dart/lib/src/model/consistency_request_parameters.g.dart @@ -0,0 +1,169 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'consistency_request_parameters.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const ConsistencyRequestParametersConsistencyEnum + _$consistencyRequestParametersConsistencyEnum_empty = + const ConsistencyRequestParametersConsistencyEnum._('empty'); +const ConsistencyRequestParametersConsistencyEnum + _$consistencyRequestParametersConsistencyEnum_strong = + const ConsistencyRequestParametersConsistencyEnum._('strong'); +const ConsistencyRequestParametersConsistencyEnum + _$consistencyRequestParametersConsistencyEnum_eventual = + const ConsistencyRequestParametersConsistencyEnum._('eventual'); + +ConsistencyRequestParametersConsistencyEnum + _$consistencyRequestParametersConsistencyEnumValueOf(String name) { + switch (name) { + case 'empty': + return _$consistencyRequestParametersConsistencyEnum_empty; + case 'strong': + return _$consistencyRequestParametersConsistencyEnum_strong; + case 'eventual': + return _$consistencyRequestParametersConsistencyEnum_eventual; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$consistencyRequestParametersConsistencyEnumValues = new BuiltSet< + ConsistencyRequestParametersConsistencyEnum>(const [ + _$consistencyRequestParametersConsistencyEnum_empty, + _$consistencyRequestParametersConsistencyEnum_strong, + _$consistencyRequestParametersConsistencyEnum_eventual, +]); + +Serializer + _$consistencyRequestParametersConsistencyEnumSerializer = + new _$ConsistencyRequestParametersConsistencyEnumSerializer(); + +class _$ConsistencyRequestParametersConsistencyEnumSerializer + implements + PrimitiveSerializer { + static const Map _toWire = const { + 'empty': '', + 'strong': 'strong', + 'eventual': 'eventual', + }; + static const Map _fromWire = const { + '': 'empty', + 'strong': 'strong', + 'eventual': 'eventual', + }; + + @override + final Iterable types = const [ + ConsistencyRequestParametersConsistencyEnum + ]; + @override + final String wireName = 'ConsistencyRequestParametersConsistencyEnum'; + + @override + Object serialize(Serializers serializers, + ConsistencyRequestParametersConsistencyEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + ConsistencyRequestParametersConsistencyEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + ConsistencyRequestParametersConsistencyEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$ConsistencyRequestParameters extends ConsistencyRequestParameters { + @override + final ConsistencyRequestParametersConsistencyEnum? consistency; + + factory _$ConsistencyRequestParameters( + [void Function(ConsistencyRequestParametersBuilder)? updates]) => + (new ConsistencyRequestParametersBuilder()..update(updates))._build(); + + _$ConsistencyRequestParameters._({this.consistency}) : super._(); + + @override + ConsistencyRequestParameters rebuild( + void Function(ConsistencyRequestParametersBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ConsistencyRequestParametersBuilder toBuilder() => + new ConsistencyRequestParametersBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ConsistencyRequestParameters && + consistency == other.consistency; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, consistency.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ConsistencyRequestParameters') + ..add('consistency', consistency)) + .toString(); + } +} + +class ConsistencyRequestParametersBuilder + implements + Builder { + _$ConsistencyRequestParameters? _$v; + + ConsistencyRequestParametersConsistencyEnum? _consistency; + ConsistencyRequestParametersConsistencyEnum? get consistency => + _$this._consistency; + set consistency(ConsistencyRequestParametersConsistencyEnum? consistency) => + _$this._consistency = consistency; + + ConsistencyRequestParametersBuilder() { + ConsistencyRequestParameters._defaults(this); + } + + ConsistencyRequestParametersBuilder get _$this { + final $v = _$v; + if ($v != null) { + _consistency = $v.consistency; + _$v = null; + } + return this; + } + + @override + void replace(ConsistencyRequestParameters other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ConsistencyRequestParameters; + } + + @override + void update(void Function(ConsistencyRequestParametersBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ConsistencyRequestParameters build() => _build(); + + _$ConsistencyRequestParameters _build() { + final _$result = + _$v ?? new _$ConsistencyRequestParameters._(consistency: consistency); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/continue_with.dart b/clients/kratos/dart/lib/src/model/continue_with.dart index 62d75a6858c..81f120a0532 100644 --- a/clients/kratos/dart/lib/src/model/continue_with.dart +++ b/clients/kratos/dart/lib/src/model/continue_with.dart @@ -3,10 +3,12 @@ // // ignore_for_file: unused_element +import 'package:ory_kratos_client/src/model/continue_with_recovery_ui_flow.dart'; +import 'package:ory_kratos_client/src/model/continue_with_settings_ui.dart'; import 'package:ory_kratos_client/src/model/continue_with_verification_ui.dart'; import 'package:built_collection/built_collection.dart'; -import 'package:ory_kratos_client/src/model/continue_with_verification_ui_flow.dart'; import 'package:ory_kratos_client/src/model/continue_with_set_ory_session_token.dart'; +import 'package:ory_kratos_client/src/model/continue_with_recovery_ui.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; import 'package:one_of/one_of.dart'; @@ -16,18 +18,20 @@ part 'continue_with.g.dart'; /// ContinueWith /// /// Properties: -/// * [action] - Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI +/// * [action] - Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString /// * [flow] /// * [orySessionToken] - Token is the token of the session @BuiltValue() abstract class ContinueWith implements Built { - /// One Of [ContinueWithSetOrySessionToken], [ContinueWithVerificationUi] + /// One Of [ContinueWithRecoveryUi], [ContinueWithSetOrySessionToken], [ContinueWithSettingsUi], [ContinueWithVerificationUi] OneOf get oneOf; static const String discriminatorFieldName = r'action'; static const Map discriminatorMapping = { r'set_ory_session_token': ContinueWithSetOrySessionToken, + r'show_recovery_ui': ContinueWithRecoveryUi, + r'show_settings_ui': ContinueWithSettingsUi, r'show_verification_ui': ContinueWithVerificationUi, }; @@ -47,6 +51,12 @@ extension ContinueWithDiscriminatorExt on ContinueWith { if (this is ContinueWithSetOrySessionToken) { return r'set_ory_session_token'; } + if (this is ContinueWithRecoveryUi) { + return r'show_recovery_ui'; + } + if (this is ContinueWithSettingsUi) { + return r'show_settings_ui'; + } if (this is ContinueWithVerificationUi) { return r'show_verification_ui'; } @@ -58,6 +68,12 @@ extension ContinueWithBuilderDiscriminatorExt on ContinueWithBuilder { if (this is ContinueWithSetOrySessionTokenBuilder) { return r'set_ory_session_token'; } + if (this is ContinueWithRecoveryUiBuilder) { + return r'show_recovery_ui'; + } + if (this is ContinueWithSettingsUiBuilder) { + return r'show_settings_ui'; + } if (this is ContinueWithVerificationUiBuilder) { return r'show_verification_ui'; } @@ -101,7 +117,7 @@ class _$ContinueWithSerializer implements PrimitiveSerializer { final discIndex = serializedList.indexOf(ContinueWith.discriminatorFieldName) + 1; final discValue = serializers.deserialize(serializedList[discIndex], specifiedType: FullType(String)) as String; oneOfDataSrc = serialized; - final oneOfTypes = [ContinueWithSetOrySessionToken, ContinueWithVerificationUi, ]; + final oneOfTypes = [ContinueWithSetOrySessionToken, ContinueWithRecoveryUi, ContinueWithSettingsUi, ContinueWithVerificationUi, ]; Object oneOfResult; Type oneOfType; switch (discValue) { @@ -112,6 +128,20 @@ class _$ContinueWithSerializer implements PrimitiveSerializer { ) as ContinueWithSetOrySessionToken; oneOfType = ContinueWithSetOrySessionToken; break; + case r'show_recovery_ui': + oneOfResult = serializers.deserialize( + oneOfDataSrc, + specifiedType: FullType(ContinueWithRecoveryUi), + ) as ContinueWithRecoveryUi; + oneOfType = ContinueWithRecoveryUi; + break; + case r'show_settings_ui': + oneOfResult = serializers.deserialize( + oneOfDataSrc, + specifiedType: FullType(ContinueWithSettingsUi), + ) as ContinueWithSettingsUi; + oneOfType = ContinueWithSettingsUi; + break; case r'show_verification_ui': oneOfResult = serializers.deserialize( oneOfDataSrc, @@ -129,12 +159,9 @@ class _$ContinueWithSerializer implements PrimitiveSerializer { class ContinueWithActionEnum extends EnumClass { - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI - @BuiltValueEnumConst(wireName: r'set_ory_session_token') - static const ContinueWithActionEnum setOrySessionToken = _$continueWithActionEnum_setOrySessionToken; - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI - @BuiltValueEnumConst(wireName: r'show_verification_ui') - static const ContinueWithActionEnum showVerificationUi = _$continueWithActionEnum_showVerificationUi; + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + @BuiltValueEnumConst(wireName: r'show_recovery_ui') + static const ContinueWithActionEnum showRecoveryUi = _$continueWithActionEnum_showRecoveryUi; static Serializer get serializer => _$continueWithActionEnumSerializer; diff --git a/clients/kratos/dart/lib/src/model/continue_with.g.dart b/clients/kratos/dart/lib/src/model/continue_with.g.dart index ca191957a14..87ac2ba4c0a 100644 --- a/clients/kratos/dart/lib/src/model/continue_with.g.dart +++ b/clients/kratos/dart/lib/src/model/continue_with.g.dart @@ -6,17 +6,13 @@ part of 'continue_with.dart'; // BuiltValueGenerator // ************************************************************************** -const ContinueWithActionEnum _$continueWithActionEnum_setOrySessionToken = - const ContinueWithActionEnum._('setOrySessionToken'); -const ContinueWithActionEnum _$continueWithActionEnum_showVerificationUi = - const ContinueWithActionEnum._('showVerificationUi'); +const ContinueWithActionEnum _$continueWithActionEnum_showRecoveryUi = + const ContinueWithActionEnum._('showRecoveryUi'); ContinueWithActionEnum _$continueWithActionEnumValueOf(String name) { switch (name) { - case 'setOrySessionToken': - return _$continueWithActionEnum_setOrySessionToken; - case 'showVerificationUi': - return _$continueWithActionEnum_showVerificationUi; + case 'showRecoveryUi': + return _$continueWithActionEnum_showRecoveryUi; default: throw new ArgumentError(name); } @@ -24,8 +20,7 @@ ContinueWithActionEnum _$continueWithActionEnumValueOf(String name) { final BuiltSet _$continueWithActionEnumValues = new BuiltSet(const [ - _$continueWithActionEnum_setOrySessionToken, - _$continueWithActionEnum_showVerificationUi, + _$continueWithActionEnum_showRecoveryUi, ]); Serializer _$continueWithActionEnumSerializer = @@ -34,12 +29,10 @@ Serializer _$continueWithActionEnumSerializer = class _$ContinueWithActionEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { - 'setOrySessionToken': 'set_ory_session_token', - 'showVerificationUi': 'show_verification_ui', + 'showRecoveryUi': 'show_recovery_ui', }; static const Map _fromWire = const { - 'set_ory_session_token': 'setOrySessionToken', - 'show_verification_ui': 'showVerificationUi', + 'show_recovery_ui': 'showRecoveryUi', }; @override diff --git a/clients/kratos/dart/lib/src/model/continue_with_recovery_ui.dart b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui.dart new file mode 100644 index 00000000000..1b211023a23 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui.dart @@ -0,0 +1,140 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:ory_kratos_client/src/model/continue_with_recovery_ui_flow.dart'; +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'continue_with_recovery_ui.g.dart'; + +/// Indicates, that the UI flow could be continued by showing a recovery ui +/// +/// Properties: +/// * [action] - Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString +/// * [flow] +@BuiltValue() +abstract class ContinueWithRecoveryUi implements Built { + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + @BuiltValueField(wireName: r'action') + ContinueWithRecoveryUiActionEnum get action; + // enum actionEnum { show_recovery_ui, }; + + @BuiltValueField(wireName: r'flow') + ContinueWithRecoveryUiFlow get flow; + + ContinueWithRecoveryUi._(); + + factory ContinueWithRecoveryUi([void updates(ContinueWithRecoveryUiBuilder b)]) = _$ContinueWithRecoveryUi; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ContinueWithRecoveryUiBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ContinueWithRecoveryUiSerializer(); +} + +class _$ContinueWithRecoveryUiSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ContinueWithRecoveryUi, _$ContinueWithRecoveryUi]; + + @override + final String wireName = r'ContinueWithRecoveryUi'; + + Iterable _serializeProperties( + Serializers serializers, + ContinueWithRecoveryUi object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'action'; + yield serializers.serialize( + object.action, + specifiedType: const FullType(ContinueWithRecoveryUiActionEnum), + ); + yield r'flow'; + yield serializers.serialize( + object.flow, + specifiedType: const FullType(ContinueWithRecoveryUiFlow), + ); + } + + @override + Object serialize( + Serializers serializers, + ContinueWithRecoveryUi object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ContinueWithRecoveryUiBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'action': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(ContinueWithRecoveryUiActionEnum), + ) as ContinueWithRecoveryUiActionEnum; + result.action = valueDes; + break; + case r'flow': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(ContinueWithRecoveryUiFlow), + ) as ContinueWithRecoveryUiFlow; + result.flow.replace(valueDes); + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ContinueWithRecoveryUi deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ContinueWithRecoveryUiBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + +class ContinueWithRecoveryUiActionEnum extends EnumClass { + + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + @BuiltValueEnumConst(wireName: r'show_recovery_ui') + static const ContinueWithRecoveryUiActionEnum showRecoveryUi = _$continueWithRecoveryUiActionEnum_showRecoveryUi; + + static Serializer get serializer => _$continueWithRecoveryUiActionEnumSerializer; + + const ContinueWithRecoveryUiActionEnum._(String name): super(name); + + static BuiltSet get values => _$continueWithRecoveryUiActionEnumValues; + static ContinueWithRecoveryUiActionEnum valueOf(String name) => _$continueWithRecoveryUiActionEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/continue_with_recovery_ui.g.dart b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui.g.dart new file mode 100644 index 00000000000..d14b80ea813 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui.g.dart @@ -0,0 +1,180 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'continue_with_recovery_ui.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const ContinueWithRecoveryUiActionEnum + _$continueWithRecoveryUiActionEnum_showRecoveryUi = + const ContinueWithRecoveryUiActionEnum._('showRecoveryUi'); + +ContinueWithRecoveryUiActionEnum _$continueWithRecoveryUiActionEnumValueOf( + String name) { + switch (name) { + case 'showRecoveryUi': + return _$continueWithRecoveryUiActionEnum_showRecoveryUi; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$continueWithRecoveryUiActionEnumValues = new BuiltSet< + ContinueWithRecoveryUiActionEnum>(const [ + _$continueWithRecoveryUiActionEnum_showRecoveryUi, +]); + +Serializer + _$continueWithRecoveryUiActionEnumSerializer = + new _$ContinueWithRecoveryUiActionEnumSerializer(); + +class _$ContinueWithRecoveryUiActionEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'showRecoveryUi': 'show_recovery_ui', + }; + static const Map _fromWire = const { + 'show_recovery_ui': 'showRecoveryUi', + }; + + @override + final Iterable types = const [ContinueWithRecoveryUiActionEnum]; + @override + final String wireName = 'ContinueWithRecoveryUiActionEnum'; + + @override + Object serialize( + Serializers serializers, ContinueWithRecoveryUiActionEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + ContinueWithRecoveryUiActionEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + ContinueWithRecoveryUiActionEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$ContinueWithRecoveryUi extends ContinueWithRecoveryUi { + @override + final ContinueWithRecoveryUiActionEnum action; + @override + final ContinueWithRecoveryUiFlow flow; + + factory _$ContinueWithRecoveryUi( + [void Function(ContinueWithRecoveryUiBuilder)? updates]) => + (new ContinueWithRecoveryUiBuilder()..update(updates))._build(); + + _$ContinueWithRecoveryUi._({required this.action, required this.flow}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + action, r'ContinueWithRecoveryUi', 'action'); + BuiltValueNullFieldError.checkNotNull( + flow, r'ContinueWithRecoveryUi', 'flow'); + } + + @override + ContinueWithRecoveryUi rebuild( + void Function(ContinueWithRecoveryUiBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ContinueWithRecoveryUiBuilder toBuilder() => + new ContinueWithRecoveryUiBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ContinueWithRecoveryUi && + action == other.action && + flow == other.flow; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, action.hashCode); + _$hash = $jc(_$hash, flow.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ContinueWithRecoveryUi') + ..add('action', action) + ..add('flow', flow)) + .toString(); + } +} + +class ContinueWithRecoveryUiBuilder + implements Builder { + _$ContinueWithRecoveryUi? _$v; + + ContinueWithRecoveryUiActionEnum? _action; + ContinueWithRecoveryUiActionEnum? get action => _$this._action; + set action(ContinueWithRecoveryUiActionEnum? action) => + _$this._action = action; + + ContinueWithRecoveryUiFlowBuilder? _flow; + ContinueWithRecoveryUiFlowBuilder get flow => + _$this._flow ??= new ContinueWithRecoveryUiFlowBuilder(); + set flow(ContinueWithRecoveryUiFlowBuilder? flow) => _$this._flow = flow; + + ContinueWithRecoveryUiBuilder() { + ContinueWithRecoveryUi._defaults(this); + } + + ContinueWithRecoveryUiBuilder get _$this { + final $v = _$v; + if ($v != null) { + _action = $v.action; + _flow = $v.flow.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(ContinueWithRecoveryUi other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ContinueWithRecoveryUi; + } + + @override + void update(void Function(ContinueWithRecoveryUiBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ContinueWithRecoveryUi build() => _build(); + + _$ContinueWithRecoveryUi _build() { + _$ContinueWithRecoveryUi _$result; + try { + _$result = _$v ?? + new _$ContinueWithRecoveryUi._( + action: BuiltValueNullFieldError.checkNotNull( + action, r'ContinueWithRecoveryUi', 'action'), + flow: flow.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'flow'; + flow.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ContinueWithRecoveryUi', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/continue_with_recovery_ui_flow.dart b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui_flow.dart new file mode 100644 index 00000000000..d2d8c792bdb --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui_flow.dart @@ -0,0 +1,126 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'continue_with_recovery_ui_flow.g.dart'; + +/// ContinueWithRecoveryUiFlow +/// +/// Properties: +/// * [id] - The ID of the recovery flow +/// * [url] - The URL of the recovery flow +@BuiltValue() +abstract class ContinueWithRecoveryUiFlow implements Built { + /// The ID of the recovery flow + @BuiltValueField(wireName: r'id') + String get id; + + /// The URL of the recovery flow + @BuiltValueField(wireName: r'url') + String? get url; + + ContinueWithRecoveryUiFlow._(); + + factory ContinueWithRecoveryUiFlow([void updates(ContinueWithRecoveryUiFlowBuilder b)]) = _$ContinueWithRecoveryUiFlow; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ContinueWithRecoveryUiFlowBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ContinueWithRecoveryUiFlowSerializer(); +} + +class _$ContinueWithRecoveryUiFlowSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ContinueWithRecoveryUiFlow, _$ContinueWithRecoveryUiFlow]; + + @override + final String wireName = r'ContinueWithRecoveryUiFlow'; + + Iterable _serializeProperties( + Serializers serializers, + ContinueWithRecoveryUiFlow object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'id'; + yield serializers.serialize( + object.id, + specifiedType: const FullType(String), + ); + if (object.url != null) { + yield r'url'; + yield serializers.serialize( + object.url, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + ContinueWithRecoveryUiFlow object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ContinueWithRecoveryUiFlowBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'id': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.id = valueDes; + break; + case r'url': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.url = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ContinueWithRecoveryUiFlow deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ContinueWithRecoveryUiFlowBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/kratos/dart/lib/src/model/continue_with_recovery_ui_flow.g.dart b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui_flow.g.dart new file mode 100644 index 00000000000..74d969a1f60 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_recovery_ui_flow.g.dart @@ -0,0 +1,111 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'continue_with_recovery_ui_flow.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ContinueWithRecoveryUiFlow extends ContinueWithRecoveryUiFlow { + @override + final String id; + @override + final String? url; + + factory _$ContinueWithRecoveryUiFlow( + [void Function(ContinueWithRecoveryUiFlowBuilder)? updates]) => + (new ContinueWithRecoveryUiFlowBuilder()..update(updates))._build(); + + _$ContinueWithRecoveryUiFlow._({required this.id, this.url}) : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'ContinueWithRecoveryUiFlow', 'id'); + } + + @override + ContinueWithRecoveryUiFlow rebuild( + void Function(ContinueWithRecoveryUiFlowBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ContinueWithRecoveryUiFlowBuilder toBuilder() => + new ContinueWithRecoveryUiFlowBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ContinueWithRecoveryUiFlow && + id == other.id && + url == other.url; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jc(_$hash, url.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ContinueWithRecoveryUiFlow') + ..add('id', id) + ..add('url', url)) + .toString(); + } +} + +class ContinueWithRecoveryUiFlowBuilder + implements + Builder { + _$ContinueWithRecoveryUiFlow? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + String? _url; + String? get url => _$this._url; + set url(String? url) => _$this._url = url; + + ContinueWithRecoveryUiFlowBuilder() { + ContinueWithRecoveryUiFlow._defaults(this); + } + + ContinueWithRecoveryUiFlowBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _url = $v.url; + _$v = null; + } + return this; + } + + @override + void replace(ContinueWithRecoveryUiFlow other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ContinueWithRecoveryUiFlow; + } + + @override + void update(void Function(ContinueWithRecoveryUiFlowBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ContinueWithRecoveryUiFlow build() => _build(); + + _$ContinueWithRecoveryUiFlow _build() { + final _$result = _$v ?? + new _$ContinueWithRecoveryUiFlow._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'ContinueWithRecoveryUiFlow', 'id'), + url: url); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.dart b/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.dart index cb2ad20cb4c..985e618e4e2 100644 --- a/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.dart +++ b/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.dart @@ -12,14 +12,14 @@ part 'continue_with_set_ory_session_token.g.dart'; /// Indicates that a session was issued, and the application should use this token for authenticated requests /// /// Properties: -/// * [action] - Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI +/// * [action] - Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString /// * [orySessionToken] - Token is the token of the session @BuiltValue() abstract class ContinueWithSetOrySessionToken implements Built { - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString @BuiltValueField(wireName: r'action') ContinueWithSetOrySessionTokenActionEnum get action; - // enum actionEnum { set_ory_session_token, show_verification_ui, }; + // enum actionEnum { set_ory_session_token, }; /// Token is the token of the session @BuiltValueField(wireName: r'ory_session_token') @@ -126,12 +126,9 @@ class _$ContinueWithSetOrySessionTokenSerializer implements PrimitiveSerializer< class ContinueWithSetOrySessionTokenActionEnum extends EnumClass { - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString @BuiltValueEnumConst(wireName: r'set_ory_session_token') static const ContinueWithSetOrySessionTokenActionEnum setOrySessionToken = _$continueWithSetOrySessionTokenActionEnum_setOrySessionToken; - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI - @BuiltValueEnumConst(wireName: r'show_verification_ui') - static const ContinueWithSetOrySessionTokenActionEnum showVerificationUi = _$continueWithSetOrySessionTokenActionEnum_showVerificationUi; static Serializer get serializer => _$continueWithSetOrySessionTokenActionEnumSerializer; diff --git a/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.g.dart b/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.g.dart index 5ee54a3b442..5dea5b183ae 100644 --- a/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.g.dart +++ b/clients/kratos/dart/lib/src/model/continue_with_set_ory_session_token.g.dart @@ -9,17 +9,12 @@ part of 'continue_with_set_ory_session_token.dart'; const ContinueWithSetOrySessionTokenActionEnum _$continueWithSetOrySessionTokenActionEnum_setOrySessionToken = const ContinueWithSetOrySessionTokenActionEnum._('setOrySessionToken'); -const ContinueWithSetOrySessionTokenActionEnum - _$continueWithSetOrySessionTokenActionEnum_showVerificationUi = - const ContinueWithSetOrySessionTokenActionEnum._('showVerificationUi'); ContinueWithSetOrySessionTokenActionEnum _$continueWithSetOrySessionTokenActionEnumValueOf(String name) { switch (name) { case 'setOrySessionToken': return _$continueWithSetOrySessionTokenActionEnum_setOrySessionToken; - case 'showVerificationUi': - return _$continueWithSetOrySessionTokenActionEnum_showVerificationUi; default: throw new ArgumentError(name); } @@ -29,7 +24,6 @@ final BuiltSet _$continueWithSetOrySessionTokenActionEnumValues = new BuiltSet< ContinueWithSetOrySessionTokenActionEnum>(const [ _$continueWithSetOrySessionTokenActionEnum_setOrySessionToken, - _$continueWithSetOrySessionTokenActionEnum_showVerificationUi, ]); Serializer @@ -40,11 +34,9 @@ class _$ContinueWithSetOrySessionTokenActionEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { 'setOrySessionToken': 'set_ory_session_token', - 'showVerificationUi': 'show_verification_ui', }; static const Map _fromWire = const { 'set_ory_session_token': 'setOrySessionToken', - 'show_verification_ui': 'showVerificationUi', }; @override diff --git a/clients/kratos/dart/lib/src/model/continue_with_settings_ui.dart b/clients/kratos/dart/lib/src/model/continue_with_settings_ui.dart new file mode 100644 index 00000000000..8c7ae4181bc --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_settings_ui.dart @@ -0,0 +1,140 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:ory_kratos_client/src/model/continue_with_settings_ui_flow.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'continue_with_settings_ui.g.dart'; + +/// Indicates, that the UI flow could be continued by showing a settings ui +/// +/// Properties: +/// * [action] - Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString +/// * [flow] +@BuiltValue() +abstract class ContinueWithSettingsUi implements Built { + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + @BuiltValueField(wireName: r'action') + ContinueWithSettingsUiActionEnum get action; + // enum actionEnum { show_settings_ui, }; + + @BuiltValueField(wireName: r'flow') + ContinueWithSettingsUiFlow get flow; + + ContinueWithSettingsUi._(); + + factory ContinueWithSettingsUi([void updates(ContinueWithSettingsUiBuilder b)]) = _$ContinueWithSettingsUi; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(ContinueWithSettingsUiBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$ContinueWithSettingsUiSerializer(); +} + +class _$ContinueWithSettingsUiSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [ContinueWithSettingsUi, _$ContinueWithSettingsUi]; + + @override + final String wireName = r'ContinueWithSettingsUi'; + + Iterable _serializeProperties( + Serializers serializers, + ContinueWithSettingsUi object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + yield r'action'; + yield serializers.serialize( + object.action, + specifiedType: const FullType(ContinueWithSettingsUiActionEnum), + ); + yield r'flow'; + yield serializers.serialize( + object.flow, + specifiedType: const FullType(ContinueWithSettingsUiFlow), + ); + } + + @override + Object serialize( + Serializers serializers, + ContinueWithSettingsUi object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required ContinueWithSettingsUiBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'action': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(ContinueWithSettingsUiActionEnum), + ) as ContinueWithSettingsUiActionEnum; + result.action = valueDes; + break; + case r'flow': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(ContinueWithSettingsUiFlow), + ) as ContinueWithSettingsUiFlow; + result.flow.replace(valueDes); + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + ContinueWithSettingsUi deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = ContinueWithSettingsUiBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + +class ContinueWithSettingsUiActionEnum extends EnumClass { + + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + @BuiltValueEnumConst(wireName: r'show_settings_ui') + static const ContinueWithSettingsUiActionEnum showSettingsUi = _$continueWithSettingsUiActionEnum_showSettingsUi; + + static Serializer get serializer => _$continueWithSettingsUiActionEnumSerializer; + + const ContinueWithSettingsUiActionEnum._(String name): super(name); + + static BuiltSet get values => _$continueWithSettingsUiActionEnumValues; + static ContinueWithSettingsUiActionEnum valueOf(String name) => _$continueWithSettingsUiActionEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/continue_with_settings_ui.g.dart b/clients/kratos/dart/lib/src/model/continue_with_settings_ui.g.dart new file mode 100644 index 00000000000..924c589b7eb --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_settings_ui.g.dart @@ -0,0 +1,180 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'continue_with_settings_ui.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const ContinueWithSettingsUiActionEnum + _$continueWithSettingsUiActionEnum_showSettingsUi = + const ContinueWithSettingsUiActionEnum._('showSettingsUi'); + +ContinueWithSettingsUiActionEnum _$continueWithSettingsUiActionEnumValueOf( + String name) { + switch (name) { + case 'showSettingsUi': + return _$continueWithSettingsUiActionEnum_showSettingsUi; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$continueWithSettingsUiActionEnumValues = new BuiltSet< + ContinueWithSettingsUiActionEnum>(const [ + _$continueWithSettingsUiActionEnum_showSettingsUi, +]); + +Serializer + _$continueWithSettingsUiActionEnumSerializer = + new _$ContinueWithSettingsUiActionEnumSerializer(); + +class _$ContinueWithSettingsUiActionEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'showSettingsUi': 'show_settings_ui', + }; + static const Map _fromWire = const { + 'show_settings_ui': 'showSettingsUi', + }; + + @override + final Iterable types = const [ContinueWithSettingsUiActionEnum]; + @override + final String wireName = 'ContinueWithSettingsUiActionEnum'; + + @override + Object serialize( + Serializers serializers, ContinueWithSettingsUiActionEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + ContinueWithSettingsUiActionEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + ContinueWithSettingsUiActionEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +class _$ContinueWithSettingsUi extends ContinueWithSettingsUi { + @override + final ContinueWithSettingsUiActionEnum action; + @override + final ContinueWithSettingsUiFlow flow; + + factory _$ContinueWithSettingsUi( + [void Function(ContinueWithSettingsUiBuilder)? updates]) => + (new ContinueWithSettingsUiBuilder()..update(updates))._build(); + + _$ContinueWithSettingsUi._({required this.action, required this.flow}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + action, r'ContinueWithSettingsUi', 'action'); + BuiltValueNullFieldError.checkNotNull( + flow, r'ContinueWithSettingsUi', 'flow'); + } + + @override + ContinueWithSettingsUi rebuild( + void Function(ContinueWithSettingsUiBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ContinueWithSettingsUiBuilder toBuilder() => + new ContinueWithSettingsUiBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ContinueWithSettingsUi && + action == other.action && + flow == other.flow; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, action.hashCode); + _$hash = $jc(_$hash, flow.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ContinueWithSettingsUi') + ..add('action', action) + ..add('flow', flow)) + .toString(); + } +} + +class ContinueWithSettingsUiBuilder + implements Builder { + _$ContinueWithSettingsUi? _$v; + + ContinueWithSettingsUiActionEnum? _action; + ContinueWithSettingsUiActionEnum? get action => _$this._action; + set action(ContinueWithSettingsUiActionEnum? action) => + _$this._action = action; + + ContinueWithSettingsUiFlowBuilder? _flow; + ContinueWithSettingsUiFlowBuilder get flow => + _$this._flow ??= new ContinueWithSettingsUiFlowBuilder(); + set flow(ContinueWithSettingsUiFlowBuilder? flow) => _$this._flow = flow; + + ContinueWithSettingsUiBuilder() { + ContinueWithSettingsUi._defaults(this); + } + + ContinueWithSettingsUiBuilder get _$this { + final $v = _$v; + if ($v != null) { + _action = $v.action; + _flow = $v.flow.toBuilder(); + _$v = null; + } + return this; + } + + @override + void replace(ContinueWithSettingsUi other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ContinueWithSettingsUi; + } + + @override + void update(void Function(ContinueWithSettingsUiBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ContinueWithSettingsUi build() => _build(); + + _$ContinueWithSettingsUi _build() { + _$ContinueWithSettingsUi _$result; + try { + _$result = _$v ?? + new _$ContinueWithSettingsUi._( + action: BuiltValueNullFieldError.checkNotNull( + action, r'ContinueWithSettingsUi', 'action'), + flow: flow.build()); + } catch (_) { + late String _$failedField; + try { + _$failedField = 'flow'; + flow.build(); + } catch (e) { + throw new BuiltValueNestedFieldError( + r'ContinueWithSettingsUi', _$failedField, e.toString()); + } + rethrow; + } + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/client/dart/lib/src/model/stripe_customer.dart b/clients/kratos/dart/lib/src/model/continue_with_settings_ui_flow.dart similarity index 60% rename from clients/client/dart/lib/src/model/stripe_customer.dart rename to clients/kratos/dart/lib/src/model/continue_with_settings_ui_flow.dart index 8902c5ffdf9..87eeb390589 100644 --- a/clients/client/dart/lib/src/model/stripe_customer.dart +++ b/clients/kratos/dart/lib/src/model/continue_with_settings_ui_flow.dart @@ -6,53 +6,52 @@ import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; -part 'stripe_customer.g.dart'; +part 'continue_with_settings_ui_flow.g.dart'; -/// StripeCustomer +/// ContinueWithSettingsUiFlow /// /// Properties: -/// * [id] +/// * [id] - The ID of the settings flow @BuiltValue() -abstract class StripeCustomer implements Built { +abstract class ContinueWithSettingsUiFlow implements Built { + /// The ID of the settings flow @BuiltValueField(wireName: r'id') - String? get id; + String get id; - StripeCustomer._(); + ContinueWithSettingsUiFlow._(); - factory StripeCustomer([void updates(StripeCustomerBuilder b)]) = _$StripeCustomer; + factory ContinueWithSettingsUiFlow([void updates(ContinueWithSettingsUiFlowBuilder b)]) = _$ContinueWithSettingsUiFlow; @BuiltValueHook(initializeBuilder: true) - static void _defaults(StripeCustomerBuilder b) => b; + static void _defaults(ContinueWithSettingsUiFlowBuilder b) => b; @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$StripeCustomerSerializer(); + static Serializer get serializer => _$ContinueWithSettingsUiFlowSerializer(); } -class _$StripeCustomerSerializer implements PrimitiveSerializer { +class _$ContinueWithSettingsUiFlowSerializer implements PrimitiveSerializer { @override - final Iterable types = const [StripeCustomer, _$StripeCustomer]; + final Iterable types = const [ContinueWithSettingsUiFlow, _$ContinueWithSettingsUiFlow]; @override - final String wireName = r'StripeCustomer'; + final String wireName = r'ContinueWithSettingsUiFlow'; Iterable _serializeProperties( Serializers serializers, - StripeCustomer object, { + ContinueWithSettingsUiFlow object, { FullType specifiedType = FullType.unspecified, }) sync* { - if (object.id != null) { - yield r'id'; - yield serializers.serialize( - object.id, - specifiedType: const FullType(String), - ); - } + yield r'id'; + yield serializers.serialize( + object.id, + specifiedType: const FullType(String), + ); } @override Object serialize( Serializers serializers, - StripeCustomer object, { + ContinueWithSettingsUiFlow object, { FullType specifiedType = FullType.unspecified, }) { return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); @@ -63,7 +62,7 @@ class _$StripeCustomerSerializer implements PrimitiveSerializer Object serialized, { FullType specifiedType = FullType.unspecified, required List serializedList, - required StripeCustomerBuilder result, + required ContinueWithSettingsUiFlowBuilder result, required List unhandled, }) { for (var i = 0; i < serializedList.length; i += 2) { @@ -86,12 +85,12 @@ class _$StripeCustomerSerializer implements PrimitiveSerializer } @override - StripeCustomer deserialize( + ContinueWithSettingsUiFlow deserialize( Serializers serializers, Object serialized, { FullType specifiedType = FullType.unspecified, }) { - final result = StripeCustomerBuilder(); + final result = ContinueWithSettingsUiFlowBuilder(); final serializedList = (serialized as Iterable).toList(); final unhandled = []; _deserializeProperties( diff --git a/clients/kratos/dart/lib/src/model/continue_with_settings_ui_flow.g.dart b/clients/kratos/dart/lib/src/model/continue_with_settings_ui_flow.g.dart new file mode 100644 index 00000000000..544075b3bd6 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/continue_with_settings_ui_flow.g.dart @@ -0,0 +1,99 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'continue_with_settings_ui_flow.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$ContinueWithSettingsUiFlow extends ContinueWithSettingsUiFlow { + @override + final String id; + + factory _$ContinueWithSettingsUiFlow( + [void Function(ContinueWithSettingsUiFlowBuilder)? updates]) => + (new ContinueWithSettingsUiFlowBuilder()..update(updates))._build(); + + _$ContinueWithSettingsUiFlow._({required this.id}) : super._() { + BuiltValueNullFieldError.checkNotNull( + id, r'ContinueWithSettingsUiFlow', 'id'); + } + + @override + ContinueWithSettingsUiFlow rebuild( + void Function(ContinueWithSettingsUiFlowBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + ContinueWithSettingsUiFlowBuilder toBuilder() => + new ContinueWithSettingsUiFlowBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is ContinueWithSettingsUiFlow && id == other.id; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, id.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'ContinueWithSettingsUiFlow') + ..add('id', id)) + .toString(); + } +} + +class ContinueWithSettingsUiFlowBuilder + implements + Builder { + _$ContinueWithSettingsUiFlow? _$v; + + String? _id; + String? get id => _$this._id; + set id(String? id) => _$this._id = id; + + ContinueWithSettingsUiFlowBuilder() { + ContinueWithSettingsUiFlow._defaults(this); + } + + ContinueWithSettingsUiFlowBuilder get _$this { + final $v = _$v; + if ($v != null) { + _id = $v.id; + _$v = null; + } + return this; + } + + @override + void replace(ContinueWithSettingsUiFlow other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$ContinueWithSettingsUiFlow; + } + + @override + void update(void Function(ContinueWithSettingsUiFlowBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + ContinueWithSettingsUiFlow build() => _build(); + + _$ContinueWithSettingsUiFlow _build() { + final _$result = _$v ?? + new _$ContinueWithSettingsUiFlow._( + id: BuiltValueNullFieldError.checkNotNull( + id, r'ContinueWithSettingsUiFlow', 'id')); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/continue_with_verification_ui.dart b/clients/kratos/dart/lib/src/model/continue_with_verification_ui.dart index 569f3a6967e..8c83adf9456 100644 --- a/clients/kratos/dart/lib/src/model/continue_with_verification_ui.dart +++ b/clients/kratos/dart/lib/src/model/continue_with_verification_ui.dart @@ -13,14 +13,14 @@ part 'continue_with_verification_ui.g.dart'; /// Indicates, that the UI flow could be continued by showing a verification ui /// /// Properties: -/// * [action] - Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI +/// * [action] - Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString /// * [flow] @BuiltValue() abstract class ContinueWithVerificationUi implements Built { - /// Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString @BuiltValueField(wireName: r'action') ContinueWithVerificationUiActionEnum get action; - // enum actionEnum { set_ory_session_token, show_verification_ui, }; + // enum actionEnum { show_verification_ui, }; @BuiltValueField(wireName: r'flow') ContinueWithVerificationUiFlow get flow; @@ -126,10 +126,7 @@ class _$ContinueWithVerificationUiSerializer implements PrimitiveSerializer _$continueWithVerificationUiActionEnumValues = new BuiltSet< ContinueWithVerificationUiActionEnum>(const [ - _$continueWithVerificationUiActionEnum_setOrySessionToken, _$continueWithVerificationUiActionEnum_showVerificationUi, ]); @@ -39,11 +33,9 @@ Serializer class _$ContinueWithVerificationUiActionEnumSerializer implements PrimitiveSerializer { static const Map _toWire = const { - 'setOrySessionToken': 'set_ory_session_token', 'showVerificationUi': 'show_verification_ui', }; static const Map _fromWire = const { - 'set_ory_session_token': 'setOrySessionToken', 'show_verification_ui': 'showVerificationUi', }; diff --git a/clients/kratos/dart/lib/src/model/create_identity_body.dart b/clients/kratos/dart/lib/src/model/create_identity_body.dart index 65c25553b76..c6e1998de4b 100644 --- a/clients/kratos/dart/lib/src/model/create_identity_body.dart +++ b/clients/kratos/dart/lib/src/model/create_identity_body.dart @@ -7,7 +7,6 @@ import 'package:ory_kratos_client/src/model/identity_with_credentials.dart'; import 'package:ory_kratos_client/src/model/recovery_identity_address.dart'; import 'package:built_collection/built_collection.dart'; import 'package:ory_kratos_client/src/model/verifiable_identity_address.dart'; -import 'package:ory_kratos_client/src/model/identity_state.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,7 +21,7 @@ part 'create_identity_body.g.dart'; /// * [metadataPublic] - Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. /// * [recoveryAddresses] - RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. /// * [schemaId] - SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. -/// * [state] +/// * [state] - State is the identity's state. active StateActive inactive StateInactive /// * [traits] - Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. /// * [verifiableAddresses] - VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. @BuiltValue() @@ -46,8 +45,9 @@ abstract class CreateIdentityBody implements Built get serializer => _$createIdentityBodyStateEnumSerializer; + + const CreateIdentityBodyStateEnum._(String name): super(name); + + static BuiltSet get values => _$createIdentityBodyStateEnumValues; + static CreateIdentityBodyStateEnum valueOf(String name) => _$createIdentityBodyStateEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/create_identity_body.g.dart b/clients/kratos/dart/lib/src/model/create_identity_body.g.dart index 0ad29f1dc83..18d44ff454d 100644 --- a/clients/kratos/dart/lib/src/model/create_identity_body.g.dart +++ b/clients/kratos/dart/lib/src/model/create_identity_body.g.dart @@ -6,6 +6,62 @@ part of 'create_identity_body.dart'; // BuiltValueGenerator // ************************************************************************** +const CreateIdentityBodyStateEnum _$createIdentityBodyStateEnum_active = + const CreateIdentityBodyStateEnum._('active'); +const CreateIdentityBodyStateEnum _$createIdentityBodyStateEnum_inactive = + const CreateIdentityBodyStateEnum._('inactive'); + +CreateIdentityBodyStateEnum _$createIdentityBodyStateEnumValueOf(String name) { + switch (name) { + case 'active': + return _$createIdentityBodyStateEnum_active; + case 'inactive': + return _$createIdentityBodyStateEnum_inactive; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$createIdentityBodyStateEnumValues = new BuiltSet< + CreateIdentityBodyStateEnum>(const [ + _$createIdentityBodyStateEnum_active, + _$createIdentityBodyStateEnum_inactive, +]); + +Serializer + _$createIdentityBodyStateEnumSerializer = + new _$CreateIdentityBodyStateEnumSerializer(); + +class _$CreateIdentityBodyStateEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + static const Map _fromWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + + @override + final Iterable types = const [CreateIdentityBodyStateEnum]; + @override + final String wireName = 'CreateIdentityBodyStateEnum'; + + @override + Object serialize(Serializers serializers, CreateIdentityBodyStateEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + CreateIdentityBodyStateEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + CreateIdentityBodyStateEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$CreateIdentityBody extends CreateIdentityBody { @override final IdentityWithCredentials? credentials; @@ -18,7 +74,7 @@ class _$CreateIdentityBody extends CreateIdentityBody { @override final String schemaId; @override - final IdentityState? state; + final CreateIdentityBodyStateEnum? state; @override final JsonObject traits; @override @@ -128,9 +184,9 @@ class CreateIdentityBodyBuilder String? get schemaId => _$this._schemaId; set schemaId(String? schemaId) => _$this._schemaId = schemaId; - IdentityState? _state; - IdentityState? get state => _$this._state; - set state(IdentityState? state) => _$this._state = state; + CreateIdentityBodyStateEnum? _state; + CreateIdentityBodyStateEnum? get state => _$this._state; + set state(CreateIdentityBodyStateEnum? state) => _$this._state = state; JsonObject? _traits; JsonObject? get traits => _$this._traits; diff --git a/clients/kratos/dart/lib/src/model/identity.dart b/clients/kratos/dart/lib/src/model/identity.dart index c4cb7801dcd..7942dbf9ddc 100644 --- a/clients/kratos/dart/lib/src/model/identity.dart +++ b/clients/kratos/dart/lib/src/model/identity.dart @@ -7,7 +7,6 @@ import 'package:ory_kratos_client/src/model/identity_credentials.dart'; import 'package:ory_kratos_client/src/model/recovery_identity_address.dart'; import 'package:built_collection/built_collection.dart'; import 'package:ory_kratos_client/src/model/verifiable_identity_address.dart'; -import 'package:ory_kratos_client/src/model/identity_state.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -22,10 +21,11 @@ part 'identity.g.dart'; /// * [id] - ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB. /// * [metadataAdmin] - NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- /// * [metadataPublic] - NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- +/// * [organizationId] /// * [recoveryAddresses] - RecoveryAddresses contains all the addresses that can be used to recover an identity. /// * [schemaId] - SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. /// * [schemaUrl] - SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url -/// * [state] +/// * [state] - State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive /// * [stateChangedAt] /// * [traits] - Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. @@ -52,6 +52,9 @@ abstract class Identity implements Built { @BuiltValueField(wireName: r'metadata_public') JsonObject? get metadataPublic; + @BuiltValueField(wireName: r'organization_id') + String? get organizationId; + /// RecoveryAddresses contains all the addresses that can be used to recover an identity. @BuiltValueField(wireName: r'recovery_addresses') BuiltList? get recoveryAddresses; @@ -64,8 +67,9 @@ abstract class Identity implements Built { @BuiltValueField(wireName: r'schema_url') String get schemaUrl; + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive @BuiltValueField(wireName: r'state') - IdentityState? get state; + IdentityStateEnum? get state; // enum stateEnum { active, inactive, }; @BuiltValueField(wireName: r'state_changed_at') @@ -139,6 +143,13 @@ class _$IdentitySerializer implements PrimitiveSerializer { specifiedType: const FullType.nullable(JsonObject), ); } + if (object.organizationId != null) { + yield r'organization_id'; + yield serializers.serialize( + object.organizationId, + specifiedType: const FullType.nullable(String), + ); + } if (object.recoveryAddresses != null) { yield r'recovery_addresses'; yield serializers.serialize( @@ -160,7 +171,7 @@ class _$IdentitySerializer implements PrimitiveSerializer { yield r'state'; yield serializers.serialize( object.state, - specifiedType: const FullType(IdentityState), + specifiedType: const FullType(IdentityStateEnum), ); } if (object.stateChangedAt != null) { @@ -249,6 +260,14 @@ class _$IdentitySerializer implements PrimitiveSerializer { if (valueDes == null) continue; result.metadataPublic = valueDes; break; + case r'organization_id': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType.nullable(String), + ) as String?; + if (valueDes == null) continue; + result.organizationId = valueDes; + break; case r'recovery_addresses': final valueDes = serializers.deserialize( value, @@ -273,8 +292,8 @@ class _$IdentitySerializer implements PrimitiveSerializer { case r'state': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(IdentityState), - ) as IdentityState; + specifiedType: const FullType(IdentityStateEnum), + ) as IdentityStateEnum; result.state = valueDes; break; case r'state_changed_at': @@ -335,3 +354,20 @@ class _$IdentitySerializer implements PrimitiveSerializer { } } +class IdentityStateEnum extends EnumClass { + + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + @BuiltValueEnumConst(wireName: r'active') + static const IdentityStateEnum active = _$identityStateEnum_active; + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + @BuiltValueEnumConst(wireName: r'inactive') + static const IdentityStateEnum inactive = _$identityStateEnum_inactive; + + static Serializer get serializer => _$identityStateEnumSerializer; + + const IdentityStateEnum._(String name): super(name); + + static BuiltSet get values => _$identityStateEnumValues; + static IdentityStateEnum valueOf(String name) => _$identityStateEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/identity.g.dart b/clients/kratos/dart/lib/src/model/identity.g.dart index 6a997de59b1..984cde84c93 100644 --- a/clients/kratos/dart/lib/src/model/identity.g.dart +++ b/clients/kratos/dart/lib/src/model/identity.g.dart @@ -6,6 +6,59 @@ part of 'identity.dart'; // BuiltValueGenerator // ************************************************************************** +const IdentityStateEnum _$identityStateEnum_active = + const IdentityStateEnum._('active'); +const IdentityStateEnum _$identityStateEnum_inactive = + const IdentityStateEnum._('inactive'); + +IdentityStateEnum _$identityStateEnumValueOf(String name) { + switch (name) { + case 'active': + return _$identityStateEnum_active; + case 'inactive': + return _$identityStateEnum_inactive; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$identityStateEnumValues = + new BuiltSet(const [ + _$identityStateEnum_active, + _$identityStateEnum_inactive, +]); + +Serializer _$identityStateEnumSerializer = + new _$IdentityStateEnumSerializer(); + +class _$IdentityStateEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + static const Map _fromWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + + @override + final Iterable types = const [IdentityStateEnum]; + @override + final String wireName = 'IdentityStateEnum'; + + @override + Object serialize(Serializers serializers, IdentityStateEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + IdentityStateEnum deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + IdentityStateEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$Identity extends Identity { @override final DateTime? createdAt; @@ -18,13 +71,15 @@ class _$Identity extends Identity { @override final JsonObject? metadataPublic; @override + final String? organizationId; + @override final BuiltList? recoveryAddresses; @override final String schemaId; @override final String schemaUrl; @override - final IdentityState? state; + final IdentityStateEnum? state; @override final DateTime? stateChangedAt; @override @@ -43,6 +98,7 @@ class _$Identity extends Identity { required this.id, this.metadataAdmin, this.metadataPublic, + this.organizationId, this.recoveryAddresses, required this.schemaId, required this.schemaUrl, @@ -73,6 +129,7 @@ class _$Identity extends Identity { id == other.id && metadataAdmin == other.metadataAdmin && metadataPublic == other.metadataPublic && + organizationId == other.organizationId && recoveryAddresses == other.recoveryAddresses && schemaId == other.schemaId && schemaUrl == other.schemaUrl && @@ -91,6 +148,7 @@ class _$Identity extends Identity { _$hash = $jc(_$hash, id.hashCode); _$hash = $jc(_$hash, metadataAdmin.hashCode); _$hash = $jc(_$hash, metadataPublic.hashCode); + _$hash = $jc(_$hash, organizationId.hashCode); _$hash = $jc(_$hash, recoveryAddresses.hashCode); _$hash = $jc(_$hash, schemaId.hashCode); _$hash = $jc(_$hash, schemaUrl.hashCode); @@ -111,6 +169,7 @@ class _$Identity extends Identity { ..add('id', id) ..add('metadataAdmin', metadataAdmin) ..add('metadataPublic', metadataPublic) + ..add('organizationId', organizationId) ..add('recoveryAddresses', recoveryAddresses) ..add('schemaId', schemaId) ..add('schemaUrl', schemaUrl) @@ -150,6 +209,11 @@ class IdentityBuilder implements Builder { set metadataPublic(JsonObject? metadataPublic) => _$this._metadataPublic = metadataPublic; + String? _organizationId; + String? get organizationId => _$this._organizationId; + set organizationId(String? organizationId) => + _$this._organizationId = organizationId; + ListBuilder? _recoveryAddresses; ListBuilder get recoveryAddresses => _$this._recoveryAddresses ??= new ListBuilder(); @@ -165,9 +229,9 @@ class IdentityBuilder implements Builder { String? get schemaUrl => _$this._schemaUrl; set schemaUrl(String? schemaUrl) => _$this._schemaUrl = schemaUrl; - IdentityState? _state; - IdentityState? get state => _$this._state; - set state(IdentityState? state) => _$this._state = state; + IdentityStateEnum? _state; + IdentityStateEnum? get state => _$this._state; + set state(IdentityStateEnum? state) => _$this._state = state; DateTime? _stateChangedAt; DateTime? get stateChangedAt => _$this._stateChangedAt; @@ -202,6 +266,7 @@ class IdentityBuilder implements Builder { _id = $v.id; _metadataAdmin = $v.metadataAdmin; _metadataPublic = $v.metadataPublic; + _organizationId = $v.organizationId; _recoveryAddresses = $v.recoveryAddresses?.toBuilder(); _schemaId = $v.schemaId; _schemaUrl = $v.schemaUrl; @@ -239,6 +304,7 @@ class IdentityBuilder implements Builder { id: BuiltValueNullFieldError.checkNotNull(id, r'Identity', 'id'), metadataAdmin: metadataAdmin, metadataPublic: metadataPublic, + organizationId: organizationId, recoveryAddresses: _recoveryAddresses?.build(), schemaId: BuiltValueNullFieldError.checkNotNull( schemaId, r'Identity', 'schemaId'), diff --git a/clients/kratos/dart/lib/src/model/identity_credentials.dart b/clients/kratos/dart/lib/src/model/identity_credentials.dart index 9c75a043215..4c5f460a01d 100644 --- a/clients/kratos/dart/lib/src/model/identity_credentials.dart +++ b/clients/kratos/dart/lib/src/model/identity_credentials.dart @@ -4,7 +4,6 @@ // ignore_for_file: unused_element import 'package:built_collection/built_collection.dart'; -import 'package:ory_kratos_client/src/model/identity_credentials_type.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -17,7 +16,7 @@ part 'identity_credentials.g.dart'; /// * [config] /// * [createdAt] - CreatedAt is a helper struct field for gobuffalo.pop. /// * [identifiers] - Identifiers represents a list of unique identifiers this credential type matches. -/// * [type] +/// * [type] - Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. /// * [version] - Version refers to the version of the credential. Useful when changing the config schema. @BuiltValue() @@ -33,9 +32,10 @@ abstract class IdentityCredentials implements Built? get identifiers; + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 @BuiltValueField(wireName: r'type') - IdentityCredentialsType? get type; - // enum typeEnum { password, totp, oidc, webauthn, lookup_secret, }; + IdentityCredentialsTypeEnum? get type; + // enum typeEnum { password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery, }; /// UpdatedAt is a helper struct field for gobuffalo.pop. @BuiltValueField(wireName: r'updated_at') @@ -93,7 +93,7 @@ class _$IdentityCredentialsSerializer implements PrimitiveSerializer get serializer => _$identityCredentialsTypeEnumSerializer; + + const IdentityCredentialsTypeEnum._(String name): super(name); + + static BuiltSet get values => _$identityCredentialsTypeEnumValues; + static IdentityCredentialsTypeEnum valueOf(String name) => _$identityCredentialsTypeEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/identity_credentials.g.dart b/clients/kratos/dart/lib/src/model/identity_credentials.g.dart index 2d6931d3d17..3500cccf166 100644 --- a/clients/kratos/dart/lib/src/model/identity_credentials.g.dart +++ b/clients/kratos/dart/lib/src/model/identity_credentials.g.dart @@ -6,6 +6,104 @@ part of 'identity_credentials.dart'; // BuiltValueGenerator // ************************************************************************** +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_password = + const IdentityCredentialsTypeEnum._('password'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_oidc = + const IdentityCredentialsTypeEnum._('oidc'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_totp = + const IdentityCredentialsTypeEnum._('totp'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_lookupSecret = + const IdentityCredentialsTypeEnum._('lookupSecret'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_webauthn = + const IdentityCredentialsTypeEnum._('webauthn'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_code = + const IdentityCredentialsTypeEnum._('code'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_linkRecovery = + const IdentityCredentialsTypeEnum._('linkRecovery'); +const IdentityCredentialsTypeEnum _$identityCredentialsTypeEnum_codeRecovery = + const IdentityCredentialsTypeEnum._('codeRecovery'); + +IdentityCredentialsTypeEnum _$identityCredentialsTypeEnumValueOf(String name) { + switch (name) { + case 'password': + return _$identityCredentialsTypeEnum_password; + case 'oidc': + return _$identityCredentialsTypeEnum_oidc; + case 'totp': + return _$identityCredentialsTypeEnum_totp; + case 'lookupSecret': + return _$identityCredentialsTypeEnum_lookupSecret; + case 'webauthn': + return _$identityCredentialsTypeEnum_webauthn; + case 'code': + return _$identityCredentialsTypeEnum_code; + case 'linkRecovery': + return _$identityCredentialsTypeEnum_linkRecovery; + case 'codeRecovery': + return _$identityCredentialsTypeEnum_codeRecovery; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$identityCredentialsTypeEnumValues = new BuiltSet< + IdentityCredentialsTypeEnum>(const [ + _$identityCredentialsTypeEnum_password, + _$identityCredentialsTypeEnum_oidc, + _$identityCredentialsTypeEnum_totp, + _$identityCredentialsTypeEnum_lookupSecret, + _$identityCredentialsTypeEnum_webauthn, + _$identityCredentialsTypeEnum_code, + _$identityCredentialsTypeEnum_linkRecovery, + _$identityCredentialsTypeEnum_codeRecovery, +]); + +Serializer + _$identityCredentialsTypeEnumSerializer = + new _$IdentityCredentialsTypeEnumSerializer(); + +class _$IdentityCredentialsTypeEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookupSecret': 'lookup_secret', + 'webauthn': 'webauthn', + 'code': 'code', + 'linkRecovery': 'link_recovery', + 'codeRecovery': 'code_recovery', + }; + static const Map _fromWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookup_secret': 'lookupSecret', + 'webauthn': 'webauthn', + 'code': 'code', + 'link_recovery': 'linkRecovery', + 'code_recovery': 'codeRecovery', + }; + + @override + final Iterable types = const [IdentityCredentialsTypeEnum]; + @override + final String wireName = 'IdentityCredentialsTypeEnum'; + + @override + Object serialize(Serializers serializers, IdentityCredentialsTypeEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + IdentityCredentialsTypeEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + IdentityCredentialsTypeEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$IdentityCredentials extends IdentityCredentials { @override final JsonObject? config; @@ -14,7 +112,7 @@ class _$IdentityCredentials extends IdentityCredentials { @override final BuiltList? identifiers; @override - final IdentityCredentialsType? type; + final IdentityCredentialsTypeEnum? type; @override final DateTime? updatedAt; @override @@ -98,9 +196,9 @@ class IdentityCredentialsBuilder set identifiers(ListBuilder? identifiers) => _$this._identifiers = identifiers; - IdentityCredentialsType? _type; - IdentityCredentialsType? get type => _$this._type; - set type(IdentityCredentialsType? type) => _$this._type = type; + IdentityCredentialsTypeEnum? _type; + IdentityCredentialsTypeEnum? get type => _$this._type; + set type(IdentityCredentialsTypeEnum? type) => _$this._type = type; DateTime? _updatedAt; DateTime? get updatedAt => _$this._updatedAt; diff --git a/clients/kratos/dart/lib/src/model/identity_credentials_code.dart b/clients/kratos/dart/lib/src/model/identity_credentials_code.dart new file mode 100644 index 00000000000..a484de8e843 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/identity_credentials_code.dart @@ -0,0 +1,128 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'identity_credentials_code.g.dart'; + +/// CredentialsCode represents a one time login/registration code +/// +/// Properties: +/// * [addressType] - The type of the address for this code +/// * [usedAt] +@BuiltValue() +abstract class IdentityCredentialsCode implements Built { + /// The type of the address for this code + @BuiltValueField(wireName: r'address_type') + String? get addressType; + + @BuiltValueField(wireName: r'used_at') + DateTime? get usedAt; + + IdentityCredentialsCode._(); + + factory IdentityCredentialsCode([void updates(IdentityCredentialsCodeBuilder b)]) = _$IdentityCredentialsCode; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(IdentityCredentialsCodeBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$IdentityCredentialsCodeSerializer(); +} + +class _$IdentityCredentialsCodeSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [IdentityCredentialsCode, _$IdentityCredentialsCode]; + + @override + final String wireName = r'IdentityCredentialsCode'; + + Iterable _serializeProperties( + Serializers serializers, + IdentityCredentialsCode object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.addressType != null) { + yield r'address_type'; + yield serializers.serialize( + object.addressType, + specifiedType: const FullType(String), + ); + } + if (object.usedAt != null) { + yield r'used_at'; + yield serializers.serialize( + object.usedAt, + specifiedType: const FullType.nullable(DateTime), + ); + } + } + + @override + Object serialize( + Serializers serializers, + IdentityCredentialsCode object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required IdentityCredentialsCodeBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'address_type': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.addressType = valueDes; + break; + case r'used_at': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType.nullable(DateTime), + ) as DateTime?; + if (valueDes == null) continue; + result.usedAt = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + IdentityCredentialsCode deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = IdentityCredentialsCodeBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/kratos/dart/lib/src/model/identity_credentials_code.g.dart b/clients/kratos/dart/lib/src/model/identity_credentials_code.g.dart new file mode 100644 index 00000000000..97ca16d441a --- /dev/null +++ b/clients/kratos/dart/lib/src/model/identity_credentials_code.g.dart @@ -0,0 +1,106 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'identity_credentials_code.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$IdentityCredentialsCode extends IdentityCredentialsCode { + @override + final String? addressType; + @override + final DateTime? usedAt; + + factory _$IdentityCredentialsCode( + [void Function(IdentityCredentialsCodeBuilder)? updates]) => + (new IdentityCredentialsCodeBuilder()..update(updates))._build(); + + _$IdentityCredentialsCode._({this.addressType, this.usedAt}) : super._(); + + @override + IdentityCredentialsCode rebuild( + void Function(IdentityCredentialsCodeBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + IdentityCredentialsCodeBuilder toBuilder() => + new IdentityCredentialsCodeBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is IdentityCredentialsCode && + addressType == other.addressType && + usedAt == other.usedAt; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, addressType.hashCode); + _$hash = $jc(_$hash, usedAt.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'IdentityCredentialsCode') + ..add('addressType', addressType) + ..add('usedAt', usedAt)) + .toString(); + } +} + +class IdentityCredentialsCodeBuilder + implements + Builder { + _$IdentityCredentialsCode? _$v; + + String? _addressType; + String? get addressType => _$this._addressType; + set addressType(String? addressType) => _$this._addressType = addressType; + + DateTime? _usedAt; + DateTime? get usedAt => _$this._usedAt; + set usedAt(DateTime? usedAt) => _$this._usedAt = usedAt; + + IdentityCredentialsCodeBuilder() { + IdentityCredentialsCode._defaults(this); + } + + IdentityCredentialsCodeBuilder get _$this { + final $v = _$v; + if ($v != null) { + _addressType = $v.addressType; + _usedAt = $v.usedAt; + _$v = null; + } + return this; + } + + @override + void replace(IdentityCredentialsCode other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$IdentityCredentialsCode; + } + + @override + void update(void Function(IdentityCredentialsCodeBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + IdentityCredentialsCode build() => _build(); + + _$IdentityCredentialsCode _build() { + final _$result = _$v ?? + new _$IdentityCredentialsCode._( + addressType: addressType, usedAt: usedAt); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/identity_credentials_oidc_provider.dart b/clients/kratos/dart/lib/src/model/identity_credentials_oidc_provider.dart index 29b830a57c9..6faf3609670 100644 --- a/clients/kratos/dart/lib/src/model/identity_credentials_oidc_provider.dart +++ b/clients/kratos/dart/lib/src/model/identity_credentials_oidc_provider.dart @@ -14,6 +14,7 @@ part 'identity_credentials_oidc_provider.g.dart'; /// * [initialAccessToken] /// * [initialIdToken] /// * [initialRefreshToken] +/// * [organization] /// * [provider] /// * [subject] @BuiltValue() @@ -27,6 +28,9 @@ abstract class IdentityCredentialsOidcProvider implements Built _$this._initialRefreshToken = initialRefreshToken; + String? _organization; + String? get organization => _$this._organization; + set organization(String? organization) => _$this._organization = organization; + String? _provider; String? get provider => _$this._provider; set provider(String? provider) => _$this._provider = provider; @@ -114,6 +124,7 @@ class IdentityCredentialsOidcProviderBuilder _initialAccessToken = $v.initialAccessToken; _initialIdToken = $v.initialIdToken; _initialRefreshToken = $v.initialRefreshToken; + _organization = $v.organization; _provider = $v.provider; _subject = $v.subject; _$v = null; @@ -141,6 +152,7 @@ class IdentityCredentialsOidcProviderBuilder initialAccessToken: initialAccessToken, initialIdToken: initialIdToken, initialRefreshToken: initialRefreshToken, + organization: organization, provider: provider, subject: subject); replace(_$result); diff --git a/clients/kratos/dart/lib/src/model/identity_credentials_type.dart b/clients/kratos/dart/lib/src/model/identity_credentials_type.dart deleted file mode 100644 index 35374fe0557..00000000000 --- a/clients/kratos/dart/lib/src/model/identity_credentials_type.dart +++ /dev/null @@ -1,45 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'identity_credentials_type.g.dart'; - -class IdentityCredentialsType extends EnumClass { - - /// and so on. - @BuiltValueEnumConst(wireName: r'password') - static const IdentityCredentialsType password = _$password; - /// and so on. - @BuiltValueEnumConst(wireName: r'totp') - static const IdentityCredentialsType totp = _$totp; - /// and so on. - @BuiltValueEnumConst(wireName: r'oidc') - static const IdentityCredentialsType oidc = _$oidc; - /// and so on. - @BuiltValueEnumConst(wireName: r'webauthn') - static const IdentityCredentialsType webauthn = _$webauthn; - /// and so on. - @BuiltValueEnumConst(wireName: r'lookup_secret') - static const IdentityCredentialsType lookupSecret = _$lookupSecret; - - static Serializer get serializer => _$identityCredentialsTypeSerializer; - - const IdentityCredentialsType._(String name): super(name); - - static BuiltSet get values => _$values; - static IdentityCredentialsType valueOf(String name) => _$valueOf(name); -} - -/// Optionally, enum_class can generate a mixin to go with your enum for use -/// with Angular. It exposes your enum constants as getters. So, if you mix it -/// in to your Dart component class, the values become available to the -/// corresponding Angular template. -/// -/// Trigger mixin generation by writing a line like this one next to your enum. -abstract class IdentityCredentialsTypeMixin = Object with _$IdentityCredentialsTypeMixin; - diff --git a/clients/kratos/dart/lib/src/model/identity_credentials_type.g.dart b/clients/kratos/dart/lib/src/model/identity_credentials_type.g.dart deleted file mode 100644 index 3c1d5fa3eb4..00000000000 --- a/clients/kratos/dart/lib/src/model/identity_credentials_type.g.dart +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'identity_credentials_type.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const IdentityCredentialsType _$password = - const IdentityCredentialsType._('password'); -const IdentityCredentialsType _$totp = const IdentityCredentialsType._('totp'); -const IdentityCredentialsType _$oidc = const IdentityCredentialsType._('oidc'); -const IdentityCredentialsType _$webauthn = - const IdentityCredentialsType._('webauthn'); -const IdentityCredentialsType _$lookupSecret = - const IdentityCredentialsType._('lookupSecret'); - -IdentityCredentialsType _$valueOf(String name) { - switch (name) { - case 'password': - return _$password; - case 'totp': - return _$totp; - case 'oidc': - return _$oidc; - case 'webauthn': - return _$webauthn; - case 'lookupSecret': - return _$lookupSecret; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$values = - new BuiltSet(const [ - _$password, - _$totp, - _$oidc, - _$webauthn, - _$lookupSecret, -]); - -class _$IdentityCredentialsTypeMeta { - const _$IdentityCredentialsTypeMeta(); - IdentityCredentialsType get password => _$password; - IdentityCredentialsType get totp => _$totp; - IdentityCredentialsType get oidc => _$oidc; - IdentityCredentialsType get webauthn => _$webauthn; - IdentityCredentialsType get lookupSecret => _$lookupSecret; - IdentityCredentialsType valueOf(String name) => _$valueOf(name); - BuiltSet get values => _$values; -} - -abstract class _$IdentityCredentialsTypeMixin { - // ignore: non_constant_identifier_names - _$IdentityCredentialsTypeMeta get IdentityCredentialsType => - const _$IdentityCredentialsTypeMeta(); -} - -Serializer _$identityCredentialsTypeSerializer = - new _$IdentityCredentialsTypeSerializer(); - -class _$IdentityCredentialsTypeSerializer - implements PrimitiveSerializer { - static const Map _toWire = const { - 'password': 'password', - 'totp': 'totp', - 'oidc': 'oidc', - 'webauthn': 'webauthn', - 'lookupSecret': 'lookup_secret', - }; - static const Map _fromWire = const { - 'password': 'password', - 'totp': 'totp', - 'oidc': 'oidc', - 'webauthn': 'webauthn', - 'lookup_secret': 'lookupSecret', - }; - - @override - final Iterable types = const [IdentityCredentialsType]; - @override - final String wireName = 'IdentityCredentialsType'; - - @override - Object serialize(Serializers serializers, IdentityCredentialsType object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - IdentityCredentialsType deserialize( - Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - IdentityCredentialsType.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/identity_state.dart b/clients/kratos/dart/lib/src/model/identity_state.dart deleted file mode 100644 index b306b3406c9..00000000000 --- a/clients/kratos/dart/lib/src/model/identity_state.dart +++ /dev/null @@ -1,36 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_collection/built_collection.dart'; -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'identity_state.g.dart'; - -class IdentityState extends EnumClass { - - /// The state can either be `active` or `inactive`. - @BuiltValueEnumConst(wireName: r'active') - static const IdentityState active = _$active; - /// The state can either be `active` or `inactive`. - @BuiltValueEnumConst(wireName: r'inactive') - static const IdentityState inactive = _$inactive; - - static Serializer get serializer => _$identityStateSerializer; - - const IdentityState._(String name): super(name); - - static BuiltSet get values => _$values; - static IdentityState valueOf(String name) => _$valueOf(name); -} - -/// Optionally, enum_class can generate a mixin to go with your enum for use -/// with Angular. It exposes your enum constants as getters. So, if you mix it -/// in to your Dart component class, the values become available to the -/// corresponding Angular template. -/// -/// Trigger mixin generation by writing a line like this one next to your enum. -abstract class IdentityStateMixin = Object with _$IdentityStateMixin; - diff --git a/clients/kratos/dart/lib/src/model/identity_state.g.dart b/clients/kratos/dart/lib/src/model/identity_state.g.dart deleted file mode 100644 index a6634243796..00000000000 --- a/clients/kratos/dart/lib/src/model/identity_state.g.dart +++ /dev/null @@ -1,72 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'identity_state.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -const IdentityState _$active = const IdentityState._('active'); -const IdentityState _$inactive = const IdentityState._('inactive'); - -IdentityState _$valueOf(String name) { - switch (name) { - case 'active': - return _$active; - case 'inactive': - return _$inactive; - default: - throw new ArgumentError(name); - } -} - -final BuiltSet _$values = - new BuiltSet(const [ - _$active, - _$inactive, -]); - -class _$IdentityStateMeta { - const _$IdentityStateMeta(); - IdentityState get active => _$active; - IdentityState get inactive => _$inactive; - IdentityState valueOf(String name) => _$valueOf(name); - BuiltSet get values => _$values; -} - -abstract class _$IdentityStateMixin { - // ignore: non_constant_identifier_names - _$IdentityStateMeta get IdentityState => const _$IdentityStateMeta(); -} - -Serializer _$identityStateSerializer = - new _$IdentityStateSerializer(); - -class _$IdentityStateSerializer implements PrimitiveSerializer { - static const Map _toWire = const { - 'active': 'active', - 'inactive': 'inactive', - }; - static const Map _fromWire = const { - 'active': 'active', - 'inactive': 'inactive', - }; - - @override - final Iterable types = const [IdentityState]; - @override - final String wireName = 'IdentityState'; - - @override - Object serialize(Serializers serializers, IdentityState object, - {FullType specifiedType = FullType.unspecified}) => - _toWire[object.name] ?? object.name; - - @override - IdentityState deserialize(Serializers serializers, Object serialized, - {FullType specifiedType = FullType.unspecified}) => - IdentityState.valueOf( - _fromWire[serialized] ?? (serialized is String ? serialized : '')); -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/identity_with_credentials_password_config.dart b/clients/kratos/dart/lib/src/model/identity_with_credentials_password_config.dart index 68c2caf0253..9900c29ba5c 100644 --- a/clients/kratos/dart/lib/src/model/identity_with_credentials_password_config.dart +++ b/clients/kratos/dart/lib/src/model/identity_with_credentials_password_config.dart @@ -11,11 +11,11 @@ part 'identity_with_credentials_password_config.g.dart'; /// Create Identity and Import Password Credentials Configuration /// /// Properties: -/// * [hashedPassword] - The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) +/// * [hashedPassword] - The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) /// * [password] - The password in plain text if no hash is available. @BuiltValue() abstract class IdentityWithCredentialsPasswordConfig implements Built { - /// The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) + /// The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) @BuiltValueField(wireName: r'hashed_password') String? get hashedPassword; diff --git a/clients/kratos/dart/lib/src/model/login_flow.dart b/clients/kratos/dart/lib/src/model/login_flow.dart index 87cc0eb3d9b..3be1bcc3da5 100644 --- a/clients/kratos/dart/lib/src/model/login_flow.dart +++ b/clients/kratos/dart/lib/src/model/login_flow.dart @@ -4,9 +4,10 @@ // ignore_for_file: unused_element import 'package:ory_kratos_client/src/model/o_auth2_login_request.dart'; -import 'package:ory_kratos_client/src/model/identity_credentials_type.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:ory_kratos_client/src/model/ui_container.dart'; import 'package:ory_kratos_client/src/model/authenticator_assurance_level.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -15,26 +16,29 @@ part 'login_flow.g.dart'; /// This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. /// /// Properties: -/// * [active] +/// * [active] - The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [createdAt] - CreatedAt is a helper struct field for gobuffalo.pop. /// * [expiresAt] - ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. /// * [id] - ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http:///?flow= /// * [issuedAt] - IssuedAt is the time (UTC) when the flow started. /// * [oauth2LoginChallenge] - Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. /// * [oauth2LoginRequest] +/// * [organizationId] /// * [refresh] - Refresh stores whether this login flow should enforce re-authentication. /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [requestedAal] /// * [returnTo] - ReturnTo contains the requested return_to URL. /// * [sessionTokenExchangeCode] - SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. +/// * [state] - State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. @BuiltValue() abstract class LoginFlow implements Built { + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 @BuiltValueField(wireName: r'active') - IdentityCredentialsType? get active; - // enum activeEnum { password, totp, oidc, webauthn, lookup_secret, }; + LoginFlowActiveEnum? get active; + // enum activeEnum { password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery, }; /// CreatedAt is a helper struct field for gobuffalo.pop. @BuiltValueField(wireName: r'created_at') @@ -59,6 +63,9 @@ abstract class LoginFlow implements Built { @BuiltValueField(wireName: r'oauth2_login_request') OAuth2LoginRequest? get oauth2LoginRequest; + @BuiltValueField(wireName: r'organization_id') + String? get organizationId; + /// Refresh stores whether this login flow should enforce re-authentication. @BuiltValueField(wireName: r'refresh') bool? get refresh; @@ -79,6 +86,10 @@ abstract class LoginFlow implements Built { @BuiltValueField(wireName: r'session_token_exchange_code') String? get sessionTokenExchangeCode; + /// State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + @BuiltValueField(wireName: r'state') + JsonObject? get state; + /// The flow type can either be `api` or `browser`. @BuiltValueField(wireName: r'type') String get type; @@ -117,7 +128,7 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { yield r'active'; yield serializers.serialize( object.active, - specifiedType: const FullType(IdentityCredentialsType), + specifiedType: const FullType(LoginFlowActiveEnum), ); } if (object.createdAt != null) { @@ -156,6 +167,13 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { specifiedType: const FullType(OAuth2LoginRequest), ); } + if (object.organizationId != null) { + yield r'organization_id'; + yield serializers.serialize( + object.organizationId, + specifiedType: const FullType.nullable(String), + ); + } if (object.refresh != null) { yield r'refresh'; yield serializers.serialize( @@ -189,6 +207,11 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + yield r'state'; + yield object.state == null ? null : serializers.serialize( + object.state, + specifiedType: const FullType.nullable(JsonObject), + ); yield r'type'; yield serializers.serialize( object.type, @@ -232,8 +255,8 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { case r'active': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(IdentityCredentialsType), - ) as IdentityCredentialsType; + specifiedType: const FullType(LoginFlowActiveEnum), + ) as LoginFlowActiveEnum; result.active = valueDes; break; case r'created_at': @@ -278,6 +301,14 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { ) as OAuth2LoginRequest; result.oauth2LoginRequest.replace(valueDes); break; + case r'organization_id': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType.nullable(String), + ) as String?; + if (valueDes == null) continue; + result.organizationId = valueDes; + break; case r'refresh': final valueDes = serializers.deserialize( value, @@ -313,6 +344,14 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { ) as String; result.sessionTokenExchangeCode = valueDes; break; + case r'state': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType.nullable(JsonObject), + ) as JsonObject?; + if (valueDes == null) continue; + result.state = valueDes; + break; case r'type': final valueDes = serializers.deserialize( value, @@ -363,3 +402,38 @@ class _$LoginFlowSerializer implements PrimitiveSerializer { } } +class LoginFlowActiveEnum extends EnumClass { + + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'password') + static const LoginFlowActiveEnum password = _$loginFlowActiveEnum_password; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'oidc') + static const LoginFlowActiveEnum oidc = _$loginFlowActiveEnum_oidc; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'totp') + static const LoginFlowActiveEnum totp = _$loginFlowActiveEnum_totp; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'lookup_secret') + static const LoginFlowActiveEnum lookupSecret = _$loginFlowActiveEnum_lookupSecret; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'webauthn') + static const LoginFlowActiveEnum webauthn = _$loginFlowActiveEnum_webauthn; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'code') + static const LoginFlowActiveEnum code = _$loginFlowActiveEnum_code; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'link_recovery') + static const LoginFlowActiveEnum linkRecovery = _$loginFlowActiveEnum_linkRecovery; + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + @BuiltValueEnumConst(wireName: r'code_recovery') + static const LoginFlowActiveEnum codeRecovery = _$loginFlowActiveEnum_codeRecovery; + + static Serializer get serializer => _$loginFlowActiveEnumSerializer; + + const LoginFlowActiveEnum._(String name): super(name); + + static BuiltSet get values => _$loginFlowActiveEnumValues; + static LoginFlowActiveEnum valueOf(String name) => _$loginFlowActiveEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/login_flow.g.dart b/clients/kratos/dart/lib/src/model/login_flow.g.dart index 84fbee7fb39..79fd90cd4db 100644 --- a/clients/kratos/dart/lib/src/model/login_flow.g.dart +++ b/clients/kratos/dart/lib/src/model/login_flow.g.dart @@ -6,9 +6,104 @@ part of 'login_flow.dart'; // BuiltValueGenerator // ************************************************************************** +const LoginFlowActiveEnum _$loginFlowActiveEnum_password = + const LoginFlowActiveEnum._('password'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_oidc = + const LoginFlowActiveEnum._('oidc'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_totp = + const LoginFlowActiveEnum._('totp'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_lookupSecret = + const LoginFlowActiveEnum._('lookupSecret'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_webauthn = + const LoginFlowActiveEnum._('webauthn'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_code = + const LoginFlowActiveEnum._('code'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_linkRecovery = + const LoginFlowActiveEnum._('linkRecovery'); +const LoginFlowActiveEnum _$loginFlowActiveEnum_codeRecovery = + const LoginFlowActiveEnum._('codeRecovery'); + +LoginFlowActiveEnum _$loginFlowActiveEnumValueOf(String name) { + switch (name) { + case 'password': + return _$loginFlowActiveEnum_password; + case 'oidc': + return _$loginFlowActiveEnum_oidc; + case 'totp': + return _$loginFlowActiveEnum_totp; + case 'lookupSecret': + return _$loginFlowActiveEnum_lookupSecret; + case 'webauthn': + return _$loginFlowActiveEnum_webauthn; + case 'code': + return _$loginFlowActiveEnum_code; + case 'linkRecovery': + return _$loginFlowActiveEnum_linkRecovery; + case 'codeRecovery': + return _$loginFlowActiveEnum_codeRecovery; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$loginFlowActiveEnumValues = + new BuiltSet(const [ + _$loginFlowActiveEnum_password, + _$loginFlowActiveEnum_oidc, + _$loginFlowActiveEnum_totp, + _$loginFlowActiveEnum_lookupSecret, + _$loginFlowActiveEnum_webauthn, + _$loginFlowActiveEnum_code, + _$loginFlowActiveEnum_linkRecovery, + _$loginFlowActiveEnum_codeRecovery, +]); + +Serializer _$loginFlowActiveEnumSerializer = + new _$LoginFlowActiveEnumSerializer(); + +class _$LoginFlowActiveEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookupSecret': 'lookup_secret', + 'webauthn': 'webauthn', + 'code': 'code', + 'linkRecovery': 'link_recovery', + 'codeRecovery': 'code_recovery', + }; + static const Map _fromWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookup_secret': 'lookupSecret', + 'webauthn': 'webauthn', + 'code': 'code', + 'link_recovery': 'linkRecovery', + 'code_recovery': 'codeRecovery', + }; + + @override + final Iterable types = const [LoginFlowActiveEnum]; + @override + final String wireName = 'LoginFlowActiveEnum'; + + @override + Object serialize(Serializers serializers, LoginFlowActiveEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + LoginFlowActiveEnum deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + LoginFlowActiveEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$LoginFlow extends LoginFlow { @override - final IdentityCredentialsType? active; + final LoginFlowActiveEnum? active; @override final DateTime? createdAt; @override @@ -22,6 +117,8 @@ class _$LoginFlow extends LoginFlow { @override final OAuth2LoginRequest? oauth2LoginRequest; @override + final String? organizationId; + @override final bool? refresh; @override final String requestUrl; @@ -32,6 +129,8 @@ class _$LoginFlow extends LoginFlow { @override final String? sessionTokenExchangeCode; @override + final JsonObject? state; + @override final String type; @override final UiContainer ui; @@ -49,11 +148,13 @@ class _$LoginFlow extends LoginFlow { required this.issuedAt, this.oauth2LoginChallenge, this.oauth2LoginRequest, + this.organizationId, this.refresh, required this.requestUrl, this.requestedAal, this.returnTo, this.sessionTokenExchangeCode, + this.state, required this.type, required this.ui, this.updatedAt}) @@ -85,11 +186,13 @@ class _$LoginFlow extends LoginFlow { issuedAt == other.issuedAt && oauth2LoginChallenge == other.oauth2LoginChallenge && oauth2LoginRequest == other.oauth2LoginRequest && + organizationId == other.organizationId && refresh == other.refresh && requestUrl == other.requestUrl && requestedAal == other.requestedAal && returnTo == other.returnTo && sessionTokenExchangeCode == other.sessionTokenExchangeCode && + state == other.state && type == other.type && ui == other.ui && updatedAt == other.updatedAt; @@ -105,11 +208,13 @@ class _$LoginFlow extends LoginFlow { _$hash = $jc(_$hash, issuedAt.hashCode); _$hash = $jc(_$hash, oauth2LoginChallenge.hashCode); _$hash = $jc(_$hash, oauth2LoginRequest.hashCode); + _$hash = $jc(_$hash, organizationId.hashCode); _$hash = $jc(_$hash, refresh.hashCode); _$hash = $jc(_$hash, requestUrl.hashCode); _$hash = $jc(_$hash, requestedAal.hashCode); _$hash = $jc(_$hash, returnTo.hashCode); _$hash = $jc(_$hash, sessionTokenExchangeCode.hashCode); + _$hash = $jc(_$hash, state.hashCode); _$hash = $jc(_$hash, type.hashCode); _$hash = $jc(_$hash, ui.hashCode); _$hash = $jc(_$hash, updatedAt.hashCode); @@ -127,11 +232,13 @@ class _$LoginFlow extends LoginFlow { ..add('issuedAt', issuedAt) ..add('oauth2LoginChallenge', oauth2LoginChallenge) ..add('oauth2LoginRequest', oauth2LoginRequest) + ..add('organizationId', organizationId) ..add('refresh', refresh) ..add('requestUrl', requestUrl) ..add('requestedAal', requestedAal) ..add('returnTo', returnTo) ..add('sessionTokenExchangeCode', sessionTokenExchangeCode) + ..add('state', state) ..add('type', type) ..add('ui', ui) ..add('updatedAt', updatedAt)) @@ -142,9 +249,9 @@ class _$LoginFlow extends LoginFlow { class LoginFlowBuilder implements Builder { _$LoginFlow? _$v; - IdentityCredentialsType? _active; - IdentityCredentialsType? get active => _$this._active; - set active(IdentityCredentialsType? active) => _$this._active = active; + LoginFlowActiveEnum? _active; + LoginFlowActiveEnum? get active => _$this._active; + set active(LoginFlowActiveEnum? active) => _$this._active = active; DateTime? _createdAt; DateTime? get createdAt => _$this._createdAt; @@ -173,6 +280,11 @@ class LoginFlowBuilder implements Builder { set oauth2LoginRequest(OAuth2LoginRequestBuilder? oauth2LoginRequest) => _$this._oauth2LoginRequest = oauth2LoginRequest; + String? _organizationId; + String? get organizationId => _$this._organizationId; + set organizationId(String? organizationId) => + _$this._organizationId = organizationId; + bool? _refresh; bool? get refresh => _$this._refresh; set refresh(bool? refresh) => _$this._refresh = refresh; @@ -195,6 +307,10 @@ class LoginFlowBuilder implements Builder { set sessionTokenExchangeCode(String? sessionTokenExchangeCode) => _$this._sessionTokenExchangeCode = sessionTokenExchangeCode; + JsonObject? _state; + JsonObject? get state => _$this._state; + set state(JsonObject? state) => _$this._state = state; + String? _type; String? get type => _$this._type; set type(String? type) => _$this._type = type; @@ -221,11 +337,13 @@ class LoginFlowBuilder implements Builder { _issuedAt = $v.issuedAt; _oauth2LoginChallenge = $v.oauth2LoginChallenge; _oauth2LoginRequest = $v.oauth2LoginRequest?.toBuilder(); + _organizationId = $v.organizationId; _refresh = $v.refresh; _requestUrl = $v.requestUrl; _requestedAal = $v.requestedAal; _returnTo = $v.returnTo; _sessionTokenExchangeCode = $v.sessionTokenExchangeCode; + _state = $v.state; _type = $v.type; _ui = $v.ui.toBuilder(); _updatedAt = $v.updatedAt; @@ -262,12 +380,14 @@ class LoginFlowBuilder implements Builder { issuedAt, r'LoginFlow', 'issuedAt'), oauth2LoginChallenge: oauth2LoginChallenge, oauth2LoginRequest: _oauth2LoginRequest?.build(), + organizationId: organizationId, refresh: refresh, requestUrl: BuiltValueNullFieldError.checkNotNull( requestUrl, r'LoginFlow', 'requestUrl'), requestedAal: requestedAal, returnTo: returnTo, sessionTokenExchangeCode: sessionTokenExchangeCode, + state: state, type: BuiltValueNullFieldError.checkNotNull( type, r'LoginFlow', 'type'), ui: ui.build(), diff --git a/clients/kratos/dart/lib/src/model/login_flow_state.dart b/clients/kratos/dart/lib/src/model/login_flow_state.dart new file mode 100644 index 00000000000..d12acceb82f --- /dev/null +++ b/clients/kratos/dart/lib/src/model/login_flow_state.dart @@ -0,0 +1,39 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'login_flow_state.g.dart'; + +class LoginFlowState extends EnumClass { + + /// The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + @BuiltValueEnumConst(wireName: r'choose_method') + static const LoginFlowState chooseMethod = _$chooseMethod; + /// The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + @BuiltValueEnumConst(wireName: r'sent_email') + static const LoginFlowState sentEmail = _$sentEmail; + /// The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + @BuiltValueEnumConst(wireName: r'passed_challenge') + static const LoginFlowState passedChallenge = _$passedChallenge; + + static Serializer get serializer => _$loginFlowStateSerializer; + + const LoginFlowState._(String name): super(name); + + static BuiltSet get values => _$values; + static LoginFlowState valueOf(String name) => _$valueOf(name); +} + +/// Optionally, enum_class can generate a mixin to go with your enum for use +/// with Angular. It exposes your enum constants as getters. So, if you mix it +/// in to your Dart component class, the values become available to the +/// corresponding Angular template. +/// +/// Trigger mixin generation by writing a line like this one next to your enum. +abstract class LoginFlowStateMixin = Object with _$LoginFlowStateMixin; + diff --git a/clients/kratos/dart/lib/src/model/login_flow_state.g.dart b/clients/kratos/dart/lib/src/model/login_flow_state.g.dart new file mode 100644 index 00000000000..40dc8389ae0 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/login_flow_state.g.dart @@ -0,0 +1,81 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'login_flow_state.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const LoginFlowState _$chooseMethod = const LoginFlowState._('chooseMethod'); +const LoginFlowState _$sentEmail = const LoginFlowState._('sentEmail'); +const LoginFlowState _$passedChallenge = + const LoginFlowState._('passedChallenge'); + +LoginFlowState _$valueOf(String name) { + switch (name) { + case 'chooseMethod': + return _$chooseMethod; + case 'sentEmail': + return _$sentEmail; + case 'passedChallenge': + return _$passedChallenge; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$values = + new BuiltSet(const [ + _$chooseMethod, + _$sentEmail, + _$passedChallenge, +]); + +class _$LoginFlowStateMeta { + const _$LoginFlowStateMeta(); + LoginFlowState get chooseMethod => _$chooseMethod; + LoginFlowState get sentEmail => _$sentEmail; + LoginFlowState get passedChallenge => _$passedChallenge; + LoginFlowState valueOf(String name) => _$valueOf(name); + BuiltSet get values => _$values; +} + +abstract class _$LoginFlowStateMixin { + // ignore: non_constant_identifier_names + _$LoginFlowStateMeta get LoginFlowState => const _$LoginFlowStateMeta(); +} + +Serializer _$loginFlowStateSerializer = + new _$LoginFlowStateSerializer(); + +class _$LoginFlowStateSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'chooseMethod': 'choose_method', + 'sentEmail': 'sent_email', + 'passedChallenge': 'passed_challenge', + }; + static const Map _fromWire = const { + 'choose_method': 'chooseMethod', + 'sent_email': 'sentEmail', + 'passed_challenge': 'passedChallenge', + }; + + @override + final Iterable types = const [LoginFlowState]; + @override + final String wireName = 'LoginFlowState'; + + @override + Object serialize(Serializers serializers, LoginFlowState object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + LoginFlowState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + LoginFlowState.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/message.dart b/clients/kratos/dart/lib/src/model/message.dart index 11502036bc4..0da41cc6868 100644 --- a/clients/kratos/dart/lib/src/model/message.dart +++ b/clients/kratos/dart/lib/src/model/message.dart @@ -16,6 +16,7 @@ part 'message.g.dart'; /// /// Properties: /// * [body] +/// * [channel] /// * [createdAt] - CreatedAt is a helper struct field for gobuffalo.pop. /// * [dispatches] - Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the `success` state. /// * [id] @@ -23,7 +24,7 @@ part 'message.g.dart'; /// * [sendCount] /// * [status] /// * [subject] -/// * [templateType] - recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub +/// * [templateType] - recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid /// * [type] /// * [updatedAt] - UpdatedAt is a helper struct field for gobuffalo.pop. @BuiltValue() @@ -31,6 +32,9 @@ abstract class Message implements Built { @BuiltValueField(wireName: r'body') String get body; + @BuiltValueField(wireName: r'channel') + String? get channel; + /// CreatedAt is a helper struct field for gobuffalo.pop. @BuiltValueField(wireName: r'created_at') DateTime get createdAt; @@ -55,10 +59,10 @@ abstract class Message implements Built { @BuiltValueField(wireName: r'subject') String get subject; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueField(wireName: r'template_type') MessageTemplateTypeEnum get templateType; - // enum templateTypeEnum { recovery_invalid, recovery_valid, recovery_code_invalid, recovery_code_valid, verification_invalid, verification_valid, verification_code_invalid, verification_code_valid, otp, stub, }; + // enum templateTypeEnum { recovery_invalid, recovery_valid, recovery_code_invalid, recovery_code_valid, verification_invalid, verification_valid, verification_code_invalid, verification_code_valid, stub, login_code_valid, registration_code_valid, }; @BuiltValueField(wireName: r'type') CourierMessageType get type; @@ -96,6 +100,13 @@ class _$MessageSerializer implements PrimitiveSerializer { object.body, specifiedType: const FullType(String), ); + if (object.channel != null) { + yield r'channel'; + yield serializers.serialize( + object.channel, + specifiedType: const FullType(String), + ); + } yield r'created_at'; yield serializers.serialize( object.createdAt, @@ -178,6 +189,13 @@ class _$MessageSerializer implements PrimitiveSerializer { ) as String; result.body = valueDes; break; + case r'channel': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.channel = valueDes; + break; case r'created_at': final valueDes = serializers.deserialize( value, @@ -279,36 +297,39 @@ class _$MessageSerializer implements PrimitiveSerializer { class MessageTemplateTypeEnum extends EnumClass { - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'recovery_invalid') static const MessageTemplateTypeEnum recoveryInvalid = _$messageTemplateTypeEnum_recoveryInvalid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'recovery_valid') static const MessageTemplateTypeEnum recoveryValid = _$messageTemplateTypeEnum_recoveryValid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'recovery_code_invalid') static const MessageTemplateTypeEnum recoveryCodeInvalid = _$messageTemplateTypeEnum_recoveryCodeInvalid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'recovery_code_valid') static const MessageTemplateTypeEnum recoveryCodeValid = _$messageTemplateTypeEnum_recoveryCodeValid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'verification_invalid') static const MessageTemplateTypeEnum verificationInvalid = _$messageTemplateTypeEnum_verificationInvalid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'verification_valid') static const MessageTemplateTypeEnum verificationValid = _$messageTemplateTypeEnum_verificationValid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'verification_code_invalid') static const MessageTemplateTypeEnum verificationCodeInvalid = _$messageTemplateTypeEnum_verificationCodeInvalid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'verification_code_valid') static const MessageTemplateTypeEnum verificationCodeValid = _$messageTemplateTypeEnum_verificationCodeValid; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub - @BuiltValueEnumConst(wireName: r'otp') - static const MessageTemplateTypeEnum otp = _$messageTemplateTypeEnum_otp; - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid @BuiltValueEnumConst(wireName: r'stub') static const MessageTemplateTypeEnum stub = _$messageTemplateTypeEnum_stub; + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid + @BuiltValueEnumConst(wireName: r'login_code_valid') + static const MessageTemplateTypeEnum loginCodeValid = _$messageTemplateTypeEnum_loginCodeValid; + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid + @BuiltValueEnumConst(wireName: r'registration_code_valid') + static const MessageTemplateTypeEnum registrationCodeValid = _$messageTemplateTypeEnum_registrationCodeValid; static Serializer get serializer => _$messageTemplateTypeEnumSerializer; diff --git a/clients/kratos/dart/lib/src/model/message.g.dart b/clients/kratos/dart/lib/src/model/message.g.dart index 015ea820e90..b61038efe0e 100644 --- a/clients/kratos/dart/lib/src/model/message.g.dart +++ b/clients/kratos/dart/lib/src/model/message.g.dart @@ -23,10 +23,12 @@ const MessageTemplateTypeEnum const MessageTemplateTypeEnum._('verificationCodeInvalid'); const MessageTemplateTypeEnum _$messageTemplateTypeEnum_verificationCodeValid = const MessageTemplateTypeEnum._('verificationCodeValid'); -const MessageTemplateTypeEnum _$messageTemplateTypeEnum_otp = - const MessageTemplateTypeEnum._('otp'); const MessageTemplateTypeEnum _$messageTemplateTypeEnum_stub = const MessageTemplateTypeEnum._('stub'); +const MessageTemplateTypeEnum _$messageTemplateTypeEnum_loginCodeValid = + const MessageTemplateTypeEnum._('loginCodeValid'); +const MessageTemplateTypeEnum _$messageTemplateTypeEnum_registrationCodeValid = + const MessageTemplateTypeEnum._('registrationCodeValid'); MessageTemplateTypeEnum _$messageTemplateTypeEnumValueOf(String name) { switch (name) { @@ -46,10 +48,12 @@ MessageTemplateTypeEnum _$messageTemplateTypeEnumValueOf(String name) { return _$messageTemplateTypeEnum_verificationCodeInvalid; case 'verificationCodeValid': return _$messageTemplateTypeEnum_verificationCodeValid; - case 'otp': - return _$messageTemplateTypeEnum_otp; case 'stub': return _$messageTemplateTypeEnum_stub; + case 'loginCodeValid': + return _$messageTemplateTypeEnum_loginCodeValid; + case 'registrationCodeValid': + return _$messageTemplateTypeEnum_registrationCodeValid; default: throw new ArgumentError(name); } @@ -65,8 +69,9 @@ final BuiltSet _$messageTemplateTypeEnumValues = _$messageTemplateTypeEnum_verificationValid, _$messageTemplateTypeEnum_verificationCodeInvalid, _$messageTemplateTypeEnum_verificationCodeValid, - _$messageTemplateTypeEnum_otp, _$messageTemplateTypeEnum_stub, + _$messageTemplateTypeEnum_loginCodeValid, + _$messageTemplateTypeEnum_registrationCodeValid, ]); Serializer _$messageTemplateTypeEnumSerializer = @@ -83,8 +88,9 @@ class _$MessageTemplateTypeEnumSerializer 'verificationValid': 'verification_valid', 'verificationCodeInvalid': 'verification_code_invalid', 'verificationCodeValid': 'verification_code_valid', - 'otp': 'otp', 'stub': 'stub', + 'loginCodeValid': 'login_code_valid', + 'registrationCodeValid': 'registration_code_valid', }; static const Map _fromWire = const { 'recovery_invalid': 'recoveryInvalid', @@ -95,8 +101,9 @@ class _$MessageTemplateTypeEnumSerializer 'verification_valid': 'verificationValid', 'verification_code_invalid': 'verificationCodeInvalid', 'verification_code_valid': 'verificationCodeValid', - 'otp': 'otp', 'stub': 'stub', + 'login_code_valid': 'loginCodeValid', + 'registration_code_valid': 'registrationCodeValid', }; @override @@ -121,6 +128,8 @@ class _$Message extends Message { @override final String body; @override + final String? channel; + @override final DateTime createdAt; @override final BuiltList? dispatches; @@ -146,6 +155,7 @@ class _$Message extends Message { _$Message._( {required this.body, + this.channel, required this.createdAt, this.dispatches, required this.id, @@ -182,6 +192,7 @@ class _$Message extends Message { if (identical(other, this)) return true; return other is Message && body == other.body && + channel == other.channel && createdAt == other.createdAt && dispatches == other.dispatches && id == other.id && @@ -198,6 +209,7 @@ class _$Message extends Message { int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, body.hashCode); + _$hash = $jc(_$hash, channel.hashCode); _$hash = $jc(_$hash, createdAt.hashCode); _$hash = $jc(_$hash, dispatches.hashCode); _$hash = $jc(_$hash, id.hashCode); @@ -216,6 +228,7 @@ class _$Message extends Message { String toString() { return (newBuiltValueToStringHelper(r'Message') ..add('body', body) + ..add('channel', channel) ..add('createdAt', createdAt) ..add('dispatches', dispatches) ..add('id', id) @@ -237,6 +250,10 @@ class MessageBuilder implements Builder { String? get body => _$this._body; set body(String? body) => _$this._body = body; + String? _channel; + String? get channel => _$this._channel; + set channel(String? channel) => _$this._channel = channel; + DateTime? _createdAt; DateTime? get createdAt => _$this._createdAt; set createdAt(DateTime? createdAt) => _$this._createdAt = createdAt; @@ -288,6 +305,7 @@ class MessageBuilder implements Builder { final $v = _$v; if ($v != null) { _body = $v.body; + _channel = $v.channel; _createdAt = $v.createdAt; _dispatches = $v.dispatches?.toBuilder(); _id = $v.id; @@ -324,6 +342,7 @@ class MessageBuilder implements Builder { new _$Message._( body: BuiltValueNullFieldError.checkNotNull( body, r'Message', 'body'), + channel: channel, createdAt: BuiltValueNullFieldError.checkNotNull( createdAt, r'Message', 'createdAt'), dispatches: _dispatches?.build(), diff --git a/clients/kratos/dart/lib/src/model/o_auth2_client.dart b/clients/kratos/dart/lib/src/model/o_auth2_client.dart index 9ab5a694aef..dadc98ba926 100644 --- a/clients/kratos/dart/lib/src/model/o_auth2_client.dart +++ b/clients/kratos/dart/lib/src/model/o_auth2_client.dart @@ -13,6 +13,7 @@ part 'o_auth2_client.g.dart'; /// OAuth2Client /// /// Properties: +/// * [accessTokenStrategy] - OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. /// * [allowedCorsOrigins] /// * [audience] /// * [authorizationCodeGrantAccessTokenLifespan] - Specify a time duration in milliseconds, seconds, minutes, hours. @@ -21,7 +22,7 @@ part 'o_auth2_client.g.dart'; /// * [backchannelLogoutSessionRequired] - OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. /// * [backchannelLogoutUri] - OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. /// * [clientCredentialsGrantAccessTokenLifespan] - Specify a time duration in milliseconds, seconds, minutes, hours. -/// * [clientId] - OAuth 2.0 Client ID The ID is autogenerated and immutable. +/// * [clientId] - OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. /// * [clientName] - OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. /// * [clientSecret] - OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. /// * [clientSecretExpiresAt] - OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. @@ -52,14 +53,20 @@ part 'o_auth2_client.g.dart'; /// * [responseTypes] /// * [scope] - OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. /// * [sectorIdentifierUri] - OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. +/// * [skipConsent] - SkipConsent skips the consent screen for this client. This field can only be set from the admin API. +/// * [skipLogoutConsent] - SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. /// * [subjectType] - OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. -/// * [tokenEndpointAuthMethod] - OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. +/// * [tokenEndpointAuthMethod] - OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. /// * [tokenEndpointAuthSigningAlg] - OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. /// * [tosUri] - OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. /// * [updatedAt] - OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update. /// * [userinfoSignedResponseAlg] - OpenID Connect Request Userinfo Signed Response Algorithm JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type. @BuiltValue() abstract class OAuth2Client implements Built { + /// OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. + @BuiltValueField(wireName: r'access_token_strategy') + String? get accessTokenStrategy; + @BuiltValueField(wireName: r'allowed_cors_origins') BuiltList? get allowedCorsOrigins; @@ -90,7 +97,7 @@ abstract class OAuth2Client implements Built @BuiltValueField(wireName: r'client_credentials_grant_access_token_lifespan') String? get clientCredentialsGrantAccessTokenLifespan; - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. @BuiltValueField(wireName: r'client_id') String? get clientId; @@ -207,11 +214,19 @@ abstract class OAuth2Client implements Built @BuiltValueField(wireName: r'sector_identifier_uri') String? get sectorIdentifierUri; + /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API. + @BuiltValueField(wireName: r'skip_consent') + bool? get skipConsent; + + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + @BuiltValueField(wireName: r'skip_logout_consent') + bool? get skipLogoutConsent; + /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. @BuiltValueField(wireName: r'subject_type') String? get subjectType; - /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. + /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. @BuiltValueField(wireName: r'token_endpoint_auth_method') String? get tokenEndpointAuthMethod; @@ -254,6 +269,13 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { OAuth2Client object, { FullType specifiedType = FullType.unspecified, }) sync* { + if (object.accessTokenStrategy != null) { + yield r'access_token_strategy'; + yield serializers.serialize( + object.accessTokenStrategy, + specifiedType: const FullType(String), + ); + } if (object.allowedCorsOrigins != null) { yield r'allowed_cors_origins'; yield serializers.serialize( @@ -527,6 +549,20 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + if (object.skipConsent != null) { + yield r'skip_consent'; + yield serializers.serialize( + object.skipConsent, + specifiedType: const FullType(bool), + ); + } + if (object.skipLogoutConsent != null) { + yield r'skip_logout_consent'; + yield serializers.serialize( + object.skipLogoutConsent, + specifiedType: const FullType(bool), + ); + } if (object.subjectType != null) { yield r'subject_type'; yield serializers.serialize( @@ -592,6 +628,13 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { final key = serializedList[i] as String; final value = serializedList[i + 1]; switch (key) { + case r'access_token_strategy': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.accessTokenStrategy = valueDes; + break; case r'allowed_cors_origins': final valueDes = serializers.deserialize( value, @@ -867,6 +910,20 @@ class _$OAuth2ClientSerializer implements PrimitiveSerializer { ) as String; result.sectorIdentifierUri = valueDes; break; + case r'skip_consent': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.skipConsent = valueDes; + break; + case r'skip_logout_consent': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(bool), + ) as bool; + result.skipLogoutConsent = valueDes; + break; case r'subject_type': final valueDes = serializers.deserialize( value, diff --git a/clients/kratos/dart/lib/src/model/o_auth2_client.g.dart b/clients/kratos/dart/lib/src/model/o_auth2_client.g.dart index 760c747917c..60e04cb59a6 100644 --- a/clients/kratos/dart/lib/src/model/o_auth2_client.g.dart +++ b/clients/kratos/dart/lib/src/model/o_auth2_client.g.dart @@ -7,6 +7,8 @@ part of 'o_auth2_client.dart'; // ************************************************************************** class _$OAuth2Client extends OAuth2Client { + @override + final String? accessTokenStrategy; @override final BuiltList? allowedCorsOrigins; @override @@ -86,6 +88,10 @@ class _$OAuth2Client extends OAuth2Client { @override final String? sectorIdentifierUri; @override + final bool? skipConsent; + @override + final bool? skipLogoutConsent; + @override final String? subjectType; @override final String? tokenEndpointAuthMethod; @@ -102,7 +108,8 @@ class _$OAuth2Client extends OAuth2Client { (new OAuth2ClientBuilder()..update(updates))._build(); _$OAuth2Client._( - {this.allowedCorsOrigins, + {this.accessTokenStrategy, + this.allowedCorsOrigins, this.audience, this.authorizationCodeGrantAccessTokenLifespan, this.authorizationCodeGrantIdTokenLifespan, @@ -141,6 +148,8 @@ class _$OAuth2Client extends OAuth2Client { this.responseTypes, this.scope, this.sectorIdentifierUri, + this.skipConsent, + this.skipLogoutConsent, this.subjectType, this.tokenEndpointAuthMethod, this.tokenEndpointAuthSigningAlg, @@ -160,6 +169,7 @@ class _$OAuth2Client extends OAuth2Client { bool operator ==(Object other) { if (identical(other, this)) return true; return other is OAuth2Client && + accessTokenStrategy == other.accessTokenStrategy && allowedCorsOrigins == other.allowedCorsOrigins && audience == other.audience && authorizationCodeGrantAccessTokenLifespan == @@ -210,6 +220,8 @@ class _$OAuth2Client extends OAuth2Client { responseTypes == other.responseTypes && scope == other.scope && sectorIdentifierUri == other.sectorIdentifierUri && + skipConsent == other.skipConsent && + skipLogoutConsent == other.skipLogoutConsent && subjectType == other.subjectType && tokenEndpointAuthMethod == other.tokenEndpointAuthMethod && tokenEndpointAuthSigningAlg == other.tokenEndpointAuthSigningAlg && @@ -221,6 +233,7 @@ class _$OAuth2Client extends OAuth2Client { @override int get hashCode { var _$hash = 0; + _$hash = $jc(_$hash, accessTokenStrategy.hashCode); _$hash = $jc(_$hash, allowedCorsOrigins.hashCode); _$hash = $jc(_$hash, audience.hashCode); _$hash = $jc(_$hash, authorizationCodeGrantAccessTokenLifespan.hashCode); @@ -260,6 +273,8 @@ class _$OAuth2Client extends OAuth2Client { _$hash = $jc(_$hash, responseTypes.hashCode); _$hash = $jc(_$hash, scope.hashCode); _$hash = $jc(_$hash, sectorIdentifierUri.hashCode); + _$hash = $jc(_$hash, skipConsent.hashCode); + _$hash = $jc(_$hash, skipLogoutConsent.hashCode); _$hash = $jc(_$hash, subjectType.hashCode); _$hash = $jc(_$hash, tokenEndpointAuthMethod.hashCode); _$hash = $jc(_$hash, tokenEndpointAuthSigningAlg.hashCode); @@ -273,6 +288,7 @@ class _$OAuth2Client extends OAuth2Client { @override String toString() { return (newBuiltValueToStringHelper(r'OAuth2Client') + ..add('accessTokenStrategy', accessTokenStrategy) ..add('allowedCorsOrigins', allowedCorsOrigins) ..add('audience', audience) ..add('authorizationCodeGrantAccessTokenLifespan', @@ -323,6 +339,8 @@ class _$OAuth2Client extends OAuth2Client { ..add('responseTypes', responseTypes) ..add('scope', scope) ..add('sectorIdentifierUri', sectorIdentifierUri) + ..add('skipConsent', skipConsent) + ..add('skipLogoutConsent', skipLogoutConsent) ..add('subjectType', subjectType) ..add('tokenEndpointAuthMethod', tokenEndpointAuthMethod) ..add('tokenEndpointAuthSigningAlg', tokenEndpointAuthSigningAlg) @@ -337,6 +355,11 @@ class OAuth2ClientBuilder implements Builder { _$OAuth2Client? _$v; + String? _accessTokenStrategy; + String? get accessTokenStrategy => _$this._accessTokenStrategy; + set accessTokenStrategy(String? accessTokenStrategy) => + _$this._accessTokenStrategy = accessTokenStrategy; + ListBuilder? _allowedCorsOrigins; ListBuilder get allowedCorsOrigins => _$this._allowedCorsOrigins ??= new ListBuilder(); @@ -560,6 +583,15 @@ class OAuth2ClientBuilder set sectorIdentifierUri(String? sectorIdentifierUri) => _$this._sectorIdentifierUri = sectorIdentifierUri; + bool? _skipConsent; + bool? get skipConsent => _$this._skipConsent; + set skipConsent(bool? skipConsent) => _$this._skipConsent = skipConsent; + + bool? _skipLogoutConsent; + bool? get skipLogoutConsent => _$this._skipLogoutConsent; + set skipLogoutConsent(bool? skipLogoutConsent) => + _$this._skipLogoutConsent = skipLogoutConsent; + String? _subjectType; String? get subjectType => _$this._subjectType; set subjectType(String? subjectType) => _$this._subjectType = subjectType; @@ -595,6 +627,7 @@ class OAuth2ClientBuilder OAuth2ClientBuilder get _$this { final $v = _$v; if ($v != null) { + _accessTokenStrategy = $v.accessTokenStrategy; _allowedCorsOrigins = $v.allowedCorsOrigins?.toBuilder(); _audience = $v.audience?.toBuilder(); _authorizationCodeGrantAccessTokenLifespan = @@ -640,6 +673,8 @@ class OAuth2ClientBuilder _responseTypes = $v.responseTypes?.toBuilder(); _scope = $v.scope; _sectorIdentifierUri = $v.sectorIdentifierUri; + _skipConsent = $v.skipConsent; + _skipLogoutConsent = $v.skipLogoutConsent; _subjectType = $v.subjectType; _tokenEndpointAuthMethod = $v.tokenEndpointAuthMethod; _tokenEndpointAuthSigningAlg = $v.tokenEndpointAuthSigningAlg; @@ -670,6 +705,7 @@ class OAuth2ClientBuilder try { _$result = _$v ?? new _$OAuth2Client._( + accessTokenStrategy: accessTokenStrategy, allowedCorsOrigins: _allowedCorsOrigins?.build(), audience: _audience?.build(), authorizationCodeGrantAccessTokenLifespan: @@ -720,6 +756,8 @@ class OAuth2ClientBuilder responseTypes: _responseTypes?.build(), scope: scope, sectorIdentifierUri: sectorIdentifierUri, + skipConsent: skipConsent, + skipLogoutConsent: skipLogoutConsent, subjectType: subjectType, tokenEndpointAuthMethod: tokenEndpointAuthMethod, tokenEndpointAuthSigningAlg: tokenEndpointAuthSigningAlg, diff --git a/clients/kratos/dart/lib/src/model/pagination.dart b/clients/kratos/dart/lib/src/model/pagination.dart deleted file mode 100644 index c540823c2cf..00000000000 --- a/clients/kratos/dart/lib/src/model/pagination.dart +++ /dev/null @@ -1,130 +0,0 @@ -// -// AUTO-GENERATED FILE, DO NOT MODIFY! -// - -// ignore_for_file: unused_element -import 'package:built_value/built_value.dart'; -import 'package:built_value/serializer.dart'; - -part 'pagination.g.dart'; - -/// Pagination -/// -/// Properties: -/// * [page] - Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. -/// * [perPage] - Items per Page This is the number of items per page. -@BuiltValue() -abstract class Pagination implements Built { - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. - @BuiltValueField(wireName: r'page') - int? get page; - - /// Items per Page This is the number of items per page. - @BuiltValueField(wireName: r'per_page') - int? get perPage; - - Pagination._(); - - factory Pagination([void updates(PaginationBuilder b)]) = _$Pagination; - - @BuiltValueHook(initializeBuilder: true) - static void _defaults(PaginationBuilder b) => b - ..page = 1 - ..perPage = 250; - - @BuiltValueSerializer(custom: true) - static Serializer get serializer => _$PaginationSerializer(); -} - -class _$PaginationSerializer implements PrimitiveSerializer { - @override - final Iterable types = const [Pagination, _$Pagination]; - - @override - final String wireName = r'Pagination'; - - Iterable _serializeProperties( - Serializers serializers, - Pagination object, { - FullType specifiedType = FullType.unspecified, - }) sync* { - if (object.page != null) { - yield r'page'; - yield serializers.serialize( - object.page, - specifiedType: const FullType(int), - ); - } - if (object.perPage != null) { - yield r'per_page'; - yield serializers.serialize( - object.perPage, - specifiedType: const FullType(int), - ); - } - } - - @override - Object serialize( - Serializers serializers, - Pagination object, { - FullType specifiedType = FullType.unspecified, - }) { - return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); - } - - void _deserializeProperties( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - required List serializedList, - required PaginationBuilder result, - required List unhandled, - }) { - for (var i = 0; i < serializedList.length; i += 2) { - final key = serializedList[i] as String; - final value = serializedList[i + 1]; - switch (key) { - case r'page': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.page = valueDes; - break; - case r'per_page': - final valueDes = serializers.deserialize( - value, - specifiedType: const FullType(int), - ) as int; - result.perPage = valueDes; - break; - default: - unhandled.add(key); - unhandled.add(value); - break; - } - } - } - - @override - Pagination deserialize( - Serializers serializers, - Object serialized, { - FullType specifiedType = FullType.unspecified, - }) { - final result = PaginationBuilder(); - final serializedList = (serialized as Iterable).toList(); - final unhandled = []; - _deserializeProperties( - serializers, - serialized, - specifiedType: specifiedType, - serializedList: serializedList, - unhandled: unhandled, - result: result, - ); - return result.build(); - } -} - diff --git a/clients/kratos/dart/lib/src/model/pagination.g.dart b/clients/kratos/dart/lib/src/model/pagination.g.dart deleted file mode 100644 index d5b654eb357..00000000000 --- a/clients/kratos/dart/lib/src/model/pagination.g.dart +++ /dev/null @@ -1,99 +0,0 @@ -// GENERATED CODE - DO NOT MODIFY BY HAND - -part of 'pagination.dart'; - -// ************************************************************************** -// BuiltValueGenerator -// ************************************************************************** - -class _$Pagination extends Pagination { - @override - final int? page; - @override - final int? perPage; - - factory _$Pagination([void Function(PaginationBuilder)? updates]) => - (new PaginationBuilder()..update(updates))._build(); - - _$Pagination._({this.page, this.perPage}) : super._(); - - @override - Pagination rebuild(void Function(PaginationBuilder) updates) => - (toBuilder()..update(updates)).build(); - - @override - PaginationBuilder toBuilder() => new PaginationBuilder()..replace(this); - - @override - bool operator ==(Object other) { - if (identical(other, this)) return true; - return other is Pagination && - page == other.page && - perPage == other.perPage; - } - - @override - int get hashCode { - var _$hash = 0; - _$hash = $jc(_$hash, page.hashCode); - _$hash = $jc(_$hash, perPage.hashCode); - _$hash = $jf(_$hash); - return _$hash; - } - - @override - String toString() { - return (newBuiltValueToStringHelper(r'Pagination') - ..add('page', page) - ..add('perPage', perPage)) - .toString(); - } -} - -class PaginationBuilder implements Builder { - _$Pagination? _$v; - - int? _page; - int? get page => _$this._page; - set page(int? page) => _$this._page = page; - - int? _perPage; - int? get perPage => _$this._perPage; - set perPage(int? perPage) => _$this._perPage = perPage; - - PaginationBuilder() { - Pagination._defaults(this); - } - - PaginationBuilder get _$this { - final $v = _$v; - if ($v != null) { - _page = $v.page; - _perPage = $v.perPage; - _$v = null; - } - return this; - } - - @override - void replace(Pagination other) { - ArgumentError.checkNotNull(other, 'other'); - _$v = other as _$Pagination; - } - - @override - void update(void Function(PaginationBuilder)? updates) { - if (updates != null) updates(this); - } - - @override - Pagination build() => _build(); - - _$Pagination _build() { - final _$result = _$v ?? new _$Pagination._(page: page, perPage: perPage); - replace(_$result); - return _$result; - } -} - -// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/recovery_code_for_identity.dart b/clients/kratos/dart/lib/src/model/recovery_code_for_identity.dart index 6f8ee9ddc36..48fa70c4fe7 100644 --- a/clients/kratos/dart/lib/src/model/recovery_code_for_identity.dart +++ b/clients/kratos/dart/lib/src/model/recovery_code_for_identity.dart @@ -11,12 +11,12 @@ part 'recovery_code_for_identity.g.dart'; /// Used when an administrator creates a recovery code for an identity. /// /// Properties: -/// * [expiresAt] - Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. +/// * [expiresAt] - Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. /// * [recoveryCode] - RecoveryCode is the code that can be used to recover the account /// * [recoveryLink] - RecoveryLink with flow This link opens the recovery UI with an empty `code` field. @BuiltValue() abstract class RecoveryCodeForIdentity implements Built { - /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. + /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. @BuiltValueField(wireName: r'expires_at') DateTime? get expiresAt; diff --git a/clients/kratos/dart/lib/src/model/recovery_flow.dart b/clients/kratos/dart/lib/src/model/recovery_flow.dart index 35de138981d..f13357d6ba8 100644 --- a/clients/kratos/dart/lib/src/model/recovery_flow.dart +++ b/clients/kratos/dart/lib/src/model/recovery_flow.dart @@ -3,8 +3,10 @@ // // ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:ory_kratos_client/src/model/continue_with.dart'; import 'package:ory_kratos_client/src/model/ui_container.dart'; -import 'package:ory_kratos_client/src/model/recovery_flow_state.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -14,12 +16,13 @@ part 'recovery_flow.g.dart'; /// /// Properties: /// * [active] - Active, if set, contains the recovery method that is being used. It is initially not set. +/// * [continueWith] - Contains possible actions that could follow this flow /// * [expiresAt] - ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. /// * [id] - ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://?request= /// * [issuedAt] - IssuedAt is the time (UTC) when the request occurred. /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. -/// * [state] +/// * [state] - State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() @@ -28,6 +31,10 @@ abstract class RecoveryFlow implements Built @BuiltValueField(wireName: r'active') String? get active; + /// Contains possible actions that could follow this flow + @BuiltValueField(wireName: r'continue_with') + BuiltList? get continueWith; + /// ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. @BuiltValueField(wireName: r'expires_at') DateTime get expiresAt; @@ -48,9 +55,9 @@ abstract class RecoveryFlow implements Built @BuiltValueField(wireName: r'return_to') String? get returnTo; + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. @BuiltValueField(wireName: r'state') - RecoveryFlowState get state; - // enum stateEnum { choose_method, sent_email, passed_challenge, }; + JsonObject? get state; /// The flow type can either be `api` or `browser`. @BuiltValueField(wireName: r'type') @@ -89,6 +96,13 @@ class _$RecoveryFlowSerializer implements PrimitiveSerializer { specifiedType: const FullType(String), ); } + if (object.continueWith != null) { + yield r'continue_with'; + yield serializers.serialize( + object.continueWith, + specifiedType: const FullType(BuiltList, [FullType(ContinueWith)]), + ); + } yield r'expires_at'; yield serializers.serialize( object.expiresAt, @@ -117,9 +131,9 @@ class _$RecoveryFlowSerializer implements PrimitiveSerializer { ); } yield r'state'; - yield serializers.serialize( + yield object.state == null ? null : serializers.serialize( object.state, - specifiedType: const FullType(RecoveryFlowState), + specifiedType: const FullType.nullable(JsonObject), ); yield r'type'; yield serializers.serialize( @@ -161,6 +175,13 @@ class _$RecoveryFlowSerializer implements PrimitiveSerializer { ) as String; result.active = valueDes; break; + case r'continue_with': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(BuiltList, [FullType(ContinueWith)]), + ) as BuiltList; + result.continueWith.replace(valueDes); + break; case r'expires_at': final valueDes = serializers.deserialize( value, @@ -199,8 +220,9 @@ class _$RecoveryFlowSerializer implements PrimitiveSerializer { case r'state': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(RecoveryFlowState), - ) as RecoveryFlowState; + specifiedType: const FullType.nullable(JsonObject), + ) as JsonObject?; + if (valueDes == null) continue; result.state = valueDes; break; case r'type': diff --git a/clients/kratos/dart/lib/src/model/recovery_flow.g.dart b/clients/kratos/dart/lib/src/model/recovery_flow.g.dart index 051501c2b83..ed561555a87 100644 --- a/clients/kratos/dart/lib/src/model/recovery_flow.g.dart +++ b/clients/kratos/dart/lib/src/model/recovery_flow.g.dart @@ -10,6 +10,8 @@ class _$RecoveryFlow extends RecoveryFlow { @override final String? active; @override + final BuiltList? continueWith; + @override final DateTime expiresAt; @override final String id; @@ -20,7 +22,7 @@ class _$RecoveryFlow extends RecoveryFlow { @override final String? returnTo; @override - final RecoveryFlowState state; + final JsonObject? state; @override final String type; @override @@ -31,12 +33,13 @@ class _$RecoveryFlow extends RecoveryFlow { _$RecoveryFlow._( {this.active, + this.continueWith, required this.expiresAt, required this.id, required this.issuedAt, required this.requestUrl, this.returnTo, - required this.state, + this.state, required this.type, required this.ui}) : super._() { @@ -47,7 +50,6 @@ class _$RecoveryFlow extends RecoveryFlow { issuedAt, r'RecoveryFlow', 'issuedAt'); BuiltValueNullFieldError.checkNotNull( requestUrl, r'RecoveryFlow', 'requestUrl'); - BuiltValueNullFieldError.checkNotNull(state, r'RecoveryFlow', 'state'); BuiltValueNullFieldError.checkNotNull(type, r'RecoveryFlow', 'type'); BuiltValueNullFieldError.checkNotNull(ui, r'RecoveryFlow', 'ui'); } @@ -64,6 +66,7 @@ class _$RecoveryFlow extends RecoveryFlow { if (identical(other, this)) return true; return other is RecoveryFlow && active == other.active && + continueWith == other.continueWith && expiresAt == other.expiresAt && id == other.id && issuedAt == other.issuedAt && @@ -78,6 +81,7 @@ class _$RecoveryFlow extends RecoveryFlow { int get hashCode { var _$hash = 0; _$hash = $jc(_$hash, active.hashCode); + _$hash = $jc(_$hash, continueWith.hashCode); _$hash = $jc(_$hash, expiresAt.hashCode); _$hash = $jc(_$hash, id.hashCode); _$hash = $jc(_$hash, issuedAt.hashCode); @@ -94,6 +98,7 @@ class _$RecoveryFlow extends RecoveryFlow { String toString() { return (newBuiltValueToStringHelper(r'RecoveryFlow') ..add('active', active) + ..add('continueWith', continueWith) ..add('expiresAt', expiresAt) ..add('id', id) ..add('issuedAt', issuedAt) @@ -114,6 +119,12 @@ class RecoveryFlowBuilder String? get active => _$this._active; set active(String? active) => _$this._active = active; + ListBuilder? _continueWith; + ListBuilder get continueWith => + _$this._continueWith ??= new ListBuilder(); + set continueWith(ListBuilder? continueWith) => + _$this._continueWith = continueWith; + DateTime? _expiresAt; DateTime? get expiresAt => _$this._expiresAt; set expiresAt(DateTime? expiresAt) => _$this._expiresAt = expiresAt; @@ -134,9 +145,9 @@ class RecoveryFlowBuilder String? get returnTo => _$this._returnTo; set returnTo(String? returnTo) => _$this._returnTo = returnTo; - RecoveryFlowState? _state; - RecoveryFlowState? get state => _$this._state; - set state(RecoveryFlowState? state) => _$this._state = state; + JsonObject? _state; + JsonObject? get state => _$this._state; + set state(JsonObject? state) => _$this._state = state; String? _type; String? get type => _$this._type; @@ -154,6 +165,7 @@ class RecoveryFlowBuilder final $v = _$v; if ($v != null) { _active = $v.active; + _continueWith = $v.continueWith?.toBuilder(); _expiresAt = $v.expiresAt; _id = $v.id; _issuedAt = $v.issuedAt; @@ -187,6 +199,7 @@ class RecoveryFlowBuilder _$result = _$v ?? new _$RecoveryFlow._( active: active, + continueWith: _continueWith?.build(), expiresAt: BuiltValueNullFieldError.checkNotNull( expiresAt, r'RecoveryFlow', 'expiresAt'), id: BuiltValueNullFieldError.checkNotNull( @@ -196,14 +209,16 @@ class RecoveryFlowBuilder requestUrl: BuiltValueNullFieldError.checkNotNull( requestUrl, r'RecoveryFlow', 'requestUrl'), returnTo: returnTo, - state: BuiltValueNullFieldError.checkNotNull( - state, r'RecoveryFlow', 'state'), + state: state, type: BuiltValueNullFieldError.checkNotNull( type, r'RecoveryFlow', 'type'), ui: ui.build()); } catch (_) { late String _$failedField; try { + _$failedField = 'continueWith'; + _continueWith?.build(); + _$failedField = 'ui'; ui.build(); } catch (e) { diff --git a/clients/kratos/dart/lib/src/model/registration_flow.dart b/clients/kratos/dart/lib/src/model/registration_flow.dart index e20d06223cc..1570907ba19 100644 --- a/clients/kratos/dart/lib/src/model/registration_flow.dart +++ b/clients/kratos/dart/lib/src/model/registration_flow.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:ory_kratos_client/src/model/o_auth2_login_request.dart'; -import 'package:ory_kratos_client/src/model/identity_credentials_type.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:ory_kratos_client/src/model/ui_container.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; @@ -15,23 +15,26 @@ part 'registration_flow.g.dart'; /// RegistrationFlow /// /// Properties: -/// * [active] +/// * [active] - Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// * [expiresAt] - ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. /// * [id] - ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http:///?flow= /// * [issuedAt] - IssuedAt is the time (UTC) when the flow occurred. /// * [oauth2LoginChallenge] - Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. /// * [oauth2LoginRequest] +/// * [organizationId] /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. /// * [sessionTokenExchangeCode] - SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the flow. +/// * [state] - State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. /// * [transientPayload] - TransientPayload is used to pass data from the registration to a webhook /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() abstract class RegistrationFlow implements Built { + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 @BuiltValueField(wireName: r'active') - IdentityCredentialsType? get active; - // enum activeEnum { password, totp, oidc, webauthn, lookup_secret, }; + RegistrationFlowActiveEnum? get active; + // enum activeEnum { password, oidc, totp, lookup_secret, webauthn, code, link_recovery, code_recovery, }; /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. @BuiltValueField(wireName: r'expires_at') @@ -52,6 +55,9 @@ abstract class RegistrationFlow implements Built get serializer => _$registrationFlowActiveEnumSerializer; + + const RegistrationFlowActiveEnum._(String name): super(name); + + static BuiltSet get values => _$registrationFlowActiveEnumValues; + static RegistrationFlowActiveEnum valueOf(String name) => _$registrationFlowActiveEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/registration_flow.g.dart b/clients/kratos/dart/lib/src/model/registration_flow.g.dart index bb02fa62b5d..8c2a7c975a6 100644 --- a/clients/kratos/dart/lib/src/model/registration_flow.g.dart +++ b/clients/kratos/dart/lib/src/model/registration_flow.g.dart @@ -6,9 +6,105 @@ part of 'registration_flow.dart'; // BuiltValueGenerator // ************************************************************************** +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_password = + const RegistrationFlowActiveEnum._('password'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_oidc = + const RegistrationFlowActiveEnum._('oidc'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_totp = + const RegistrationFlowActiveEnum._('totp'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_lookupSecret = + const RegistrationFlowActiveEnum._('lookupSecret'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_webauthn = + const RegistrationFlowActiveEnum._('webauthn'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_code = + const RegistrationFlowActiveEnum._('code'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_linkRecovery = + const RegistrationFlowActiveEnum._('linkRecovery'); +const RegistrationFlowActiveEnum _$registrationFlowActiveEnum_codeRecovery = + const RegistrationFlowActiveEnum._('codeRecovery'); + +RegistrationFlowActiveEnum _$registrationFlowActiveEnumValueOf(String name) { + switch (name) { + case 'password': + return _$registrationFlowActiveEnum_password; + case 'oidc': + return _$registrationFlowActiveEnum_oidc; + case 'totp': + return _$registrationFlowActiveEnum_totp; + case 'lookupSecret': + return _$registrationFlowActiveEnum_lookupSecret; + case 'webauthn': + return _$registrationFlowActiveEnum_webauthn; + case 'code': + return _$registrationFlowActiveEnum_code; + case 'linkRecovery': + return _$registrationFlowActiveEnum_linkRecovery; + case 'codeRecovery': + return _$registrationFlowActiveEnum_codeRecovery; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$registrationFlowActiveEnumValues = + new BuiltSet(const [ + _$registrationFlowActiveEnum_password, + _$registrationFlowActiveEnum_oidc, + _$registrationFlowActiveEnum_totp, + _$registrationFlowActiveEnum_lookupSecret, + _$registrationFlowActiveEnum_webauthn, + _$registrationFlowActiveEnum_code, + _$registrationFlowActiveEnum_linkRecovery, + _$registrationFlowActiveEnum_codeRecovery, +]); + +Serializer _$registrationFlowActiveEnumSerializer = + new _$RegistrationFlowActiveEnumSerializer(); + +class _$RegistrationFlowActiveEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookupSecret': 'lookup_secret', + 'webauthn': 'webauthn', + 'code': 'code', + 'linkRecovery': 'link_recovery', + 'codeRecovery': 'code_recovery', + }; + static const Map _fromWire = const { + 'password': 'password', + 'oidc': 'oidc', + 'totp': 'totp', + 'lookup_secret': 'lookupSecret', + 'webauthn': 'webauthn', + 'code': 'code', + 'link_recovery': 'linkRecovery', + 'code_recovery': 'codeRecovery', + }; + + @override + final Iterable types = const [RegistrationFlowActiveEnum]; + @override + final String wireName = 'RegistrationFlowActiveEnum'; + + @override + Object serialize(Serializers serializers, RegistrationFlowActiveEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + RegistrationFlowActiveEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + RegistrationFlowActiveEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$RegistrationFlow extends RegistrationFlow { @override - final IdentityCredentialsType? active; + final RegistrationFlowActiveEnum? active; @override final DateTime expiresAt; @override @@ -20,12 +116,16 @@ class _$RegistrationFlow extends RegistrationFlow { @override final OAuth2LoginRequest? oauth2LoginRequest; @override + final String? organizationId; + @override final String requestUrl; @override final String? returnTo; @override final String? sessionTokenExchangeCode; @override + final JsonObject? state; + @override final JsonObject? transientPayload; @override final String type; @@ -43,9 +143,11 @@ class _$RegistrationFlow extends RegistrationFlow { required this.issuedAt, this.oauth2LoginChallenge, this.oauth2LoginRequest, + this.organizationId, required this.requestUrl, this.returnTo, this.sessionTokenExchangeCode, + this.state, this.transientPayload, required this.type, required this.ui}) @@ -79,9 +181,11 @@ class _$RegistrationFlow extends RegistrationFlow { issuedAt == other.issuedAt && oauth2LoginChallenge == other.oauth2LoginChallenge && oauth2LoginRequest == other.oauth2LoginRequest && + organizationId == other.organizationId && requestUrl == other.requestUrl && returnTo == other.returnTo && sessionTokenExchangeCode == other.sessionTokenExchangeCode && + state == other.state && transientPayload == other.transientPayload && type == other.type && ui == other.ui; @@ -96,9 +200,11 @@ class _$RegistrationFlow extends RegistrationFlow { _$hash = $jc(_$hash, issuedAt.hashCode); _$hash = $jc(_$hash, oauth2LoginChallenge.hashCode); _$hash = $jc(_$hash, oauth2LoginRequest.hashCode); + _$hash = $jc(_$hash, organizationId.hashCode); _$hash = $jc(_$hash, requestUrl.hashCode); _$hash = $jc(_$hash, returnTo.hashCode); _$hash = $jc(_$hash, sessionTokenExchangeCode.hashCode); + _$hash = $jc(_$hash, state.hashCode); _$hash = $jc(_$hash, transientPayload.hashCode); _$hash = $jc(_$hash, type.hashCode); _$hash = $jc(_$hash, ui.hashCode); @@ -115,9 +221,11 @@ class _$RegistrationFlow extends RegistrationFlow { ..add('issuedAt', issuedAt) ..add('oauth2LoginChallenge', oauth2LoginChallenge) ..add('oauth2LoginRequest', oauth2LoginRequest) + ..add('organizationId', organizationId) ..add('requestUrl', requestUrl) ..add('returnTo', returnTo) ..add('sessionTokenExchangeCode', sessionTokenExchangeCode) + ..add('state', state) ..add('transientPayload', transientPayload) ..add('type', type) ..add('ui', ui)) @@ -129,9 +237,9 @@ class RegistrationFlowBuilder implements Builder { _$RegistrationFlow? _$v; - IdentityCredentialsType? _active; - IdentityCredentialsType? get active => _$this._active; - set active(IdentityCredentialsType? active) => _$this._active = active; + RegistrationFlowActiveEnum? _active; + RegistrationFlowActiveEnum? get active => _$this._active; + set active(RegistrationFlowActiveEnum? active) => _$this._active = active; DateTime? _expiresAt; DateTime? get expiresAt => _$this._expiresAt; @@ -156,6 +264,11 @@ class RegistrationFlowBuilder set oauth2LoginRequest(OAuth2LoginRequestBuilder? oauth2LoginRequest) => _$this._oauth2LoginRequest = oauth2LoginRequest; + String? _organizationId; + String? get organizationId => _$this._organizationId; + set organizationId(String? organizationId) => + _$this._organizationId = organizationId; + String? _requestUrl; String? get requestUrl => _$this._requestUrl; set requestUrl(String? requestUrl) => _$this._requestUrl = requestUrl; @@ -169,6 +282,10 @@ class RegistrationFlowBuilder set sessionTokenExchangeCode(String? sessionTokenExchangeCode) => _$this._sessionTokenExchangeCode = sessionTokenExchangeCode; + JsonObject? _state; + JsonObject? get state => _$this._state; + set state(JsonObject? state) => _$this._state = state; + JsonObject? _transientPayload; JsonObject? get transientPayload => _$this._transientPayload; set transientPayload(JsonObject? transientPayload) => @@ -195,9 +312,11 @@ class RegistrationFlowBuilder _issuedAt = $v.issuedAt; _oauth2LoginChallenge = $v.oauth2LoginChallenge; _oauth2LoginRequest = $v.oauth2LoginRequest?.toBuilder(); + _organizationId = $v.organizationId; _requestUrl = $v.requestUrl; _returnTo = $v.returnTo; _sessionTokenExchangeCode = $v.sessionTokenExchangeCode; + _state = $v.state; _transientPayload = $v.transientPayload; _type = $v.type; _ui = $v.ui.toBuilder(); @@ -234,10 +353,12 @@ class RegistrationFlowBuilder issuedAt, r'RegistrationFlow', 'issuedAt'), oauth2LoginChallenge: oauth2LoginChallenge, oauth2LoginRequest: _oauth2LoginRequest?.build(), + organizationId: organizationId, requestUrl: BuiltValueNullFieldError.checkNotNull( requestUrl, r'RegistrationFlow', 'requestUrl'), returnTo: returnTo, sessionTokenExchangeCode: sessionTokenExchangeCode, + state: state, transientPayload: transientPayload, type: BuiltValueNullFieldError.checkNotNull( type, r'RegistrationFlow', 'type'), diff --git a/clients/kratos/dart/lib/src/model/registration_flow_state.dart b/clients/kratos/dart/lib/src/model/registration_flow_state.dart new file mode 100644 index 00000000000..3b7ee72c2c2 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/registration_flow_state.dart @@ -0,0 +1,39 @@ +// +// AUTO-GENERATED FILE, DO NOT MODIFY! +// + +// ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; +import 'package:built_value/built_value.dart'; +import 'package:built_value/serializer.dart'; + +part 'registration_flow_state.g.dart'; + +class RegistrationFlowState extends EnumClass { + + /// choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + @BuiltValueEnumConst(wireName: r'choose_method') + static const RegistrationFlowState chooseMethod = _$chooseMethod; + /// choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + @BuiltValueEnumConst(wireName: r'sent_email') + static const RegistrationFlowState sentEmail = _$sentEmail; + /// choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + @BuiltValueEnumConst(wireName: r'passed_challenge') + static const RegistrationFlowState passedChallenge = _$passedChallenge; + + static Serializer get serializer => _$registrationFlowStateSerializer; + + const RegistrationFlowState._(String name): super(name); + + static BuiltSet get values => _$values; + static RegistrationFlowState valueOf(String name) => _$valueOf(name); +} + +/// Optionally, enum_class can generate a mixin to go with your enum for use +/// with Angular. It exposes your enum constants as getters. So, if you mix it +/// in to your Dart component class, the values become available to the +/// corresponding Angular template. +/// +/// Trigger mixin generation by writing a line like this one next to your enum. +abstract class RegistrationFlowStateMixin = Object with _$RegistrationFlowStateMixin; + diff --git a/clients/kratos/dart/lib/src/model/registration_flow_state.g.dart b/clients/kratos/dart/lib/src/model/registration_flow_state.g.dart new file mode 100644 index 00000000000..ae52e1203d6 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/registration_flow_state.g.dart @@ -0,0 +1,84 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'registration_flow_state.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +const RegistrationFlowState _$chooseMethod = + const RegistrationFlowState._('chooseMethod'); +const RegistrationFlowState _$sentEmail = + const RegistrationFlowState._('sentEmail'); +const RegistrationFlowState _$passedChallenge = + const RegistrationFlowState._('passedChallenge'); + +RegistrationFlowState _$valueOf(String name) { + switch (name) { + case 'chooseMethod': + return _$chooseMethod; + case 'sentEmail': + return _$sentEmail; + case 'passedChallenge': + return _$passedChallenge; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet _$values = + new BuiltSet(const [ + _$chooseMethod, + _$sentEmail, + _$passedChallenge, +]); + +class _$RegistrationFlowStateMeta { + const _$RegistrationFlowStateMeta(); + RegistrationFlowState get chooseMethod => _$chooseMethod; + RegistrationFlowState get sentEmail => _$sentEmail; + RegistrationFlowState get passedChallenge => _$passedChallenge; + RegistrationFlowState valueOf(String name) => _$valueOf(name); + BuiltSet get values => _$values; +} + +abstract class _$RegistrationFlowStateMixin { + // ignore: non_constant_identifier_names + _$RegistrationFlowStateMeta get RegistrationFlowState => + const _$RegistrationFlowStateMeta(); +} + +Serializer _$registrationFlowStateSerializer = + new _$RegistrationFlowStateSerializer(); + +class _$RegistrationFlowStateSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'chooseMethod': 'choose_method', + 'sentEmail': 'sent_email', + 'passedChallenge': 'passed_challenge', + }; + static const Map _fromWire = const { + 'choose_method': 'chooseMethod', + 'sent_email': 'sentEmail', + 'passed_challenge': 'passedChallenge', + }; + + @override + final Iterable types = const [RegistrationFlowState]; + @override + final String wireName = 'RegistrationFlowState'; + + @override + Object serialize(Serializers serializers, RegistrationFlowState object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + RegistrationFlowState deserialize(Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + RegistrationFlowState.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/session.dart b/clients/kratos/dart/lib/src/model/session.dart index ba548a9af78..92ef19c4879 100644 --- a/clients/kratos/dart/lib/src/model/session.dart +++ b/clients/kratos/dart/lib/src/model/session.dart @@ -25,6 +25,7 @@ part 'session.g.dart'; /// * [id] - Session ID /// * [identity] /// * [issuedAt] - The Session Issuance Timestamp When this session was issued at. Usually equal or close to `authenticated_at`. +/// * [tokenized] - Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. @BuiltValue() abstract class Session implements Built { /// Active state. If false the session is no longer active. @@ -56,12 +57,16 @@ abstract class Session implements Built { String get id; @BuiltValueField(wireName: r'identity') - Identity get identity; + Identity? get identity; /// The Session Issuance Timestamp When this session was issued at. Usually equal or close to `authenticated_at`. @BuiltValueField(wireName: r'issued_at') DateTime? get issuedAt; + /// Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. + @BuiltValueField(wireName: r'tokenized') + String? get tokenized; + Session._(); factory Session([void updates(SessionBuilder b)]) = _$Session; @@ -132,11 +137,13 @@ class _$SessionSerializer implements PrimitiveSerializer { object.id, specifiedType: const FullType(String), ); - yield r'identity'; - yield serializers.serialize( - object.identity, - specifiedType: const FullType(Identity), - ); + if (object.identity != null) { + yield r'identity'; + yield serializers.serialize( + object.identity, + specifiedType: const FullType(Identity), + ); + } if (object.issuedAt != null) { yield r'issued_at'; yield serializers.serialize( @@ -144,6 +151,13 @@ class _$SessionSerializer implements PrimitiveSerializer { specifiedType: const FullType(DateTime), ); } + if (object.tokenized != null) { + yield r'tokenized'; + yield serializers.serialize( + object.tokenized, + specifiedType: const FullType(String), + ); + } } @override @@ -230,6 +244,13 @@ class _$SessionSerializer implements PrimitiveSerializer { ) as DateTime; result.issuedAt = valueDes; break; + case r'tokenized': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.tokenized = valueDes; + break; default: unhandled.add(key); unhandled.add(value); diff --git a/clients/kratos/dart/lib/src/model/session.g.dart b/clients/kratos/dart/lib/src/model/session.g.dart index e86279987f0..f2ffab209cc 100644 --- a/clients/kratos/dart/lib/src/model/session.g.dart +++ b/clients/kratos/dart/lib/src/model/session.g.dart @@ -22,9 +22,11 @@ class _$Session extends Session { @override final String id; @override - final Identity identity; + final Identity? identity; @override final DateTime? issuedAt; + @override + final String? tokenized; factory _$Session([void Function(SessionBuilder)? updates]) => (new SessionBuilder()..update(updates))._build(); @@ -37,11 +39,11 @@ class _$Session extends Session { this.devices, this.expiresAt, required this.id, - required this.identity, - this.issuedAt}) + this.identity, + this.issuedAt, + this.tokenized}) : super._() { BuiltValueNullFieldError.checkNotNull(id, r'Session', 'id'); - BuiltValueNullFieldError.checkNotNull(identity, r'Session', 'identity'); } @override @@ -63,7 +65,8 @@ class _$Session extends Session { expiresAt == other.expiresAt && id == other.id && identity == other.identity && - issuedAt == other.issuedAt; + issuedAt == other.issuedAt && + tokenized == other.tokenized; } @override @@ -78,6 +81,7 @@ class _$Session extends Session { _$hash = $jc(_$hash, id.hashCode); _$hash = $jc(_$hash, identity.hashCode); _$hash = $jc(_$hash, issuedAt.hashCode); + _$hash = $jc(_$hash, tokenized.hashCode); _$hash = $jf(_$hash); return _$hash; } @@ -93,7 +97,8 @@ class _$Session extends Session { ..add('expiresAt', expiresAt) ..add('id', id) ..add('identity', identity) - ..add('issuedAt', issuedAt)) + ..add('issuedAt', issuedAt) + ..add('tokenized', tokenized)) .toString(); } } @@ -146,6 +151,10 @@ class SessionBuilder implements Builder { DateTime? get issuedAt => _$this._issuedAt; set issuedAt(DateTime? issuedAt) => _$this._issuedAt = issuedAt; + String? _tokenized; + String? get tokenized => _$this._tokenized; + set tokenized(String? tokenized) => _$this._tokenized = tokenized; + SessionBuilder() { Session._defaults(this); } @@ -160,8 +169,9 @@ class SessionBuilder implements Builder { _devices = $v.devices?.toBuilder(); _expiresAt = $v.expiresAt; _id = $v.id; - _identity = $v.identity.toBuilder(); + _identity = $v.identity?.toBuilder(); _issuedAt = $v.issuedAt; + _tokenized = $v.tokenized; _$v = null; } return this; @@ -193,8 +203,9 @@ class SessionBuilder implements Builder { devices: _devices?.build(), expiresAt: expiresAt, id: BuiltValueNullFieldError.checkNotNull(id, r'Session', 'id'), - identity: identity.build(), - issuedAt: issuedAt); + identity: _identity?.build(), + issuedAt: issuedAt, + tokenized: tokenized); } catch (_) { late String _$failedField; try { @@ -205,7 +216,7 @@ class SessionBuilder implements Builder { _devices?.build(); _$failedField = 'identity'; - identity.build(); + _identity?.build(); } catch (e) { throw new BuiltValueNestedFieldError( r'Session', _$failedField, e.toString()); diff --git a/clients/kratos/dart/lib/src/model/session_authentication_method.dart b/clients/kratos/dart/lib/src/model/session_authentication_method.dart index 7553be95bc9..bd805dfd79a 100644 --- a/clients/kratos/dart/lib/src/model/session_authentication_method.dart +++ b/clients/kratos/dart/lib/src/model/session_authentication_method.dart @@ -16,6 +16,7 @@ part 'session_authentication_method.g.dart'; /// * [aal] /// * [completedAt] - When the authentication challenge was completed. /// * [method] +/// * [organization] - The Organization id used for authentication /// * [provider] - OIDC or SAML provider id used for authentication @BuiltValue() abstract class SessionAuthenticationMethod implements Built { @@ -29,7 +30,11 @@ abstract class SessionAuthenticationMethod implements Built _$sessionAuthenticationMethodMethodEnum_linkRecovery, _$sessionAuthenticationMethodMethodEnum_codeRecovery, _$sessionAuthenticationMethodMethodEnum_password, + _$sessionAuthenticationMethodMethodEnum_code, _$sessionAuthenticationMethodMethodEnum_totp, _$sessionAuthenticationMethodMethodEnum_oidc, _$sessionAuthenticationMethodMethodEnum_webauthn, @@ -78,6 +84,7 @@ class _$SessionAuthenticationMethodMethodEnumSerializer 'linkRecovery': 'link_recovery', 'codeRecovery': 'code_recovery', 'password': 'password', + 'code': 'code', 'totp': 'totp', 'oidc': 'oidc', 'webauthn': 'webauthn', @@ -88,6 +95,7 @@ class _$SessionAuthenticationMethodMethodEnumSerializer 'link_recovery': 'linkRecovery', 'code_recovery': 'codeRecovery', 'password': 'password', + 'code': 'code', 'totp': 'totp', 'oidc': 'oidc', 'webauthn': 'webauthn', @@ -124,6 +132,8 @@ class _$SessionAuthenticationMethod extends SessionAuthenticationMethod { @override final SessionAuthenticationMethodMethodEnum? method; @override + final String? organization; + @override final String? provider; factory _$SessionAuthenticationMethod( @@ -131,7 +141,11 @@ class _$SessionAuthenticationMethod extends SessionAuthenticationMethod { (new SessionAuthenticationMethodBuilder()..update(updates))._build(); _$SessionAuthenticationMethod._( - {this.aal, this.completedAt, this.method, this.provider}) + {this.aal, + this.completedAt, + this.method, + this.organization, + this.provider}) : super._(); @override @@ -150,6 +164,7 @@ class _$SessionAuthenticationMethod extends SessionAuthenticationMethod { aal == other.aal && completedAt == other.completedAt && method == other.method && + organization == other.organization && provider == other.provider; } @@ -159,6 +174,7 @@ class _$SessionAuthenticationMethod extends SessionAuthenticationMethod { _$hash = $jc(_$hash, aal.hashCode); _$hash = $jc(_$hash, completedAt.hashCode); _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, organization.hashCode); _$hash = $jc(_$hash, provider.hashCode); _$hash = $jf(_$hash); return _$hash; @@ -170,6 +186,7 @@ class _$SessionAuthenticationMethod extends SessionAuthenticationMethod { ..add('aal', aal) ..add('completedAt', completedAt) ..add('method', method) + ..add('organization', organization) ..add('provider', provider)) .toString(); } @@ -194,6 +211,10 @@ class SessionAuthenticationMethodBuilder set method(SessionAuthenticationMethodMethodEnum? method) => _$this._method = method; + String? _organization; + String? get organization => _$this._organization; + set organization(String? organization) => _$this._organization = organization; + String? _provider; String? get provider => _$this._provider; set provider(String? provider) => _$this._provider = provider; @@ -208,6 +229,7 @@ class SessionAuthenticationMethodBuilder _aal = $v.aal; _completedAt = $v.completedAt; _method = $v.method; + _organization = $v.organization; _provider = $v.provider; _$v = null; } @@ -234,6 +256,7 @@ class SessionAuthenticationMethodBuilder aal: aal, completedAt: completedAt, method: method, + organization: organization, provider: provider); replace(_$result); return _$result; diff --git a/clients/kratos/dart/lib/src/model/settings_flow.dart b/clients/kratos/dart/lib/src/model/settings_flow.dart index adb62f3d35d..34318f77194 100644 --- a/clients/kratos/dart/lib/src/model/settings_flow.dart +++ b/clients/kratos/dart/lib/src/model/settings_flow.dart @@ -7,7 +7,7 @@ import 'package:built_collection/built_collection.dart'; import 'package:ory_kratos_client/src/model/continue_with.dart'; import 'package:ory_kratos_client/src/model/ui_container.dart'; import 'package:ory_kratos_client/src/model/identity.dart'; -import 'package:ory_kratos_client/src/model/settings_flow_state.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -24,7 +24,7 @@ part 'settings_flow.g.dart'; /// * [issuedAt] - IssuedAt is the time (UTC) when the flow occurred. /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. -/// * [state] +/// * [state] - State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() @@ -60,9 +60,9 @@ abstract class SettingsFlow implements Built @BuiltValueField(wireName: r'return_to') String? get returnTo; + /// State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. @BuiltValueField(wireName: r'state') - SettingsFlowState get state; - // enum stateEnum { show_form, success, }; + JsonObject? get state; /// The flow type can either be `api` or `browser`. @BuiltValueField(wireName: r'type') @@ -141,9 +141,9 @@ class _$SettingsFlowSerializer implements PrimitiveSerializer { ); } yield r'state'; - yield serializers.serialize( + yield object.state == null ? null : serializers.serialize( object.state, - specifiedType: const FullType(SettingsFlowState), + specifiedType: const FullType.nullable(JsonObject), ); yield r'type'; yield serializers.serialize( @@ -237,8 +237,9 @@ class _$SettingsFlowSerializer implements PrimitiveSerializer { case r'state': final valueDes = serializers.deserialize( value, - specifiedType: const FullType(SettingsFlowState), - ) as SettingsFlowState; + specifiedType: const FullType.nullable(JsonObject), + ) as JsonObject?; + if (valueDes == null) continue; result.state = valueDes; break; case r'type': diff --git a/clients/kratos/dart/lib/src/model/settings_flow.g.dart b/clients/kratos/dart/lib/src/model/settings_flow.g.dart index 8598d3b0ab8..8b42a962869 100644 --- a/clients/kratos/dart/lib/src/model/settings_flow.g.dart +++ b/clients/kratos/dart/lib/src/model/settings_flow.g.dart @@ -24,7 +24,7 @@ class _$SettingsFlow extends SettingsFlow { @override final String? returnTo; @override - final SettingsFlowState state; + final JsonObject? state; @override final String type; @override @@ -42,7 +42,7 @@ class _$SettingsFlow extends SettingsFlow { required this.issuedAt, required this.requestUrl, this.returnTo, - required this.state, + this.state, required this.type, required this.ui}) : super._() { @@ -55,7 +55,6 @@ class _$SettingsFlow extends SettingsFlow { issuedAt, r'SettingsFlow', 'issuedAt'); BuiltValueNullFieldError.checkNotNull( requestUrl, r'SettingsFlow', 'requestUrl'); - BuiltValueNullFieldError.checkNotNull(state, r'SettingsFlow', 'state'); BuiltValueNullFieldError.checkNotNull(type, r'SettingsFlow', 'type'); BuiltValueNullFieldError.checkNotNull(ui, r'SettingsFlow', 'ui'); } @@ -158,9 +157,9 @@ class SettingsFlowBuilder String? get returnTo => _$this._returnTo; set returnTo(String? returnTo) => _$this._returnTo = returnTo; - SettingsFlowState? _state; - SettingsFlowState? get state => _$this._state; - set state(SettingsFlowState? state) => _$this._state = state; + JsonObject? _state; + JsonObject? get state => _$this._state; + set state(JsonObject? state) => _$this._state = state; String? _type; String? get type => _$this._type; @@ -224,8 +223,7 @@ class SettingsFlowBuilder requestUrl: BuiltValueNullFieldError.checkNotNull( requestUrl, r'SettingsFlow', 'requestUrl'), returnTo: returnTo, - state: BuiltValueNullFieldError.checkNotNull( - state, r'SettingsFlow', 'state'), + state: state, type: BuiltValueNullFieldError.checkNotNull( type, r'SettingsFlow', 'type'), ui: ui.build()); diff --git a/clients/kratos/dart/lib/src/model/update_identity_body.dart b/clients/kratos/dart/lib/src/model/update_identity_body.dart index ed5c07be798..862fe75d191 100644 --- a/clients/kratos/dart/lib/src/model/update_identity_body.dart +++ b/clients/kratos/dart/lib/src/model/update_identity_body.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:ory_kratos_client/src/model/identity_with_credentials.dart'; -import 'package:ory_kratos_client/src/model/identity_state.dart'; +import 'package:built_collection/built_collection.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -18,7 +18,7 @@ part 'update_identity_body.g.dart'; /// * [metadataAdmin] - Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/`. /// * [metadataPublic] - Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. /// * [schemaId] - SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. -/// * [state] +/// * [state] - State is the identity's state. active StateActive inactive StateInactive /// * [traits] - Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. @BuiltValue() abstract class UpdateIdentityBody implements Built { @@ -37,8 +37,9 @@ abstract class UpdateIdentityBody implements Built get serializer => _$updateIdentityBodyStateEnumSerializer; + + const UpdateIdentityBodyStateEnum._(String name): super(name); + + static BuiltSet get values => _$updateIdentityBodyStateEnumValues; + static UpdateIdentityBodyStateEnum valueOf(String name) => _$updateIdentityBodyStateEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/update_identity_body.g.dart b/clients/kratos/dart/lib/src/model/update_identity_body.g.dart index cd15155a6c4..d0cf181a133 100644 --- a/clients/kratos/dart/lib/src/model/update_identity_body.g.dart +++ b/clients/kratos/dart/lib/src/model/update_identity_body.g.dart @@ -6,6 +6,62 @@ part of 'update_identity_body.dart'; // BuiltValueGenerator // ************************************************************************** +const UpdateIdentityBodyStateEnum _$updateIdentityBodyStateEnum_active = + const UpdateIdentityBodyStateEnum._('active'); +const UpdateIdentityBodyStateEnum _$updateIdentityBodyStateEnum_inactive = + const UpdateIdentityBodyStateEnum._('inactive'); + +UpdateIdentityBodyStateEnum _$updateIdentityBodyStateEnumValueOf(String name) { + switch (name) { + case 'active': + return _$updateIdentityBodyStateEnum_active; + case 'inactive': + return _$updateIdentityBodyStateEnum_inactive; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$updateIdentityBodyStateEnumValues = new BuiltSet< + UpdateIdentityBodyStateEnum>(const [ + _$updateIdentityBodyStateEnum_active, + _$updateIdentityBodyStateEnum_inactive, +]); + +Serializer + _$updateIdentityBodyStateEnumSerializer = + new _$UpdateIdentityBodyStateEnumSerializer(); + +class _$UpdateIdentityBodyStateEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + static const Map _fromWire = const { + 'active': 'active', + 'inactive': 'inactive', + }; + + @override + final Iterable types = const [UpdateIdentityBodyStateEnum]; + @override + final String wireName = 'UpdateIdentityBodyStateEnum'; + + @override + Object serialize(Serializers serializers, UpdateIdentityBodyStateEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + UpdateIdentityBodyStateEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + UpdateIdentityBodyStateEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$UpdateIdentityBody extends UpdateIdentityBody { @override final IdentityWithCredentials? credentials; @@ -16,7 +72,7 @@ class _$UpdateIdentityBody extends UpdateIdentityBody { @override final String schemaId; @override - final IdentityState state; + final UpdateIdentityBodyStateEnum state; @override final JsonObject traits; @@ -111,9 +167,9 @@ class UpdateIdentityBodyBuilder String? get schemaId => _$this._schemaId; set schemaId(String? schemaId) => _$this._schemaId = schemaId; - IdentityState? _state; - IdentityState? get state => _$this._state; - set state(IdentityState? state) => _$this._state = state; + UpdateIdentityBodyStateEnum? _state; + UpdateIdentityBodyStateEnum? get state => _$this._state; + set state(UpdateIdentityBodyStateEnum? state) => _$this._state = state; JsonObject? _traits; JsonObject? get traits => _$this._traits; diff --git a/clients/kratos/dart/lib/src/model/update_login_flow_body.dart b/clients/kratos/dart/lib/src/model/update_login_flow_body.dart index db70cd79ca1..27719a144e2 100644 --- a/clients/kratos/dart/lib/src/model/update_login_flow_body.dart +++ b/clients/kratos/dart/lib/src/model/update_login_flow_body.dart @@ -7,6 +7,7 @@ import 'package:ory_kratos_client/src/model/update_login_flow_with_lookup_secret import 'package:ory_kratos_client/src/model/update_login_flow_with_password_method.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_with_totp_method.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_with_web_authn_method.dart'; +import 'package:ory_kratos_client/src/model/update_login_flow_with_code_method.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_with_oidc_method.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; @@ -18,25 +19,30 @@ part 'update_login_flow_body.g.dart'; /// UpdateLoginFlowBody /// /// Properties: -/// * [csrfToken] - Sending the anti-csrf token is only required for browser login flows. -/// * [identifier] - Identifier is the email or username of the user trying to log in. -/// * [method] - Method should be set to \"lookup_secret\" when logging in using the lookup_secret strategy. +/// * [csrfToken] - CSRFToken is the anti-CSRF token +/// * [identifier] - Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. +/// * [method] - Method should be set to \"code\" when logging in using the code strategy. /// * [password] - The user's password. /// * [passwordIdentifier] - Identifier is the email or username of the user trying to log in. This field is deprecated! +/// * [idToken] - IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple +/// * [idTokenNonce] - IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. /// * [provider] - The provider to register with /// * [traits] - The identity traits. This is a placeholder for the registration flow. /// * [upstreamParameters] - UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. /// * [totpCode] - The TOTP code. /// * [webauthnLogin] - Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. /// * [lookupSecret] - The lookup secret. +/// * [code] - Code is the 6 digits code sent to the user +/// * [resend] - Resend is set when the user wants to resend the code @BuiltValue() abstract class UpdateLoginFlowBody implements Built { - /// One Of [UpdateLoginFlowWithLookupSecretMethod], [UpdateLoginFlowWithOidcMethod], [UpdateLoginFlowWithPasswordMethod], [UpdateLoginFlowWithTotpMethod], [UpdateLoginFlowWithWebAuthnMethod] + /// One Of [UpdateLoginFlowWithCodeMethod], [UpdateLoginFlowWithLookupSecretMethod], [UpdateLoginFlowWithOidcMethod], [UpdateLoginFlowWithPasswordMethod], [UpdateLoginFlowWithTotpMethod], [UpdateLoginFlowWithWebAuthnMethod] OneOf get oneOf; static const String discriminatorFieldName = r'method'; static const Map discriminatorMapping = { + r'code': UpdateLoginFlowWithCodeMethod, r'lookup_secret': UpdateLoginFlowWithLookupSecretMethod, r'oidc': UpdateLoginFlowWithOidcMethod, r'password': UpdateLoginFlowWithPasswordMethod, @@ -57,6 +63,9 @@ abstract class UpdateLoginFlowBody implements Built { + /// Code is the 6 digits code sent to the user + @BuiltValueField(wireName: r'code') + String? get code; + + /// CSRFToken is the anti-CSRF token + @BuiltValueField(wireName: r'csrf_token') + String get csrfToken; + + /// Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. + @BuiltValueField(wireName: r'identifier') + String? get identifier; + + /// Method should be set to \"code\" when logging in using the code strategy. + @BuiltValueField(wireName: r'method') + String get method; + + /// Resend is set when the user wants to resend the code + @BuiltValueField(wireName: r'resend') + String? get resend; + + UpdateLoginFlowWithCodeMethod._(); + + factory UpdateLoginFlowWithCodeMethod([void updates(UpdateLoginFlowWithCodeMethodBuilder b)]) = _$UpdateLoginFlowWithCodeMethod; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(UpdateLoginFlowWithCodeMethodBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UpdateLoginFlowWithCodeMethodSerializer(); +} + +class _$UpdateLoginFlowWithCodeMethodSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UpdateLoginFlowWithCodeMethod, _$UpdateLoginFlowWithCodeMethod]; + + @override + final String wireName = r'UpdateLoginFlowWithCodeMethod'; + + Iterable _serializeProperties( + Serializers serializers, + UpdateLoginFlowWithCodeMethod object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.code != null) { + yield r'code'; + yield serializers.serialize( + object.code, + specifiedType: const FullType(String), + ); + } + yield r'csrf_token'; + yield serializers.serialize( + object.csrfToken, + specifiedType: const FullType(String), + ); + if (object.identifier != null) { + yield r'identifier'; + yield serializers.serialize( + object.identifier, + specifiedType: const FullType(String), + ); + } + yield r'method'; + yield serializers.serialize( + object.method, + specifiedType: const FullType(String), + ); + if (object.resend != null) { + yield r'resend'; + yield serializers.serialize( + object.resend, + specifiedType: const FullType(String), + ); + } + } + + @override + Object serialize( + Serializers serializers, + UpdateLoginFlowWithCodeMethod object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required UpdateLoginFlowWithCodeMethodBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'code': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.code = valueDes; + break; + case r'csrf_token': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.csrfToken = valueDes; + break; + case r'identifier': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.identifier = valueDes; + break; + case r'method': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.method = valueDes; + break; + case r'resend': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.resend = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + UpdateLoginFlowWithCodeMethod deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = UpdateLoginFlowWithCodeMethodBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/kratos/dart/lib/src/model/update_login_flow_with_code_method.g.dart b/clients/kratos/dart/lib/src/model/update_login_flow_with_code_method.g.dart new file mode 100644 index 00000000000..00befb6ea71 --- /dev/null +++ b/clients/kratos/dart/lib/src/model/update_login_flow_with_code_method.g.dart @@ -0,0 +1,154 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_login_flow_with_code_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateLoginFlowWithCodeMethod extends UpdateLoginFlowWithCodeMethod { + @override + final String? code; + @override + final String csrfToken; + @override + final String? identifier; + @override + final String method; + @override + final String? resend; + + factory _$UpdateLoginFlowWithCodeMethod( + [void Function(UpdateLoginFlowWithCodeMethodBuilder)? updates]) => + (new UpdateLoginFlowWithCodeMethodBuilder()..update(updates))._build(); + + _$UpdateLoginFlowWithCodeMethod._( + {this.code, + required this.csrfToken, + this.identifier, + required this.method, + this.resend}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + csrfToken, r'UpdateLoginFlowWithCodeMethod', 'csrfToken'); + BuiltValueNullFieldError.checkNotNull( + method, r'UpdateLoginFlowWithCodeMethod', 'method'); + } + + @override + UpdateLoginFlowWithCodeMethod rebuild( + void Function(UpdateLoginFlowWithCodeMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateLoginFlowWithCodeMethodBuilder toBuilder() => + new UpdateLoginFlowWithCodeMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateLoginFlowWithCodeMethod && + code == other.code && + csrfToken == other.csrfToken && + identifier == other.identifier && + method == other.method && + resend == other.resend; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, csrfToken.hashCode); + _$hash = $jc(_$hash, identifier.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, resend.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateLoginFlowWithCodeMethod') + ..add('code', code) + ..add('csrfToken', csrfToken) + ..add('identifier', identifier) + ..add('method', method) + ..add('resend', resend)) + .toString(); + } +} + +class UpdateLoginFlowWithCodeMethodBuilder + implements + Builder { + _$UpdateLoginFlowWithCodeMethod? _$v; + + String? _code; + String? get code => _$this._code; + set code(String? code) => _$this._code = code; + + String? _csrfToken; + String? get csrfToken => _$this._csrfToken; + set csrfToken(String? csrfToken) => _$this._csrfToken = csrfToken; + + String? _identifier; + String? get identifier => _$this._identifier; + set identifier(String? identifier) => _$this._identifier = identifier; + + String? _method; + String? get method => _$this._method; + set method(String? method) => _$this._method = method; + + String? _resend; + String? get resend => _$this._resend; + set resend(String? resend) => _$this._resend = resend; + + UpdateLoginFlowWithCodeMethodBuilder() { + UpdateLoginFlowWithCodeMethod._defaults(this); + } + + UpdateLoginFlowWithCodeMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _code = $v.code; + _csrfToken = $v.csrfToken; + _identifier = $v.identifier; + _method = $v.method; + _resend = $v.resend; + _$v = null; + } + return this; + } + + @override + void replace(UpdateLoginFlowWithCodeMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateLoginFlowWithCodeMethod; + } + + @override + void update(void Function(UpdateLoginFlowWithCodeMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateLoginFlowWithCodeMethod build() => _build(); + + _$UpdateLoginFlowWithCodeMethod _build() { + final _$result = _$v ?? + new _$UpdateLoginFlowWithCodeMethod._( + code: code, + csrfToken: BuiltValueNullFieldError.checkNotNull( + csrfToken, r'UpdateLoginFlowWithCodeMethod', 'csrfToken'), + identifier: identifier, + method: BuiltValueNullFieldError.checkNotNull( + method, r'UpdateLoginFlowWithCodeMethod', 'method'), + resend: resend); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/update_login_flow_with_oidc_method.dart b/clients/kratos/dart/lib/src/model/update_login_flow_with_oidc_method.dart index d76a8f31546..0d7e29245bc 100644 --- a/clients/kratos/dart/lib/src/model/update_login_flow_with_oidc_method.dart +++ b/clients/kratos/dart/lib/src/model/update_login_flow_with_oidc_method.dart @@ -13,6 +13,8 @@ part 'update_login_flow_with_oidc_method.g.dart'; /// /// Properties: /// * [csrfToken] - The CSRF Token +/// * [idToken] - IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple +/// * [idTokenNonce] - IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. /// * [method] - Method to use This field must be set to `oidc` when using the oidc method. /// * [provider] - The provider to register with /// * [traits] - The identity traits. This is a placeholder for the registration flow. @@ -23,6 +25,14 @@ abstract class UpdateLoginFlowWithOidcMethod implements Built _$this._csrfToken; set csrfToken(String? csrfToken) => _$this._csrfToken = csrfToken; + String? _idToken; + String? get idToken => _$this._idToken; + set idToken(String? idToken) => _$this._idToken = idToken; + + String? _idTokenNonce; + String? get idTokenNonce => _$this._idTokenNonce; + set idTokenNonce(String? idTokenNonce) => _$this._idTokenNonce = idTokenNonce; + String? _method; String? get method => _$this._method; set method(String? method) => _$this._method = method; @@ -114,6 +134,8 @@ class UpdateLoginFlowWithOidcMethodBuilder final $v = _$v; if ($v != null) { _csrfToken = $v.csrfToken; + _idToken = $v.idToken; + _idTokenNonce = $v.idTokenNonce; _method = $v.method; _provider = $v.provider; _traits = $v.traits; @@ -141,6 +163,8 @@ class UpdateLoginFlowWithOidcMethodBuilder final _$result = _$v ?? new _$UpdateLoginFlowWithOidcMethod._( csrfToken: csrfToken, + idToken: idToken, + idTokenNonce: idTokenNonce, method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateLoginFlowWithOidcMethod', 'method'), provider: BuiltValueNullFieldError.checkNotNull( diff --git a/clients/kratos/dart/lib/src/model/update_registration_flow_body.dart b/clients/kratos/dart/lib/src/model/update_registration_flow_body.dart index 79f695e1ce9..f2969695fb7 100644 --- a/clients/kratos/dart/lib/src/model/update_registration_flow_body.dart +++ b/clients/kratos/dart/lib/src/model/update_registration_flow_body.dart @@ -5,6 +5,7 @@ // ignore_for_file: unused_element import 'package:ory_kratos_client/src/model/update_registration_flow_with_web_authn_method.dart'; import 'package:ory_kratos_client/src/model/update_registration_flow_with_password_method.dart'; +import 'package:ory_kratos_client/src/model/update_registration_flow_with_code_method.dart'; import 'package:ory_kratos_client/src/model/update_registration_flow_with_oidc_method.dart'; import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; @@ -16,23 +17,28 @@ part 'update_registration_flow_body.g.dart'; /// Update Registration Request Body /// /// Properties: -/// * [csrfToken] - CSRFToken is the anti-CSRF token -/// * [method] - Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. +/// * [csrfToken] - The CSRF Token +/// * [method] - Method to use This field must be set to `code` when using the code method. /// * [password] - Password to sign the user up with /// * [traits] - The identity's traits /// * [transientPayload] - Transient data to pass along to any webhooks +/// * [idToken] - IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple +/// * [idTokenNonce] - IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. /// * [provider] - The provider to register with /// * [upstreamParameters] - UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. /// * [webauthnRegister] - Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. /// * [webauthnRegisterDisplayname] - Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. +/// * [code] - The OTP Code sent to the user +/// * [resend] - Resend restarts the flow with a new code @BuiltValue() abstract class UpdateRegistrationFlowBody implements Built { - /// One Of [UpdateRegistrationFlowWithOidcMethod], [UpdateRegistrationFlowWithPasswordMethod], [UpdateRegistrationFlowWithWebAuthnMethod] + /// One Of [UpdateRegistrationFlowWithCodeMethod], [UpdateRegistrationFlowWithOidcMethod], [UpdateRegistrationFlowWithPasswordMethod], [UpdateRegistrationFlowWithWebAuthnMethod] OneOf get oneOf; static const String discriminatorFieldName = r'method'; static const Map discriminatorMapping = { + r'code': UpdateRegistrationFlowWithCodeMethod, r'oidc': UpdateRegistrationFlowWithOidcMethod, r'password': UpdateRegistrationFlowWithPasswordMethod, r'webauthn': UpdateRegistrationFlowWithWebAuthnMethod, @@ -51,6 +57,9 @@ abstract class UpdateRegistrationFlowBody implements Built { + /// The OTP Code sent to the user + @BuiltValueField(wireName: r'code') + String? get code; + + /// The CSRF Token + @BuiltValueField(wireName: r'csrf_token') + String? get csrfToken; + + /// Method to use This field must be set to `code` when using the code method. + @BuiltValueField(wireName: r'method') + String get method; + + /// Resend restarts the flow with a new code + @BuiltValueField(wireName: r'resend') + String? get resend; + + /// The identity's traits + @BuiltValueField(wireName: r'traits') + JsonObject get traits; + + /// Transient data to pass along to any webhooks + @BuiltValueField(wireName: r'transient_payload') + JsonObject? get transientPayload; + + UpdateRegistrationFlowWithCodeMethod._(); + + factory UpdateRegistrationFlowWithCodeMethod([void updates(UpdateRegistrationFlowWithCodeMethodBuilder b)]) = _$UpdateRegistrationFlowWithCodeMethod; + + @BuiltValueHook(initializeBuilder: true) + static void _defaults(UpdateRegistrationFlowWithCodeMethodBuilder b) => b; + + @BuiltValueSerializer(custom: true) + static Serializer get serializer => _$UpdateRegistrationFlowWithCodeMethodSerializer(); +} + +class _$UpdateRegistrationFlowWithCodeMethodSerializer implements PrimitiveSerializer { + @override + final Iterable types = const [UpdateRegistrationFlowWithCodeMethod, _$UpdateRegistrationFlowWithCodeMethod]; + + @override + final String wireName = r'UpdateRegistrationFlowWithCodeMethod'; + + Iterable _serializeProperties( + Serializers serializers, + UpdateRegistrationFlowWithCodeMethod object, { + FullType specifiedType = FullType.unspecified, + }) sync* { + if (object.code != null) { + yield r'code'; + yield serializers.serialize( + object.code, + specifiedType: const FullType(String), + ); + } + if (object.csrfToken != null) { + yield r'csrf_token'; + yield serializers.serialize( + object.csrfToken, + specifiedType: const FullType(String), + ); + } + yield r'method'; + yield serializers.serialize( + object.method, + specifiedType: const FullType(String), + ); + if (object.resend != null) { + yield r'resend'; + yield serializers.serialize( + object.resend, + specifiedType: const FullType(String), + ); + } + yield r'traits'; + yield serializers.serialize( + object.traits, + specifiedType: const FullType(JsonObject), + ); + if (object.transientPayload != null) { + yield r'transient_payload'; + yield serializers.serialize( + object.transientPayload, + specifiedType: const FullType(JsonObject), + ); + } + } + + @override + Object serialize( + Serializers serializers, + UpdateRegistrationFlowWithCodeMethod object, { + FullType specifiedType = FullType.unspecified, + }) { + return _serializeProperties(serializers, object, specifiedType: specifiedType).toList(); + } + + void _deserializeProperties( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + required List serializedList, + required UpdateRegistrationFlowWithCodeMethodBuilder result, + required List unhandled, + }) { + for (var i = 0; i < serializedList.length; i += 2) { + final key = serializedList[i] as String; + final value = serializedList[i + 1]; + switch (key) { + case r'code': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.code = valueDes; + break; + case r'csrf_token': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.csrfToken = valueDes; + break; + case r'method': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.method = valueDes; + break; + case r'resend': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(String), + ) as String; + result.resend = valueDes; + break; + case r'traits': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(JsonObject), + ) as JsonObject; + result.traits = valueDes; + break; + case r'transient_payload': + final valueDes = serializers.deserialize( + value, + specifiedType: const FullType(JsonObject), + ) as JsonObject; + result.transientPayload = valueDes; + break; + default: + unhandled.add(key); + unhandled.add(value); + break; + } + } + } + + @override + UpdateRegistrationFlowWithCodeMethod deserialize( + Serializers serializers, + Object serialized, { + FullType specifiedType = FullType.unspecified, + }) { + final result = UpdateRegistrationFlowWithCodeMethodBuilder(); + final serializedList = (serialized as Iterable).toList(); + final unhandled = []; + _deserializeProperties( + serializers, + serialized, + specifiedType: specifiedType, + serializedList: serializedList, + unhandled: unhandled, + result: result, + ); + return result.build(); + } +} + diff --git a/clients/kratos/dart/lib/src/model/update_registration_flow_with_code_method.g.dart b/clients/kratos/dart/lib/src/model/update_registration_flow_with_code_method.g.dart new file mode 100644 index 00000000000..3df4957ffee --- /dev/null +++ b/clients/kratos/dart/lib/src/model/update_registration_flow_with_code_method.g.dart @@ -0,0 +1,171 @@ +// GENERATED CODE - DO NOT MODIFY BY HAND + +part of 'update_registration_flow_with_code_method.dart'; + +// ************************************************************************** +// BuiltValueGenerator +// ************************************************************************** + +class _$UpdateRegistrationFlowWithCodeMethod + extends UpdateRegistrationFlowWithCodeMethod { + @override + final String? code; + @override + final String? csrfToken; + @override + final String method; + @override + final String? resend; + @override + final JsonObject traits; + @override + final JsonObject? transientPayload; + + factory _$UpdateRegistrationFlowWithCodeMethod( + [void Function(UpdateRegistrationFlowWithCodeMethodBuilder)? + updates]) => + (new UpdateRegistrationFlowWithCodeMethodBuilder()..update(updates)) + ._build(); + + _$UpdateRegistrationFlowWithCodeMethod._( + {this.code, + this.csrfToken, + required this.method, + this.resend, + required this.traits, + this.transientPayload}) + : super._() { + BuiltValueNullFieldError.checkNotNull( + method, r'UpdateRegistrationFlowWithCodeMethod', 'method'); + BuiltValueNullFieldError.checkNotNull( + traits, r'UpdateRegistrationFlowWithCodeMethod', 'traits'); + } + + @override + UpdateRegistrationFlowWithCodeMethod rebuild( + void Function(UpdateRegistrationFlowWithCodeMethodBuilder) updates) => + (toBuilder()..update(updates)).build(); + + @override + UpdateRegistrationFlowWithCodeMethodBuilder toBuilder() => + new UpdateRegistrationFlowWithCodeMethodBuilder()..replace(this); + + @override + bool operator ==(Object other) { + if (identical(other, this)) return true; + return other is UpdateRegistrationFlowWithCodeMethod && + code == other.code && + csrfToken == other.csrfToken && + method == other.method && + resend == other.resend && + traits == other.traits && + transientPayload == other.transientPayload; + } + + @override + int get hashCode { + var _$hash = 0; + _$hash = $jc(_$hash, code.hashCode); + _$hash = $jc(_$hash, csrfToken.hashCode); + _$hash = $jc(_$hash, method.hashCode); + _$hash = $jc(_$hash, resend.hashCode); + _$hash = $jc(_$hash, traits.hashCode); + _$hash = $jc(_$hash, transientPayload.hashCode); + _$hash = $jf(_$hash); + return _$hash; + } + + @override + String toString() { + return (newBuiltValueToStringHelper(r'UpdateRegistrationFlowWithCodeMethod') + ..add('code', code) + ..add('csrfToken', csrfToken) + ..add('method', method) + ..add('resend', resend) + ..add('traits', traits) + ..add('transientPayload', transientPayload)) + .toString(); + } +} + +class UpdateRegistrationFlowWithCodeMethodBuilder + implements + Builder { + _$UpdateRegistrationFlowWithCodeMethod? _$v; + + String? _code; + String? get code => _$this._code; + set code(String? code) => _$this._code = code; + + String? _csrfToken; + String? get csrfToken => _$this._csrfToken; + set csrfToken(String? csrfToken) => _$this._csrfToken = csrfToken; + + String? _method; + String? get method => _$this._method; + set method(String? method) => _$this._method = method; + + String? _resend; + String? get resend => _$this._resend; + set resend(String? resend) => _$this._resend = resend; + + JsonObject? _traits; + JsonObject? get traits => _$this._traits; + set traits(JsonObject? traits) => _$this._traits = traits; + + JsonObject? _transientPayload; + JsonObject? get transientPayload => _$this._transientPayload; + set transientPayload(JsonObject? transientPayload) => + _$this._transientPayload = transientPayload; + + UpdateRegistrationFlowWithCodeMethodBuilder() { + UpdateRegistrationFlowWithCodeMethod._defaults(this); + } + + UpdateRegistrationFlowWithCodeMethodBuilder get _$this { + final $v = _$v; + if ($v != null) { + _code = $v.code; + _csrfToken = $v.csrfToken; + _method = $v.method; + _resend = $v.resend; + _traits = $v.traits; + _transientPayload = $v.transientPayload; + _$v = null; + } + return this; + } + + @override + void replace(UpdateRegistrationFlowWithCodeMethod other) { + ArgumentError.checkNotNull(other, 'other'); + _$v = other as _$UpdateRegistrationFlowWithCodeMethod; + } + + @override + void update( + void Function(UpdateRegistrationFlowWithCodeMethodBuilder)? updates) { + if (updates != null) updates(this); + } + + @override + UpdateRegistrationFlowWithCodeMethod build() => _build(); + + _$UpdateRegistrationFlowWithCodeMethod _build() { + final _$result = _$v ?? + new _$UpdateRegistrationFlowWithCodeMethod._( + code: code, + csrfToken: csrfToken, + method: BuiltValueNullFieldError.checkNotNull( + method, r'UpdateRegistrationFlowWithCodeMethod', 'method'), + resend: resend, + traits: BuiltValueNullFieldError.checkNotNull( + traits, r'UpdateRegistrationFlowWithCodeMethod', 'traits'), + transientPayload: transientPayload); + replace(_$result); + return _$result; + } +} + +// ignore_for_file: deprecated_member_use_from_same_package,type=lint diff --git a/clients/kratos/dart/lib/src/model/update_registration_flow_with_oidc_method.dart b/clients/kratos/dart/lib/src/model/update_registration_flow_with_oidc_method.dart index 6103fa100f8..32203c60718 100644 --- a/clients/kratos/dart/lib/src/model/update_registration_flow_with_oidc_method.dart +++ b/clients/kratos/dart/lib/src/model/update_registration_flow_with_oidc_method.dart @@ -13,6 +13,8 @@ part 'update_registration_flow_with_oidc_method.g.dart'; /// /// Properties: /// * [csrfToken] - The CSRF Token +/// * [idToken] - IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple +/// * [idTokenNonce] - IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. /// * [method] - Method to use This field must be set to `oidc` when using the oidc method. /// * [provider] - The provider to register with /// * [traits] - The identity traits @@ -24,6 +26,14 @@ abstract class UpdateRegistrationFlowWithOidcMethod implements Built _$this._csrfToken; set csrfToken(String? csrfToken) => _$this._csrfToken = csrfToken; + String? _idToken; + String? get idToken => _$this._idToken; + set idToken(String? idToken) => _$this._idToken = idToken; + + String? _idTokenNonce; + String? get idTokenNonce => _$this._idTokenNonce; + set idTokenNonce(String? idTokenNonce) => _$this._idTokenNonce = idTokenNonce; + String? _method; String? get method => _$this._method; set method(String? method) => _$this._method = method; @@ -128,6 +148,8 @@ class UpdateRegistrationFlowWithOidcMethodBuilder final $v = _$v; if ($v != null) { _csrfToken = $v.csrfToken; + _idToken = $v.idToken; + _idTokenNonce = $v.idTokenNonce; _method = $v.method; _provider = $v.provider; _traits = $v.traits; @@ -157,6 +179,8 @@ class UpdateRegistrationFlowWithOidcMethodBuilder final _$result = _$v ?? new _$UpdateRegistrationFlowWithOidcMethod._( csrfToken: csrfToken, + idToken: idToken, + idTokenNonce: idTokenNonce, method: BuiltValueNullFieldError.checkNotNull( method, r'UpdateRegistrationFlowWithOidcMethod', 'method'), provider: BuiltValueNullFieldError.checkNotNull( diff --git a/clients/kratos/dart/lib/src/model/verifiable_identity_address.dart b/clients/kratos/dart/lib/src/model/verifiable_identity_address.dart index dca195a305e..6c6367be7f4 100644 --- a/clients/kratos/dart/lib/src/model/verifiable_identity_address.dart +++ b/clients/kratos/dart/lib/src/model/verifiable_identity_address.dart @@ -3,6 +3,7 @@ // // ignore_for_file: unused_element +import 'package:built_collection/built_collection.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -18,7 +19,7 @@ part 'verifiable_identity_address.g.dart'; /// * [value] - The address value example foo@user.com /// * [verified] - Indicates if the address has already been verified /// * [verifiedAt] -/// * [via] - VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema +/// * [via] - The delivery method @BuiltValue() abstract class VerifiableIdentityAddress implements Built { /// When this entry was created @@ -48,9 +49,10 @@ abstract class VerifiableIdentityAddress implements Built get serializer => _$verifiableIdentityAddressViaEnumSerializer; + + const VerifiableIdentityAddressViaEnum._(String name): super(name); + + static BuiltSet get values => _$verifiableIdentityAddressViaEnumValues; + static VerifiableIdentityAddressViaEnum valueOf(String name) => _$verifiableIdentityAddressViaEnumValueOf(name); +} + diff --git a/clients/kratos/dart/lib/src/model/verifiable_identity_address.g.dart b/clients/kratos/dart/lib/src/model/verifiable_identity_address.g.dart index 659efb71724..5524d38f3d3 100644 --- a/clients/kratos/dart/lib/src/model/verifiable_identity_address.g.dart +++ b/clients/kratos/dart/lib/src/model/verifiable_identity_address.g.dart @@ -6,6 +6,65 @@ part of 'verifiable_identity_address.dart'; // BuiltValueGenerator // ************************************************************************** +const VerifiableIdentityAddressViaEnum + _$verifiableIdentityAddressViaEnum_email = + const VerifiableIdentityAddressViaEnum._('email'); +const VerifiableIdentityAddressViaEnum _$verifiableIdentityAddressViaEnum_sms = + const VerifiableIdentityAddressViaEnum._('sms'); + +VerifiableIdentityAddressViaEnum _$verifiableIdentityAddressViaEnumValueOf( + String name) { + switch (name) { + case 'email': + return _$verifiableIdentityAddressViaEnum_email; + case 'sms': + return _$verifiableIdentityAddressViaEnum_sms; + default: + throw new ArgumentError(name); + } +} + +final BuiltSet + _$verifiableIdentityAddressViaEnumValues = new BuiltSet< + VerifiableIdentityAddressViaEnum>(const [ + _$verifiableIdentityAddressViaEnum_email, + _$verifiableIdentityAddressViaEnum_sms, +]); + +Serializer + _$verifiableIdentityAddressViaEnumSerializer = + new _$VerifiableIdentityAddressViaEnumSerializer(); + +class _$VerifiableIdentityAddressViaEnumSerializer + implements PrimitiveSerializer { + static const Map _toWire = const { + 'email': 'email', + 'sms': 'sms', + }; + static const Map _fromWire = const { + 'email': 'email', + 'sms': 'sms', + }; + + @override + final Iterable types = const [VerifiableIdentityAddressViaEnum]; + @override + final String wireName = 'VerifiableIdentityAddressViaEnum'; + + @override + Object serialize( + Serializers serializers, VerifiableIdentityAddressViaEnum object, + {FullType specifiedType = FullType.unspecified}) => + _toWire[object.name] ?? object.name; + + @override + VerifiableIdentityAddressViaEnum deserialize( + Serializers serializers, Object serialized, + {FullType specifiedType = FullType.unspecified}) => + VerifiableIdentityAddressViaEnum.valueOf( + _fromWire[serialized] ?? (serialized is String ? serialized : '')); +} + class _$VerifiableIdentityAddress extends VerifiableIdentityAddress { @override final DateTime? createdAt; @@ -22,7 +81,7 @@ class _$VerifiableIdentityAddress extends VerifiableIdentityAddress { @override final DateTime? verifiedAt; @override - final String via; + final VerifiableIdentityAddressViaEnum via; factory _$VerifiableIdentityAddress( [void Function(VerifiableIdentityAddressBuilder)? updates]) => @@ -134,9 +193,9 @@ class VerifiableIdentityAddressBuilder DateTime? get verifiedAt => _$this._verifiedAt; set verifiedAt(DateTime? verifiedAt) => _$this._verifiedAt = verifiedAt; - String? _via; - String? get via => _$this._via; - set via(String? via) => _$this._via = via; + VerifiableIdentityAddressViaEnum? _via; + VerifiableIdentityAddressViaEnum? get via => _$this._via; + set via(VerifiableIdentityAddressViaEnum? via) => _$this._via = via; VerifiableIdentityAddressBuilder() { VerifiableIdentityAddress._defaults(this); diff --git a/clients/kratos/dart/lib/src/model/verification_flow.dart b/clients/kratos/dart/lib/src/model/verification_flow.dart index e38c1e6c01c..b9fcc264776 100644 --- a/clients/kratos/dart/lib/src/model/verification_flow.dart +++ b/clients/kratos/dart/lib/src/model/verification_flow.dart @@ -4,7 +4,7 @@ // ignore_for_file: unused_element import 'package:ory_kratos_client/src/model/ui_container.dart'; -import 'package:ory_kratos_client/src/model/verification_flow_state.dart'; +import 'package:built_value/json_object.dart'; import 'package:built_value/built_value.dart'; import 'package:built_value/serializer.dart'; @@ -19,7 +19,7 @@ part 'verification_flow.g.dart'; /// * [issuedAt] - IssuedAt is the time (UTC) when the request occurred. /// * [requestUrl] - RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// * [returnTo] - ReturnTo contains the requested return_to URL. -/// * [state] +/// * [state] - State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. /// * [type] - The flow type can either be `api` or `browser`. /// * [ui] @BuiltValue() @@ -48,9 +48,9 @@ abstract class VerificationFlow implements Built _$this._returnTo; set returnTo(String? returnTo) => _$this._returnTo = returnTo; - VerificationFlowState? _state; - VerificationFlowState? get state => _$this._state; - set state(VerificationFlowState? state) => _$this._state = state; + JsonObject? _state; + JsonObject? get state => _$this._state; + set state(JsonObject? state) => _$this._state = state; String? _type; String? get type => _$this._type; @@ -189,8 +188,7 @@ class VerificationFlowBuilder issuedAt: issuedAt, requestUrl: requestUrl, returnTo: returnTo, - state: BuiltValueNullFieldError.checkNotNull( - state, r'VerificationFlow', 'state'), + state: state, type: BuiltValueNullFieldError.checkNotNull( type, r'VerificationFlow', 'type'), ui: ui.build()); diff --git a/clients/kratos/dart/lib/src/serializers.dart b/clients/kratos/dart/lib/src/serializers.dart index aa33c8ece0e..5597192a0d0 100644 --- a/clients/kratos/dart/lib/src/serializers.dart +++ b/clients/kratos/dart/lib/src/serializers.dart @@ -16,8 +16,13 @@ import 'package:ory_kratos_client/src/model/date.dart'; import 'package:ory_kratos_client/src/model/authenticator_assurance_level.dart'; import 'package:ory_kratos_client/src/model/batch_patch_identities_response.dart'; +import 'package:ory_kratos_client/src/model/consistency_request_parameters.dart'; import 'package:ory_kratos_client/src/model/continue_with.dart'; +import 'package:ory_kratos_client/src/model/continue_with_recovery_ui.dart'; +import 'package:ory_kratos_client/src/model/continue_with_recovery_ui_flow.dart'; import 'package:ory_kratos_client/src/model/continue_with_set_ory_session_token.dart'; +import 'package:ory_kratos_client/src/model/continue_with_settings_ui.dart'; +import 'package:ory_kratos_client/src/model/continue_with_settings_ui_flow.dart'; import 'package:ory_kratos_client/src/model/continue_with_verification_ui.dart'; import 'package:ory_kratos_client/src/model/continue_with_verification_ui_flow.dart'; import 'package:ory_kratos_client/src/model/courier_message_status.dart'; @@ -37,14 +42,13 @@ import 'package:ory_kratos_client/src/model/health_not_ready_status.dart'; import 'package:ory_kratos_client/src/model/health_status.dart'; import 'package:ory_kratos_client/src/model/identity.dart'; import 'package:ory_kratos_client/src/model/identity_credentials.dart'; +import 'package:ory_kratos_client/src/model/identity_credentials_code.dart'; import 'package:ory_kratos_client/src/model/identity_credentials_oidc.dart'; import 'package:ory_kratos_client/src/model/identity_credentials_oidc_provider.dart'; import 'package:ory_kratos_client/src/model/identity_credentials_password.dart'; -import 'package:ory_kratos_client/src/model/identity_credentials_type.dart'; import 'package:ory_kratos_client/src/model/identity_patch.dart'; import 'package:ory_kratos_client/src/model/identity_patch_response.dart'; import 'package:ory_kratos_client/src/model/identity_schema_container.dart'; -import 'package:ory_kratos_client/src/model/identity_state.dart'; import 'package:ory_kratos_client/src/model/identity_with_credentials.dart'; import 'package:ory_kratos_client/src/model/identity_with_credentials_oidc.dart'; import 'package:ory_kratos_client/src/model/identity_with_credentials_oidc_config.dart'; @@ -55,6 +59,7 @@ import 'package:ory_kratos_client/src/model/is_alive200_response.dart'; import 'package:ory_kratos_client/src/model/is_ready503_response.dart'; import 'package:ory_kratos_client/src/model/json_patch.dart'; import 'package:ory_kratos_client/src/model/login_flow.dart'; +import 'package:ory_kratos_client/src/model/login_flow_state.dart'; import 'package:ory_kratos_client/src/model/logout_flow.dart'; import 'package:ory_kratos_client/src/model/message.dart'; import 'package:ory_kratos_client/src/model/message_dispatch.dart'; @@ -62,7 +67,6 @@ import 'package:ory_kratos_client/src/model/needs_privileged_session_error.dart' import 'package:ory_kratos_client/src/model/o_auth2_client.dart'; import 'package:ory_kratos_client/src/model/o_auth2_consent_request_open_id_connect_context.dart'; import 'package:ory_kratos_client/src/model/o_auth2_login_request.dart'; -import 'package:ory_kratos_client/src/model/pagination.dart'; import 'package:ory_kratos_client/src/model/patch_identities_body.dart'; import 'package:ory_kratos_client/src/model/perform_native_logout_body.dart'; import 'package:ory_kratos_client/src/model/recovery_code_for_identity.dart'; @@ -71,6 +75,7 @@ import 'package:ory_kratos_client/src/model/recovery_flow_state.dart'; import 'package:ory_kratos_client/src/model/recovery_identity_address.dart'; import 'package:ory_kratos_client/src/model/recovery_link_for_identity.dart'; import 'package:ory_kratos_client/src/model/registration_flow.dart'; +import 'package:ory_kratos_client/src/model/registration_flow_state.dart'; import 'package:ory_kratos_client/src/model/self_service_flow_expired_error.dart'; import 'package:ory_kratos_client/src/model/session.dart'; import 'package:ory_kratos_client/src/model/session_authentication_method.dart'; @@ -94,6 +99,7 @@ import 'package:ory_kratos_client/src/model/ui_node_text_attributes.dart'; import 'package:ory_kratos_client/src/model/ui_text.dart'; import 'package:ory_kratos_client/src/model/update_identity_body.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_body.dart'; +import 'package:ory_kratos_client/src/model/update_login_flow_with_code_method.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_with_lookup_secret_method.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_with_oidc_method.dart'; import 'package:ory_kratos_client/src/model/update_login_flow_with_password_method.dart'; @@ -103,6 +109,7 @@ import 'package:ory_kratos_client/src/model/update_recovery_flow_body.dart'; import 'package:ory_kratos_client/src/model/update_recovery_flow_with_code_method.dart'; import 'package:ory_kratos_client/src/model/update_recovery_flow_with_link_method.dart'; import 'package:ory_kratos_client/src/model/update_registration_flow_body.dart'; +import 'package:ory_kratos_client/src/model/update_registration_flow_with_code_method.dart'; import 'package:ory_kratos_client/src/model/update_registration_flow_with_oidc_method.dart'; import 'package:ory_kratos_client/src/model/update_registration_flow_with_password_method.dart'; import 'package:ory_kratos_client/src/model/update_registration_flow_with_web_authn_method.dart'; @@ -126,8 +133,13 @@ part 'serializers.g.dart'; @SerializersFor([ AuthenticatorAssuranceLevel, BatchPatchIdentitiesResponse, + ConsistencyRequestParameters, ContinueWith, + ContinueWithRecoveryUi, + ContinueWithRecoveryUiFlow, ContinueWithSetOrySessionToken, + ContinueWithSettingsUi, + ContinueWithSettingsUiFlow, ContinueWithVerificationUi, ContinueWithVerificationUiFlow, CourierMessageStatus, @@ -147,14 +159,13 @@ part 'serializers.g.dart'; HealthStatus, Identity, IdentityCredentials, + IdentityCredentialsCode, IdentityCredentialsOidc, IdentityCredentialsOidcProvider, IdentityCredentialsPassword, - IdentityCredentialsType, IdentityPatch, IdentityPatchResponse, IdentitySchemaContainer, - IdentityState, IdentityWithCredentials, IdentityWithCredentialsOidc, IdentityWithCredentialsOidcConfig, @@ -165,6 +176,7 @@ part 'serializers.g.dart'; IsReady503Response, JsonPatch, LoginFlow, + LoginFlowState, LogoutFlow, Message, MessageDispatch, @@ -172,7 +184,6 @@ part 'serializers.g.dart'; OAuth2Client, OAuth2ConsentRequestOpenIDConnectContext, OAuth2LoginRequest, - Pagination, PatchIdentitiesBody, PerformNativeLogoutBody, RecoveryCodeForIdentity, @@ -181,6 +192,7 @@ part 'serializers.g.dart'; RecoveryIdentityAddress, RecoveryLinkForIdentity, RegistrationFlow, + RegistrationFlowState, SelfServiceFlowExpiredError, Session, SessionAuthenticationMethod, @@ -204,6 +216,7 @@ part 'serializers.g.dart'; UiText, UpdateIdentityBody, UpdateLoginFlowBody, + UpdateLoginFlowWithCodeMethod, UpdateLoginFlowWithLookupSecretMethod, UpdateLoginFlowWithOidcMethod, UpdateLoginFlowWithPasswordMethod, @@ -213,6 +226,7 @@ part 'serializers.g.dart'; UpdateRecoveryFlowWithCodeMethod, UpdateRecoveryFlowWithLinkMethod, UpdateRegistrationFlowBody, + UpdateRegistrationFlowWithCodeMethod, UpdateRegistrationFlowWithOidcMethod, UpdateRegistrationFlowWithPasswordMethod, UpdateRegistrationFlowWithWebAuthnMethod, diff --git a/clients/kratos/dart/lib/src/serializers.g.dart b/clients/kratos/dart/lib/src/serializers.g.dart index cddd68c5e3e..8cc1d694f60 100644 --- a/clients/kratos/dart/lib/src/serializers.g.dart +++ b/clients/kratos/dart/lib/src/serializers.g.dart @@ -9,15 +9,24 @@ part of 'serializers.dart'; Serializers _$serializers = (new Serializers().toBuilder() ..add(AuthenticatorAssuranceLevel.serializer) ..add(BatchPatchIdentitiesResponse.serializer) + ..add(ConsistencyRequestParameters.serializer) + ..add(ConsistencyRequestParametersConsistencyEnum.serializer) ..add(ContinueWith.serializer) + ..add(ContinueWithRecoveryUi.serializer) + ..add(ContinueWithRecoveryUiActionEnum.serializer) + ..add(ContinueWithRecoveryUiFlow.serializer) ..add(ContinueWithSetOrySessionToken.serializer) ..add(ContinueWithSetOrySessionTokenActionEnum.serializer) + ..add(ContinueWithSettingsUi.serializer) + ..add(ContinueWithSettingsUiActionEnum.serializer) + ..add(ContinueWithSettingsUiFlow.serializer) ..add(ContinueWithVerificationUi.serializer) ..add(ContinueWithVerificationUiActionEnum.serializer) ..add(ContinueWithVerificationUiFlow.serializer) ..add(CourierMessageStatus.serializer) ..add(CourierMessageType.serializer) ..add(CreateIdentityBody.serializer) + ..add(CreateIdentityBodyStateEnum.serializer) ..add(CreateRecoveryCodeForIdentityBody.serializer) ..add(CreateRecoveryLinkForIdentityBody.serializer) ..add(DeleteMySessionsCount.serializer) @@ -32,15 +41,16 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(HealthStatus.serializer) ..add(Identity.serializer) ..add(IdentityCredentials.serializer) + ..add(IdentityCredentialsCode.serializer) ..add(IdentityCredentialsOidc.serializer) ..add(IdentityCredentialsOidcProvider.serializer) ..add(IdentityCredentialsPassword.serializer) - ..add(IdentityCredentialsType.serializer) + ..add(IdentityCredentialsTypeEnum.serializer) ..add(IdentityPatch.serializer) ..add(IdentityPatchResponse.serializer) ..add(IdentityPatchResponseActionEnum.serializer) ..add(IdentitySchemaContainer.serializer) - ..add(IdentityState.serializer) + ..add(IdentityStateEnum.serializer) ..add(IdentityWithCredentials.serializer) ..add(IdentityWithCredentialsOidc.serializer) ..add(IdentityWithCredentialsOidcConfig.serializer) @@ -51,6 +61,8 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(IsReady503Response.serializer) ..add(JsonPatch.serializer) ..add(LoginFlow.serializer) + ..add(LoginFlowActiveEnum.serializer) + ..add(LoginFlowState.serializer) ..add(LogoutFlow.serializer) ..add(Message.serializer) ..add(MessageDispatch.serializer) @@ -60,7 +72,6 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(OAuth2Client.serializer) ..add(OAuth2ConsentRequestOpenIDConnectContext.serializer) ..add(OAuth2LoginRequest.serializer) - ..add(Pagination.serializer) ..add(PatchIdentitiesBody.serializer) ..add(PerformNativeLogoutBody.serializer) ..add(RecoveryCodeForIdentity.serializer) @@ -69,6 +80,8 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(RecoveryIdentityAddress.serializer) ..add(RecoveryLinkForIdentity.serializer) ..add(RegistrationFlow.serializer) + ..add(RegistrationFlowActiveEnum.serializer) + ..add(RegistrationFlowState.serializer) ..add(SelfServiceFlowExpiredError.serializer) ..add(Session.serializer) ..add(SessionAuthenticationMethod.serializer) @@ -97,7 +110,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(UiText.serializer) ..add(UiTextTypeEnum.serializer) ..add(UpdateIdentityBody.serializer) + ..add(UpdateIdentityBodyStateEnum.serializer) ..add(UpdateLoginFlowBody.serializer) + ..add(UpdateLoginFlowWithCodeMethod.serializer) ..add(UpdateLoginFlowWithLookupSecretMethod.serializer) ..add(UpdateLoginFlowWithOidcMethod.serializer) ..add(UpdateLoginFlowWithPasswordMethod.serializer) @@ -109,6 +124,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(UpdateRecoveryFlowWithLinkMethod.serializer) ..add(UpdateRecoveryFlowWithLinkMethodMethodEnum.serializer) ..add(UpdateRegistrationFlowBody.serializer) + ..add(UpdateRegistrationFlowWithCodeMethod.serializer) ..add(UpdateRegistrationFlowWithOidcMethod.serializer) ..add(UpdateRegistrationFlowWithPasswordMethod.serializer) ..add(UpdateRegistrationFlowWithWebAuthnMethod.serializer) @@ -125,6 +141,7 @@ Serializers _$serializers = (new Serializers().toBuilder() ..add(UpdateVerificationFlowWithLinkMethod.serializer) ..add(UpdateVerificationFlowWithLinkMethodMethodEnum.serializer) ..add(VerifiableIdentityAddress.serializer) + ..add(VerifiableIdentityAddressViaEnum.serializer) ..add(VerificationFlow.serializer) ..add(VerificationFlowState.serializer) ..add(Version.serializer) @@ -134,6 +151,9 @@ Serializers _$serializers = (new Serializers().toBuilder() ..addBuilderFactory( const FullType(BuiltList, const [const FullType(ContinueWith)]), () => new ListBuilder()) + ..addBuilderFactory( + const FullType(BuiltList, const [const FullType(ContinueWith)]), + () => new ListBuilder()) ..addBuilderFactory( const FullType(BuiltList, const [const FullType(IdentityCredentialsOidcProvider)]), diff --git a/clients/kratos/dart/pubspec.yaml b/clients/kratos/dart/pubspec.yaml index 672d31d52c2..571c1e76140 100644 --- a/clients/kratos/dart/pubspec.yaml +++ b/clients/kratos/dart/pubspec.yaml @@ -1,5 +1,5 @@ name: ory_kratos_client -version: 1.0.0 +version: 1.1.0 description: OpenAPI API client for Ory Kratos, Ory's central identity management solution with hardened authentication, MFA, FIDO2, TOTP, WebAuthn, SSO, profile management, and more. homepage: https://www.ory.sh repository: https://github.com/ory/sdk/tree/master/clients/kratos/dart diff --git a/clients/kratos/dart/test/consistency_request_parameters_test.dart b/clients/kratos/dart/test/consistency_request_parameters_test.dart new file mode 100644 index 00000000000..8dbd74c3bee --- /dev/null +++ b/clients/kratos/dart/test/consistency_request_parameters_test.dart @@ -0,0 +1,17 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for ConsistencyRequestParameters +void main() { + final instance = ConsistencyRequestParametersBuilder(); + // TODO add properties to the builder and call build() + + group(ConsistencyRequestParameters, () { + // Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + // String consistency + test('to test the property `consistency`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/continue_with_recovery_ui_flow_test.dart b/clients/kratos/dart/test/continue_with_recovery_ui_flow_test.dart new file mode 100644 index 00000000000..159534d0aa1 --- /dev/null +++ b/clients/kratos/dart/test/continue_with_recovery_ui_flow_test.dart @@ -0,0 +1,23 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for ContinueWithRecoveryUiFlow +void main() { + final instance = ContinueWithRecoveryUiFlowBuilder(); + // TODO add properties to the builder and call build() + + group(ContinueWithRecoveryUiFlow, () { + // The ID of the recovery flow + // String id + test('to test the property `id`', () async { + // TODO + }); + + // The URL of the recovery flow + // String url + test('to test the property `url`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/continue_with_recovery_ui_test.dart b/clients/kratos/dart/test/continue_with_recovery_ui_test.dart new file mode 100644 index 00000000000..e2207418f0a --- /dev/null +++ b/clients/kratos/dart/test/continue_with_recovery_ui_test.dart @@ -0,0 +1,22 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for ContinueWithRecoveryUi +void main() { + final instance = ContinueWithRecoveryUiBuilder(); + // TODO add properties to the builder and call build() + + group(ContinueWithRecoveryUi, () { + // Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + // String action + test('to test the property `action`', () async { + // TODO + }); + + // ContinueWithRecoveryUiFlow flow + test('to test the property `flow`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/continue_with_set_ory_session_token_test.dart b/clients/kratos/dart/test/continue_with_set_ory_session_token_test.dart index b1c473135bb..89c6a43e153 100644 --- a/clients/kratos/dart/test/continue_with_set_ory_session_token_test.dart +++ b/clients/kratos/dart/test/continue_with_set_ory_session_token_test.dart @@ -7,7 +7,7 @@ void main() { // TODO add properties to the builder and call build() group(ContinueWithSetOrySessionToken, () { - // Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + // Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString // String action test('to test the property `action`', () async { // TODO diff --git a/clients/kratos/dart/test/continue_with_settings_ui_flow_test.dart b/clients/kratos/dart/test/continue_with_settings_ui_flow_test.dart new file mode 100644 index 00000000000..92a0704dc3b --- /dev/null +++ b/clients/kratos/dart/test/continue_with_settings_ui_flow_test.dart @@ -0,0 +1,17 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for ContinueWithSettingsUiFlow +void main() { + final instance = ContinueWithSettingsUiFlowBuilder(); + // TODO add properties to the builder and call build() + + group(ContinueWithSettingsUiFlow, () { + // The ID of the settings flow + // String id + test('to test the property `id`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/continue_with_settings_ui_test.dart b/clients/kratos/dart/test/continue_with_settings_ui_test.dart new file mode 100644 index 00000000000..f28f9624f92 --- /dev/null +++ b/clients/kratos/dart/test/continue_with_settings_ui_test.dart @@ -0,0 +1,22 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for ContinueWithSettingsUi +void main() { + final instance = ContinueWithSettingsUiBuilder(); + // TODO add properties to the builder and call build() + + group(ContinueWithSettingsUi, () { + // Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + // String action + test('to test the property `action`', () async { + // TODO + }); + + // ContinueWithSettingsUiFlow flow + test('to test the property `flow`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/continue_with_test.dart b/clients/kratos/dart/test/continue_with_test.dart index a4c9ff9abdd..9b69c9b4444 100644 --- a/clients/kratos/dart/test/continue_with_test.dart +++ b/clients/kratos/dart/test/continue_with_test.dart @@ -7,13 +7,13 @@ void main() { // TODO add properties to the builder and call build() group(ContinueWith, () { - // Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + // Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString // String action test('to test the property `action`', () async { // TODO }); - // ContinueWithVerificationUiFlow flow + // ContinueWithRecoveryUiFlow flow test('to test the property `flow`', () async { // TODO }); diff --git a/clients/kratos/dart/test/continue_with_verification_ui_test.dart b/clients/kratos/dart/test/continue_with_verification_ui_test.dart index 923da64aa81..70742a5f34c 100644 --- a/clients/kratos/dart/test/continue_with_verification_ui_test.dart +++ b/clients/kratos/dart/test/continue_with_verification_ui_test.dart @@ -7,7 +7,7 @@ void main() { // TODO add properties to the builder and call build() group(ContinueWithVerificationUi, () { - // Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + // Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString // String action test('to test the property `action`', () async { // TODO diff --git a/clients/kratos/dart/test/create_identity_body_test.dart b/clients/kratos/dart/test/create_identity_body_test.dart index 2822731e955..e0e55b1640c 100644 --- a/clients/kratos/dart/test/create_identity_body_test.dart +++ b/clients/kratos/dart/test/create_identity_body_test.dart @@ -36,7 +36,8 @@ void main() { // TODO }); - // IdentityState state + // State is the identity's state. active StateActive inactive StateInactive + // String state test('to test the property `state`', () async { // TODO }); diff --git a/clients/kratos/dart/test/frontend_api_test.dart b/clients/kratos/dart/test/frontend_api_test.dart index a96a78bb36f..b07f4c1cb04 100644 --- a/clients/kratos/dart/test/frontend_api_test.dart +++ b/clients/kratos/dart/test/frontend_api_test.dart @@ -11,7 +11,7 @@ void main() { // // This endpoint initializes a browser-based user login flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.login.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url` unless the query parameter `?refresh=true` was set. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! The optional query parameter login_challenge is set when using Kratos with Hydra in an OAuth2 flow. See the oauth2_provider.url configuration option. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). // - //Future createBrowserLoginFlow({ bool refresh, String aal, String returnTo, String cookie, String loginChallenge }) async + //Future createBrowserLoginFlow({ bool refresh, String aal, String returnTo, String cookie, String loginChallenge, String organization }) async test('test createBrowserLoginFlow', () async { // TODO }); @@ -36,9 +36,9 @@ void main() { // Create Registration Flow for Browsers // - // This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + // This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). // - //Future createBrowserRegistrationFlow({ String returnTo, String loginChallenge, String afterVerificationReturnTo }) async + //Future createBrowserRegistrationFlow({ String returnTo, String loginChallenge, String afterVerificationReturnTo, String organization }) async test('test createBrowserRegistrationFlow', () async { // TODO }); @@ -65,14 +65,14 @@ void main() { // // This endpoint initiates a login flow for native apps that do not use a browser, such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error will be returned unless the URL query parameter `?refresh=true` is set. To fetch an existing login flow call `/self-service/login/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks, including CSRF login attacks. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `session_aal1_required`: Multi-factor auth (e.g. 2fa) was requested but the user has no session yet. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). 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). // - //Future createNativeLoginFlow({ bool refresh, String aal, String xSessionToken, bool returnSessionTokenExchangeCode, String returnTo }) async + //Future createNativeLoginFlow({ bool refresh, String aal, String xSessionToken, bool returnSessionTokenExchangeCode, String returnTo, String via }) async test('test createNativeLoginFlow', () async { // TODO }); // Create Recovery Flow for Native Apps // - // This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + // This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). // //Future createNativeRecoveryFlow() async test('test createNativeRecoveryFlow', () async { @@ -198,7 +198,7 @@ void main() { // // 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. // - //Future> listMySessions({ int perPage, int page, String xSessionToken, String cookie }) async + //Future> listMySessions({ int perPage, int page, int pageSize, String pageToken, String xSessionToken, String cookie }) async test('test listMySessions', () async { // TODO }); @@ -214,16 +214,16 @@ void main() { // Check Who the Current HTTP Session Belongs To // - // Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + // Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. // - //Future toSession({ String xSessionToken, String cookie }) async + //Future toSession({ String xSessionToken, String cookie, String tokenizeAs }) async test('test toSession', () async { // TODO }); // Submit a Login Flow // - // :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + // Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). // //Future updateLoginFlow(String flow, UpdateLoginFlowBody updateLoginFlowBody, { String xSessionToken, String cookie }) async test('test updateLoginFlow', () async { @@ -239,9 +239,9 @@ void main() { // TODO }); - // Complete Recovery Flow + // Update Recovery Flow // - // Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + // Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). // //Future updateRecoveryFlow(String flow, UpdateRecoveryFlowBody updateRecoveryFlowBody, { String token, String cookie }) async test('test updateRecoveryFlow', () async { diff --git a/clients/kratos/dart/test/identity_api_test.dart b/clients/kratos/dart/test/identity_api_test.dart index ffc17cfa27c..8a6e040edcc 100644 --- a/clients/kratos/dart/test/identity_api_test.dart +++ b/clients/kratos/dart/test/identity_api_test.dart @@ -38,7 +38,7 @@ void main() { // // This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. // - //Future createRecoveryLinkForIdentity({ CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody }) async + //Future createRecoveryLinkForIdentity({ String returnTo, CreateRecoveryLinkForIdentityBody createRecoveryLinkForIdentityBody }) async test('test createRecoveryLinkForIdentity', () async { // TODO }); @@ -119,7 +119,7 @@ void main() { // // Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. // - //Future> listIdentities({ int perPage, int page, String credentialsIdentifier }) async + //Future> listIdentities({ int perPage, int page, int pageSize, String pageToken, String consistency, BuiltList ids, String credentialsIdentifier, String previewCredentialsIdentifierSimilar }) async test('test listIdentities', () async { // TODO }); @@ -128,7 +128,7 @@ void main() { // // Returns a list of all identity schemas currently in use. // - //Future> listIdentitySchemas({ int perPage, int page }) async + //Future> listIdentitySchemas({ int perPage, int page, int pageSize, String pageToken }) async test('test listIdentitySchemas', () async { // TODO }); @@ -137,7 +137,7 @@ void main() { // // This endpoint returns all sessions that belong to the given Identity. // - //Future> listIdentitySessions(String id, { int perPage, int page, bool active }) async + //Future> listIdentitySessions(String id, { int perPage, int page, int pageSize, String pageToken, bool active }) async test('test listIdentitySessions', () async { // TODO }); diff --git a/clients/kratos/dart/test/identity_credentials_code_test.dart b/clients/kratos/dart/test/identity_credentials_code_test.dart new file mode 100644 index 00000000000..e77949fd116 --- /dev/null +++ b/clients/kratos/dart/test/identity_credentials_code_test.dart @@ -0,0 +1,22 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for IdentityCredentialsCode +void main() { + final instance = IdentityCredentialsCodeBuilder(); + // TODO add properties to the builder and call build() + + group(IdentityCredentialsCode, () { + // The type of the address for this code + // String addressType + test('to test the property `addressType`', () async { + // TODO + }); + + // DateTime usedAt + test('to test the property `usedAt`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/identity_credentials_oidc_provider_test.dart b/clients/kratos/dart/test/identity_credentials_oidc_provider_test.dart index a9c0b89c32b..3ba48f6033d 100644 --- a/clients/kratos/dart/test/identity_credentials_oidc_provider_test.dart +++ b/clients/kratos/dart/test/identity_credentials_oidc_provider_test.dart @@ -22,6 +22,11 @@ void main() { // TODO }); + // String organization + test('to test the property `organization`', () async { + // TODO + }); + // String provider test('to test the property `provider`', () async { // TODO diff --git a/clients/kratos/dart/test/identity_credentials_test.dart b/clients/kratos/dart/test/identity_credentials_test.dart index 779e92a0bdb..504ffe4747d 100644 --- a/clients/kratos/dart/test/identity_credentials_test.dart +++ b/clients/kratos/dart/test/identity_credentials_test.dart @@ -24,7 +24,8 @@ void main() { // TODO }); - // IdentityCredentialsType type + // Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + // String type test('to test the property `type`', () async { // TODO }); diff --git a/clients/kratos/dart/test/identity_test.dart b/clients/kratos/dart/test/identity_test.dart index 1a9ea503859..f02d16aa7bf 100644 --- a/clients/kratos/dart/test/identity_test.dart +++ b/clients/kratos/dart/test/identity_test.dart @@ -37,6 +37,11 @@ void main() { // TODO }); + // String organizationId + test('to test the property `organizationId`', () async { + // TODO + }); + // RecoveryAddresses contains all the addresses that can be used to recover an identity. // BuiltList recoveryAddresses test('to test the property `recoveryAddresses`', () async { @@ -55,7 +60,8 @@ void main() { // TODO }); - // IdentityState state + // State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + // String state test('to test the property `state`', () async { // TODO }); diff --git a/clients/kratos/dart/test/identity_with_credentials_password_config_test.dart b/clients/kratos/dart/test/identity_with_credentials_password_config_test.dart index 8127e830b9d..9d8c35aa240 100644 --- a/clients/kratos/dart/test/identity_with_credentials_password_config_test.dart +++ b/clients/kratos/dart/test/identity_with_credentials_password_config_test.dart @@ -7,7 +7,7 @@ void main() { // TODO add properties to the builder and call build() group(IdentityWithCredentialsPasswordConfig, () { - // The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) + // The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) // String hashedPassword test('to test the property `hashedPassword`', () async { // TODO diff --git a/clients/kratos/dart/test/identity_state_test.dart b/clients/kratos/dart/test/login_flow_state_test.dart similarity index 67% rename from clients/kratos/dart/test/identity_state_test.dart rename to clients/kratos/dart/test/login_flow_state_test.dart index 52a00984bd5..24b1a62c833 100644 --- a/clients/kratos/dart/test/identity_state_test.dart +++ b/clients/kratos/dart/test/login_flow_state_test.dart @@ -1,9 +1,9 @@ import 'package:test/test.dart'; import 'package:ory_kratos_client/ory_kratos_client.dart'; -// tests for IdentityState +// tests for LoginFlowState void main() { - group(IdentityState, () { + group(LoginFlowState, () { }); } diff --git a/clients/kratos/dart/test/login_flow_test.dart b/clients/kratos/dart/test/login_flow_test.dart index 20651270926..481840edfd4 100644 --- a/clients/kratos/dart/test/login_flow_test.dart +++ b/clients/kratos/dart/test/login_flow_test.dart @@ -7,7 +7,8 @@ void main() { // TODO add properties to the builder and call build() group(LoginFlow, () { - // IdentityCredentialsType active + // The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + // String active test('to test the property `active`', () async { // TODO }); @@ -47,6 +48,11 @@ void main() { // TODO }); + // String organizationId + test('to test the property `organizationId`', () async { + // TODO + }); + // Refresh stores whether this login flow should enforce re-authentication. // bool refresh test('to test the property `refresh`', () async { @@ -76,6 +82,12 @@ void main() { // TODO }); + // State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + // JsonObject state + test('to test the property `state`', () async { + // TODO + }); + // The flow type can either be `api` or `browser`. // String type test('to test the property `type`', () async { diff --git a/clients/kratos/dart/test/message_test.dart b/clients/kratos/dart/test/message_test.dart index 190afde33aa..6a4a845c29e 100644 --- a/clients/kratos/dart/test/message_test.dart +++ b/clients/kratos/dart/test/message_test.dart @@ -12,6 +12,11 @@ void main() { // TODO }); + // String channel + test('to test the property `channel`', () async { + // TODO + }); + // CreatedAt is a helper struct field for gobuffalo.pop. // DateTime createdAt test('to test the property `createdAt`', () async { @@ -49,7 +54,7 @@ void main() { // TODO }); - // recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + // recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid // String templateType test('to test the property `templateType`', () async { // TODO diff --git a/clients/kratos/dart/test/o_auth2_client_test.dart b/clients/kratos/dart/test/o_auth2_client_test.dart index 27d4fdb5f68..d5ae60fa8ff 100644 --- a/clients/kratos/dart/test/o_auth2_client_test.dart +++ b/clients/kratos/dart/test/o_auth2_client_test.dart @@ -7,6 +7,12 @@ void main() { // TODO add properties to the builder and call build() group(OAuth2Client, () { + // OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. + // String accessTokenStrategy + test('to test the property `accessTokenStrategy`', () async { + // TODO + }); + // BuiltList allowedCorsOrigins test('to test the property `allowedCorsOrigins`', () async { // TODO @@ -53,7 +59,7 @@ void main() { // TODO }); - // OAuth 2.0 Client ID The ID is autogenerated and immutable. + // OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. // String clientId test('to test the property `clientId`', () async { // TODO @@ -232,13 +238,25 @@ void main() { // TODO }); + // SkipConsent skips the consent screen for this client. This field can only be set from the admin API. + // bool skipConsent + test('to test the property `skipConsent`', () async { + // TODO + }); + + // SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + // bool skipLogoutConsent + test('to test the property `skipLogoutConsent`', () async { + // TODO + }); + // OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. // String subjectType test('to test the property `subjectType`', () async { // TODO }); - // OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. + // OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. // String tokenEndpointAuthMethod test('to test the property `tokenEndpointAuthMethod`', () async { // TODO diff --git a/clients/kratos/dart/test/pagination_test.dart b/clients/kratos/dart/test/pagination_test.dart deleted file mode 100644 index 9dc9f9d814b..00000000000 --- a/clients/kratos/dart/test/pagination_test.dart +++ /dev/null @@ -1,23 +0,0 @@ -import 'package:test/test.dart'; -import 'package:ory_kratos_client/ory_kratos_client.dart'; - -// tests for Pagination -void main() { - final instance = PaginationBuilder(); - // TODO add properties to the builder and call build() - - group(Pagination, () { - // Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. - // int page (default value: 1) - test('to test the property `page`', () async { - // TODO - }); - - // Items per Page This is the number of items per page. - // int perPage (default value: 250) - test('to test the property `perPage`', () async { - // TODO - }); - - }); -} diff --git a/clients/kratos/dart/test/recovery_code_for_identity_test.dart b/clients/kratos/dart/test/recovery_code_for_identity_test.dart index dfe566521d0..39e982cf6fa 100644 --- a/clients/kratos/dart/test/recovery_code_for_identity_test.dart +++ b/clients/kratos/dart/test/recovery_code_for_identity_test.dart @@ -7,7 +7,7 @@ void main() { // TODO add properties to the builder and call build() group(RecoveryCodeForIdentity, () { - // Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. + // Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. // DateTime expiresAt test('to test the property `expiresAt`', () async { // TODO diff --git a/clients/kratos/dart/test/recovery_flow_test.dart b/clients/kratos/dart/test/recovery_flow_test.dart index e2127f3c228..8d65a3f9293 100644 --- a/clients/kratos/dart/test/recovery_flow_test.dart +++ b/clients/kratos/dart/test/recovery_flow_test.dart @@ -13,6 +13,12 @@ void main() { // TODO }); + // Contains possible actions that could follow this flow + // BuiltList continueWith + test('to test the property `continueWith`', () async { + // TODO + }); + // ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. // DateTime expiresAt test('to test the property `expiresAt`', () async { @@ -43,7 +49,8 @@ void main() { // TODO }); - // RecoveryFlowState state + // State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. + // JsonObject state test('to test the property `state`', () async { // TODO }); diff --git a/clients/kratos/dart/test/identity_credentials_type_test.dart b/clients/kratos/dart/test/registration_flow_state_test.dart similarity index 60% rename from clients/kratos/dart/test/identity_credentials_type_test.dart rename to clients/kratos/dart/test/registration_flow_state_test.dart index 1e9f481e2b5..6553df4f84b 100644 --- a/clients/kratos/dart/test/identity_credentials_type_test.dart +++ b/clients/kratos/dart/test/registration_flow_state_test.dart @@ -1,9 +1,9 @@ import 'package:test/test.dart'; import 'package:ory_kratos_client/ory_kratos_client.dart'; -// tests for IdentityCredentialsType +// tests for RegistrationFlowState void main() { - group(IdentityCredentialsType, () { + group(RegistrationFlowState, () { }); } diff --git a/clients/kratos/dart/test/registration_flow_test.dart b/clients/kratos/dart/test/registration_flow_test.dart index 35ba94104d5..1a07a605be9 100644 --- a/clients/kratos/dart/test/registration_flow_test.dart +++ b/clients/kratos/dart/test/registration_flow_test.dart @@ -7,7 +7,8 @@ void main() { // TODO add properties to the builder and call build() group(RegistrationFlow, () { - // IdentityCredentialsType active + // Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + // String active test('to test the property `active`', () async { // TODO }); @@ -41,6 +42,11 @@ void main() { // TODO }); + // String organizationId + test('to test the property `organizationId`', () async { + // TODO + }); + // RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. // String requestUrl test('to test the property `requestUrl`', () async { @@ -59,6 +65,12 @@ void main() { // TODO }); + // State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + // JsonObject state + test('to test the property `state`', () async { + // TODO + }); + // TransientPayload is used to pass data from the registration to a webhook // JsonObject transientPayload test('to test the property `transientPayload`', () async { diff --git a/clients/kratos/dart/test/session_authentication_method_test.dart b/clients/kratos/dart/test/session_authentication_method_test.dart index 8ddc16ce51d..a6654072d27 100644 --- a/clients/kratos/dart/test/session_authentication_method_test.dart +++ b/clients/kratos/dart/test/session_authentication_method_test.dart @@ -23,6 +23,12 @@ void main() { // TODO }); + // The Organization id used for authentication + // String organization + test('to test the property `organization`', () async { + // TODO + }); + // OIDC or SAML provider id used for authentication // String provider test('to test the property `provider`', () async { diff --git a/clients/kratos/dart/test/session_test.dart b/clients/kratos/dart/test/session_test.dart index 8a29f42be42..d6699c9e6b7 100644 --- a/clients/kratos/dart/test/session_test.dart +++ b/clients/kratos/dart/test/session_test.dart @@ -59,5 +59,11 @@ void main() { // TODO }); + // Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. + // String tokenized + test('to test the property `tokenized`', () async { + // TODO + }); + }); } diff --git a/clients/kratos/dart/test/settings_flow_test.dart b/clients/kratos/dart/test/settings_flow_test.dart index f9285390c03..46ec6de32ec 100644 --- a/clients/kratos/dart/test/settings_flow_test.dart +++ b/clients/kratos/dart/test/settings_flow_test.dart @@ -54,7 +54,8 @@ void main() { // TODO }); - // SettingsFlowState state + // State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. + // JsonObject state test('to test the property `state`', () async { // TODO }); diff --git a/clients/kratos/dart/test/update_identity_body_test.dart b/clients/kratos/dart/test/update_identity_body_test.dart index 0ae8cd0cb80..c9fc7ec243d 100644 --- a/clients/kratos/dart/test/update_identity_body_test.dart +++ b/clients/kratos/dart/test/update_identity_body_test.dart @@ -30,7 +30,8 @@ void main() { // TODO }); - // IdentityState state + // State is the identity's state. active StateActive inactive StateInactive + // String state test('to test the property `state`', () async { // TODO }); diff --git a/clients/kratos/dart/test/update_login_flow_body_test.dart b/clients/kratos/dart/test/update_login_flow_body_test.dart index 3060cb107b0..40eb17d64f8 100644 --- a/clients/kratos/dart/test/update_login_flow_body_test.dart +++ b/clients/kratos/dart/test/update_login_flow_body_test.dart @@ -7,19 +7,19 @@ void main() { // TODO add properties to the builder and call build() group(UpdateLoginFlowBody, () { - // Sending the anti-csrf token is only required for browser login flows. + // CSRFToken is the anti-CSRF token // String csrfToken test('to test the property `csrfToken`', () async { // TODO }); - // Identifier is the email or username of the user trying to log in. + // Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. // String identifier test('to test the property `identifier`', () async { // TODO }); - // Method should be set to \"lookup_secret\" when logging in using the lookup_secret strategy. + // Method should be set to \"code\" when logging in using the code strategy. // String method test('to test the property `method`', () async { // TODO @@ -37,6 +37,18 @@ void main() { // TODO }); + // IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + // String idToken + test('to test the property `idToken`', () async { + // TODO + }); + + // IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. + // String idTokenNonce + test('to test the property `idTokenNonce`', () async { + // TODO + }); + // The provider to register with // String provider test('to test the property `provider`', () async { @@ -73,5 +85,17 @@ void main() { // TODO }); + // Code is the 6 digits code sent to the user + // String code + test('to test the property `code`', () async { + // TODO + }); + + // Resend is set when the user wants to resend the code + // String resend + test('to test the property `resend`', () async { + // TODO + }); + }); } diff --git a/clients/kratos/dart/test/update_login_flow_with_code_method_test.dart b/clients/kratos/dart/test/update_login_flow_with_code_method_test.dart new file mode 100644 index 00000000000..7737c397e8d --- /dev/null +++ b/clients/kratos/dart/test/update_login_flow_with_code_method_test.dart @@ -0,0 +1,41 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for UpdateLoginFlowWithCodeMethod +void main() { + final instance = UpdateLoginFlowWithCodeMethodBuilder(); + // TODO add properties to the builder and call build() + + group(UpdateLoginFlowWithCodeMethod, () { + // Code is the 6 digits code sent to the user + // String code + test('to test the property `code`', () async { + // TODO + }); + + // CSRFToken is the anti-CSRF token + // String csrfToken + test('to test the property `csrfToken`', () async { + // TODO + }); + + // Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. + // String identifier + test('to test the property `identifier`', () async { + // TODO + }); + + // Method should be set to \"code\" when logging in using the code strategy. + // String method + test('to test the property `method`', () async { + // TODO + }); + + // Resend is set when the user wants to resend the code + // String resend + test('to test the property `resend`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/update_login_flow_with_oidc_method_test.dart b/clients/kratos/dart/test/update_login_flow_with_oidc_method_test.dart index 737d107af3b..19c4f79a928 100644 --- a/clients/kratos/dart/test/update_login_flow_with_oidc_method_test.dart +++ b/clients/kratos/dart/test/update_login_flow_with_oidc_method_test.dart @@ -13,6 +13,18 @@ void main() { // TODO }); + // IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + // String idToken + test('to test the property `idToken`', () async { + // TODO + }); + + // IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. + // String idTokenNonce + test('to test the property `idTokenNonce`', () async { + // TODO + }); + // Method to use This field must be set to `oidc` when using the oidc method. // String method test('to test the property `method`', () async { diff --git a/clients/kratos/dart/test/update_registration_flow_body_test.dart b/clients/kratos/dart/test/update_registration_flow_body_test.dart index 95207a67dad..d34e0c291fb 100644 --- a/clients/kratos/dart/test/update_registration_flow_body_test.dart +++ b/clients/kratos/dart/test/update_registration_flow_body_test.dart @@ -7,13 +7,13 @@ void main() { // TODO add properties to the builder and call build() group(UpdateRegistrationFlowBody, () { - // CSRFToken is the anti-CSRF token + // The CSRF Token // String csrfToken test('to test the property `csrfToken`', () async { // TODO }); - // Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. + // Method to use This field must be set to `code` when using the code method. // String method test('to test the property `method`', () async { // TODO @@ -37,6 +37,18 @@ void main() { // TODO }); + // IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + // String idToken + test('to test the property `idToken`', () async { + // TODO + }); + + // IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. + // String idTokenNonce + test('to test the property `idTokenNonce`', () async { + // TODO + }); + // The provider to register with // String provider test('to test the property `provider`', () async { @@ -61,5 +73,17 @@ void main() { // TODO }); + // The OTP Code sent to the user + // String code + test('to test the property `code`', () async { + // TODO + }); + + // Resend restarts the flow with a new code + // String resend + test('to test the property `resend`', () async { + // TODO + }); + }); } diff --git a/clients/kratos/dart/test/update_registration_flow_with_code_method_test.dart b/clients/kratos/dart/test/update_registration_flow_with_code_method_test.dart new file mode 100644 index 00000000000..9b1d3afaa2c --- /dev/null +++ b/clients/kratos/dart/test/update_registration_flow_with_code_method_test.dart @@ -0,0 +1,47 @@ +import 'package:test/test.dart'; +import 'package:ory_kratos_client/ory_kratos_client.dart'; + +// tests for UpdateRegistrationFlowWithCodeMethod +void main() { + final instance = UpdateRegistrationFlowWithCodeMethodBuilder(); + // TODO add properties to the builder and call build() + + group(UpdateRegistrationFlowWithCodeMethod, () { + // The OTP Code sent to the user + // String code + test('to test the property `code`', () async { + // TODO + }); + + // The CSRF Token + // String csrfToken + test('to test the property `csrfToken`', () async { + // TODO + }); + + // Method to use This field must be set to `code` when using the code method. + // String method + test('to test the property `method`', () async { + // TODO + }); + + // Resend restarts the flow with a new code + // String resend + test('to test the property `resend`', () async { + // TODO + }); + + // The identity's traits + // JsonObject traits + test('to test the property `traits`', () async { + // TODO + }); + + // Transient data to pass along to any webhooks + // JsonObject transientPayload + test('to test the property `transientPayload`', () async { + // TODO + }); + + }); +} diff --git a/clients/kratos/dart/test/update_registration_flow_with_oidc_method_test.dart b/clients/kratos/dart/test/update_registration_flow_with_oidc_method_test.dart index bc8d7cbd43e..f5eba8daf97 100644 --- a/clients/kratos/dart/test/update_registration_flow_with_oidc_method_test.dart +++ b/clients/kratos/dart/test/update_registration_flow_with_oidc_method_test.dart @@ -13,6 +13,18 @@ void main() { // TODO }); + // IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + // String idToken + test('to test the property `idToken`', () async { + // TODO + }); + + // IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. + // String idTokenNonce + test('to test the property `idTokenNonce`', () async { + // TODO + }); + // Method to use This field must be set to `oidc` when using the oidc method. // String method test('to test the property `method`', () async { diff --git a/clients/kratos/dart/test/verifiable_identity_address_test.dart b/clients/kratos/dart/test/verifiable_identity_address_test.dart index eed85e73f1f..ca9c5c01772 100644 --- a/clients/kratos/dart/test/verifiable_identity_address_test.dart +++ b/clients/kratos/dart/test/verifiable_identity_address_test.dart @@ -48,7 +48,7 @@ void main() { // TODO }); - // VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema + // The delivery method // String via test('to test the property `via`', () async { // TODO diff --git a/clients/kratos/dart/test/verification_flow_test.dart b/clients/kratos/dart/test/verification_flow_test.dart index f8a01481a7c..35c359cd1ab 100644 --- a/clients/kratos/dart/test/verification_flow_test.dart +++ b/clients/kratos/dart/test/verification_flow_test.dart @@ -43,7 +43,8 @@ void main() { // TODO }); - // VerificationFlowState state + // State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. + // JsonObject state test('to test the property `state`', () async { // TODO }); diff --git a/clients/kratos/dotnet/.openapi-generator/FILES b/clients/kratos/dotnet/.openapi-generator/FILES index aeb9325892b..3f62749a8eb 100644 --- a/clients/kratos/dotnet/.openapi-generator/FILES +++ b/clients/kratos/dotnet/.openapi-generator/FILES @@ -8,8 +8,13 @@ docs/FrontendApi.md docs/IdentityApi.md docs/KratosAuthenticatorAssuranceLevel.md docs/KratosBatchPatchIdentitiesResponse.md +docs/KratosConsistencyRequestParameters.md docs/KratosContinueWith.md +docs/KratosContinueWithRecoveryUi.md +docs/KratosContinueWithRecoveryUiFlow.md docs/KratosContinueWithSetOrySessionToken.md +docs/KratosContinueWithSettingsUi.md +docs/KratosContinueWithSettingsUiFlow.md docs/KratosContinueWithVerificationUi.md docs/KratosContinueWithVerificationUiFlow.md docs/KratosCourierMessageStatus.md @@ -28,14 +33,13 @@ docs/KratosHealthNotReadyStatus.md docs/KratosHealthStatus.md docs/KratosIdentity.md docs/KratosIdentityCredentials.md +docs/KratosIdentityCredentialsCode.md docs/KratosIdentityCredentialsOidc.md docs/KratosIdentityCredentialsOidcProvider.md docs/KratosIdentityCredentialsPassword.md -docs/KratosIdentityCredentialsType.md docs/KratosIdentityPatch.md docs/KratosIdentityPatchResponse.md docs/KratosIdentitySchemaContainer.md -docs/KratosIdentityState.md docs/KratosIdentityWithCredentials.md docs/KratosIdentityWithCredentialsOidc.md docs/KratosIdentityWithCredentialsOidcConfig.md @@ -47,6 +51,7 @@ docs/KratosInlineResponse2001.md docs/KratosInlineResponse503.md docs/KratosJsonPatch.md docs/KratosLoginFlow.md +docs/KratosLoginFlowState.md docs/KratosLogoutFlow.md docs/KratosMessage.md docs/KratosMessageDispatch.md @@ -54,7 +59,6 @@ docs/KratosNeedsPrivilegedSessionError.md docs/KratosOAuth2Client.md docs/KratosOAuth2ConsentRequestOpenIDConnectContext.md docs/KratosOAuth2LoginRequest.md -docs/KratosPagination.md docs/KratosPatchIdentitiesBody.md docs/KratosPerformNativeLogoutBody.md docs/KratosRecoveryCodeForIdentity.md @@ -63,6 +67,7 @@ docs/KratosRecoveryFlowState.md docs/KratosRecoveryIdentityAddress.md docs/KratosRecoveryLinkForIdentity.md docs/KratosRegistrationFlow.md +docs/KratosRegistrationFlowState.md docs/KratosSelfServiceFlowExpiredError.md docs/KratosSession.md docs/KratosSessionAuthenticationMethod.md @@ -86,6 +91,7 @@ docs/KratosUiNodeTextAttributes.md docs/KratosUiText.md docs/KratosUpdateIdentityBody.md docs/KratosUpdateLoginFlowBody.md +docs/KratosUpdateLoginFlowWithCodeMethod.md docs/KratosUpdateLoginFlowWithLookupSecretMethod.md docs/KratosUpdateLoginFlowWithOidcMethod.md docs/KratosUpdateLoginFlowWithPasswordMethod.md @@ -95,6 +101,7 @@ docs/KratosUpdateRecoveryFlowBody.md docs/KratosUpdateRecoveryFlowWithCodeMethod.md docs/KratosUpdateRecoveryFlowWithLinkMethod.md docs/KratosUpdateRegistrationFlowBody.md +docs/KratosUpdateRegistrationFlowWithCodeMethod.md docs/KratosUpdateRegistrationFlowWithOidcMethod.md docs/KratosUpdateRegistrationFlowWithPasswordMethod.md docs/KratosUpdateRegistrationFlowWithWebAuthnMethod.md @@ -120,7 +127,12 @@ src/Ory.Kratos.Client.Test/Api/IdentityApiTests.cs src/Ory.Kratos.Client.Test/Api/MetadataApiTests.cs src/Ory.Kratos.Client.Test/Model/KratosAuthenticatorAssuranceLevelTests.cs src/Ory.Kratos.Client.Test/Model/KratosBatchPatchIdentitiesResponseTests.cs +src/Ory.Kratos.Client.Test/Model/KratosConsistencyRequestParametersTests.cs +src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiFlowTests.cs +src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiTests.cs src/Ory.Kratos.Client.Test/Model/KratosContinueWithSetOrySessionTokenTests.cs +src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiFlowTests.cs +src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiTests.cs src/Ory.Kratos.Client.Test/Model/KratosContinueWithTests.cs src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiFlowTests.cs src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiTests.cs @@ -138,15 +150,14 @@ src/Ory.Kratos.Client.Test/Model/KratosFlowErrorTests.cs src/Ory.Kratos.Client.Test/Model/KratosGenericErrorTests.cs src/Ory.Kratos.Client.Test/Model/KratosHealthNotReadyStatusTests.cs src/Ory.Kratos.Client.Test/Model/KratosHealthStatusTests.cs +src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsCodeTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcProviderTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsPasswordTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTests.cs -src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTypeTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchResponseTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentitySchemaContainerTests.cs -src/Ory.Kratos.Client.Test/Model/KratosIdentityStateTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigProviderTests.cs src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigTests.cs @@ -158,6 +169,7 @@ src/Ory.Kratos.Client.Test/Model/KratosInlineResponse2001Tests.cs src/Ory.Kratos.Client.Test/Model/KratosInlineResponse200Tests.cs src/Ory.Kratos.Client.Test/Model/KratosInlineResponse503Tests.cs src/Ory.Kratos.Client.Test/Model/KratosJsonPatchTests.cs +src/Ory.Kratos.Client.Test/Model/KratosLoginFlowStateTests.cs src/Ory.Kratos.Client.Test/Model/KratosLoginFlowTests.cs src/Ory.Kratos.Client.Test/Model/KratosLogoutFlowTests.cs src/Ory.Kratos.Client.Test/Model/KratosMessageDispatchTests.cs @@ -166,7 +178,6 @@ src/Ory.Kratos.Client.Test/Model/KratosNeedsPrivilegedSessionErrorTests.cs src/Ory.Kratos.Client.Test/Model/KratosOAuth2ClientTests.cs src/Ory.Kratos.Client.Test/Model/KratosOAuth2ConsentRequestOpenIDConnectContextTests.cs src/Ory.Kratos.Client.Test/Model/KratosOAuth2LoginRequestTests.cs -src/Ory.Kratos.Client.Test/Model/KratosPaginationTests.cs src/Ory.Kratos.Client.Test/Model/KratosPatchIdentitiesBodyTests.cs src/Ory.Kratos.Client.Test/Model/KratosPerformNativeLogoutBodyTests.cs src/Ory.Kratos.Client.Test/Model/KratosRecoveryCodeForIdentityTests.cs @@ -174,6 +185,7 @@ src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowStateTests.cs src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowTests.cs src/Ory.Kratos.Client.Test/Model/KratosRecoveryIdentityAddressTests.cs src/Ory.Kratos.Client.Test/Model/KratosRecoveryLinkForIdentityTests.cs +src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowStateTests.cs src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowTests.cs src/Ory.Kratos.Client.Test/Model/KratosSelfServiceFlowExpiredErrorTests.cs src/Ory.Kratos.Client.Test/Model/KratosSessionAuthenticationMethodTests.cs @@ -198,6 +210,7 @@ src/Ory.Kratos.Client.Test/Model/KratosUiNodeTextAttributesTests.cs src/Ory.Kratos.Client.Test/Model/KratosUiTextTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateIdentityBodyTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowBodyTests.cs +src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithCodeMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithLookupSecretMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithOidcMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithPasswordMethodTests.cs @@ -207,6 +220,7 @@ src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowBodyTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithCodeMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithLinkMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowBodyTests.cs +src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithCodeMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithOidcMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithPasswordMethodTests.cs src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithWebAuthnMethodTests.cs @@ -248,8 +262,13 @@ src/Ory.Kratos.Client/Client/RetryConfiguration.cs src/Ory.Kratos.Client/Model/AbstractOpenAPISchema.cs src/Ory.Kratos.Client/Model/KratosAuthenticatorAssuranceLevel.cs src/Ory.Kratos.Client/Model/KratosBatchPatchIdentitiesResponse.cs +src/Ory.Kratos.Client/Model/KratosConsistencyRequestParameters.cs src/Ory.Kratos.Client/Model/KratosContinueWith.cs +src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUi.cs +src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUiFlow.cs src/Ory.Kratos.Client/Model/KratosContinueWithSetOrySessionToken.cs +src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUi.cs +src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUiFlow.cs src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUi.cs src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUiFlow.cs src/Ory.Kratos.Client/Model/KratosCourierMessageStatus.cs @@ -268,14 +287,13 @@ src/Ory.Kratos.Client/Model/KratosHealthNotReadyStatus.cs src/Ory.Kratos.Client/Model/KratosHealthStatus.cs src/Ory.Kratos.Client/Model/KratosIdentity.cs src/Ory.Kratos.Client/Model/KratosIdentityCredentials.cs +src/Ory.Kratos.Client/Model/KratosIdentityCredentialsCode.cs src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidc.cs src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidcProvider.cs src/Ory.Kratos.Client/Model/KratosIdentityCredentialsPassword.cs -src/Ory.Kratos.Client/Model/KratosIdentityCredentialsType.cs src/Ory.Kratos.Client/Model/KratosIdentityPatch.cs src/Ory.Kratos.Client/Model/KratosIdentityPatchResponse.cs src/Ory.Kratos.Client/Model/KratosIdentitySchemaContainer.cs -src/Ory.Kratos.Client/Model/KratosIdentityState.cs src/Ory.Kratos.Client/Model/KratosIdentityWithCredentials.cs src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidc.cs src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfig.cs @@ -287,6 +305,7 @@ src/Ory.Kratos.Client/Model/KratosInlineResponse2001.cs src/Ory.Kratos.Client/Model/KratosInlineResponse503.cs src/Ory.Kratos.Client/Model/KratosJsonPatch.cs src/Ory.Kratos.Client/Model/KratosLoginFlow.cs +src/Ory.Kratos.Client/Model/KratosLoginFlowState.cs src/Ory.Kratos.Client/Model/KratosLogoutFlow.cs src/Ory.Kratos.Client/Model/KratosMessage.cs src/Ory.Kratos.Client/Model/KratosMessageDispatch.cs @@ -294,7 +313,6 @@ src/Ory.Kratos.Client/Model/KratosNeedsPrivilegedSessionError.cs src/Ory.Kratos.Client/Model/KratosOAuth2Client.cs src/Ory.Kratos.Client/Model/KratosOAuth2ConsentRequestOpenIDConnectContext.cs src/Ory.Kratos.Client/Model/KratosOAuth2LoginRequest.cs -src/Ory.Kratos.Client/Model/KratosPagination.cs src/Ory.Kratos.Client/Model/KratosPatchIdentitiesBody.cs src/Ory.Kratos.Client/Model/KratosPerformNativeLogoutBody.cs src/Ory.Kratos.Client/Model/KratosRecoveryCodeForIdentity.cs @@ -303,6 +321,7 @@ src/Ory.Kratos.Client/Model/KratosRecoveryFlowState.cs src/Ory.Kratos.Client/Model/KratosRecoveryIdentityAddress.cs src/Ory.Kratos.Client/Model/KratosRecoveryLinkForIdentity.cs src/Ory.Kratos.Client/Model/KratosRegistrationFlow.cs +src/Ory.Kratos.Client/Model/KratosRegistrationFlowState.cs src/Ory.Kratos.Client/Model/KratosSelfServiceFlowExpiredError.cs src/Ory.Kratos.Client/Model/KratosSession.cs src/Ory.Kratos.Client/Model/KratosSessionAuthenticationMethod.cs @@ -326,6 +345,7 @@ src/Ory.Kratos.Client/Model/KratosUiNodeTextAttributes.cs src/Ory.Kratos.Client/Model/KratosUiText.cs src/Ory.Kratos.Client/Model/KratosUpdateIdentityBody.cs src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowBody.cs +src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithCodeMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithLookupSecretMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithOidcMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithPasswordMethod.cs @@ -335,6 +355,7 @@ src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowBody.cs src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithCodeMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithLinkMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowBody.cs +src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithCodeMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithOidcMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithPasswordMethod.cs src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithWebAuthnMethod.cs diff --git a/clients/kratos/dotnet/Ory.Kratos.Client.sln b/clients/kratos/dotnet/Ory.Kratos.Client.sln index 1a53cfb9a4c..b41b7473267 100644 --- a/clients/kratos/dotnet/Ory.Kratos.Client.sln +++ b/clients/kratos/dotnet/Ory.Kratos.Client.sln @@ -2,7 +2,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio 2012 VisualStudioVersion = 12.0.0.0 MinimumVisualStudioVersion = 10.0.0.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Kratos.Client", "src\Ory.Kratos.Client\Ory.Kratos.Client.csproj", "{D8B6EC9D-E69C-4D79-9EC9-B32554171F83}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Kratos.Client", "src\Ory.Kratos.Client\Ory.Kratos.Client.csproj", "{416D272D-2262-4185-A660-3649179A9933}" EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ory.Kratos.Client.Test", "src\Ory.Kratos.Client.Test\Ory.Kratos.Client.Test.csproj", "{19F1DEBC-DE5E-4517-8062-F000CD499087}" EndProject @@ -12,10 +12,10 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {D8B6EC9D-E69C-4D79-9EC9-B32554171F83}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {D8B6EC9D-E69C-4D79-9EC9-B32554171F83}.Debug|Any CPU.Build.0 = Debug|Any CPU - {D8B6EC9D-E69C-4D79-9EC9-B32554171F83}.Release|Any CPU.ActiveCfg = Release|Any CPU - {D8B6EC9D-E69C-4D79-9EC9-B32554171F83}.Release|Any CPU.Build.0 = Release|Any CPU + {416D272D-2262-4185-A660-3649179A9933}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {416D272D-2262-4185-A660-3649179A9933}.Debug|Any CPU.Build.0 = Debug|Any CPU + {416D272D-2262-4185-A660-3649179A9933}.Release|Any CPU.ActiveCfg = Release|Any CPU + {416D272D-2262-4185-A660-3649179A9933}.Release|Any CPU.Build.0 = Release|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.ActiveCfg = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Debug|Any CPU.Build.0 = Debug|Any CPU {19F1DEBC-DE5E-4517-8062-F000CD499087}.Release|Any CPU.ActiveCfg = Release|Any CPU diff --git a/clients/kratos/dotnet/README.md b/clients/kratos/dotnet/README.md index 6b74a50009b..73c5fa770e2 100644 --- a/clients/kratos/dotnet/README.md +++ b/clients/kratos/dotnet/README.md @@ -5,8 +5,8 @@ This is the API specification for Ory Identities with features such as registrat This C# SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: -- API version: v1.0.0 -- SDK version: 1.0.0 +- API version: v1.1.0 +- SDK version: 1.1.0 - Build package: org.openapitools.codegen.languages.CSharpNetCoreClientCodegen For more information, please visit [https://www.ory.sh](https://www.ory.sh) @@ -148,7 +148,7 @@ Class | Method | HTTP request | Description *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 | Complete Recovery 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 @@ -180,8 +180,13 @@ Class | Method | HTTP request | Description - [Model.KratosAuthenticatorAssuranceLevel](docs/KratosAuthenticatorAssuranceLevel.md) - [Model.KratosBatchPatchIdentitiesResponse](docs/KratosBatchPatchIdentitiesResponse.md) + - [Model.KratosConsistencyRequestParameters](docs/KratosConsistencyRequestParameters.md) - [Model.KratosContinueWith](docs/KratosContinueWith.md) + - [Model.KratosContinueWithRecoveryUi](docs/KratosContinueWithRecoveryUi.md) + - [Model.KratosContinueWithRecoveryUiFlow](docs/KratosContinueWithRecoveryUiFlow.md) - [Model.KratosContinueWithSetOrySessionToken](docs/KratosContinueWithSetOrySessionToken.md) + - [Model.KratosContinueWithSettingsUi](docs/KratosContinueWithSettingsUi.md) + - [Model.KratosContinueWithSettingsUiFlow](docs/KratosContinueWithSettingsUiFlow.md) - [Model.KratosContinueWithVerificationUi](docs/KratosContinueWithVerificationUi.md) - [Model.KratosContinueWithVerificationUiFlow](docs/KratosContinueWithVerificationUiFlow.md) - [Model.KratosCourierMessageStatus](docs/KratosCourierMessageStatus.md) @@ -200,14 +205,13 @@ Class | Method | HTTP request | Description - [Model.KratosHealthStatus](docs/KratosHealthStatus.md) - [Model.KratosIdentity](docs/KratosIdentity.md) - [Model.KratosIdentityCredentials](docs/KratosIdentityCredentials.md) + - [Model.KratosIdentityCredentialsCode](docs/KratosIdentityCredentialsCode.md) - [Model.KratosIdentityCredentialsOidc](docs/KratosIdentityCredentialsOidc.md) - [Model.KratosIdentityCredentialsOidcProvider](docs/KratosIdentityCredentialsOidcProvider.md) - [Model.KratosIdentityCredentialsPassword](docs/KratosIdentityCredentialsPassword.md) - - [Model.KratosIdentityCredentialsType](docs/KratosIdentityCredentialsType.md) - [Model.KratosIdentityPatch](docs/KratosIdentityPatch.md) - [Model.KratosIdentityPatchResponse](docs/KratosIdentityPatchResponse.md) - [Model.KratosIdentitySchemaContainer](docs/KratosIdentitySchemaContainer.md) - - [Model.KratosIdentityState](docs/KratosIdentityState.md) - [Model.KratosIdentityWithCredentials](docs/KratosIdentityWithCredentials.md) - [Model.KratosIdentityWithCredentialsOidc](docs/KratosIdentityWithCredentialsOidc.md) - [Model.KratosIdentityWithCredentialsOidcConfig](docs/KratosIdentityWithCredentialsOidcConfig.md) @@ -219,6 +223,7 @@ Class | Method | HTTP request | Description - [Model.KratosInlineResponse503](docs/KratosInlineResponse503.md) - [Model.KratosJsonPatch](docs/KratosJsonPatch.md) - [Model.KratosLoginFlow](docs/KratosLoginFlow.md) + - [Model.KratosLoginFlowState](docs/KratosLoginFlowState.md) - [Model.KratosLogoutFlow](docs/KratosLogoutFlow.md) - [Model.KratosMessage](docs/KratosMessage.md) - [Model.KratosMessageDispatch](docs/KratosMessageDispatch.md) @@ -226,7 +231,6 @@ Class | Method | HTTP request | Description - [Model.KratosOAuth2Client](docs/KratosOAuth2Client.md) - [Model.KratosOAuth2ConsentRequestOpenIDConnectContext](docs/KratosOAuth2ConsentRequestOpenIDConnectContext.md) - [Model.KratosOAuth2LoginRequest](docs/KratosOAuth2LoginRequest.md) - - [Model.KratosPagination](docs/KratosPagination.md) - [Model.KratosPatchIdentitiesBody](docs/KratosPatchIdentitiesBody.md) - [Model.KratosPerformNativeLogoutBody](docs/KratosPerformNativeLogoutBody.md) - [Model.KratosRecoveryCodeForIdentity](docs/KratosRecoveryCodeForIdentity.md) @@ -235,6 +239,7 @@ Class | Method | HTTP request | Description - [Model.KratosRecoveryIdentityAddress](docs/KratosRecoveryIdentityAddress.md) - [Model.KratosRecoveryLinkForIdentity](docs/KratosRecoveryLinkForIdentity.md) - [Model.KratosRegistrationFlow](docs/KratosRegistrationFlow.md) + - [Model.KratosRegistrationFlowState](docs/KratosRegistrationFlowState.md) - [Model.KratosSelfServiceFlowExpiredError](docs/KratosSelfServiceFlowExpiredError.md) - [Model.KratosSession](docs/KratosSession.md) - [Model.KratosSessionAuthenticationMethod](docs/KratosSessionAuthenticationMethod.md) @@ -258,6 +263,7 @@ Class | Method | HTTP request | Description - [Model.KratosUiText](docs/KratosUiText.md) - [Model.KratosUpdateIdentityBody](docs/KratosUpdateIdentityBody.md) - [Model.KratosUpdateLoginFlowBody](docs/KratosUpdateLoginFlowBody.md) + - [Model.KratosUpdateLoginFlowWithCodeMethod](docs/KratosUpdateLoginFlowWithCodeMethod.md) - [Model.KratosUpdateLoginFlowWithLookupSecretMethod](docs/KratosUpdateLoginFlowWithLookupSecretMethod.md) - [Model.KratosUpdateLoginFlowWithOidcMethod](docs/KratosUpdateLoginFlowWithOidcMethod.md) - [Model.KratosUpdateLoginFlowWithPasswordMethod](docs/KratosUpdateLoginFlowWithPasswordMethod.md) @@ -267,6 +273,7 @@ Class | Method | HTTP request | Description - [Model.KratosUpdateRecoveryFlowWithCodeMethod](docs/KratosUpdateRecoveryFlowWithCodeMethod.md) - [Model.KratosUpdateRecoveryFlowWithLinkMethod](docs/KratosUpdateRecoveryFlowWithLinkMethod.md) - [Model.KratosUpdateRegistrationFlowBody](docs/KratosUpdateRegistrationFlowBody.md) + - [Model.KratosUpdateRegistrationFlowWithCodeMethod](docs/KratosUpdateRegistrationFlowWithCodeMethod.md) - [Model.KratosUpdateRegistrationFlowWithOidcMethod](docs/KratosUpdateRegistrationFlowWithOidcMethod.md) - [Model.KratosUpdateRegistrationFlowWithPasswordMethod](docs/KratosUpdateRegistrationFlowWithPasswordMethod.md) - [Model.KratosUpdateRegistrationFlowWithWebAuthnMethod](docs/KratosUpdateRegistrationFlowWithWebAuthnMethod.md) diff --git a/clients/kratos/dotnet/docs/FrontendApi.md b/clients/kratos/dotnet/docs/FrontendApi.md index 3ae3e01c0f7..2efafd4fb5c 100644 --- a/clients/kratos/dotnet/docs/FrontendApi.md +++ b/clients/kratos/dotnet/docs/FrontendApi.md @@ -30,7 +30,7 @@ Method | HTTP request | Description [**ToSession**](FrontendApi.md#tosession) | **GET** /sessions/whoami | Check Who the Current HTTP Session Belongs To [**UpdateLoginFlow**](FrontendApi.md#updateloginflow) | **POST** /self-service/login | Submit a Login Flow [**UpdateLogoutFlow**](FrontendApi.md#updatelogoutflow) | **GET** /self-service/logout | Update Logout Flow -[**UpdateRecoveryFlow**](FrontendApi.md#updaterecoveryflow) | **POST** /self-service/recovery | Complete Recovery Flow +[**UpdateRecoveryFlow**](FrontendApi.md#updaterecoveryflow) | **POST** /self-service/recovery | Update Recovery Flow [**UpdateRegistrationFlow**](FrontendApi.md#updateregistrationflow) | **POST** /self-service/registration | Update Registration Flow [**UpdateSettingsFlow**](FrontendApi.md#updatesettingsflow) | **POST** /self-service/settings | Complete Settings Flow [**UpdateVerificationFlow**](FrontendApi.md#updateverificationflow) | **POST** /self-service/verification | Complete Verification Flow @@ -38,7 +38,7 @@ Method | HTTP request | Description # **CreateBrowserLoginFlow** -> KratosLoginFlow CreateBrowserLoginFlow (bool? refresh = null, string aal = null, string returnTo = null, string cookie = null, string loginChallenge = null) +> KratosLoginFlow CreateBrowserLoginFlow (bool? refresh = null, string aal = null, string returnTo = null, string cookie = null, string loginChallenge = null, string organization = null) Create Login Flow for Browsers @@ -66,11 +66,12 @@ namespace Example var returnTo = "returnTo_example"; // string | The URL to return the browser to after the flow was completed. (optional) var cookie = "cookie_example"; // string | HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) var loginChallenge = "loginChallenge_example"; // string | An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + var organization = "organization_example"; // string | An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) try { // Create Login Flow for Browsers - KratosLoginFlow result = apiInstance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge); + KratosLoginFlow result = apiInstance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); Debug.WriteLine(result); } catch (ApiException e) @@ -93,6 +94,7 @@ Name | Type | Description | Notes **returnTo** | **string**| The URL to return the browser to after the flow was completed. | [optional] **cookie** | **string**| HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. | [optional] **loginChallenge** | **string**| An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). | [optional] + **organization** | **string**| An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. | [optional] ### Return type @@ -270,11 +272,11 @@ No authorization required # **CreateBrowserRegistrationFlow** -> KratosRegistrationFlow CreateBrowserRegistrationFlow (string returnTo = null, string loginChallenge = null, string afterVerificationReturnTo = null) +> KratosRegistrationFlow CreateBrowserRegistrationFlow (string returnTo = null, string loginChallenge = null, string afterVerificationReturnTo = null, string organization = null) Create Registration Flow for Browsers -This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). +This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). ### Example ```csharp @@ -296,11 +298,12 @@ namespace Example var returnTo = "returnTo_example"; // string | The URL to return the browser to after the flow was completed. (optional) var loginChallenge = "loginChallenge_example"; // string | Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) var afterVerificationReturnTo = "afterVerificationReturnTo_example"; // string | The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + var organization = "organization_example"; // string | (optional) try { // Create Registration Flow for Browsers - KratosRegistrationFlow result = apiInstance.CreateBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo); + KratosRegistrationFlow result = apiInstance.CreateBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo, organization); Debug.WriteLine(result); } catch (ApiException e) @@ -321,6 +324,7 @@ Name | Type | Description | Notes **returnTo** | **string**| The URL to return the browser to after the flow was completed. | [optional] **loginChallenge** | **string**| Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. | [optional] **afterVerificationReturnTo** | **string**| The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. | [optional] + **organization** | **string**| | [optional] ### Return type @@ -498,7 +502,7 @@ No authorization required # **CreateNativeLoginFlow** -> KratosLoginFlow CreateNativeLoginFlow (bool? refresh = null, string aal = null, string xSessionToken = null, bool? returnSessionTokenExchangeCode = null, string returnTo = null) +> KratosLoginFlow CreateNativeLoginFlow (bool? refresh = null, string aal = null, string xSessionToken = null, bool? returnSessionTokenExchangeCode = null, string returnTo = null, string via = null) Create Login Flow for Native Apps @@ -526,11 +530,12 @@ namespace Example var xSessionToken = "xSessionToken_example"; // string | The Session Token of the Identity performing the settings flow. (optional) var returnSessionTokenExchangeCode = true; // bool? | EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) var returnTo = "returnTo_example"; // string | The URL to return the browser to after the flow was completed. (optional) + var via = "via_example"; // string | Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) try { // Create Login Flow for Native Apps - KratosLoginFlow result = apiInstance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + KratosLoginFlow result = apiInstance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); Debug.WriteLine(result); } catch (ApiException e) @@ -553,6 +558,7 @@ Name | Type | Description | Notes **xSessionToken** | **string**| The Session Token of the Identity performing the settings flow. | [optional] **returnSessionTokenExchangeCode** | **bool?**| EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. | [optional] **returnTo** | **string**| The URL to return the browser to after the flow was completed. | [optional] + **via** | **string**| Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. | [optional] ### Return type @@ -583,7 +589,7 @@ No authorization required Create Recovery Flow for Native Apps -This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). +This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). ### Example ```csharp @@ -1620,7 +1626,7 @@ No authorization required # **ListMySessions** -> List<KratosSession> ListMySessions (long? perPage = null, long? page = null, string xSessionToken = null, string cookie = null) +> List<KratosSession> ListMySessions (long? perPage = null, long? page = null, long? pageSize = null, string pageToken = null, string xSessionToken = null, string cookie = null) Get My Active Sessions @@ -1643,15 +1649,17 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://localhost"; var apiInstance = new FrontendApi(config); - var perPage = 250L; // long? | Items per Page This is the number of items per page. (optional) (default to 250) - var page = 1L; // long? | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional) (default to 1) + var perPage = 250L; // long? | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional) (default to 250) + var page = 789L; // long? | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + var pageSize = 250L; // long? | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250) + var pageToken = "\"1\""; // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1") var xSessionToken = "xSessionToken_example"; // string | Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) var cookie = "cookie_example"; // string | Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) try { // Get My Active Sessions - List result = apiInstance.ListMySessions(perPage, page, xSessionToken, cookie); + List result = apiInstance.ListMySessions(perPage, page, pageSize, pageToken, xSessionToken, cookie); Debug.WriteLine(result); } catch (ApiException e) @@ -1669,8 +1677,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **perPage** | **long?**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **long?**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] + **perPage** | **long?**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **long?**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **long?**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **string**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"] **xSessionToken** | **string**| Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. | [optional] **cookie** | **string**| Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. | [optional] @@ -1772,11 +1782,11 @@ No authorization required # **ToSession** -> KratosSession ToSession (string xSessionToken = null, string cookie = null) +> KratosSession ToSession (string xSessionToken = null, string cookie = null, string tokenizeAs = null) Check Who the Current HTTP Session Belongs To -Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. +Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. ### Example ```csharp @@ -1797,11 +1807,12 @@ namespace Example var apiInstance = new FrontendApi(config); var xSessionToken = MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj; // string | Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) var cookie = ory_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==; // string | Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + var tokenizeAs = "tokenizeAs_example"; // string | Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) try { // Check Who the Current HTTP Session Belongs To - KratosSession result = apiInstance.ToSession(xSessionToken, cookie); + KratosSession result = apiInstance.ToSession(xSessionToken, cookie, tokenizeAs); Debug.WriteLine(result); } catch (ApiException e) @@ -1821,6 +1832,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **xSessionToken** | **string**| Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. | [optional] **cookie** | **string**| Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. | [optional] + **tokenizeAs** | **string**| Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). | [optional] ### Return type @@ -1852,7 +1864,7 @@ No authorization required Submit a Login Flow -:::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). +Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). ### Example ```csharp @@ -2008,9 +2020,9 @@ No authorization required # **UpdateRecoveryFlow** > KratosRecoveryFlow UpdateRecoveryFlow (string flow, KratosUpdateRecoveryFlowBody kratosUpdateRecoveryFlowBody, string token = null, string cookie = null) -Complete Recovery Flow +Update Recovery Flow -Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). +Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). ### Example ```csharp @@ -2036,7 +2048,7 @@ namespace Example try { - // Complete Recovery Flow + // Update Recovery Flow KratosRecoveryFlow result = apiInstance.UpdateRecoveryFlow(flow, kratosUpdateRecoveryFlowBody, token, cookie); Debug.WriteLine(result); } diff --git a/clients/kratos/dotnet/docs/IdentityApi.md b/clients/kratos/dotnet/docs/IdentityApi.md index a79fa93c63b..2c1a15f85c8 100644 --- a/clients/kratos/dotnet/docs/IdentityApi.md +++ b/clients/kratos/dotnet/docs/IdentityApi.md @@ -263,7 +263,7 @@ Name | Type | Description | Notes # **CreateRecoveryLinkForIdentity** -> KratosRecoveryLinkForIdentity CreateRecoveryLinkForIdentity (KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = null) +> KratosRecoveryLinkForIdentity CreateRecoveryLinkForIdentity (string returnTo = null, KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = null) Create a Recovery Link @@ -291,12 +291,13 @@ namespace Example // config.AddApiKeyPrefix("Authorization", "Bearer"); var apiInstance = new IdentityApi(config); + var returnTo = "returnTo_example"; // string | (optional) var kratosCreateRecoveryLinkForIdentityBody = new KratosCreateRecoveryLinkForIdentityBody(); // KratosCreateRecoveryLinkForIdentityBody | (optional) try { // Create a Recovery Link - KratosRecoveryLinkForIdentity result = apiInstance.CreateRecoveryLinkForIdentity(kratosCreateRecoveryLinkForIdentityBody); + KratosRecoveryLinkForIdentity result = apiInstance.CreateRecoveryLinkForIdentity(returnTo, kratosCreateRecoveryLinkForIdentityBody); Debug.WriteLine(result); } catch (ApiException e) @@ -314,6 +315,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **returnTo** | **string**| | [optional] **kratosCreateRecoveryLinkForIdentityBody** | [**KratosCreateRecoveryLinkForIdentityBody**](KratosCreateRecoveryLinkForIdentityBody.md)| | [optional] ### Return type @@ -448,7 +450,7 @@ namespace Example var apiInstance = new IdentityApi(config); var id = "id_example"; // string | ID is the identity's ID. - var type = "totp"; // string | Type is the credential's Type. One of totp, webauthn, lookup + var type = "password"; // string | Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 try { @@ -471,7 +473,7 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| ID is the identity's ID. | - **type** | **string**| Type is the credential's Type. One of totp, webauthn, lookup | + **type** | **string**| Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 type @@ -967,7 +969,7 @@ Name | Type | Description | Notes # **ListIdentities** -> List<KratosIdentity> ListIdentities (long? perPage = null, long? page = null, string credentialsIdentifier = null) +> List<KratosIdentity> ListIdentities (long? perPage = null, long? page = null, long? pageSize = null, string pageToken = null, string consistency = null, List ids = null, string credentialsIdentifier = null, string previewCredentialsIdentifierSimilar = null) List Identities @@ -995,14 +997,19 @@ namespace Example // config.AddApiKeyPrefix("Authorization", "Bearer"); var apiInstance = new IdentityApi(config); - var perPage = 250L; // long? | Items per Page This is the number of items per page. (optional) (default to 250) - var page = 1L; // long? | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional) (default to 1) - var credentialsIdentifier = "credentialsIdentifier_example"; // string | CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + var perPage = 250L; // long? | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional) (default to 250) + var page = 789L; // long? | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + var pageSize = 250L; // long? | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250) + var pageToken = "\"1\""; // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1") + var consistency = ""; // string | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + var ids = new List(); // List | List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + var credentialsIdentifier = "credentialsIdentifier_example"; // string | CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + var previewCredentialsIdentifierSimilar = "previewCredentialsIdentifierSimilar_example"; // string | This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) try { // List Identities - List result = apiInstance.ListIdentities(perPage, page, credentialsIdentifier); + List result = apiInstance.ListIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar); Debug.WriteLine(result); } catch (ApiException e) @@ -1020,9 +1027,14 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **perPage** | **long?**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **long?**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] - **credentialsIdentifier** | **string**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up. | [optional] + **perPage** | **long?**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **long?**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **long?**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **string**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"] + **consistency** | **string**| Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] + **ids** | [**List<string>**](string.md)| List of ids used to filter identities. If this list is empty, then no filter will be applied. | [optional] + **credentialsIdentifier** | **string**| CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] + **previewCredentialsIdentifierSimilar** | **string**| This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. | [optional] ### Return type @@ -1048,7 +1060,7 @@ Name | Type | Description | Notes # **ListIdentitySchemas** -> List<KratosIdentitySchemaContainer> ListIdentitySchemas (long? perPage = null, long? page = null) +> List<KratosIdentitySchemaContainer> ListIdentitySchemas (long? perPage = null, long? page = null, long? pageSize = null, string pageToken = null) Get all Identity Schemas @@ -1071,13 +1083,15 @@ namespace Example Configuration config = new Configuration(); config.BasePath = "http://localhost"; var apiInstance = new IdentityApi(config); - var perPage = 250L; // long? | Items per Page This is the number of items per page. (optional) (default to 250) - var page = 1L; // long? | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional) (default to 1) + var perPage = 250L; // long? | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional) (default to 250) + var page = 789L; // long? | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + var pageSize = 250L; // long? | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250) + var pageToken = "\"1\""; // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1") try { // Get all Identity Schemas - List result = apiInstance.ListIdentitySchemas(perPage, page); + List result = apiInstance.ListIdentitySchemas(perPage, page, pageSize, pageToken); Debug.WriteLine(result); } catch (ApiException e) @@ -1095,8 +1109,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **perPage** | **long?**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **long?**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] + **perPage** | **long?**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **long?**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **long?**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **string**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"] ### Return type @@ -1122,7 +1138,7 @@ No authorization required # **ListIdentitySessions** -> List<KratosSession> ListIdentitySessions (string id, long? perPage = null, long? page = null, bool? active = null) +> List<KratosSession> ListIdentitySessions (string id, long? perPage = null, long? page = null, long? pageSize = null, string pageToken = null, bool? active = null) List an Identity's Sessions @@ -1151,14 +1167,16 @@ namespace Example var apiInstance = new IdentityApi(config); var id = "id_example"; // string | ID is the identity's ID. - var perPage = 250L; // long? | Items per Page This is the number of items per page. (optional) (default to 250) - var page = 1L; // long? | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional) (default to 1) + var perPage = 250L; // long? | Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional) (default to 250) + var page = 789L; // long? | Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + var pageSize = 250L; // long? | Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to 250) + var pageToken = "\"1\""; // string | Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional) (default to "1") var active = true; // bool? | Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) try { // List an Identity's Sessions - List result = apiInstance.ListIdentitySessions(id, perPage, page, active); + List result = apiInstance.ListIdentitySessions(id, perPage, page, pageSize, pageToken, active); Debug.WriteLine(result); } catch (ApiException e) @@ -1177,8 +1195,10 @@ namespace Example Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **id** | **string**| ID is the identity's ID. | - **perPage** | **long?**| Items per Page This is the number of items per page. | [optional] [default to 250] - **page** | **long?**| Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] + **perPage** | **long?**| Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. | [optional] [default to 250] + **page** | **long?**| Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. | [optional] + **pageSize** | **long?**| Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to 250] + **pageToken** | **string**| Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). | [optional] [default to "1"] **active** | **bool?**| Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. | [optional] ### Return type diff --git a/clients/kratos/dotnet/docs/KratosConsistencyRequestParameters.md b/clients/kratos/dotnet/docs/KratosConsistencyRequestParameters.md new file mode 100644 index 00000000000..cabfb7ca7fc --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosConsistencyRequestParameters.md @@ -0,0 +1,11 @@ +# Ory.Kratos.Client.Model.KratosConsistencyRequestParameters +Control API consistency guarantees + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Consistency** | **string** | Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosContinueWith.md b/clients/kratos/dotnet/docs/KratosContinueWith.md index 15bd298f1d2..f7162aace02 100644 --- a/clients/kratos/dotnet/docs/KratosContinueWith.md +++ b/clients/kratos/dotnet/docs/KratosContinueWith.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Action** | **string** | Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI | -**Flow** | [**KratosContinueWithVerificationUiFlow**](KratosContinueWithVerificationUiFlow.md) | | +**Action** | **string** | Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString | +**Flow** | [**KratosContinueWithRecoveryUiFlow**](KratosContinueWithRecoveryUiFlow.md) | | **OrySessionToken** | **string** | Token is the token of the session | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosContinueWithRecoveryUi.md b/clients/kratos/dotnet/docs/KratosContinueWithRecoveryUi.md new file mode 100644 index 00000000000..8d2f1c98827 --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosContinueWithRecoveryUi.md @@ -0,0 +1,12 @@ +# Ory.Kratos.Client.Model.KratosContinueWithRecoveryUi +Indicates, that the UI flow could be continued by showing a recovery ui + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString | +**Flow** | [**KratosContinueWithRecoveryUiFlow**](KratosContinueWithRecoveryUiFlow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosContinueWithRecoveryUiFlow.md b/clients/kratos/dotnet/docs/KratosContinueWithRecoveryUiFlow.md new file mode 100644 index 00000000000..cc1375c43c4 --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosContinueWithRecoveryUiFlow.md @@ -0,0 +1,11 @@ +# Ory.Kratos.Client.Model.KratosContinueWithRecoveryUiFlow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the recovery flow | +**Url** | **string** | The URL of the recovery flow | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosContinueWithSetOrySessionToken.md b/clients/kratos/dotnet/docs/KratosContinueWithSetOrySessionToken.md index 9ba89a52a45..95476de28dc 100644 --- a/clients/kratos/dotnet/docs/KratosContinueWithSetOrySessionToken.md +++ b/clients/kratos/dotnet/docs/KratosContinueWithSetOrySessionToken.md @@ -5,7 +5,7 @@ Indicates that a session was issued, and the application should use this token f Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Action** | **string** | Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI | +**Action** | **string** | Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString | **OrySessionToken** | **string** | Token is the token of the session | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosContinueWithSettingsUi.md b/clients/kratos/dotnet/docs/KratosContinueWithSettingsUi.md new file mode 100644 index 00000000000..1d7a4b26718 --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosContinueWithSettingsUi.md @@ -0,0 +1,12 @@ +# Ory.Kratos.Client.Model.KratosContinueWithSettingsUi +Indicates, that the UI flow could be continued by showing a settings ui + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Action** | **string** | Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString | +**Flow** | [**KratosContinueWithSettingsUiFlow**](KratosContinueWithSettingsUiFlow.md) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/client/dotnet/docs/ClientIdentityState.md b/clients/kratos/dotnet/docs/KratosContinueWithSettingsUiFlow.md similarity index 71% rename from clients/client/dotnet/docs/ClientIdentityState.md rename to clients/kratos/dotnet/docs/KratosContinueWithSettingsUiFlow.md index 806cfb9e5ca..3991fcafcd1 100644 --- a/clients/client/dotnet/docs/ClientIdentityState.md +++ b/clients/kratos/dotnet/docs/KratosContinueWithSettingsUiFlow.md @@ -1,10 +1,10 @@ -# Ory.Client.Model.ClientIdentityState -The state can either be `active` or `inactive`. +# Ory.Kratos.Client.Model.KratosContinueWithSettingsUiFlow ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Id** | **string** | The ID of the settings flow | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosContinueWithVerificationUi.md b/clients/kratos/dotnet/docs/KratosContinueWithVerificationUi.md index 314ecf1d500..e968bd2cb21 100644 --- a/clients/kratos/dotnet/docs/KratosContinueWithVerificationUi.md +++ b/clients/kratos/dotnet/docs/KratosContinueWithVerificationUi.md @@ -5,7 +5,7 @@ Indicates, that the UI flow could be continued by showing a verification ui Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Action** | **string** | Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI | +**Action** | **string** | Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString | **Flow** | [**KratosContinueWithVerificationUiFlow**](KratosContinueWithVerificationUiFlow.md) | | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosCreateIdentityBody.md b/clients/kratos/dotnet/docs/KratosCreateIdentityBody.md index 70664acdb4e..f996f6b1fbf 100644 --- a/clients/kratos/dotnet/docs/KratosCreateIdentityBody.md +++ b/clients/kratos/dotnet/docs/KratosCreateIdentityBody.md @@ -10,7 +10,7 @@ Name | Type | Description | Notes **MetadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **RecoveryAddresses** | [**List<KratosRecoveryIdentityAddress>**](KratosRecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | -**State** | [**KratosIdentityState**](KratosIdentityState.md) | | [optional] +**State** | **string** | State is the identity's state. active StateActive inactive StateInactive | [optional] **Traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **VerifiableAddresses** | [**List<KratosVerifiableIdentityAddress>**](KratosVerifiableIdentityAddress.md) | VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update. | [optional] diff --git a/clients/kratos/dotnet/docs/KratosIdentity.md b/clients/kratos/dotnet/docs/KratosIdentity.md index 30cf32b12f5..86e82914489 100644 --- a/clients/kratos/dotnet/docs/KratosIdentity.md +++ b/clients/kratos/dotnet/docs/KratosIdentity.md @@ -10,10 +10,11 @@ Name | Type | Description | Notes **Id** | **string** | ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB. | **MetadataAdmin** | **Object** | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] **MetadataPublic** | **Object** | NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable- | [optional] +**OrganizationId** | **string** | | [optional] **RecoveryAddresses** | [**List<KratosRecoveryIdentityAddress>**](KratosRecoveryIdentityAddress.md) | RecoveryAddresses contains all the addresses that can be used to recover an identity. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. | **SchemaUrl** | **string** | SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url | -**State** | [**KratosIdentityState**](KratosIdentityState.md) | | [optional] +**State** | **string** | State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive | [optional] **StateChangedAt** | **DateTime** | | [optional] **Traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. | **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/kratos/dotnet/docs/KratosIdentityCredentials.md b/clients/kratos/dotnet/docs/KratosIdentityCredentials.md index 8fee4084001..c69d0f3f529 100644 --- a/clients/kratos/dotnet/docs/KratosIdentityCredentials.md +++ b/clients/kratos/dotnet/docs/KratosIdentityCredentials.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Config** | **Object** | | [optional] **CreatedAt** | **DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **Identifiers** | **List<string>** | Identifiers represents a list of unique identifiers this credential type matches. | [optional] -**Type** | [**KratosIdentityCredentialsType**](KratosIdentityCredentialsType.md) | | [optional] +**Type** | **string** | Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] **_Version** | **long** | Version refers to the version of the credential. Useful when changing the config schema. | [optional] diff --git a/clients/kratos/dotnet/docs/KratosIdentityCredentialsCode.md b/clients/kratos/dotnet/docs/KratosIdentityCredentialsCode.md new file mode 100644 index 00000000000..d382e41c696 --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosIdentityCredentialsCode.md @@ -0,0 +1,12 @@ +# Ory.Kratos.Client.Model.KratosIdentityCredentialsCode +CredentialsCode represents a one time login/registration code + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**AddressType** | **string** | The type of the address for this code | [optional] +**UsedAt** | **DateTime?** | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosIdentityCredentialsOidcProvider.md b/clients/kratos/dotnet/docs/KratosIdentityCredentialsOidcProvider.md index 4ad2f90a7a7..51e78769a52 100644 --- a/clients/kratos/dotnet/docs/KratosIdentityCredentialsOidcProvider.md +++ b/clients/kratos/dotnet/docs/KratosIdentityCredentialsOidcProvider.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **InitialAccessToken** | **string** | | [optional] **InitialIdToken** | **string** | | [optional] **InitialRefreshToken** | **string** | | [optional] +**Organization** | **string** | | [optional] **Provider** | **string** | | [optional] **Subject** | **string** | | [optional] diff --git a/clients/kratos/dotnet/docs/KratosIdentityCredentialsType.md b/clients/kratos/dotnet/docs/KratosIdentityCredentialsType.md deleted file mode 100644 index afed93e8ee1..00000000000 --- a/clients/kratos/dotnet/docs/KratosIdentityCredentialsType.md +++ /dev/null @@ -1,10 +0,0 @@ -# Ory.Kratos.Client.Model.KratosIdentityCredentialsType -and so on. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/clients/kratos/dotnet/docs/KratosIdentityState.md b/clients/kratos/dotnet/docs/KratosIdentityState.md deleted file mode 100644 index 3298a967770..00000000000 --- a/clients/kratos/dotnet/docs/KratosIdentityState.md +++ /dev/null @@ -1,10 +0,0 @@ -# Ory.Kratos.Client.Model.KratosIdentityState -The state can either be `active` or `inactive`. - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/clients/kratos/dotnet/docs/KratosIdentityWithCredentialsPasswordConfig.md b/clients/kratos/dotnet/docs/KratosIdentityWithCredentialsPasswordConfig.md index 75b006aa3a2..dec89d1fb16 100644 --- a/clients/kratos/dotnet/docs/KratosIdentityWithCredentialsPasswordConfig.md +++ b/clients/kratos/dotnet/docs/KratosIdentityWithCredentialsPasswordConfig.md @@ -5,7 +5,7 @@ Create Identity and Import Password Credentials Configuration Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**HashedPassword** | **string** | The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) | [optional] +**HashedPassword** | **string** | The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) | [optional] **Password** | **string** | The password in plain text if no hash is available. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosLoginFlow.md b/clients/kratos/dotnet/docs/KratosLoginFlow.md index 104691aa693..435c9b8cec3 100644 --- a/clients/kratos/dotnet/docs/KratosLoginFlow.md +++ b/clients/kratos/dotnet/docs/KratosLoginFlow.md @@ -5,18 +5,20 @@ This object represents a login flow. A login flow is initiated at the \"Initiate Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | [**KratosIdentityCredentialsType**](KratosIdentityCredentialsType.md) | | [optional] +**Active** | **string** | The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **CreatedAt** | **DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | [optional] **ExpiresAt** | **DateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **Id** | **string** | ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> | **IssuedAt** | **DateTime** | IssuedAt is the time (UTC) when the flow started. | **Oauth2LoginChallenge** | **string** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional] **Oauth2LoginRequest** | [**KratosOAuth2LoginRequest**](KratosOAuth2LoginRequest.md) | | [optional] +**OrganizationId** | **string** | | [optional] **Refresh** | **bool** | Refresh stores whether this login flow should enforce re-authentication. | [optional] **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **RequestedAal** | [**KratosAuthenticatorAssuranceLevel**](KratosAuthenticatorAssuranceLevel.md) | | [optional] **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **SessionTokenExchangeCode** | **string** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow. | [optional] +**State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. | **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**KratosUiContainer**](KratosUiContainer.md) | | **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | [optional] diff --git a/clients/kratos/dotnet/docs/KratosLoginFlowState.md b/clients/kratos/dotnet/docs/KratosLoginFlowState.md new file mode 100644 index 00000000000..e917fe147ca --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosLoginFlowState.md @@ -0,0 +1,10 @@ +# Ory.Kratos.Client.Model.KratosLoginFlowState +The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosMessage.md b/clients/kratos/dotnet/docs/KratosMessage.md index 45e82e38c80..570cbb73587 100644 --- a/clients/kratos/dotnet/docs/KratosMessage.md +++ b/clients/kratos/dotnet/docs/KratosMessage.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Body** | **string** | | +**Channel** | **string** | | [optional] **CreatedAt** | **DateTime** | CreatedAt is a helper struct field for gobuffalo.pop. | **Dispatches** | [**List<KratosMessageDispatch>**](KratosMessageDispatch.md) | Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the `success` state. | [optional] **Id** | **string** | | @@ -12,7 +13,7 @@ Name | Type | Description | Notes **SendCount** | **long** | | **Status** | [**KratosCourierMessageStatus**](KratosCourierMessageStatus.md) | | **Subject** | **string** | | -**TemplateType** | **string** | recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub | +**TemplateType** | **string** | recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid | **Type** | [**KratosCourierMessageType**](KratosCourierMessageType.md) | | **UpdatedAt** | **DateTime** | UpdatedAt is a helper struct field for gobuffalo.pop. | diff --git a/clients/kratos/dotnet/docs/KratosOAuth2Client.md b/clients/kratos/dotnet/docs/KratosOAuth2Client.md index b0d48bc75ac..2b5783587de 100644 --- a/clients/kratos/dotnet/docs/KratosOAuth2Client.md +++ b/clients/kratos/dotnet/docs/KratosOAuth2Client.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**AccessTokenStrategy** | **string** | OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. | [optional] **AllowedCorsOrigins** | **List<string>** | | [optional] **Audience** | **List<string>** | | [optional] **AuthorizationCodeGrantAccessTokenLifespan** | **string** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] @@ -12,7 +13,7 @@ Name | Type | Description | Notes **BackchannelLogoutSessionRequired** | **bool** | OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false. | [optional] **BackchannelLogoutUri** | **string** | OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP. | [optional] **ClientCredentialsGrantAccessTokenLifespan** | **string** | Specify a time duration in milliseconds, seconds, minutes, hours. | [optional] -**ClientId** | **string** | OAuth 2.0 Client ID The ID is autogenerated and immutable. | [optional] +**ClientId** | **string** | OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. | [optional] **ClientName** | **string** | OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization. | [optional] **ClientSecret** | **string** | OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost. | [optional] **ClientSecretExpiresAt** | **long** | OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0. | [optional] @@ -43,8 +44,10 @@ Name | Type | Description | Notes **ResponseTypes** | **List<string>** | | [optional] **Scope** | **string** | OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens. | [optional] **SectorIdentifierUri** | **string** | OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values. | [optional] +**SkipConsent** | **bool** | SkipConsent skips the consent screen for this client. This field can only be set from the admin API. | [optional] +**SkipLogoutConsent** | **bool** | SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. | [optional] **SubjectType** | **string** | OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. | [optional] -**TokenEndpointAuthMethod** | **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] +**TokenEndpointAuthMethod** | **string** | OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. | [optional] **TokenEndpointAuthSigningAlg** | **string** | OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint. | [optional] **TosUri** | **string** | OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client. | [optional] **UpdatedAt** | **DateTime** | OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update. | [optional] diff --git a/clients/kratos/dotnet/docs/KratosPagination.md b/clients/kratos/dotnet/docs/KratosPagination.md deleted file mode 100644 index 618cb267cef..00000000000 --- a/clients/kratos/dotnet/docs/KratosPagination.md +++ /dev/null @@ -1,11 +0,0 @@ -# Ory.Kratos.Client.Model.KratosPagination - -## Properties - -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**Page** | **long** | Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. | [optional] [default to 1] -**PerPage** | **long** | Items per Page This is the number of items per page. | [optional] [default to 250] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - diff --git a/clients/kratos/dotnet/docs/KratosRecoveryCodeForIdentity.md b/clients/kratos/dotnet/docs/KratosRecoveryCodeForIdentity.md index bbf7efb6f6b..57d97985b5d 100644 --- a/clients/kratos/dotnet/docs/KratosRecoveryCodeForIdentity.md +++ b/clients/kratos/dotnet/docs/KratosRecoveryCodeForIdentity.md @@ -5,7 +5,7 @@ Used when an administrator creates a recovery code for an identity. Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ExpiresAt** | **DateTime** | Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. | [optional] +**ExpiresAt** | **DateTime** | Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. | [optional] **RecoveryCode** | **string** | RecoveryCode is the code that can be used to recover the account | **RecoveryLink** | **string** | RecoveryLink with flow This link opens the recovery UI with an empty `code` field. | diff --git a/clients/kratos/dotnet/docs/KratosRecoveryFlow.md b/clients/kratos/dotnet/docs/KratosRecoveryFlow.md index 60e3d1c0030..5c04ddbe4b3 100644 --- a/clients/kratos/dotnet/docs/KratosRecoveryFlow.md +++ b/clients/kratos/dotnet/docs/KratosRecoveryFlow.md @@ -6,12 +6,13 @@ This request is used when an identity wants to recover their account. We recomm Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Active** | **string** | Active, if set, contains the recovery method that is being used. It is initially not set. | [optional] +**ContinueWith** | [**List<KratosContinueWith>**](KratosContinueWith.md) | Contains possible actions that could follow this flow | [optional] **ExpiresAt** | **DateTime** | ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. | **Id** | **string** | ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://<selfservice.flows.recovery.ui_url>?request=<id> | **IssuedAt** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. | **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] -**State** | [**KratosRecoveryFlowState**](KratosRecoveryFlowState.md) | | +**State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. | **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**KratosUiContainer**](KratosUiContainer.md) | | diff --git a/clients/kratos/dotnet/docs/KratosRegistrationFlow.md b/clients/kratos/dotnet/docs/KratosRegistrationFlow.md index 2ea99570c5b..c2f04cce8fd 100644 --- a/clients/kratos/dotnet/docs/KratosRegistrationFlow.md +++ b/clients/kratos/dotnet/docs/KratosRegistrationFlow.md @@ -4,15 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Active** | [**KratosIdentityCredentialsType**](KratosIdentityCredentialsType.md) | | [optional] +**Active** | **string** | Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 | [optional] **ExpiresAt** | **DateTime** | ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. | **Id** | **string** | ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> | **IssuedAt** | **DateTime** | IssuedAt is the time (UTC) when the flow occurred. | **Oauth2LoginChallenge** | **string** | Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. | [optional] **Oauth2LoginRequest** | [**KratosOAuth2LoginRequest**](KratosOAuth2LoginRequest.md) | | [optional] +**OrganizationId** | **string** | | [optional] **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] **SessionTokenExchangeCode** | **string** | SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the flow. | [optional] +**State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. | **TransientPayload** | **Object** | TransientPayload is used to pass data from the registration to a webhook | [optional] **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**KratosUiContainer**](KratosUiContainer.md) | | diff --git a/clients/kratos/dotnet/docs/KratosRegistrationFlowState.md b/clients/kratos/dotnet/docs/KratosRegistrationFlowState.md new file mode 100644 index 00000000000..836b21f54f3 --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosRegistrationFlowState.md @@ -0,0 +1,10 @@ +# Ory.Kratos.Client.Model.KratosRegistrationFlowState +choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosSession.md b/clients/kratos/dotnet/docs/KratosSession.md index 7425ae3ec27..02894e55f12 100644 --- a/clients/kratos/dotnet/docs/KratosSession.md +++ b/clients/kratos/dotnet/docs/KratosSession.md @@ -12,8 +12,9 @@ Name | Type | Description | Notes **Devices** | [**List<KratosSessionDevice>**](KratosSessionDevice.md) | Devices has history of all endpoints where the session was used | [optional] **ExpiresAt** | **DateTime** | The Session Expiry When this session expires at. | [optional] **Id** | **string** | Session ID | -**Identity** | [**KratosIdentity**](KratosIdentity.md) | | +**Identity** | [**KratosIdentity**](KratosIdentity.md) | | [optional] **IssuedAt** | **DateTime** | The Session Issuance Timestamp When this session was issued at. Usually equal or close to `authenticated_at`. | [optional] +**Tokenized** | **string** | Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosSessionAuthenticationMethod.md b/clients/kratos/dotnet/docs/KratosSessionAuthenticationMethod.md index d8920e5217d..14977d1c01a 100644 --- a/clients/kratos/dotnet/docs/KratosSessionAuthenticationMethod.md +++ b/clients/kratos/dotnet/docs/KratosSessionAuthenticationMethod.md @@ -8,6 +8,7 @@ Name | Type | Description | Notes **Aal** | [**KratosAuthenticatorAssuranceLevel**](KratosAuthenticatorAssuranceLevel.md) | | [optional] **CompletedAt** | **DateTime** | When the authentication challenge was completed. | [optional] **Method** | **string** | | [optional] +**Organization** | **string** | The Organization id used for authentication | [optional] **Provider** | **string** | OIDC or SAML provider id used for authentication | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosSettingsFlow.md b/clients/kratos/dotnet/docs/KratosSettingsFlow.md index 239c7e248c8..6e5ab184044 100644 --- a/clients/kratos/dotnet/docs/KratosSettingsFlow.md +++ b/clients/kratos/dotnet/docs/KratosSettingsFlow.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **IssuedAt** | **DateTime** | IssuedAt is the time (UTC) when the flow occurred. | **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] -**State** | [**KratosSettingsFlowState**](KratosSettingsFlowState.md) | | +**State** | **Object** | State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. | **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**KratosUiContainer**](KratosUiContainer.md) | | diff --git a/clients/kratos/dotnet/docs/KratosUpdateIdentityBody.md b/clients/kratos/dotnet/docs/KratosUpdateIdentityBody.md index 2acd345fbfe..3c97fcbb49d 100644 --- a/clients/kratos/dotnet/docs/KratosUpdateIdentityBody.md +++ b/clients/kratos/dotnet/docs/KratosUpdateIdentityBody.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **MetadataAdmin** | **Object** | Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`. | [optional] **MetadataPublic** | **Object** | Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field. | [optional] **SchemaId** | **string** | SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. | -**State** | [**KratosIdentityState**](KratosIdentityState.md) | | +**State** | **string** | State is the identity's state. active StateActive inactive StateInactive | **Traits** | **Object** | Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosUpdateLoginFlowBody.md b/clients/kratos/dotnet/docs/KratosUpdateLoginFlowBody.md index e881478e589..452cccc861a 100644 --- a/clients/kratos/dotnet/docs/KratosUpdateLoginFlowBody.md +++ b/clients/kratos/dotnet/docs/KratosUpdateLoginFlowBody.md @@ -4,17 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CsrfToken** | **string** | Sending the anti-csrf token is only required for browser login flows. | [optional] -**Identifier** | **string** | Identifier is the email or username of the user trying to log in. | -**Method** | **string** | Method should be set to \"lookup_secret\" when logging in using the lookup_secret strategy. | +**CsrfToken** | **string** | CSRFToken is the anti-CSRF token | +**Identifier** | **string** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | +**Method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | **Password** | **string** | The user's password. | **PasswordIdentifier** | **string** | Identifier is the email or username of the user trying to log in. This field is deprecated! | [optional] +**IdToken** | **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**IdTokenNonce** | **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **Provider** | **string** | The provider to register with | **Traits** | **Object** | The identity traits. This is a placeholder for the registration flow. | [optional] **UpstreamParameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] **TotpCode** | **string** | The TOTP code. | **WebauthnLogin** | **string** | Login a WebAuthn Security Key This must contain the ID of the WebAuthN connection. | [optional] **LookupSecret** | **string** | The lookup secret. | +**Code** | **string** | Code is the 6 digits code sent to the user | [optional] +**Resend** | **string** | Resend is set when the user wants to resend the code | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithCodeMethod.md b/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithCodeMethod.md new file mode 100644 index 00000000000..59a55db411f --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithCodeMethod.md @@ -0,0 +1,15 @@ +# Ory.Kratos.Client.Model.KratosUpdateLoginFlowWithCodeMethod +Update Login flow using the code method + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | Code is the 6 digits code sent to the user | [optional] +**CsrfToken** | **string** | CSRFToken is the anti-CSRF token | +**Identifier** | **string** | Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. | [optional] +**Method** | **string** | Method should be set to \"code\" when logging in using the code strategy. | +**Resend** | **string** | Resend is set when the user wants to resend the code | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithOidcMethod.md b/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithOidcMethod.md index 141c231c488..1c1474a30a6 100644 --- a/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithOidcMethod.md +++ b/clients/kratos/dotnet/docs/KratosUpdateLoginFlowWithOidcMethod.md @@ -6,6 +6,8 @@ Update Login Flow with OpenID Connect Method Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CsrfToken** | **string** | The CSRF Token | [optional] +**IdToken** | **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**IdTokenNonce** | **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. | [optional] **Method** | **string** | Method to use This field must be set to `oidc` when using the oidc method. | **Provider** | **string** | The provider to register with | **Traits** | **Object** | The identity traits. This is a placeholder for the registration flow. | [optional] diff --git a/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowBody.md b/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowBody.md index 9ca395de006..196859584e3 100644 --- a/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowBody.md +++ b/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowBody.md @@ -5,15 +5,19 @@ Update Registration Request Body Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**CsrfToken** | **string** | CSRFToken is the anti-CSRF token | [optional] -**Method** | **string** | Method Should be set to \"webauthn\" when trying to add, update, or remove a webAuthn pairing. | +**CsrfToken** | **string** | The CSRF Token | [optional] +**Method** | **string** | Method to use This field must be set to `code` when using the code method. | **Password** | **string** | Password to sign the user up with | **Traits** | **Object** | The identity's traits | **TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] +**IdToken** | **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**IdTokenNonce** | **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. | [optional] **Provider** | **string** | The provider to register with | **UpstreamParameters** | **Object** | UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`. | [optional] **WebauthnRegister** | **string** | Register a WebAuthn Security Key It is expected that the JSON returned by the WebAuthn registration process is included here. | [optional] **WebauthnRegisterDisplayname** | **string** | Name of the WebAuthn Security Key to be Added A human-readable name for the security key which will be added. | [optional] +**Code** | **string** | The OTP Code sent to the user | [optional] +**Resend** | **string** | Resend restarts the flow with a new code | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithCodeMethod.md b/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithCodeMethod.md new file mode 100644 index 00000000000..45ea6caa0eb --- /dev/null +++ b/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithCodeMethod.md @@ -0,0 +1,16 @@ +# Ory.Kratos.Client.Model.KratosUpdateRegistrationFlowWithCodeMethod +Update Registration Flow with Code Method + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Code** | **string** | The OTP Code sent to the user | [optional] +**CsrfToken** | **string** | The CSRF Token | [optional] +**Method** | **string** | Method to use This field must be set to `code` when using the code method. | +**Resend** | **string** | Resend restarts the flow with a new code | [optional] +**Traits** | **Object** | The identity's traits | +**TransientPayload** | **Object** | Transient data to pass along to any webhooks | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + diff --git a/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithOidcMethod.md b/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithOidcMethod.md index 64e67d0769e..4b6da481356 100644 --- a/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithOidcMethod.md +++ b/clients/kratos/dotnet/docs/KratosUpdateRegistrationFlowWithOidcMethod.md @@ -6,6 +6,8 @@ Update Registration Flow with OpenID Connect Method Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **CsrfToken** | **string** | The CSRF Token | [optional] +**IdToken** | **string** | IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple | [optional] +**IdTokenNonce** | **string** | IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. | [optional] **Method** | **string** | Method to use This field must be set to `oidc` when using the oidc method. | **Provider** | **string** | The provider to register with | **Traits** | **Object** | The identity traits | [optional] diff --git a/clients/kratos/dotnet/docs/KratosVerifiableIdentityAddress.md b/clients/kratos/dotnet/docs/KratosVerifiableIdentityAddress.md index 38bcb2fc981..3daffeab9c4 100644 --- a/clients/kratos/dotnet/docs/KratosVerifiableIdentityAddress.md +++ b/clients/kratos/dotnet/docs/KratosVerifiableIdentityAddress.md @@ -12,7 +12,7 @@ Name | Type | Description | Notes **Value** | **string** | The address value example foo@user.com | **Verified** | **bool** | Indicates if the address has already been verified | **VerifiedAt** | **DateTime** | | [optional] -**Via** | **string** | VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema | +**Via** | **string** | The delivery method | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/clients/kratos/dotnet/docs/KratosVerificationFlow.md b/clients/kratos/dotnet/docs/KratosVerificationFlow.md index c6c24eed66e..07218882fd7 100644 --- a/clients/kratos/dotnet/docs/KratosVerificationFlow.md +++ b/clients/kratos/dotnet/docs/KratosVerificationFlow.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **IssuedAt** | **DateTime** | IssuedAt is the time (UTC) when the request occurred. | [optional] **RequestUrl** | **string** | RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. | [optional] **ReturnTo** | **string** | ReturnTo contains the requested return_to URL. | [optional] -**State** | [**KratosVerificationFlowState**](KratosVerificationFlowState.md) | | +**State** | **Object** | State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. | **Type** | **string** | The flow type can either be `api` or `browser`. | **Ui** | [**KratosUiContainer**](KratosUiContainer.md) | | diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/CourierApiTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/CourierApiTests.cs index c9f8af92532..75bab3c5d8b 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/CourierApiTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/CourierApiTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/FrontendApiTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/FrontendApiTests.cs index 57adc59ed13..d8f92e00acc 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/FrontendApiTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/FrontendApiTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -67,7 +67,8 @@ public void CreateBrowserLoginFlowTest() //string returnTo = null; //string cookie = null; //string loginChallenge = null; - //var response = instance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge); + //string organization = null; + //var response = instance.CreateBrowserLoginFlow(refresh, aal, returnTo, cookie, loginChallenge, organization); //Assert.IsType(response); } @@ -106,7 +107,8 @@ public void CreateBrowserRegistrationFlowTest() //string returnTo = null; //string loginChallenge = null; //string afterVerificationReturnTo = null; - //var response = instance.CreateBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo); + //string organization = null; + //var response = instance.CreateBrowserRegistrationFlow(returnTo, loginChallenge, afterVerificationReturnTo, organization); //Assert.IsType(response); } @@ -147,7 +149,8 @@ public void CreateNativeLoginFlowTest() //string xSessionToken = null; //bool? returnSessionTokenExchangeCode = null; //string returnTo = null; - //var response = instance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + //string via = null; + //var response = instance.CreateNativeLoginFlow(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); //Assert.IsType(response); } @@ -335,9 +338,11 @@ public void ListMySessionsTest() // TODO uncomment below to test the method and replace null with proper value //long? perPage = null; //long? page = null; + //long? pageSize = null; + //string pageToken = null; //string xSessionToken = null; //string cookie = null; - //var response = instance.ListMySessions(perPage, page, xSessionToken, cookie); + //var response = instance.ListMySessions(perPage, page, pageSize, pageToken, xSessionToken, cookie); //Assert.IsType>(response); } @@ -361,7 +366,8 @@ public void ToSessionTest() // TODO uncomment below to test the method and replace null with proper value //string xSessionToken = null; //string cookie = null; - //var response = instance.ToSession(xSessionToken, cookie); + //string tokenizeAs = null; + //var response = instance.ToSession(xSessionToken, cookie, tokenizeAs); //Assert.IsType(response); } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/IdentityApiTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/IdentityApiTests.cs index 7626d80344c..c293a49ca73 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/IdentityApiTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/IdentityApiTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,8 +98,9 @@ public void CreateRecoveryCodeForIdentityTest() public void CreateRecoveryLinkForIdentityTest() { // TODO uncomment below to test the method and replace null with proper value + //string returnTo = null; //KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = null; - //var response = instance.CreateRecoveryLinkForIdentity(kratosCreateRecoveryLinkForIdentityBody); + //var response = instance.CreateRecoveryLinkForIdentity(returnTo, kratosCreateRecoveryLinkForIdentityBody); //Assert.IsType(response); } @@ -207,8 +208,13 @@ public void ListIdentitiesTest() // TODO uncomment below to test the method and replace null with proper value //long? perPage = null; //long? page = null; + //long? pageSize = null; + //string pageToken = null; + //string consistency = null; + //List ids = null; //string credentialsIdentifier = null; - //var response = instance.ListIdentities(perPage, page, credentialsIdentifier); + //string previewCredentialsIdentifierSimilar = null; + //var response = instance.ListIdentities(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar); //Assert.IsType>(response); } @@ -221,7 +227,9 @@ public void ListIdentitySchemasTest() // TODO uncomment below to test the method and replace null with proper value //long? perPage = null; //long? page = null; - //var response = instance.ListIdentitySchemas(perPage, page); + //long? pageSize = null; + //string pageToken = null; + //var response = instance.ListIdentitySchemas(perPage, page, pageSize, pageToken); //Assert.IsType>(response); } @@ -235,8 +243,10 @@ public void ListIdentitySessionsTest() //string id = null; //long? perPage = null; //long? page = null; + //long? pageSize = null; + //string pageToken = null; //bool? active = null; - //var response = instance.ListIdentitySessions(id, perPage, page, active); + //var response = instance.ListIdentitySessions(id, perPage, page, pageSize, pageToken, active); //Assert.IsType>(response); } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/MetadataApiTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/MetadataApiTests.cs index 9cf160920ef..4de71e4bfe5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/MetadataApiTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Api/MetadataApiTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosAuthenticatorAssuranceLevelTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosAuthenticatorAssuranceLevelTests.cs index c78f0947cfc..add8b59b10d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosAuthenticatorAssuranceLevelTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosAuthenticatorAssuranceLevelTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosBatchPatchIdentitiesResponseTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosBatchPatchIdentitiesResponseTests.cs index df8115c1db2..83f354dfafa 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosBatchPatchIdentitiesResponseTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosBatchPatchIdentitiesResponseTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosConsistencyRequestParametersTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosConsistencyRequestParametersTests.cs new file mode 100644 index 00000000000..95b52037dd0 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosConsistencyRequestParametersTests.cs @@ -0,0 +1,71 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosConsistencyRequestParameters + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosConsistencyRequestParametersTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosConsistencyRequestParameters + //private KratosConsistencyRequestParameters instance; + + public KratosConsistencyRequestParametersTests() + { + // TODO uncomment below to create an instance of KratosConsistencyRequestParameters + //instance = new KratosConsistencyRequestParameters(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosConsistencyRequestParameters + /// + [Fact] + public void KratosConsistencyRequestParametersInstanceTest() + { + // TODO uncomment below to test "IsType" KratosConsistencyRequestParameters + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Consistency' + /// + [Fact] + public void ConsistencyTest() + { + // TODO unit test for the property 'Consistency' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiFlowTests.cs new file mode 100644 index 00000000000..30b3c9355bf --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiFlowTests.cs @@ -0,0 +1,79 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosContinueWithRecoveryUiFlow + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosContinueWithRecoveryUiFlowTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosContinueWithRecoveryUiFlow + //private KratosContinueWithRecoveryUiFlow instance; + + public KratosContinueWithRecoveryUiFlowTests() + { + // TODO uncomment below to create an instance of KratosContinueWithRecoveryUiFlow + //instance = new KratosContinueWithRecoveryUiFlow(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosContinueWithRecoveryUiFlow + /// + [Fact] + public void KratosContinueWithRecoveryUiFlowInstanceTest() + { + // TODO uncomment below to test "IsType" KratosContinueWithRecoveryUiFlow + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + /// + /// Test the property 'Url' + /// + [Fact] + public void UrlTest() + { + // TODO unit test for the property 'Url' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPaginationTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiTests.cs similarity index 60% rename from clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPaginationTests.cs rename to clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiTests.cs index 73379b5a28b..39a99e6bb7d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPaginationTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithRecoveryUiTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Kratos.Client.Test.Model { /// - /// Class for testing KratosPagination + /// Class for testing KratosContinueWithRecoveryUi /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class KratosPaginationTests : IDisposable + public class KratosContinueWithRecoveryUiTests : IDisposable { - // TODO uncomment below to declare an instance variable for KratosPagination - //private KratosPagination instance; + // TODO uncomment below to declare an instance variable for KratosContinueWithRecoveryUi + //private KratosContinueWithRecoveryUi instance; - public KratosPaginationTests() + public KratosContinueWithRecoveryUiTests() { - // TODO uncomment below to create an instance of KratosPagination - //instance = new KratosPagination(); + // TODO uncomment below to create an instance of KratosContinueWithRecoveryUi + //instance = new KratosContinueWithRecoveryUi(); } public void Dispose() @@ -47,31 +47,31 @@ public void Dispose() } /// - /// Test an instance of KratosPagination + /// Test an instance of KratosContinueWithRecoveryUi /// [Fact] - public void KratosPaginationInstanceTest() + public void KratosContinueWithRecoveryUiInstanceTest() { - // TODO uncomment below to test "IsType" KratosPagination - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" KratosContinueWithRecoveryUi + //Assert.IsType(instance); } /// - /// Test the property 'Page' + /// Test the property 'Action' /// [Fact] - public void PageTest() + public void ActionTest() { - // TODO unit test for the property 'Page' + // TODO unit test for the property 'Action' } /// - /// Test the property 'PerPage' + /// Test the property 'Flow' /// [Fact] - public void PerPageTest() + public void FlowTest() { - // TODO unit test for the property 'PerPage' + // TODO unit test for the property 'Flow' } } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSetOrySessionTokenTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSetOrySessionTokenTests.cs index 53e34009043..b8611f18abe 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSetOrySessionTokenTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSetOrySessionTokenTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiFlowTests.cs new file mode 100644 index 00000000000..a57143e944a --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiFlowTests.cs @@ -0,0 +1,71 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosContinueWithSettingsUiFlow + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosContinueWithSettingsUiFlowTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosContinueWithSettingsUiFlow + //private KratosContinueWithSettingsUiFlow instance; + + public KratosContinueWithSettingsUiFlowTests() + { + // TODO uncomment below to create an instance of KratosContinueWithSettingsUiFlow + //instance = new KratosContinueWithSettingsUiFlow(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosContinueWithSettingsUiFlow + /// + [Fact] + public void KratosContinueWithSettingsUiFlowInstanceTest() + { + // TODO uncomment below to test "IsType" KratosContinueWithSettingsUiFlow + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Id' + /// + [Fact] + public void IdTest() + { + // TODO unit test for the property 'Id' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiTests.cs new file mode 100644 index 00000000000..f574cb5cc3c --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithSettingsUiTests.cs @@ -0,0 +1,79 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosContinueWithSettingsUi + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosContinueWithSettingsUiTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosContinueWithSettingsUi + //private KratosContinueWithSettingsUi instance; + + public KratosContinueWithSettingsUiTests() + { + // TODO uncomment below to create an instance of KratosContinueWithSettingsUi + //instance = new KratosContinueWithSettingsUi(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosContinueWithSettingsUi + /// + [Fact] + public void KratosContinueWithSettingsUiInstanceTest() + { + // TODO uncomment below to test "IsType" KratosContinueWithSettingsUi + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Action' + /// + [Fact] + public void ActionTest() + { + // TODO unit test for the property 'Action' + } + /// + /// Test the property 'Flow' + /// + [Fact] + public void FlowTest() + { + // TODO unit test for the property 'Flow' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithTests.cs index e929938b97a..12aa54999f5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiFlowTests.cs index 8b87a46fe26..6acc8022e26 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiTests.cs index 494b5a6b93d..fe073438f71 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosContinueWithVerificationUiTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageStatusTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageStatusTests.cs index 4a82b11e9b2..1fdfb26854b 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageStatusTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageStatusTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageTypeTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageTypeTests.cs index 942e4d0f0aa..9298fc6fc16 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageTypeTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCourierMessageTypeTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateIdentityBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateIdentityBodyTests.cs index 441abbbcd6d..baeef8da1ef 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateIdentityBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryCodeForIdentityBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryCodeForIdentityBodyTests.cs index 6c2b249dedb..95685ad2ef4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryCodeForIdentityBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryCodeForIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryLinkForIdentityBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryLinkForIdentityBodyTests.cs index c800a26ebbf..583e3f2e00f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryLinkForIdentityBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosCreateRecoveryLinkForIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosDeleteMySessionsCountTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosDeleteMySessionsCountTests.cs index c0d86592381..9bbfce50a68 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosDeleteMySessionsCountTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosDeleteMySessionsCountTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs index 9517ec32fb3..45670fed246 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfiedTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorBrowserLocationChangeRequiredTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorBrowserLocationChangeRequiredTests.cs index 6cc28859937..7ce91e9136c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorBrowserLocationChangeRequiredTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorBrowserLocationChangeRequiredTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorFlowReplacedTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorFlowReplacedTests.cs index 0800d0f96a2..22419bd58bb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorFlowReplacedTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorFlowReplacedTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorGenericTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorGenericTests.cs index 912df94011a..d0b056ac0b5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorGenericTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosErrorGenericTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosFlowErrorTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosFlowErrorTests.cs index 4a4e8e38136..1c6a87a8289 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosFlowErrorTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosFlowErrorTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosGenericErrorTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosGenericErrorTests.cs index 322c7ba91e3..70e3ca2b23d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosGenericErrorTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosGenericErrorTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthNotReadyStatusTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthNotReadyStatusTests.cs index 9fd32ab9098..5869e27c36f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthNotReadyStatusTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthNotReadyStatusTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthStatusTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthStatusTests.cs index bf3b2b54c49..ab7bafc6229 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthStatusTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosHealthStatusTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsCodeTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsCodeTests.cs new file mode 100644 index 00000000000..02a4856c4a6 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsCodeTests.cs @@ -0,0 +1,79 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosIdentityCredentialsCode + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosIdentityCredentialsCodeTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosIdentityCredentialsCode + //private KratosIdentityCredentialsCode instance; + + public KratosIdentityCredentialsCodeTests() + { + // TODO uncomment below to create an instance of KratosIdentityCredentialsCode + //instance = new KratosIdentityCredentialsCode(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosIdentityCredentialsCode + /// + [Fact] + public void KratosIdentityCredentialsCodeInstanceTest() + { + // TODO uncomment below to test "IsType" KratosIdentityCredentialsCode + //Assert.IsType(instance); + } + + + /// + /// Test the property 'AddressType' + /// + [Fact] + public void AddressTypeTest() + { + // TODO unit test for the property 'AddressType' + } + /// + /// Test the property 'UsedAt' + /// + [Fact] + public void UsedAtTest() + { + // TODO unit test for the property 'UsedAt' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcProviderTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcProviderTests.cs index 663ca063452..400e7360642 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcProviderTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcProviderTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,6 +82,14 @@ public void InitialRefreshTokenTest() // TODO unit test for the property 'InitialRefreshToken' } /// + /// Test the property 'Organization' + /// + [Fact] + public void OrganizationTest() + { + // TODO unit test for the property 'Organization' + } + /// /// Test the property 'Provider' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcTests.cs index 13bcbc51dc9..1bc79a01a61 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsOidcTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsPasswordTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsPasswordTests.cs index 5c18aeedbd0..36dd5a684c1 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsPasswordTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsPasswordTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTests.cs index dcdfd27effe..7f147c5c695 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchResponseTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchResponseTests.cs index ab73b6f90ec..ef29a590a5f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchResponseTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchResponseTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchTests.cs index eaa3a46d0cd..ab7f8d414a4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityPatchTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentitySchemaContainerTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentitySchemaContainerTests.cs index 04bf0b8965b..9d7e5819588 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentitySchemaContainerTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentitySchemaContainerTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityTests.cs index fb6131b747f..f6da0d43cc0 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,6 +98,14 @@ public void MetadataPublicTest() // TODO unit test for the property 'MetadataPublic' } /// + /// Test the property 'OrganizationId' + /// + [Fact] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// /// Test the property 'RecoveryAddresses' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigProviderTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigProviderTests.cs index bf6db5c37e2..90e7740d522 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigProviderTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigProviderTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigTests.cs index 8b7234f3bf3..46b40694fa2 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcConfigTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcTests.cs index 17339f909d5..7a5c75c441f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsOidcTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordConfigTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordConfigTests.cs index 73b2842f6e1..d2f8eb59091 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordConfigTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordConfigTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordTests.cs index 770d484e9b4..7d57ebfb5b3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsPasswordTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsTests.cs index 9fd1ba08598..c03f5e48eb0 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityWithCredentialsTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse2001Tests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse2001Tests.cs index 9aff3f54073..b17d2e57c37 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse2001Tests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse2001Tests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse200Tests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse200Tests.cs index 7d74454cb3a..34ec8f9b5f2 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse200Tests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse200Tests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse503Tests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse503Tests.cs index a4f61bbccd9..33c83d3e5a0 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse503Tests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosInlineResponse503Tests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosJsonPatchTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosJsonPatchTests.cs index 3dd2e7080e3..b95211e7dc3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosJsonPatchTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosJsonPatchTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityStateTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowStateTests.cs similarity index 67% rename from clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityStateTests.cs rename to clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowStateTests.cs index 7ed07e5a5b4..c58fb77d0d6 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityStateTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowStateTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Kratos.Client.Test.Model { /// - /// Class for testing KratosIdentityState + /// Class for testing KratosLoginFlowState /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class KratosIdentityStateTests : IDisposable + public class KratosLoginFlowStateTests : IDisposable { - // TODO uncomment below to declare an instance variable for KratosIdentityState - //private KratosIdentityState instance; + // TODO uncomment below to declare an instance variable for KratosLoginFlowState + //private KratosLoginFlowState instance; - public KratosIdentityStateTests() + public KratosLoginFlowStateTests() { - // TODO uncomment below to create an instance of KratosIdentityState - //instance = new KratosIdentityState(); + // TODO uncomment below to create an instance of KratosLoginFlowState + //instance = new KratosLoginFlowState(); } public void Dispose() @@ -47,13 +47,13 @@ public void Dispose() } /// - /// Test an instance of KratosIdentityState + /// Test an instance of KratosLoginFlowState /// [Fact] - public void KratosIdentityStateInstanceTest() + public void KratosLoginFlowStateInstanceTest() { - // TODO uncomment below to test "IsType" KratosIdentityState - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" KratosLoginFlowState + //Assert.IsType(instance); } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowTests.cs index 6541b9417fd..a97255e4cd5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLoginFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -114,6 +114,14 @@ public void Oauth2LoginRequestTest() // TODO unit test for the property 'Oauth2LoginRequest' } /// + /// Test the property 'OrganizationId' + /// + [Fact] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// /// Test the property 'Refresh' /// [Fact] @@ -154,6 +162,14 @@ public void SessionTokenExchangeCodeTest() // TODO unit test for the property 'SessionTokenExchangeCode' } /// + /// Test the property 'State' + /// + [Fact] + public void StateTest() + { + // TODO unit test for the property 'State' + } + /// /// Test the property 'Type' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLogoutFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLogoutFlowTests.cs index d9b54950018..a610df1793f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLogoutFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosLogoutFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageDispatchTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageDispatchTests.cs index cef0052f76e..aa3b5c432f8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageDispatchTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageDispatchTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageTests.cs index 80c71202401..d4bf99c31b0 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosMessageTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,14 @@ public void BodyTest() // TODO unit test for the property 'Body' } /// + /// Test the property 'Channel' + /// + [Fact] + public void ChannelTest() + { + // TODO unit test for the property 'Channel' + } + /// /// Test the property 'CreatedAt' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosNeedsPrivilegedSessionErrorTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosNeedsPrivilegedSessionErrorTests.cs index 5362e83a769..24c54bdc390 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosNeedsPrivilegedSessionErrorTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosNeedsPrivilegedSessionErrorTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ClientTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ClientTests.cs index 3b971c71f21..8863954ec8d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ClientTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ClientTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -57,6 +57,14 @@ public void KratosOAuth2ClientInstanceTest() } + /// + /// Test the property 'AccessTokenStrategy' + /// + [Fact] + public void AccessTokenStrategyTest() + { + // TODO unit test for the property 'AccessTokenStrategy' + } /// /// Test the property 'AllowedCorsOrigins' /// @@ -370,6 +378,22 @@ public void SectorIdentifierUriTest() // TODO unit test for the property 'SectorIdentifierUri' } /// + /// Test the property 'SkipConsent' + /// + [Fact] + public void SkipConsentTest() + { + // TODO unit test for the property 'SkipConsent' + } + /// + /// Test the property 'SkipLogoutConsent' + /// + [Fact] + public void SkipLogoutConsentTest() + { + // TODO unit test for the property 'SkipLogoutConsent' + } + /// /// Test the property 'SubjectType' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ConsentRequestOpenIDConnectContextTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ConsentRequestOpenIDConnectContextTests.cs index a2faa4306b8..8b2baaf15c8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ConsentRequestOpenIDConnectContextTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2ConsentRequestOpenIDConnectContextTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2LoginRequestTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2LoginRequestTests.cs index fcd8e56274b..a1f8feaf4fb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2LoginRequestTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosOAuth2LoginRequestTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPatchIdentitiesBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPatchIdentitiesBodyTests.cs index 338e3513459..8b2efcc1748 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPatchIdentitiesBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPatchIdentitiesBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPerformNativeLogoutBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPerformNativeLogoutBodyTests.cs index 60a0d91610c..b6973c1e797 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPerformNativeLogoutBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosPerformNativeLogoutBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryCodeForIdentityTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryCodeForIdentityTests.cs index ae974ef3e68..077242d500f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryCodeForIdentityTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryCodeForIdentityTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowStateTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowStateTests.cs index f177d4f1016..6ba56a6746f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowStateTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowStateTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowTests.cs index 934b6fcd587..8e81b9b5c61 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,14 @@ public void ActiveTest() // TODO unit test for the property 'Active' } /// + /// Test the property 'ContinueWith' + /// + [Fact] + public void ContinueWithTest() + { + // TODO unit test for the property 'ContinueWith' + } + /// /// Test the property 'ExpiresAt' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryIdentityAddressTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryIdentityAddressTests.cs index 64fe01c2589..00702ce87d3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryIdentityAddressTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryIdentityAddressTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryLinkForIdentityTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryLinkForIdentityTests.cs index f5e43ad2ae8..6a3ddb9dbbc 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryLinkForIdentityTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRecoveryLinkForIdentityTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTypeTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowStateTests.cs similarity index 64% rename from clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTypeTests.cs rename to clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowStateTests.cs index b0c52afc84e..673eeefb762 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosIdentityCredentialsTypeTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowStateTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -24,21 +24,21 @@ namespace Ory.Kratos.Client.Test.Model { /// - /// Class for testing KratosIdentityCredentialsType + /// Class for testing KratosRegistrationFlowState /// /// /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). /// Please update the test case below to test the model. /// - public class KratosIdentityCredentialsTypeTests : IDisposable + public class KratosRegistrationFlowStateTests : IDisposable { - // TODO uncomment below to declare an instance variable for KratosIdentityCredentialsType - //private KratosIdentityCredentialsType instance; + // TODO uncomment below to declare an instance variable for KratosRegistrationFlowState + //private KratosRegistrationFlowState instance; - public KratosIdentityCredentialsTypeTests() + public KratosRegistrationFlowStateTests() { - // TODO uncomment below to create an instance of KratosIdentityCredentialsType - //instance = new KratosIdentityCredentialsType(); + // TODO uncomment below to create an instance of KratosRegistrationFlowState + //instance = new KratosRegistrationFlowState(); } public void Dispose() @@ -47,13 +47,13 @@ public void Dispose() } /// - /// Test an instance of KratosIdentityCredentialsType + /// Test an instance of KratosRegistrationFlowState /// [Fact] - public void KratosIdentityCredentialsTypeInstanceTest() + public void KratosRegistrationFlowStateInstanceTest() { - // TODO uncomment below to test "IsType" KratosIdentityCredentialsType - //Assert.IsType(instance); + // TODO uncomment below to test "IsType" KratosRegistrationFlowState + //Assert.IsType(instance); } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowTests.cs index 303d4ef63bc..79a913d2b60 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosRegistrationFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -106,6 +106,14 @@ public void Oauth2LoginRequestTest() // TODO unit test for the property 'Oauth2LoginRequest' } /// + /// Test the property 'OrganizationId' + /// + [Fact] + public void OrganizationIdTest() + { + // TODO unit test for the property 'OrganizationId' + } + /// /// Test the property 'RequestUrl' /// [Fact] @@ -130,6 +138,14 @@ public void SessionTokenExchangeCodeTest() // TODO unit test for the property 'SessionTokenExchangeCode' } /// + /// Test the property 'State' + /// + [Fact] + public void StateTest() + { + // TODO unit test for the property 'State' + } + /// /// Test the property 'TransientPayload' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSelfServiceFlowExpiredErrorTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSelfServiceFlowExpiredErrorTests.cs index 7ebe312854b..a4d14fd5812 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSelfServiceFlowExpiredErrorTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSelfServiceFlowExpiredErrorTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionAuthenticationMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionAuthenticationMethodTests.cs index 79e29fe0799..319c7b75753 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionAuthenticationMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionAuthenticationMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -82,6 +82,14 @@ public void MethodTest() // TODO unit test for the property 'Method' } /// + /// Test the property 'Organization' + /// + [Fact] + public void OrganizationTest() + { + // TODO unit test for the property 'Organization' + } + /// /// Test the property 'Provider' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionDeviceTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionDeviceTests.cs index 622842bf26d..6ed4acab0d8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionDeviceTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionDeviceTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionTests.cs index 82556035941..e77b3d7fb7a 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSessionTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -129,6 +129,14 @@ public void IssuedAtTest() { // TODO unit test for the property 'IssuedAt' } + /// + /// Test the property 'Tokenized' + /// + [Fact] + public void TokenizedTest() + { + // TODO unit test for the property 'Tokenized' + } } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowStateTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowStateTests.cs index 88e44c49838..e6f970ce252 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowStateTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowStateTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowTests.cs index cd854bc49a5..ce6384b498c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSettingsFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulCodeExchangeResponseTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulCodeExchangeResponseTests.cs index 7f64a7dae9e..17e7c813c6f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulCodeExchangeResponseTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulCodeExchangeResponseTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeLoginTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeLoginTests.cs index bec88f17e64..fc315fbbd39 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeLoginTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeLoginTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeRegistrationTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeRegistrationTests.cs index 6a78929badc..65a9dfd4f37 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeRegistrationTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosSuccessfulNativeRegistrationTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationHeadersTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationHeadersTests.cs index 567ba05f3fc..86337e56d54 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationHeadersTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationHeadersTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationTests.cs index 5d44fc2bae5..5b894a3d239 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosTokenPaginationTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiContainerTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiContainerTests.cs index 44abcbf0045..adc4c04cd8c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiContainerTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiContainerTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAnchorAttributesTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAnchorAttributesTests.cs index c231741eeb1..046713b940c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAnchorAttributesTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAnchorAttributesTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAttributesTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAttributesTests.cs index 962e002c3d9..5cc778dd8d8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAttributesTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeAttributesTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeImageAttributesTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeImageAttributesTests.cs index 05443f5282f..6d0e26c7b88 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeImageAttributesTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeImageAttributesTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeInputAttributesTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeInputAttributesTests.cs index e9f57f1610b..fdb0f1afba3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeInputAttributesTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeInputAttributesTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeMetaTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeMetaTests.cs index 390fd804956..fef08e168f7 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeMetaTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeMetaTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeScriptAttributesTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeScriptAttributesTests.cs index 587db1034ed..d15d30888d2 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeScriptAttributesTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeScriptAttributesTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTests.cs index 29f1ad26665..a7fa6105d27 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTextAttributesTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTextAttributesTests.cs index 4b4552c06c5..960ea685d66 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTextAttributesTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiNodeTextAttributesTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiTextTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiTextTests.cs index 7c221b7b52d..5895bff33b2 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiTextTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUiTextTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateIdentityBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateIdentityBodyTests.cs index 69290a90fda..093d63f6e35 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateIdentityBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateIdentityBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowBodyTests.cs index 44640b9ee3d..618d5d7d336 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,6 +98,22 @@ public void PasswordIdentifierTest() // TODO unit test for the property 'PasswordIdentifier' } /// + /// Test the property 'IdToken' + /// + [Fact] + public void IdTokenTest() + { + // TODO unit test for the property 'IdToken' + } + /// + /// Test the property 'IdTokenNonce' + /// + [Fact] + public void IdTokenNonceTest() + { + // TODO unit test for the property 'IdTokenNonce' + } + /// /// Test the property 'Provider' /// [Fact] @@ -145,6 +161,22 @@ public void LookupSecretTest() { // TODO unit test for the property 'LookupSecret' } + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + // TODO unit test for the property 'Code' + } + /// + /// Test the property 'Resend' + /// + [Fact] + public void ResendTest() + { + // TODO unit test for the property 'Resend' + } } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithCodeMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithCodeMethodTests.cs new file mode 100644 index 00000000000..b66d9b8174e --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithCodeMethodTests.cs @@ -0,0 +1,103 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosUpdateLoginFlowWithCodeMethod + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosUpdateLoginFlowWithCodeMethodTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosUpdateLoginFlowWithCodeMethod + //private KratosUpdateLoginFlowWithCodeMethod instance; + + public KratosUpdateLoginFlowWithCodeMethodTests() + { + // TODO uncomment below to create an instance of KratosUpdateLoginFlowWithCodeMethod + //instance = new KratosUpdateLoginFlowWithCodeMethod(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosUpdateLoginFlowWithCodeMethod + /// + [Fact] + public void KratosUpdateLoginFlowWithCodeMethodInstanceTest() + { + // TODO uncomment below to test "IsType" KratosUpdateLoginFlowWithCodeMethod + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + // TODO unit test for the property 'Code' + } + /// + /// Test the property 'CsrfToken' + /// + [Fact] + public void CsrfTokenTest() + { + // TODO unit test for the property 'CsrfToken' + } + /// + /// Test the property 'Identifier' + /// + [Fact] + public void IdentifierTest() + { + // TODO unit test for the property 'Identifier' + } + /// + /// Test the property 'Method' + /// + [Fact] + public void MethodTest() + { + // TODO unit test for the property 'Method' + } + /// + /// Test the property 'Resend' + /// + [Fact] + public void ResendTest() + { + // TODO unit test for the property 'Resend' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithLookupSecretMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithLookupSecretMethodTests.cs index fd0c6af656d..000ad380f44 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithLookupSecretMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithLookupSecretMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithOidcMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithOidcMethodTests.cs index 1e3999c2130..9dc86d7e1fa 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithOidcMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithOidcMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,22 @@ public void CsrfTokenTest() // TODO unit test for the property 'CsrfToken' } /// + /// Test the property 'IdToken' + /// + [Fact] + public void IdTokenTest() + { + // TODO unit test for the property 'IdToken' + } + /// + /// Test the property 'IdTokenNonce' + /// + [Fact] + public void IdTokenNonceTest() + { + // TODO unit test for the property 'IdTokenNonce' + } + /// /// Test the property 'Method' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithPasswordMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithPasswordMethodTests.cs index e682b60b59e..220c5689d43 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithPasswordMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithPasswordMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithTotpMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithTotpMethodTests.cs index 218d65110dc..c954874d3ad 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithTotpMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithTotpMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithWebAuthnMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithWebAuthnMethodTests.cs index 95aa602a3b4..81e97ca78ea 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithWebAuthnMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateLoginFlowWithWebAuthnMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowBodyTests.cs index f00ad3352cf..307315c8976 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithCodeMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithCodeMethodTests.cs index 41ae4b427f9..cda13e0011e 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithCodeMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithCodeMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithLinkMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithLinkMethodTests.cs index 53e8d83166f..6bead4972ee 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithLinkMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRecoveryFlowWithLinkMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowBodyTests.cs index 867fee59192..d72552a9ba7 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -98,6 +98,22 @@ public void TransientPayloadTest() // TODO unit test for the property 'TransientPayload' } /// + /// Test the property 'IdToken' + /// + [Fact] + public void IdTokenTest() + { + // TODO unit test for the property 'IdToken' + } + /// + /// Test the property 'IdTokenNonce' + /// + [Fact] + public void IdTokenNonceTest() + { + // TODO unit test for the property 'IdTokenNonce' + } + /// /// Test the property 'Provider' /// [Fact] @@ -129,6 +145,22 @@ public void WebauthnRegisterDisplaynameTest() { // TODO unit test for the property 'WebauthnRegisterDisplayname' } + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + // TODO unit test for the property 'Code' + } + /// + /// Test the property 'Resend' + /// + [Fact] + public void ResendTest() + { + // TODO unit test for the property 'Resend' + } } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithCodeMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithCodeMethodTests.cs new file mode 100644 index 00000000000..056f20b2d7c --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithCodeMethodTests.cs @@ -0,0 +1,111 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using Xunit; + +using System; +using System.Linq; +using System.IO; +using System.Collections.Generic; +using Ory.Kratos.Client.Api; +using Ory.Kratos.Client.Model; +using Ory.Kratos.Client.Client; +using System.Reflection; +using Newtonsoft.Json; + +namespace Ory.Kratos.Client.Test.Model +{ + /// + /// Class for testing KratosUpdateRegistrationFlowWithCodeMethod + /// + /// + /// This file is automatically generated by OpenAPI Generator (https://openapi-generator.tech). + /// Please update the test case below to test the model. + /// + public class KratosUpdateRegistrationFlowWithCodeMethodTests : IDisposable + { + // TODO uncomment below to declare an instance variable for KratosUpdateRegistrationFlowWithCodeMethod + //private KratosUpdateRegistrationFlowWithCodeMethod instance; + + public KratosUpdateRegistrationFlowWithCodeMethodTests() + { + // TODO uncomment below to create an instance of KratosUpdateRegistrationFlowWithCodeMethod + //instance = new KratosUpdateRegistrationFlowWithCodeMethod(); + } + + public void Dispose() + { + // Cleanup when everything is done. + } + + /// + /// Test an instance of KratosUpdateRegistrationFlowWithCodeMethod + /// + [Fact] + public void KratosUpdateRegistrationFlowWithCodeMethodInstanceTest() + { + // TODO uncomment below to test "IsType" KratosUpdateRegistrationFlowWithCodeMethod + //Assert.IsType(instance); + } + + + /// + /// Test the property 'Code' + /// + [Fact] + public void CodeTest() + { + // TODO unit test for the property 'Code' + } + /// + /// Test the property 'CsrfToken' + /// + [Fact] + public void CsrfTokenTest() + { + // TODO unit test for the property 'CsrfToken' + } + /// + /// Test the property 'Method' + /// + [Fact] + public void MethodTest() + { + // TODO unit test for the property 'Method' + } + /// + /// Test the property 'Resend' + /// + [Fact] + public void ResendTest() + { + // TODO unit test for the property 'Resend' + } + /// + /// Test the property 'Traits' + /// + [Fact] + public void TraitsTest() + { + // TODO unit test for the property 'Traits' + } + /// + /// Test the property 'TransientPayload' + /// + [Fact] + public void TransientPayloadTest() + { + // TODO unit test for the property 'TransientPayload' + } + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithOidcMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithOidcMethodTests.cs index 035476fbfda..a9aaa4dec71 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithOidcMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithOidcMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -66,6 +66,22 @@ public void CsrfTokenTest() // TODO unit test for the property 'CsrfToken' } /// + /// Test the property 'IdToken' + /// + [Fact] + public void IdTokenTest() + { + // TODO unit test for the property 'IdToken' + } + /// + /// Test the property 'IdTokenNonce' + /// + [Fact] + public void IdTokenNonceTest() + { + // TODO unit test for the property 'IdTokenNonce' + } + /// /// Test the property 'Method' /// [Fact] diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithPasswordMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithPasswordMethodTests.cs index dac93f3d605..22faebb9f2e 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithPasswordMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithPasswordMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithWebAuthnMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithWebAuthnMethodTests.cs index bed5376acad..e8abdd1a52c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithWebAuthnMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateRegistrationFlowWithWebAuthnMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowBodyTests.cs index 1a7ce46c47a..f571433ea54 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithLookupMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithLookupMethodTests.cs index 29de4950da6..57b5c864e22 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithLookupMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithLookupMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithOidcMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithOidcMethodTests.cs index c7208a7d6b8..99fc79899ef 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithOidcMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithOidcMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithPasswordMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithPasswordMethodTests.cs index 5cc983340fa..72f968335ba 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithPasswordMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithPasswordMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithProfileMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithProfileMethodTests.cs index 0bb9ad95ab6..cd31df2f868 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithProfileMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithProfileMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithTotpMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithTotpMethodTests.cs index 51fa7dd7fff..610edc73adb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithTotpMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithTotpMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithWebAuthnMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithWebAuthnMethodTests.cs index d4eaf87f780..a25c28cd024 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithWebAuthnMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateSettingsFlowWithWebAuthnMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowBodyTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowBodyTests.cs index 51d4cea836e..a858c343224 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowBodyTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowBodyTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithCodeMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithCodeMethodTests.cs index e0122235890..a4194da4e84 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithCodeMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithCodeMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithLinkMethodTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithLinkMethodTests.cs index 5067e77cb80..4303ed4b127 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithLinkMethodTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosUpdateVerificationFlowWithLinkMethodTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerifiableIdentityAddressTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerifiableIdentityAddressTests.cs index 4706bef2222..9f7314605cd 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerifiableIdentityAddressTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerifiableIdentityAddressTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowStateTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowStateTests.cs index 5e10b3a886d..3acb247231c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowStateTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowStateTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowTests.cs index d4b16109903..29b3029b97d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVerificationFlowTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVersionTests.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVersionTests.cs index 5d9b43bed06..976d166637d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVersionTests.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client.Test/Model/KratosVersionTests.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/CourierApi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/CourierApi.cs index f7aade2f6e7..87ae6f024b8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/CourierApi.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/CourierApi.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/FrontendApi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/FrontendApi.cs index 1d1fa4a5422..ea7e3056c2a 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/FrontendApi.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/FrontendApi.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -39,8 +39,9 @@ public interface IFrontendApiSync : IApiAccessor /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// KratosLoginFlow - KratosLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string)); + KratosLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)); /// /// Create Login Flow for Browsers @@ -54,8 +55,9 @@ public interface IFrontendApiSync : IApiAccessor /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// ApiResponse of KratosLoginFlow - ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string)); + ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)); /// /// Create a Logout URL for Browsers /// @@ -104,27 +106,29 @@ public interface IFrontendApiSync : IApiAccessor /// Create Registration Flow for Browsers /// /// - /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// KratosRegistrationFlow - KratosRegistrationFlow CreateBrowserRegistrationFlow(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string)); + KratosRegistrationFlow CreateBrowserRegistrationFlow(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string)); /// /// Create Registration Flow for Browsers /// /// - /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// ApiResponse of KratosRegistrationFlow - ApiResponse CreateBrowserRegistrationFlowWithHttpInfo(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string)); + ApiResponse CreateBrowserRegistrationFlowWithHttpInfo(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string)); /// /// Create Settings Flow for Browsers /// @@ -181,8 +185,9 @@ public interface IFrontendApiSync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// KratosLoginFlow - KratosLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)); + KratosLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)); /// /// Create Login Flow for Native Apps @@ -196,13 +201,14 @@ public interface IFrontendApiSync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ApiResponse of KratosLoginFlow - ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)); + ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)); /// /// Create Recovery Flow for Native Apps /// /// - /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// KratosRecoveryFlow @@ -212,7 +218,7 @@ public interface IFrontendApiSync : IApiAccessor /// Create Recovery Flow for Native Apps /// /// - /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// ApiResponse of KratosRecoveryFlow @@ -512,12 +518,14 @@ public interface IFrontendApiSync : IApiAccessor /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// List<KratosSession> - List ListMySessions(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string)); + List ListMySessions(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string)); /// /// Get My Active Sessions @@ -526,12 +534,14 @@ public interface IFrontendApiSync : IApiAccessor /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// ApiResponse of List<KratosSession> - ApiResponse> ListMySessionsWithHttpInfo(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string)); + ApiResponse> ListMySessionsWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string)); /// /// Perform Logout for Native Apps /// @@ -557,30 +567,32 @@ public interface IFrontendApiSync : IApiAccessor /// Check Who the Current HTTP Session Belongs To /// /// - /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// KratosSession - KratosSession ToSession(string xSessionToken = default(string), string cookie = default(string)); + KratosSession ToSession(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string)); /// /// Check Who the Current HTTP Session Belongs To /// /// - /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// ApiResponse of KratosSession - ApiResponse ToSessionWithHttpInfo(string xSessionToken = default(string), string cookie = default(string)); + ApiResponse ToSessionWithHttpInfo(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string)); /// /// Submit a Login Flow /// /// - /// :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -594,7 +606,7 @@ public interface IFrontendApiSync : IApiAccessor /// Submit a Login Flow /// /// - /// :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -629,10 +641,10 @@ public interface IFrontendApiSync : IApiAccessor /// ApiResponse of Object(void) ApiResponse UpdateLogoutFlowWithHttpInfo(string token = default(string), string returnTo = default(string), string cookie = default(string)); /// - /// Complete Recovery Flow + /// Update Recovery Flow /// /// - /// Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -643,10 +655,10 @@ public interface IFrontendApiSync : IApiAccessor KratosRecoveryFlow UpdateRecoveryFlow(string flow, KratosUpdateRecoveryFlowBody kratosUpdateRecoveryFlowBody, string token = default(string), string cookie = default(string)); /// - /// Complete Recovery Flow + /// Update Recovery Flow /// /// - /// Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -755,9 +767,10 @@ public interface IFrontendApiAsync : IApiAccessor /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// Cancellation Token to cancel the request. /// Task of KratosLoginFlow - System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Login Flow for Browsers @@ -771,9 +784,10 @@ public interface IFrontendApiAsync : IApiAccessor /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosLoginFlow) - System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create a Logout URL for Browsers /// @@ -826,29 +840,31 @@ public interface IFrontendApiAsync : IApiAccessor /// Create Registration Flow for Browsers /// /// - /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// Cancellation Token to cancel the request. /// Task of KratosRegistrationFlow - System.Threading.Tasks.Task CreateBrowserRegistrationFlowAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateBrowserRegistrationFlowAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Registration Flow for Browsers /// /// - /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosRegistrationFlow) - System.Threading.Tasks.Task> CreateBrowserRegistrationFlowWithHttpInfoAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateBrowserRegistrationFlowWithHttpInfoAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Settings Flow for Browsers /// @@ -909,9 +925,10 @@ public interface IFrontendApiAsync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of KratosLoginFlow - System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Login Flow for Native Apps @@ -925,14 +942,15 @@ public interface IFrontendApiAsync : IApiAccessor /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosLoginFlow) - System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create Recovery Flow for Native Apps /// /// - /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. @@ -943,7 +961,7 @@ public interface IFrontendApiAsync : IApiAccessor /// Create Recovery Flow for Native Apps /// /// - /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. @@ -1273,13 +1291,15 @@ public interface IFrontendApiAsync : IApiAccessor /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// Cancellation Token to cancel the request. /// Task of List<KratosSession> - System.Threading.Tasks.Task> ListMySessionsAsync(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListMySessionsAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get My Active Sessions @@ -1288,13 +1308,15 @@ public interface IFrontendApiAsync : IApiAccessor /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosSession>) - System.Threading.Tasks.Task>> ListMySessionsWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListMySessionsWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Perform Logout for Native Apps /// @@ -1322,32 +1344,34 @@ public interface IFrontendApiAsync : IApiAccessor /// Check Who the Current HTTP Session Belongs To /// /// - /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// Cancellation Token to cancel the request. /// Task of KratosSession - System.Threading.Tasks.Task ToSessionAsync(string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task ToSessionAsync(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Check Who the Current HTTP Session Belongs To /// /// - /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosSession) - System.Threading.Tasks.Task> ToSessionWithHttpInfoAsync(string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ToSessionWithHttpInfoAsync(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Submit a Login Flow /// /// - /// :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -1362,7 +1386,7 @@ public interface IFrontendApiAsync : IApiAccessor /// Submit a Login Flow /// /// - /// :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -1400,10 +1424,10 @@ public interface IFrontendApiAsync : IApiAccessor /// Task of ApiResponse System.Threading.Tasks.Task> UpdateLogoutFlowWithHttpInfoAsync(string token = default(string), string returnTo = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Complete Recovery Flow + /// Update Recovery Flow /// /// - /// Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -1415,10 +1439,10 @@ public interface IFrontendApiAsync : IApiAccessor System.Threading.Tasks.Task UpdateRecoveryFlowAsync(string flow, KratosUpdateRecoveryFlowBody kratosUpdateRecoveryFlowBody, string token = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// - /// Complete Recovery Flow + /// Update Recovery Flow /// /// - /// Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -1642,10 +1666,11 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// KratosLoginFlow - public KratosLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string)) + public KratosLoginFlow CreateBrowserLoginFlow(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateBrowserLoginFlowWithHttpInfo(refresh, aal, returnTo, cookie, loginChallenge); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateBrowserLoginFlowWithHttpInfo(refresh, aal, returnTo, cookie, loginChallenge, organization); return localVarResponse.Data; } @@ -1658,8 +1683,9 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// ApiResponse of KratosLoginFlow - public Ory.Kratos.Client.Client.ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string)) + public Ory.Kratos.Client.Client.ApiResponse CreateBrowserLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -1699,6 +1725,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "login_challenge", loginChallenge)); } + if (organization != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "organization", organization)); + } if (cookie != null) { localVarRequestOptions.HeaderParameters.Add("Cookie", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(cookie)); // header parameter @@ -1728,11 +1758,12 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// Cancellation Token to cancel the request. /// Task of KratosLoginFlow - public async System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateBrowserLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateBrowserLoginFlowWithHttpInfoAsync(refresh, aal, returnTo, cookie, loginChallenge, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateBrowserLoginFlowWithHttpInfoAsync(refresh, aal, returnTo, cookie, loginChallenge, organization, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1745,9 +1776,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The URL to return the browser to after the flow was completed. (optional) /// HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. (optional) /// An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). (optional) + /// An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosLoginFlow) - public async System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateBrowserLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string returnTo = default(string), string cookie = default(string), string loginChallenge = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -1788,6 +1820,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "login_challenge", loginChallenge)); } + if (organization != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "organization", organization)); + } if (cookie != null) { localVarRequestOptions.HeaderParameters.Add("Cookie", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(cookie)); // header parameter @@ -2078,28 +2114,30 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory } /// - /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// KratosRegistrationFlow - public KratosRegistrationFlow CreateBrowserRegistrationFlow(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string)) + public KratosRegistrationFlow CreateBrowserRegistrationFlow(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateBrowserRegistrationFlowWithHttpInfo(returnTo, loginChallenge, afterVerificationReturnTo); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateBrowserRegistrationFlowWithHttpInfo(returnTo, loginChallenge, afterVerificationReturnTo, organization); return localVarResponse.Data; } /// - /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// ApiResponse of KratosRegistrationFlow - public Ory.Kratos.Client.Client.ApiResponse CreateBrowserRegistrationFlowWithHttpInfo(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string)) + public Ory.Kratos.Client.Client.ApiResponse CreateBrowserRegistrationFlowWithHttpInfo(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2135,6 +2173,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "after_verification_return_to", afterVerificationReturnTo)); } + if (organization != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "organization", organization)); + } // make the HTTP request @@ -2152,30 +2194,32 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory } /// - /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// Cancellation Token to cancel the request. /// Task of KratosRegistrationFlow - public async System.Threading.Tasks.Task CreateBrowserRegistrationFlowAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateBrowserRegistrationFlowAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateBrowserRegistrationFlowWithHttpInfoAsync(returnTo, loginChallenge, afterVerificationReturnTo, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateBrowserRegistrationFlowWithHttpInfoAsync(returnTo, loginChallenge, afterVerificationReturnTo, organization, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + /// Create Registration Flow for Browsers This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). /// /// Thrown when fails to make API call /// The URL to return the browser to after the flow was completed. (optional) /// Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. (optional) /// The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. (optional) + /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosRegistrationFlow) - public async System.Threading.Tasks.Task> CreateBrowserRegistrationFlowWithHttpInfoAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateBrowserRegistrationFlowWithHttpInfoAsync(string returnTo = default(string), string loginChallenge = default(string), string afterVerificationReturnTo = default(string), string organization = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2212,6 +2256,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "after_verification_return_to", afterVerificationReturnTo)); } + if (organization != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "organization", organization)); + } // make the HTTP request @@ -2506,10 +2554,11 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// KratosLoginFlow - public KratosLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)) + public KratosLoginFlow CreateNativeLoginFlow(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateNativeLoginFlowWithHttpInfo(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateNativeLoginFlowWithHttpInfo(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via); return localVarResponse.Data; } @@ -2522,8 +2571,9 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// ApiResponse of KratosLoginFlow - public Ory.Kratos.Client.Client.ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string)) + public Ory.Kratos.Client.Client.ApiResponse CreateNativeLoginFlowWithHttpInfo(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2563,6 +2613,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); } + if (via != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "via", via)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -2592,11 +2646,12 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of KratosLoginFlow - public async System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateNativeLoginFlowAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateNativeLoginFlowWithHttpInfoAsync(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateNativeLoginFlowWithHttpInfoAsync(refresh, aal, xSessionToken, returnSessionTokenExchangeCode, returnTo, via, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2609,9 +2664,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// The Session Token of the Identity performing the settings flow. (optional) /// EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. (optional) /// The URL to return the browser to after the flow was completed. (optional) + /// Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosLoginFlow) - public async System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateNativeLoginFlowWithHttpInfoAsync(bool? refresh = default(bool?), string aal = default(string), string xSessionToken = default(string), bool? returnSessionTokenExchangeCode = default(bool?), string returnTo = default(string), string via = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2652,6 +2708,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); } + if (via != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "via", via)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -2674,7 +2734,7 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory } /// - /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// KratosRecoveryFlow @@ -2685,7 +2745,7 @@ public KratosRecoveryFlow CreateNativeRecoveryFlow() } /// - /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// ApiResponse of KratosRecoveryFlow @@ -2730,7 +2790,7 @@ public Ory.Kratos.Client.Client.ApiResponse CreateNativeReco } /// - /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. @@ -2742,7 +2802,7 @@ public Ory.Kratos.Client.Client.ApiResponse CreateNativeReco } /// - /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=<flow_id>`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Create Recovery Flow for Native Apps This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// Cancellation Token to cancel the request. @@ -4617,14 +4677,16 @@ public Ory.Kratos.Client.Client.ApiResponse GetWebAuthnJavaScriptWithHtt /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// List<KratosSession> - public List ListMySessions(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string)) + public List ListMySessions(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListMySessionsWithHttpInfo(perPage, page, xSessionToken, cookie); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListMySessionsWithHttpInfo(perPage, page, pageSize, pageToken, xSessionToken, cookie); return localVarResponse.Data; } @@ -4632,12 +4694,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetWebAuthnJavaScriptWithHtt /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// ApiResponse of List<KratosSession> - public Ory.Kratos.Client.Client.ApiResponse> ListMySessionsWithHttpInfo(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string)) + public Ory.Kratos.Client.Client.ApiResponse> ListMySessionsWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -4669,6 +4733,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetWebAuthnJavaScriptWithHtt { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -4697,15 +4769,17 @@ public Ory.Kratos.Client.Client.ApiResponse GetWebAuthnJavaScriptWithHtt /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// Cancellation Token to cancel the request. /// Task of List<KratosSession> - public async System.Threading.Tasks.Task> ListMySessionsAsync(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListMySessionsAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListMySessionsWithHttpInfoAsync(perPage, page, xSessionToken, cookie, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListMySessionsWithHttpInfoAsync(perPage, page, pageSize, pageToken, xSessionToken, cookie, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -4713,13 +4787,15 @@ public Ory.Kratos.Client.Client.ApiResponse GetWebAuthnJavaScriptWithHtt /// 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. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosSession>) - public async System.Threading.Tasks.Task>> ListMySessionsWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListMySessionsWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -4752,6 +4828,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetWebAuthnJavaScriptWithHtt { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -4912,26 +4996,28 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// KratosSession - public KratosSession ToSession(string xSessionToken = default(string), string cookie = default(string)) + public KratosSession ToSession(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = ToSessionWithHttpInfo(xSessionToken, cookie); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = ToSessionWithHttpInfo(xSessionToken, cookie, tokenizeAs); return localVarResponse.Data; } /// - /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// ApiResponse of KratosSession - public Ory.Kratos.Client.Client.ApiResponse ToSessionWithHttpInfo(string xSessionToken = default(string), string cookie = default(string)) + public Ory.Kratos.Client.Client.ApiResponse ToSessionWithHttpInfo(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -4955,6 +5041,10 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (tokenizeAs != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "tokenize_as", tokenizeAs)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -4980,28 +5070,30 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// Cancellation Token to cancel the request. /// Task of KratosSession - public async System.Threading.Tasks.Task ToSessionAsync(string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task ToSessionAsync(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = await ToSessionWithHttpInfoAsync(xSessionToken, cookie, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = await ToSessionWithHttpInfoAsync(xSessionToken, cookie, tokenizeAs, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } /// - /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + /// Check Who the Current HTTP Session Belongs To Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer <ory-session-token>` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. /// /// Thrown when fails to make API call /// Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. (optional) /// Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. (optional) + /// Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosSession) - public async System.Threading.Tasks.Task> ToSessionWithHttpInfoAsync(string xSessionToken = default(string), string cookie = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ToSessionWithHttpInfoAsync(string xSessionToken = default(string), string cookie = default(string), string tokenizeAs = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -5026,6 +5118,10 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (tokenizeAs != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "tokenize_as", tokenizeAs)); + } if (xSessionToken != null) { localVarRequestOptions.HeaderParameters.Add("X-Session-Token", Ory.Kratos.Client.Client.ClientUtils.ParameterToString(xSessionToken)); // header parameter @@ -5052,7 +5148,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Submit a Login Flow :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Submit a Login Flow Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -5067,7 +5163,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Submit a Login Flow :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Submit a Login Flow Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -5140,7 +5236,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Submit a Login Flow :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Submit a Login Flow Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -5156,7 +5252,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Submit a Login Flow :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + /// Submit a Login Flow Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). /// /// Thrown when fails to make API call /// The Login Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/login?flow=abcde`). @@ -5382,7 +5478,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Complete Recovery Flow Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Update Recovery Flow Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -5397,7 +5493,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Complete Recovery Flow Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Update Recovery Flow Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -5470,7 +5566,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Complete Recovery Flow Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Update Recovery Flow Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). @@ -5486,7 +5582,7 @@ public Ory.Kratos.Client.Client.ApiResponse PerformNativeLogoutWithHttpI } /// - /// Complete Recovery Flow Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + /// Update Recovery Flow Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/_*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). /// /// Thrown when fails to make API call /// The Recovery Flow ID The value for this parameter comes from `flow` URL Query parameter sent to your application (e.g. `/recovery?flow=abcde`). diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/IdentityApi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/IdentityApi.cs index a54a0060dfa..be643fd7068 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/IdentityApi.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/IdentityApi.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -97,9 +97,10 @@ public interface IIdentityApiSync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// KratosRecoveryLinkForIdentity - KratosRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)); + KratosRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)); /// /// Create a Recovery Link @@ -108,9 +109,10 @@ public interface IIdentityApiSync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// ApiResponse of KratosRecoveryLinkForIdentity - ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)); + ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)); /// /// Delete an Identity /// @@ -140,7 +142,7 @@ public interface IIdentityApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// void DeleteIdentityCredentials(string id, string type); @@ -152,7 +154,7 @@ public interface IIdentityApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// ApiResponse of Object(void) ApiResponse DeleteIdentityCredentialsWithHttpInfo(string id, string type); /// @@ -292,11 +294,16 @@ public interface IIdentityApiSync : IApiAccessor /// Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// List<KratosIdentity> - List ListIdentities(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string)); + List ListIdentities(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)); /// /// List Identities @@ -305,11 +312,16 @@ public interface IIdentityApiSync : IApiAccessor /// Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// ApiResponse of List<KratosIdentity> - ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string)); + ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)); /// /// Get all Identity Schemas /// @@ -317,10 +329,12 @@ public interface IIdentityApiSync : IApiAccessor /// Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// List<KratosIdentitySchemaContainer> - List ListIdentitySchemas(long? perPage = default(long?), long? page = default(long?)); + List ListIdentitySchemas(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string)); /// /// Get all Identity Schemas @@ -329,10 +343,12 @@ public interface IIdentityApiSync : IApiAccessor /// Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// ApiResponse of List<KratosIdentitySchemaContainer> - ApiResponse> ListIdentitySchemasWithHttpInfo(long? perPage = default(long?), long? page = default(long?)); + ApiResponse> ListIdentitySchemasWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string)); /// /// List an Identity's Sessions /// @@ -341,11 +357,13 @@ public interface IIdentityApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// List<KratosSession> - List ListIdentitySessions(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?)); + List ListIdentitySessions(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?)); /// /// List an Identity's Sessions @@ -355,11 +373,13 @@ public interface IIdentityApiSync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// ApiResponse of List<KratosSession> - ApiResponse> ListIdentitySessionsWithHttpInfo(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?)); + ApiResponse> ListIdentitySessionsWithHttpInfo(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?)); /// /// List All Sessions /// @@ -518,10 +538,11 @@ public interface IIdentityApiAsync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of KratosRecoveryLinkForIdentity - System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Create a Recovery Link @@ -530,10 +551,11 @@ public interface IIdentityApiAsync : IApiAccessor /// This endpoint creates a recovery link which should be given to the user in order for them to recover (or activate) their account. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosRecoveryLinkForIdentity) - System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Delete an Identity /// @@ -565,7 +587,7 @@ public interface IIdentityApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of void System.Threading.Tasks.Task DeleteIdentityCredentialsAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -578,7 +600,7 @@ public interface IIdentityApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of ApiResponse System.Threading.Tasks.Task> DeleteIdentityCredentialsWithHttpInfoAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); @@ -731,12 +753,17 @@ public interface IIdentityApiAsync : IApiAccessor /// Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// Cancellation Token to cancel the request. /// Task of List<KratosIdentity> - System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List Identities @@ -745,12 +772,17 @@ public interface IIdentityApiAsync : IApiAccessor /// Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosIdentity>) - System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all Identity Schemas /// @@ -758,11 +790,13 @@ public interface IIdentityApiAsync : IApiAccessor /// Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Cancellation Token to cancel the request. /// Task of List<KratosIdentitySchemaContainer> - System.Threading.Tasks.Task> ListIdentitySchemasAsync(long? perPage = default(long?), long? page = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListIdentitySchemasAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// Get all Identity Schemas @@ -771,11 +805,13 @@ public interface IIdentityApiAsync : IApiAccessor /// Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosIdentitySchemaContainer>) - System.Threading.Tasks.Task>> ListIdentitySchemasWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListIdentitySchemasWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List an Identity's Sessions /// @@ -784,12 +820,14 @@ public interface IIdentityApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// Cancellation Token to cancel the request. /// Task of List<KratosSession> - System.Threading.Tasks.Task> ListIdentitySessionsAsync(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task> ListIdentitySessionsAsync(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List an Identity's Sessions @@ -799,12 +837,14 @@ public interface IIdentityApiAsync : IApiAccessor /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosSession>) - System.Threading.Tasks.Task>> ListIdentitySessionsWithHttpInfoAsync(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); + System.Threading.Tasks.Task>> ListIdentitySessionsWithHttpInfoAsync(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)); /// /// List All Sessions /// @@ -1410,11 +1450,12 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// KratosRecoveryLinkForIdentity - public KratosRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)) + public KratosRecoveryLinkForIdentity CreateRecoveryLinkForIdentity(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateRecoveryLinkForIdentityWithHttpInfo(kratosCreateRecoveryLinkForIdentityBody); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = CreateRecoveryLinkForIdentityWithHttpInfo(returnTo, kratosCreateRecoveryLinkForIdentityBody); return localVarResponse.Data; } @@ -1422,9 +1463,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// ApiResponse of KratosRecoveryLinkForIdentity - public Ory.Kratos.Client.Client.ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)) + public Ory.Kratos.Client.Client.ApiResponse CreateRecoveryLinkForIdentityWithHttpInfo(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -1449,6 +1491,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (returnTo != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); + } localVarRequestOptions.Data = kratosCreateRecoveryLinkForIdentityBody; // authentication (oryAccessToken) required @@ -1475,12 +1521,13 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of KratosRecoveryLinkForIdentity - public async System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task CreateRecoveryLinkForIdentityAsync(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateRecoveryLinkForIdentityWithHttpInfoAsync(kratosCreateRecoveryLinkForIdentityBody, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse localVarResponse = await CreateRecoveryLinkForIdentityWithHttpInfoAsync(returnTo, kratosCreateRecoveryLinkForIdentityBody, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -1488,10 +1535,11 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory /// 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. /// /// Thrown when fails to make API call + /// (optional) /// (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (KratosRecoveryLinkForIdentity) - public async System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> CreateRecoveryLinkForIdentityWithHttpInfoAsync(string returnTo = default(string), KratosCreateRecoveryLinkForIdentityBody kratosCreateRecoveryLinkForIdentityBody = default(KratosCreateRecoveryLinkForIdentityBody), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -1517,6 +1565,10 @@ public Ory.Kratos.Client.Client.ExceptionFactory ExceptionFactory localVarRequestOptions.HeaderParameters.Add("Accept", localVarAccept); } + if (returnTo != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "return_to", returnTo)); + } localVarRequestOptions.Data = kratosCreateRecoveryLinkForIdentityBody; // authentication (oryAccessToken) required @@ -1687,7 +1739,7 @@ public Ory.Kratos.Client.Client.ApiResponse DeleteIdentityWithHttpInfo(s /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// public void DeleteIdentityCredentials(string id, string type) { @@ -1699,7 +1751,7 @@ public void DeleteIdentityCredentials(string id, string type) /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// ApiResponse of Object(void) public Ory.Kratos.Client.Client.ApiResponse DeleteIdentityCredentialsWithHttpInfo(string id, string type) { @@ -1765,7 +1817,7 @@ public Ory.Kratos.Client.Client.ApiResponse DeleteIdentityCredentialsWit /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of void public async System.Threading.Tasks.Task DeleteIdentityCredentialsAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) @@ -1778,7 +1830,7 @@ public Ory.Kratos.Client.Client.ApiResponse DeleteIdentityCredentialsWit /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Type is the credential's Type. One of totp, webauthn, lookup + /// Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 /// Cancellation Token to cancel the request. /// Task of ApiResponse public async System.Threading.Tasks.Task> DeleteIdentityCredentialsWithHttpInfoAsync(string id, string type, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) @@ -2720,13 +2772,18 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// List Identities Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// List<KratosIdentity> - public List ListIdentities(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string)) + public List ListIdentities(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListIdentitiesWithHttpInfo(perPage, page, credentialsIdentifier); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListIdentitiesWithHttpInfo(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar); return localVarResponse.Data; } @@ -2734,11 +2791,16 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// List Identities Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// ApiResponse of List<KratosIdentity> - public Ory.Kratos.Client.Client.ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string)) + public Ory.Kratos.Client.Client.ApiResponse> ListIdentitiesWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2770,10 +2832,30 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } + if (consistency != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "consistency", consistency)); + } + if (ids != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("multi", "ids", ids)); + } if (credentialsIdentifier != null) { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "credentials_identifier", credentialsIdentifier)); } + if (previewCredentialsIdentifierSimilar != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "preview_credentials_identifier_similar", previewCredentialsIdentifierSimilar)); + } // authentication (oryAccessToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -2799,14 +2881,19 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// List Identities Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// Cancellation Token to cancel the request. /// Task of List<KratosIdentity> - public async System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListIdentitiesAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListIdentitiesWithHttpInfoAsync(perPage, page, credentialsIdentifier, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListIdentitiesWithHttpInfoAsync(perPage, page, pageSize, pageToken, consistency, ids, credentialsIdentifier, previewCredentialsIdentifierSimilar, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2814,12 +2901,17 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// List Identities Lists all [identities](https://www.ory.sh/docs/kratos/concepts/identity-user-model) in the system. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) - /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up. (optional) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. (optional) + /// List of ids used to filter identities. If this list is empty, then no filter will be applied. (optional) + /// CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) + /// This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosIdentity>) - public async System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), string credentialsIdentifier = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListIdentitiesWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), string consistency = default(string), List ids = default(List), string credentialsIdentifier = default(string), string previewCredentialsIdentifierSimilar = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2852,10 +2944,30 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } + if (consistency != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "consistency", consistency)); + } + if (ids != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("multi", "ids", ids)); + } if (credentialsIdentifier != null) { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "credentials_identifier", credentialsIdentifier)); } + if (previewCredentialsIdentifierSimilar != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "preview_credentials_identifier_similar", previewCredentialsIdentifierSimilar)); + } // authentication (oryAccessToken) required if (!string.IsNullOrEmpty(this.Configuration.GetApiKeyWithPrefix("Authorization"))) @@ -2882,12 +2994,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// Get all Identity Schemas Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// List<KratosIdentitySchemaContainer> - public List ListIdentitySchemas(long? perPage = default(long?), long? page = default(long?)) + public List ListIdentitySchemas(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListIdentitySchemasWithHttpInfo(perPage, page); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListIdentitySchemasWithHttpInfo(perPage, page, pageSize, pageToken); return localVarResponse.Data; } @@ -2895,10 +3009,12 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// Get all Identity Schemas Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// ApiResponse of List<KratosIdentitySchemaContainer> - public Ory.Kratos.Client.Client.ApiResponse> ListIdentitySchemasWithHttpInfo(long? perPage = default(long?), long? page = default(long?)) + public Ory.Kratos.Client.Client.ApiResponse> ListIdentitySchemasWithHttpInfo(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -2930,6 +3046,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } // make the HTTP request @@ -2950,13 +3074,15 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// Get all Identity Schemas Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Cancellation Token to cancel the request. /// Task of List<KratosIdentitySchemaContainer> - public async System.Threading.Tasks.Task> ListIdentitySchemasAsync(long? perPage = default(long?), long? page = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListIdentitySchemasAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListIdentitySchemasWithHttpInfoAsync(perPage, page, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListIdentitySchemasWithHttpInfoAsync(perPage, page, pageSize, pageToken, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -2964,11 +3090,13 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// Get all Identity Schemas Returns a list of all identity schemas currently in use. /// /// Thrown when fails to make API call - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosIdentitySchemaContainer>) - public async System.Threading.Tasks.Task>> ListIdentitySchemasWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListIdentitySchemasWithHttpInfoAsync(long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { Ory.Kratos.Client.Client.RequestOptions localVarRequestOptions = new Ory.Kratos.Client.Client.RequestOptions(); @@ -3001,6 +3129,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } // make the HTTP request @@ -3023,13 +3159,15 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// List<KratosSession> - public List ListIdentitySessions(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?)) + public List ListIdentitySessions(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListIdentitySessionsWithHttpInfo(id, perPage, page, active); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = ListIdentitySessionsWithHttpInfo(id, perPage, page, pageSize, pageToken, active); return localVarResponse.Data; } @@ -3038,11 +3176,13 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// ApiResponse of List<KratosSession> - public Ory.Kratos.Client.Client.ApiResponse> ListIdentitySessionsWithHttpInfo(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?)) + public Ory.Kratos.Client.Client.ApiResponse> ListIdentitySessionsWithHttpInfo(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?)) { // verify the required parameter 'id' is set if (id == null) @@ -3081,6 +3221,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } if (active != null) { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "active", active)); @@ -3111,14 +3259,16 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// Cancellation Token to cancel the request. /// Task of List<KratosSession> - public async System.Threading.Tasks.Task> ListIdentitySessionsAsync(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task> ListIdentitySessionsAsync(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { - Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListIdentitySessionsWithHttpInfoAsync(id, perPage, page, active, cancellationToken).ConfigureAwait(false); + Ory.Kratos.Client.Client.ApiResponse> localVarResponse = await ListIdentitySessionsWithHttpInfoAsync(id, perPage, page, pageSize, pageToken, active, cancellationToken).ConfigureAwait(false); return localVarResponse.Data; } @@ -3127,12 +3277,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf /// /// Thrown when fails to make API call /// ID is the identity's ID. - /// Items per Page This is the number of items per page. (optional, default to 250) - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (optional, default to 1) + /// Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. (optional, default to 250) + /// Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. (optional) + /// Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to 250) + /// Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). (optional, default to "1") /// Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. (optional) /// Cancellation Token to cancel the request. /// Task of ApiResponse (List<KratosSession>) - public async System.Threading.Tasks.Task>> ListIdentitySessionsWithHttpInfoAsync(string id, long? perPage = default(long?), long? page = default(long?), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) + public async System.Threading.Tasks.Task>> ListIdentitySessionsWithHttpInfoAsync(string id, long? perPage = default(long?), long? page = default(long?), long? pageSize = default(long?), string pageToken = default(string), bool? active = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { // verify the required parameter 'id' is set if (id == null) @@ -3172,6 +3324,14 @@ public Ory.Kratos.Client.Client.ApiResponse GetIdentitySchemaWithHttpInf { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page", page)); } + if (pageSize != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_size", pageSize)); + } + if (pageToken != null) + { + localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "page_token", pageToken)); + } if (active != null) { localVarRequestOptions.QueryParameters.Add(Ory.Kratos.Client.Client.ClientUtils.ParameterToMultiMap("", "active", active)); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/MetadataApi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/MetadataApi.cs index d0c8b6c782f..fa81cc045b8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/MetadataApi.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Api/MetadataApi.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiClient.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiClient.cs index e12d4421b5a..a43491c1263 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiClient.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiClient.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiException.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiException.cs index 0e11e3c93b3..5e32908f267 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiException.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiException.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiResponse.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiResponse.cs index 2405a29a7b9..5b5c068035e 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiResponse.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ApiResponse.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ClientUtils.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ClientUtils.cs index 084b697c1f3..ac5c5fdffc6 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ClientUtils.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ClientUtils.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Configuration.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Configuration.cs index a2af38384df..beaf37a003f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Configuration.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Configuration.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,7 +32,7 @@ public class Configuration : IReadableConfiguration /// Version of the package. /// /// Version of the package. - public const string Version = "1.0.0"; + public const string Version = "1.1.0"; /// /// Identifier for ISO 8601 DateTime Format @@ -107,7 +107,7 @@ public class Configuration : IReadableConfiguration public Configuration() { Proxy = null; - UserAgent = "OpenAPI-Generator/1.0.0/csharp"; + UserAgent = "OpenAPI-Generator/1.1.0/csharp"; BasePath = "http://localhost"; DefaultHeaders = new ConcurrentDictionary(); ApiKey = new ConcurrentDictionary(); @@ -451,8 +451,8 @@ public static string ToDebugReport() string report = "C# SDK (Ory.Kratos.Client) Debug Report:\n"; report += " OS: " + System.Environment.OSVersion + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n"; - report += " Version of the API: v1.0.0\n"; - report += " SDK Package Version: 1.0.0\n"; + report += " Version of the API: v1.1.0\n"; + report += " SDK Package Version: 1.1.0\n"; return report; } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ExceptionFactory.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ExceptionFactory.cs index f0dc69ab03b..90343593a20 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ExceptionFactory.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ExceptionFactory.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/GlobalConfiguration.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/GlobalConfiguration.cs index 2b4af140b04..9d94c1ebbac 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/GlobalConfiguration.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/GlobalConfiguration.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/HttpMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/HttpMethod.cs index f6e5e5a9ad6..32e19d309ce 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/HttpMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/HttpMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IApiAccessor.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IApiAccessor.cs index 9eccca1fb29..e71c8f9d312 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IApiAccessor.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IApiAccessor.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IAsynchronousClient.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IAsynchronousClient.cs index fa2ec3857a5..2acc3b9e9ed 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IAsynchronousClient.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IAsynchronousClient.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IReadableConfiguration.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IReadableConfiguration.cs index 1617991a7d1..2d143bedcc4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IReadableConfiguration.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/IReadableConfiguration.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ISynchronousClient.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ISynchronousClient.cs index fdfc35d38ed..d402837f035 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ISynchronousClient.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/ISynchronousClient.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Multimap.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Multimap.cs index f7ef6d0e690..0f0414cc40c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Multimap.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/Multimap.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/OpenAPIDateConverter.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/OpenAPIDateConverter.cs index 37f9d301cb7..8fc01b9e629 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/OpenAPIDateConverter.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/OpenAPIDateConverter.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RequestOptions.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RequestOptions.cs index 98edc696afe..7aada6d9219 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RequestOptions.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RequestOptions.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RetryConfiguration.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RetryConfiguration.cs index 4120522498a..05d7b9ee38d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RetryConfiguration.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Client/RetryConfiguration.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/AbstractOpenAPISchema.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/AbstractOpenAPISchema.cs index 465823300c0..9a4b10fafc5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/AbstractOpenAPISchema.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/AbstractOpenAPISchema.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosAuthenticatorAssuranceLevel.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosAuthenticatorAssuranceLevel.cs index 802d170082c..052b81a759d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosAuthenticatorAssuranceLevel.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosAuthenticatorAssuranceLevel.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosBatchPatchIdentitiesResponse.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosBatchPatchIdentitiesResponse.cs index 80534cfd245..bb706b6a5c9 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosBatchPatchIdentitiesResponse.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosBatchPatchIdentitiesResponse.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosConsistencyRequestParameters.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosConsistencyRequestParameters.cs new file mode 100644 index 00000000000..a30b6c69363 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosConsistencyRequestParameters.cs @@ -0,0 +1,166 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// Control API consistency guarantees + /// + [DataContract(Name = "consistencyRequestParameters")] + public partial class KratosConsistencyRequestParameters : IEquatable, IValidatableObject + { + /// + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + /// + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + [JsonConverter(typeof(StringEnumConverter))] + public enum ConsistencyEnum + { + /// + /// Enum Empty for value: + /// + [EnumMember(Value = "")] + Empty = 1, + + /// + /// Enum Strong for value: strong + /// + [EnumMember(Value = "strong")] + Strong = 2, + + /// + /// Enum Eventual for value: eventual + /// + [EnumMember(Value = "eventual")] + Eventual = 3 + + } + + + /// + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + /// + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + [DataMember(Name = "consistency", EmitDefaultValue = false)] + public ConsistencyEnum? Consistency { get; set; } + /// + /// Initializes a new instance of the class. + /// + /// Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project - -replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps.. + public KratosConsistencyRequestParameters(ConsistencyEnum? consistency = default(ConsistencyEnum?)) + { + this.Consistency = consistency; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosConsistencyRequestParameters {\n"); + sb.Append(" Consistency: ").Append(Consistency).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosConsistencyRequestParameters); + } + + /// + /// Returns true if KratosConsistencyRequestParameters instances are equal + /// + /// Instance of KratosConsistencyRequestParameters to be compared + /// Boolean + public bool Equals(KratosConsistencyRequestParameters input) + { + if (input == null) + { + return false; + } + return + ( + this.Consistency == input.Consistency || + this.Consistency.Equals(input.Consistency) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Consistency.GetHashCode(); + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWith.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWith.cs index 78aa9bce6b1..5ab6ee54040 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWith.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWith.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,6 +35,18 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "continueWith")] public partial class KratosContinueWith : AbstractOpenAPISchema, IEquatable, IValidatableObject { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of KratosContinueWithRecoveryUi. + public KratosContinueWith(KratosContinueWithRecoveryUi actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + /// /// Initializes a new instance of the class /// with the class @@ -47,6 +59,18 @@ public KratosContinueWith(KratosContinueWithSetOrySessionToken actualInstance) this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); } + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of KratosContinueWithSettingsUi. + public KratosContinueWith(KratosContinueWithSettingsUi actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + /// /// Initializes a new instance of the class /// with the class @@ -73,7 +97,15 @@ public override Object ActualInstance } set { - if (value.GetType() == typeof(KratosContinueWithSetOrySessionToken)) + if (value.GetType() == typeof(KratosContinueWithRecoveryUi)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(KratosContinueWithSetOrySessionToken)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(KratosContinueWithSettingsUi)) { this._actualInstance = value; } @@ -83,11 +115,21 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: KratosContinueWithSetOrySessionToken, KratosContinueWithVerificationUi"); + throw new ArgumentException("Invalid instance found. Must be the following types: KratosContinueWithRecoveryUi, KratosContinueWithSetOrySessionToken, KratosContinueWithSettingsUi, KratosContinueWithVerificationUi"); } } } + /// + /// Get the actual instance of `KratosContinueWithRecoveryUi`. If the actual instance is not `KratosContinueWithRecoveryUi`, + /// the InvalidClassException will be thrown + /// + /// An instance of KratosContinueWithRecoveryUi + public KratosContinueWithRecoveryUi GetKratosContinueWithRecoveryUi() + { + return (KratosContinueWithRecoveryUi)this.ActualInstance; + } + /// /// Get the actual instance of `KratosContinueWithSetOrySessionToken`. If the actual instance is not `KratosContinueWithSetOrySessionToken`, /// the InvalidClassException will be thrown @@ -98,6 +140,16 @@ public KratosContinueWithSetOrySessionToken GetKratosContinueWithSetOrySessionTo return (KratosContinueWithSetOrySessionToken)this.ActualInstance; } + /// + /// Get the actual instance of `KratosContinueWithSettingsUi`. If the actual instance is not `KratosContinueWithSettingsUi`, + /// the InvalidClassException will be thrown + /// + /// An instance of KratosContinueWithSettingsUi + public KratosContinueWithSettingsUi GetKratosContinueWithSettingsUi() + { + return (KratosContinueWithSettingsUi)this.ActualInstance; + } + /// /// Get the actual instance of `KratosContinueWithVerificationUi`. If the actual instance is not `KratosContinueWithVerificationUi`, /// the InvalidClassException will be thrown @@ -146,6 +198,26 @@ public static KratosContinueWith FromJson(string jsonString) int match = 0; List matchedTypes = new List(); + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(KratosContinueWithRecoveryUi).GetProperty("AdditionalProperties") == null) + { + newKratosContinueWith = new KratosContinueWith(JsonConvert.DeserializeObject(jsonString, KratosContinueWith.SerializerSettings)); + } + else + { + newKratosContinueWith = new KratosContinueWith(JsonConvert.DeserializeObject(jsonString, KratosContinueWith.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("KratosContinueWithRecoveryUi"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into KratosContinueWithRecoveryUi: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize @@ -166,6 +238,26 @@ public static KratosContinueWith FromJson(string jsonString) System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into KratosContinueWithSetOrySessionToken: {1}", jsonString, exception.ToString())); } + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(KratosContinueWithSettingsUi).GetProperty("AdditionalProperties") == null) + { + newKratosContinueWith = new KratosContinueWith(JsonConvert.DeserializeObject(jsonString, KratosContinueWith.SerializerSettings)); + } + else + { + newKratosContinueWith = new KratosContinueWith(JsonConvert.DeserializeObject(jsonString, KratosContinueWith.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("KratosContinueWithSettingsUi"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into KratosContinueWithSettingsUi: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUi.cs new file mode 100644 index 00000000000..5138e3c13a5 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUi.cs @@ -0,0 +1,184 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// Indicates, that the UI flow could be continued by showing a recovery ui + /// + [DataContract(Name = "continueWithRecoveryUi")] + public partial class KratosContinueWithRecoveryUi : IEquatable, IValidatableObject + { + /// + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + /// + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + /// + /// Enum ShowRecoveryUi for value: show_recovery_ui + /// + [EnumMember(Value = "show_recovery_ui")] + ShowRecoveryUi = 1 + + } + + + /// + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + /// + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = false)] + public ActionEnum Action { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected KratosContinueWithRecoveryUi() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// Action will always be `show_recovery_ui` show_recovery_ui ContinueWithActionShowRecoveryUIString (required). + /// flow (required). + public KratosContinueWithRecoveryUi(ActionEnum action = default(ActionEnum), KratosContinueWithRecoveryUiFlow flow = default(KratosContinueWithRecoveryUiFlow)) + { + this.Action = action; + // to ensure "flow" is required (not null) + if (flow == null) { + throw new ArgumentNullException("flow is a required property for KratosContinueWithRecoveryUi and cannot be null"); + } + this.Flow = flow; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets Flow + /// + [DataMember(Name = "flow", IsRequired = true, EmitDefaultValue = false)] + public KratosContinueWithRecoveryUiFlow Flow { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosContinueWithRecoveryUi {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Flow: ").Append(Flow).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosContinueWithRecoveryUi); + } + + /// + /// Returns true if KratosContinueWithRecoveryUi instances are equal + /// + /// Instance of KratosContinueWithRecoveryUi to be compared + /// Boolean + public bool Equals(KratosContinueWithRecoveryUi input) + { + if (input == null) + { + return false; + } + return + ( + this.Action == input.Action || + this.Action.Equals(input.Action) + ) && + ( + this.Flow == input.Flow || + (this.Flow != null && + this.Flow.Equals(input.Flow)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Action.GetHashCode(); + if (this.Flow != null) + { + hashCode = (hashCode * 59) + this.Flow.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPagination.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUiFlow.cs similarity index 51% rename from clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPagination.cs rename to clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUiFlow.cs index 16931319b08..49b17fcc0cc 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPagination.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithRecoveryUiFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,36 +27,48 @@ namespace Ory.Kratos.Client.Model { /// - /// KratosPagination + /// KratosContinueWithRecoveryUiFlow /// - [DataContract(Name = "pagination")] - public partial class KratosPagination : IEquatable, IValidatableObject + [DataContract(Name = "continueWithRecoveryUiFlow")] + public partial class KratosContinueWithRecoveryUiFlow : IEquatable, IValidatableObject { /// - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. (default to 1). - /// Items per Page This is the number of items per page. (default to 250). - public KratosPagination(long page = 1, long perPage = 250) + [JsonConstructorAttribute] + protected KratosContinueWithRecoveryUiFlow() { - this.Page = page; - this.PerPage = perPage; + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// The ID of the recovery flow (required). + /// The URL of the recovery flow. + public KratosContinueWithRecoveryUiFlow(string id = default(string), string url = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) { + throw new ArgumentNullException("id is a required property for KratosContinueWithRecoveryUiFlow and cannot be null"); + } + this.Id = id; + this.Url = url; this.AdditionalProperties = new Dictionary(); } /// - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + /// The ID of the recovery flow /// - /// Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. - [DataMember(Name = "page", EmitDefaultValue = false)] - public long Page { get; set; } + /// The ID of the recovery flow + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)] + public string Id { get; set; } /// - /// Items per Page This is the number of items per page. + /// The URL of the recovery flow /// - /// Items per Page This is the number of items per page. - [DataMember(Name = "per_page", EmitDefaultValue = false)] - public long PerPage { get; set; } + /// The URL of the recovery flow + [DataMember(Name = "url", EmitDefaultValue = false)] + public string Url { get; set; } /// /// Gets or Sets additional properties @@ -71,9 +83,9 @@ public KratosPagination(long page = 1, long perPage = 250) public override string ToString() { StringBuilder sb = new StringBuilder(); - sb.Append("class KratosPagination {\n"); - sb.Append(" Page: ").Append(Page).Append("\n"); - sb.Append(" PerPage: ").Append(PerPage).Append("\n"); + sb.Append("class KratosContinueWithRecoveryUiFlow {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" Url: ").Append(Url).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -95,15 +107,15 @@ public virtual string ToJson() /// Boolean public override bool Equals(object input) { - return this.Equals(input as KratosPagination); + return this.Equals(input as KratosContinueWithRecoveryUiFlow); } /// - /// Returns true if KratosPagination instances are equal + /// Returns true if KratosContinueWithRecoveryUiFlow instances are equal /// - /// Instance of KratosPagination to be compared + /// Instance of KratosContinueWithRecoveryUiFlow to be compared /// Boolean - public bool Equals(KratosPagination input) + public bool Equals(KratosContinueWithRecoveryUiFlow input) { if (input == null) { @@ -111,12 +123,14 @@ public bool Equals(KratosPagination input) } return ( - this.Page == input.Page || - this.Page.Equals(input.Page) + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) ) && ( - this.PerPage == input.PerPage || - this.PerPage.Equals(input.PerPage) + this.Url == input.Url || + (this.Url != null && + this.Url.Equals(input.Url)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -130,8 +144,14 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - hashCode = (hashCode * 59) + this.Page.GetHashCode(); - hashCode = (hashCode * 59) + this.PerPage.GetHashCode(); + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.Url != null) + { + hashCode = (hashCode * 59) + this.Url.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); @@ -147,24 +167,6 @@ public override int GetHashCode() /// Validation Result public IEnumerable Validate(ValidationContext validationContext) { - // Page (long) minimum - if (this.Page < (long)1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for Page, must be a value greater than or equal to 1.", new [] { "Page" }); - } - - // PerPage (long) maximum - if (this.PerPage > (long)1000) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PerPage, must be a value less than or equal to 1000.", new [] { "PerPage" }); - } - - // PerPage (long) minimum - if (this.PerPage < (long)1) - { - yield return new System.ComponentModel.DataAnnotations.ValidationResult("Invalid value for PerPage, must be a value greater than or equal to 1.", new [] { "PerPage" }); - } - yield break; } } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSetOrySessionToken.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSetOrySessionToken.cs index 5e3595e1592..855298dd9c5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSetOrySessionToken.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSetOrySessionToken.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,9 +33,9 @@ namespace Ory.Kratos.Client.Model public partial class KratosContinueWithSetOrySessionToken : IEquatable, IValidatableObject { /// - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString /// - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString [JsonConverter(typeof(StringEnumConverter))] public enum ActionEnum { @@ -43,21 +43,15 @@ public enum ActionEnum /// Enum SetOrySessionToken for value: set_ory_session_token /// [EnumMember(Value = "set_ory_session_token")] - SetOrySessionToken = 1, - - /// - /// Enum ShowVerificationUi for value: show_verification_ui - /// - [EnumMember(Value = "show_verification_ui")] - ShowVerificationUi = 2 + SetOrySessionToken = 1 } /// - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString /// - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = false)] public ActionEnum Action { get; set; } /// @@ -71,7 +65,7 @@ protected KratosContinueWithSetOrySessionToken() /// /// Initializes a new instance of the class. /// - /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI (required). + /// Action will always be `set_ory_session_token` set_ory_session_token ContinueWithActionSetOrySessionTokenString (required). /// Token is the token of the session (required). public KratosContinueWithSetOrySessionToken(ActionEnum action = default(ActionEnum), string orySessionToken = default(string)) { diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUi.cs new file mode 100644 index 00000000000..88585403138 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUi.cs @@ -0,0 +1,184 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// Indicates, that the UI flow could be continued by showing a settings ui + /// + [DataContract(Name = "continueWithSettingsUi")] + public partial class KratosContinueWithSettingsUi : IEquatable, IValidatableObject + { + /// + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + /// + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + [JsonConverter(typeof(StringEnumConverter))] + public enum ActionEnum + { + /// + /// Enum ShowSettingsUi for value: show_settings_ui + /// + [EnumMember(Value = "show_settings_ui")] + ShowSettingsUi = 1 + + } + + + /// + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + /// + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString + [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = false)] + public ActionEnum Action { get; set; } + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected KratosContinueWithSettingsUi() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// Action will always be `show_settings_ui` show_settings_ui ContinueWithActionShowSettingsUIString (required). + /// flow (required). + public KratosContinueWithSettingsUi(ActionEnum action = default(ActionEnum), KratosContinueWithSettingsUiFlow flow = default(KratosContinueWithSettingsUiFlow)) + { + this.Action = action; + // to ensure "flow" is required (not null) + if (flow == null) { + throw new ArgumentNullException("flow is a required property for KratosContinueWithSettingsUi and cannot be null"); + } + this.Flow = flow; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Gets or Sets Flow + /// + [DataMember(Name = "flow", IsRequired = true, EmitDefaultValue = false)] + public KratosContinueWithSettingsUiFlow Flow { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosContinueWithSettingsUi {\n"); + sb.Append(" Action: ").Append(Action).Append("\n"); + sb.Append(" Flow: ").Append(Flow).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosContinueWithSettingsUi); + } + + /// + /// Returns true if KratosContinueWithSettingsUi instances are equal + /// + /// Instance of KratosContinueWithSettingsUi to be compared + /// Boolean + public bool Equals(KratosContinueWithSettingsUi input) + { + if (input == null) + { + return false; + } + return + ( + this.Action == input.Action || + this.Action.Equals(input.Action) + ) && + ( + this.Flow == input.Flow || + (this.Flow != null && + this.Flow.Equals(input.Flow)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + hashCode = (hashCode * 59) + this.Action.GetHashCode(); + if (this.Flow != null) + { + hashCode = (hashCode * 59) + this.Flow.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUiFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUiFlow.cs new file mode 100644 index 00000000000..43576cbcf8f --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithSettingsUiFlow.cs @@ -0,0 +1,155 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// KratosContinueWithSettingsUiFlow + /// + [DataContract(Name = "continueWithSettingsUiFlow")] + public partial class KratosContinueWithSettingsUiFlow : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected KratosContinueWithSettingsUiFlow() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// The ID of the settings flow (required). + public KratosContinueWithSettingsUiFlow(string id = default(string)) + { + // to ensure "id" is required (not null) + if (id == null) { + throw new ArgumentNullException("id is a required property for KratosContinueWithSettingsUiFlow and cannot be null"); + } + this.Id = id; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// The ID of the settings flow + /// + /// The ID of the settings flow + [DataMember(Name = "id", IsRequired = true, EmitDefaultValue = false)] + public string Id { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosContinueWithSettingsUiFlow {\n"); + sb.Append(" Id: ").Append(Id).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosContinueWithSettingsUiFlow); + } + + /// + /// Returns true if KratosContinueWithSettingsUiFlow instances are equal + /// + /// Instance of KratosContinueWithSettingsUiFlow to be compared + /// Boolean + public bool Equals(KratosContinueWithSettingsUiFlow input) + { + if (input == null) + { + return false; + } + return + ( + this.Id == input.Id || + (this.Id != null && + this.Id.Equals(input.Id)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Id != null) + { + hashCode = (hashCode * 59) + this.Id.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUi.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUi.cs index 574d5e1f957..3105ad1c7d9 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUi.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUi.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,31 +33,25 @@ namespace Ory.Kratos.Client.Model public partial class KratosContinueWithVerificationUi : IEquatable, IValidatableObject { /// - /// Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString /// - /// Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString [JsonConverter(typeof(StringEnumConverter))] public enum ActionEnum { - /// - /// Enum SetOrySessionToken for value: set_ory_session_token - /// - [EnumMember(Value = "set_ory_session_token")] - SetOrySessionToken = 1, - /// /// Enum ShowVerificationUi for value: show_verification_ui /// [EnumMember(Value = "show_verification_ui")] - ShowVerificationUi = 2 + ShowVerificationUi = 1 } /// - /// Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString /// - /// Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI + /// Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString [DataMember(Name = "action", IsRequired = true, EmitDefaultValue = false)] public ActionEnum Action { get; set; } /// @@ -71,7 +65,7 @@ protected KratosContinueWithVerificationUi() /// /// Initializes a new instance of the class. /// - /// Action will always be `show_verification_ui` set_ory_session_token ContinueWithActionSetOrySessionToken show_verification_ui ContinueWithActionShowVerificationUI (required). + /// Action will always be `show_verification_ui` show_verification_ui ContinueWithActionShowVerificationUIString (required). /// flow (required). public KratosContinueWithVerificationUi(ActionEnum action = default(ActionEnum), KratosContinueWithVerificationUiFlow flow = default(KratosContinueWithVerificationUiFlow)) { diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUiFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUiFlow.cs index e2e2019c078..95df3afc226 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUiFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosContinueWithVerificationUiFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageStatus.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageStatus.cs index 5cbb032d37a..da18f82d09c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageStatus.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageStatus.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageType.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageType.cs index 2ea94801603..baa8e749e3f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageType.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCourierMessageType.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateIdentityBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateIdentityBody.cs index 3e8fe9891d1..058dffbeb10 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateIdentityBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateIdentityBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "createIdentityBody")] public partial class KratosCreateIdentityBody : IEquatable, IValidatableObject { + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + /// + /// Enum Active for value: active + /// + [EnumMember(Value = "active")] + Active = 1, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 2 + + } + + + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [DataMember(Name = "state", EmitDefaultValue = false)] + public StateEnum? State { get; set; } /// /// Initializes a new instance of the class. /// @@ -48,10 +76,10 @@ protected KratosCreateIdentityBody() /// Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.. /// RecoveryAddresses contains all the addresses that can be used to recover an identity. Use this structure to import recovery addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. (required). - /// state. + /// State is the identity's state. active StateActive inactive StateInactive. /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. (required). /// VerifiableAddresses contains all the addresses that can be verified by the user. Use this structure to import verified addresses for an identity. Please keep in mind that the address needs to be represented in the Identity Schema or this field will be overwritten on the next identity update.. - public KratosCreateIdentityBody(KratosIdentityWithCredentials credentials = default(KratosIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), List recoveryAddresses = default(List), string schemaId = default(string), KratosIdentityState state = default(KratosIdentityState), Object traits = default(Object), List verifiableAddresses = default(List)) + public KratosCreateIdentityBody(KratosIdentityWithCredentials credentials = default(KratosIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), List recoveryAddresses = default(List), string schemaId = default(string), StateEnum? state = default(StateEnum?), Object traits = default(Object), List verifiableAddresses = default(List)) { // to ensure "schemaId" is required (not null) if (schemaId == null) { @@ -106,12 +134,6 @@ protected KratosCreateIdentityBody() [DataMember(Name = "schema_id", IsRequired = true, EmitDefaultValue = false)] public string SchemaId { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", EmitDefaultValue = false)] - public KratosIdentityState State { get; set; } - /// /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. /// @@ -212,8 +234,7 @@ public bool Equals(KratosCreateIdentityBody input) ) && ( this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + this.State.Equals(input.State) ) && ( this.Traits == input.Traits || @@ -258,10 +279,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SchemaId.GetHashCode(); } - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } + hashCode = (hashCode * 59) + this.State.GetHashCode(); if (this.Traits != null) { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryCodeForIdentityBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryCodeForIdentityBody.cs index 4fecbd99ec3..50ce412cb6f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryCodeForIdentityBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryCodeForIdentityBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryLinkForIdentityBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryLinkForIdentityBody.cs index 2e24f1aa6e0..713f983dcee 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryLinkForIdentityBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosCreateRecoveryLinkForIdentityBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosDeleteMySessionsCount.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosDeleteMySessionsCount.cs index ff1e9215aa7..dc5da5ebfe3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosDeleteMySessionsCount.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosDeleteMySessionsCount.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfied.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfied.cs index c8f452fb7c3..122b5908f01 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfied.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorAuthenticatorAssuranceLevelNotSatisfied.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorBrowserLocationChangeRequired.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorBrowserLocationChangeRequired.cs index 0c8885f5252..5ecd6d662f6 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorBrowserLocationChangeRequired.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorBrowserLocationChangeRequired.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorFlowReplaced.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorFlowReplaced.cs index 185c1b6fc49..f09eb75c732 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorFlowReplaced.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorFlowReplaced.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorGeneric.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorGeneric.cs index 4aa71691e60..ab3c0e80ad4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorGeneric.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosErrorGeneric.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosFlowError.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosFlowError.cs index ab83a9fffa1..a1fd6ff7671 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosFlowError.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosFlowError.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosGenericError.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosGenericError.cs index 00b08c7c099..433ad5f02ae 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosGenericError.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosGenericError.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthNotReadyStatus.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthNotReadyStatus.cs index c4ad2629fea..08c95d1cd14 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthNotReadyStatus.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthNotReadyStatus.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthStatus.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthStatus.cs index e90ebeeeea7..8f9e849419c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthStatus.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosHealthStatus.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentity.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentity.cs index 7b2c05adba2..b425e87bb30 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentity.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentity.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "identity")] public partial class KratosIdentity : IEquatable, IValidatableObject { + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + /// + /// Enum Active for value: active + /// + [EnumMember(Value = "active")] + Active = 1, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 2 + + } + + + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + /// + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive + [DataMember(Name = "state", EmitDefaultValue = false)] + public StateEnum? State { get; set; } /// /// Initializes a new instance of the class. /// @@ -48,15 +76,16 @@ protected KratosIdentity() /// ID is the identity's unique identifier. The Identity ID can not be changed and can not be chosen. This ensures future compatibility and optimization for distributed stores such as CockroachDB. (required). /// NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-. /// NullJSONRawMessage represents a json.RawMessage that works well with JSON, SQL, and Swagger and is NULLable-. + /// organizationId. /// RecoveryAddresses contains all the addresses that can be used to recover an identity.. /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. (required). /// SchemaURL is the URL of the endpoint where the identity's traits schema can be fetched from. format: url (required). - /// state. + /// State is the identity's state. This value has currently no effect. active StateActive inactive StateInactive. /// stateChangedAt. /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_url`. (required). /// UpdatedAt is a helper struct field for gobuffalo.pop.. /// VerifiableAddresses contains all the addresses that can be verified by the user.. - public KratosIdentity(DateTime createdAt = default(DateTime), Dictionary credentials = default(Dictionary), string id = default(string), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), List recoveryAddresses = default(List), string schemaId = default(string), string schemaUrl = default(string), KratosIdentityState state = default(KratosIdentityState), DateTime stateChangedAt = default(DateTime), Object traits = default(Object), DateTime updatedAt = default(DateTime), List verifiableAddresses = default(List)) + public KratosIdentity(DateTime createdAt = default(DateTime), Dictionary credentials = default(Dictionary), string id = default(string), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string organizationId = default(string), List recoveryAddresses = default(List), string schemaId = default(string), string schemaUrl = default(string), StateEnum? state = default(StateEnum?), DateTime stateChangedAt = default(DateTime), Object traits = default(Object), DateTime updatedAt = default(DateTime), List verifiableAddresses = default(List)) { // to ensure "id" is required (not null) if (id == null) { @@ -82,6 +111,7 @@ protected KratosIdentity() this.Credentials = credentials; this.MetadataAdmin = metadataAdmin; this.MetadataPublic = metadataPublic; + this.OrganizationId = organizationId; this.RecoveryAddresses = recoveryAddresses; this.State = state; this.StateChangedAt = stateChangedAt; @@ -125,6 +155,12 @@ protected KratosIdentity() [DataMember(Name = "metadata_public", EmitDefaultValue = true)] public Object MetadataPublic { get; set; } + /// + /// Gets or Sets OrganizationId + /// + [DataMember(Name = "organization_id", EmitDefaultValue = true)] + public string OrganizationId { get; set; } + /// /// RecoveryAddresses contains all the addresses that can be used to recover an identity. /// @@ -146,12 +182,6 @@ protected KratosIdentity() [DataMember(Name = "schema_url", IsRequired = true, EmitDefaultValue = false)] public string SchemaUrl { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", EmitDefaultValue = false)] - public KratosIdentityState State { get; set; } - /// /// Gets or Sets StateChangedAt /// @@ -198,6 +228,7 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" MetadataAdmin: ").Append(MetadataAdmin).Append("\n"); sb.Append(" MetadataPublic: ").Append(MetadataPublic).Append("\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); sb.Append(" RecoveryAddresses: ").Append(RecoveryAddresses).Append("\n"); sb.Append(" SchemaId: ").Append(SchemaId).Append("\n"); sb.Append(" SchemaUrl: ").Append(SchemaUrl).Append("\n"); @@ -268,6 +299,11 @@ public bool Equals(KratosIdentity input) (this.MetadataPublic != null && this.MetadataPublic.Equals(input.MetadataPublic)) ) && + ( + this.OrganizationId == input.OrganizationId || + (this.OrganizationId != null && + this.OrganizationId.Equals(input.OrganizationId)) + ) && ( this.RecoveryAddresses == input.RecoveryAddresses || this.RecoveryAddresses != null && @@ -286,8 +322,7 @@ public bool Equals(KratosIdentity input) ) && ( this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + this.State.Equals(input.State) ) && ( this.StateChangedAt == input.StateChangedAt || @@ -342,6 +377,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.MetadataPublic.GetHashCode(); } + if (this.OrganizationId != null) + { + hashCode = (hashCode * 59) + this.OrganizationId.GetHashCode(); + } if (this.RecoveryAddresses != null) { hashCode = (hashCode * 59) + this.RecoveryAddresses.GetHashCode(); @@ -354,10 +393,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SchemaUrl.GetHashCode(); } - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } + hashCode = (hashCode * 59) + this.State.GetHashCode(); if (this.StateChangedAt != null) { hashCode = (hashCode * 59) + this.StateChangedAt.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentials.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentials.cs index 48a96d30693..8073cdcc45d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentials.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentials.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,16 +32,80 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "identityCredentials")] public partial class KratosIdentityCredentials : IEquatable, IValidatableObject { + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [JsonConverter(typeof(StringEnumConverter))] + public enum TypeEnum + { + /// + /// Enum Password for value: password + /// + [EnumMember(Value = "password")] + Password = 1, + + /// + /// Enum Oidc for value: oidc + /// + [EnumMember(Value = "oidc")] + Oidc = 2, + + /// + /// Enum Totp for value: totp + /// + [EnumMember(Value = "totp")] + Totp = 3, + + /// + /// Enum LookupSecret for value: lookup_secret + /// + [EnumMember(Value = "lookup_secret")] + LookupSecret = 4, + + /// + /// Enum Webauthn for value: webauthn + /// + [EnumMember(Value = "webauthn")] + Webauthn = 5, + + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 6, + + /// + /// Enum LinkRecovery for value: link_recovery + /// + [EnumMember(Value = "link_recovery")] + LinkRecovery = 7, + + /// + /// Enum CodeRecovery for value: code_recovery + /// + [EnumMember(Value = "code_recovery")] + CodeRecovery = 8 + + } + + + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [DataMember(Name = "type", EmitDefaultValue = false)] + public TypeEnum? Type { get; set; } /// /// Initializes a new instance of the class. /// /// config. /// CreatedAt is a helper struct field for gobuffalo.pop.. /// Identifiers represents a list of unique identifiers this credential type matches.. - /// type. + /// Type discriminates between different types of credentials. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. /// UpdatedAt is a helper struct field for gobuffalo.pop.. /// Version refers to the version of the credential. Useful when changing the config schema.. - public KratosIdentityCredentials(Object config = default(Object), DateTime createdAt = default(DateTime), List identifiers = default(List), KratosIdentityCredentialsType type = default(KratosIdentityCredentialsType), DateTime updatedAt = default(DateTime), long version = default(long)) + public KratosIdentityCredentials(Object config = default(Object), DateTime createdAt = default(DateTime), List identifiers = default(List), TypeEnum? type = default(TypeEnum?), DateTime updatedAt = default(DateTime), long version = default(long)) { this.Config = config; this.CreatedAt = createdAt; @@ -72,12 +136,6 @@ public partial class KratosIdentityCredentials : IEquatable Identifiers { get; set; } - /// - /// Gets or Sets Type - /// - [DataMember(Name = "type", EmitDefaultValue = false)] - public KratosIdentityCredentialsType Type { get; set; } - /// /// UpdatedAt is a helper struct field for gobuffalo.pop. /// @@ -166,8 +224,7 @@ public bool Equals(KratosIdentityCredentials input) ) && ( this.Type == input.Type || - (this.Type != null && - this.Type.Equals(input.Type)) + this.Type.Equals(input.Type) ) && ( this.UpdatedAt == input.UpdatedAt || @@ -202,10 +259,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Identifiers.GetHashCode(); } - if (this.Type != null) - { - hashCode = (hashCode * 59) + this.Type.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Type.GetHashCode(); if (this.UpdatedAt != null) { hashCode = (hashCode * 59) + this.UpdatedAt.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsCode.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsCode.cs new file mode 100644 index 00000000000..51f4ab770a0 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsCode.cs @@ -0,0 +1,161 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// CredentialsCode represents a one time login/registration code + /// + [DataContract(Name = "identityCredentialsCode")] + public partial class KratosIdentityCredentialsCode : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + /// The type of the address for this code. + /// usedAt. + public KratosIdentityCredentialsCode(string addressType = default(string), DateTime? usedAt = default(DateTime?)) + { + this.AddressType = addressType; + this.UsedAt = usedAt; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// The type of the address for this code + /// + /// The type of the address for this code + [DataMember(Name = "address_type", EmitDefaultValue = false)] + public string AddressType { get; set; } + + /// + /// Gets or Sets UsedAt + /// + [DataMember(Name = "used_at", EmitDefaultValue = true)] + public DateTime? UsedAt { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosIdentityCredentialsCode {\n"); + sb.Append(" AddressType: ").Append(AddressType).Append("\n"); + sb.Append(" UsedAt: ").Append(UsedAt).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosIdentityCredentialsCode); + } + + /// + /// Returns true if KratosIdentityCredentialsCode instances are equal + /// + /// Instance of KratosIdentityCredentialsCode to be compared + /// Boolean + public bool Equals(KratosIdentityCredentialsCode input) + { + if (input == null) + { + return false; + } + return + ( + this.AddressType == input.AddressType || + (this.AddressType != null && + this.AddressType.Equals(input.AddressType)) + ) && + ( + this.UsedAt == input.UsedAt || + (this.UsedAt != null && + this.UsedAt.Equals(input.UsedAt)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.AddressType != null) + { + hashCode = (hashCode * 59) + this.AddressType.GetHashCode(); + } + if (this.UsedAt != null) + { + hashCode = (hashCode * 59) + this.UsedAt.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidc.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidc.cs index b3d2c5372ca..011bc0873db 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidc.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidc.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidcProvider.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidcProvider.cs index 0ae540e5358..df4e3238edb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidcProvider.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsOidcProvider.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -38,13 +38,15 @@ public partial class KratosIdentityCredentialsOidcProvider : IEquatableinitialAccessToken. /// initialIdToken. /// initialRefreshToken. + /// organization. /// provider. /// subject. - public KratosIdentityCredentialsOidcProvider(string initialAccessToken = default(string), string initialIdToken = default(string), string initialRefreshToken = default(string), string provider = default(string), string subject = default(string)) + public KratosIdentityCredentialsOidcProvider(string initialAccessToken = default(string), string initialIdToken = default(string), string initialRefreshToken = default(string), string organization = default(string), string provider = default(string), string subject = default(string)) { this.InitialAccessToken = initialAccessToken; this.InitialIdToken = initialIdToken; this.InitialRefreshToken = initialRefreshToken; + this.Organization = organization; this.Provider = provider; this.Subject = subject; this.AdditionalProperties = new Dictionary(); @@ -68,6 +70,12 @@ public partial class KratosIdentityCredentialsOidcProvider : IEquatable + /// Gets or Sets Organization + /// + [DataMember(Name = "organization", EmitDefaultValue = false)] + public string Organization { get; set; } + /// /// Gets or Sets Provider /// @@ -97,6 +105,7 @@ public override string ToString() sb.Append(" InitialAccessToken: ").Append(InitialAccessToken).Append("\n"); sb.Append(" InitialIdToken: ").Append(InitialIdToken).Append("\n"); sb.Append(" InitialRefreshToken: ").Append(InitialRefreshToken).Append("\n"); + sb.Append(" Organization: ").Append(Organization).Append("\n"); sb.Append(" Provider: ").Append(Provider).Append("\n"); sb.Append(" Subject: ").Append(Subject).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); @@ -150,6 +159,11 @@ public bool Equals(KratosIdentityCredentialsOidcProvider input) (this.InitialRefreshToken != null && this.InitialRefreshToken.Equals(input.InitialRefreshToken)) ) && + ( + this.Organization == input.Organization || + (this.Organization != null && + this.Organization.Equals(input.Organization)) + ) && ( this.Provider == input.Provider || (this.Provider != null && @@ -184,6 +198,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.InitialRefreshToken.GetHashCode(); } + if (this.Organization != null) + { + hashCode = (hashCode * 59) + this.Organization.GetHashCode(); + } if (this.Provider != null) { hashCode = (hashCode * 59) + this.Provider.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsPassword.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsPassword.cs index ec06146dd1d..4905c4d5faf 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsPassword.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsPassword.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatch.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatch.cs index 2f25274189e..1b4a9fdc0ca 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatch.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatch.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatchResponse.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatchResponse.cs index 0017a9084c7..dbc0ba769bd 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatchResponse.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityPatchResponse.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentitySchemaContainer.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentitySchemaContainer.cs index 5ba1222a9be..509590e62bb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentitySchemaContainer.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentitySchemaContainer.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityState.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityState.cs deleted file mode 100644 index dd6a00eea9a..00000000000 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityState.cs +++ /dev/null @@ -1,50 +0,0 @@ -/* - * Ory Identities API - * - * 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. - * - * The version of the OpenAPI document: v1.0.0 - * Contact: office@ory.sh - * Generated by: https://github.com/openapitools/openapi-generator.git - */ - - -using System; -using System.Collections; -using System.Collections.Generic; -using System.Collections.ObjectModel; -using System.Linq; -using System.IO; -using System.Runtime.Serialization; -using System.Text; -using System.Text.RegularExpressions; -using Newtonsoft.Json; -using Newtonsoft.Json.Converters; -using Newtonsoft.Json.Linq; -using System.ComponentModel.DataAnnotations; -using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; - -namespace Ory.Kratos.Client.Model -{ - /// - /// The state can either be `active` or `inactive`. - /// - /// The state can either be `active` or `inactive`. - [JsonConverter(typeof(StringEnumConverter))] - public enum KratosIdentityState - { - /// - /// Enum Active for value: active - /// - [EnumMember(Value = "active")] - Active = 1, - - /// - /// Enum Inactive for value: inactive - /// - [EnumMember(Value = "inactive")] - Inactive = 2 - - } - -} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentials.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentials.cs index 1c3163ba046..91fa0197598 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentials.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentials.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidc.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidc.cs index 2f1c3dc1a73..3dbc545f356 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidc.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidc.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfig.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfig.cs index f849bb84058..412cfde8f34 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfig.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfig.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfigProvider.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfigProvider.cs index 2409f2ccb5a..cfe49f5bb26 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfigProvider.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsOidcConfigProvider.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPassword.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPassword.cs index 10e30e27d33..b3e9bcc4680 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPassword.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPassword.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPasswordConfig.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPasswordConfig.cs index 2f4e99c903d..212358984f3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPasswordConfig.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityWithCredentialsPasswordConfig.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,7 +35,7 @@ public partial class KratosIdentityWithCredentialsPasswordConfig : IEquatable /// Initializes a new instance of the class. /// - /// The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format). + /// The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords). /// The password in plain text if no hash is available.. public KratosIdentityWithCredentialsPasswordConfig(string hashedPassword = default(string), string password = default(string)) { @@ -45,9 +45,9 @@ public partial class KratosIdentityWithCredentialsPasswordConfig : IEquatable - /// The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) + /// The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) /// - /// The hashed password in [PHC format]( https://www.ory.sh/docs/kratos/concepts/credentials/username-email-password#hashed-password-format) + /// The hashed password in [PHC format](https://www.ory.sh/docs/kratos/manage-identities/import-user-accounts-identities#hashed-passwords) [DataMember(Name = "hashed_password", EmitDefaultValue = false)] public string HashedPassword { get; set; } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse200.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse200.cs index 2a2960844a0..87cdbe41ad4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse200.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse200.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse2001.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse2001.cs index 9004efb0f12..878afd6d8da 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse2001.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse2001.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse503.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse503.cs index ac5b7815a81..d52b2695f5e 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse503.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosInlineResponse503.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosJsonPatch.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosJsonPatch.cs index 5965aa5c5bb..8163de8658d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosJsonPatch.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosJsonPatch.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlow.cs index 69d31b29769..149361f49e8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,70 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "loginFlow")] public partial class KratosLoginFlow : IEquatable, IValidatableObject { + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [JsonConverter(typeof(StringEnumConverter))] + public enum ActiveEnum + { + /// + /// Enum Password for value: password + /// + [EnumMember(Value = "password")] + Password = 1, + + /// + /// Enum Oidc for value: oidc + /// + [EnumMember(Value = "oidc")] + Oidc = 2, + + /// + /// Enum Totp for value: totp + /// + [EnumMember(Value = "totp")] + Totp = 3, + + /// + /// Enum LookupSecret for value: lookup_secret + /// + [EnumMember(Value = "lookup_secret")] + LookupSecret = 4, + + /// + /// Enum Webauthn for value: webauthn + /// + [EnumMember(Value = "webauthn")] + Webauthn = 5, + + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 6, + + /// + /// Enum LinkRecovery for value: link_recovery + /// + [EnumMember(Value = "link_recovery")] + LinkRecovery = 7, + + /// + /// Enum CodeRecovery for value: code_recovery + /// + [EnumMember(Value = "code_recovery")] + CodeRecovery = 8 + + } + + + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [DataMember(Name = "active", EmitDefaultValue = false)] + public ActiveEnum? Active { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,22 +107,24 @@ protected KratosLoginFlow() /// /// Initializes a new instance of the class. /// - /// active. + /// The active login method If set contains the login method used. If the flow is new, it is unset. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. /// CreatedAt is a helper struct field for gobuffalo.pop.. /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required). /// ID represents the flow's unique ID. When performing the login flow, this represents the id in the login UI's query parameter: http://<selfservice.flows.login.ui_url>/?flow=<flow_id> (required). /// IssuedAt is the time (UTC) when the flow started. (required). /// Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.. /// oauth2LoginRequest. + /// organizationId. /// Refresh stores whether this login flow should enforce re-authentication.. /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required). /// requestedAal. /// ReturnTo contains the requested return_to URL.. /// SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the login flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the login flow.. + /// State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. (required). /// The flow type can either be `api` or `browser`. (required). /// ui (required). /// UpdatedAt is a helper struct field for gobuffalo.pop.. - public KratosLoginFlow(KratosIdentityCredentialsType active = default(KratosIdentityCredentialsType), DateTime createdAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), KratosOAuth2LoginRequest oauth2LoginRequest = default(KratosOAuth2LoginRequest), bool refresh = default(bool), string requestUrl = default(string), KratosAuthenticatorAssuranceLevel requestedAal = default(KratosAuthenticatorAssuranceLevel), string returnTo = default(string), string sessionTokenExchangeCode = default(string), string type = default(string), KratosUiContainer ui = default(KratosUiContainer), DateTime updatedAt = default(DateTime)) + public KratosLoginFlow(ActiveEnum? active = default(ActiveEnum?), DateTime createdAt = default(DateTime), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), KratosOAuth2LoginRequest oauth2LoginRequest = default(KratosOAuth2LoginRequest), string organizationId = default(string), bool refresh = default(bool), string requestUrl = default(string), KratosAuthenticatorAssuranceLevel requestedAal = default(KratosAuthenticatorAssuranceLevel), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object state = default(Object), string type = default(string), KratosUiContainer ui = default(KratosUiContainer), DateTime updatedAt = default(DateTime)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -72,6 +138,11 @@ protected KratosLoginFlow() throw new ArgumentNullException("requestUrl is a required property for KratosLoginFlow and cannot be null"); } this.RequestUrl = requestUrl; + // to ensure "state" is required (not null) + if (state == null) { + throw new ArgumentNullException("state is a required property for KratosLoginFlow and cannot be null"); + } + this.State = state; // to ensure "type" is required (not null) if (type == null) { throw new ArgumentNullException("type is a required property for KratosLoginFlow and cannot be null"); @@ -86,6 +157,7 @@ protected KratosLoginFlow() this.CreatedAt = createdAt; this.Oauth2LoginChallenge = oauth2LoginChallenge; this.Oauth2LoginRequest = oauth2LoginRequest; + this.OrganizationId = organizationId; this.Refresh = refresh; this.RequestedAal = requestedAal; this.ReturnTo = returnTo; @@ -94,12 +166,6 @@ protected KratosLoginFlow() this.AdditionalProperties = new Dictionary(); } - /// - /// Gets or Sets Active - /// - [DataMember(Name = "active", EmitDefaultValue = false)] - public KratosIdentityCredentialsType Active { get; set; } - /// /// CreatedAt is a helper struct field for gobuffalo.pop. /// @@ -141,6 +207,12 @@ protected KratosLoginFlow() [DataMember(Name = "oauth2_login_request", EmitDefaultValue = false)] public KratosOAuth2LoginRequest Oauth2LoginRequest { get; set; } + /// + /// Gets or Sets OrganizationId + /// + [DataMember(Name = "organization_id", EmitDefaultValue = true)] + public string OrganizationId { get; set; } + /// /// Refresh stores whether this login flow should enforce re-authentication. /// @@ -175,6 +247,13 @@ protected KratosLoginFlow() [DataMember(Name = "session_token_exchange_code", EmitDefaultValue = false)] public string SessionTokenExchangeCode { get; set; } + /// + /// State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + /// + /// State represents the state of this request: choose_method: ask the user to choose a method to sign in with sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public Object State { get; set; } + /// /// The flow type can either be `api` or `browser`. /// @@ -216,11 +295,13 @@ public override string ToString() sb.Append(" IssuedAt: ").Append(IssuedAt).Append("\n"); sb.Append(" Oauth2LoginChallenge: ").Append(Oauth2LoginChallenge).Append("\n"); sb.Append(" Oauth2LoginRequest: ").Append(Oauth2LoginRequest).Append("\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); sb.Append(" Refresh: ").Append(Refresh).Append("\n"); sb.Append(" RequestUrl: ").Append(RequestUrl).Append("\n"); sb.Append(" RequestedAal: ").Append(RequestedAal).Append("\n"); sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" SessionTokenExchangeCode: ").Append(SessionTokenExchangeCode).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Ui: ").Append(Ui).Append("\n"); sb.Append(" UpdatedAt: ").Append(UpdatedAt).Append("\n"); @@ -262,8 +343,7 @@ public bool Equals(KratosLoginFlow input) return ( this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) + this.Active.Equals(input.Active) ) && ( this.CreatedAt == input.CreatedAt || @@ -295,6 +375,11 @@ public bool Equals(KratosLoginFlow input) (this.Oauth2LoginRequest != null && this.Oauth2LoginRequest.Equals(input.Oauth2LoginRequest)) ) && + ( + this.OrganizationId == input.OrganizationId || + (this.OrganizationId != null && + this.OrganizationId.Equals(input.OrganizationId)) + ) && ( this.Refresh == input.Refresh || this.Refresh.Equals(input.Refresh) @@ -319,6 +404,11 @@ public bool Equals(KratosLoginFlow input) (this.SessionTokenExchangeCode != null && this.SessionTokenExchangeCode.Equals(input.SessionTokenExchangeCode)) ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && ( this.Type == input.Type || (this.Type != null && @@ -346,10 +436,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Active != null) - { - hashCode = (hashCode * 59) + this.Active.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Active.GetHashCode(); if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); @@ -374,6 +461,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Oauth2LoginRequest.GetHashCode(); } + if (this.OrganizationId != null) + { + hashCode = (hashCode * 59) + this.OrganizationId.GetHashCode(); + } hashCode = (hashCode * 59) + this.Refresh.GetHashCode(); if (this.RequestUrl != null) { @@ -391,6 +482,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SessionTokenExchangeCode.GetHashCode(); } + if (this.State != null) + { + hashCode = (hashCode * 59) + this.State.GetHashCode(); + } if (this.Type != null) { hashCode = (hashCode * 59) + this.Type.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlowState.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlowState.cs new file mode 100644 index 00000000000..5a850aae1e4 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLoginFlowState.cs @@ -0,0 +1,56 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + /// + /// The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + [JsonConverter(typeof(StringEnumConverter))] + public enum KratosLoginFlowState + { + /// + /// Enum ChooseMethod for value: choose_method + /// + [EnumMember(Value = "choose_method")] + ChooseMethod = 1, + + /// + /// Enum SentEmail for value: sent_email + /// + [EnumMember(Value = "sent_email")] + SentEmail = 2, + + /// + /// Enum PassedChallenge for value: passed_challenge + /// + [EnumMember(Value = "passed_challenge")] + PassedChallenge = 3 + + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLogoutFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLogoutFlow.cs index 2e458c04463..bf4e2a94ed1 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLogoutFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosLogoutFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessage.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessage.cs index 1c09fc1825a..ec55809c579 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessage.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessage.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -33,9 +33,9 @@ namespace Ory.Kratos.Client.Model public partial class KratosMessage : IEquatable, IValidatableObject { /// - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid /// - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid [JsonConverter(typeof(StringEnumConverter))] public enum TemplateTypeEnum { @@ -88,24 +88,30 @@ public enum TemplateTypeEnum VerificationCodeValid = 8, /// - /// Enum Otp for value: otp + /// Enum Stub for value: stub /// - [EnumMember(Value = "otp")] - Otp = 9, + [EnumMember(Value = "stub")] + Stub = 9, /// - /// Enum Stub for value: stub + /// Enum LoginCodeValid for value: login_code_valid /// - [EnumMember(Value = "stub")] - Stub = 10 + [EnumMember(Value = "login_code_valid")] + LoginCodeValid = 10, + + /// + /// Enum RegistrationCodeValid for value: registration_code_valid + /// + [EnumMember(Value = "registration_code_valid")] + RegistrationCodeValid = 11 } /// - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid /// - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid [DataMember(Name = "template_type", IsRequired = true, EmitDefaultValue = false)] public TemplateTypeEnum TemplateType { get; set; } /// @@ -120,6 +126,7 @@ protected KratosMessage() /// Initializes a new instance of the class. /// /// body (required). + /// channel. /// CreatedAt is a helper struct field for gobuffalo.pop. (required). /// Dispatches store information about the attempts of delivering a message May contain an error if any happened, or just the `success` state.. /// id (required). @@ -127,10 +134,10 @@ protected KratosMessage() /// sendCount (required). /// status (required). /// subject (required). - /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid otp TypeOTP stub TypeTestStub (required). + /// recovery_invalid TypeRecoveryInvalid recovery_valid TypeRecoveryValid recovery_code_invalid TypeRecoveryCodeInvalid recovery_code_valid TypeRecoveryCodeValid verification_invalid TypeVerificationInvalid verification_valid TypeVerificationValid verification_code_invalid TypeVerificationCodeInvalid verification_code_valid TypeVerificationCodeValid stub TypeTestStub login_code_valid TypeLoginCodeValid registration_code_valid TypeRegistrationCodeValid (required). /// type (required). /// UpdatedAt is a helper struct field for gobuffalo.pop. (required). - public KratosMessage(string body = default(string), DateTime createdAt = default(DateTime), List dispatches = default(List), string id = default(string), string recipient = default(string), long sendCount = default(long), KratosCourierMessageStatus status = default(KratosCourierMessageStatus), string subject = default(string), TemplateTypeEnum templateType = default(TemplateTypeEnum), KratosCourierMessageType type = default(KratosCourierMessageType), DateTime updatedAt = default(DateTime)) + public KratosMessage(string body = default(string), string channel = default(string), DateTime createdAt = default(DateTime), List dispatches = default(List), string id = default(string), string recipient = default(string), long sendCount = default(long), KratosCourierMessageStatus status = default(KratosCourierMessageStatus), string subject = default(string), TemplateTypeEnum templateType = default(TemplateTypeEnum), KratosCourierMessageType type = default(KratosCourierMessageType), DateTime updatedAt = default(DateTime)) { // to ensure "body" is required (not null) if (body == null) { @@ -166,6 +173,7 @@ protected KratosMessage() } this.Type = type; this.UpdatedAt = updatedAt; + this.Channel = channel; this.Dispatches = dispatches; this.AdditionalProperties = new Dictionary(); } @@ -176,6 +184,12 @@ protected KratosMessage() [DataMember(Name = "body", IsRequired = true, EmitDefaultValue = false)] public string Body { get; set; } + /// + /// Gets or Sets Channel + /// + [DataMember(Name = "channel", EmitDefaultValue = false)] + public string Channel { get; set; } + /// /// CreatedAt is a helper struct field for gobuffalo.pop. /// @@ -248,6 +262,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class KratosMessage {\n"); sb.Append(" Body: ").Append(Body).Append("\n"); + sb.Append(" Channel: ").Append(Channel).Append("\n"); sb.Append(" CreatedAt: ").Append(CreatedAt).Append("\n"); sb.Append(" Dispatches: ").Append(Dispatches).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); @@ -299,6 +314,11 @@ public bool Equals(KratosMessage input) (this.Body != null && this.Body.Equals(input.Body)) ) && + ( + this.Channel == input.Channel || + (this.Channel != null && + this.Channel.Equals(input.Channel)) + ) && ( this.CreatedAt == input.CreatedAt || (this.CreatedAt != null && @@ -364,6 +384,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Body.GetHashCode(); } + if (this.Channel != null) + { + hashCode = (hashCode * 59) + this.Channel.GetHashCode(); + } if (this.CreatedAt != null) { hashCode = (hashCode * 59) + this.CreatedAt.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessageDispatch.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessageDispatch.cs index 7848d7c1e0f..5a606efe38d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessageDispatch.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosMessageDispatch.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosNeedsPrivilegedSessionError.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosNeedsPrivilegedSessionError.cs index 4ea947cbae2..38354ac03fe 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosNeedsPrivilegedSessionError.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosNeedsPrivilegedSessionError.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2Client.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2Client.cs index 8c377a62048..d1c640a6bed 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2Client.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2Client.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,6 +35,7 @@ public partial class KratosOAuth2Client : IEquatable, IValid /// /// Initializes a new instance of the class. /// + /// OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`.. /// allowedCorsOrigins. /// audience. /// Specify a time duration in milliseconds, seconds, minutes, hours.. @@ -43,7 +44,7 @@ public partial class KratosOAuth2Client : IEquatable, IValid /// OpenID Connect Back-Channel Logout Session Required Boolean value specifying whether the RP requires that a sid (session ID) Claim be included in the Logout Token to identify the RP session with the OP when the backchannel_logout_uri is used. If omitted, the default value is false.. /// OpenID Connect Back-Channel Logout URI RP URL that will cause the RP to log itself out when sent a Logout Token by the OP.. /// Specify a time duration in milliseconds, seconds, minutes, hours.. - /// OAuth 2.0 Client ID The ID is autogenerated and immutable.. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated.. /// OAuth 2.0 Client Name The human-readable name of the client to be presented to the end-user during authorization.. /// OAuth 2.0 Client Secret The secret will be included in the create request as cleartext, and then never again. The secret is kept in hashed format and is not recoverable once lost.. /// OAuth 2.0 Client Secret Expires At The field is currently not supported and its value is always 0.. @@ -74,14 +75,17 @@ public partial class KratosOAuth2Client : IEquatable, IValid /// responseTypes. /// OAuth 2.0 Client Scope Scope is a string containing a space-separated list of scope values (as described in Section 3.3 of OAuth 2.0 [RFC6749]) that the client can use when requesting access tokens.. /// OpenID Connect Sector Identifier URI URL using the https scheme to be used in calculating Pseudonymous Identifiers by the OP. The URL references a file with a single JSON array of redirect_uri values.. + /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API.. + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API.. /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`.. - /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.. + /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets.. /// OAuth 2.0 Token Endpoint Signing Algorithm Requested Client Authentication signing algorithm for the Token Endpoint.. /// OAuth 2.0 Client Terms of Service URI A URL string pointing to a human-readable terms of service document for the client that describes a contractual relationship between the end-user and the client that the end-user accepts when authorizing the client.. /// OAuth 2.0 Client Last Update Date UpdatedAt returns the timestamp of the last update.. /// OpenID Connect Request Userinfo Signed Response Algorithm JWS alg algorithm [JWA] REQUIRED for signing UserInfo Responses. If this is specified, the response will be JWT [JWT] serialized, and signed using JWS. The default, if omitted, is for the UserInfo Response to return the Claims as a UTF-8 encoded JSON object using the application/json content-type.. - public KratosOAuth2Client(List allowedCorsOrigins = default(List), List audience = default(List), string authorizationCodeGrantAccessTokenLifespan = default(string), string authorizationCodeGrantIdTokenLifespan = default(string), string authorizationCodeGrantRefreshTokenLifespan = default(string), bool backchannelLogoutSessionRequired = default(bool), string backchannelLogoutUri = default(string), string clientCredentialsGrantAccessTokenLifespan = default(string), string clientId = default(string), string clientName = default(string), string clientSecret = default(string), long clientSecretExpiresAt = default(long), string clientUri = default(string), List contacts = default(List), DateTime createdAt = default(DateTime), bool frontchannelLogoutSessionRequired = default(bool), string frontchannelLogoutUri = default(string), List grantTypes = default(List), string implicitGrantAccessTokenLifespan = default(string), string implicitGrantIdTokenLifespan = default(string), Object jwks = default(Object), string jwksUri = default(string), string jwtBearerGrantAccessTokenLifespan = default(string), string logoUri = default(string), Object metadata = default(Object), string owner = default(string), string policyUri = default(string), List postLogoutRedirectUris = default(List), List redirectUris = default(List), string refreshTokenGrantAccessTokenLifespan = default(string), string refreshTokenGrantIdTokenLifespan = default(string), string refreshTokenGrantRefreshTokenLifespan = default(string), string registrationAccessToken = default(string), string registrationClientUri = default(string), string requestObjectSigningAlg = default(string), List requestUris = default(List), List responseTypes = default(List), string scope = default(string), string sectorIdentifierUri = default(string), string subjectType = default(string), string tokenEndpointAuthMethod = default(string), string tokenEndpointAuthSigningAlg = default(string), string tosUri = default(string), DateTime updatedAt = default(DateTime), string userinfoSignedResponseAlg = default(string)) + public KratosOAuth2Client(string accessTokenStrategy = default(string), List allowedCorsOrigins = default(List), List audience = default(List), string authorizationCodeGrantAccessTokenLifespan = default(string), string authorizationCodeGrantIdTokenLifespan = default(string), string authorizationCodeGrantRefreshTokenLifespan = default(string), bool backchannelLogoutSessionRequired = default(bool), string backchannelLogoutUri = default(string), string clientCredentialsGrantAccessTokenLifespan = default(string), string clientId = default(string), string clientName = default(string), string clientSecret = default(string), long clientSecretExpiresAt = default(long), string clientUri = default(string), List contacts = default(List), DateTime createdAt = default(DateTime), bool frontchannelLogoutSessionRequired = default(bool), string frontchannelLogoutUri = default(string), List grantTypes = default(List), string implicitGrantAccessTokenLifespan = default(string), string implicitGrantIdTokenLifespan = default(string), Object jwks = default(Object), string jwksUri = default(string), string jwtBearerGrantAccessTokenLifespan = default(string), string logoUri = default(string), Object metadata = default(Object), string owner = default(string), string policyUri = default(string), List postLogoutRedirectUris = default(List), List redirectUris = default(List), string refreshTokenGrantAccessTokenLifespan = default(string), string refreshTokenGrantIdTokenLifespan = default(string), string refreshTokenGrantRefreshTokenLifespan = default(string), string registrationAccessToken = default(string), string registrationClientUri = default(string), string requestObjectSigningAlg = default(string), List requestUris = default(List), List responseTypes = default(List), string scope = default(string), string sectorIdentifierUri = default(string), bool skipConsent = default(bool), bool skipLogoutConsent = default(bool), string subjectType = default(string), string tokenEndpointAuthMethod = default(string), string tokenEndpointAuthSigningAlg = default(string), string tosUri = default(string), DateTime updatedAt = default(DateTime), string userinfoSignedResponseAlg = default(string)) { + this.AccessTokenStrategy = accessTokenStrategy; this.AllowedCorsOrigins = allowedCorsOrigins; this.Audience = audience; this.AuthorizationCodeGrantAccessTokenLifespan = authorizationCodeGrantAccessTokenLifespan; @@ -121,6 +125,8 @@ public partial class KratosOAuth2Client : IEquatable, IValid this.ResponseTypes = responseTypes; this.Scope = scope; this.SectorIdentifierUri = sectorIdentifierUri; + this.SkipConsent = skipConsent; + this.SkipLogoutConsent = skipLogoutConsent; this.SubjectType = subjectType; this.TokenEndpointAuthMethod = tokenEndpointAuthMethod; this.TokenEndpointAuthSigningAlg = tokenEndpointAuthSigningAlg; @@ -130,6 +136,13 @@ public partial class KratosOAuth2Client : IEquatable, IValid this.AdditionalProperties = new Dictionary(); } + /// + /// OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. + /// + /// OAuth 2.0 Access Token Strategy AccessTokenStrategy is the strategy used to generate access tokens. Valid options are `jwt` and `opaque`. `jwt` is a bad idea, see https://www.ory.sh/docs/hydra/advanced#json-web-tokens Setting the stragegy here overrides the global setting in `strategies.access_token`. + [DataMember(Name = "access_token_strategy", EmitDefaultValue = false)] + public string AccessTokenStrategy { get; set; } + /// /// Gets or Sets AllowedCorsOrigins /// @@ -185,9 +198,9 @@ public partial class KratosOAuth2Client : IEquatable, IValid public string ClientCredentialsGrantAccessTokenLifespan { get; set; } /// - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. /// - /// OAuth 2.0 Client ID The ID is autogenerated and immutable. + /// OAuth 2.0 Client ID The ID is immutable. If no ID is provided, a UUID4 will be generated. [DataMember(Name = "client_id", EmitDefaultValue = false)] public string ClientId { get; set; } @@ -394,6 +407,20 @@ public partial class KratosOAuth2Client : IEquatable, IValid [DataMember(Name = "sector_identifier_uri", EmitDefaultValue = false)] public string SectorIdentifierUri { get; set; } + /// + /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API. + /// + /// SkipConsent skips the consent screen for this client. This field can only be set from the admin API. + [DataMember(Name = "skip_consent", EmitDefaultValue = true)] + public bool SkipConsent { get; set; } + + /// + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + /// + /// SkipLogoutConsent skips the logout consent screen for this client. This field can only be set from the admin API. + [DataMember(Name = "skip_logout_consent", EmitDefaultValue = true)] + public bool SkipLogoutConsent { get; set; } + /// /// OpenID Connect Subject Type The `subject_types_supported` Discovery parameter contains a list of the supported subject_type values for this server. Valid types include `pairwise` and `public`. /// @@ -402,9 +429,9 @@ public partial class KratosOAuth2Client : IEquatable, IValid public string SubjectType { get; set; } /// - /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. + /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. /// - /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_post`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `client_secret_basic`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. + /// OAuth 2.0 Token Endpoint Authentication Method Requested Client Authentication method for the Token Endpoint. The options are: `client_secret_basic`: (default) Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` encoded in the HTTP Authorization header. `client_secret_post`: Send `client_id` and `client_secret` as `application/x-www-form-urlencoded` in the HTTP body. `private_key_jwt`: Use JSON Web Tokens to authenticate the client. `none`: Used for public clients (native apps, mobile apps) which can not have secrets. [DataMember(Name = "token_endpoint_auth_method", EmitDefaultValue = false)] public string TokenEndpointAuthMethod { get; set; } @@ -450,6 +477,7 @@ public override string ToString() { StringBuilder sb = new StringBuilder(); sb.Append("class KratosOAuth2Client {\n"); + sb.Append(" AccessTokenStrategy: ").Append(AccessTokenStrategy).Append("\n"); sb.Append(" AllowedCorsOrigins: ").Append(AllowedCorsOrigins).Append("\n"); sb.Append(" Audience: ").Append(Audience).Append("\n"); sb.Append(" AuthorizationCodeGrantAccessTokenLifespan: ").Append(AuthorizationCodeGrantAccessTokenLifespan).Append("\n"); @@ -489,6 +517,8 @@ public override string ToString() sb.Append(" ResponseTypes: ").Append(ResponseTypes).Append("\n"); sb.Append(" Scope: ").Append(Scope).Append("\n"); sb.Append(" SectorIdentifierUri: ").Append(SectorIdentifierUri).Append("\n"); + sb.Append(" SkipConsent: ").Append(SkipConsent).Append("\n"); + sb.Append(" SkipLogoutConsent: ").Append(SkipLogoutConsent).Append("\n"); sb.Append(" SubjectType: ").Append(SubjectType).Append("\n"); sb.Append(" TokenEndpointAuthMethod: ").Append(TokenEndpointAuthMethod).Append("\n"); sb.Append(" TokenEndpointAuthSigningAlg: ").Append(TokenEndpointAuthSigningAlg).Append("\n"); @@ -531,6 +561,11 @@ public bool Equals(KratosOAuth2Client input) return false; } return + ( + this.AccessTokenStrategy == input.AccessTokenStrategy || + (this.AccessTokenStrategy != null && + this.AccessTokenStrategy.Equals(input.AccessTokenStrategy)) + ) && ( this.AllowedCorsOrigins == input.AllowedCorsOrigins || this.AllowedCorsOrigins != null && @@ -731,6 +766,14 @@ public bool Equals(KratosOAuth2Client input) (this.SectorIdentifierUri != null && this.SectorIdentifierUri.Equals(input.SectorIdentifierUri)) ) && + ( + this.SkipConsent == input.SkipConsent || + this.SkipConsent.Equals(input.SkipConsent) + ) && + ( + this.SkipLogoutConsent == input.SkipLogoutConsent || + this.SkipLogoutConsent.Equals(input.SkipLogoutConsent) + ) && ( this.SubjectType == input.SubjectType || (this.SubjectType != null && @@ -773,6 +816,10 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; + if (this.AccessTokenStrategy != null) + { + hashCode = (hashCode * 59) + this.AccessTokenStrategy.GetHashCode(); + } if (this.AllowedCorsOrigins != null) { hashCode = (hashCode * 59) + this.AllowedCorsOrigins.GetHashCode(); @@ -920,6 +967,8 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SectorIdentifierUri.GetHashCode(); } + hashCode = (hashCode * 59) + this.SkipConsent.GetHashCode(); + hashCode = (hashCode * 59) + this.SkipLogoutConsent.GetHashCode(); if (this.SubjectType != null) { hashCode = (hashCode * 59) + this.SubjectType.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2ConsentRequestOpenIDConnectContext.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2ConsentRequestOpenIDConnectContext.cs index a3141ca5622..d7fa8a2e084 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2ConsentRequestOpenIDConnectContext.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2ConsentRequestOpenIDConnectContext.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2LoginRequest.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2LoginRequest.cs index ab50d7a1e7a..16aee7a23ce 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2LoginRequest.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosOAuth2LoginRequest.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPatchIdentitiesBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPatchIdentitiesBody.cs index 43ad16e1060..db323813727 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPatchIdentitiesBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPatchIdentitiesBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPerformNativeLogoutBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPerformNativeLogoutBody.cs index 270532eb4d5..5dae878db5d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPerformNativeLogoutBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosPerformNativeLogoutBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryCodeForIdentity.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryCodeForIdentity.cs index c2bda50634f..f31d3275383 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryCodeForIdentity.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryCodeForIdentity.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -43,7 +43,7 @@ protected KratosRecoveryCodeForIdentity() /// /// Initializes a new instance of the class. /// - /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires.. + /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires.. /// RecoveryCode is the code that can be used to recover the account (required). /// RecoveryLink with flow This link opens the recovery UI with an empty `code` field. (required). public KratosRecoveryCodeForIdentity(DateTime expiresAt = default(DateTime), string recoveryCode = default(string), string recoveryLink = default(string)) @@ -63,9 +63,9 @@ protected KratosRecoveryCodeForIdentity() } /// - /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. + /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. /// - /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery link expires. + /// Expires At is the timestamp of when the recovery flow expires The timestamp when the recovery code expires. [DataMember(Name = "expires_at", EmitDefaultValue = false)] public DateTime ExpiresAt { get; set; } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlow.cs index c119be087bc..a95bb9bdfaa 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,15 +44,16 @@ protected KratosRecoveryFlow() /// Initializes a new instance of the class. /// /// Active, if set, contains the recovery method that is being used. It is initially not set.. + /// Contains possible actions that could follow this flow. /// ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. (required). /// ID represents the request's unique ID. When performing the recovery flow, this represents the id in the recovery ui's query parameter: http://<selfservice.flows.recovery.ui_url>?request=<id> (required). /// IssuedAt is the time (UTC) when the request occurred. (required). /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required). /// ReturnTo contains the requested return_to URL.. - /// state (required). + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. (required). /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public KratosRecoveryFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), KratosRecoveryFlowState state = default(KratosRecoveryFlowState), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) + public KratosRecoveryFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -82,6 +83,7 @@ protected KratosRecoveryFlow() } this.Ui = ui; this.Active = active; + this.ContinueWith = continueWith; this.ReturnTo = returnTo; this.AdditionalProperties = new Dictionary(); } @@ -93,6 +95,13 @@ protected KratosRecoveryFlow() [DataMember(Name = "active", EmitDefaultValue = false)] public string Active { get; set; } + /// + /// Contains possible actions that could follow this flow + /// + /// Contains possible actions that could follow this flow + [DataMember(Name = "continue_with", EmitDefaultValue = false)] + public List ContinueWith { get; set; } + /// /// ExpiresAt is the time (UTC) when the request expires. If the user still wishes to update the setting, a new request has to be initiated. /// @@ -129,10 +138,11 @@ protected KratosRecoveryFlow() public string ReturnTo { get; set; } /// - /// Gets or Sets State + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. /// - [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] - public KratosRecoveryFlowState State { get; set; } + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public Object State { get; set; } /// /// The flow type can either be `api` or `browser`. @@ -162,6 +172,7 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class KratosRecoveryFlow {\n"); sb.Append(" Active: ").Append(Active).Append("\n"); + sb.Append(" ContinueWith: ").Append(ContinueWith).Append("\n"); sb.Append(" ExpiresAt: ").Append(ExpiresAt).Append("\n"); sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" IssuedAt: ").Append(IssuedAt).Append("\n"); @@ -211,6 +222,12 @@ public bool Equals(KratosRecoveryFlow input) (this.Active != null && this.Active.Equals(input.Active)) ) && + ( + this.ContinueWith == input.ContinueWith || + this.ContinueWith != null && + input.ContinueWith != null && + this.ContinueWith.SequenceEqual(input.ContinueWith) + ) && ( this.ExpiresAt == input.ExpiresAt || (this.ExpiresAt != null && @@ -267,6 +284,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Active.GetHashCode(); } + if (this.ContinueWith != null) + { + hashCode = (hashCode * 59) + this.ContinueWith.GetHashCode(); + } if (this.ExpiresAt != null) { hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlowState.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlowState.cs index 002c89b0bf7..f561d55ebdb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlowState.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryFlowState.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryIdentityAddress.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryIdentityAddress.cs index bf9bfee4d91..2ec4c0811e8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryIdentityAddress.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryIdentityAddress.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryLinkForIdentity.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryLinkForIdentity.cs index 2b02ae3f80e..e955153586c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryLinkForIdentity.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRecoveryLinkForIdentity.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlow.cs index f03c26a2ab2..bb9d95d4873 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,70 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "registrationFlow")] public partial class KratosRegistrationFlow : IEquatable, IValidatableObject { + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [JsonConverter(typeof(StringEnumConverter))] + public enum ActiveEnum + { + /// + /// Enum Password for value: password + /// + [EnumMember(Value = "password")] + Password = 1, + + /// + /// Enum Oidc for value: oidc + /// + [EnumMember(Value = "oidc")] + Oidc = 2, + + /// + /// Enum Totp for value: totp + /// + [EnumMember(Value = "totp")] + Totp = 3, + + /// + /// Enum LookupSecret for value: lookup_secret + /// + [EnumMember(Value = "lookup_secret")] + LookupSecret = 4, + + /// + /// Enum Webauthn for value: webauthn + /// + [EnumMember(Value = "webauthn")] + Webauthn = 5, + + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 6, + + /// + /// Enum LinkRecovery for value: link_recovery + /// + [EnumMember(Value = "link_recovery")] + LinkRecovery = 7, + + /// + /// Enum CodeRecovery for value: code_recovery + /// + [EnumMember(Value = "code_recovery")] + CodeRecovery = 8 + + } + + + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + /// + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 + [DataMember(Name = "active", EmitDefaultValue = false)] + public ActiveEnum? Active { get; set; } /// /// Initializes a new instance of the class. /// @@ -43,19 +107,21 @@ protected KratosRegistrationFlow() /// /// Initializes a new instance of the class. /// - /// active. + /// Active, if set, contains the registration method that is being used. It is initially not set. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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. /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. (required). /// ID represents the flow's unique ID. When performing the registration flow, this represents the id in the registration ui's query parameter: http://<selfservice.flows.registration.ui_url>/?flow=<id> (required). /// IssuedAt is the time (UTC) when the flow occurred. (required). /// Ory OAuth 2.0 Login Challenge. This value is set using the `login_challenge` query parameter of the registration and login endpoints. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider.. /// oauth2LoginRequest. + /// organizationId. /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required). /// ReturnTo contains the requested return_to URL.. /// SessionTokenExchangeCode holds the secret code that the client can use to retrieve a session token after the flow has been completed. This is only set if the client has requested a session token exchange code, and if the flow is of type \"api\", and only on creating the flow.. + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. (required). /// TransientPayload is used to pass data from the registration to a webhook. /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public KratosRegistrationFlow(KratosIdentityCredentialsType active = default(KratosIdentityCredentialsType), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), KratosOAuth2LoginRequest oauth2LoginRequest = default(KratosOAuth2LoginRequest), string requestUrl = default(string), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object transientPayload = default(Object), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) + public KratosRegistrationFlow(ActiveEnum? active = default(ActiveEnum?), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string oauth2LoginChallenge = default(string), KratosOAuth2LoginRequest oauth2LoginRequest = default(KratosOAuth2LoginRequest), string organizationId = default(string), string requestUrl = default(string), string returnTo = default(string), string sessionTokenExchangeCode = default(string), Object state = default(Object), Object transientPayload = default(Object), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -69,6 +135,11 @@ protected KratosRegistrationFlow() throw new ArgumentNullException("requestUrl is a required property for KratosRegistrationFlow and cannot be null"); } this.RequestUrl = requestUrl; + // to ensure "state" is required (not null) + if (state == null) { + throw new ArgumentNullException("state is a required property for KratosRegistrationFlow and cannot be null"); + } + this.State = state; // to ensure "type" is required (not null) if (type == null) { throw new ArgumentNullException("type is a required property for KratosRegistrationFlow and cannot be null"); @@ -82,18 +153,13 @@ protected KratosRegistrationFlow() this.Active = active; this.Oauth2LoginChallenge = oauth2LoginChallenge; this.Oauth2LoginRequest = oauth2LoginRequest; + this.OrganizationId = organizationId; this.ReturnTo = returnTo; this.SessionTokenExchangeCode = sessionTokenExchangeCode; this.TransientPayload = transientPayload; this.AdditionalProperties = new Dictionary(); } - /// - /// Gets or Sets Active - /// - [DataMember(Name = "active", EmitDefaultValue = false)] - public KratosIdentityCredentialsType Active { get; set; } - /// /// ExpiresAt is the time (UTC) when the flow expires. If the user still wishes to log in, a new flow has to be initiated. /// @@ -128,6 +194,12 @@ protected KratosRegistrationFlow() [DataMember(Name = "oauth2_login_request", EmitDefaultValue = false)] public KratosOAuth2LoginRequest Oauth2LoginRequest { get; set; } + /// + /// Gets or Sets OrganizationId + /// + [DataMember(Name = "organization_id", EmitDefaultValue = true)] + public string OrganizationId { get; set; } + /// /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. /// @@ -149,6 +221,13 @@ protected KratosRegistrationFlow() [DataMember(Name = "session_token_exchange_code", EmitDefaultValue = false)] public string SessionTokenExchangeCode { get; set; } + /// + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + /// + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public Object State { get; set; } + /// /// TransientPayload is used to pass data from the registration to a webhook /// @@ -189,9 +268,11 @@ public override string ToString() sb.Append(" IssuedAt: ").Append(IssuedAt).Append("\n"); sb.Append(" Oauth2LoginChallenge: ").Append(Oauth2LoginChallenge).Append("\n"); sb.Append(" Oauth2LoginRequest: ").Append(Oauth2LoginRequest).Append("\n"); + sb.Append(" OrganizationId: ").Append(OrganizationId).Append("\n"); sb.Append(" RequestUrl: ").Append(RequestUrl).Append("\n"); sb.Append(" ReturnTo: ").Append(ReturnTo).Append("\n"); sb.Append(" SessionTokenExchangeCode: ").Append(SessionTokenExchangeCode).Append("\n"); + sb.Append(" State: ").Append(State).Append("\n"); sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); sb.Append(" Type: ").Append(Type).Append("\n"); sb.Append(" Ui: ").Append(Ui).Append("\n"); @@ -233,8 +314,7 @@ public bool Equals(KratosRegistrationFlow input) return ( this.Active == input.Active || - (this.Active != null && - this.Active.Equals(input.Active)) + this.Active.Equals(input.Active) ) && ( this.ExpiresAt == input.ExpiresAt || @@ -261,6 +341,11 @@ public bool Equals(KratosRegistrationFlow input) (this.Oauth2LoginRequest != null && this.Oauth2LoginRequest.Equals(input.Oauth2LoginRequest)) ) && + ( + this.OrganizationId == input.OrganizationId || + (this.OrganizationId != null && + this.OrganizationId.Equals(input.OrganizationId)) + ) && ( this.RequestUrl == input.RequestUrl || (this.RequestUrl != null && @@ -276,6 +361,11 @@ public bool Equals(KratosRegistrationFlow input) (this.SessionTokenExchangeCode != null && this.SessionTokenExchangeCode.Equals(input.SessionTokenExchangeCode)) ) && + ( + this.State == input.State || + (this.State != null && + this.State.Equals(input.State)) + ) && ( this.TransientPayload == input.TransientPayload || (this.TransientPayload != null && @@ -303,10 +393,7 @@ public override int GetHashCode() unchecked // Overflow is fine, just wrap { int hashCode = 41; - if (this.Active != null) - { - hashCode = (hashCode * 59) + this.Active.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Active.GetHashCode(); if (this.ExpiresAt != null) { hashCode = (hashCode * 59) + this.ExpiresAt.GetHashCode(); @@ -327,6 +414,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.Oauth2LoginRequest.GetHashCode(); } + if (this.OrganizationId != null) + { + hashCode = (hashCode * 59) + this.OrganizationId.GetHashCode(); + } if (this.RequestUrl != null) { hashCode = (hashCode * 59) + this.RequestUrl.GetHashCode(); @@ -339,6 +430,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SessionTokenExchangeCode.GetHashCode(); } + if (this.State != null) + { + hashCode = (hashCode * 59) + this.State.GetHashCode(); + } if (this.TransientPayload != null) { hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsType.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlowState.cs similarity index 54% rename from clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsType.cs rename to clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlowState.cs index 6ed8d8fc6e0..e1b65f8e7b7 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosIdentityCredentialsType.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosRegistrationFlowState.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -27,41 +27,29 @@ namespace Ory.Kratos.Client.Model { /// - /// and so on. + /// choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. /// - /// and so on. + /// choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. [JsonConverter(typeof(StringEnumConverter))] - public enum KratosIdentityCredentialsType + public enum KratosRegistrationFlowState { /// - /// Enum Password for value: password + /// Enum ChooseMethod for value: choose_method /// - [EnumMember(Value = "password")] - Password = 1, + [EnumMember(Value = "choose_method")] + ChooseMethod = 1, /// - /// Enum Totp for value: totp + /// Enum SentEmail for value: sent_email /// - [EnumMember(Value = "totp")] - Totp = 2, + [EnumMember(Value = "sent_email")] + SentEmail = 2, /// - /// Enum Oidc for value: oidc + /// Enum PassedChallenge for value: passed_challenge /// - [EnumMember(Value = "oidc")] - Oidc = 3, - - /// - /// Enum Webauthn for value: webauthn - /// - [EnumMember(Value = "webauthn")] - Webauthn = 4, - - /// - /// Enum LookupSecret for value: lookup_secret - /// - [EnumMember(Value = "lookup_secret")] - LookupSecret = 5 + [EnumMember(Value = "passed_challenge")] + PassedChallenge = 3 } diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSelfServiceFlowExpiredError.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSelfServiceFlowExpiredError.cs index e281c74d4f9..701d08ad4fc 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSelfServiceFlowExpiredError.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSelfServiceFlowExpiredError.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSession.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSession.cs index ef2a466938b..64af4271ba9 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSession.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSession.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -50,27 +50,25 @@ protected KratosSession() /// Devices has history of all endpoints where the session was used. /// The Session Expiry When this session expires at.. /// Session ID (required). - /// identity (required). + /// identity. /// The Session Issuance Timestamp When this session was issued at. Usually equal or close to `authenticated_at`.. - public KratosSession(bool active = default(bool), DateTime authenticatedAt = default(DateTime), List authenticationMethods = default(List), KratosAuthenticatorAssuranceLevel authenticatorAssuranceLevel = default(KratosAuthenticatorAssuranceLevel), List devices = default(List), DateTime expiresAt = default(DateTime), string id = default(string), KratosIdentity identity = default(KratosIdentity), DateTime issuedAt = default(DateTime)) + /// Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`.. + public KratosSession(bool active = default(bool), DateTime authenticatedAt = default(DateTime), List authenticationMethods = default(List), KratosAuthenticatorAssuranceLevel authenticatorAssuranceLevel = default(KratosAuthenticatorAssuranceLevel), List devices = default(List), DateTime expiresAt = default(DateTime), string id = default(string), KratosIdentity identity = default(KratosIdentity), DateTime issuedAt = default(DateTime), string tokenized = default(string)) { // to ensure "id" is required (not null) if (id == null) { throw new ArgumentNullException("id is a required property for KratosSession and cannot be null"); } this.Id = id; - // to ensure "identity" is required (not null) - if (identity == null) { - throw new ArgumentNullException("identity is a required property for KratosSession and cannot be null"); - } - this.Identity = identity; this.Active = active; this.AuthenticatedAt = authenticatedAt; this.AuthenticationMethods = authenticationMethods; this.AuthenticatorAssuranceLevel = authenticatorAssuranceLevel; this.Devices = devices; this.ExpiresAt = expiresAt; + this.Identity = identity; this.IssuedAt = issuedAt; + this.Tokenized = tokenized; this.AdditionalProperties = new Dictionary(); } @@ -125,7 +123,7 @@ protected KratosSession() /// /// Gets or Sets Identity /// - [DataMember(Name = "identity", IsRequired = true, EmitDefaultValue = false)] + [DataMember(Name = "identity", EmitDefaultValue = false)] public KratosIdentity Identity { get; set; } /// @@ -135,6 +133,13 @@ protected KratosSession() [DataMember(Name = "issued_at", EmitDefaultValue = false)] public DateTime IssuedAt { get; set; } + /// + /// Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. + /// + /// Tokenized is the tokenized (e.g. JWT) version of the session. It is only set when the `tokenize` query parameter was set to a valid tokenize template during calls to `/session/whoami`. + [DataMember(Name = "tokenized", EmitDefaultValue = false)] + public string Tokenized { get; set; } + /// /// Gets or Sets additional properties /// @@ -158,6 +163,7 @@ public override string ToString() sb.Append(" Id: ").Append(Id).Append("\n"); sb.Append(" Identity: ").Append(Identity).Append("\n"); sb.Append(" IssuedAt: ").Append(IssuedAt).Append("\n"); + sb.Append(" Tokenized: ").Append(Tokenized).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); return sb.ToString(); @@ -239,6 +245,11 @@ public bool Equals(KratosSession input) this.IssuedAt == input.IssuedAt || (this.IssuedAt != null && this.IssuedAt.Equals(input.IssuedAt)) + ) && + ( + this.Tokenized == input.Tokenized || + (this.Tokenized != null && + this.Tokenized.Equals(input.Tokenized)) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -285,6 +296,10 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.IssuedAt.GetHashCode(); } + if (this.Tokenized != null) + { + hashCode = (hashCode * 59) + this.Tokenized.GetHashCode(); + } if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionAuthenticationMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionAuthenticationMethod.cs index 558a2d0d573..c1af0d77e50 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionAuthenticationMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionAuthenticationMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -56,35 +56,41 @@ public enum MethodEnum [EnumMember(Value = "password")] Password = 3, + /// + /// Enum Code for value: code + /// + [EnumMember(Value = "code")] + Code = 4, + /// /// Enum Totp for value: totp /// [EnumMember(Value = "totp")] - Totp = 4, + Totp = 5, /// /// Enum Oidc for value: oidc /// [EnumMember(Value = "oidc")] - Oidc = 5, + Oidc = 6, /// /// Enum Webauthn for value: webauthn /// [EnumMember(Value = "webauthn")] - Webauthn = 6, + Webauthn = 7, /// /// Enum LookupSecret for value: lookup_secret /// [EnumMember(Value = "lookup_secret")] - LookupSecret = 7, + LookupSecret = 8, /// /// Enum V06LegacySession for value: v0.6_legacy_session /// [EnumMember(Value = "v0.6_legacy_session")] - V06LegacySession = 8 + V06LegacySession = 9 } @@ -100,12 +106,14 @@ public enum MethodEnum /// aal. /// When the authentication challenge was completed.. /// method. + /// The Organization id used for authentication. /// OIDC or SAML provider id used for authentication. - public KratosSessionAuthenticationMethod(KratosAuthenticatorAssuranceLevel aal = default(KratosAuthenticatorAssuranceLevel), DateTime completedAt = default(DateTime), MethodEnum? method = default(MethodEnum?), string provider = default(string)) + public KratosSessionAuthenticationMethod(KratosAuthenticatorAssuranceLevel aal = default(KratosAuthenticatorAssuranceLevel), DateTime completedAt = default(DateTime), MethodEnum? method = default(MethodEnum?), string organization = default(string), string provider = default(string)) { this.Aal = aal; this.CompletedAt = completedAt; this.Method = method; + this.Organization = organization; this.Provider = provider; this.AdditionalProperties = new Dictionary(); } @@ -123,6 +131,13 @@ public enum MethodEnum [DataMember(Name = "completed_at", EmitDefaultValue = false)] public DateTime CompletedAt { get; set; } + /// + /// The Organization id used for authentication + /// + /// The Organization id used for authentication + [DataMember(Name = "organization", EmitDefaultValue = false)] + public string Organization { get; set; } + /// /// OIDC or SAML provider id used for authentication /// @@ -147,6 +162,7 @@ public override string ToString() sb.Append(" Aal: ").Append(Aal).Append("\n"); sb.Append(" CompletedAt: ").Append(CompletedAt).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Organization: ").Append(Organization).Append("\n"); sb.Append(" Provider: ").Append(Provider).Append("\n"); sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); sb.Append("}\n"); @@ -198,6 +214,11 @@ public bool Equals(KratosSessionAuthenticationMethod input) this.Method == input.Method || this.Method.Equals(input.Method) ) && + ( + this.Organization == input.Organization || + (this.Organization != null && + this.Organization.Equals(input.Organization)) + ) && ( this.Provider == input.Provider || (this.Provider != null && @@ -224,6 +245,10 @@ public override int GetHashCode() hashCode = (hashCode * 59) + this.CompletedAt.GetHashCode(); } hashCode = (hashCode * 59) + this.Method.GetHashCode(); + if (this.Organization != null) + { + hashCode = (hashCode * 59) + this.Organization.GetHashCode(); + } if (this.Provider != null) { hashCode = (hashCode * 59) + this.Provider.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionDevice.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionDevice.cs index 1f8ecbbacee..8db3cf3f9c7 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionDevice.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSessionDevice.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlow.cs index 912348d86d5..f7338e659b4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -51,10 +51,10 @@ protected KratosSettingsFlow() /// IssuedAt is the time (UTC) when the flow occurred. (required). /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example. (required). /// ReturnTo contains the requested return_to URL.. - /// state (required). + /// State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. (required). /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public KratosSettingsFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), KratosIdentity identity = default(KratosIdentity), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), KratosSettingsFlowState state = default(KratosSettingsFlowState), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) + public KratosSettingsFlow(string active = default(string), List continueWith = default(List), DateTime expiresAt = default(DateTime), string id = default(string), KratosIdentity identity = default(KratosIdentity), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) { this.ExpiresAt = expiresAt; // to ensure "id" is required (not null) @@ -150,10 +150,11 @@ protected KratosSettingsFlow() public string ReturnTo { get; set; } /// - /// Gets or Sets State + /// State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. /// - [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] - public KratosSettingsFlowState State { get; set; } + /// State represents the state of this flow. It knows two states: show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public Object State { get; set; } /// /// The flow type can either be `api` or `browser`. diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlowState.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlowState.cs index 0228ac3268c..b3ad59d9156 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlowState.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSettingsFlowState.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulCodeExchangeResponse.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulCodeExchangeResponse.cs index e544dd27265..5bb3c177898 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulCodeExchangeResponse.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulCodeExchangeResponse.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeLogin.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeLogin.cs index ab15430d588..e594178cf88 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeLogin.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeLogin.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeRegistration.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeRegistration.cs index 226385a0a62..ee911e775e2 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeRegistration.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosSuccessfulNativeRegistration.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPagination.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPagination.cs index 1944ac3d688..b5afae2295d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPagination.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPagination.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPaginationHeaders.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPaginationHeaders.cs index a1561224250..2fda089dfdb 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPaginationHeaders.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosTokenPaginationHeaders.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiContainer.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiContainer.cs index a94f97139d2..49df75172a6 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiContainer.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiContainer.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNode.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNode.cs index 8f8e0226423..58f962d7c4f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNode.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNode.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAnchorAttributes.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAnchorAttributes.cs index f154b509d0e..184c6df9aed 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAnchorAttributes.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAnchorAttributes.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAttributes.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAttributes.cs index d3e8f41b15c..dd6e12f01e0 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAttributes.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeAttributes.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeImageAttributes.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeImageAttributes.cs index c956be3aea6..816be9fb496 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeImageAttributes.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeImageAttributes.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeInputAttributes.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeInputAttributes.cs index 5470040baf3..7fc1b4601a5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeInputAttributes.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeInputAttributes.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeMeta.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeMeta.cs index 59eac330ba8..de513cce6dd 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeMeta.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeMeta.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeScriptAttributes.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeScriptAttributes.cs index fdcc51262cb..cf6956a8197 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeScriptAttributes.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeScriptAttributes.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeTextAttributes.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeTextAttributes.cs index fc37dad2741..3db50f28980 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeTextAttributes.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiNodeTextAttributes.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiText.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiText.cs index c9b1222f54a..56cae6516c7 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiText.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUiText.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateIdentityBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateIdentityBody.cs index 42e1d70d842..3d885fde563 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateIdentityBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateIdentityBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "updateIdentityBody")] public partial class KratosUpdateIdentityBody : IEquatable, IValidatableObject { + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [JsonConverter(typeof(StringEnumConverter))] + public enum StateEnum + { + /// + /// Enum Active for value: active + /// + [EnumMember(Value = "active")] + Active = 1, + + /// + /// Enum Inactive for value: inactive + /// + [EnumMember(Value = "inactive")] + Inactive = 2 + + } + + + /// + /// State is the identity's state. active StateActive inactive StateInactive + /// + /// State is the identity's state. active StateActive inactive StateInactive + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] + public StateEnum State { get; set; } /// /// Initializes a new instance of the class. /// @@ -47,19 +75,15 @@ protected KratosUpdateIdentityBody() /// Store metadata about the user which is only accessible through admin APIs such as `GET /admin/identities/<id>`.. /// Store metadata about the identity which the identity itself can see when calling for example the session endpoint. Do not store sensitive information (e.g. credit score) about the identity in this field.. /// SchemaID is the ID of the JSON Schema to be used for validating the identity's traits. If set will update the Identity's SchemaID. (required). - /// state (required). + /// State is the identity's state. active StateActive inactive StateInactive (required). /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. (required). - public KratosUpdateIdentityBody(KratosIdentityWithCredentials credentials = default(KratosIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string schemaId = default(string), KratosIdentityState state = default(KratosIdentityState), Object traits = default(Object)) + public KratosUpdateIdentityBody(KratosIdentityWithCredentials credentials = default(KratosIdentityWithCredentials), Object metadataAdmin = default(Object), Object metadataPublic = default(Object), string schemaId = default(string), StateEnum state = default(StateEnum), Object traits = default(Object)) { // to ensure "schemaId" is required (not null) if (schemaId == null) { throw new ArgumentNullException("schemaId is a required property for KratosUpdateIdentityBody and cannot be null"); } this.SchemaId = schemaId; - // to ensure "state" is required (not null) - if (state == null) { - throw new ArgumentNullException("state is a required property for KratosUpdateIdentityBody and cannot be null"); - } this.State = state; // to ensure "traits" is required (not null) if (traits == null) { @@ -99,12 +123,6 @@ protected KratosUpdateIdentityBody() [DataMember(Name = "schema_id", IsRequired = true, EmitDefaultValue = false)] public string SchemaId { get; set; } - /// - /// Gets or Sets State - /// - [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] - public KratosIdentityState State { get; set; } - /// /// Traits represent an identity's traits. The identity is able to create, modify, and delete traits in a self-service manner. The input will always be validated against the JSON Schema defined in `schema_id`. /// @@ -190,8 +208,7 @@ public bool Equals(KratosUpdateIdentityBody input) ) && ( this.State == input.State || - (this.State != null && - this.State.Equals(input.State)) + this.State.Equals(input.State) ) && ( this.Traits == input.Traits || @@ -226,10 +243,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.SchemaId.GetHashCode(); } - if (this.State != null) - { - hashCode = (hashCode * 59) + this.State.GetHashCode(); - } + hashCode = (hashCode * 59) + this.State.GetHashCode(); if (this.Traits != null) { hashCode = (hashCode * 59) + this.Traits.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowBody.cs index 570a9953a28..31d7abd14e5 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,6 +35,18 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "updateLoginFlowBody")] public partial class KratosUpdateLoginFlowBody : AbstractOpenAPISchema, IEquatable, IValidatableObject { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of KratosUpdateLoginFlowWithCodeMethod. + public KratosUpdateLoginFlowBody(KratosUpdateLoginFlowWithCodeMethod actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + /// /// Initializes a new instance of the class /// with the class @@ -109,7 +121,11 @@ public override Object ActualInstance } set { - if (value.GetType() == typeof(KratosUpdateLoginFlowWithLookupSecretMethod)) + if (value.GetType() == typeof(KratosUpdateLoginFlowWithCodeMethod)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(KratosUpdateLoginFlowWithLookupSecretMethod)) { this._actualInstance = value; } @@ -131,11 +147,21 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: KratosUpdateLoginFlowWithLookupSecretMethod, KratosUpdateLoginFlowWithOidcMethod, KratosUpdateLoginFlowWithPasswordMethod, KratosUpdateLoginFlowWithTotpMethod, KratosUpdateLoginFlowWithWebAuthnMethod"); + throw new ArgumentException("Invalid instance found. Must be the following types: KratosUpdateLoginFlowWithCodeMethod, KratosUpdateLoginFlowWithLookupSecretMethod, KratosUpdateLoginFlowWithOidcMethod, KratosUpdateLoginFlowWithPasswordMethod, KratosUpdateLoginFlowWithTotpMethod, KratosUpdateLoginFlowWithWebAuthnMethod"); } } } + /// + /// Get the actual instance of `KratosUpdateLoginFlowWithCodeMethod`. If the actual instance is not `KratosUpdateLoginFlowWithCodeMethod`, + /// the InvalidClassException will be thrown + /// + /// An instance of KratosUpdateLoginFlowWithCodeMethod + public KratosUpdateLoginFlowWithCodeMethod GetKratosUpdateLoginFlowWithCodeMethod() + { + return (KratosUpdateLoginFlowWithCodeMethod)this.ActualInstance; + } + /// /// Get the actual instance of `KratosUpdateLoginFlowWithLookupSecretMethod`. If the actual instance is not `KratosUpdateLoginFlowWithLookupSecretMethod`, /// the InvalidClassException will be thrown @@ -224,6 +250,26 @@ public static KratosUpdateLoginFlowBody FromJson(string jsonString) int match = 0; List matchedTypes = new List(); + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(KratosUpdateLoginFlowWithCodeMethod).GetProperty("AdditionalProperties") == null) + { + newKratosUpdateLoginFlowBody = new KratosUpdateLoginFlowBody(JsonConvert.DeserializeObject(jsonString, KratosUpdateLoginFlowBody.SerializerSettings)); + } + else + { + newKratosUpdateLoginFlowBody = new KratosUpdateLoginFlowBody(JsonConvert.DeserializeObject(jsonString, KratosUpdateLoginFlowBody.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("KratosUpdateLoginFlowWithCodeMethod"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into KratosUpdateLoginFlowWithCodeMethod: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithCodeMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithCodeMethod.cs new file mode 100644 index 00000000000..f8e268da789 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithCodeMethod.cs @@ -0,0 +1,235 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// Update Login flow using the code method + /// + [DataContract(Name = "updateLoginFlowWithCodeMethod")] + public partial class KratosUpdateLoginFlowWithCodeMethod : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected KratosUpdateLoginFlowWithCodeMethod() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// Code is the 6 digits code sent to the user. + /// CSRFToken is the anti-CSRF token (required). + /// Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow.. + /// Method should be set to \"code\" when logging in using the code strategy. (required). + /// Resend is set when the user wants to resend the code. + public KratosUpdateLoginFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string identifier = default(string), string method = default(string), string resend = default(string)) + { + // to ensure "csrfToken" is required (not null) + if (csrfToken == null) { + throw new ArgumentNullException("csrfToken is a required property for KratosUpdateLoginFlowWithCodeMethod and cannot be null"); + } + this.CsrfToken = csrfToken; + // to ensure "method" is required (not null) + if (method == null) { + throw new ArgumentNullException("method is a required property for KratosUpdateLoginFlowWithCodeMethod and cannot be null"); + } + this.Method = method; + this.Code = code; + this.Identifier = identifier; + this.Resend = resend; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// Code is the 6 digits code sent to the user + /// + /// Code is the 6 digits code sent to the user + [DataMember(Name = "code", EmitDefaultValue = false)] + public string Code { get; set; } + + /// + /// CSRFToken is the anti-CSRF token + /// + /// CSRFToken is the anti-CSRF token + [DataMember(Name = "csrf_token", IsRequired = true, EmitDefaultValue = false)] + public string CsrfToken { get; set; } + + /// + /// Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. + /// + /// Identifier is the code identifier The identifier requires that the user has already completed the registration or settings with code flow. + [DataMember(Name = "identifier", EmitDefaultValue = false)] + public string Identifier { get; set; } + + /// + /// Method should be set to \"code\" when logging in using the code strategy. + /// + /// Method should be set to \"code\" when logging in using the code strategy. + [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// Resend is set when the user wants to resend the code + /// + /// Resend is set when the user wants to resend the code + [DataMember(Name = "resend", EmitDefaultValue = false)] + public string Resend { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosUpdateLoginFlowWithCodeMethod {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); + sb.Append(" Identifier: ").Append(Identifier).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Resend: ").Append(Resend).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosUpdateLoginFlowWithCodeMethod); + } + + /// + /// Returns true if KratosUpdateLoginFlowWithCodeMethod instances are equal + /// + /// Instance of KratosUpdateLoginFlowWithCodeMethod to be compared + /// Boolean + public bool Equals(KratosUpdateLoginFlowWithCodeMethod input) + { + if (input == null) + { + return false; + } + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.CsrfToken == input.CsrfToken || + (this.CsrfToken != null && + this.CsrfToken.Equals(input.CsrfToken)) + ) && + ( + this.Identifier == input.Identifier || + (this.Identifier != null && + this.Identifier.Equals(input.Identifier)) + ) && + ( + this.Method == input.Method || + (this.Method != null && + this.Method.Equals(input.Method)) + ) && + ( + this.Resend == input.Resend || + (this.Resend != null && + this.Resend.Equals(input.Resend)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } + if (this.CsrfToken != null) + { + hashCode = (hashCode * 59) + this.CsrfToken.GetHashCode(); + } + if (this.Identifier != null) + { + hashCode = (hashCode * 59) + this.Identifier.GetHashCode(); + } + if (this.Method != null) + { + hashCode = (hashCode * 59) + this.Method.GetHashCode(); + } + if (this.Resend != null) + { + hashCode = (hashCode * 59) + this.Resend.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithLookupSecretMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithLookupSecretMethod.cs index a3da032a697..a3d17e9207b 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithLookupSecretMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithLookupSecretMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithOidcMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithOidcMethod.cs index 587152b02c8..c8fbdc9f11d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithOidcMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithOidcMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,11 +44,13 @@ protected KratosUpdateLoginFlowWithOidcMethod() /// Initializes a new instance of the class. /// /// The CSRF Token. + /// IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple. + /// IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required.. /// Method to use This field must be set to `oidc` when using the oidc method. (required). /// The provider to register with (required). /// The identity traits. This is a placeholder for the registration flow.. /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. - public KratosUpdateLoginFlowWithOidcMethod(string csrfToken = default(string), string method = default(string), string provider = default(string), Object traits = default(Object), Object upstreamParameters = default(Object)) + public KratosUpdateLoginFlowWithOidcMethod(string csrfToken = default(string), string idToken = default(string), string idTokenNonce = default(string), string method = default(string), string provider = default(string), Object traits = default(Object), Object upstreamParameters = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -61,6 +63,8 @@ protected KratosUpdateLoginFlowWithOidcMethod() } this.Provider = provider; this.CsrfToken = csrfToken; + this.IdToken = idToken; + this.IdTokenNonce = idTokenNonce; this.Traits = traits; this.UpstreamParameters = upstreamParameters; this.AdditionalProperties = new Dictionary(); @@ -73,6 +77,20 @@ protected KratosUpdateLoginFlowWithOidcMethod() [DataMember(Name = "csrf_token", EmitDefaultValue = false)] public string CsrfToken { get; set; } + /// + /// IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + /// + /// IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + [DataMember(Name = "id_token", EmitDefaultValue = false)] + public string IdToken { get; set; } + + /// + /// IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. + /// + /// IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and required. + [DataMember(Name = "id_token_nonce", EmitDefaultValue = false)] + public string IdTokenNonce { get; set; } + /// /// Method to use This field must be set to `oidc` when using the oidc method. /// @@ -116,6 +134,8 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class KratosUpdateLoginFlowWithOidcMethod {\n"); sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); + sb.Append(" IdToken: ").Append(IdToken).Append("\n"); + sb.Append(" IdTokenNonce: ").Append(IdTokenNonce).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Provider: ").Append(Provider).Append("\n"); sb.Append(" Traits: ").Append(Traits).Append("\n"); @@ -161,6 +181,16 @@ public bool Equals(KratosUpdateLoginFlowWithOidcMethod input) (this.CsrfToken != null && this.CsrfToken.Equals(input.CsrfToken)) ) && + ( + this.IdToken == input.IdToken || + (this.IdToken != null && + this.IdToken.Equals(input.IdToken)) + ) && + ( + this.IdTokenNonce == input.IdTokenNonce || + (this.IdTokenNonce != null && + this.IdTokenNonce.Equals(input.IdTokenNonce)) + ) && ( this.Method == input.Method || (this.Method != null && @@ -197,6 +227,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CsrfToken.GetHashCode(); } + if (this.IdToken != null) + { + hashCode = (hashCode * 59) + this.IdToken.GetHashCode(); + } + if (this.IdTokenNonce != null) + { + hashCode = (hashCode * 59) + this.IdTokenNonce.GetHashCode(); + } if (this.Method != null) { hashCode = (hashCode * 59) + this.Method.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithPasswordMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithPasswordMethod.cs index 52518e2cb0e..b5190803489 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithPasswordMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithPasswordMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithTotpMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithTotpMethod.cs index 020994101f2..7809dd8379c 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithTotpMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithTotpMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithWebAuthnMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithWebAuthnMethod.cs index 5b6ddb3c489..5751deeab38 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithWebAuthnMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateLoginFlowWithWebAuthnMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowBody.cs index 5dfecbca301..2b592d66187 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithCodeMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithCodeMethod.cs index 0421fd6d09f..e364c2ad3e0 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithCodeMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithCodeMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithLinkMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithLinkMethod.cs index c48395f60e6..df5ccfc96b6 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithLinkMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRecoveryFlowWithLinkMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowBody.cs index e8adba606de..04316105f50 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -35,6 +35,18 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "updateRegistrationFlowBody")] public partial class KratosUpdateRegistrationFlowBody : AbstractOpenAPISchema, IEquatable, IValidatableObject { + /// + /// Initializes a new instance of the class + /// with the class + /// + /// An instance of KratosUpdateRegistrationFlowWithCodeMethod. + public KratosUpdateRegistrationFlowBody(KratosUpdateRegistrationFlowWithCodeMethod actualInstance) + { + this.IsNullable = false; + this.SchemaType= "oneOf"; + this.ActualInstance = actualInstance ?? throw new ArgumentException("Invalid instance found. Must not be null."); + } + /// /// Initializes a new instance of the class /// with the class @@ -85,7 +97,11 @@ public override Object ActualInstance } set { - if (value.GetType() == typeof(KratosUpdateRegistrationFlowWithOidcMethod)) + if (value.GetType() == typeof(KratosUpdateRegistrationFlowWithCodeMethod)) + { + this._actualInstance = value; + } + else if (value.GetType() == typeof(KratosUpdateRegistrationFlowWithOidcMethod)) { this._actualInstance = value; } @@ -99,11 +115,21 @@ public override Object ActualInstance } else { - throw new ArgumentException("Invalid instance found. Must be the following types: KratosUpdateRegistrationFlowWithOidcMethod, KratosUpdateRegistrationFlowWithPasswordMethod, KratosUpdateRegistrationFlowWithWebAuthnMethod"); + throw new ArgumentException("Invalid instance found. Must be the following types: KratosUpdateRegistrationFlowWithCodeMethod, KratosUpdateRegistrationFlowWithOidcMethod, KratosUpdateRegistrationFlowWithPasswordMethod, KratosUpdateRegistrationFlowWithWebAuthnMethod"); } } } + /// + /// Get the actual instance of `KratosUpdateRegistrationFlowWithCodeMethod`. If the actual instance is not `KratosUpdateRegistrationFlowWithCodeMethod`, + /// the InvalidClassException will be thrown + /// + /// An instance of KratosUpdateRegistrationFlowWithCodeMethod + public KratosUpdateRegistrationFlowWithCodeMethod GetKratosUpdateRegistrationFlowWithCodeMethod() + { + return (KratosUpdateRegistrationFlowWithCodeMethod)this.ActualInstance; + } + /// /// Get the actual instance of `KratosUpdateRegistrationFlowWithOidcMethod`. If the actual instance is not `KratosUpdateRegistrationFlowWithOidcMethod`, /// the InvalidClassException will be thrown @@ -172,6 +198,26 @@ public static KratosUpdateRegistrationFlowBody FromJson(string jsonString) int match = 0; List matchedTypes = new List(); + try + { + // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize + if (typeof(KratosUpdateRegistrationFlowWithCodeMethod).GetProperty("AdditionalProperties") == null) + { + newKratosUpdateRegistrationFlowBody = new KratosUpdateRegistrationFlowBody(JsonConvert.DeserializeObject(jsonString, KratosUpdateRegistrationFlowBody.SerializerSettings)); + } + else + { + newKratosUpdateRegistrationFlowBody = new KratosUpdateRegistrationFlowBody(JsonConvert.DeserializeObject(jsonString, KratosUpdateRegistrationFlowBody.AdditionalPropertiesSerializerSettings)); + } + matchedTypes.Add("KratosUpdateRegistrationFlowWithCodeMethod"); + match++; + } + catch (Exception exception) + { + // deserialization failed, try the next one + System.Diagnostics.Debug.WriteLine(string.Format("Failed to deserialize `{0}` into KratosUpdateRegistrationFlowWithCodeMethod: {1}", jsonString, exception.ToString())); + } + try { // if it does not contains "AdditionalProperties", use SerializerSettings to deserialize diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithCodeMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithCodeMethod.cs new file mode 100644 index 00000000000..60d4ae93999 --- /dev/null +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithCodeMethod.cs @@ -0,0 +1,254 @@ +/* + * Ory Identities API + * + * 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. + * + * The version of the OpenAPI document: v1.1.0 + * Contact: office@ory.sh + * Generated by: https://github.com/openapitools/openapi-generator.git + */ + + +using System; +using System.Collections; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.IO; +using System.Runtime.Serialization; +using System.Text; +using System.Text.RegularExpressions; +using Newtonsoft.Json; +using Newtonsoft.Json.Converters; +using Newtonsoft.Json.Linq; +using System.ComponentModel.DataAnnotations; +using OpenAPIDateConverter = Ory.Kratos.Client.Client.OpenAPIDateConverter; + +namespace Ory.Kratos.Client.Model +{ + /// + /// Update Registration Flow with Code Method + /// + [DataContract(Name = "updateRegistrationFlowWithCodeMethod")] + public partial class KratosUpdateRegistrationFlowWithCodeMethod : IEquatable, IValidatableObject + { + /// + /// Initializes a new instance of the class. + /// + [JsonConstructorAttribute] + protected KratosUpdateRegistrationFlowWithCodeMethod() + { + this.AdditionalProperties = new Dictionary(); + } + /// + /// Initializes a new instance of the class. + /// + /// The OTP Code sent to the user. + /// The CSRF Token. + /// Method to use This field must be set to `code` when using the code method. (required). + /// Resend restarts the flow with a new code. + /// The identity's traits (required). + /// Transient data to pass along to any webhooks. + public KratosUpdateRegistrationFlowWithCodeMethod(string code = default(string), string csrfToken = default(string), string method = default(string), string resend = default(string), Object traits = default(Object), Object transientPayload = default(Object)) + { + // to ensure "method" is required (not null) + if (method == null) { + throw new ArgumentNullException("method is a required property for KratosUpdateRegistrationFlowWithCodeMethod and cannot be null"); + } + this.Method = method; + // to ensure "traits" is required (not null) + if (traits == null) { + throw new ArgumentNullException("traits is a required property for KratosUpdateRegistrationFlowWithCodeMethod and cannot be null"); + } + this.Traits = traits; + this.Code = code; + this.CsrfToken = csrfToken; + this.Resend = resend; + this.TransientPayload = transientPayload; + this.AdditionalProperties = new Dictionary(); + } + + /// + /// The OTP Code sent to the user + /// + /// The OTP Code sent to the user + [DataMember(Name = "code", EmitDefaultValue = false)] + public string Code { get; set; } + + /// + /// The CSRF Token + /// + /// The CSRF Token + [DataMember(Name = "csrf_token", EmitDefaultValue = false)] + public string CsrfToken { get; set; } + + /// + /// Method to use This field must be set to `code` when using the code method. + /// + /// Method to use This field must be set to `code` when using the code method. + [DataMember(Name = "method", IsRequired = true, EmitDefaultValue = false)] + public string Method { get; set; } + + /// + /// Resend restarts the flow with a new code + /// + /// Resend restarts the flow with a new code + [DataMember(Name = "resend", EmitDefaultValue = false)] + public string Resend { get; set; } + + /// + /// The identity's traits + /// + /// The identity's traits + [DataMember(Name = "traits", IsRequired = true, EmitDefaultValue = false)] + public Object Traits { get; set; } + + /// + /// Transient data to pass along to any webhooks + /// + /// Transient data to pass along to any webhooks + [DataMember(Name = "transient_payload", EmitDefaultValue = false)] + public Object TransientPayload { get; set; } + + /// + /// Gets or Sets additional properties + /// + [JsonExtensionData] + public IDictionary AdditionalProperties { get; set; } + + /// + /// Returns the string presentation of the object + /// + /// String presentation of the object + public override string ToString() + { + StringBuilder sb = new StringBuilder(); + sb.Append("class KratosUpdateRegistrationFlowWithCodeMethod {\n"); + sb.Append(" Code: ").Append(Code).Append("\n"); + sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); + sb.Append(" Method: ").Append(Method).Append("\n"); + sb.Append(" Resend: ").Append(Resend).Append("\n"); + sb.Append(" Traits: ").Append(Traits).Append("\n"); + sb.Append(" TransientPayload: ").Append(TransientPayload).Append("\n"); + sb.Append(" AdditionalProperties: ").Append(AdditionalProperties).Append("\n"); + sb.Append("}\n"); + return sb.ToString(); + } + + /// + /// Returns the JSON string presentation of the object + /// + /// JSON string presentation of the object + public virtual string ToJson() + { + return Newtonsoft.Json.JsonConvert.SerializeObject(this, Newtonsoft.Json.Formatting.Indented); + } + + /// + /// Returns true if objects are equal + /// + /// Object to be compared + /// Boolean + public override bool Equals(object input) + { + return this.Equals(input as KratosUpdateRegistrationFlowWithCodeMethod); + } + + /// + /// Returns true if KratosUpdateRegistrationFlowWithCodeMethod instances are equal + /// + /// Instance of KratosUpdateRegistrationFlowWithCodeMethod to be compared + /// Boolean + public bool Equals(KratosUpdateRegistrationFlowWithCodeMethod input) + { + if (input == null) + { + return false; + } + return + ( + this.Code == input.Code || + (this.Code != null && + this.Code.Equals(input.Code)) + ) && + ( + this.CsrfToken == input.CsrfToken || + (this.CsrfToken != null && + this.CsrfToken.Equals(input.CsrfToken)) + ) && + ( + this.Method == input.Method || + (this.Method != null && + this.Method.Equals(input.Method)) + ) && + ( + this.Resend == input.Resend || + (this.Resend != null && + this.Resend.Equals(input.Resend)) + ) && + ( + this.Traits == input.Traits || + (this.Traits != null && + this.Traits.Equals(input.Traits)) + ) && + ( + this.TransientPayload == input.TransientPayload || + (this.TransientPayload != null && + this.TransientPayload.Equals(input.TransientPayload)) + ) + && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); + } + + /// + /// Gets the hash code + /// + /// Hash code + public override int GetHashCode() + { + unchecked // Overflow is fine, just wrap + { + int hashCode = 41; + if (this.Code != null) + { + hashCode = (hashCode * 59) + this.Code.GetHashCode(); + } + if (this.CsrfToken != null) + { + hashCode = (hashCode * 59) + this.CsrfToken.GetHashCode(); + } + if (this.Method != null) + { + hashCode = (hashCode * 59) + this.Method.GetHashCode(); + } + if (this.Resend != null) + { + hashCode = (hashCode * 59) + this.Resend.GetHashCode(); + } + if (this.Traits != null) + { + hashCode = (hashCode * 59) + this.Traits.GetHashCode(); + } + if (this.TransientPayload != null) + { + hashCode = (hashCode * 59) + this.TransientPayload.GetHashCode(); + } + if (this.AdditionalProperties != null) + { + hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); + } + return hashCode; + } + } + + /// + /// To validate all properties of the instance + /// + /// Validation context + /// Validation Result + public IEnumerable Validate(ValidationContext validationContext) + { + yield break; + } + } + +} diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithOidcMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithOidcMethod.cs index 87a13bade33..fc1290a5ea8 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithOidcMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithOidcMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -44,12 +44,14 @@ protected KratosUpdateRegistrationFlowWithOidcMethod() /// Initializes a new instance of the class. /// /// The CSRF Token. + /// IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple. + /// IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required.. /// Method to use This field must be set to `oidc` when using the oidc method. (required). /// The provider to register with (required). /// The identity traits. /// Transient data to pass along to any webhooks. /// UpstreamParameters are the parameters that are passed to the upstream identity provider. These parameters are optional and depend on what the upstream identity provider supports. Supported parameters are: `login_hint` (string): The `login_hint` parameter suppresses the account chooser and either pre-fills the email box on the sign-in form, or selects the proper session. `hd` (string): The `hd` parameter limits the login/registration process to a Google Organization, e.g. `mycollege.edu`. `prompt` (string): The `prompt` specifies whether the Authorization Server prompts the End-User for reauthentication and consent, e.g. `select_account`.. - public KratosUpdateRegistrationFlowWithOidcMethod(string csrfToken = default(string), string method = default(string), string provider = default(string), Object traits = default(Object), Object transientPayload = default(Object), Object upstreamParameters = default(Object)) + public KratosUpdateRegistrationFlowWithOidcMethod(string csrfToken = default(string), string idToken = default(string), string idTokenNonce = default(string), string method = default(string), string provider = default(string), Object traits = default(Object), Object transientPayload = default(Object), Object upstreamParameters = default(Object)) { // to ensure "method" is required (not null) if (method == null) { @@ -62,6 +64,8 @@ protected KratosUpdateRegistrationFlowWithOidcMethod() } this.Provider = provider; this.CsrfToken = csrfToken; + this.IdToken = idToken; + this.IdTokenNonce = idTokenNonce; this.Traits = traits; this.TransientPayload = transientPayload; this.UpstreamParameters = upstreamParameters; @@ -75,6 +79,20 @@ protected KratosUpdateRegistrationFlowWithOidcMethod() [DataMember(Name = "csrf_token", EmitDefaultValue = false)] public string CsrfToken { get; set; } + /// + /// IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + /// + /// IDToken is an optional id token provided by an OIDC provider If submitted, it is verified using the OIDC provider's public key set and the claims are used to populate the OIDC credentials of the identity. If the OIDC provider does not store additional claims (such as name, etc.) in the IDToken itself, you can use the `traits` field to populate the identity's traits. Note, that Apple only includes the users email in the IDToken. Supported providers are Apple + [DataMember(Name = "id_token", EmitDefaultValue = false)] + public string IdToken { get; set; } + + /// + /// IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. + /// + /// IDTokenNonce is the nonce, used when generating the IDToken. If the provider supports nonce validation, the nonce will be validated against this value and is required. + [DataMember(Name = "id_token_nonce", EmitDefaultValue = false)] + public string IdTokenNonce { get; set; } + /// /// Method to use This field must be set to `oidc` when using the oidc method. /// @@ -125,6 +143,8 @@ public override string ToString() StringBuilder sb = new StringBuilder(); sb.Append("class KratosUpdateRegistrationFlowWithOidcMethod {\n"); sb.Append(" CsrfToken: ").Append(CsrfToken).Append("\n"); + sb.Append(" IdToken: ").Append(IdToken).Append("\n"); + sb.Append(" IdTokenNonce: ").Append(IdTokenNonce).Append("\n"); sb.Append(" Method: ").Append(Method).Append("\n"); sb.Append(" Provider: ").Append(Provider).Append("\n"); sb.Append(" Traits: ").Append(Traits).Append("\n"); @@ -171,6 +191,16 @@ public bool Equals(KratosUpdateRegistrationFlowWithOidcMethod input) (this.CsrfToken != null && this.CsrfToken.Equals(input.CsrfToken)) ) && + ( + this.IdToken == input.IdToken || + (this.IdToken != null && + this.IdToken.Equals(input.IdToken)) + ) && + ( + this.IdTokenNonce == input.IdTokenNonce || + (this.IdTokenNonce != null && + this.IdTokenNonce.Equals(input.IdTokenNonce)) + ) && ( this.Method == input.Method || (this.Method != null && @@ -212,6 +242,14 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.CsrfToken.GetHashCode(); } + if (this.IdToken != null) + { + hashCode = (hashCode * 59) + this.IdToken.GetHashCode(); + } + if (this.IdTokenNonce != null) + { + hashCode = (hashCode * 59) + this.IdTokenNonce.GetHashCode(); + } if (this.Method != null) { hashCode = (hashCode * 59) + this.Method.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithPasswordMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithPasswordMethod.cs index 19374e9094d..9480fdd76aa 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithPasswordMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithPasswordMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithWebAuthnMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithWebAuthnMethod.cs index bd04538c2e0..c96df9aba38 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithWebAuthnMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateRegistrationFlowWithWebAuthnMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowBody.cs index 8aaadcc2085..dc8a4f35a1d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithLookupMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithLookupMethod.cs index 72bbb4d1457..643c546024d 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithLookupMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithLookupMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithOidcMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithOidcMethod.cs index ac990999f77..7ded8b9c14f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithOidcMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithOidcMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithPasswordMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithPasswordMethod.cs index 26805e6f866..a8ae60233d4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithPasswordMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithPasswordMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithProfileMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithProfileMethod.cs index 94413135938..eccba3b746b 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithProfileMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithProfileMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithTotpMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithTotpMethod.cs index f74d4fb2025..5186c3e394e 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithTotpMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithTotpMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithWebAuthnMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithWebAuthnMethod.cs index df74be316fc..593cbf6c0d4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithWebAuthnMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateSettingsFlowWithWebAuthnMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowBody.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowBody.cs index 7371629bfc7..7fdb079109f 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowBody.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowBody.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithCodeMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithCodeMethod.cs index 9a2cb5a0648..5f726624a34 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithCodeMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithCodeMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithLinkMethod.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithLinkMethod.cs index 1c133f0ed24..94e44d5f8d3 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithLinkMethod.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosUpdateVerificationFlowWithLinkMethod.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerifiableIdentityAddress.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerifiableIdentityAddress.cs index e9854cebc0f..11b04914119 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerifiableIdentityAddress.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerifiableIdentityAddress.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -32,6 +32,34 @@ namespace Ory.Kratos.Client.Model [DataContract(Name = "verifiableIdentityAddress")] public partial class KratosVerifiableIdentityAddress : IEquatable, IValidatableObject { + /// + /// The delivery method + /// + /// The delivery method + [JsonConverter(typeof(StringEnumConverter))] + public enum ViaEnum + { + /// + /// Enum Email for value: email + /// + [EnumMember(Value = "email")] + Email = 1, + + /// + /// Enum Sms for value: sms + /// + [EnumMember(Value = "sms")] + Sms = 2 + + } + + + /// + /// The delivery method + /// + /// The delivery method + [DataMember(Name = "via", IsRequired = true, EmitDefaultValue = false)] + public ViaEnum Via { get; set; } /// /// Initializes a new instance of the class. /// @@ -50,8 +78,8 @@ protected KratosVerifiableIdentityAddress() /// The address value example foo@user.com (required). /// Indicates if the address has already been verified (required). /// verifiedAt. - /// VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema (required). - public KratosVerifiableIdentityAddress(DateTime createdAt = default(DateTime), string id = default(string), string status = default(string), DateTime updatedAt = default(DateTime), string value = default(string), bool verified = default(bool), DateTime verifiedAt = default(DateTime), string via = default(string)) + /// The delivery method (required). + public KratosVerifiableIdentityAddress(DateTime createdAt = default(DateTime), string id = default(string), string status = default(string), DateTime updatedAt = default(DateTime), string value = default(string), bool verified = default(bool), DateTime verifiedAt = default(DateTime), ViaEnum via = default(ViaEnum)) { // to ensure "status" is required (not null) if (status == null) { @@ -64,10 +92,6 @@ protected KratosVerifiableIdentityAddress() } this.Value = value; this.Verified = verified; - // to ensure "via" is required (not null) - if (via == null) { - throw new ArgumentNullException("via is a required property for KratosVerifiableIdentityAddress and cannot be null"); - } this.Via = via; this.CreatedAt = createdAt; this.Id = id; @@ -124,13 +148,6 @@ protected KratosVerifiableIdentityAddress() [DataMember(Name = "verified_at", EmitDefaultValue = false)] public DateTime VerifiedAt { get; set; } - /// - /// VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema - /// - /// VerifiableAddressType must not exceed 16 characters as that is the limitation in the SQL Schema - [DataMember(Name = "via", IsRequired = true, EmitDefaultValue = false)] - public string Via { get; set; } - /// /// Gets or Sets additional properties /// @@ -225,8 +242,7 @@ public bool Equals(KratosVerifiableIdentityAddress input) ) && ( this.Via == input.Via || - (this.Via != null && - this.Via.Equals(input.Via)) + this.Via.Equals(input.Via) ) && (this.AdditionalProperties.Count == input.AdditionalProperties.Count && !this.AdditionalProperties.Except(input.AdditionalProperties).Any()); } @@ -265,10 +281,7 @@ public override int GetHashCode() { hashCode = (hashCode * 59) + this.VerifiedAt.GetHashCode(); } - if (this.Via != null) - { - hashCode = (hashCode * 59) + this.Via.GetHashCode(); - } + hashCode = (hashCode * 59) + this.Via.GetHashCode(); if (this.AdditionalProperties != null) { hashCode = (hashCode * 59) + this.AdditionalProperties.GetHashCode(); diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlow.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlow.cs index 8c4145674e8..8ee010c840a 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlow.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlow.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ @@ -49,10 +49,10 @@ protected KratosVerificationFlow() /// IssuedAt is the time (UTC) when the request occurred.. /// RequestURL is the initial URL that was requested from Ory Kratos. It can be used to forward information contained in the URL's path or query for example.. /// ReturnTo contains the requested return_to URL.. - /// state (required). + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. (required). /// The flow type can either be `api` or `browser`. (required). /// ui (required). - public KratosVerificationFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), KratosVerificationFlowState state = default(KratosVerificationFlowState), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) + public KratosVerificationFlow(string active = default(string), DateTime expiresAt = default(DateTime), string id = default(string), DateTime issuedAt = default(DateTime), string requestUrl = default(string), string returnTo = default(string), Object state = default(Object), string type = default(string), KratosUiContainer ui = default(KratosUiContainer)) { // to ensure "id" is required (not null) if (id == null) { @@ -125,10 +125,11 @@ protected KratosVerificationFlow() public string ReturnTo { get; set; } /// - /// Gets or Sets State + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. /// - [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = false)] - public KratosVerificationFlowState State { get; set; } + /// State represents the state of this request: choose_method: ask the user to choose a method (e.g. verify your email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the verification challenge was passed. + [DataMember(Name = "state", IsRequired = true, EmitDefaultValue = true)] + public Object State { get; set; } /// /// The flow type can either be `api` or `browser`. diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlowState.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlowState.cs index b434c014ad1..102bffbeb76 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlowState.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVerificationFlowState.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVersion.cs b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVersion.cs index a18ba134920..7e7e07dfc05 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVersion.cs +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Model/KratosVersion.cs @@ -3,7 +3,7 @@ * * 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. * - * The version of the OpenAPI document: v1.0.0 + * The version of the OpenAPI document: v1.1.0 * Contact: office@ory.sh * Generated by: https://github.com/openapitools/openapi-generator.git */ diff --git a/clients/kratos/dotnet/src/Ory.Kratos.Client/Ory.Kratos.Client.csproj b/clients/kratos/dotnet/src/Ory.Kratos.Client/Ory.Kratos.Client.csproj index ca1aa0c8b01..765abc72ea4 100644 --- a/clients/kratos/dotnet/src/Ory.Kratos.Client/Ory.Kratos.Client.csproj +++ b/clients/kratos/dotnet/src/Ory.Kratos.Client/Ory.Kratos.Client.csproj @@ -12,7 +12,7 @@ A library generated from a OpenAPI doc No Copyright Ory.Kratos.Client - 1.0.0 + 1.1.0 bin\$(Configuration)\$(TargetFramework)\Ory.Kratos.Client.xml Apache-2.0 https://github.com/ory/sdk.git diff --git a/clients/kratos/elixir/.openapi-generator/FILES b/clients/kratos/elixir/.openapi-generator/FILES index 9b8711eb895..18369314482 100644 --- a/clients/kratos/elixir/.openapi-generator/FILES +++ b/clients/kratos/elixir/.openapi-generator/FILES @@ -12,8 +12,13 @@ lib/ory/connection.ex lib/ory/deserializer.ex lib/ory/model/authenticator_assurance_level.ex lib/ory/model/batch_patch_identities_response.ex +lib/ory/model/consistency_request_parameters.ex lib/ory/model/continue_with.ex +lib/ory/model/continue_with_recovery_ui.ex +lib/ory/model/continue_with_recovery_ui_flow.ex lib/ory/model/continue_with_set_ory_session_token.ex +lib/ory/model/continue_with_settings_ui.ex +lib/ory/model/continue_with_settings_ui_flow.ex lib/ory/model/continue_with_verification_ui.ex lib/ory/model/continue_with_verification_ui_flow.ex lib/ory/model/courier_message_status.ex @@ -33,14 +38,13 @@ lib/ory/model/health_not_ready_status.ex lib/ory/model/health_status.ex lib/ory/model/identity.ex lib/ory/model/identity_credentials.ex +lib/ory/model/identity_credentials_code.ex lib/ory/model/identity_credentials_oidc.ex lib/ory/model/identity_credentials_oidc_provider.ex lib/ory/model/identity_credentials_password.ex -lib/ory/model/identity_credentials_type.ex lib/ory/model/identity_patch.ex lib/ory/model/identity_patch_response.ex lib/ory/model/identity_schema_container.ex -lib/ory/model/identity_state.ex lib/ory/model/identity_with_credentials.ex lib/ory/model/identity_with_credentials_oidc.ex lib/ory/model/identity_with_credentials_oidc_config.ex @@ -51,6 +55,7 @@ lib/ory/model/is_alive_200_response.ex lib/ory/model/is_ready_503_response.ex lib/ory/model/json_patch.ex lib/ory/model/login_flow.ex +lib/ory/model/login_flow_state.ex lib/ory/model/logout_flow.ex lib/ory/model/message.ex lib/ory/model/message_dispatch.ex @@ -58,7 +63,6 @@ lib/ory/model/needs_privileged_session_error.ex lib/ory/model/o_auth2_client.ex lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex lib/ory/model/o_auth2_login_request.ex -lib/ory/model/pagination.ex lib/ory/model/patch_identities_body.ex lib/ory/model/perform_native_logout_body.ex lib/ory/model/recovery_code_for_identity.ex @@ -67,6 +71,7 @@ lib/ory/model/recovery_flow_state.ex lib/ory/model/recovery_identity_address.ex lib/ory/model/recovery_link_for_identity.ex lib/ory/model/registration_flow.ex +lib/ory/model/registration_flow_state.ex lib/ory/model/self_service_flow_expired_error.ex lib/ory/model/session.ex lib/ory/model/session_authentication_method.ex @@ -90,6 +95,7 @@ lib/ory/model/ui_node_text_attributes.ex lib/ory/model/ui_text.ex lib/ory/model/update_identity_body.ex lib/ory/model/update_login_flow_body.ex +lib/ory/model/update_login_flow_with_code_method.ex lib/ory/model/update_login_flow_with_lookup_secret_method.ex lib/ory/model/update_login_flow_with_oidc_method.ex lib/ory/model/update_login_flow_with_password_method.ex @@ -99,6 +105,7 @@ lib/ory/model/update_recovery_flow_body.ex lib/ory/model/update_recovery_flow_with_code_method.ex lib/ory/model/update_recovery_flow_with_link_method.ex lib/ory/model/update_registration_flow_body.ex +lib/ory/model/update_registration_flow_with_code_method.ex lib/ory/model/update_registration_flow_with_oidc_method.ex lib/ory/model/update_registration_flow_with_password_method.ex lib/ory/model/update_registration_flow_with_web_authn_method.ex diff --git a/clients/kratos/elixir/.openapi-generator/VERSION b/clients/kratos/elixir/.openapi-generator/VERSION index cd802a1ec4e..4b49d9bb63e 100644 --- a/clients/kratos/elixir/.openapi-generator/VERSION +++ b/clients/kratos/elixir/.openapi-generator/VERSION @@ -1 +1 @@ -6.6.0 \ No newline at end of file +7.2.0 \ No newline at end of file diff --git a/clients/kratos/elixir/README.md b/clients/kratos/elixir/README.md index 497ac180271..54ae44f2480 100644 --- a/clients/kratos/elixir/README.md +++ b/clients/kratos/elixir/README.md @@ -18,7 +18,7 @@ your list of dependencies in `mix.exs`: ```elixir def deps do - [{:ory_kratos, "~> v1.0.0"}] + [{:ory_kratos, "~> v1.1.0"}] end ``` diff --git a/clients/kratos/elixir/lib/ory/api/courier.ex b/clients/kratos/elixir/lib/ory/api/courier.ex index 3e8f006a9b9..845173e98c7 100644 --- a/clients/kratos/elixir/lib/ory/api/courier.ex +++ b/clients/kratos/elixir/lib/ory/api/courier.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Courier do @@ -35,9 +35,9 @@ defmodule Ory.Api.Courier do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Message{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Message}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -78,9 +78,9 @@ defmodule Ory.Api.Courier do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.Message{}]}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Message}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end end diff --git a/clients/kratos/elixir/lib/ory/api/frontend.ex b/clients/kratos/elixir/lib/ory/api/frontend.ex index 7f29367f08b..ea580af6b8f 100644 --- a/clients/kratos/elixir/lib/ory/api/frontend.ex +++ b/clients/kratos/elixir/lib/ory/api/frontend.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Frontend do @@ -22,6 +22,7 @@ defmodule Ory.Api.Frontend do - `:return_to` (String.t): The URL to return the browser to after the flow was completed. - `:Cookie` (String.t): HTTP Cookies When using the SDK in a browser app, on the server side you must include the HTTP Cookie Header sent by the client to your server here. This ensures that CSRF and session cookies are respected. - `:login_challenge` (String.t): An optional Hydra login challenge. If present, Kratos will cooperate with Ory Hydra to act as an OAuth2 identity provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/login?login_challenge=abcde`). + - `:organization` (String.t): An optional organization ID that should be used for logging this user in. This parameter is only effective in the Ory Network. ### Returns @@ -35,7 +36,8 @@ defmodule Ory.Api.Frontend do :aal => :query, :return_to => :query, :Cookie => :headers, - :login_challenge => :query + :login_challenge => :query, + :organization => :query } request = @@ -48,10 +50,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.LoginFlow{}}, + {200, Ory.Model.LoginFlow}, {303, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -88,10 +90,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.LogoutFlow{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {500, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.LogoutFlow}, + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {500, Ory.Model.ErrorGeneric} ]) end @@ -126,16 +128,16 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RecoveryFlow{}}, + {200, Ory.Model.RecoveryFlow}, {303, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @doc """ Create Registration Flow for Browsers - This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). + This endpoint initializes a browser-based user registration flow. This endpoint will set the appropriate cookies and anti-CSRF measures required for browser-based flows. If this endpoint is opened as a link in the browser, it will be redirected to `selfservice.flows.registration.ui_url` with the flow ID set as the query parameter `?flow=`. If a valid user session exists already, the browser will be redirected to `urls.default_redirect_url`. If this endpoint is called via an AJAX request, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! If this endpoint is called via an AJAX request, the response contains the registration flow without a redirect. This endpoint is NOT INTENDED for clients that do not have a browser (Chrome, Firefox, ...) as cookies are needed. 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). ### Parameters @@ -144,6 +146,7 @@ defmodule Ory.Api.Frontend do - `:return_to` (String.t): The URL to return the browser to after the flow was completed. - `:login_challenge` (String.t): Ory OAuth 2.0 Login Challenge. If set will cooperate with Ory OAuth2 and OpenID to act as an OAuth2 server / OpenID Provider. The value for this parameter comes from `login_challenge` URL Query parameter sent to your application (e.g. `/registration?login_challenge=abcde`). This feature is compatible with Ory Hydra when not running on the Ory Network. - `:after_verification_return_to` (String.t): The URL to return the browser to after the verification flow was completed. After the registration flow is completed, the user will be sent a verification email. Upon completing the verification flow, this URL will be used to override the default `selfservice.flows.verification.after.default_redirect_to` value. + - `:organization` (String.t): ### Returns @@ -155,7 +158,8 @@ defmodule Ory.Api.Frontend do optional_params = %{ :return_to => :query, :login_challenge => :query, - :after_verification_return_to => :query + :after_verification_return_to => :query, + :organization => :query } request = @@ -168,9 +172,9 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RegistrationFlow{}}, + {200, Ory.Model.RegistrationFlow}, {303, false}, - {:default, %Ory.Model.ErrorGeneric{}} + {:default, Ory.Model.ErrorGeneric} ]) end @@ -207,12 +211,12 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SettingsFlow{}}, + {200, Ory.Model.SettingsFlow}, {303, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {403, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -247,9 +251,9 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.VerificationFlow{}}, + {200, Ory.Model.VerificationFlow}, {303, false}, - {:default, %Ory.Model.ErrorGeneric{}} + {:default, Ory.Model.ErrorGeneric} ]) end @@ -266,6 +270,7 @@ defmodule Ory.Api.Frontend do - `:"X-Session-Token"` (String.t): The Session Token of the Identity performing the settings flow. - `:return_session_token_exchange_code` (boolean()): EnableSessionTokenExchangeCode requests the login flow to include a code that can be used to retrieve the session token after the login flow has been completed. - `:return_to` (String.t): The URL to return the browser to after the flow was completed. + - `:via` (String.t): Via should contain the identity's credential the code should be sent to. Only relevant in aal2 flows. ### Returns @@ -279,7 +284,8 @@ defmodule Ory.Api.Frontend do :aal => :query, :"X-Session-Token" => :headers, :return_session_token_exchange_code => :query, - :return_to => :query + :return_to => :query, + :via => :query } request = @@ -292,15 +298,15 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.LoginFlow{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.LoginFlow}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @doc """ Create Recovery Flow for Native Apps - This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. To fetch an existing recovery flow call `/self-service/recovery/flows?flow=`. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + This endpoint initiates a recovery flow for API clients such as mobile devices, smart TVs, and so on. If a valid provided session cookie or session token is provided, a 400 Bad Request error. On an existing recovery flow, use the `getRecoveryFlow` API endpoint. You MUST NOT use this endpoint in client-side (Single Page Apps, ReactJS, AngularJS) nor server-side (Java Server Pages, NodeJS, PHP, Golang, ...) browser applications. Using this endpoint in these applications will make you vulnerable to a variety of CSRF attacks. This endpoint MUST ONLY be used in scenarios such as native mobile apps (React Native, Objective C, Swift, Java, ...). More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). ### Parameters @@ -323,9 +329,9 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RecoveryFlow{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.RecoveryFlow}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -362,9 +368,9 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RegistrationFlow{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.RegistrationFlow}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -399,9 +405,9 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SettingsFlow{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.SettingsFlow}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -430,9 +436,9 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.VerificationFlow{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.VerificationFlow}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -469,10 +475,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.DeleteMySessionsCount{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.DeleteMySessionsCount}, + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -511,9 +517,9 @@ defmodule Ory.Api.Frontend do |> Connection.request(request) |> evaluate_response([ {204, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -545,11 +551,11 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SuccessfulNativeLogin{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.SuccessfulNativeLogin}, + {403, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {410, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -580,10 +586,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.FlowError{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {500, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.FlowError}, + {403, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {500, Ory.Model.ErrorGeneric} ]) end @@ -620,11 +626,11 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.LoginFlow{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.LoginFlow}, + {403, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {410, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -661,10 +667,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RecoveryFlow{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.RecoveryFlow}, + {404, Ory.Model.ErrorGeneric}, + {410, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -701,11 +707,11 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RegistrationFlow{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.RegistrationFlow}, + {403, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {410, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -744,12 +750,12 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SettingsFlow{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.SettingsFlow}, + {401, Ory.Model.ErrorGeneric}, + {403, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {410, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -786,10 +792,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.VerificationFlow{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.VerificationFlow}, + {403, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -830,8 +836,10 @@ defmodule Ory.Api.Frontend do - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters - - `:per_page` (integer()): Items per Page This is the number of items per page. - - `:page` (integer()): Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + - `:per_page` (integer()): Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + - `:page` (integer()): Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + - `:page_size` (integer()): Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + - `:page_token` (String.t): Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - `:"X-Session-Token"` (String.t): Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. - `:Cookie` (String.t): Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. @@ -845,6 +853,8 @@ defmodule Ory.Api.Frontend do optional_params = %{ :per_page => :query, :page => :query, + :page_size => :query, + :page_token => :query, :"X-Session-Token" => :headers, :Cookie => :headers } @@ -859,10 +869,10 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.Session{}]}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Session}, + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -894,14 +904,14 @@ defmodule Ory.Api.Frontend do |> Connection.request(request) |> evaluate_response([ {204, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @doc """ Check Who the Current HTTP Session Belongs To - Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. + Uses the HTTP Headers in the GET request to determine (e.g. by using checking the cookies) who is authenticated. Returns a session object in the body or 401 if the credentials are invalid or no credentials were sent. When the request it successful it adds the user ID to the 'X-Kratos-Authenticated-Identity-Id' header in the response. If you call this endpoint from a server-side application, you must forward the HTTP Cookie Header to this endpoint: ```js pseudo-code example router.get('/protected-endpoint', async function (req, res) { const session = await client.toSession(undefined, req.header('cookie')) console.log(session) }) ``` When calling this endpoint from a non-browser application (e.g. mobile app) you must include the session token: ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\") console.log(session) ``` When using a token template, the token is included in the `tokenized` field of the session. ```js pseudo-code example ... const session = await client.toSession(\"the-session-token\", { tokenize_as: \"example-jwt-template\" }) console.log(session.tokenized) // The JWT ``` Depending on your configuration this endpoint might return a 403 status code if the session has a lower Authenticator Assurance Level (AAL) than is possible for the identity. This can happen if the identity has password + webauthn credentials (which would result in AAL2) but the session has only AAL1. If this error occurs, ask the user to sign in with the second factor or change the configuration. This endpoint is useful for: AJAX calls. Remember to send credentials and set up CORS correctly! Reverse proxies and API Gateways Server-side calls - use the `X-Session-Token` header! This endpoint authenticates users by checking: if the `Cookie` HTTP header was set containing an Ory Kratos Session Cookie; if the `Authorization: bearer ` HTTP header was set with a valid Ory Kratos Session Token; if the `X-Session-Token` HTTP header was set with a valid Ory Kratos Session Token. If none of these headers are set or the cookie or token are invalid, the endpoint returns a HTTP 401 status code. As explained above, this request may fail due to several reasons. The `error.id` can be one of: `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. ### Parameters @@ -909,6 +919,7 @@ defmodule Ory.Api.Frontend do - `opts` (keyword): Optional parameters - `:"X-Session-Token"` (String.t): Set the Session Token when calling from non-browser clients. A session token has a format of `MP2YWEMeM8MxjkGKpH4dqOQ4Q4DlSPaj`. - `:Cookie` (String.t): Set the Cookie Header. This is especially useful when calling this endpoint from a server-side application. In that scenario you must include the HTTP Cookie Header which originally was included in the request to your server. An example of a session in the HTTP Cookie Header is: `ory_kratos_session=a19iOVAbdzdgl70Rq1QZmrKmcjDtdsviCTZx7m9a9yHIUS8Wa9T7hvqyGTsLHi6Qifn2WUfpAKx9DWp0SJGleIn9vh2YF4A16id93kXFTgIgmwIOvbVAScyrx7yVl6bPZnCx27ec4WQDtaTewC1CpgudeDV2jQQnSaCP6ny3xa8qLH-QUgYqdQuoA_LF1phxgRCUfIrCLQOkolX5nv3ze_f==`. It is ok if more than one cookie are included here as all other cookies will be ignored. + - `:tokenize_as` (String.t): Returns the session additionally as a token (such as a JWT) The value of this parameter has to be a valid, configured Ory Session token template. For more information head over to [the documentation](http://ory.sh/docs/identities/session-to-jwt-cors). ### Returns @@ -919,7 +930,8 @@ defmodule Ory.Api.Frontend do def to_session(connection, opts \\ []) do optional_params = %{ :"X-Session-Token" => :headers, - :Cookie => :headers + :Cookie => :headers, + :tokenize_as => :query } request = @@ -932,16 +944,16 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Session{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Session}, + {401, Ory.Model.ErrorGeneric}, + {403, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @doc """ Submit a Login Flow - :::info This endpoint is EXPERIMENTAL and subject to potential breaking changes in the future. ::: Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). + Use this endpoint to complete a login flow. This endpoint behaves differently for API and browser flows. API flows expect `application/json` to be sent in the body and responds with HTTP 200 and a application/json body with the session token on success; HTTP 410 if the original flow expired with the appropriate error messages set and optionally a `use_flow_id` parameter in the body; HTTP 400 on form validation errors. Browser flows expect a Content-Type of `application/x-www-form-urlencoded` or `application/json` to be sent in the body and respond with a HTTP 303 redirect to the post/after login URL or the `return_to` value if it was set and if the login succeeded; a HTTP 303 redirect to the login UI URL with the flow ID containing the validation errors otherwise. Browser flows with an accept header of `application/json` will not redirect but instead respond with HTTP 200 and a application/json body with the signed in identity and a `Set-Cookie` header on success; HTTP 303 redirect to a fresh login flow if the original flow expired with the appropriate error messages set; HTTP 400 on form validation errors. If this endpoint is called with `Accept: application/json` in the header, the response contains the flow without a redirect. In the case of an error, the `error.id` of the JSON response body can be one of: `session_already_available`: The user is already signed in. `security_csrf_violation`: Unable to fetch the flow because a CSRF violation occurred. `security_identity_mismatch`: The requested `?return_to` address is not allowed to be used. Adjust this in the configuration! `browser_location_change_required`: Usually sent when an AJAX request indicates that the browser needs to open a specific URL. 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). ### Parameters @@ -976,12 +988,12 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SuccessfulNativeLogin{}}, + {200, Ory.Model.SuccessfulNativeLogin}, {303, false}, - {400, %Ory.Model.LoginFlow{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {422, %Ory.Model.ErrorBrowserLocationChangeRequired{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.LoginFlow}, + {410, Ory.Model.ErrorGeneric}, + {422, Ory.Model.ErrorBrowserLocationChangeRequired}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -1022,13 +1034,13 @@ defmodule Ory.Api.Frontend do |> evaluate_response([ {204, false}, {303, false}, - {:default, %Ory.Model.ErrorGeneric{}} + {:default, Ory.Model.ErrorGeneric} ]) end @doc """ - Complete Recovery Flow - Use this endpoint to complete a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). + Update Recovery Flow + Use this endpoint to update a recovery flow. This endpoint behaves differently for API and browser flows and has several states: `choose_method` expects `flow` (in the URL query) and `email` (in the body) to be sent and works with API- and Browser-initiated flows. For API clients and Browser clients with HTTP Header `Accept: application/json` it either returns a HTTP 200 OK when the form is valid and HTTP 400 OK when the form is invalid. and a HTTP 303 See Other redirect with a fresh recovery flow if the flow was otherwise invalid (e.g. expired). For Browser clients without HTTP Header `Accept` or with `Accept: text/*` it returns a HTTP 303 See Other redirect to the Recovery UI URL with the Recovery Flow ID appended. `sent_email` is the success state after `choose_method` for the `link` method and allows the user to request another recovery email. It works for both API and Browser-initiated flows and returns the same responses as the flow in `choose_method` state. `passed_challenge` expects a `token` to be sent in the URL query and given the nature of the flow (\"sending a recovery link\") does not have any API capabilities. The server responds with a HTTP 303 See Other redirect either to the Settings UI URL (if the link was valid) and instructs the user to update their password, or a redirect to the Recover UI URL with a new Recovery Flow ID which contains an error message that the recovery link was invalid. More information can be found at [Ory Kratos Account Recovery Documentation](../self-service/flows/account-recovery). ### Parameters @@ -1063,12 +1075,12 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RecoveryFlow{}}, + {200, Ory.Model.RecoveryFlow}, {303, false}, - {400, %Ory.Model.RecoveryFlow{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {422, %Ory.Model.ErrorBrowserLocationChangeRequired{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.RecoveryFlow}, + {410, Ory.Model.ErrorGeneric}, + {422, Ory.Model.ErrorBrowserLocationChangeRequired}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -1107,12 +1119,12 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SuccessfulNativeRegistration{}}, + {200, Ory.Model.SuccessfulNativeRegistration}, {303, false}, - {400, %Ory.Model.RegistrationFlow{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {422, %Ory.Model.ErrorBrowserLocationChangeRequired{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.RegistrationFlow}, + {410, Ory.Model.ErrorGeneric}, + {422, Ory.Model.ErrorBrowserLocationChangeRequired}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -1153,14 +1165,14 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.SettingsFlow{}}, + {200, Ory.Model.SettingsFlow}, {303, false}, - {400, %Ory.Model.SettingsFlow{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {403, %Ory.Model.ErrorGeneric{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {422, %Ory.Model.ErrorBrowserLocationChangeRequired{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.SettingsFlow}, + {401, Ory.Model.ErrorGeneric}, + {403, Ory.Model.ErrorGeneric}, + {410, Ory.Model.ErrorGeneric}, + {422, Ory.Model.ErrorBrowserLocationChangeRequired}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -1201,11 +1213,11 @@ defmodule Ory.Api.Frontend do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.VerificationFlow{}}, + {200, Ory.Model.VerificationFlow}, {303, false}, - {400, %Ory.Model.VerificationFlow{}}, - {410, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.VerificationFlow}, + {410, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end end diff --git a/clients/kratos/elixir/lib/ory/api/identity.ex b/clients/kratos/elixir/lib/ory/api/identity.ex index d9ae8796684..b76fc2e4292 100644 --- a/clients/kratos/elixir/lib/ory/api/identity.ex +++ b/clients/kratos/elixir/lib/ory/api/identity.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Identity do @@ -41,10 +41,10 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.BatchPatchIdentitiesResponse{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {409, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.BatchPatchIdentitiesResponse}, + {400, Ory.Model.ErrorGeneric}, + {409, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -80,10 +80,10 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {201, %Ory.Model.Identity{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {409, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {201, Ory.Model.Identity}, + {400, Ory.Model.ErrorGeneric}, + {409, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -119,10 +119,10 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {201, %Ory.Model.RecoveryCodeForIdentity{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {201, Ory.Model.RecoveryCodeForIdentity}, + {400, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -134,6 +134,7 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters + - `:return_to` (String.t): - `:body` (CreateRecoveryLinkForIdentityBody): ### Returns @@ -144,6 +145,7 @@ defmodule Ory.Api.Identity do @spec create_recovery_link_for_identity(Tesla.Env.client, keyword()) :: {:ok, Ory.Model.ErrorGeneric.t} | {:ok, Ory.Model.RecoveryLinkForIdentity.t} | {:error, Tesla.Env.t} def create_recovery_link_for_identity(connection, opts \\ []) do optional_params = %{ + :return_to => :query, :body => :body } @@ -158,10 +160,10 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.RecoveryLinkForIdentity{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.RecoveryLinkForIdentity}, + {400, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -192,8 +194,8 @@ defmodule Ory.Api.Identity do |> Connection.request(request) |> evaluate_response([ {204, false}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -205,7 +207,7 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `id` (String.t): ID is the identity's ID. - - `type` (String.t): Type is the credential's Type. One of totp, webauthn, lookup + - `type` (String.t): Type is the type of credentials to be deleted. password CredentialsTypePassword oidc CredentialsTypeOIDC totp CredentialsTypeTOTP lookup_secret CredentialsTypeLookup webauthn CredentialsTypeWebAuthn code CredentialsTypeCodeAuth 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 - `opts` (keyword): Optional parameters ### Returns @@ -225,8 +227,8 @@ defmodule Ory.Api.Identity do |> Connection.request(request) |> evaluate_response([ {204, false}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -257,10 +259,10 @@ defmodule Ory.Api.Identity do |> Connection.request(request) |> evaluate_response([ {204, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -291,9 +293,9 @@ defmodule Ory.Api.Identity do |> Connection.request(request) |> evaluate_response([ {204, false}, - {400, %Ory.Model.ErrorGeneric{}}, - {401, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {400, Ory.Model.ErrorGeneric}, + {401, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -324,10 +326,10 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Session{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Session}, + {400, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -363,9 +365,9 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Identity{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Identity}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -396,8 +398,8 @@ defmodule Ory.Api.Identity do |> Connection.request(request) |> evaluate_response([ {200, %{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -433,9 +435,9 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Session{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Session}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -447,9 +449,14 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters - - `:per_page` (integer()): Items per Page This is the number of items per page. - - `:page` (integer()): Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. - - `:credentials_identifier` (String.t): CredentialsIdentifier is the identifier (username, email) of the credentials to look up. + - `:per_page` (integer()): Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + - `:page` (integer()): Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + - `:page_size` (integer()): Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + - `:page_token` (String.t): Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + - `:consistency` (String.t): Read Consistency Level (preview) The read consistency level determines the consistency guarantee for reads: strong (slow): The read is guaranteed to return the most recent data committed at the start of the read. eventual (very fast): The result will return data that is about 4.8 seconds old. The default consistency guarantee can be changed in the Ory Network Console or using the Ory CLI with `ory patch project --replace '/previews/default_read_consistency_level=\"strong\"'`. Setting the default consistency level to `eventual` may cause regressions in the future as we add consistency controls to more APIs. Currently, the following APIs will be affected by this setting: `GET /admin/identities` This feature is in preview and only available in Ory Network. ConsistencyLevelUnset ConsistencyLevelUnset is the unset / default consistency level. strong ConsistencyLevelStrong ConsistencyLevelStrong is the strong consistency level. eventual ConsistencyLevelEventual ConsistencyLevelEventual is the eventual consistency level using follower read timestamps. + - `:ids` ([String.t]): List of ids used to filter identities. If this list is empty, then no filter will be applied. + - `:credentials_identifier` (String.t): CredentialsIdentifier is the identifier (username, email) of the credentials to look up using exact match. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. + - `:preview_credentials_identifier_similar` (String.t): This is an EXPERIMENTAL parameter that WILL CHANGE. Do NOT rely on consistent, deterministic behavior. THIS PARAMETER WILL BE REMOVED IN AN UPCOMING RELEASE WITHOUT ANY MIGRATION PATH. CredentialsIdentifierSimilar is the (partial) identifier (username, email) of the credentials to look up using similarity search. Only one of CredentialsIdentifier and CredentialsIdentifierSimilar can be used. ### Returns @@ -461,7 +468,12 @@ defmodule Ory.Api.Identity do optional_params = %{ :per_page => :query, :page => :query, - :credentials_identifier => :query + :page_size => :query, + :page_token => :query, + :consistency => :query, + :ids => :query, + :credentials_identifier => :query, + :preview_credentials_identifier_similar => :query } request = @@ -474,8 +486,8 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.Identity{}]}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Identity}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -487,8 +499,10 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `opts` (keyword): Optional parameters - - `:per_page` (integer()): Items per Page This is the number of items per page. - - `:page` (integer()): Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + - `:per_page` (integer()): Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + - `:page` (integer()): Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + - `:page_size` (integer()): Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + - `:page_token` (String.t): Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). ### Returns @@ -499,7 +513,9 @@ defmodule Ory.Api.Identity do def list_identity_schemas(connection, opts \\ []) do optional_params = %{ :per_page => :query, - :page => :query + :page => :query, + :page_size => :query, + :page_token => :query } request = @@ -512,8 +528,8 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.IdentitySchemaContainer{}]}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.IdentitySchemaContainer}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -526,8 +542,10 @@ defmodule Ory.Api.Identity do - `connection` (Ory.Connection): Connection to server - `id` (String.t): ID is the identity's ID. - `opts` (keyword): Optional parameters - - `:per_page` (integer()): Items per Page This is the number of items per page. - - `:page` (integer()): Pagination Page This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. + - `:per_page` (integer()): Deprecated Items per Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This is the number of items per page. + - `:page` (integer()): Deprecated Pagination Page DEPRECATED: Please use `page_token` instead. This parameter will be removed in the future. This value is currently an integer, but it is not sequential. The value is not the page number, but a reference. The next page can be any number and some numbers might return an empty list. For example, page 2 might not follow after page 1. And even if page 3 and 5 exist, but page 4 might not exist. The first page can be retrieved by omitting this parameter. Following page pointers will be returned in the `Link` header. + - `:page_size` (integer()): Page Size This is the number of items per page to return. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). + - `:page_token` (String.t): Next Page Token The next page token. For details on pagination please head over to the [pagination documentation](https://www.ory.sh/docs/ecosystem/api-design#pagination). - `:active` (boolean()): Active is a boolean flag that filters out sessions based on the state. If no value is provided, all sessions are returned. ### Returns @@ -540,6 +558,8 @@ defmodule Ory.Api.Identity do optional_params = %{ :per_page => :query, :page => :query, + :page_size => :query, + :page_token => :query, :active => :query } @@ -553,10 +573,10 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.Session{}]}, - {400, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Session}, + {400, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -597,9 +617,9 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, [%Ory.Model.Session{}]}, - {400, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Session}, + {400, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -636,11 +656,11 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Identity{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {409, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Identity}, + {400, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {409, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end @@ -677,11 +697,11 @@ defmodule Ory.Api.Identity do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.Identity{}}, - {400, %Ory.Model.ErrorGeneric{}}, - {404, %Ory.Model.ErrorGeneric{}}, - {409, %Ory.Model.ErrorGeneric{}}, - {:default, %Ory.Model.ErrorGeneric{}} + {200, Ory.Model.Identity}, + {400, Ory.Model.ErrorGeneric}, + {404, Ory.Model.ErrorGeneric}, + {409, Ory.Model.ErrorGeneric}, + {:default, Ory.Model.ErrorGeneric} ]) end end diff --git a/clients/kratos/elixir/lib/ory/api/metadata.ex b/clients/kratos/elixir/lib/ory/api/metadata.ex index 99109b1762d..0a26d72abc5 100644 --- a/clients/kratos/elixir/lib/ory/api/metadata.ex +++ b/clients/kratos/elixir/lib/ory/api/metadata.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Api.Metadata do @@ -34,7 +34,7 @@ defmodule Ory.Api.Metadata do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.GetVersion200Response{}} + {200, Ory.Model.GetVersion200Response} ]) end @@ -63,7 +63,7 @@ defmodule Ory.Api.Metadata do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.IsAlive200Response{}}, + {200, Ory.Model.IsAlive200Response}, {:default, false} ]) end @@ -93,8 +93,8 @@ defmodule Ory.Api.Metadata do connection |> Connection.request(request) |> evaluate_response([ - {200, %Ory.Model.IsAlive200Response{}}, - {503, %Ory.Model.IsReady503Response{}}, + {200, Ory.Model.IsAlive200Response}, + {503, Ory.Model.IsReady503Response}, {:default, false} ]) end diff --git a/clients/kratos/elixir/lib/ory/connection.ex b/clients/kratos/elixir/lib/ory/connection.ex index f5201fa7a6a..19e410e9e70 100644 --- a/clients/kratos/elixir/lib/ory/connection.ex +++ b/clients/kratos/elixir/lib/ory/connection.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Connection do @@ -87,7 +87,7 @@ defmodule Ory.Connection do tesla_options = Application.get_env(:tesla, __MODULE__, []) middleware = Keyword.get(tesla_options, :middleware, []) - json_engine = Keyword.get(tesla_options, :json, Poison) + json_engine = Keyword.get(tesla_options, :json, Jason) user_agent = Keyword.get( @@ -96,7 +96,7 @@ defmodule Ory.Connection do Keyword.get( tesla_options, :user_agent, - "openapi-generator - Ory v1.0.0 - elixir" + "openapi-generator - Ory v1.1.0 - elixir" ) ) diff --git a/clients/kratos/elixir/lib/ory/deserializer.ex b/clients/kratos/elixir/lib/ory/deserializer.ex index 8a1531ca00e..c1beab2b5fc 100644 --- a/clients/kratos/elixir/lib/ory/deserializer.ex +++ b/clients/kratos/elixir/lib/ory/deserializer.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Deserializer do @@ -6,37 +6,81 @@ defmodule Ory.Deserializer do Helper functions for deserializing responses into models """ + @jason_decode_opts [keys: :strings] + + def jason_decode(json) do + Jason.decode(json, @jason_decode_opts) + end + + def jason_decode(json, module) do + json + |> jason_decode() + |> case do + {:ok, decoded} -> {:ok, to_struct(decoded, module)} + {:error, _} = error -> error + end + end + @doc """ Update the provided model with a deserialization of a nested value """ - @spec deserialize(struct(), :atom, :atom, struct(), keyword()) :: struct() - def deserialize(model, field, :list, mod, options) do + @spec deserialize(struct(), atom(), :date | :datetime | :list | :map | :struct, module()) :: + struct() + def deserialize(model, field, :list, module) do model - |> Map.update!(field, &(Poison.Decode.decode(&1, Keyword.merge(options, [as: [struct(mod)]])))) + |> Map.update!(field, fn + nil -> + nil + + list -> + Enum.map(list, &to_struct(&1, module)) + end) end - def deserialize(model, field, :struct, mod, options) do + def deserialize(model, field, :struct, module) do model - |> Map.update!(field, &(Poison.Decode.decode(&1, Keyword.merge(options, [as: struct(mod)])))) + |> Map.update!(field, fn + nil -> + nil + + value -> + to_struct(value, module) + end) end - def deserialize(model, field, :map, mod, options) do + def deserialize(model, field, :map, module) do maybe_transform_map = fn nil -> nil existing_value -> Map.new(existing_value, fn - {key, val} -> - {key, Poison.Decode.decode(val, Keyword.merge(options, as: struct(mod)))} + {key, value} -> + {key, to_struct(value, module)} end) end Map.update!(model, field, maybe_transform_map) end - def deserialize(model, field, :date, _, _options) do + def deserialize(model, field, :date, _) do + value = Map.get(model, field) + + case is_binary(value) do + true -> + case Date.from_iso8601(value) do + {:ok, date} -> Map.put(model, field, date) + _ -> model + end + + false -> + model + end + end + + def deserialize(model, field, :datetime, _) do value = Map.get(model, field) + case is_binary(value) do true -> case DateTime.from_iso8601(value) do @@ -48,4 +92,23 @@ defmodule Ory.Deserializer do model end end + + defp to_struct(map_or_list, module) + defp to_struct(nil, _), do: nil + + defp to_struct(list, module) when is_list(list) and is_atom(module) do + Enum.map(list, &to_struct(&1, module)) + end + + defp to_struct(map, module) when is_map(map) and is_atom(module) do + model = struct(module) + + model + |> Map.keys() + |> List.delete(:__struct__) + |> Enum.reduce(model, fn field, acc -> + Map.replace(acc, field, Map.get(map, Atom.to_string(field))) + end) + |> module.decode() + end end diff --git a/clients/kratos/elixir/lib/ory/model/authenticator_assurance_level.ex b/clients/kratos/elixir/lib/ory/model/authenticator_assurance_level.ex index 135d5358061..9f9486c6ab8 100644 --- a/clients/kratos/elixir/lib/ory/model/authenticator_assurance_level.ex +++ b/clients/kratos/elixir/lib/ory/model/authenticator_assurance_level.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.AuthenticatorAssuranceLevel do @@ -6,7 +6,7 @@ defmodule Ory.Model.AuthenticatorAssuranceLevel do The authenticator assurance level can be one of \"aal1\", \"aal2\", or \"aal3\". A higher number means that it is harder for an attacker to compromise the account. Generally, \"aal1\" implies that one authentication factor was used while AAL2 implies that two factors (e.g. password + TOTP) have been used. To learn more about these levels please head over to: https://www.ory.sh/kratos/docs/concepts/credentials """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ ] @@ -14,10 +14,8 @@ defmodule Ory.Model.AuthenticatorAssuranceLevel do @type t :: %__MODULE__{ } -end -defimpl Poison.Decoder, for: Ory.Model.AuthenticatorAssuranceLevel do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/batch_patch_identities_response.ex b/clients/kratos/elixir/lib/ory/model/batch_patch_identities_response.ex index 92d0a8dbb30..0d408ac282d 100644 --- a/clients/kratos/elixir/lib/ory/model/batch_patch_identities_response.ex +++ b/clients/kratos/elixir/lib/ory/model/batch_patch_identities_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.BatchPatchIdentitiesResponse do @@ -6,7 +6,7 @@ defmodule Ory.Model.BatchPatchIdentitiesResponse do Patch identities response """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :identities ] @@ -14,13 +14,12 @@ defmodule Ory.Model.BatchPatchIdentitiesResponse do @type t :: %__MODULE__{ :identities => [Ory.Model.IdentityPatchResponse.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.BatchPatchIdentitiesResponse do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:identities, :list, Ory.Model.IdentityPatchResponse, options) + |> Deserializer.deserialize(:identities, :list, Ory.Model.IdentityPatchResponse) end end diff --git a/clients/kratos/elixir/lib/ory/model/consistency_request_parameters.ex b/clients/kratos/elixir/lib/ory/model/consistency_request_parameters.ex new file mode 100644 index 00000000000..81da7b7bcbb --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/consistency_request_parameters.ex @@ -0,0 +1,22 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.ConsistencyRequestParameters do + @moduledoc """ + Control API consistency guarantees + """ + + @derive Jason.Encoder + defstruct [ + :consistency + ] + + @type t :: %__MODULE__{ + :consistency => String.t | nil + } + + def decode(value) do + value + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/continue_with.ex b/clients/kratos/elixir/lib/ory/model/continue_with.ex index 762978d3549..10b1c32f07e 100644 --- a/clients/kratos/elixir/lib/ory/model/continue_with.ex +++ b/clients/kratos/elixir/lib/ory/model/continue_with.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ContinueWith do @@ -6,7 +6,7 @@ defmodule Ory.Model.ContinueWith do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :action, :flow, @@ -15,16 +15,15 @@ defmodule Ory.Model.ContinueWith do @type t :: %__MODULE__{ :action => String.t, - :flow => Ory.Model.ContinueWithVerificationUiFlow.t, + :flow => Ory.Model.ContinueWithRecoveryUiFlow.t, :ory_session_token => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.ContinueWith do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:flow, :struct, Ory.Model.ContinueWithVerificationUiFlow, options) + |> Deserializer.deserialize(:flow, :struct, Ory.Model.ContinueWithRecoveryUiFlow) end end diff --git a/clients/kratos/elixir/lib/ory/model/continue_with_recovery_ui.ex b/clients/kratos/elixir/lib/ory/model/continue_with_recovery_ui.ex new file mode 100644 index 00000000000..cce9741fa5e --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/continue_with_recovery_ui.ex @@ -0,0 +1,27 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.ContinueWithRecoveryUi do + @moduledoc """ + Indicates, that the UI flow could be continued by showing a recovery ui + """ + + @derive Jason.Encoder + defstruct [ + :action, + :flow + ] + + @type t :: %__MODULE__{ + :action => String.t, + :flow => Ory.Model.ContinueWithRecoveryUiFlow.t + } + + alias Ory.Deserializer + + def decode(value) do + value + |> Deserializer.deserialize(:flow, :struct, Ory.Model.ContinueWithRecoveryUiFlow) + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/continue_with_recovery_ui_flow.ex b/clients/kratos/elixir/lib/ory/model/continue_with_recovery_ui_flow.ex new file mode 100644 index 00000000000..af16f1d3ab9 --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/continue_with_recovery_ui_flow.ex @@ -0,0 +1,24 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.ContinueWithRecoveryUiFlow do + @moduledoc """ + + """ + + @derive Jason.Encoder + defstruct [ + :id, + :url + ] + + @type t :: %__MODULE__{ + :id => String.t, + :url => String.t | nil + } + + def decode(value) do + value + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/continue_with_set_ory_session_token.ex b/clients/kratos/elixir/lib/ory/model/continue_with_set_ory_session_token.ex index b39b80736a4..ab1de19bc67 100644 --- a/clients/kratos/elixir/lib/ory/model/continue_with_set_ory_session_token.ex +++ b/clients/kratos/elixir/lib/ory/model/continue_with_set_ory_session_token.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ContinueWithSetOrySessionToken do @@ -6,7 +6,7 @@ defmodule Ory.Model.ContinueWithSetOrySessionToken do Indicates that a session was issued, and the application should use this token for authenticated requests """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :action, :ory_session_token @@ -16,10 +16,8 @@ defmodule Ory.Model.ContinueWithSetOrySessionToken do :action => String.t, :ory_session_token => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.ContinueWithSetOrySessionToken do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/continue_with_settings_ui.ex b/clients/kratos/elixir/lib/ory/model/continue_with_settings_ui.ex new file mode 100644 index 00000000000..8e3926e70fb --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/continue_with_settings_ui.ex @@ -0,0 +1,27 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.ContinueWithSettingsUi do + @moduledoc """ + Indicates, that the UI flow could be continued by showing a settings ui + """ + + @derive Jason.Encoder + defstruct [ + :action, + :flow + ] + + @type t :: %__MODULE__{ + :action => String.t, + :flow => Ory.Model.ContinueWithSettingsUiFlow.t + } + + alias Ory.Deserializer + + def decode(value) do + value + |> Deserializer.deserialize(:flow, :struct, Ory.Model.ContinueWithSettingsUiFlow) + end +end + diff --git a/clients/client/elixir/lib/ory/model/stripe_customer.ex b/clients/kratos/elixir/lib/ory/model/continue_with_settings_ui_flow.ex similarity index 80% rename from clients/client/elixir/lib/ory/model/stripe_customer.ex rename to clients/kratos/elixir/lib/ory/model/continue_with_settings_ui_flow.ex index e648adf7ddc..2bc3d5d0f9a 100644 --- a/clients/client/elixir/lib/ory/model/stripe_customer.ex +++ b/clients/kratos/elixir/lib/ory/model/continue_with_settings_ui_flow.ex @@ -1,7 +1,7 @@ # NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. -defmodule Ory.Model.StripeCustomer do +defmodule Ory.Model.ContinueWithSettingsUiFlow do @moduledoc """ """ @@ -12,7 +12,7 @@ defmodule Ory.Model.StripeCustomer do ] @type t :: %__MODULE__{ - :id => String.t | nil + :id => String.t } def decode(value) do diff --git a/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui.ex b/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui.ex index 7a9522e2a62..5f7f7362cda 100644 --- a/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui.ex +++ b/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ContinueWithVerificationUi do @@ -6,7 +6,7 @@ defmodule Ory.Model.ContinueWithVerificationUi do Indicates, that the UI flow could be continued by showing a verification ui """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :action, :flow @@ -16,13 +16,12 @@ defmodule Ory.Model.ContinueWithVerificationUi do :action => String.t, :flow => Ory.Model.ContinueWithVerificationUiFlow.t } -end -defimpl Poison.Decoder, for: Ory.Model.ContinueWithVerificationUi do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:flow, :struct, Ory.Model.ContinueWithVerificationUiFlow, options) + |> Deserializer.deserialize(:flow, :struct, Ory.Model.ContinueWithVerificationUiFlow) end end diff --git a/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui_flow.ex b/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui_flow.ex index 35056f45a43..13597f36873 100644 --- a/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/continue_with_verification_ui_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ContinueWithVerificationUiFlow do @@ -6,7 +6,7 @@ defmodule Ory.Model.ContinueWithVerificationUiFlow do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :id, :url, @@ -18,10 +18,8 @@ defmodule Ory.Model.ContinueWithVerificationUiFlow do :url => String.t | nil, :verifiable_address => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.ContinueWithVerificationUiFlow do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/courier_message_status.ex b/clients/kratos/elixir/lib/ory/model/courier_message_status.ex index 91352fd5484..7d4afda96e8 100644 --- a/clients/kratos/elixir/lib/ory/model/courier_message_status.ex +++ b/clients/kratos/elixir/lib/ory/model/courier_message_status.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CourierMessageStatus do @@ -6,7 +6,7 @@ defmodule Ory.Model.CourierMessageStatus do A Message's Status """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ ] @@ -14,10 +14,8 @@ defmodule Ory.Model.CourierMessageStatus do @type t :: %__MODULE__{ } -end -defimpl Poison.Decoder, for: Ory.Model.CourierMessageStatus do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/courier_message_type.ex b/clients/kratos/elixir/lib/ory/model/courier_message_type.ex index e37fe823646..5ed7dd351a4 100644 --- a/clients/kratos/elixir/lib/ory/model/courier_message_type.ex +++ b/clients/kratos/elixir/lib/ory/model/courier_message_type.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CourierMessageType do @@ -6,7 +6,7 @@ defmodule Ory.Model.CourierMessageType do It can either be `email` or `phone` """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ ] @@ -14,10 +14,8 @@ defmodule Ory.Model.CourierMessageType do @type t :: %__MODULE__{ } -end -defimpl Poison.Decoder, for: Ory.Model.CourierMessageType do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/create_identity_body.ex b/clients/kratos/elixir/lib/ory/model/create_identity_body.ex index 303954ee677..9251559f387 100644 --- a/clients/kratos/elixir/lib/ory/model/create_identity_body.ex +++ b/clients/kratos/elixir/lib/ory/model/create_identity_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CreateIdentityBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.CreateIdentityBody do Create Identity Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :credentials, :metadata_admin, @@ -24,20 +24,18 @@ defmodule Ory.Model.CreateIdentityBody do :metadata_public => any() | nil, :recovery_addresses => [Ory.Model.RecoveryIdentityAddress.t] | nil, :schema_id => String.t, - :state => Ory.Model.IdentityState.t | nil, + :state => String.t | nil, :traits => map(), :verifiable_addresses => [Ory.Model.VerifiableIdentityAddress.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.CreateIdentityBody do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:credentials, :struct, Ory.Model.IdentityWithCredentials, options) - |> deserialize(:recovery_addresses, :list, Ory.Model.RecoveryIdentityAddress, options) - |> deserialize(:state, :struct, Ory.Model.IdentityState, options) - |> deserialize(:verifiable_addresses, :list, Ory.Model.VerifiableIdentityAddress, options) + |> Deserializer.deserialize(:credentials, :struct, Ory.Model.IdentityWithCredentials) + |> Deserializer.deserialize(:recovery_addresses, :list, Ory.Model.RecoveryIdentityAddress) + |> Deserializer.deserialize(:verifiable_addresses, :list, Ory.Model.VerifiableIdentityAddress) end end diff --git a/clients/kratos/elixir/lib/ory/model/create_recovery_code_for_identity_body.ex b/clients/kratos/elixir/lib/ory/model/create_recovery_code_for_identity_body.ex index eb07d8b50a6..2bc09871101 100644 --- a/clients/kratos/elixir/lib/ory/model/create_recovery_code_for_identity_body.ex +++ b/clients/kratos/elixir/lib/ory/model/create_recovery_code_for_identity_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CreateRecoveryCodeForIdentityBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.CreateRecoveryCodeForIdentityBody do Create Recovery Code for Identity Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :expires_in, :identity_id @@ -16,10 +16,8 @@ defmodule Ory.Model.CreateRecoveryCodeForIdentityBody do :expires_in => String.t | nil, :identity_id => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.CreateRecoveryCodeForIdentityBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/create_recovery_link_for_identity_body.ex b/clients/kratos/elixir/lib/ory/model/create_recovery_link_for_identity_body.ex index 1d782c981fb..c7a37eb5040 100644 --- a/clients/kratos/elixir/lib/ory/model/create_recovery_link_for_identity_body.ex +++ b/clients/kratos/elixir/lib/ory/model/create_recovery_link_for_identity_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.CreateRecoveryLinkForIdentityBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.CreateRecoveryLinkForIdentityBody do Create Recovery Link for Identity Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :expires_in, :identity_id @@ -16,10 +16,8 @@ defmodule Ory.Model.CreateRecoveryLinkForIdentityBody do :expires_in => String.t | nil, :identity_id => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.CreateRecoveryLinkForIdentityBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/delete_my_sessions_count.ex b/clients/kratos/elixir/lib/ory/model/delete_my_sessions_count.ex index 86fc745fcc0..2ff9dd6f62a 100644 --- a/clients/kratos/elixir/lib/ory/model/delete_my_sessions_count.ex +++ b/clients/kratos/elixir/lib/ory/model/delete_my_sessions_count.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.DeleteMySessionsCount do @@ -6,7 +6,7 @@ defmodule Ory.Model.DeleteMySessionsCount do Deleted Session Count """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :count ] @@ -14,10 +14,8 @@ defmodule Ory.Model.DeleteMySessionsCount do @type t :: %__MODULE__{ :count => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.DeleteMySessionsCount do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/error_authenticator_assurance_level_not_satisfied.ex b/clients/kratos/elixir/lib/ory/model/error_authenticator_assurance_level_not_satisfied.ex index 37609c9a010..d4d0cc886c8 100644 --- a/clients/kratos/elixir/lib/ory/model/error_authenticator_assurance_level_not_satisfied.ex +++ b/clients/kratos/elixir/lib/ory/model/error_authenticator_assurance_level_not_satisfied.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ErrorAuthenticatorAssuranceLevelNotSatisfied do @@ -6,7 +6,7 @@ defmodule Ory.Model.ErrorAuthenticatorAssuranceLevelNotSatisfied do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :redirect_browser_to @@ -16,13 +16,12 @@ defmodule Ory.Model.ErrorAuthenticatorAssuranceLevelNotSatisfied do :error => Ory.Model.GenericError.t | nil, :redirect_browser_to => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.ErrorAuthenticatorAssuranceLevelNotSatisfied do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:error, :struct, Ory.Model.GenericError, options) + |> Deserializer.deserialize(:error, :struct, Ory.Model.GenericError) end end diff --git a/clients/kratos/elixir/lib/ory/model/error_browser_location_change_required.ex b/clients/kratos/elixir/lib/ory/model/error_browser_location_change_required.ex index fe90202bdfa..f88656a5360 100644 --- a/clients/kratos/elixir/lib/ory/model/error_browser_location_change_required.ex +++ b/clients/kratos/elixir/lib/ory/model/error_browser_location_change_required.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ErrorBrowserLocationChangeRequired do @@ -6,7 +6,7 @@ defmodule Ory.Model.ErrorBrowserLocationChangeRequired do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :redirect_browser_to @@ -16,13 +16,12 @@ defmodule Ory.Model.ErrorBrowserLocationChangeRequired do :error => Ory.Model.ErrorGeneric.t | nil, :redirect_browser_to => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.ErrorBrowserLocationChangeRequired do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:error, :struct, Ory.Model.ErrorGeneric, options) + |> Deserializer.deserialize(:error, :struct, Ory.Model.ErrorGeneric) end end diff --git a/clients/kratos/elixir/lib/ory/model/error_flow_replaced.ex b/clients/kratos/elixir/lib/ory/model/error_flow_replaced.ex index 20dec830947..b59d14b0713 100644 --- a/clients/kratos/elixir/lib/ory/model/error_flow_replaced.ex +++ b/clients/kratos/elixir/lib/ory/model/error_flow_replaced.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ErrorFlowReplaced do @@ -6,7 +6,7 @@ defmodule Ory.Model.ErrorFlowReplaced do Is sent when a flow is replaced by a different flow of the same class """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :use_flow_id @@ -16,13 +16,12 @@ defmodule Ory.Model.ErrorFlowReplaced do :error => Ory.Model.GenericError.t | nil, :use_flow_id => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.ErrorFlowReplaced do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:error, :struct, Ory.Model.GenericError, options) + |> Deserializer.deserialize(:error, :struct, Ory.Model.GenericError) end end diff --git a/clients/kratos/elixir/lib/ory/model/error_generic.ex b/clients/kratos/elixir/lib/ory/model/error_generic.ex index 41973d51b3c..6c78de8fb6d 100644 --- a/clients/kratos/elixir/lib/ory/model/error_generic.ex +++ b/clients/kratos/elixir/lib/ory/model/error_generic.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.ErrorGeneric do @@ -6,7 +6,7 @@ defmodule Ory.Model.ErrorGeneric do The standard Ory JSON API error format. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error ] @@ -14,13 +14,12 @@ defmodule Ory.Model.ErrorGeneric do @type t :: %__MODULE__{ :error => Ory.Model.GenericError.t } -end -defimpl Poison.Decoder, for: Ory.Model.ErrorGeneric do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:error, :struct, Ory.Model.GenericError, options) + |> Deserializer.deserialize(:error, :struct, Ory.Model.GenericError) end end diff --git a/clients/kratos/elixir/lib/ory/model/flow_error.ex b/clients/kratos/elixir/lib/ory/model/flow_error.ex index 39e47a33a2c..83b0da01b53 100644 --- a/clients/kratos/elixir/lib/ory/model/flow_error.ex +++ b/clients/kratos/elixir/lib/ory/model/flow_error.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.FlowError do @@ -6,7 +6,7 @@ defmodule Ory.Model.FlowError do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :created_at, :error, @@ -20,11 +20,13 @@ defmodule Ory.Model.FlowError do :id => String.t, :updated_at => DateTime.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.FlowError do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/generic_error.ex b/clients/kratos/elixir/lib/ory/model/generic_error.ex index 949067acd07..3444469f390 100644 --- a/clients/kratos/elixir/lib/ory/model/generic_error.ex +++ b/clients/kratos/elixir/lib/ory/model/generic_error.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.GenericError do @@ -6,7 +6,7 @@ defmodule Ory.Model.GenericError do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :code, :debug, @@ -28,10 +28,8 @@ defmodule Ory.Model.GenericError do :request => String.t | nil, :status => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.GenericError do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/get_version_200_response.ex b/clients/kratos/elixir/lib/ory/model/get_version_200_response.ex index 7e976d2a91f..4f23f3fe7cf 100644 --- a/clients/kratos/elixir/lib/ory/model/get_version_200_response.ex +++ b/clients/kratos/elixir/lib/ory/model/get_version_200_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.GetVersion200Response do @@ -6,7 +6,7 @@ defmodule Ory.Model.GetVersion200Response do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :version ] @@ -14,10 +14,8 @@ defmodule Ory.Model.GetVersion200Response do @type t :: %__MODULE__{ :version => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.GetVersion200Response do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/health_not_ready_status.ex b/clients/kratos/elixir/lib/ory/model/health_not_ready_status.ex index 2d38870947b..aacf7119326 100644 --- a/clients/kratos/elixir/lib/ory/model/health_not_ready_status.ex +++ b/clients/kratos/elixir/lib/ory/model/health_not_ready_status.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.HealthNotReadyStatus do @@ -6,7 +6,7 @@ defmodule Ory.Model.HealthNotReadyStatus do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :errors ] @@ -14,10 +14,8 @@ defmodule Ory.Model.HealthNotReadyStatus do @type t :: %__MODULE__{ :errors => %{optional(String.t) => String.t} | nil } -end -defimpl Poison.Decoder, for: Ory.Model.HealthNotReadyStatus do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/health_status.ex b/clients/kratos/elixir/lib/ory/model/health_status.ex index ce9ff5d6083..0571d7eea97 100644 --- a/clients/kratos/elixir/lib/ory/model/health_status.ex +++ b/clients/kratos/elixir/lib/ory/model/health_status.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.HealthStatus do @@ -6,7 +6,7 @@ defmodule Ory.Model.HealthStatus do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :status ] @@ -14,10 +14,8 @@ defmodule Ory.Model.HealthStatus do @type t :: %__MODULE__{ :status => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.HealthStatus do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/identity.ex b/clients/kratos/elixir/lib/ory/model/identity.ex index fe15fd4b326..c74966cdec0 100644 --- a/clients/kratos/elixir/lib/ory/model/identity.ex +++ b/clients/kratos/elixir/lib/ory/model/identity.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Identity do @@ -6,13 +6,14 @@ defmodule Ory.Model.Identity do An [identity](https://www.ory.sh/docs/kratos/concepts/identity-user-model) represents a (human) user in Ory. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :created_at, :credentials, :id, :metadata_admin, :metadata_public, + :organization_id, :recovery_addresses, :schema_id, :schema_url, @@ -29,25 +30,27 @@ defmodule Ory.Model.Identity do :id => String.t, :metadata_admin => any() | nil, :metadata_public => any() | nil, + :organization_id => String.t | nil, :recovery_addresses => [Ory.Model.RecoveryIdentityAddress.t] | nil, :schema_id => String.t, :schema_url => String.t, - :state => Ory.Model.IdentityState.t | nil, + :state => String.t | nil, :state_changed_at => DateTime.t | nil, :traits => any() | nil, :updated_at => DateTime.t | nil, :verifiable_addresses => [Ory.Model.VerifiableIdentityAddress.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.Identity do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:credentials, :map, Ory.Model.IdentityCredentials, options) - |> deserialize(:recovery_addresses, :list, Ory.Model.RecoveryIdentityAddress, options) - |> deserialize(:state, :struct, Ory.Model.IdentityState, options) - |> deserialize(:verifiable_addresses, :list, Ory.Model.VerifiableIdentityAddress, options) + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:credentials, :map, Ory.Model.IdentityCredentials) + |> Deserializer.deserialize(:recovery_addresses, :list, Ory.Model.RecoveryIdentityAddress) + |> Deserializer.deserialize(:state_changed_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) + |> Deserializer.deserialize(:verifiable_addresses, :list, Ory.Model.VerifiableIdentityAddress) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_credentials.ex b/clients/kratos/elixir/lib/ory/model/identity_credentials.ex index da76e54f1ea..ab9b80d9ce8 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_credentials.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_credentials.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityCredentials do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityCredentials do Credentials represents a specific credential type """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :config, :created_at, @@ -20,17 +20,17 @@ defmodule Ory.Model.IdentityCredentials do :config => map() | nil, :created_at => DateTime.t | nil, :identifiers => [String.t] | nil, - :type => Ory.Model.IdentityCredentialsType.t | nil, + :type => String.t | nil, :updated_at => DateTime.t | nil, :version => integer() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityCredentials do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:type, :struct, Ory.Model.IdentityCredentialsType, options) + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_credentials_code.ex b/clients/kratos/elixir/lib/ory/model/identity_credentials_code.ex new file mode 100644 index 00000000000..e6686be245c --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/identity_credentials_code.ex @@ -0,0 +1,27 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.IdentityCredentialsCode do + @moduledoc """ + CredentialsCode represents a one time login/registration code + """ + + @derive Jason.Encoder + defstruct [ + :address_type, + :used_at + ] + + @type t :: %__MODULE__{ + :address_type => String.t | nil, + :used_at => DateTime.t | nil + } + + alias Ory.Deserializer + + def decode(value) do + value + |> Deserializer.deserialize(:used_at, :datetime, nil) + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc.ex b/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc.ex index e98420b80e5..b333357b239 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityCredentialsOidc do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityCredentialsOidc do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :providers ] @@ -14,13 +14,12 @@ defmodule Ory.Model.IdentityCredentialsOidc do @type t :: %__MODULE__{ :providers => [Ory.Model.IdentityCredentialsOidcProvider.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityCredentialsOidc do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:providers, :list, Ory.Model.IdentityCredentialsOidcProvider, options) + |> Deserializer.deserialize(:providers, :list, Ory.Model.IdentityCredentialsOidcProvider) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc_provider.ex b/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc_provider.ex index deb80a09303..a88d9ecb8bb 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc_provider.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_credentials_oidc_provider.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityCredentialsOidcProvider do @@ -6,11 +6,12 @@ defmodule Ory.Model.IdentityCredentialsOidcProvider do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :initial_access_token, :initial_id_token, :initial_refresh_token, + :organization, :provider, :subject ] @@ -19,13 +20,12 @@ defmodule Ory.Model.IdentityCredentialsOidcProvider do :initial_access_token => String.t | nil, :initial_id_token => String.t | nil, :initial_refresh_token => String.t | nil, + :organization => String.t | nil, :provider => String.t | nil, :subject => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityCredentialsOidcProvider do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_credentials_password.ex b/clients/kratos/elixir/lib/ory/model/identity_credentials_password.ex index 115ec81c7b9..b552157ef40 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_credentials_password.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_credentials_password.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityCredentialsPassword do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityCredentialsPassword do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :hashed_password ] @@ -14,10 +14,8 @@ defmodule Ory.Model.IdentityCredentialsPassword do @type t :: %__MODULE__{ :hashed_password => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityCredentialsPassword do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_credentials_type.ex b/clients/kratos/elixir/lib/ory/model/identity_credentials_type.ex deleted file mode 100644 index 9fa02c74be7..00000000000 --- a/clients/kratos/elixir/lib/ory/model/identity_credentials_type.ex +++ /dev/null @@ -1,24 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). -# Do not edit this file manually. - -defmodule Ory.Model.IdentityCredentialsType do - @moduledoc """ - and so on. - """ - - @derive [Poison.Encoder] - defstruct [ - - ] - - @type t :: %__MODULE__{ - - } -end - -defimpl Poison.Decoder, for: Ory.Model.IdentityCredentialsType do - def decode(value, _options) do - value - end -end - diff --git a/clients/kratos/elixir/lib/ory/model/identity_patch.ex b/clients/kratos/elixir/lib/ory/model/identity_patch.ex index 4b56c16dad2..d21db00a35b 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_patch.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_patch.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityPatch do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityPatch do Payload for patching an identity """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :create, :patch_id @@ -16,13 +16,12 @@ defmodule Ory.Model.IdentityPatch do :create => Ory.Model.CreateIdentityBody.t | nil, :patch_id => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityPatch do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:create, :struct, Ory.Model.CreateIdentityBody, options) + |> Deserializer.deserialize(:create, :struct, Ory.Model.CreateIdentityBody) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_patch_response.ex b/clients/kratos/elixir/lib/ory/model/identity_patch_response.ex index f3a56149793..b248be38391 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_patch_response.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_patch_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityPatchResponse do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityPatchResponse do Response for a single identity patch """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :action, :identity, @@ -18,10 +18,8 @@ defmodule Ory.Model.IdentityPatchResponse do :identity => String.t | nil, :patch_id => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityPatchResponse do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_schema_container.ex b/clients/kratos/elixir/lib/ory/model/identity_schema_container.ex index fc15d1226ac..e0d59c3d1ff 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_schema_container.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_schema_container.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentitySchemaContainer do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentitySchemaContainer do An Identity JSON Schema Container """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :id, :schema @@ -16,10 +16,8 @@ defmodule Ory.Model.IdentitySchemaContainer do :id => String.t | nil, :schema => map() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentitySchemaContainer do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_state.ex b/clients/kratos/elixir/lib/ory/model/identity_state.ex deleted file mode 100644 index e8fb126bd19..00000000000 --- a/clients/kratos/elixir/lib/ory/model/identity_state.ex +++ /dev/null @@ -1,24 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). -# Do not edit this file manually. - -defmodule Ory.Model.IdentityState do - @moduledoc """ - The state can either be `active` or `inactive`. - """ - - @derive [Poison.Encoder] - defstruct [ - - ] - - @type t :: %__MODULE__{ - - } -end - -defimpl Poison.Decoder, for: Ory.Model.IdentityState do - def decode(value, _options) do - value - end -end - diff --git a/clients/kratos/elixir/lib/ory/model/identity_with_credentials.ex b/clients/kratos/elixir/lib/ory/model/identity_with_credentials.ex index 5dad47c81a3..d4fc6a1c919 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_with_credentials.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_with_credentials.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityWithCredentials do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityWithCredentials do Create Identity and Import Credentials """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :oidc, :password @@ -16,14 +16,13 @@ defmodule Ory.Model.IdentityWithCredentials do :oidc => Ory.Model.IdentityWithCredentialsOidc.t | nil, :password => Ory.Model.IdentityWithCredentialsPassword.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentials do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:oidc, :struct, Ory.Model.IdentityWithCredentialsOidc, options) - |> deserialize(:password, :struct, Ory.Model.IdentityWithCredentialsPassword, options) + |> Deserializer.deserialize(:oidc, :struct, Ory.Model.IdentityWithCredentialsOidc) + |> Deserializer.deserialize(:password, :struct, Ory.Model.IdentityWithCredentialsPassword) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc.ex b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc.ex index bb087bb90d2..51c7d974ab8 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityWithCredentialsOidc do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityWithCredentialsOidc do Create Identity and Import Social Sign In Credentials """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :config ] @@ -14,13 +14,12 @@ defmodule Ory.Model.IdentityWithCredentialsOidc do @type t :: %__MODULE__{ :config => Ory.Model.IdentityWithCredentialsOidcConfig.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentialsOidc do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:config, :struct, Ory.Model.IdentityWithCredentialsOidcConfig, options) + |> Deserializer.deserialize(:config, :struct, Ory.Model.IdentityWithCredentialsOidcConfig) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config.ex b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config.ex index 3681411f66c..8fe8c5da26d 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityWithCredentialsOidcConfig do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityWithCredentialsOidcConfig do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :config, :providers @@ -16,14 +16,13 @@ defmodule Ory.Model.IdentityWithCredentialsOidcConfig do :config => Ory.Model.IdentityWithCredentialsPasswordConfig.t | nil, :providers => [Ory.Model.IdentityWithCredentialsOidcConfigProvider.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentialsOidcConfig do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:config, :struct, Ory.Model.IdentityWithCredentialsPasswordConfig, options) - |> deserialize(:providers, :list, Ory.Model.IdentityWithCredentialsOidcConfigProvider, options) + |> Deserializer.deserialize(:config, :struct, Ory.Model.IdentityWithCredentialsPasswordConfig) + |> Deserializer.deserialize(:providers, :list, Ory.Model.IdentityWithCredentialsOidcConfigProvider) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config_provider.ex b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config_provider.ex index 886a4ad3f75..8bf6f02c324 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config_provider.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_oidc_config_provider.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityWithCredentialsOidcConfigProvider do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityWithCredentialsOidcConfigProvider do Create Identity and Import Social Sign In Credentials Configuration """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :provider, :subject @@ -16,10 +16,8 @@ defmodule Ory.Model.IdentityWithCredentialsOidcConfigProvider do :provider => String.t, :subject => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentialsOidcConfigProvider do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password.ex b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password.ex index 12716a3e7f4..a0a5de125cb 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityWithCredentialsPassword do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityWithCredentialsPassword do Create Identity and Import Password Credentials """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :config ] @@ -14,13 +14,12 @@ defmodule Ory.Model.IdentityWithCredentialsPassword do @type t :: %__MODULE__{ :config => Ory.Model.IdentityWithCredentialsPasswordConfig.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentialsPassword do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:config, :struct, Ory.Model.IdentityWithCredentialsPasswordConfig, options) + |> Deserializer.deserialize(:config, :struct, Ory.Model.IdentityWithCredentialsPasswordConfig) end end diff --git a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password_config.ex b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password_config.ex index ead3c400805..38c6bbcb20c 100644 --- a/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password_config.ex +++ b/clients/kratos/elixir/lib/ory/model/identity_with_credentials_password_config.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IdentityWithCredentialsPasswordConfig do @@ -6,7 +6,7 @@ defmodule Ory.Model.IdentityWithCredentialsPasswordConfig do Create Identity and Import Password Credentials Configuration """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :hashed_password, :password @@ -16,10 +16,8 @@ defmodule Ory.Model.IdentityWithCredentialsPasswordConfig do :hashed_password => String.t | nil, :password => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.IdentityWithCredentialsPasswordConfig do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/is_alive_200_response.ex b/clients/kratos/elixir/lib/ory/model/is_alive_200_response.ex index d582df843de..054448e2bc0 100644 --- a/clients/kratos/elixir/lib/ory/model/is_alive_200_response.ex +++ b/clients/kratos/elixir/lib/ory/model/is_alive_200_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IsAlive200Response do @@ -6,7 +6,7 @@ defmodule Ory.Model.IsAlive200Response do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :status ] @@ -14,10 +14,8 @@ defmodule Ory.Model.IsAlive200Response do @type t :: %__MODULE__{ :status => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.IsAlive200Response do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/is_ready_503_response.ex b/clients/kratos/elixir/lib/ory/model/is_ready_503_response.ex index 4cfae127eed..c119e2c66df 100644 --- a/clients/kratos/elixir/lib/ory/model/is_ready_503_response.ex +++ b/clients/kratos/elixir/lib/ory/model/is_ready_503_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.IsReady503Response do @@ -6,7 +6,7 @@ defmodule Ory.Model.IsReady503Response do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :errors ] @@ -14,10 +14,8 @@ defmodule Ory.Model.IsReady503Response do @type t :: %__MODULE__{ :errors => %{optional(String.t) => String.t} } -end -defimpl Poison.Decoder, for: Ory.Model.IsReady503Response do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/json_patch.ex b/clients/kratos/elixir/lib/ory/model/json_patch.ex index 55db7ace8cd..4c4c52a7009 100644 --- a/clients/kratos/elixir/lib/ory/model/json_patch.ex +++ b/clients/kratos/elixir/lib/ory/model/json_patch.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.JsonPatch do @@ -6,7 +6,7 @@ defmodule Ory.Model.JsonPatch do A JSONPatch document as defined by RFC 6902 """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :from, :op, @@ -20,10 +20,8 @@ defmodule Ory.Model.JsonPatch do :path => String.t, :value => any() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.JsonPatch do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/login_flow.ex b/clients/kratos/elixir/lib/ory/model/login_flow.ex index aacae9048b0..d8c11d96c3c 100644 --- a/clients/kratos/elixir/lib/ory/model/login_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/login_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.LoginFlow do @@ -6,7 +6,7 @@ defmodule Ory.Model.LoginFlow do This object represents a login flow. A login flow is initiated at the \"Initiate Login API / Browser Flow\" endpoint by a client. Once a login flow is completed successfully, a session cookie or session token will be issued. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, :created_at, @@ -15,43 +15,49 @@ defmodule Ory.Model.LoginFlow do :issued_at, :oauth2_login_challenge, :oauth2_login_request, + :organization_id, :refresh, :request_url, :requested_aal, :return_to, :session_token_exchange_code, + :state, :type, :ui, :updated_at ] @type t :: %__MODULE__{ - :active => Ory.Model.IdentityCredentialsType.t | nil, + :active => String.t | nil, :created_at => DateTime.t | nil, :expires_at => DateTime.t, :id => String.t, :issued_at => DateTime.t, :oauth2_login_challenge => String.t | nil, :oauth2_login_request => Ory.Model.OAuth2LoginRequest.t | nil, + :organization_id => String.t | nil, :refresh => boolean() | nil, :request_url => String.t, :requested_aal => Ory.Model.AuthenticatorAssuranceLevel.t | nil, :return_to => String.t | nil, :session_token_exchange_code => String.t | nil, + :state => any() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t, :updated_at => DateTime.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.LoginFlow do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:active, :struct, Ory.Model.IdentityCredentialsType, options) - |> deserialize(:oauth2_login_request, :struct, Ory.Model.OAuth2LoginRequest, options) - |> deserialize(:requested_aal, :struct, Ory.Model.AuthenticatorAssuranceLevel, options) - |> deserialize(:ui, :struct, Ory.Model.UiContainer, options) + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:issued_at, :datetime, nil) + |> Deserializer.deserialize(:oauth2_login_request, :struct, Ory.Model.OAuth2LoginRequest) + |> Deserializer.deserialize(:requested_aal, :struct, Ory.Model.AuthenticatorAssuranceLevel) + |> Deserializer.deserialize(:ui, :struct, Ory.Model.UiContainer) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/login_flow_state.ex b/clients/kratos/elixir/lib/ory/model/login_flow_state.ex new file mode 100644 index 00000000000..c564f9296c9 --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/login_flow_state.ex @@ -0,0 +1,22 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.LoginFlowState do + @moduledoc """ + The state represents the state of the login flow. choose_method: ask the user to choose a method (e.g. login account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the login challenge was passed. + """ + + @derive Jason.Encoder + defstruct [ + + ] + + @type t :: %__MODULE__{ + + } + + def decode(value) do + value + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/logout_flow.ex b/clients/kratos/elixir/lib/ory/model/logout_flow.ex index c01e4e50a79..83bc0648065 100644 --- a/clients/kratos/elixir/lib/ory/model/logout_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/logout_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.LogoutFlow do @@ -6,7 +6,7 @@ defmodule Ory.Model.LogoutFlow do Logout Flow """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :logout_token, :logout_url @@ -16,10 +16,8 @@ defmodule Ory.Model.LogoutFlow do :logout_token => String.t, :logout_url => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.LogoutFlow do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/message.ex b/clients/kratos/elixir/lib/ory/model/message.ex index a1808dcaebe..cb94817490e 100644 --- a/clients/kratos/elixir/lib/ory/model/message.ex +++ b/clients/kratos/elixir/lib/ory/model/message.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Message do @@ -6,9 +6,10 @@ defmodule Ory.Model.Message do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :body, + :channel, :created_at, :dispatches, :id, @@ -23,6 +24,7 @@ defmodule Ory.Model.Message do @type t :: %__MODULE__{ :body => String.t, + :channel => String.t | nil, :created_at => DateTime.t, :dispatches => [Ory.Model.MessageDispatch.t] | nil, :id => String.t, @@ -34,15 +36,16 @@ defmodule Ory.Model.Message do :type => Ory.Model.CourierMessageType.t, :updated_at => DateTime.t } -end -defimpl Poison.Decoder, for: Ory.Model.Message do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:dispatches, :list, Ory.Model.MessageDispatch, options) - |> deserialize(:status, :struct, Ory.Model.CourierMessageStatus, options) - |> deserialize(:type, :struct, Ory.Model.CourierMessageType, options) + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:dispatches, :list, Ory.Model.MessageDispatch) + |> Deserializer.deserialize(:status, :struct, Ory.Model.CourierMessageStatus) + |> Deserializer.deserialize(:type, :struct, Ory.Model.CourierMessageType) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/message_dispatch.ex b/clients/kratos/elixir/lib/ory/model/message_dispatch.ex index d75d13660f9..e8c6f73c5c8 100644 --- a/clients/kratos/elixir/lib/ory/model/message_dispatch.ex +++ b/clients/kratos/elixir/lib/ory/model/message_dispatch.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.MessageDispatch do @@ -6,7 +6,7 @@ defmodule Ory.Model.MessageDispatch do MessageDispatch represents an attempt of sending a courier message It contains the status of the attempt (failed or successful) and the error if any occured """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :created_at, :error, @@ -24,11 +24,13 @@ defmodule Ory.Model.MessageDispatch do :status => String.t, :updated_at => DateTime.t } -end -defimpl Poison.Decoder, for: Ory.Model.MessageDispatch do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/needs_privileged_session_error.ex b/clients/kratos/elixir/lib/ory/model/needs_privileged_session_error.ex index 1894c9d1011..2c6a88dfbdf 100644 --- a/clients/kratos/elixir/lib/ory/model/needs_privileged_session_error.ex +++ b/clients/kratos/elixir/lib/ory/model/needs_privileged_session_error.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.NeedsPrivilegedSessionError do @@ -6,7 +6,7 @@ defmodule Ory.Model.NeedsPrivilegedSessionError do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :redirect_browser_to @@ -16,13 +16,12 @@ defmodule Ory.Model.NeedsPrivilegedSessionError do :error => Ory.Model.GenericError.t | nil, :redirect_browser_to => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.NeedsPrivilegedSessionError do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:error, :struct, Ory.Model.GenericError, options) + |> Deserializer.deserialize(:error, :struct, Ory.Model.GenericError) end end diff --git a/clients/kratos/elixir/lib/ory/model/o_auth2_client.ex b/clients/kratos/elixir/lib/ory/model/o_auth2_client.ex index d4578ebf054..f9d7516bc92 100644 --- a/clients/kratos/elixir/lib/ory/model/o_auth2_client.ex +++ b/clients/kratos/elixir/lib/ory/model/o_auth2_client.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2Client do @@ -6,8 +6,9 @@ defmodule Ory.Model.OAuth2Client do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ + :access_token_strategy, :allowed_cors_origins, :audience, :authorization_code_grant_access_token_lifespan, @@ -47,6 +48,8 @@ defmodule Ory.Model.OAuth2Client do :response_types, :scope, :sector_identifier_uri, + :skip_consent, + :skip_logout_consent, :subject_type, :token_endpoint_auth_method, :token_endpoint_auth_signing_alg, @@ -56,6 +59,7 @@ defmodule Ory.Model.OAuth2Client do ] @type t :: %__MODULE__{ + :access_token_strategy => String.t | nil, :allowed_cors_origins => [String.t] | nil, :audience => [String.t] | nil, :authorization_code_grant_access_token_lifespan => String.t | nil, @@ -95,6 +99,8 @@ defmodule Ory.Model.OAuth2Client do :response_types => [String.t] | nil, :scope => String.t | nil, :sector_identifier_uri => String.t | nil, + :skip_consent => boolean() | nil, + :skip_logout_consent => boolean() | nil, :subject_type => String.t | nil, :token_endpoint_auth_method => String.t | nil, :token_endpoint_auth_signing_alg => String.t | nil, @@ -102,11 +108,13 @@ defmodule Ory.Model.OAuth2Client do :updated_at => DateTime.t | nil, :userinfo_signed_response_alg => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2Client do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex b/clients/kratos/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex index f2754799500..186cbb52dc8 100644 --- a/clients/kratos/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex +++ b/clients/kratos/elixir/lib/ory/model/o_auth2_consent_request_open_id_connect_context.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do OAuth2ConsentRequestOpenIDConnectContext struct for OAuth2ConsentRequestOpenIDConnectContext """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :acr_values, :display, @@ -22,10 +22,8 @@ defmodule Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do :login_hint => String.t | nil, :ui_locales => [String.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2ConsentRequestOpenIdConnectContext do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/o_auth2_login_request.ex b/clients/kratos/elixir/lib/ory/model/o_auth2_login_request.ex index 152a1e0b909..1471892c0d6 100644 --- a/clients/kratos/elixir/lib/ory/model/o_auth2_login_request.ex +++ b/clients/kratos/elixir/lib/ory/model/o_auth2_login_request.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.OAuth2LoginRequest do @@ -6,7 +6,7 @@ defmodule Ory.Model.OAuth2LoginRequest do OAuth2LoginRequest struct for OAuth2LoginRequest """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :challenge, :client, @@ -30,14 +30,13 @@ defmodule Ory.Model.OAuth2LoginRequest do :skip => boolean() | nil, :subject => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.OAuth2LoginRequest do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:client, :struct, Ory.Model.OAuth2Client, options) - |> deserialize(:oidc_context, :struct, Ory.Model.OAuth2ConsentRequestOpenIdConnectContext, options) + |> Deserializer.deserialize(:client, :struct, Ory.Model.OAuth2Client) + |> Deserializer.deserialize(:oidc_context, :struct, Ory.Model.OAuth2ConsentRequestOpenIdConnectContext) end end diff --git a/clients/kratos/elixir/lib/ory/model/pagination.ex b/clients/kratos/elixir/lib/ory/model/pagination.ex deleted file mode 100644 index 9fe7da3d820..00000000000 --- a/clients/kratos/elixir/lib/ory/model/pagination.ex +++ /dev/null @@ -1,26 +0,0 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). -# Do not edit this file manually. - -defmodule Ory.Model.Pagination do - @moduledoc """ - - """ - - @derive [Poison.Encoder] - defstruct [ - :page, - :per_page - ] - - @type t :: %__MODULE__{ - :page => integer() | nil, - :per_page => integer() | nil - } -end - -defimpl Poison.Decoder, for: Ory.Model.Pagination do - def decode(value, _options) do - value - end -end - diff --git a/clients/kratos/elixir/lib/ory/model/patch_identities_body.ex b/clients/kratos/elixir/lib/ory/model/patch_identities_body.ex index b32a71f2663..87e8d3317cc 100644 --- a/clients/kratos/elixir/lib/ory/model/patch_identities_body.ex +++ b/clients/kratos/elixir/lib/ory/model/patch_identities_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.PatchIdentitiesBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.PatchIdentitiesBody do Patch Identities Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :identities ] @@ -14,13 +14,12 @@ defmodule Ory.Model.PatchIdentitiesBody do @type t :: %__MODULE__{ :identities => [Ory.Model.IdentityPatch.t] | nil } -end -defimpl Poison.Decoder, for: Ory.Model.PatchIdentitiesBody do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:identities, :list, Ory.Model.IdentityPatch, options) + |> Deserializer.deserialize(:identities, :list, Ory.Model.IdentityPatch) end end diff --git a/clients/kratos/elixir/lib/ory/model/perform_native_logout_body.ex b/clients/kratos/elixir/lib/ory/model/perform_native_logout_body.ex index 682f2b7a7e5..463d9af60be 100644 --- a/clients/kratos/elixir/lib/ory/model/perform_native_logout_body.ex +++ b/clients/kratos/elixir/lib/ory/model/perform_native_logout_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.PerformNativeLogoutBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.PerformNativeLogoutBody do Perform Native Logout Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :session_token ] @@ -14,10 +14,8 @@ defmodule Ory.Model.PerformNativeLogoutBody do @type t :: %__MODULE__{ :session_token => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.PerformNativeLogoutBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/recovery_code_for_identity.ex b/clients/kratos/elixir/lib/ory/model/recovery_code_for_identity.ex index 958427a57af..4d50b791a30 100644 --- a/clients/kratos/elixir/lib/ory/model/recovery_code_for_identity.ex +++ b/clients/kratos/elixir/lib/ory/model/recovery_code_for_identity.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RecoveryCodeForIdentity do @@ -6,7 +6,7 @@ defmodule Ory.Model.RecoveryCodeForIdentity do Used when an administrator creates a recovery code for an identity. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :expires_at, :recovery_code, @@ -18,11 +18,12 @@ defmodule Ory.Model.RecoveryCodeForIdentity do :recovery_code => String.t, :recovery_link => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.RecoveryCodeForIdentity do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:expires_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/recovery_flow.ex b/clients/kratos/elixir/lib/ory/model/recovery_flow.ex index 77efdd14729..90f7b007e1e 100644 --- a/clients/kratos/elixir/lib/ory/model/recovery_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/recovery_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RecoveryFlow do @@ -6,9 +6,10 @@ defmodule Ory.Model.RecoveryFlow do This request is used when an identity wants to recover their account. We recommend reading the [Account Recovery Documentation](../self-service/flows/password-reset-account-recovery) """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, + :continue_with, :expires_at, :id, :issued_at, @@ -21,23 +22,25 @@ defmodule Ory.Model.RecoveryFlow do @type t :: %__MODULE__{ :active => String.t | nil, + :continue_with => [Ory.Model.ContinueWith.t] | nil, :expires_at => DateTime.t, :id => String.t, :issued_at => DateTime.t, :request_url => String.t, :return_to => String.t | nil, - :state => Ory.Model.RecoveryFlowState.t, + :state => any() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } -end -defimpl Poison.Decoder, for: Ory.Model.RecoveryFlow do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:state, :struct, Ory.Model.RecoveryFlowState, options) - |> deserialize(:ui, :struct, Ory.Model.UiContainer, options) + |> Deserializer.deserialize(:continue_with, :list, Ory.Model.ContinueWith) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:issued_at, :datetime, nil) + |> Deserializer.deserialize(:ui, :struct, Ory.Model.UiContainer) end end diff --git a/clients/kratos/elixir/lib/ory/model/recovery_flow_state.ex b/clients/kratos/elixir/lib/ory/model/recovery_flow_state.ex index ca08fde509d..abec320d921 100644 --- a/clients/kratos/elixir/lib/ory/model/recovery_flow_state.ex +++ b/clients/kratos/elixir/lib/ory/model/recovery_flow_state.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RecoveryFlowState do @@ -6,7 +6,7 @@ defmodule Ory.Model.RecoveryFlowState do The state represents the state of the recovery flow. choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ ] @@ -14,10 +14,8 @@ defmodule Ory.Model.RecoveryFlowState do @type t :: %__MODULE__{ } -end -defimpl Poison.Decoder, for: Ory.Model.RecoveryFlowState do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/recovery_identity_address.ex b/clients/kratos/elixir/lib/ory/model/recovery_identity_address.ex index 31ba6e29870..09ea9d8d4a1 100644 --- a/clients/kratos/elixir/lib/ory/model/recovery_identity_address.ex +++ b/clients/kratos/elixir/lib/ory/model/recovery_identity_address.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RecoveryIdentityAddress do @@ -6,7 +6,7 @@ defmodule Ory.Model.RecoveryIdentityAddress do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :created_at, :id, @@ -22,11 +22,13 @@ defmodule Ory.Model.RecoveryIdentityAddress do :value => String.t, :via => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.RecoveryIdentityAddress do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/recovery_link_for_identity.ex b/clients/kratos/elixir/lib/ory/model/recovery_link_for_identity.ex index 8916409871e..8b7f71709a1 100644 --- a/clients/kratos/elixir/lib/ory/model/recovery_link_for_identity.ex +++ b/clients/kratos/elixir/lib/ory/model/recovery_link_for_identity.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RecoveryLinkForIdentity do @@ -6,7 +6,7 @@ defmodule Ory.Model.RecoveryLinkForIdentity do Used when an administrator creates a recovery link for an identity. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :expires_at, :recovery_link @@ -16,11 +16,12 @@ defmodule Ory.Model.RecoveryLinkForIdentity do :expires_at => DateTime.t | nil, :recovery_link => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.RecoveryLinkForIdentity do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:expires_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/registration_flow.ex b/clients/kratos/elixir/lib/ory/model/registration_flow.ex index 0f7ef021606..8f00199abce 100644 --- a/clients/kratos/elixir/lib/ory/model/registration_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/registration_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.RegistrationFlow do @@ -6,7 +6,7 @@ defmodule Ory.Model.RegistrationFlow do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, :expires_at, @@ -14,37 +14,41 @@ defmodule Ory.Model.RegistrationFlow do :issued_at, :oauth2_login_challenge, :oauth2_login_request, + :organization_id, :request_url, :return_to, :session_token_exchange_code, + :state, :transient_payload, :type, :ui ] @type t :: %__MODULE__{ - :active => Ory.Model.IdentityCredentialsType.t | nil, + :active => String.t | nil, :expires_at => DateTime.t, :id => String.t, :issued_at => DateTime.t, :oauth2_login_challenge => String.t | nil, :oauth2_login_request => Ory.Model.OAuth2LoginRequest.t | nil, + :organization_id => String.t | nil, :request_url => String.t, :return_to => String.t | nil, :session_token_exchange_code => String.t | nil, + :state => any() | nil, :transient_payload => map() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } -end -defimpl Poison.Decoder, for: Ory.Model.RegistrationFlow do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:active, :struct, Ory.Model.IdentityCredentialsType, options) - |> deserialize(:oauth2_login_request, :struct, Ory.Model.OAuth2LoginRequest, options) - |> deserialize(:ui, :struct, Ory.Model.UiContainer, options) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:issued_at, :datetime, nil) + |> Deserializer.deserialize(:oauth2_login_request, :struct, Ory.Model.OAuth2LoginRequest) + |> Deserializer.deserialize(:ui, :struct, Ory.Model.UiContainer) end end diff --git a/clients/kratos/elixir/lib/ory/model/registration_flow_state.ex b/clients/kratos/elixir/lib/ory/model/registration_flow_state.ex new file mode 100644 index 00000000000..e6b990262a3 --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/registration_flow_state.ex @@ -0,0 +1,22 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.RegistrationFlowState do + @moduledoc """ + choose_method: ask the user to choose a method (e.g. registration with email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the registration challenge was passed. + """ + + @derive Jason.Encoder + defstruct [ + + ] + + @type t :: %__MODULE__{ + + } + + def decode(value) do + value + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/self_service_flow_expired_error.ex b/clients/kratos/elixir/lib/ory/model/self_service_flow_expired_error.ex index 1e6e4ca041d..31ed3689d3a 100644 --- a/clients/kratos/elixir/lib/ory/model/self_service_flow_expired_error.ex +++ b/clients/kratos/elixir/lib/ory/model/self_service_flow_expired_error.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SelfServiceFlowExpiredError do @@ -6,7 +6,7 @@ defmodule Ory.Model.SelfServiceFlowExpiredError do Is sent when a flow is expired """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :error, :expired_at, @@ -20,13 +20,13 @@ defmodule Ory.Model.SelfServiceFlowExpiredError do :since => integer() | nil, :use_flow_id => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.SelfServiceFlowExpiredError do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:error, :struct, Ory.Model.GenericError, options) + |> Deserializer.deserialize(:error, :struct, Ory.Model.GenericError) + |> Deserializer.deserialize(:expired_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/session.ex b/clients/kratos/elixir/lib/ory/model/session.ex index 9231fe7e6d4..0f52ce2ded6 100644 --- a/clients/kratos/elixir/lib/ory/model/session.ex +++ b/clients/kratos/elixir/lib/ory/model/session.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Session do @@ -6,7 +6,7 @@ defmodule Ory.Model.Session do A Session """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, :authenticated_at, @@ -16,7 +16,8 @@ defmodule Ory.Model.Session do :expires_at, :id, :identity, - :issued_at + :issued_at, + :tokenized ] @type t :: %__MODULE__{ @@ -27,19 +28,22 @@ defmodule Ory.Model.Session do :devices => [Ory.Model.SessionDevice.t] | nil, :expires_at => DateTime.t | nil, :id => String.t, - :identity => Ory.Model.Identity.t, - :issued_at => DateTime.t | nil + :identity => Ory.Model.Identity.t | nil, + :issued_at => DateTime.t | nil, + :tokenized => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.Session do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:authentication_methods, :list, Ory.Model.SessionAuthenticationMethod, options) - |> deserialize(:authenticator_assurance_level, :struct, Ory.Model.AuthenticatorAssuranceLevel, options) - |> deserialize(:devices, :list, Ory.Model.SessionDevice, options) - |> deserialize(:identity, :struct, Ory.Model.Identity, options) + |> Deserializer.deserialize(:authenticated_at, :datetime, nil) + |> Deserializer.deserialize(:authentication_methods, :list, Ory.Model.SessionAuthenticationMethod) + |> Deserializer.deserialize(:authenticator_assurance_level, :struct, Ory.Model.AuthenticatorAssuranceLevel) + |> Deserializer.deserialize(:devices, :list, Ory.Model.SessionDevice) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:identity, :struct, Ory.Model.Identity) + |> Deserializer.deserialize(:issued_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/session_authentication_method.ex b/clients/kratos/elixir/lib/ory/model/session_authentication_method.ex index ec7c69b83f4..8fd1c6d559e 100644 --- a/clients/kratos/elixir/lib/ory/model/session_authentication_method.ex +++ b/clients/kratos/elixir/lib/ory/model/session_authentication_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SessionAuthenticationMethod do @@ -6,11 +6,12 @@ defmodule Ory.Model.SessionAuthenticationMethod do A singular authenticator used during authentication / login. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :aal, :completed_at, :method, + :organization, :provider ] @@ -18,15 +19,16 @@ defmodule Ory.Model.SessionAuthenticationMethod do :aal => Ory.Model.AuthenticatorAssuranceLevel.t | nil, :completed_at => DateTime.t | nil, :method => String.t | nil, + :organization => String.t | nil, :provider => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.SessionAuthenticationMethod do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:aal, :struct, Ory.Model.AuthenticatorAssuranceLevel, options) + |> Deserializer.deserialize(:aal, :struct, Ory.Model.AuthenticatorAssuranceLevel) + |> Deserializer.deserialize(:completed_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/session_device.ex b/clients/kratos/elixir/lib/ory/model/session_device.ex index 24a9a1994d9..14b79c96435 100644 --- a/clients/kratos/elixir/lib/ory/model/session_device.ex +++ b/clients/kratos/elixir/lib/ory/model/session_device.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SessionDevice do @@ -6,7 +6,7 @@ defmodule Ory.Model.SessionDevice do Device corresponding to a Session """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :id, :ip_address, @@ -20,10 +20,8 @@ defmodule Ory.Model.SessionDevice do :location => String.t | nil, :user_agent => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.SessionDevice do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/settings_flow.ex b/clients/kratos/elixir/lib/ory/model/settings_flow.ex index 75caf5cc4a0..db2a5b61041 100644 --- a/clients/kratos/elixir/lib/ory/model/settings_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/settings_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SettingsFlow do @@ -6,7 +6,7 @@ defmodule Ory.Model.SettingsFlow do This flow is used when an identity wants to update settings (e.g. profile data, passwords, ...) in a selfservice manner. We recommend reading the [User Settings Documentation](../self-service/flows/user-settings) """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, :continue_with, @@ -30,20 +30,20 @@ defmodule Ory.Model.SettingsFlow do :issued_at => DateTime.t, :request_url => String.t, :return_to => String.t | nil, - :state => Ory.Model.SettingsFlowState.t, + :state => any() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } -end -defimpl Poison.Decoder, for: Ory.Model.SettingsFlow do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:continue_with, :list, Ory.Model.ContinueWith, options) - |> deserialize(:identity, :struct, Ory.Model.Identity, options) - |> deserialize(:state, :struct, Ory.Model.SettingsFlowState, options) - |> deserialize(:ui, :struct, Ory.Model.UiContainer, options) + |> Deserializer.deserialize(:continue_with, :list, Ory.Model.ContinueWith) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:identity, :struct, Ory.Model.Identity) + |> Deserializer.deserialize(:issued_at, :datetime, nil) + |> Deserializer.deserialize(:ui, :struct, Ory.Model.UiContainer) end end diff --git a/clients/kratos/elixir/lib/ory/model/settings_flow_state.ex b/clients/kratos/elixir/lib/ory/model/settings_flow_state.ex index ef94ed1e870..6b3e86cde19 100644 --- a/clients/kratos/elixir/lib/ory/model/settings_flow_state.ex +++ b/clients/kratos/elixir/lib/ory/model/settings_flow_state.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SettingsFlowState do @@ -6,7 +6,7 @@ defmodule Ory.Model.SettingsFlowState do show_form: No user data has been collected, or it is invalid, and thus the form should be shown. success: Indicates that the settings flow has been updated successfully with the provided data. Done will stay true when repeatedly checking. If set to true, done will revert back to false only when a flow with invalid (e.g. \"please use a valid phone number\") data was sent. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ ] @@ -14,10 +14,8 @@ defmodule Ory.Model.SettingsFlowState do @type t :: %__MODULE__{ } -end -defimpl Poison.Decoder, for: Ory.Model.SettingsFlowState do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/successful_code_exchange_response.ex b/clients/kratos/elixir/lib/ory/model/successful_code_exchange_response.ex index d1bc6b1dade..7c413d3ba37 100644 --- a/clients/kratos/elixir/lib/ory/model/successful_code_exchange_response.ex +++ b/clients/kratos/elixir/lib/ory/model/successful_code_exchange_response.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SuccessfulCodeExchangeResponse do @@ -6,7 +6,7 @@ defmodule Ory.Model.SuccessfulCodeExchangeResponse do The Response for Registration Flows via API """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :session, :session_token @@ -16,13 +16,12 @@ defmodule Ory.Model.SuccessfulCodeExchangeResponse do :session => Ory.Model.Session.t, :session_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.SuccessfulCodeExchangeResponse do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:session, :struct, Ory.Model.Session, options) + |> Deserializer.deserialize(:session, :struct, Ory.Model.Session) end end diff --git a/clients/kratos/elixir/lib/ory/model/successful_native_login.ex b/clients/kratos/elixir/lib/ory/model/successful_native_login.ex index 61a320f146d..7513295c75f 100644 --- a/clients/kratos/elixir/lib/ory/model/successful_native_login.ex +++ b/clients/kratos/elixir/lib/ory/model/successful_native_login.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SuccessfulNativeLogin do @@ -6,7 +6,7 @@ defmodule Ory.Model.SuccessfulNativeLogin do The Response for Login Flows via API """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :session, :session_token @@ -16,13 +16,12 @@ defmodule Ory.Model.SuccessfulNativeLogin do :session => Ory.Model.Session.t, :session_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.SuccessfulNativeLogin do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:session, :struct, Ory.Model.Session, options) + |> Deserializer.deserialize(:session, :struct, Ory.Model.Session) end end diff --git a/clients/kratos/elixir/lib/ory/model/successful_native_registration.ex b/clients/kratos/elixir/lib/ory/model/successful_native_registration.ex index a69957cd5ee..9c54ad19ac1 100644 --- a/clients/kratos/elixir/lib/ory/model/successful_native_registration.ex +++ b/clients/kratos/elixir/lib/ory/model/successful_native_registration.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.SuccessfulNativeRegistration do @@ -6,7 +6,7 @@ defmodule Ory.Model.SuccessfulNativeRegistration do The Response for Registration Flows via API """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :continue_with, :identity, @@ -20,15 +20,14 @@ defmodule Ory.Model.SuccessfulNativeRegistration do :session => Ory.Model.Session.t | nil, :session_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.SuccessfulNativeRegistration do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:continue_with, :list, Ory.Model.ContinueWith, options) - |> deserialize(:identity, :struct, Ory.Model.Identity, options) - |> deserialize(:session, :struct, Ory.Model.Session, options) + |> Deserializer.deserialize(:continue_with, :list, Ory.Model.ContinueWith) + |> Deserializer.deserialize(:identity, :struct, Ory.Model.Identity) + |> Deserializer.deserialize(:session, :struct, Ory.Model.Session) end end diff --git a/clients/kratos/elixir/lib/ory/model/token_pagination.ex b/clients/kratos/elixir/lib/ory/model/token_pagination.ex index 8f9f14e159f..45e3daf8919 100644 --- a/clients/kratos/elixir/lib/ory/model/token_pagination.ex +++ b/clients/kratos/elixir/lib/ory/model/token_pagination.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TokenPagination do @@ -6,7 +6,7 @@ defmodule Ory.Model.TokenPagination do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :page_size, :page_token @@ -16,10 +16,8 @@ defmodule Ory.Model.TokenPagination do :page_size => integer() | nil, :page_token => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TokenPagination do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/token_pagination_headers.ex b/clients/kratos/elixir/lib/ory/model/token_pagination_headers.ex index 4edc4cb82ca..80adca06ce6 100644 --- a/clients/kratos/elixir/lib/ory/model/token_pagination_headers.ex +++ b/clients/kratos/elixir/lib/ory/model/token_pagination_headers.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.TokenPaginationHeaders do @@ -6,7 +6,7 @@ defmodule Ory.Model.TokenPaginationHeaders do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :link, :"x-total-count" @@ -16,10 +16,8 @@ defmodule Ory.Model.TokenPaginationHeaders do :link => String.t | nil, :"x-total-count" => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.TokenPaginationHeaders do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_container.ex b/clients/kratos/elixir/lib/ory/model/ui_container.ex index 6e3791b87bf..f08f203dea5 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_container.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_container.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiContainer do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiContainer do Container represents a HTML Form. The container can work with both HTTP Form and JSON requests """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :action, :messages, @@ -20,14 +20,13 @@ defmodule Ory.Model.UiContainer do :method => String.t, :nodes => [Ory.Model.UiNode.t] } -end -defimpl Poison.Decoder, for: Ory.Model.UiContainer do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:messages, :list, Ory.Model.UiText, options) - |> deserialize(:nodes, :list, Ory.Model.UiNode, options) + |> Deserializer.deserialize(:messages, :list, Ory.Model.UiText) + |> Deserializer.deserialize(:nodes, :list, Ory.Model.UiNode) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node.ex b/clients/kratos/elixir/lib/ory/model/ui_node.ex index a167eb30579..a4fc7d858d8 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNode do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNode do Nodes are represented as HTML elements or their native UI equivalents. For example, a node can be an `` tag, or an `` but also `some plain text`. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :attributes, :group, @@ -22,15 +22,14 @@ defmodule Ory.Model.UiNode do :meta => Ory.Model.UiNodeMeta.t, :type => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UiNode do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:attributes, :struct, Ory.Model.UiNodeAttributes, options) - |> deserialize(:messages, :list, Ory.Model.UiText, options) - |> deserialize(:meta, :struct, Ory.Model.UiNodeMeta, options) + |> Deserializer.deserialize(:attributes, :struct, Ory.Model.UiNodeAttributes) + |> Deserializer.deserialize(:messages, :list, Ory.Model.UiText) + |> Deserializer.deserialize(:meta, :struct, Ory.Model.UiNodeMeta) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_anchor_attributes.ex b/clients/kratos/elixir/lib/ory/model/ui_node_anchor_attributes.ex index 456a36cd3ff..0d866682df7 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_anchor_attributes.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_anchor_attributes.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeAnchorAttributes do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeAnchorAttributes do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :href, :id, @@ -20,13 +20,12 @@ defmodule Ory.Model.UiNodeAnchorAttributes do :node_type => String.t, :title => Ory.Model.UiText.t } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeAnchorAttributes do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:title, :struct, Ory.Model.UiText, options) + |> Deserializer.deserialize(:title, :struct, Ory.Model.UiText) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex b/clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex index f4320993126..2c3729190f6 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_attributes.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeAttributes do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeAttributes do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :autocomplete, :disabled, @@ -42,7 +42,7 @@ defmodule Ory.Model.UiNodeAttributes do :pattern => String.t | nil, :required => boolean() | nil, :type => String.t, - :value => any() | nil, + :value => map() | nil, :id => String.t, :text => Ory.Model.UiText.t, :height => integer(), @@ -56,15 +56,14 @@ defmodule Ory.Model.UiNodeAttributes do :nonce => String.t, :referrerpolicy => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeAttributes do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:label, :struct, Ory.Model.UiText, options) - |> deserialize(:text, :struct, Ory.Model.UiText, options) - |> deserialize(:title, :struct, Ory.Model.UiText, options) + |> Deserializer.deserialize(:label, :struct, Ory.Model.UiText) + |> Deserializer.deserialize(:text, :struct, Ory.Model.UiText) + |> Deserializer.deserialize(:title, :struct, Ory.Model.UiText) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_image_attributes.ex b/clients/kratos/elixir/lib/ory/model/ui_node_image_attributes.ex index 5b2e4406b15..1c3d78e4aed 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_image_attributes.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_image_attributes.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeImageAttributes do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeImageAttributes do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :height, :id, @@ -22,10 +22,8 @@ defmodule Ory.Model.UiNodeImageAttributes do :src => String.t, :width => integer() } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeImageAttributes do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_input_attributes.ex b/clients/kratos/elixir/lib/ory/model/ui_node_input_attributes.ex index 0310db0f53e..143007ed1ed 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_input_attributes.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_input_attributes.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeInputAttributes do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeInputAttributes do InputAttributes represents the attributes of an input node """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :autocomplete, :disabled, @@ -32,13 +32,12 @@ defmodule Ory.Model.UiNodeInputAttributes do :type => String.t, :value => any() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeInputAttributes do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:label, :struct, Ory.Model.UiText, options) + |> Deserializer.deserialize(:label, :struct, Ory.Model.UiText) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_meta.ex b/clients/kratos/elixir/lib/ory/model/ui_node_meta.ex index 6ec5f7eff0b..344bab7d0d5 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_meta.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_meta.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeMeta do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeMeta do This might include a label and other information that can optionally be used to render UIs. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :label ] @@ -14,13 +14,12 @@ defmodule Ory.Model.UiNodeMeta do @type t :: %__MODULE__{ :label => Ory.Model.UiText.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeMeta do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:label, :struct, Ory.Model.UiText, options) + |> Deserializer.deserialize(:label, :struct, Ory.Model.UiText) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_script_attributes.ex b/clients/kratos/elixir/lib/ory/model/ui_node_script_attributes.ex index 13b3a8e2df8..11f20f06579 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_script_attributes.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_script_attributes.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeScriptAttributes do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeScriptAttributes do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :async, :crossorigin, @@ -30,10 +30,8 @@ defmodule Ory.Model.UiNodeScriptAttributes do :src => String.t, :type => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeScriptAttributes do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_node_text_attributes.ex b/clients/kratos/elixir/lib/ory/model/ui_node_text_attributes.ex index 9e67560a920..0aae2b70fbb 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_node_text_attributes.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_node_text_attributes.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiNodeTextAttributes do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiNodeTextAttributes do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :id, :node_type, @@ -18,13 +18,12 @@ defmodule Ory.Model.UiNodeTextAttributes do :node_type => String.t, :text => Ory.Model.UiText.t } -end -defimpl Poison.Decoder, for: Ory.Model.UiNodeTextAttributes do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:text, :struct, Ory.Model.UiText, options) + |> Deserializer.deserialize(:text, :struct, Ory.Model.UiText) end end diff --git a/clients/kratos/elixir/lib/ory/model/ui_text.ex b/clients/kratos/elixir/lib/ory/model/ui_text.ex index 40ca72d2325..3908d8f7c29 100644 --- a/clients/kratos/elixir/lib/ory/model/ui_text.ex +++ b/clients/kratos/elixir/lib/ory/model/ui_text.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UiText do @@ -6,7 +6,7 @@ defmodule Ory.Model.UiText do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :context, :id, @@ -20,10 +20,8 @@ defmodule Ory.Model.UiText do :text => String.t, :type => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UiText do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_identity_body.ex b/clients/kratos/elixir/lib/ory/model/update_identity_body.ex index 694de62c1f0..2a37275d352 100644 --- a/clients/kratos/elixir/lib/ory/model/update_identity_body.ex +++ b/clients/kratos/elixir/lib/ory/model/update_identity_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateIdentityBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateIdentityBody do Update Identity Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :credentials, :metadata_admin, @@ -21,17 +21,15 @@ defmodule Ory.Model.UpdateIdentityBody do :metadata_admin => any() | nil, :metadata_public => any() | nil, :schema_id => String.t, - :state => Ory.Model.IdentityState.t, + :state => String.t, :traits => map() } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateIdentityBody do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:credentials, :struct, Ory.Model.IdentityWithCredentials, options) - |> deserialize(:state, :struct, Ory.Model.IdentityState, options) + |> Deserializer.deserialize(:credentials, :struct, Ory.Model.IdentityWithCredentials) end end diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_body.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_body.ex index 3dbf3f44dcc..12a863a2d29 100644 --- a/clients/kratos/elixir/lib/ory/model/update_login_flow_body.ex +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateLoginFlowBody do @@ -6,38 +6,44 @@ defmodule Ory.Model.UpdateLoginFlowBody do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :identifier, :method, :password, :password_identifier, + :id_token, + :id_token_nonce, :provider, :traits, :upstream_parameters, :totp_code, :webauthn_login, - :lookup_secret + :lookup_secret, + :code, + :resend ] @type t :: %__MODULE__{ - :csrf_token => String.t | nil, + :csrf_token => String.t, :identifier => String.t, :method => String.t, :password => String.t, :password_identifier => String.t | nil, + :id_token => String.t | nil, + :id_token_nonce => String.t | nil, :provider => String.t, :traits => map() | nil, :upstream_parameters => map() | nil, :totp_code => String.t, :webauthn_login => String.t | nil, - :lookup_secret => String.t + :lookup_secret => String.t, + :code => String.t | nil, + :resend => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateLoginFlowBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_code_method.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_code_method.ex new file mode 100644 index 00000000000..de1e9f7b3aa --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_code_method.ex @@ -0,0 +1,30 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.UpdateLoginFlowWithCodeMethod do + @moduledoc """ + Update Login flow using the code method + """ + + @derive Jason.Encoder + defstruct [ + :code, + :csrf_token, + :identifier, + :method, + :resend + ] + + @type t :: %__MODULE__{ + :code => String.t | nil, + :csrf_token => String.t, + :identifier => String.t | nil, + :method => String.t, + :resend => String.t | nil + } + + def decode(value) do + value + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_lookup_secret_method.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_lookup_secret_method.ex index f408272dc13..9757d81ba1b 100644 --- a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_lookup_secret_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_lookup_secret_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateLoginFlowWithLookupSecretMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateLoginFlowWithLookupSecretMethod do Update Login Flow with Lookup Secret Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :lookup_secret, @@ -18,10 +18,8 @@ defmodule Ory.Model.UpdateLoginFlowWithLookupSecretMethod do :lookup_secret => String.t, :method => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateLoginFlowWithLookupSecretMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex index 1199bebf4d6..da78e3d6eba 100644 --- a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_oidc_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateLoginFlowWithOidcMethod do @@ -6,9 +6,11 @@ defmodule Ory.Model.UpdateLoginFlowWithOidcMethod do Update Login Flow with OpenID Connect Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, + :id_token, + :id_token_nonce, :method, :provider, :traits, @@ -17,15 +19,15 @@ defmodule Ory.Model.UpdateLoginFlowWithOidcMethod do @type t :: %__MODULE__{ :csrf_token => String.t | nil, + :id_token => String.t | nil, + :id_token_nonce => String.t | nil, :method => String.t, :provider => String.t, :traits => map() | nil, :upstream_parameters => map() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateLoginFlowWithOidcMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_password_method.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_password_method.ex index c305a437765..1b91d7076e7 100644 --- a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_password_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_password_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateLoginFlowWithPasswordMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateLoginFlowWithPasswordMethod do Update Login Flow with Password Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :identifier, @@ -22,10 +22,8 @@ defmodule Ory.Model.UpdateLoginFlowWithPasswordMethod do :password => String.t, :password_identifier => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateLoginFlowWithPasswordMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_totp_method.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_totp_method.ex index 64f332d379a..c60e7351211 100644 --- a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_totp_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_totp_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateLoginFlowWithTotpMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateLoginFlowWithTotpMethod do Update Login Flow with TOTP Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -18,10 +18,8 @@ defmodule Ory.Model.UpdateLoginFlowWithTotpMethod do :method => String.t, :totp_code => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateLoginFlowWithTotpMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex index 53493a6f50c..6647fb8cb96 100644 --- a/clients/kratos/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_login_flow_with_web_authn_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateLoginFlowWithWebAuthnMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateLoginFlowWithWebAuthnMethod do Update Login Flow with WebAuthn Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :identifier, @@ -20,10 +20,8 @@ defmodule Ory.Model.UpdateLoginFlowWithWebAuthnMethod do :method => String.t, :webauthn_login => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateLoginFlowWithWebAuthnMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_recovery_flow_body.ex b/clients/kratos/elixir/lib/ory/model/update_recovery_flow_body.ex index b7ac583624f..9cd881af4f4 100644 --- a/clients/kratos/elixir/lib/ory/model/update_recovery_flow_body.ex +++ b/clients/kratos/elixir/lib/ory/model/update_recovery_flow_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRecoveryFlowBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateRecoveryFlowBody do Update Recovery Flow Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :email, @@ -20,10 +20,8 @@ defmodule Ory.Model.UpdateRecoveryFlowBody do :method => String.t, :code => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRecoveryFlowBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex b/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex index ffd1ce22f34..dee348aa839 100644 --- a/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_code_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRecoveryFlowWithCodeMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateRecoveryFlowWithCodeMethod do Update Recovery Flow with Code Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :code, :csrf_token, @@ -20,10 +20,8 @@ defmodule Ory.Model.UpdateRecoveryFlowWithCodeMethod do :email => String.t | nil, :method => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRecoveryFlowWithCodeMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex b/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex index 98c56888002..5a7deb067df 100644 --- a/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_recovery_flow_with_link_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRecoveryFlowWithLinkMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateRecoveryFlowWithLinkMethod do Update Recovery Flow with Link Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :email, @@ -18,10 +18,8 @@ defmodule Ory.Model.UpdateRecoveryFlowWithLinkMethod do :email => String.t, :method => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRecoveryFlowWithLinkMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_registration_flow_body.ex b/clients/kratos/elixir/lib/ory/model/update_registration_flow_body.ex index 96f5c2c9225..0ffbe7a7242 100644 --- a/clients/kratos/elixir/lib/ory/model/update_registration_flow_body.ex +++ b/clients/kratos/elixir/lib/ory/model/update_registration_flow_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRegistrationFlowBody do @@ -6,17 +6,21 @@ defmodule Ory.Model.UpdateRegistrationFlowBody do Update Registration Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, :password, :traits, :transient_payload, + :id_token, + :id_token_nonce, :provider, :upstream_parameters, :webauthn_register, - :webauthn_register_displayname + :webauthn_register_displayname, + :code, + :resend ] @type t :: %__MODULE__{ @@ -25,15 +29,17 @@ defmodule Ory.Model.UpdateRegistrationFlowBody do :password => String.t, :traits => map(), :transient_payload => map() | nil, + :id_token => String.t | nil, + :id_token_nonce => String.t | nil, :provider => String.t, :upstream_parameters => map() | nil, :webauthn_register => String.t | nil, - :webauthn_register_displayname => String.t | nil + :webauthn_register_displayname => String.t | nil, + :code => String.t | nil, + :resend => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRegistrationFlowBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_code_method.ex b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_code_method.ex new file mode 100644 index 00000000000..ad5d8bbc9c7 --- /dev/null +++ b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_code_method.ex @@ -0,0 +1,32 @@ +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). +# Do not edit this file manually. + +defmodule Ory.Model.UpdateRegistrationFlowWithCodeMethod do + @moduledoc """ + Update Registration Flow with Code Method + """ + + @derive Jason.Encoder + defstruct [ + :code, + :csrf_token, + :method, + :resend, + :traits, + :transient_payload + ] + + @type t :: %__MODULE__{ + :code => String.t | nil, + :csrf_token => String.t | nil, + :method => String.t, + :resend => String.t | nil, + :traits => map(), + :transient_payload => map() | nil + } + + def decode(value) do + value + end +end + diff --git a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_oidc_method.ex b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_oidc_method.ex index 4b00b557fc7..2778acfd8ed 100644 --- a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_oidc_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_oidc_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRegistrationFlowWithOidcMethod do @@ -6,9 +6,11 @@ defmodule Ory.Model.UpdateRegistrationFlowWithOidcMethod do Update Registration Flow with OpenID Connect Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, + :id_token, + :id_token_nonce, :method, :provider, :traits, @@ -18,16 +20,16 @@ defmodule Ory.Model.UpdateRegistrationFlowWithOidcMethod do @type t :: %__MODULE__{ :csrf_token => String.t | nil, + :id_token => String.t | nil, + :id_token_nonce => String.t | nil, :method => String.t, :provider => String.t, :traits => map() | nil, :transient_payload => map() | nil, :upstream_parameters => map() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRegistrationFlowWithOidcMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_password_method.ex b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_password_method.ex index c15d7054ced..08f3f3414c6 100644 --- a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_password_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_password_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRegistrationFlowWithPasswordMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateRegistrationFlowWithPasswordMethod do Update Registration Flow with Password Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -22,10 +22,8 @@ defmodule Ory.Model.UpdateRegistrationFlowWithPasswordMethod do :traits => map(), :transient_payload => map() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRegistrationFlowWithPasswordMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_web_authn_method.ex b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_web_authn_method.ex index 7cbe93035f7..c2294c6ba6f 100644 --- a/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_web_authn_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_registration_flow_with_web_authn_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateRegistrationFlowWithWebAuthnMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateRegistrationFlowWithWebAuthnMethod do Update Registration Flow with WebAuthn Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -24,10 +24,8 @@ defmodule Ory.Model.UpdateRegistrationFlowWithWebAuthnMethod do :webauthn_register => String.t | nil, :webauthn_register_displayname => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateRegistrationFlowWithWebAuthnMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_body.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_body.ex index c1950f9f54b..eb18a6c2b26 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_body.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowBody do Update Settings Flow Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -46,10 +46,8 @@ defmodule Ory.Model.UpdateSettingsFlowBody do :lookup_secret_regenerate => boolean() | nil, :lookup_secret_reveal => boolean() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex index 0d9408795e7..fecde24f3ca 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_lookup_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowWithLookupMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithLookupMethod do Update Settings Flow with Lookup Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :lookup_secret_confirm, @@ -24,10 +24,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithLookupMethod do :lookup_secret_reveal => boolean() | nil, :method => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowWithLookupMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex index a415661fbc2..04b0a6cea1d 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_oidc_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowWithOidcMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithOidcMethod do Update Settings Flow with OpenID Connect Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :flow, :link, @@ -24,10 +24,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithOidcMethod do :unlink => String.t | nil, :upstream_parameters => map() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowWithOidcMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_password_method.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_password_method.ex index 50db7d2531c..e945c7db898 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_password_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_password_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowWithPasswordMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithPasswordMethod do Update Settings Flow with Password Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -18,10 +18,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithPasswordMethod do :method => String.t, :password => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowWithPasswordMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex index 7aa7a67714d..c4c5a063d38 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_profile_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowWithProfileMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithProfileMethod do Update Settings Flow with Profile Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -18,10 +18,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithProfileMethod do :method => String.t, :traits => map() } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowWithProfileMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex index 7e9400e29e5..229000c8081 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_totp_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowWithTotpMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithTotpMethod do Update Settings Flow with TOTP Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -20,10 +20,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithTotpMethod do :totp_code => String.t | nil, :totp_unlink => boolean() | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowWithTotpMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex index 0b4a8828db6..89530542b5c 100644 --- a/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_settings_flow_with_web_authn_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateSettingsFlowWithWebAuthnMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateSettingsFlowWithWebAuthnMethod do Update Settings Flow with WebAuthn Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :method, @@ -22,10 +22,8 @@ defmodule Ory.Model.UpdateSettingsFlowWithWebAuthnMethod do :webauthn_register_displayname => String.t | nil, :webauthn_remove => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateSettingsFlowWithWebAuthnMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_verification_flow_body.ex b/clients/kratos/elixir/lib/ory/model/update_verification_flow_body.ex index 302f8bc9580..dedec1fd08b 100644 --- a/clients/kratos/elixir/lib/ory/model/update_verification_flow_body.ex +++ b/clients/kratos/elixir/lib/ory/model/update_verification_flow_body.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateVerificationFlowBody do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateVerificationFlowBody do Update Verification Flow Request Body """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :email, @@ -20,10 +20,8 @@ defmodule Ory.Model.UpdateVerificationFlowBody do :method => String.t, :code => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateVerificationFlowBody do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_code_method.ex b/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_code_method.ex index 35662a90ed6..a523e9fed58 100644 --- a/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_code_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_code_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateVerificationFlowWithCodeMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateVerificationFlowWithCodeMethod do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :code, :csrf_token, @@ -20,10 +20,8 @@ defmodule Ory.Model.UpdateVerificationFlowWithCodeMethod do :email => String.t | nil, :method => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateVerificationFlowWithCodeMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_link_method.ex b/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_link_method.ex index ce7d0c42bbc..85221586e10 100644 --- a/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_link_method.ex +++ b/clients/kratos/elixir/lib/ory/model/update_verification_flow_with_link_method.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.UpdateVerificationFlowWithLinkMethod do @@ -6,7 +6,7 @@ defmodule Ory.Model.UpdateVerificationFlowWithLinkMethod do Update Verification Flow with Link Method """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :csrf_token, :email, @@ -18,10 +18,8 @@ defmodule Ory.Model.UpdateVerificationFlowWithLinkMethod do :email => String.t, :method => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.UpdateVerificationFlowWithLinkMethod do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/verifiable_identity_address.ex b/clients/kratos/elixir/lib/ory/model/verifiable_identity_address.ex index 79789674654..3b6b443fbda 100644 --- a/clients/kratos/elixir/lib/ory/model/verifiable_identity_address.ex +++ b/clients/kratos/elixir/lib/ory/model/verifiable_identity_address.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.VerifiableIdentityAddress do @@ -6,7 +6,7 @@ defmodule Ory.Model.VerifiableIdentityAddress do VerifiableAddress is an identity's verifiable address """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :created_at, :id, @@ -28,11 +28,14 @@ defmodule Ory.Model.VerifiableIdentityAddress do :verified_at => DateTime.t | nil, :via => String.t } -end -defimpl Poison.Decoder, for: Ory.Model.VerifiableIdentityAddress do - def decode(value, _options) do + alias Ory.Deserializer + + def decode(value) do value + |> Deserializer.deserialize(:created_at, :datetime, nil) + |> Deserializer.deserialize(:updated_at, :datetime, nil) + |> Deserializer.deserialize(:verified_at, :datetime, nil) end end diff --git a/clients/kratos/elixir/lib/ory/model/verification_flow.ex b/clients/kratos/elixir/lib/ory/model/verification_flow.ex index de8b078bb81..b83e930cd70 100644 --- a/clients/kratos/elixir/lib/ory/model/verification_flow.ex +++ b/clients/kratos/elixir/lib/ory/model/verification_flow.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.VerificationFlow do @@ -6,7 +6,7 @@ defmodule Ory.Model.VerificationFlow do Used to verify an out-of-band communication channel such as an email address or a phone number. For more information head over to: https://www.ory.sh/docs/kratos/self-service/flows/verify-email-account-activation """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :active, :expires_at, @@ -26,18 +26,18 @@ defmodule Ory.Model.VerificationFlow do :issued_at => DateTime.t | nil, :request_url => String.t | nil, :return_to => String.t | nil, - :state => Ory.Model.VerificationFlowState.t, + :state => any() | nil, :type => String.t, :ui => Ory.Model.UiContainer.t } -end -defimpl Poison.Decoder, for: Ory.Model.VerificationFlow do - import Ory.Deserializer - def decode(value, options) do + alias Ory.Deserializer + + def decode(value) do value - |> deserialize(:state, :struct, Ory.Model.VerificationFlowState, options) - |> deserialize(:ui, :struct, Ory.Model.UiContainer, options) + |> Deserializer.deserialize(:expires_at, :datetime, nil) + |> Deserializer.deserialize(:issued_at, :datetime, nil) + |> Deserializer.deserialize(:ui, :struct, Ory.Model.UiContainer) end end diff --git a/clients/kratos/elixir/lib/ory/model/verification_flow_state.ex b/clients/kratos/elixir/lib/ory/model/verification_flow_state.ex index 09d52e78d79..32decb44753 100644 --- a/clients/kratos/elixir/lib/ory/model/verification_flow_state.ex +++ b/clients/kratos/elixir/lib/ory/model/verification_flow_state.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.VerificationFlowState do @@ -6,7 +6,7 @@ defmodule Ory.Model.VerificationFlowState do The state represents the state of the verification flow. choose_method: ask the user to choose a method (e.g. recover account via email) sent_email: the email has been sent to the user passed_challenge: the request was successful and the recovery challenge was passed. """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ ] @@ -14,10 +14,8 @@ defmodule Ory.Model.VerificationFlowState do @type t :: %__MODULE__{ } -end -defimpl Poison.Decoder, for: Ory.Model.VerificationFlowState do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/model/version.ex b/clients/kratos/elixir/lib/ory/model/version.ex index 4385e0756a1..023a927ddea 100644 --- a/clients/kratos/elixir/lib/ory/model/version.ex +++ b/clients/kratos/elixir/lib/ory/model/version.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.Model.Version do @@ -6,7 +6,7 @@ defmodule Ory.Model.Version do """ - @derive [Poison.Encoder] + @derive Jason.Encoder defstruct [ :version ] @@ -14,10 +14,8 @@ defmodule Ory.Model.Version do @type t :: %__MODULE__{ :version => String.t | nil } -end -defimpl Poison.Decoder, for: Ory.Model.Version do - def decode(value, _options) do + def decode(value) do value end end diff --git a/clients/kratos/elixir/lib/ory/request_builder.ex b/clients/kratos/elixir/lib/ory/request_builder.ex index 64956365c4c..47016a0e74f 100644 --- a/clients/kratos/elixir/lib/ory/request_builder.ex +++ b/clients/kratos/elixir/lib/ory/request_builder.ex @@ -1,4 +1,4 @@ -# NOTE: This file is auto generated by OpenAPI Generator 6.6.0 (https://openapi-generator.tech). +# NOTE: This file is auto generated by OpenAPI Generator 7.2.0 (https://openapi-generator.tech). # Do not edit this file manually. defmodule Ory.RequestBuilder do @@ -96,7 +96,7 @@ defmodule Ory.RequestBuilder do Tesla.Multipart.add_field( multipart, key, - Poison.encode!(value), + Jason.encode!(value), headers: [{:"Content-Type", "application/json"}] ) end) @@ -148,8 +148,8 @@ defmodule Ory.RequestBuilder do Map.put_new(request, :body, "") end - @type status_code :: 100..599 - @type response_mapping :: [{status_code, struct() | false}] + @type status_code :: :default | 100..599 + @type response_mapping :: [{status_code, false | %{} | module()}] @doc """ Evaluate the response from a Tesla request. @@ -187,5 +187,11 @@ defmodule Ory.RequestBuilder do defp decode(%Tesla.Env{} = env, false), do: {:ok, env} - defp decode(%Tesla.Env{body: body}, struct), do: Poison.decode(body, as: struct) + defp decode(%Tesla.Env{body: body}, %{}) do + Ory.Deserializer.jason_decode(body) + end + + defp decode(%Tesla.Env{body: body}, module) do + Ory.Deserializer.jason_decode(body, module) + end end diff --git a/clients/kratos/elixir/mix.exs b/clients/kratos/elixir/mix.exs index 401cb9be0b1..485d1c61faa 100644 --- a/clients/kratos/elixir/mix.exs +++ b/clients/kratos/elixir/mix.exs @@ -4,12 +4,14 @@ defmodule Ory.Mixfile do def project do [ app: :ory_kratos, - version: "1.0.0", + version: "1.1.0", elixir: "~> 1.10", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, package: package(), - 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. ", + 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. + """, deps: deps() ] end @@ -33,9 +35,10 @@ defmodule Ory.Mixfile do # Type "mix help deps" for more examples and options defp deps do [ - {:tesla, "~> 1.4"}, - {:poison, "~> 3.0"}, - {:ex_doc, "~> 0.28", only: :dev, runtime: false} + {:tesla, "~> 1.7"}, + {:jason, "~> 1.4"}, + {:ex_doc, "~> 0.30", only: :dev, runtime: false}, + {:dialyxir, "~> 1.3", only: [:dev, :test], runtime: false} ] end diff --git a/clients/kratos/elixir/mix.lock b/clients/kratos/elixir/mix.lock index 7b75f4b7e9c..033fab83b7a 100644 --- a/clients/kratos/elixir/mix.lock +++ b/clients/kratos/elixir/mix.lock @@ -1,11 +1,13 @@ %{ - "earmark_parser": {:hex, :earmark_parser, "1.4.33", "3c3fd9673bb5dcc9edc28dd90f50c87ce506d1f71b70e3de69aa8154bc695d44", [:mix], [], "hexpm", "2d526833729b59b9fdb85785078697c72ac5e5066350663e5be6a1182da61b8f"}, - "ex_doc": {:hex, :ex_doc, "0.30.6", "5f8b54854b240a2b55c9734c4b1d0dd7bdd41f71a095d42a70445c03cf05a281", [:mix], [{:earmark_parser, "~> 1.4.31", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "bd48f2ddacf4e482c727f9293d9498e0881597eae6ddc3d9562bd7923375109f"}, - "makeup": {:hex, :makeup, "1.1.0", "6b67c8bc2882a6b6a445859952a602afc1a41c2e08379ca057c0f525366fc3ca", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "0a45ed501f4a8897f580eabf99a2e5234ea3e75a4373c8a52824f6e873be57a6"}, + "dialyxir": {:hex, :dialyxir, "1.4.3", "edd0124f358f0b9e95bfe53a9fcf806d615d8f838e2202a9f430d59566b6b53b", [:mix], [{:erlex, ">= 0.2.6", [hex: :erlex, repo: "hexpm", optional: false]}], "hexpm", "bf2cfb75cd5c5006bec30141b131663299c661a864ec7fbbc72dfa557487a986"}, + "earmark_parser": {:hex, :earmark_parser, "1.4.39", "424642f8335b05bb9eb611aa1564c148a8ee35c9c8a8bba6e129d51a3e3c6769", [:mix], [], "hexpm", "06553a88d1f1846da9ef066b87b57c6f605552cfbe40d20bd8d59cc6bde41944"}, + "erlex": {:hex, :erlex, "0.2.6", "c7987d15e899c7a2f34f5420d2a2ea0d659682c06ac607572df55a43753aa12e", [:mix], [], "hexpm", "2ed2e25711feb44d52b17d2780eabf998452f6efda104877a3881c2f8c0c0c75"}, + "ex_doc": {:hex, :ex_doc, "0.31.1", "8a2355ac42b1cc7b2379da9e40243f2670143721dd50748bf6c3b1184dae2089", [:mix], [{:earmark_parser, "~> 1.4.39", [hex: :earmark_parser, repo: "hexpm", optional: false]}, {:makeup_c, ">= 0.1.1", [hex: :makeup_c, repo: "hexpm", optional: true]}, {:makeup_elixir, "~> 0.14", [hex: :makeup_elixir, repo: "hexpm", optional: false]}, {:makeup_erlang, "~> 0.1", [hex: :makeup_erlang, repo: "hexpm", optional: false]}], "hexpm", "3178c3a407c557d8343479e1ff117a96fd31bafe52a039079593fb0524ef61b0"}, + "jason": {:hex, :jason, "1.4.1", "af1504e35f629ddcdd6addb3513c3853991f694921b1b9368b0bd32beb9f1b63", [:mix], [{:decimal, "~> 1.0 or ~> 2.0", [hex: :decimal, repo: "hexpm", optional: true]}], "hexpm", "fbb01ecdfd565b56261302f7e1fcc27c4fb8f32d56eab74db621fc154604a7a1"}, + "makeup": {:hex, :makeup, "1.1.1", "fa0bc768698053b2b3869fa8a62616501ff9d11a562f3ce39580d60860c3a55e", [:mix], [{:nimble_parsec, "~> 1.2.2 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "5dc62fbdd0de44de194898b6710692490be74baa02d9d108bc29f007783b0b48"}, "makeup_elixir": {:hex, :makeup_elixir, "0.16.1", "cc9e3ca312f1cfeccc572b37a09980287e243648108384b97ff2b76e505c3555", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}, {:nimble_parsec, "~> 1.2.3 or ~> 1.3", [hex: :nimble_parsec, repo: "hexpm", optional: false]}], "hexpm", "e127a341ad1b209bd80f7bd1620a15693a9908ed780c3b763bccf7d200c767c6"}, - "makeup_erlang": {:hex, :makeup_erlang, "0.1.2", "ad87296a092a46e03b7e9b0be7631ddcf64c790fa68a9ef5323b6cbb36affc72", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f3f5a1ca93ce6e092d92b6d9c049bcda58a3b617a8d888f8e7231c85630e8108"}, + "makeup_erlang": {:hex, :makeup_erlang, "0.1.4", "29563475afa9b8a2add1b7a9c8fb68d06ca7737648f28398e04461f008b69521", [:mix], [{:makeup, "~> 1.0", [hex: :makeup, repo: "hexpm", optional: false]}], "hexpm", "f4ed47ecda66de70dd817698a703f8816daa91272e7e45812469498614ae8b29"}, "mime": {:hex, :mime, "2.0.5", "dc34c8efd439abe6ae0343edbb8556f4d63f178594894720607772a041b04b02", [:mix], [], "hexpm", "da0d64a365c45bc9935cc5c8a7fc5e49a0e0f9932a761c55d6c52b142780a05c"}, - "nimble_parsec": {:hex, :nimble_parsec, "1.3.1", "2c54013ecf170e249e9291ed0a62e5832f70a476c61da16f6aac6dca0189f2af", [:mix], [], "hexpm", "2682e3c0b2eb58d90c6375fc0cc30bc7be06f365bf72608804fb9cffa5e1b167"}, - "poison": {:hex, :poison, "3.1.0", "d9eb636610e096f86f25d9a46f35a9facac35609a7591b3be3326e99a0484665", [:mix], [], "hexpm", "fec8660eb7733ee4117b85f55799fd3833eb769a6df71ccf8903e8dc5447cfce"}, - "tesla": {:hex, :tesla, "1.7.0", "a62dda2f80d4f8a925eb7b8c5b78c461e0eb996672719fe1a63b26321a5f8b4e", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, "~> 1.3", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.0", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "2e64f01ebfdb026209b47bc651a0e65203fcff4ae79c11efb73c4852b00dc313"}, + "nimble_parsec": {:hex, :nimble_parsec, "1.4.0", "51f9b613ea62cfa97b25ccc2c1b4216e81df970acd8e16e8d1bdc58fef21370d", [:mix], [], "hexpm", "9c565862810fb383e9838c1dd2d7d2c437b3d13b267414ba6af33e50d2d1cf28"}, + "tesla": {:hex, :tesla, "1.8.0", "d511a4f5c5e42538d97eef7c40ec4f3e44effdc5068206f42ed859e09e51d1fd", [:mix], [{:castore, "~> 0.1 or ~> 1.0", [hex: :castore, repo: "hexpm", optional: true]}, {:exjsx, ">= 3.0.0", [hex: :exjsx, repo: "hexpm", optional: true]}, {:finch, "~> 0.13", [hex: :finch, repo: "hexpm", optional: true]}, {:fuse, "~> 2.4", [hex: :fuse, repo: "hexpm", optional: true]}, {:gun, ">= 1.0.0", [hex: :gun, repo: "hexpm", optional: true]}, {:hackney, "~> 1.6", [hex: :hackney, repo: "hexpm", optional: true]}, {:ibrowse, "4.4.2", [hex: :ibrowse, repo: "hexpm", optional: true]}, {:jason, ">= 1.0.0", [hex: :jason, repo: "hexpm", optional: true]}, {:mime, "~> 1.0 or ~> 2.0", [hex: :mime, repo: "hexpm", optional: false]}, {:mint, "~> 1.0", [hex: :mint, repo: "hexpm", optional: true]}, {:msgpax, "~> 2.3", [hex: :msgpax, repo: "hexpm", optional: true]}, {:poison, ">= 1.0.0", [hex: :poison, repo: "hexpm", optional: true]}, {:telemetry, "~> 0.4 or ~> 1.0", [hex: :telemetry, repo: "hexpm", optional: true]}], "hexpm", "10501f360cd926a309501287470372af1a6e1cbed0f43949203a4c13300bc79f"}, } diff --git a/clients/kratos/go/.openapi-generator/FILES b/clients/kratos/go/.openapi-generator/FILES index cdbbd844f4f..6a21f009a2d 100644 --- a/clients/kratos/go/.openapi-generator/FILES +++ b/clients/kratos/go/.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/clients/kratos/go/.openapi-generator/VERSION b/clients/kratos/go/.openapi-generator/VERSION index 6d54bbd7751..3769235d3e6 100644 --- a/clients/kratos/go/.openapi-generator/VERSION +++ b/clients/kratos/go/.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/clients/kratos/go/README.md b/clients/kratos/go/README.md index 0ebb99a4d58..b26ef4ae734 100644 --- a/clients/kratos/go/README.md +++ b/clients/kratos/go/README.md @@ -6,7 +6,7 @@ This is the API specification for Ory Identities with features such as registrat ## Overview This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client. -- API version: v1.0.0 +- API version: v1.1.0 - Package version: 1.0.0 - Build package: org.openapitools.codegen.languages.GoClientCodegen @@ -16,7 +16,6 @@ Install the following dependencies: ```shell go get github.com/stretchr/testify/assert -go get golang.org/x/oauth2 go get golang.org/x/net/context ``` @@ -38,7 +37,7 @@ Default configuration comes with `Servers` field that contains server objects as ### Select Server Configuration -For using other server than the one defined on index 0 set context value `sw.ContextServerIndex` of type `int`. +For using other server than the one defined on index 0 set context value `client.ContextServerIndex` of type `int`. ```golang ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1) @@ -46,7 +45,7 @@ ctx := context.WithValue(context.Background(), client.ContextServerIndex, 1) ### Templated Server URL -Templated server URL is formatted using default variables from configuration or from context value `sw.ContextServerVariables` of type `map[string]string`. +Templated server URL is formatted using default variables from configuration or from context value `client.ContextServerVariables` of type `map[string]string`. ```golang ctx := context.WithValue(context.Background(), client.ContextServerVariables, map[string]string{ @@ -60,9 +59,9 @@ Note, enum values are always validated and all unused variables are silently ign Each operation can use different server URL defined using `OperationServers` map in the `Configuration`. An operation is uniquely identified by `"{classname}Service.{nickname}"` string. -Similar rules for overriding default operation server index and variables applies by using `sw.ContextOperationServerIndices` and `sw.ContextOperationServerVariables` context maps. +Similar rules for overriding default operation server index and variables applies by using `client.ContextOperationServerIndices` and `client.ContextOperationServerVariables` context maps. -``` +```golang ctx := context.WithValue(context.Background(), client.ContextOperationServerIndices, map[string]int{ "{classname}Service.{nickname}": 2, }) @@ -79,67 +78,72 @@ 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 | Complete 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 and deletes 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 and deletes 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 - [AuthenticatorAssuranceLevel](docs/AuthenticatorAssuranceLevel.md) - [BatchPatchIdentitiesResponse](docs/BatchPatchIdentitiesResponse.md) + - [ConsistencyRequestParameters](docs/ConsistencyRequestParameters.md) - [ContinueWith](docs/ContinueWith.md) + - [ContinueWithRecoveryUi](docs/ContinueWithRecoveryUi.md) + - [ContinueWithRecoveryUiFlow](docs/ContinueWithRecoveryUiFlow.md) - [ContinueWithSetOrySessionToken](docs/ContinueWithSetOrySessionToken.md) + - [ContinueWithSettingsUi](docs/ContinueWithSettingsUi.md) + - [ContinueWithSettingsUiFlow](docs/ContinueWithSettingsUiFlow.md) - [ContinueWithVerificationUi](docs/ContinueWithVerificationUi.md) - [ContinueWithVerificationUiFlow](docs/ContinueWithVerificationUiFlow.md) - [CourierMessageStatus](docs/CourierMessageStatus.md) @@ -159,14 +163,13 @@ Class | Method | HTTP request | Description - [HealthStatus](docs/HealthStatus.md) - [Identity](docs/Identity.md) - [IdentityCredentials](docs/IdentityCredentials.md) + - [IdentityCredentialsCode](docs/IdentityCredentialsCode.md) - [IdentityCredentialsOidc](docs/IdentityCredentialsOidc.md) - [IdentityCredentialsOidcProvider](docs/IdentityCredentialsOidcProvider.md) - [IdentityCredentialsPassword](docs/IdentityCredentialsPassword.md) - - [IdentityCredentialsType](docs/IdentityCredentialsType.md) - [IdentityPatch](docs/IdentityPatch.md) - [IdentityPatchResponse](docs/IdentityPatchResponse.md) - [IdentitySchemaContainer](docs/IdentitySchemaContainer.md) - - [IdentityState](docs/IdentityState.md) - [IdentityWithCredentials](docs/IdentityWithCredentials.md) - [IdentityWithCredentialsOidc](docs/IdentityWithCredentialsOidc.md) - [IdentityWithCredentialsOidcConfig](docs/IdentityWithCredentialsOidcConfig.md) @@ -177,6 +180,7 @@ Class | Method | HTTP request | Description - [IsReady503Response](docs/IsReady503Response.md) - [JsonPatch](docs/JsonPatch.md) - [LoginFlow](docs/LoginFlow.md) + - [LoginFlowState](docs/LoginFlowState.md) - [LogoutFlow](docs/LogoutFlow.md) - [Message](docs/Message.md) - [MessageDispatch](docs/MessageDispatch.md) @@ -184,7 +188,6 @@ Class | Method | HTTP request | Description - [OAuth2Client](docs/OAuth2Client.md) - [OAuth2ConsentRequestOpenIDConnectContext](docs/OAuth2ConsentRequestOpenIDConnectContext.md) - [OAuth2LoginRequest](docs/OAuth2LoginRequest.md) - - [Pagination](docs/Pagination.md) - [PatchIdentitiesBody](docs/PatchIdentitiesBody.md) - [PerformNativeLogoutBody](docs/PerformNativeLogoutBody.md) - [RecoveryCodeForIdentity](docs/RecoveryCodeForIdentity.md) @@ -193,6 +196,7 @@ Class | Method | HTTP request | Description - [RecoveryIdentityAddress](docs/RecoveryIdentityAddress.md) - [RecoveryLinkForIdentity](docs/RecoveryLinkForIdentity.md) - [RegistrationFlow](docs/RegistrationFlow.md) + - [RegistrationFlowState](docs/RegistrationFlowState.md) - [SelfServiceFlowExpiredError](docs/SelfServiceFlowExpiredError.md) - [Session](docs/Session.md) - [SessionAuthenticationMethod](docs/SessionAuthenticationMethod.md) @@ -216,6 +220,7 @@ Class | Method | HTTP request | Description - [UiText](docs/UiText.md) - [UpdateIdentityBody](docs/UpdateIdentityBody.md) - [UpdateLoginFlowBody](docs/UpdateLoginFlowBody.md) + - [UpdateLoginFlowWithCodeMethod](docs/UpdateLoginFlowWithCodeMethod.md) - [UpdateLoginFlowWithLookupSecretMethod](docs/UpdateLoginFlowWithLookupSecretMethod.md) - [UpdateLoginFlowWithOidcMethod](docs/UpdateLoginFlowWithOidcMethod.md) - [UpdateLoginFlowWithPasswordMethod](docs/UpdateLoginFlowWithPasswordMethod.md) @@ -225,6 +230,7 @@ Class | Method | HTTP request | Description - [UpdateRecoveryFlowWithCodeMethod](docs/UpdateRecoveryFlowWithCodeMethod.md) - [UpdateRecoveryFlowWithLinkMethod](docs/UpdateRecoveryFlowWithLinkMethod.md) - [UpdateRegistrationFlowBody](docs/UpdateRegistrationFlowBody.md) + - [UpdateRegistrationFlowWithCodeMethod](docs/UpdateRegistrationFlowWithCodeMethod.md) - [UpdateRegistrationFlowWithOidcMethod](docs/UpdateRegistrationFlowWithOidcMethod.md) - [UpdateRegistrationFlowWithPasswordMethod](docs/UpdateRegistrationFlowWithPasswordMethod.md) - [UpdateRegistrationFlowWithWebAuthnMethod](docs/UpdateRegistrationFlowWithWebAuthnMethod.md) @@ -247,7 +253,7 @@ Class | Method | HTTP request | Description ## Documentation For Authorization - +Authentication schemes defined for the API: ### oryAccessToken - **Type**: API key @@ -256,6 +262,19 @@ Class | Method | HTTP request | Description Note, each API key must be added to a map of `map[string]APIKey` where the key is: Authorization and passed in as the auth context for each request. +Example + +```golang +auth := context.WithValue( + context.Background(), + client.ContextAPIKeys, + map[string]client.APIKey{ + "Authorization": {Key: "API_KEY_STRING"}, + }, + ) +r, err := client.Service.Operation(auth, args) +``` + ## Documentation for Utility Methods diff --git a/clients/kratos/go/api/openapi.yaml b/clients/kratos/go/api/openapi.yaml index 8f7a798abd2..099cc56f685 100644 --- a/clients/kratos/go/api/openapi.yaml +++ b/clients/kratos/go/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